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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var dz,K5p,DJY,Dn,nB,VpX,gz,OY,tN,oX,SYY,yNp,EY,iB5,cNS,Wu,InX,XuO,vzo,Vv,gzG,OBG,YYz,$JN,EzN,XH,Os,$8,Es,lnB,h6,W5n,b9,W4,jt,ANX,x8,J6,rNo,CoN,xJS,et,BzN,dw,JNo,Vc,L55,SS,sXY,ZBO,dsO,hP,fLG,HJu,DsO,VtJ,Ssu,EZ,eGo,oz,puO,KNB,ILJ,RBS,FNo,Ty,zBB,X4u,v8u,Mtn,g8p,OJz,ttY,sZ,E8S,bJO,lLX,T2z,r6Y,ww,fw,qsp,LNX,DM,B2O,w4z,sfz,Sw,kkY,Vx,P9p,I6,Uj,Fe,yx,zi,p4N,ZJJ,eBB,Px,Kto,dlu,f7o,Dlp,HEO,h4,VSX,SZY,vx,nwz,iEX,Wx,uiO,R5O,A4,MSG,a7B,PUN,gwp,OEz,EwS,tSz,Qx,Cw,bEn,l7z,Wtz,rPX,xlG,ZEn,d8N,y4z,VL,iw5,ueX,i$,u$,
ao,U2,Ro,ND,ta,oo,XxB,Wg,MwX,Owz,xG,LM,Yju,Ja,s2,kG,Za,osN,$8o,Esu,hqX,bwX,m8B,lMp,WbG,GiG,T4z,f7,dy,r4z,qjX,Q65,CNo,j6o,x8O,cF,B4p,uQ,aE,IE,Uo,Fy,s6z,vF,wxu,dDS,PF,faN,HMB,DDu,Oo,VeY,S2S,YQ,t5,iMo,$Q,aao,Iaz,Eo,RXz,UDz,FcS,zXX,XgX,vGp,mH,Mep,P$X,lQ,gGz,OMO,WF,Gf,A5,Tf,N5X,teu,Y25,Qu,$Dn,EGX,hXY,C7,L7,BF,J5,so,kQ,wy,bMz,mDX,la5,Wcz,GYn,Aaz,T5O,rap,q2X,QoG,joN,el,C$Y,xDu,d0,LcB,HR,D4,B55,kYO,wgG,ZMO,pgX,KH5,deo,Vlp,So5,y5B,nQY,i7X,c5u,uyJ,RcN,yp,FHY,zcG,XFB,vQX,MlX,PQz,O7n,Gfp,A5o,TyY,qoz,QEY,FT,jEB,
zj,J5S,sEu,kfY,wFu,Z7p,ecO,pFN,K2p,g0,f4z,LHz,H0N,DmX,V4J,S7O,yAn,nhp,i0S,cAp,uTN,Umo,I45,zTO,RTX,F2u,M45,PWn,ghu,XR5,N05,vhS,t4G,Tj,ohS,r0,Qp,$mn,hT5,b0o,W2Y,L2G,AA5,Gjn,rAS,QLN,T0p,kjG,JAY,wRG,Z0Y,eTX,pRB,K$O,fqY,doS,Hm5,Doz,Vhp,SmG,nln,csz,uEY,aqz,UoJ,IqO,thG,s7,olY,ElN,hQo,bmX,moX,lqB,GpS,Asp,TGX,dG,fm,rsY,xo5,Sh,yX,sQG,kpJ,VDG,bnz,aQ,lKz,TQG,GhJ,Acu,XE,rcz,qnN,jlB,C8S,xqN,LUz,BQY,JcS,slz,Py,wCN,e7S,ZnJ,dkB,Em,m$,HQY,Dku,VqG,Sbn,yRn,nMY,cRS,adn,u0B,Lm,Js,sm,eh,Ybz,tqB,pm,oMX,$kS,Kn,h8G,EMG,qbX,
Qd5,jdo,xkB,sdN,k2Y,ZQB,e8Y,p_z,dXG,Hyp,DXz,DK,n_O,u4S,aUG,IUY,UXu,RA5,c9G,y9B,SFn,SD,VQu,FgS,X6G,g_X,MQY,i8,Ni5,tQN,o_X,$Xn,E_p,Rl,hAJ,mXS,byu,lUz,Gsp,vC,xXX,Biz,s0z,w6B,Zy5,p6G,Nq,tc,YF,HAB,eAu,DHB,En,nKJ,mU,l8,ujo,UHG,Fnu,znB,XAG,WC,vKS,McX,P3n,OAO,NRn,YXG,tcN,$HB,Ac,EKX,hnp,rQ,jD,lkz,WnY,G7p,BC,rLY,qX5,jcN,eD,scO,k7z,wAJ,ZAX,enN,fQ,H_,Dd,VB,dFO,yB,fxX,Ho5,DFo,V75,ioG,ubN,axO,c3X,ix,Ixz,zdp,c_,FhJ,Xa5,UFX,v7p,Id,Ppn,g7o,OoX,NUp,t75,YNu,o7X,hdn,$Fz,mFz,r3u,QBz,CpG,LhB,sBo,J3N,BUz,kEN,ZoX,paG,ed5,
KkN,ftu,H3X,D5p,YM,ydS,SSX,n$G,i3u,od,$M,cdo,atB,U5u,zto,v$X,XeO,kM,MWY,ItJ,o$p,$5z,E$G,Ky,htN,m5O,GFX,rdz,TXG,CTY,x5z,LkX,BXB,s4B,pep,kFY,Z3N,etz,KVO,duo,H1X,fpN,VvB,DuX,a0,Syz,nZX,i1N,IpX,MX,P6,UuX,RJX,gi,vZG,t9,o0,$_,O1N,EF,tvN,mg,oZX,$uX,EZO,hJB,Gs,b1S,lpz,WVz,AeB,re5,jwO,xuJ,Ly,LVX,BLu,Jen,swJ,kwY,w0S,Z1O,eJX,sF,dYG,fE5,Hdo,DYz,VsX,SxJ,yyo,nJN,idB,cyu,ufG,aEY,IEG,fA,Yxz,tsG,HA,Dk,V9,oJp,$YO,EJG,h0u,bdO,mYY,lES,ryX,qxX,QSo,jSu,CB5,ac,UX,Rc,Fj,vA,MH,PA,LqX,OX,JyJ,NH,sSY,kuo,YK,wGn,Zdz,e0X,ypS,
iFp,UQJ,XJN,zMz,noz,voO,goX,ApO,$Qo,jON,hMJ,QOo,CAS,b3,LSn,l3,Jpp,sOG,wJo,ZFB,eMz,KWp,AL,feS,HUN,DnG,VZN,S1G,yGX,nmX,dn5,u7B,aeX,IeY,rR,vmN,MZn,XWO,gmz,OUX,Y1p,tZG,NmB,le5,GoG,Tmz,q1p,Zk,BmO,LWz,ZUz,pWG,Kxp,d7o,fmo,H8z,D7J,S7,ImJ,RmO,uwG,cMn,U75,SzG,zmz,$7J,MPY,PLz,gpY,rMn,QnX,TjX,JMz,AMo,VPp,Bjp,vpO,opp,qzX,Fxn,npz,yM5,i8p,amz,GCz,gU,nAo,cJu,uqB,aFS,IFY,gAJ,$dz,EAX,Wa,bZY,Wen,rJS,TlN,QGu,jGu,Lep,xdX,Bln,Lo,JJn,sGN,wvX,kGX,Ba,fWG,daB,Kdz,S5z,HKN,yhN,VCz,nPp,sN,iKp,IWn,uQX,aWz,Ro5,Fdu,XpX,e7,PhO,vPO,
gPo,tCX,oPO,hoS,map,f3,He,AhO,THn,Dt,VQ,rhG,SW,yQ,q5n,n3,QmG,iT,jmX,Chn,uT,xaN,Ldo,BHX,Jhz,smo,wpn,kzN,eon,dTo,KRX,fSn,Htp,ZKu,DTz,yv5,SkB,pp5,nBX,ito,Ft,cvX,ISz,aSG,UTY,RyN,zyn,FRJ,X9p,Xt,MiJ,PXY,vBz,OtJ,NPz,Yk5,EBX,mTX,TPp,jYn,ve,LRz,BP5,M5,Jvu,N5,Y$,p9o,gX,$$,KfG,djz,HYo,Djz,S8J,n6X,iYu,cbu,urO,UjY,v65,zRz,IlO,MdO,Pcz,mk,X$z,g6p,GF,OYO,N3X,Y8z,tdO,hRO,o6Y,E6N,Wf5,GDS,Q9S,q8X,xjO,w$S,ZYX,p$p,dvJ,ffp,DvN,VHo,SaG,nbo,isu,cmS,Ifp,zCY,Xdz,Uvz,MHu,gbp,Pfz,vbN,OsN,Yap,tHX,obo,$vn,Ebz,sS,k$,eW,K1,mvO,
lfz,G$O,rmG,dL,f1,qap,H0,Cfn,xvp,L4u,V8,wdn,KQz,fbY,HOz,Dio,VRO,S3n,iOn,y8,cIO,IbB,n1,UiY,zHN,XYX,v2X,FQS,Y3X,$io,tRS,E2p,min,WQn,AIG,Q2N,q3u,LQz,Iw,Bcn,JIS,Rw,s2Y,Fd,k9N,wYu,ZOn,pYu,eHX,K9z,dOO,fhu,Hgu,cBJ,ahz,UON,Ih5,yBO,VOz,F9p,XcG,Ogz,N9X,oWz,lhz,GlB,Mu,ABS,rBz,qGp,j_p,B9S,s_z,wcX,ZgG,ePJ,pcz,Df5,Kop,nkz,ixz,uJz,Oy,I5z,Ufu,RwJ,Foo,zwG,XkS,vkY,PJG,gkG,ow,OxS,Nvn,okz,Ey,tUX,EkB,l5p,bw,WoX,GMB,ADX,qvX,QtS,Tvo,CJN,JDp,sto,kMG,Tw,wkB,K8Y,d0S,jv,D0z,f9N,HGB,StG,nnn,iGO,I9z,F8p,Rip,U0u,ziX,vnG,MIo,tIB,
PSz,onz,hiz,$0S,Az5,qtS,jZO,x0X,ptz,dhu,fTB,SAn,nSz,gN,bB,UhO,XL5,zKS,M$u,PeG,OfB,gSY,Nhn,YAn,mq,RMS,RKY,vSB,Fwp,Ex,Cd,$hX,ESO,lTO,Wwn,GA5,AoB,ThN,roz,BG,qAB,Jy,Qs5,jsu,Cep,xhS,wN,Lwu,ssX,wLp,ZfY,D_Y,Shp,ylN,n1u,clO,ucX,Vj,IzS,U_o,ReX,F1Y,zeo,XES,M25,g1n,dgY,fPG,n5O,SKX,ihX,aPN,IPz,aO,Ugz,RFG,Flo,v5J,P4G,Mx5,Ohz,YKO,Fs,o5Y,$gX,txO,E5p,hFO,mgX,WlB,lPX,GHB,bhn,Af5,TOY,rfo,qKY,QbY,jbz,C4Y,xgu,Llz,sbz,JfS,kHz,ZhB,w3J,z0,eFp,dV5,SIu,p3G,yQn,nHo,i2X,cQX,XrX,MAG,PqX,O2B,Nd5,EV,$VG,mV5,Wvz,hp,rQp,TdO,qIY,
lA,Qao,jan,CqX,LvG,BdB,JQn,saN,wr5,Z2Y,y_z,H5o,VJJ,i5X,nfo,c_u,uvG,IBJ,RlN,zlz,vfB,EfY,mpO,WMu,GZo,A_z,TxB,r_O,QvN,jvG,LMY,Bxp,J_z,svz,kZO,w55,Z5X,elO,dzN,VbX,Jp,sV,ko,wB,S9S,pF,ncO,zLu,OIO,Pmp,q9n,QCJ,jCX,cjo,FPu,IIS,xzz,LPu,BsB,vc5,sCX,wnz,eLX,drG,fHS,us,U1,RM,iLo,nLN,IHN,UrY,OLB,YQO,oLX,$rG,bL5,lHX,mrO,ATu,rTO,B8J,xrB,QFY,LZS,jFG,JTo,ZLz,bs,SLO,HDX,nVz,iD5,uIX,avu,ls,IvX,FrG,zpN,Xwp,M_Y,vVz,AG,CU,oVz,$3o,LU,EVS,hp5,bDX,m3Y,lvY,WrX,GxB,AVS,Tao,rVY,qLY,QuO,ju5,COO,x3S,BW,Lrn,BaJ,JVY,suX,kxX,ww5,
ZDG,epu,pwX,KXu,dZn,fG5,wm,DZX,SOz,nYX,uMu,UZX,Rku,FXz,XIu,MEY,PZX,gYu,HP,oYG,YOo,$ZG,EYn,hkz,lGY,WXX,GT5,TJS,Rn,qOJ,In,jT5,CZX,Fw,xZO,LXz,BJB,JSz,Xw,ZvX,pIz,D9Y,HWB,S$X,yHz,Yp,ndG,iW5,u9p,IuX,U95,FiO,zWn,aup,XzX,OWB,odu,$9O,tM,EdN,hWS,G5X,bWu,lun,Wiu,jJu,TWz,CnJ,Lip,JHz,sJX,k5u,wzz,ZW5,eWY,Kaz,dKS,fVG,Hep,DKO,SRB,n4B,uVz,R6o,XsJ,MoG,OeJ,lL,NCB,YRY,tou,o45,$Kz,h6o,bez,mKG,lVY,WaY,GtJ,A2z,TCz,r2o,qRz,QWG,CYN,jW5,BCn,sWS,AM,ktp,e6J,ZeY,rj,dCX,fJp,S4X,i9o,yXG,VNu,aJY,u$z,zNS,IJp,xp,RNS,NtG,MNJ,PGo,g3p,
O9O,Y4X,o3S,tNO,L8,BP,Ws5,E3B,lJz,mCJ,hNB,b9z,TtN,q4z,jjo,Qju,BtJ,LsX,kUN,wSp,eNB,pS5,Z95,KAJ,f_o,dxJ,Dx5,ytX,KZ,nXX,iNo,a_O,zsn,ONp,fZ,YEO,EXX,l_u,mxO,hsY,bNp,y2,TAn,WAS,Gvp,rtp,QkS,qEo,xxO,LAu,JtO,skY,kvG,wZX,ZNp,pZY,KjJ,Md,f2O,gl,H_p,yWG,naO,tJ,i_S,uC5,M1S,bz,RIG,vaz,FjO,zIJ,ND5,Yrz,O_z,t1p,oaB,b_X,$tG,mto,l2O,lz,GnY,AWX,TDn,Wju,qrY,rW5,Wv,xtG,Z_X,eIB,pOJ,KKB,dSB,f8X,SpO,DSJ,V0p,HrO,ne5,ukX,USX,RSX,zSz,qd,XHY,veJ,M0n,geX,Oro,N6Y,YpY,t05,oeB,EeN,LZ,hSn,l8B,mSJ,GOS,WKY,AYo,T6n,rYz,Bv,QD5,eSO,wHX,
db5,fQX,nTY,ijX,c0S,u1z,aQ5,IQn,F0G,zgz,XoS,vTu,gTX,OjN,NrX,YdY,tGB,oTO,$bu,ETO,hg5,bjz,lQX,W0n,GJJ,r0z,Q$z,L0N,xbO,C_n,j$o,s$z,kJJ,uh,woz,ZjX,egn,fgu,poJ,HuS,KTJ,DIn,Rm,V5X,SfO,yiB,dIo,n9Y,agz,Ign,UIu,XQ,Rvu,FTB,zvz,XbX,v9z,M5J,g9N,Ouz,NYz,YfN,$IG,o9O,lgS,t5J,Ma,WTX,E9S,mIS,TYN,qf5,LTS,C7G,xIu,j7O,Q7z,om,BYJ,s7z,keo,wb5,ZuB,evB,HCz,K_z,pbG,d1z,U1J,acX,fcB,uZS,PkX,gEY,OCG,NqX,YlY,tnz,oEN,hfX,m1p,W_X,AOG,Tqu,rOX,Cko,jIO,x1p,Bqz,s5,kPz,wVu,ZCY,efN,wH,ZW,dPo,DPn,cwu,UPu,RYY,FJY,zYN,X1J,vuG,PrN,OSY,guX,
N$Y,tMX,ouz,$Pz,EuB,hYu,bS5,H9,mPz,qeJ,QNX,Awp,GBS,rwX,T$S,kBX,B$o,Si,w15,ZSS,eYJ,p1J,KIn,dWG,fio,HiY,DWS,SBz,njn,c7z,aiG,UWX,XQo,vjY,M8Y,Oio,gjn,P0B,NKo,YBJ,ojY,$Wn,Eju,h9z,aY,mWO,liu,WIG,A7o,GNX,TKY,qBN,Qpp,jpN,xWJ,LIX,C0o,Zio,K7J,dGB,fXz,H$X,VjB,DG5,Sgz,i$5,cUS,u5B,aXX,UGX,IXn,F7J,P5o,Mju,O$J,Nez,YgO,hUJ,b$X,mGu,lXz,AUz,TeS,QeJ,C5z,jeo,xGO,hv,L7N,Be5,Z$N,wXG,eUp,pXz,dcB,foN,Vao,yZX,nqG,iP5,cZ5,upz,aop,IoS,UcN,Ra5,FCJ,Xjo,zaN,vqB,MaY,PCz,gqu,OPz,NfN,YTp,oqn,$co,taX,Av,bP5,mcz,loO,WCn,Gap,TfX,qT5,
Q5z,j5J,CCG,xcS,LCY,JZz,s5p,wjG,eap,K6X,D6o,f$z,d6z,HcB,VgJ,niB,SqG,yKX,cKG,I$Y,U6X,RzY,zzN,Xf5,viz,PEB,OcS,MgG,NoX,YqO,tgX,oio,$6X,Eiu,bc5,hzO,m6Y,l$p,W6B,GRX,AKz,ToN,rKz,qqu,CEG,x6Y,QKo,jKn,sKN,kR5,wP,KGB,dAX,Hao,SD5,VF5,yEz,nOG,ZS,pt,cEz,uPz,fY,H$,ROn,a0Y,I0p,X2z,PvG,OaB,NSG,YDu,tFo,oOo,EOX,hOB,ba5,mA5,l0X,WGN,GbN,Sd,AEJ,TSY,nY,rE5,qD5,QqG,jqu,Cvo,xAN,uc,a9,LGn,BSn,I9,JES,sqp,kbB,w2z,eOz,p2O,dUz,SiX,VLG,DUN,yCX,ngX,UUS,uOz,a6Y,cC5,I6u,R9,XMN,vgY,MLS,Pao,ggn,NnN,$UG,tLo,Fr,YiO,l6X,GQS,ACp,TnJ,rC5,
qio,j3z,Cap,xUO,LOp,JCX,s3B,kQY,ZXX,e1X,KLu,d2X,S_u,nxJ,yuN,cuo,REN,FLp,zES,XTz,MmX,P$,O8,g3,PIX,gxB,O6o,NIO,tmG,oxX,$2N,ExN,b6u,lyz,WLz,GLB,Nj,Au5,ruJ,q_z,CIu,x2Y,Y6,tb,Juo,LLz,s8z,Z6O,kLX,eEJ,$6,K3p,dLN,DLS,SHJ,E8,ntz,ibp,cxG,uUJ,ajG,IjN,ULz,F3S,MkG,PDJ,NMp,gtO,Obn,YHJ,EtO,tkn,$LX,huY,bbu,mLz,GVJ,Axp,TMX,rxz,qHn,BMu,L3o,euz,dwB,jd,f15,$oB,HHS,Dwp,Suo,nNz,iHN,FpX,zhN,Jb,XlY,vNB,M9S,Pjp,gNz,NbS,t9X,OHY,YuX,$wO,oNJ,hhS,bHN,mwz,l1z,Wpo,GXp,A8p,TbJ,jx5,LpO,Cjz,BbX,J8O,sxz,Zl,kXu,wlG,pY,ehJ,ZHS,plJ,KBG,
fOz,HzN,Vz5,SWX,yrX,nUY,iz5,aOn,RV5,XiN,zVJ,vUn,MzN,OzN,lOG,oUO,GqG,ArS,rru,qWp,x4O,JrY,kqG,sAn,ZzJ,eVp,piu,KYo,dEz,fNz,DEo,y1X,nDO,iku,c1X,IN5,aNu,zDu,XBY,vDn,MX5,PyX,gDo,N1S,Fm,tXp,Mv,$EB,hDn,bkN,A1n,r1z,Cyu,LYz,B1z,shu,kWn,wBo,eDS,KEX,dRO,DRu,SUX,iqB,nRB,yqn,tm,uWz,cqo,aro,IrS,URu,Rbo,FEu,zbz,XDJ,M6p,PPn,gRS,N_X,oRB,Oqo,YUO,$RN,ER5,hbO,bqp,lrz,WEJ,CPY,xR5,LEz,B_X,Jqu,wDJ,lf,fZS,HVo,D$z,VuS,SJu,Wd,G$,By,U$p,T$,RZX,vIS,Pgo,MuX,r7,gIz,OVo,LbY;
_.KB=function(K,d){if(Error.captureStackTrace)Error.captureStackTrace(this,_.KB);else{var f=Error().stack;f&&(this.stack=f)}K&&(this.message=String(K));d!==void 0&&(this.cause=d)};
dz=function(){throw Error("B");};
K5p=function(K,d){d=String.fromCharCode.apply(null,d);return K==null?d:K+d};
DJY=function(K){var d=!1;d=d===void 0?!1:d;if(dJp){if(d&&(fnO?!K.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(K)))throw Error("C");K=(HBY||(HBY=new TextEncoder)).encode(K)}else{for(var f=0,H=new Uint8Array(3*K.length),D=0;D<K.length;D++){var S=K.charCodeAt(D);if(S<128)H[f++]=S;else{if(S<2048)H[f++]=S>>6|192;else{if(S>=55296&&S<=57343){if(S<=56319&&D<K.length){var n=K.charCodeAt(++D);if(n>=56320&&n<=57343){S=(S-55296)*1024+n-56320+65536;H[f++]=S>>18|
240;H[f++]=S>>12&63|128;H[f++]=S>>6&63|128;H[f++]=S&63|128;continue}else D--}if(d)throw Error("C");S=65533}H[f++]=S>>12|224;H[f++]=S>>6&63|128}H[f++]=S&63|128}}K=f===H.length?H:H.subarray(0,f)}return K};
Dn=function(K){_.Hu.setTimeout(function(){throw K;},0)};
_.Sp=function(K,d){return K.lastIndexOf(d,0)==0};
nB=function(K,d){var f=K.length-d.length;return f>=0&&K.indexOf(d,f)==f};
_.cu=function(K){return/^[\s\xa0]*$/.test(K)};
_.aX=function(K,d){return K.indexOf(d)!=-1};
_.IX=function(K,d){return _.aX(K.toLowerCase(),d.toLowerCase())};
_.RX=function(K,d){var f=0;K=UY(String(K)).split(".");d=UY(String(d)).split(".");for(var H=Math.max(K.length,d.length),D=0;f==0&&D<H;D++){var S=K[D]||"",n=d[D]||"";do{S=/(\d*)(\D*)(.*)/.exec(S)||["","","",""];n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""];if(S[0].length==0&&n[0].length==0)break;f=VpX(S[1].length==0?0:parseInt(S[1],10),n[1].length==0?0:parseInt(n[1],10))||VpX(S[2].length==0,n[2].length==0)||VpX(S[2],n[2]);S=S[3];n=n[3]}while(f==0)}return f};
VpX=function(K,d){return K<d?-1:K>d?1:0};
_.zS=function(){var K=_.Hu.navigator;return K&&(K=K.userAgent)?K:""};
gz=function(K){if(!vu||!MJ)return!1;for(var d=0;d<MJ.brands.length;d++){var f=MJ.brands[d].brand;if(f&&_.aX(f,K))return!0}return!1};
OY=function(K){return _.aX(_.zS(),K)};
tN=function(){return vu?!!MJ&&MJ.brands.length>0:!1};
oX=function(){return tN()?!1:OY("Opera")};
SYY=function(){return tN()?!1:OY("Trident")||OY("MSIE")};
yNp=function(){return tN()?gz("Microsoft Edge"):OY("Edg/")};
EY=function(){return OY("Firefox")||OY("FxiOS")};
_.lo=function(){return OY("Safari")&&!(_.m5()||(tN()?0:OY("Coast"))||oX()||(tN()?0:OY("Edge"))||yNp()||(tN()?gz("Opera"):OY("OPR"))||EY()||OY("Silk")||OY("Android"))};
_.m5=function(){return tN()?gz("Chromium"):(OY("Chrome")||OY("CriOS"))&&!(tN()?0:OY("Edge"))||OY("Silk")};
_.nzS=function(){return OY("Android")&&!(_.m5()||EY()||oX()||OY("Silk"))};
iB5=function(K){var d={};K.forEach(function(f){d[f[0]]=f[1]});
return function(f){return d[f.find(function(H){return H in d})]||""}};
cNS=function(K){var d=_.zS();if(K==="Internet Explorer"){if(SYY())if((K=/rv: *([\d\.]*)/.exec(d))&&K[1])d=K[1];else{K="";var f=/MSIE +([\d\.]+)/.exec(d);if(f&&f[1])if(d=/Trident\/(\d.\d)/.exec(d),f[1]=="7.0")if(d&&d[1])switch(d[1]){case "4.0":K="8.0";break;case "5.0":K="9.0";break;case "6.0":K="10.0";break;case "7.0":K="11.0"}else K="7.0";else K=f[1];d=K}else d="";return d}var H=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");f=[];for(var D;D=H.exec(d);)f.push([D[1],D[2],D[3]||void 0]);
d=iB5(f);switch(K){case "Opera":if(oX())return d(["Version","Opera"]);if(tN()?gz("Opera"):OY("OPR"))return d(["OPR"]);break;case "Microsoft Edge":if(tN()?0:OY("Edge"))return d(["Edge"]);if(yNp())return d(["Edg"]);break;case "Chromium":if(_.m5())return d(["Chrome","CriOS","HeadlessChrome"])}return K==="Firefox"&&EY()||K==="Safari"&&_.lo()||K==="Android Browser"&&_.nzS()||K==="Silk"&&OY("Silk")?(d=f[2])&&d[1]||"":""};
_.uXS=function(K){if(tN()&&K!=="Silk"){var d=MJ.brands.find(function(f){return f.brand===K});
if(!d||!d.version)return NaN;d=d.version.split(".")}else{d=cNS(K);if(d==="")return NaN;d=d.split(".")}return d.length===0?NaN:Number(d[0])};
Wu=function(){return vu?!!MJ&&!!MJ.platform:!1};
_.anJ=function(){return Wu()?MJ.platform==="Android":OY("Android")};
InX=function(){return OY("iPhone")&&!OY("iPod")&&!OY("iPad")};
_.AN=function(){return InX()||OY("iPad")||OY("iPod")};
_.UJJ=function(){return Wu()?MJ.platform==="macOS":OY("Macintosh")};
_.RGp=function(){return Wu()?MJ.platform==="Windows":OY("Windows")};
_.F5N=function(){return Wu()?MJ.platform==="Chrome OS":OY("CrOS")};
_.TS=function(K){return K[K.length-1]};
_.rz=function(K,d,f){d=_.zGu(K,d,f);return d<0?null:typeof K==="string"?K.charAt(d):K[d]};
_.zGu=function(K,d,f){for(var H=K.length,D=typeof K==="string"?K.split(""):K,S=0;S<H;S++)if(S in D&&d.call(f,D[S],S,K))return S;return-1};
XuO=function(K){for(var d=_.QO,f=typeof K==="string"?K.split(""):K,H=K.length-1;H>=0;H--)if(H in f&&d.call(void 0,f[H],H,K))return H;return-1};
_.Bu=function(K,d){return _.CB(K,d)>=0};
_.JN=function(K,d){_.Bu(K,d)||K.push(d)};
_.Zn=function(K,d){d=_.CB(K,d);var f;(f=d>=0)&&_.sY(K,d);return f};
_.sY=function(K,d){Array.prototype.splice.call(K,d,1)};
_.ep=function(K){var d=K.length;if(d>0){for(var f=Array(d),H=0;H<d;H++)f[H]=K[H];return f}return[]};
_.fJ=function(K,d){for(var f=1;f<arguments.length;f++){var H=arguments[f];if(_.d2(H)){var D=K.length||0,S=H.length||0;K.length=D+S;for(var n=0;n<S;n++)K[D+n]=H[n]}else K.push(H)}};
_.MpX=function(K,d,f,H){Array.prototype.splice.apply(K,vzo(arguments,1))};
vzo=function(K,d,f){return arguments.length<=2?Array.prototype.slice.call(K,d):Array.prototype.slice.call(K,d,f)};
Vv=function(K,d){d=d||K;for(var f=0,H=0,D={};H<K.length;){var S=K[H++],n=_.H4(S)?"o"+_.DL(S):(typeof S).charAt(0)+S;Object.prototype.hasOwnProperty.call(D,n)||(D[n]=!0,d[f++]=S)}d.length=f};
_.PoX=function(K,d,f){f=f||_.yv;for(var H=0,D=K.length,S;H<D;){var n=H+(D-H>>>1);var u=f(d,K[n]);u>0?H=n+1:(D=n,S=!u)}return S?H:-H-1};
_.If=function(K,d,f){if(!_.d2(K)||!_.d2(d)||K.length!=d.length)return!1;var H=K.length;f=f||gzG;for(var D=0;D<H;D++)if(!f(K[D],d[D]))return!1;return!0};
_.yv=function(K,d){return K>d?1:K<d?-1:0};
gzG=function(K,d){return K===d};
OBG=function(K,d,f){d=Array.prototype.splice.call(K,d,1);Array.prototype.splice.call(K,f,0,d[0])};
YYz=function(K){return Nzz[K]||""};
$JN=function(K){if(!tpS)return _.Us(K);K=ozG.test(K)?K.replace(ozG,YYz):K;K=atob(K);for(var d=new Uint8Array(K.length),f=0;f<K.length;f++)d[f]=K.charCodeAt(f);return d};
EzN=function(K,d){K.__closure__error__context__984382||(K.__closure__error__context__984382={});K.__closure__error__context__984382.severity=d};
_.zk=function(K){K=Error(K);EzN(K,"warning");return K};
XH=function(K,d){if(K!=null){var f;var H=(f=hGY)!=null?f:hGY={};f=H[K]||0;f>=d||(H[K]=f+1,K=Error(),EzN(K,"incident"),Dn(K))}};
Os=function(K,d,f){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(f===void 0?0:f)&&Symbol.for&&K?Symbol.for(K):K!=null?Symbol(K):Symbol():d};
$8=function(K,d){Ns||_.of in K||bBo(K,mJS);K[_.of]|=d};
Es=function(K,d){Ns||_.of in K||bBo(K,mJS);K[_.of]=d};
lnB=function(K){if(4&K)return 512&K?512:1024&K?1024:0};
h6=function(K){$8(K,34);return K};
W5n=function(K){$8(K,32);return K};
b9=function(){return typeof BigInt==="function"};
W4=function(K,d){return d===void 0?K.copyOnWrite!==mN&&!!(2&(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.of]|0)):!!(2&d)&&K.copyOnWrite!==mN};
_.r2=function(K,d){if(K!=null)if(typeof K==="string")K=K?new Gk(K,A6):_.Tk();else if(K.constructor!==Gk)if(GSY&&K!=null&&K instanceof Uint8Array)K=K.length?new Gk(new Uint8Array(K),A6):_.Tk();else{if(!d)throw Error();K=void 0}return K};
jt=function(K,d){if(typeof d!=="number"||d<0||d>=K.length)throw Error();};
ANX=function(K,d,f){var H=d&128?0:-1,D=K.length,S;if(S=!!D)S=K[D-1],S=S!=null&&typeof S==="object"&&S.constructor===Object;var n=D+(S?-1:0);for(d=d&128?1:0;d<n;d++)f(d-H,K[d]);if(S){K=K[D-1];for(var u in K)!isNaN(u)&&f(+u,K[u])}};
x8=function(K){return K&128?CJ:void 0};
J6=function(K){K.isGuard_doNotManuallySetPrettyPlease=!0;return K};
rNo=function(){var K=Tzz;return J6(function(d){for(var f in K)if(d===K[f]&&!/^[0-9]+$/.test(f))return!0;return!1})};
_.k8=function(K){var d=K;if(qY5(d)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(d))throw Error(String(d));}else if(QX5(d)&&!Number.isSafeInteger(d))throw Error(String(d));return ss?BigInt(K):K=jXX(K)?K?"1":"0":qY5(K)?K.trim()||"0":String(K)};
CoN=function(K,d){if(K.length>d.length)return!1;if(K.length<d.length||K===d)return!0;for(var f=0;f<K.length;f++){var H=K[f],D=d[f];if(H>D)return!1;if(H<D)return!0}};
xJS=function(K){var d=K>>>0;w2=d;ZL=(K-d)/4294967296>>>0};
et=function(K){if(K<0){xJS(-K);var d=_.y(L55(w2,ZL));K=d.next().value;d=d.next().value;w2=K>>>0;ZL=d>>>0}else xJS(K)};
BzN=function(K,d){var f=d*4294967296+(K>>>0);return Number.isSafeInteger(f)?f:_.pJ(K,d)};
dw=function(K,d){var f=d&2147483648;f&&(K=~K+1>>>0,d=~d>>>0,K==0&&(d=d+1>>>0));K=BzN(K,d);return typeof K==="number"?f?-K:K:f?"-"+K:K};
_.pJ=function(K,d){d>>>=0;K>>>=0;if(d<=2097151)var f=""+(4294967296*d+K);else b9()?f=""+(BigInt(d)<<BigInt(32)|BigInt(K)):(f=(K>>>24|d<<8)&16777215,d=d>>16&65535,K=(K&16777215)+f*6777216+d*6710656,f+=d*8147497,d*=2,K>=1E7&&(f+=K/1E7>>>0,K%=1E7),f>=1E7&&(d+=f/1E7>>>0,f%=1E7),f=d+JNo(f)+JNo(K));return f};
JNo=function(K){K=String(K);return"0000000".slice(K.length)+K};
_.HK=function(K,d){d&2147483648?b9()?K=""+(BigInt(d|0)<<BigInt(32)|BigInt(K>>>0)):(d=_.y(L55(K,d)),K=d.next().value,d=d.next().value,K="-"+_.pJ(K,d)):K=_.pJ(K,d);return K};
Vc=function(K){if(K.length<16)et(Number(K));else if(b9())K=BigInt(K),w2=Number(K&BigInt(4294967295))>>>0,ZL=Number(K>>BigInt(32)&BigInt(4294967295));else{var d=+(K[0]==="-");ZL=w2=0;for(var f=K.length,H=d,D=(f-d)%6+d;D<=f;H=D,D+=6)H=Number(K.slice(H,D)),ZL*=1E6,w2=w2*1E6+H,w2>=4294967296&&(ZL+=Math.trunc(w2/4294967296),ZL>>>=0,w2>>>=0);d&&(d=_.y(L55(w2,ZL)),K=d.next().value,d=d.next().value,w2=K,ZL=d)}};
L55=function(K,d){d=~d;K?K=~K+1:d+=1;return[K,d]};
SS=function(K){return Array.prototype.slice.call(K)};
_.nE=function(K,d){throw Error(d===void 0?"unexpected value "+K+"!":d);};
_.iU=function(K){if(K!=null&&typeof K!=="number")throw Error("I`"+typeof K+"`"+K);return K};
_.az=function(K){if(K==null||typeof K==="number")return K;if(K==="NaN"||K==="Infinity"||K==="-Infinity")return Number(K)};
sXY=function(K){if(K!=null&&typeof K!=="boolean")throw Error("J`"+_.Rz(K)+"`"+K);return K};
_.kSO=function(K){if(K==null||typeof K==="boolean")return K;if(typeof K==="number")return!!K};
_.vK=function(K){switch(typeof K){case "bigint":return!0;case "number":return Xi(K);case "string":return wuo.test(K);default:return!1}};
_.Ml=function(K){if(!Xi(K))throw _.zk("enum");return K|0};
_.gw=function(K){return K==null?K:Xi(K)?K|0:void 0};
ZBO=function(K){if(typeof K!=="number")throw _.zk("int32");if(!Xi(K))throw _.zk("int32");return K|0};
_.OZ=function(K){return K==null?K:ZBO(K)};
_.Nl=function(K){if(K==null)return K;if(typeof K==="string"&&K)K=+K;else if(typeof K!=="number")return;return Xi(K)?K|0:void 0};
_.Yw=function(K){if(K==null)return K;if(typeof K==="string"&&K)K=+K;else if(typeof K!=="number")return;return Xi(K)?K>>>0:void 0};
dsO=function(K){var d=0;d=d===void 0?0:d;if(!_.vK(K))throw _.zk("int64");var f=typeof K;switch(d){case 512:switch(f){case "string":return oz(K);case "bigint":return String($w(64,K));default:return eGo(K)}case 1024:switch(f){case "string":return puO(K);case "bigint":return _.k8($w(64,K));default:return KNB(K)}case 0:switch(f){case "string":return oz(K);case "bigint":return _.k8($w(64,K));default:return EZ(K)}default:return _.nE(d,"Unknown format requested type for int64")}};
hP=function(K){return K==null?K:dsO(K)};
fLG=function(K){if(K[0]==="-")return!1;var d=K.length;return d<20?!0:d===20&&Number(K.substring(0,6))<184467};
HJu=function(K){var d=K.length;return K[0]==="-"?d<20?!0:d===20&&Number(K.substring(0,7))>-922337:d<19?!0:d===19&&Number(K.substring(0,6))<922337};
DsO=function(K){if(K<0){et(K);var d=_.pJ(w2,ZL);K=Number(d);return bU(K)?K:d}d=String(K);if(fLG(d))return d;et(K);return BzN(w2,ZL)};
VtJ=function(K){if(HJu(K))return K;Vc(K);return _.HK(w2,ZL)};
Ssu=function(K){if(fLG(K))return K;Vc(K);return _.pJ(w2,ZL)};
EZ=function(K){K=mt(K);bU(K)||(et(K),K=dw(w2,ZL));return K};
_.y6u=function(K){K=mt(K);return K>=0&&bU(K)?K:DsO(K)};
eGo=function(K){K=mt(K);if(bU(K))K=String(K);else{var d=String(K);HJu(d)?K=d:(et(K),K=_.HK(w2,ZL))}return K};
_.n8z=function(K){K=mt(K);if(K>=0&&bU(K))K=String(K);else{var d=String(K);fLG(d)?K=d:(et(K),K=_.pJ(w2,ZL))}return K};
oz=function(K){var d=mt(Number(K));if(bU(d))return String(d);d=K.indexOf(".");d!==-1&&(K=K.substring(0,d));return VtJ(K)};
puO=function(K){var d=mt(Number(K));if(bU(d))return _.k8(d);d=K.indexOf(".");d!==-1&&(K=K.substring(0,d));return b9()?_.k8($w(64,BigInt(K))):_.k8(VtJ(K))};
KNB=function(K){return bU(K)?_.k8(EZ(K)):_.k8(eGo(K))};
_.iJX=function(K){return bU(K)?_.k8(_.y6u(K)):_.k8(_.n8z(K))};
_.c6u=function(K){var d=mt(Number(K));if(bU(d)&&d>=0)return String(d);d=K.indexOf(".");d!==-1&&(K=K.substring(0,d));return Ssu(K)};
_.uHG=function(K){var d=mt(Number(K));if(bU(d)&&d>=0)return _.k8(d);d=K.indexOf(".");d!==-1&&(K=K.substring(0,d));return b9()?_.k8((0,_.lU)(64,BigInt(K))):_.k8(Ssu(K))};
_.aL5=function(K){if(K==null)return K;if(typeof K==="bigint")return WK(K)?K=Number(K):(K=$w(64,K),K=WK(K)?Number(K):String(K)),K;if(_.vK(K))return typeof K==="number"?EZ(K):oz(K)};
ILJ=function(K,d){d=d===void 0?!1:d;var f=typeof K;if(K==null)return K;if(f==="bigint")return String($w(64,K));if(_.vK(K))return f==="string"?oz(K):d?eGo(K):EZ(K)};
_.Us5=function(K){var d=typeof K;if(K==null)return K;if(d==="bigint")return _.k8($w(64,K));if(_.vK(K))return d==="string"?puO(K):KNB(K)};
RBS=function(K){if(K==null)return K;var d=typeof K;if(d==="bigint")return String($w(64,K));if(_.vK(K)){if(d==="string")return oz(K);if(d==="number")return EZ(K)}};
FNo=function(K){if(K==null)return K;var d=typeof K;if(d==="bigint")return String((0,_.lU)(64,K));if(_.vK(K)){if(d==="string")return _.c6u(K);if(d==="number")return _.y6u(K)}};
_.Gy=function(K){if(typeof K!=="string")throw Error();return K};
Ty=function(K){if(K!=null&&typeof K!=="string")throw Error();return K};
_.ql=function(K){return K==null||typeof K==="string"?K:void 0};
zBB=function(K,d,f,H){if(K!=null&&K[Qc]===jS)return K;if(!Array.isArray(K))return f?H&2?((K=d[CE])||(K=new d,h6(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),K=d[CE]=K),d=K):d=new d:d=void 0,d;f=K[_.of]|0;H=f|H&32|H&2;H!==f&&Es(K,H);return new d(K)};
X4u=function(K,d,f){K=d?ZBO(K):_.Nl(K);return K==null?f?0:void 0:K|0};
v8u=function(K){return K};
Mtn=function(K){return K};
g8p=function(K,d,f,H,D,S){K=zBB(K,H,f,S);D&&(K=P9p(K));return K};
OJz=function(K){return[K,this.get(K)]};
ttY=function(){return N25||(N25=new LE(h6([]),void 0,void 0,void 0,YsG))};
sZ=function(K){var d=BK(JP);return d?K[d]:void 0};
E8S=function(K,d){var f=f===void 0?!1:f;if(BK(o8o)&&BK(JP)&&void 0===o8o){var H=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=H[JP];if(!D)return;if(D=D.reviveUnknownFields)try{D(H,d,$sX);return}catch(S){Dn(S)}}f&&(K=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(f=BK(JP))&&f in K&&(K=K[f])&&delete K[d])};
bJO=function(K,d){var f=BK(JP),H;Ns&&f&&((H=K[f])==null?void 0:H[d])!=null&&XH(hB5,3)};
lLX=function(K,d){d<100||XH(msu,1)};
T2z=function(K,d,f,H){var D=H!==void 0;H=!!H;var S=BK(JP),n;!D&&Ns&&S&&(n=K[S])&&kw(n,lLX);S=[];var u=K.length;n=4294967295;var a=!1,R=!!(d&64),F=R?d&128?0:-1:void 0;if(!(d&1)){var z=u&&K[u-1];z!=null&&typeof z==="object"&&z.constructor===Object?(u--,n=u):z=void 0;if(R&&!(d&128)&&!D){a=!0;var v;n=((v=WNp)!=null?v:v8u)(n-F,F,K,z)+F}}d=void 0;for(v=0;v<u;v++){var g=K[v];if(g!=null&&(g=f(g,H))!=null)if(R&&v>=n){var N=v-F,h=void 0;((h=d)!=null?h:d={})[N]=g}else S[v]=g}if(z)for(var m in z)u=z[m],u!=null&&
(u=f(u,H))!=null&&(v=+m,g=void 0,R&&!Number.isNaN(v)&&(g=v+F)<n?S[g]=u:(v=void 0,((v=d)!=null?v:d={})[m]=u));d&&(a?S.push(d):S[n]=d);D&&BK(JP)&&(K=sZ(K))&&K instanceof GkJ&&(S[JP]=A6O(K));return S};
r6Y=function(K){K[0]=ww(K[0]);K[1]=ww(K[1]);return K};
ww=function(K){switch(typeof K){case "number":return Number.isFinite(K)?K:""+K;case "bigint":return WK(K)?Number(K):""+K;case "boolean":return K?1:0;case "object":if(Array.isArray(K)){var d=K[_.of]|0;return K.length===0&&d&1?void 0:T2z(K,d,ww)}if(K!=null&&K[Qc]===jS)return qsp(K);if(K instanceof Gk){d=K.JSC$6820_value_;if(d==null)K="";else if(typeof d==="string")K=d;else{if(tpS){for(var f="",H=0,D=d.length-10240;H<D;)f+=String.fromCharCode.apply(null,d.subarray(H,H+=10240));f+=String.fromCharCode.apply(null,
H?d.subarray(H):d);d=btoa(f)}else d=_.eS(d);K=K.JSC$6820_value_=d}return K}if(K instanceof LE)return K=K.size!==0?Array.from(pE.prototype.entries.call(K),r6Y):void 0,K;return}return K};
fw=function(K,d){if(d){WNp=d==null||d===v8u||d[Qfn]!==jfY?v8u:d;try{return qsp(K)}finally{WNp=void 0}}return qsp(K)};
qsp=function(K){K=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return T2z(K,K[_.of]|0,ww)};
LNX=function(K){switch(typeof K){case "boolean":return C9o||(C9o=[0,void 0,!0]);case "number":return K>0?void 0:K===0?xsX||(xsX=[0,void 0]):[-K,void 0];case "string":return[0,K];case "object":return K}};
DM=function(K,d,f){return K=_.Hx(K,d[0],d[1],f?1:2)};
_.Hx=function(K,d,f,H){H=H===void 0?0:H;if(K==null){var D=32;f?(K=[f],D|=128):K=[];d&&(D=D&-8380417|(d&1023)<<13)}else{if(!Array.isArray(K))throw Error("L");D=K[_.of]|0;2048&D&&!(2&D)&&B2O();if(D&256)throw Error("N");if(D&64)return H!==0||D&2048||Es(K,D|2048),K;if(f&&(D|=128,f!==K[0]))throw Error("O");a:{f=K;D|=64;var S=f.length;if(S){var n=S-1,u=f[n];if(u!=null&&typeof u==="object"&&u.constructor===Object){d=D&128?0:-1;n-=d;if(n>=1024)throw Error("Q");for(var a in u)S=+a,S<n&&(f[S+d]=u[a],delete u[a]);
D=D&-8380417|(n&1023)<<13;break a}}if(d){a=Math.max(d,S-(D&128?0:-1));if(a>1024)throw Error("R");D=D&-8380417|(a&1023)<<13}}}D|=64;H===0&&(D|=2048);Es(K,D);return K};
B2O=function(){XH(J6z,5)};
w4z=function(K,d){if(typeof K!=="object")return K;if(Array.isArray(K)){var f=K[_.of]|0;return K.length===0&&f&1?void 0:sfz(K,f,d)}if(K!=null&&K[Qc]===jS)return kkY(K);if(K instanceof LE){d=K.arrayState;if(d&2)return K;if(!K.size)return;f=h6(Array.from(pE.prototype.entries.call(K)));if(K.valueCtor)for(K=0;K<f.length;K++){var H=f[K],D=H[1];D==null||typeof D!=="object"?D=void 0:D!=null&&D[Qc]===jS?D=kkY(D):Array.isArray(D)?D=sfz(D,D[_.of]|0,!!(d&32)):D=void 0;H[1]=D}return f}if(K instanceof Gk)return K};
sfz=function(K,d,f){if(d&2)return K;!f||4096&d||16&d?K=Vx(K,d,!1,f&&!(d&16)):($8(K,34),d&4&&Object.freeze(K));return K};
Sw=function(K,d,f){K=new K.constructor(d);f&&(K.copyOnWrite=mN);K.noLegacyNull=mN;return K};
kkY=function(K){var d=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=d[_.of]|0;return W4(K,f)?K:yx(K,d,f)?Sw(K,d):Vx(d,f)};
Vx=function(K,d,f,H){H!=null||(H=!!(34&d));K=T2z(K,d,w4z,H);H=32;f&&(H|=2);d=d&8380609|H;Es(K,d);return K};
P9p=function(K){var d=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=d[_.of]|0;return W4(K,f)?yx(K,d,f)?Sw(K,d,!0):new K.constructor(Vx(d,f,!1)):K};
I6=function(K){if(K.copyOnWrite!==mN)return!1;var d=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;d=Vx(d,d[_.of]|0);$8(d,2048);K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=d;K.copyOnWrite=void 0;K.noLegacyNull=void 0;return!0};
Uj=function(K){if(!I6(K)&&W4(K,K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.of]|0))throw Error();};
Fe=function(K,d){d===void 0&&(d=K[_.of]|0);d&32&&!(d&4096)&&Es(K,d|4096)};
yx=function(K,d,f){return f&2?!0:f&32&&!(f&4096)?(Es(d,f|2),K.copyOnWrite=mN,!0):!1};
zi=function(K,d,f,H,D){var S=f+(D?0:-1),n=K.length-1;if(n>=1+(D?0:-1)&&S>=n){var u=K[n];if(u!=null&&typeof u==="object"&&u.constructor===Object)return u[f]=H,d}if(S<=n)return K[S]=H,d;if(H!==void 0){var a;n=((a=d)!=null?a:d=K[_.of]|0)>>13&1023||536870912;f>=n?H!=null&&(S={},K[n+(D?0:-1)]=(S[f]=H,S)):K[S]=H}return d};
_.M8=function(K,d,f,H,D){var S=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=S[_.of]|0;H=W4(K,n)?1:H;D=!!D||H===3;H===2&&I6(K)&&(S=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=S[_.of]|0);K=ZJJ(S,d);var u=K===Xe?7:K[_.of]|0,a=eBB(u,n);var R=4&a?!1:!0;if(R){4&a&&(K=SS(K),u=0,a=vx(a,n),n=zi(S,n,d,K));for(var F=0,z=0;F<K.length;F++){var v=f(K[F]);v!=null&&(K[z++]=v)}z<F&&(K.length=z);f=(a|4)&-513;a=f&=-1025;a&=-4097}a!==u&&(Es(K,a),2&a&&Object.freeze(K));return K=p4N(K,a,S,
n,d,H,R,D)};
p4N=function(K,d,f,H,D,S,n,u){var a=d;S===1||(S!==4?0:2&d||!(16&d)&&32&H)?Px(d)||(d|=!K.length||n&&!(4096&d)||32&H&&!(4096&d||16&d)?2:256,d!==a&&Es(K,d),Object.freeze(K)):(S===2&&Px(d)&&(K=SS(K),a=0,d=vx(d,H),H=zi(f,H,D,K)),Px(d)||(u||(d|=16),d!==a&&Es(K,d)));2&d||!(4096&d||16&d)||Fe(f,H);return K};
ZJJ=function(K,d,f){K=g4(K,d,f);return Array.isArray(K)?K:Xe};
eBB=function(K,d){2&d&&(K|=2);return K|1};
Px=function(K){return!!(2&K)&&!!(4&K)||!!(256&K)};
Kto=function(K){return _.r2(K,!0)};
dlu=function(K,d){var f=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=f[_.of]|0;a:{var D=H;H=W4(K,H);!H&&I6(K)&&(f=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=f[_.of]|0);var S=g4(f,d);K=!1;if(S==null){if(H){d=ttY();break a}S=[]}else if(S.constructor===LE)if(S.arrayState&2&&!H)S=Array.from(pE.prototype.entries.call(S));else{d=S;break a}else Array.isArray(S)?K=!!((S[_.of]|0)&2):S=[];if(H){if(!S.length){d=ttY();break a}K||(K=!0,h6(S))}else if(K){K=!1;H=S;H=SS(H);for(S=0;S<
H.length;S++){var n=H[S]=SS(H[S]);Array.isArray(n[1])&&(n[1]=h6(n[1]))}S=H}!K&&D&32&&W5n(S);H=new LE(S,void 0,X4u,X4u);D=zi(f,D,d,H);K||Fe(f,D);d=H}return d};
_.N8=function(K,d,f,H){Uj(K);var D=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=D[_.of]|0;if(f==null)return zi(D,S,d),K;var n=f===Xe?7:f[_.of]|0,u=n,a=Px(n),R=a||Object.isFrozen(f);a||(n=0);R||(f=SS(f),u=0,n=vx(n,S),R=!1);n|=5;var F;a=(F=lnB(n))!=null?F:0;for(F=0;F<f.length;F++){var z=f[F],v=H(z,a);Object.is(z,v)||(R&&(f=SS(f),u=0,n=vx(n,S),R=!1),f[F]=v)}n!==u&&(R&&(f=SS(f),n=vx(n,S)),Es(f,n));zi(D,S,d,f);return K};
_.Ys=function(K,d,f,H,D){Uj(K);var S=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;zi(S,S[_.of]|0,d,(H==="0"?Number(f)===0:f===H)?void 0:f,D);return K};
_.t4=function(K,d,f){if(d&2)throw Error();var H=x8(d),D=ZJJ(K,f,H),S=D===Xe?7:D[_.of]|0,n=eBB(S,d);if(2&n||Px(n)||16&n)D=SS(D),S=0,n=vx(n,d),zi(K,d,f,D,H);n&=-13;n!==S&&Es(D,n);return D};
f7o=function(K){if(Ns){var d;return(d=K[Ej])!=null?d:K[Ej]=new Map}if(Ej in K)return K[Ej];d=new Map;Object.defineProperty(K,Ej,{value:d});return d};
Dlp=function(K,d,f,H,D){var S=f7o(K),n=HEO(S,K,d,f,D);n!==H&&(n&&(d=zi(K,d,n,void 0,D)),S.set(f,H));return d};
HEO=function(K,d,f,H,D){var S=K.get(H);if(S!=null)return S;for(var n=S=0;n<H.length;n++){var u=H[n];g4(d,u,D)!=null&&(S!==0&&(f=zi(d,f,S,void 0,D)),S=u)}K.set(H,S);return S};
h4=function(K,d,f,H,D){var S=!1;H=g4(K,H,D,function(n){var u=zBB(n,f,!1,d);S=u!==n&&u!=null;return u});
if(H!=null)return S&&!W4(H)&&Fe(K,d),H};
VSX=function(K,d,f,H,D,S,n,u){var a=W4(K,f);S=a?1:S;n=!!n||S===3;a=u&&!a;(S===2||a)&&I6(K)&&(d=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=d[_.of]|0);K=ZJJ(d,D);var R=K===Xe?7:K[_.of]|0,F=eBB(R,f);if(u=!(4&F)){var z=K,v=f,g=!!(2&F);g&&(v|=2);for(var N=!g,h=!0,m=0,T=0;m<z.length;m++){var r=zBB(z[m],H,!1,v);if(r instanceof H){if(!g){var J=W4(r);N&&(N=!J);h&&(h=J)}z[T++]=r}}T<m&&(z.length=T);F|=4;F=h?F&-4097:F|4096;F=N?F|8:F&-9}F!==R&&(Es(K,F),2&F&&Object.freeze(K));if(a&&!(8&F||!K.length&&
(S===1||(S!==4?0:2&F||!(16&F)&&32&f)))){Px(F)&&(K=SS(K),F=vx(F,f),f=zi(d,f,D,K));H=K;a=F;for(R=0;R<H.length;R++)z=H[R],F=P9p(z),z!==F&&(H[R]=F);a|=8;F=a=H.length?a|4096:a&-4097;Es(K,F)}return K=p4N(K,F,d,f,D,S,u,n)};
SZY=function(K){K==null&&(K=void 0);return K};
vx=function(K,d){return K=(2&d?K|2:K&-3)&-273};
_.yPO=function(K,d,f,H,D){Uj(K);d=_.M8(K,d,D,2,!0);var S;D=(S=lnB(d===Xe?7:d[_.of]|0))!=null?S:0;d.push(f(H,D));return K};
nwz=function(K,d,f,H,D,S,n){Uj(K);var u=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;K=VSX(K,u,u[_.of]|0,f,d,2,!0);if(S&&n)D!=null||(D=K.length-1),jt(K,D),K.splice(D,S),K.length||(K[_.of]&=-4097);else{if(S){if(typeof D!=="number"||D<0||D>K.length)throw Error();}else H=H!=null?H:new f;D!=void 0?K.splice(D,S,H):K.push(H);D=f=K===Xe?7:K[_.of]|0;(H=W4(H))?(f&=-9,K.length===1&&(f&=-4097)):f|=4096;f!==D&&Es(K,f);H||Fe(u)}};
iEX=function(K,d){if(typeof K==="string")return new bN($JN(K),d);if(Array.isArray(K))return new bN(new Uint8Array(K),d);if(K.constructor===Uint8Array)return new bN(K,!1);if(K.constructor===ArrayBuffer)return K=new Uint8Array(K),new bN(K,!1);if(K.constructor===Gk)return d=mb(K)||new Uint8Array(0),new bN(d,!0,K);if(K instanceof Uint8Array)return K=K.constructor===Uint8Array?K:new Uint8Array(K.buffer,K.byteOffset,K.byteLength),new bN(K,!1);throw Error();};
Wx=function(){var K=function(){throw Error();};
Object.setPrototypeOf(K,K.prototype);return K};
uiO=function(K,d){var f=f===void 0?cPS:f;return new Gi(K,d,f)};
R5O=function(K,d,f,H,D){d=a7B(d,H);d!=null&&(f=_.I7z(K,f),D(d,K),_.UlX(K,f))};
A4=function(K,d,f,H){var D=H[K];if(D)return D;D={};D.binaryFields=H;D.messageMetadata=LNX(H[0]);var S=H[1],n=1;S&&S.constructor===Object&&(D.extensions=S,S=H[++n],typeof S==="function"&&(D.isMessageSet=!0,FtX!=null||(FtX=S),z5z!=null||(z5z=H[n+1]),S=H[n+=2]));for(var u={};S&&Array.isArray(S)&&S.length&&typeof S[0]==="number"&&S[0]>0;){for(var a=0;a<S.length;a++)u[S[a]]=S;S=H[++n]}for(a=1;S!==void 0;){typeof S==="number"&&(a+=S,S=H[++n]);var R=void 0;if(S instanceof Gi)var F=S;else F=XKz,n--;S=void 0;
if((S=F)==null?0:S.$$isMsg){S=H[++n];R=H;var z=n;typeof S==="function"&&(S=S(),R[z]=S);R=S}S=H[++n];z=a+1;typeof S==="number"&&S<0&&(z-=S,S=H[++n]);for(;a<z;a++){var v=u[a];R?f(D,a,F,R,v):d(D,a,F,v)}}return H[K]=D};
MSG=function(K){return Array.isArray(K)?K[0]instanceof Gi?K:[vwG,K]:[K,void 0]};
a7B=function(K,d){if(K instanceof _.Ti)return K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(K))return DM(K,d,!1)};
PUN=function(K,d,f,H){var D=f.$$binaryReaderFn;K[d]=H?function(S,n,u){return D(S,n,u,H)}:D};
gwp=function(K,d,f,H,D){var S=f.$$binaryReaderFn,n,u;K[d]=function(a,R,F){return S(a,R,F,u||(u=A4(r4,PUN,gwp,H).messageMetadata),n||(n=OEz(H)),D)}};
OEz=function(K){var d=K[NwO];if(d!=null)return d;var f=A4(r4,PUN,gwp,K);d=f.isMessageSet?function(H,D){return FtX(H,D,f)}:function(H,D){for(;YZn(D)&&D.nextWireType_!=4;){var S=D.nextField_,n=f[S];
if(n==null){var u=f.extensions;u&&(u=u[S])&&(u=tSz(u),u!=null&&(n=f[S]=u))}if(n==null||!n(D,H,S)){u=D;n=u.fieldCursor_;q8(u);if(u.discardUnknownFields)var a=void 0;else{var R=u.decoder_.cursor_-n;u.decoder_.cursor_=n;a=owO(u.decoder_,R)}R=u=n=void 0;var F=H;a&&((n=(u=(R=F[JP])!=null?R:F[JP]=new GkJ)[S])!=null?n:u[S]=[]).push(a)}}if(H=sZ(H))H.reviveUnknownFields=f.binaryFields[$lO];return!0};
K[NwO]=d;K[$lO]=EwS.bind(K);return d};
EwS=function(K,d,f,H){var D=this[r4],S=this[NwO],n=DM(void 0,D.messageMetadata,!1),u=sZ(K);if(u){var a=!1,R=D.extensions;if(R){D=function(N,h,m){if(m.length!==0)if(R[h])for(N=_.y(m),h=N.next();!h.done;h=N.next()){h=h5O(h.value);try{a=!0,S(n,h)}finally{h.free()}}else H==null||H(K,h,m)};
if(d==null)kw(u,D);else if(u!=null){var F=u[d];F&&D(u,d,F)}if(a){var z=K[_.of]|0;if(z&2&&z&2048&&(f==null||!f.reviveIntoImmutable))throw Error();var v=x8(z),g=function(N,h){if(g4(K,N,v)!=null)switch(f==null?void 0:f.resolutionBehavior){case 1:return;default:throw Error();}h!=null&&(z=zi(K,z,N,h,v));delete u[N]};
d==null?ANX(n,n[_.of]|0,function(N,h){g(N,h)}):g(d,g4(n,d,v))}}}};
tSz=function(K){K=MSG(K);var d=K[0].$$binaryReaderFn;if(K=K[1]){var f=OEz(K),H=A4(r4,PUN,gwp,K).messageMetadata;return function(D,S,n){return d(D,S,n,H,f)}}return d};
Qx=function(K,d,f){K[d]=f.$$binaryWriterFn};
Cw=function(K,d,f,H){var D,S,n=f.$$binaryWriterFn;K[d]=function(u,a,R){return n(u,a,R,S||(S=A4(jw,Qx,Cw,H).messageMetadata),D||(D=bEn(H)))}};
bEn=function(K){var d=K[mlJ];if(!d){var f=A4(jw,Qx,Cw,K);d=function(H,D){return l7z(H,D,f)};
K[mlJ]=d}return d};
l7z=function(K,d,f){ANX(K,K[_.of]|0,function(H,D){if(D!=null){var S=Wtz(f,H);S?S(d,D,H):H<500||XH(GyB,3)}});
(K=sZ(K))&&kw(K,function(H,D,S){xs(d,d.encoder_.end());for(H=0;H<S.length;H++)xs(d,mb(S[H])||new Uint8Array(0))})};
Wtz=function(K,d){var f=K[d];if(f)return f;if(f=K.extensions)if(f=f[d]){f=MSG(f);var H=f[0].$$binaryWriterFn;if(f=f[1]){var D=bEn(f),S=A4(jw,Qx,Cw,f).messageMetadata;f=K.isMessageSet?z5z(S,D):function(n,u,a){return H(n,u,a,S,D)}}else f=H;
return K[d]=f}};
_.APz=function(K,d,f){if(Array.isArray(d)){var H=d[_.of]|0;if(H&4)return d;for(var D=0,S=0;D<d.length;D++){var n=K(d[D]);n!=null&&(d[S++]=n)}S<D&&(d.length=S);f&&(Es(d,(H|5)&-1537),H&2&&Object.freeze(d));return d}};
_.Bx=function(K,d,f){return new Gi(K,d,f)};
_.TwJ=function(K,d,f){return new Gi(K,d,f)};
_.J4=function(K,d,f){zi(K,K[_.of]|0,d,f,x8(K[_.of]|0))};
rPX=function(K,d,f){d=_.az(d);d!=null&&(_.sj(K,f,1),K=K.encoder_,f=ks||(ks=new DataView(new ArrayBuffer(8))),f.setFloat64(0,+d,!0),w2=f.getUint32(0,!0),ZL=f.getUint32(4,!0),_.w4(K,w2),_.w4(K,ZL))};
_.ZM=function(K,d,f){d=RBS(d);if(d!=null){switch(typeof d){case "string":qZB(d)}if(d!=null)switch(_.sj(K,f,0),typeof d){case "number":K=K.encoder_;et(d);Qzn(K,w2,ZL);break;case "bigint":f=BigInt.asUintN(64,d);f=new jzu(Number(f&BigInt(4294967295)),Number(f>>BigInt(32)));Qzn(K.encoder_,f.JSC$6872_lo,f.JSC$6872_hi);break;default:f=qZB(d),Qzn(K.encoder_,f.JSC$6872_lo,f.JSC$6872_hi)}}};
xlG=function(K,d,f){d=_.Nl(d);d!=null&&d!=null&&(_.sj(K,f,0),_.CUz(K.encoder_,d))};
_.JPG=function(K,d,f){BwX(K,f,FNo(d))};
_.sz5=function(K,d,f){d=_.kSO(d);d!=null&&(_.sj(K,f,0),K.encoder_.JSC$6874_buffer_.push(d?1:0))};
_.wKO=function(K,d,f){d=_.ql(d);d!=null&&kyp(K,f,DJY(d))};
ZEn=function(K,d,f,H,D){d=a7B(d,H);d!=null&&(f=_.I7z(K,f),D(d,K),_.UlX(K,f))};
_.e5X=function(K,d,f){d=d==null||typeof d=="string"||d instanceof Gk?d:void 0;d!=null&&kyp(K,f,iEX(d,!0).buffer)};
_.pKz=function(K,d,f){d=_.Nl(d);d!=null&&(d=parseInt(d,10),_.sj(K,f,0),_.CUz(K.encoder_,d))};
_.ew=function(K,d){return function(f,H){var D={treatNewDataAsImmutable:!0};H&&Object.assign(D,H);f=h5O(f,void 0,void 0,D);try{var S=new K,n=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;OEz(d)(n,f);var u=S}finally{f.free()}return u}};
_.pw=function(K){return function(d){return KbY(d,K)}};
d8N=function(K){return function(){return KbY(this,K)}};
_.fMn=function(K){return J6(function(d){return d instanceof K&&!W4(d)})};
_.KM=function(K){return function(d){return HwS(K,d)}};
y4z=function(K,d){return D8z({child:K,origin:d||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:VwG,getPayloadCase:function(f){return f.getPayloadCase()},
createInitMessage:function(f){var H=new d5,D=new Sjp;f=_.fM(D,1,f);return _.Hg(H,5,Da,f)}})};
VL=function(K){return{valueOf:K}.valueOf()};
iw5=function(){var K=null;if(!nsS)return K;try{var d=function(f){return f};
K=nsS.createPolicy("goog#html",{createHTML:d,createScript:d,createScriptURL:d})}catch(f){}return K};
ueX=function(){c4p===void 0&&(c4p=iw5());return c4p};
_.yL=function(K){var d=ueX();K=d?d.createScriptURL(K):K;return new Se(K)};
_.nM=function(K){if(K instanceof Se)return K.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
i$=function(K){return K.toString().indexOf("`")===-1};
u$=function(K){return new _.cg(aMp,K)};
ao=function(K){return K instanceof _.cg};
_.Io=function(K){if(ao(K))return K.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
U2=function(K){return new IMz(function(d){return d.substr(0,K.length+1).toLowerCase()===K+":"})};
Ro=function(K,d){d=d===void 0?U8u:d;if(ao(K))return K;for(var f=0;f<d.length;++f){var H=d[f];if(H instanceof IMz&&H.isValid(K))return u$(K)}};
_.Xa=function(K,d){d=d===void 0?U8u:d;return Ro(K,d)||zY};
_.MD=function(K){var d=window;if(typeof MediaSource!=="undefined"&&K instanceof MediaSource||typeof d.ManagedMediaSource!=="undefined"&&K instanceof d.ManagedMediaSource)return u$(URL.createObjectURL(K));d=K.type;d.toLowerCase()==="application/octet-stream"?d=!0:(d=d.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),d=(d==null?void 0:d.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(d[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(d[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(d[1])||/^font\/[\w-]+$/i.test(d[1])));if(!d)throw Error("da");return u$(URL.createObjectURL(K))};
_.g5=function(K){for(var d=_.Pg.apply(1,arguments),f=[K[0]],H=0;H<d.length;H++)f.push(String(d[H])),f.push(K[H+1]);return u$(f.join(""))};
_.FbS=function(K){if(!Rqz){a:{var d=document.createElement("a");try{d.href=K}catch(f){K=void 0;break a}K=d.protocol;K=K===":"||K===""?"https:":K}return K}try{d=new URL(K)}catch(f){return"https:"}return d.protocol};
_.O2=function(K){K instanceof _.cg?K=_.Io(K):K=zqY.test(K)?K:void 0;return K};
ND=function(K,d){d=_.O2(d);d!==void 0&&(K.href=d)};
ta=function(K){var d=ueX();K=d?d.createHTML(K):K;return new YG(K)};
oo=function(K){if(K instanceof YG)return K.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.$G=function(K,d){K.src=_.nM(d).toString()};
XxB=function(K,d){K.setAttribute("sandbox","");for(var f=0;f<d.length;f++)K.sandbox.supports&&!K.sandbox.supports(d[f])||K.sandbox.add(d[f])};
_.vsO=function(K,d,f){K.removeAttribute("srcdoc");switch(d){case 0:if(f instanceof Se)throw new E2("TrustedResourceUrl",0);XxB(K,[]);d=_.O2(f);d!==void 0&&(K.src=d);break;case 1:if(!(f instanceof Se))throw new E2(typeof f,1);XxB(K,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.$G(K,f);break;case 2:if(f instanceof Se)throw new E2("TrustedResourceUrl",2);XxB(K,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
d=_.O2(f);d!==void 0&&(K.src=d);break;default:_.nE(d)}};
_.ha=function(K,d,f,H){d=_.O2(d);return d!==void 0?K.open(d,f,H):null};
_.b$=function(K){K=K===void 0?document:K;var d,f;K=(f=(d=K).querySelector)==null?void 0:f.call(d,"script[nonce]");return K==null?"":K.nonce||K.getAttribute("nonce")||""};
_.l$=function(K){var d=ueX();K=d?d.createScript(K):K;return new _.mc(K)};
Wg=function(K){if(K instanceof _.mc)return K.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
MwX=function(K){var d=_.b$(K.ownerDocument);d&&K.setAttribute("nonce",d)};
_.GY=function(K,d){K.textContent=Wg(d);MwX(K)};
_.Aa=function(K,d){K.src=_.nM(d);MwX(K)};
_.TY=function(K,d){if(K.nodeType===1&&/^(script|style)$/i.test(K.tagName))throw Error("da");K.innerHTML=oo(d)};
_.r5=function(K,d,f,H){if(K.length===0)throw Error("da");K=K.map(function(S){if(S instanceof PNp)S=S.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return S});
var D=f.toLowerCase();if(K.every(function(S){return D.indexOf(S)!==0}))throw Error("ea`"+f);
d.setAttribute(f,H)};
_.qD=function(K,d,f){if(d instanceof Se)K.href=_.nM(d).toString(),K.rel=f;else{if(gs5.indexOf(f)===-1)throw Error("fa`"+f);d=_.O2(d);d!==void 0&&(K.href=d,K.rel=f)}};
Owz=function(K){return"function"==typeof _.je&&K instanceof _.je};
_.N4X=function(K){if(Owz(K))return K.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.CM=function(K,d){d=_.O2(d);d!==void 0&&(K.href=d)};
xG=function(K,d){K&&(d=K.indexOf(d),0<=d&&K.splice(d,1))};
LM=function(K){return typeof K==="function"};
Yju=function(K){return K instanceof Bg||K&&"closed"in K&&LM(K.remove)&&LM(K.add)&&LM(K.unsubscribe)};
Ja=function(){};
s2=function(K){twG(function(){throw K;})};
kG=function(K){return K};
Za=function(){return osN(_.Pg.apply(0,arguments))};
osN=function(K){return K.length===0?kG:K.length===1?K[0]:function(d){return K.reduce(function(f,H){return H(f)},d)}};
$8o=function(K){var d;return(d=K!=null?K:void 0)!=null?d:Promise};
Esu=function(K,d){return new ee(function(f){var H=0;return d.schedule(function(){H===K.length?f.complete():(f.next(K[H++]),f.closed||this.schedule())})})};
hqX=function(K,d){if(!K)throw Error("ga");return new ee(function(f){var H=new Bg;H.add(d.schedule(function(){var D=K[Symbol.asyncIterator]();H.add(d.schedule(function(){var S=this;D.next().then(function(n){n.done?f.complete():(f.next(n.value),S.schedule())})}))}));
return H})};
bwX=function(K,d,f){d=d.schedule(function(){try{f.call(this)}catch(H){K.error(H)}},0);
K.add(d)};
m8B=function(K,d){return new ee(function(f){var H;f.add(d.schedule(function(){H=K[pM]();bwX(f,d,function(){var D=H.next(),S=D.value;D.done?f.complete():(f.next(S),this.schedule())})}));
return function(){var D;return LM((D=H)==null?void 0:D.return)&&H.return()}})};
lMp=function(K,d){return new ee(function(f){var H=new Bg;H.add(d.schedule(function(){var D=K[K7]();H.add(D.subscribe({next:function(S){H.add(d.schedule(function(){return f.next(S)}))},
error:function(S){H.add(d.schedule(function(){return f.error(S)}))},
complete:function(){H.add(d.schedule(function(){return f.complete()}))}}))}));
return H})};
WbG=function(K,d){return new ee(function(f){return d.schedule(function(){return K.then(function(H){f.add(d.schedule(function(){f.next(H);f.add(d.schedule(function(){return f.complete()}))}))},function(H){f.add(d.schedule(function(){return f.error(H)}))})})})};
GiG=function(K){return new TypeError("ha`"+(K!==null&&typeof K==="object"?"an invalid object":"'"+K+"'"))};
T4z=function(K,d){if(K!=null){if(LM(K[K7]))return lMp(K,d);if(A4o(K))return Esu(K,d);if(LM(K==null?void 0:K.then))return WbG(K,d);if(Symbol.asyncIterator&&LM(K==null?void 0:K[Symbol.asyncIterator]))return hqX(K,d);if(LM(K==null?void 0:K[pM]))return m8B(K,d)}throw GiG(K);};
f7=function(K,d){return d?T4z(K,d):dy(K)};
dy=function(K){if(K instanceof ee)return K;if(K!=null){if(LM(K[K7]))return r4z(K);if(A4o(K))return qjX(K);if(LM(K==null?void 0:K.then))return Q65(K);if(Symbol.asyncIterator&&LM(K==null?void 0:K[Symbol.asyncIterator]))return j6o(K);if(LM(K==null?void 0:K[pM]))return CNo(K)}throw GiG(K);};
r4z=function(K){return new ee(function(d){var f=K[K7]();if(LM(f.subscribe))return f.subscribe(d);throw new TypeError("ia");})};
qjX=function(K){return new ee(function(d){for(var f=0;f<K.length&&!d.closed;f++)d.next(K[f]);d.complete()})};
Q65=function(K){return new ee(function(d){K.then(function(f){d.closed||(d.next(f),d.complete())},function(f){return d.error(f)}).then(null,s2)})};
CNo=function(K){return new ee(function(d){for(var f=K[pM]();!d.closed;){var H=f.next(),D=H.value;H.done?d.complete():d.next(D)}return function(){return LM(f==null?void 0:f.return)&&f.return()}})};
j6o=function(K){return new ee(function(d){x8O(K,d).catch(function(f){return d.error(f)})})};
x8O=function(K,d){var f,H,D,S,n,u;return _.c(function(a){switch(a.nextAddress){case 1:_.HF(a,2,3);var R=K[Symbol.asyncIterator];S=R!==void 0?R.call(K):new LbY(_.y(K));case 5:return _.I(a,S.next(),8);case 8:H=a.yieldResult;if(H.done){a.jumpTo(3);break}n=H.value;d.next(n);a.jumpTo(5);break;case 3:_.Vu(a);_.Sl(a,9);if(!H||H.done||!(D=S.return)){a.jumpTo(9);break}return _.I(a,D.call(S),9);case 9:_.Vu(a,0,0,1);if(f)throw f.error;_.yu(a,10,1);break;case 10:_.yu(a,4);break;case 2:u=_.n7(a);f={error:u};a.jumpTo(3);
break;case 4:d.complete(),_.iQ(a)}})};
cF=function(K,d){return d?Esu(K,d):qjX(K)};
B4p=function(K){return LM(K[K.length-1])?K.pop():void 0};
uQ=function(K){var d=K[K.length-1];return d&&LM(d.schedule)?K.pop():void 0};
aE=function(){var K=_.Pg.apply(0,arguments),d=uQ(K);return d?Esu(K,d):cF(K)};
IE=function(K){var d=LM(K)?K:function(){return K};
return new ee(function(f){return f.error(d())})};
Uo=function(K){return function(d){if(LM(d==null?void 0:d.lift))return d.lift(function(f){try{return K(f,this)}catch(H){this.error(H)}});
throw new TypeError("ja");}};
Fy=function(){return Uo(function(K,d){var f=null;K._refCount++;var H=new RE(d,void 0,void 0,void 0,function(){if(!K||K._refCount<=0||0<--K._refCount)f=null;else{var D=K._connection,S=f;f=null;!D||S&&D!==S||D.unsubscribe();d.unsubscribe()}});
K.subscribe(H);H.closed||(f=K.connect())})};
s6z=function(){var K=J4z;var d=d===void 0?0:d;return Uo(function(f,H){H.add(K.schedule(function(){return f.subscribe(H)},d))})};
vF=function(K){return Uo(function(d,f){var H=0;d.subscribe(new RE(f,function(D){f.next(K.call(void 0,D,H++))}))})};
wxu=function(K){return vF(function(d){return kiY(d)?K.apply(null,_.Me(d)):K(d)})};
dDS=function(K){if(K.length===1){var d=K[0];if(ZwS(d))return{args:d,keys:null};if(d&&typeof d==="object"&&eqn(d)===pxJ)return K=KcX(d),{args:K.map(function(f){return d[f]}),
keys:K}}return{args:K,keys:null}};
PF=function(){var K=_.Pg.apply(0,arguments),d=uQ(K),f=B4p(K);K=dDS(K);var H=K.args,D=K.keys;if(H.length===0)return f7([],d);d=new ee(faN(H,d,D?function(S){for(var n={},u=0;u<S.length;u++)n[D[u]]=S[u];return n}:kG));
return f?d.pipe(wxu(f)):d};
faN=function(K,d,f){f=f===void 0?kG:f;return function(H){HMB(d,function(){for(var D=K.length,S=Array(D),n=D,u=K.map(function(){return!1}),a=!0,R={i$jscomp$260:0};R.i$jscomp$260<D;R={i$jscomp$260:R.i$jscomp$260},R.i$jscomp$260++)HMB(d,function(F){return function(){f7(K[F.i$jscomp$260],d).subscribe(new gy(H,function(z){S[F.i$jscomp$260]=z;
a&&(u[F.i$jscomp$260]=!0,a=!u.every(kG));a||H.next(f(S.slice()))},function(){return--n===0}))}}(R),H)},H)}};
HMB=function(K,d,f){K?f.add(K.schedule(d)):d()};
DDu=function(K,d,f,H){var D=[],S=0,n=0,u=!1,a=function(R){S++;dy(f(R,n++)).subscribe(new RE(d,function(F){d.next(F)},void 0,function(){S--;
for(var F={};D.length&&S<H;F={bufferedValue:void 0})F.bufferedValue=D.shift(),a(F.bufferedValue);!u||D.length||S||d.complete()}))};
K.subscribe(new RE(d,function(R){return S<H?a(R):D.push(R)},void 0,function(){u=!0;
!u||D.length||S||d.complete()}));
return function(){D=null}};
Oo=function(K,d){var f=f===void 0?Infinity:f;if(LM(d))return Oo(function(H,D){return vF(function(S,n){return d(H,S,D,n)})(dy(K(H,D)))},f);
typeof d==="number"&&(f=d);return Uo(function(H,D){return DDu(H,D,K,f)})};
VeY=function(K){K=K===void 0?Infinity:K;return Oo(kG,K)};
S2S=function(){var K=_.Pg.apply(0,arguments);return VeY(1)(cF(K,uQ(K)))};
YQ=function(K){return new ee(function(d){dy(K()).subscribe(d)})};
t5=function(K,d,f){if(LM(f)){var H=f;f=void 0}if(H)return t5(K,d,f).pipe(wxu(H));H=_.y(LM(K.addEventListener)&&LM(K.removeEventListener)?yaO.map(function(n){return function(u){return K[n](d,u,f)}}):LM(K.addListener)&&LM(K.removeListener)?nG5.map(iMo(K,d)):LM(K.on)&&LM(K.off)?caB.map(iMo(K,d)):[]);
var D=H.next().value,S=H.next().value;return!D&&A4o(K)?Oo(function(n){return t5(n,d,f)})(cF(K)):new ee(function(n){if(!D)throw new TypeError("ka");
var u=function(){var a=_.Pg.apply(0,arguments);return n.next(1<a.length?a:a[0])};
D(u);return function(){return S(u)}})};
iMo=function(K,d){return function(f){return function(H){return K[f](d,H)}}};
$Q=function(){var K=_.Pg.apply(0,arguments),d=uQ(K);var f=typeof K[K.length-1]==="number"?K.pop():Infinity;return K.length?K.length===1?dy(K[0]):VeY(f)(cF(K,d)):oE};
aao=function(K){return K.length===1&&uap(K[0])?K[0]:K};
Iaz=function(){var K=aao(_.Pg.apply(0,arguments));return Uo(function(d,f){var H=[d].concat(_.Me(K)),D=function(){if(!f.closed)if(H.length>0){try{var S=dy(H.shift())}catch(u){D();return}var n=new RE(f,void 0,Ja,Ja);f.add(S.subscribe(n));n.add(D)}else f.complete()};
D()})};
Eo=function(K){return Uo(function(d,f){var H=0;d.subscribe(new RE(f,function(D){return K.call(void 0,D,H++)&&f.next(D)}))})};
RXz=function(){var K=_.Pg.apply(0,arguments);K=aao(K);return K.length===1?dy(K[0]):new ee(UDz(K))};
UDz=function(K){return function(d){for(var f=[],H={i$jscomp$263:0};f&&!d.closed&&H.i$jscomp$263<K.length;H={i$jscomp$263:H.i$jscomp$263},H.i$jscomp$263++)f.push(dy(K[H.i$jscomp$263]).subscribe(new RE(d,function(D){return function(S){if(f){for(var n=0;n<f.length;n++)n!==D.i$jscomp$263&&f[n].unsubscribe();f=null}d.next(S)}}(H))))}};
FcS=function(){var K=_.Pg.apply(0,arguments),d=B4p(K),f=aao(K);return f.length?new ee(function(H){var D=f.map(function(){return[]}),S=f.map(function(){return!1});
H.add(function(){D=S=null});
for(var n={sourceIndex$jscomp$1:0};!H.closed&&n.sourceIndex$jscomp$1<f.length;n={sourceIndex$jscomp$1:n.sourceIndex$jscomp$1},n.sourceIndex$jscomp$1++)dy(f[n.sourceIndex$jscomp$1]).subscribe(new RE(H,function(u){return function(a){D[u.sourceIndex$jscomp$1].push(a);D.every(function(R){return R.length})&&(a=D.map(function(R){return R.shift()}),H.next(d?d.apply(null,_.Me(a)):a),D.some(function(R,F){return!R.length&&S[F]})&&H.complete())}}(n),void 0,function(u){return function(){S[u.sourceIndex$jscomp$1]=
!0;
!D[u.sourceIndex$jscomp$1].length&&H.complete()}}(n)));
return function(){D=S=null}}):oE};
zXX=function(K){var d,f,H;return!!K&&typeof K.active==="boolean"&&typeof((d=K.clock)==null?void 0:d.now)==="function"&&((f=K.clock)==null?void 0:f.timeline)!==void 0&&!((H=K.lastMeasurement)==null||!H.timestamp)&&typeof K.equivalentTo==="function"&&typeof K.extrapolateToNow==="function"&&typeof K.extrapolateToTime==="function"&&typeof K.map==="function"&&typeof K.joinWith==="function"};
XgX=function(K){function d(f){return typeof f==="boolean"||typeof f==="string"||typeof f==="number"||f===void 0||f===null}
return d(K)?!0:Array.isArray(K)?K.every(d):typeof K==="object"?Object.keys(K).every(function(f){return typeof f==="string"})&&Object.values(K).every(function(f){return Array.isArray(f)?f.every(d):d(f)}):!1};
vGp=function(K){if(XgX(K))return K;if(zXX(K))return{lastMeasurement:{value:vGp(K.lastMeasurement.value),timestamp:h5(K.lastMeasurement.timestamp,new bQ(0,K.lastMeasurement.timestamp.timeline))},active:K.active};try{return JSON.parse(JSON.stringify(K))}catch(d){}return String(K)};
mH=function(K,d){return function(f){return new ee(function(H){return f.subscribe(function(D){K.timeExecution(d,function(){H.next(D)})()},function(D){K.timeExecution(d,function(){H.error(D)})()},function(){K.timeExecution(d,function(){H.complete()})()})})}};
Mep=function(K,d){var f=!1;return new ee(function(H){var D=K.setTimeout(function(){f=!0;H.next(!0);H.complete()},d);
return function(){f||K.clearTimeout(D)}})};
P$X=function(K){K=K.global;if(K.fetchLater)return K.fetchLater.bind(K)};
lQ=function(K){return Uo(function(d,f){var H=null,D=!1,S;H=d.subscribe(new RE(f,void 0,function(n){S=dy(K(n,lQ(K)(d)));H?(H.unsubscribe(),H=null,S.subscribe(f)):D=!0}));
D&&(H.unsubscribe(),H=null,S.subscribe(f))})};
gGz=function(K,d,f){return function(H,D){var S=f,n=d,u=0;H.subscribe(new RE(D,function(a){var R=u++;n=S?K(n,a,R):(S=!0,a);D.next(n)},void 0,void 0))}};
OMO=function(K){K=K===void 0?null:K;return Uo(function(d,f){var H=!1;d.subscribe(new RE(f,function(D){H=!0;f.next(D)},void 0,function(){H||f.next(K);
f.complete()}))})};
WF=function(){return Uo(function(K,d){K.subscribe(new RE(d,Ja))})};
Gf=function(K){return Uo(function(d,f){d.subscribe(new RE(f,function(){return f.next(K)}))})};
A5=function(K){return K<=0?function(){return oE}:Uo(function(d,f){var H=0;
d.subscribe(new RE(f,function(D){++H<=K&&(f.next(D),K<=H&&f.complete())}))})};
Tf=function(K){var d=d===void 0?kG:d;var f;K=(f=K)!=null?f:N5X;return Uo(function(H,D){var S,n=!0;H.subscribe(new RE(D,function(u){var a=d(u);if(n||!K(S,a))n=!1,S=a,D.next(u)}))})};
N5X=function(K,d){return K===d};
teu=function(K){K=K===void 0?Y25:K;return Uo(function(d,f){var H=!1;d.subscribe(new RE(f,function(D){H=!0;f.next(D)},void 0,function(){return H?f.complete():f.error(K())}))})};
Y25=function(){return new oGY};
Qu=function(){var K=_.Pg.apply(0,arguments);return function(d){return S2S(d,aE.apply(null,_.Me(K)))}};
$Dn=function(K){return Uo(function(d,f){var H=0;d.subscribe(new RE(f,function(D){K.call(void 0,D,H++,d)||(f.next(!1),f.complete())},void 0,function(){f.next(!0);
f.complete()}))})};
EGX=function(){return Uo(function(K,d){var f=[];K.subscribe(new RE(d,function(H){f.push(H);1<f.length&&f.shift()},void 0,function(){for(var H=_.y(f),D=H.next();!D.done;D=H.next())d.next(D.value);
d.complete()},function(){f=null}))})};
hXY=function(K,d){var f=arguments.length>=2;return function(H){return H.pipe(K?Eo(function(D,S){return K(D,S,H)}):kG,EGX(),f?OMO(d):teu(function(){return new oGY}))}};
C7=function(K){var d=LM(K)?K:function(){return K};
return LM()?Uo(function(f,H){var D=d();(void 0)(D).subscribe(H).add(f.subscribe(D))}):function(f){var H=new jl(f,d);
LM(f==null?void 0:f.lift)&&(H.lift=f.lift);H.source=f;H.subjectFactory=d;return H}};
L7=function(K){var d=new xQ(K,void 0,void 0);return function(f){return C7(function(){return d})(f)}};
BF=function(K,d){return Uo(gGz(K,d,arguments.length>=2))};
J5=function(){var K=_.Pg.apply(0,arguments),d=uQ(K);return Uo(function(f,H){(d?S2S(K,f,d):S2S(K,f)).subscribe(H)})};
so=function(K){return Uo(function(d,f){var H=null,D=0,S=!1;d.subscribe(new RE(f,function(n){var u;(u=H)==null||u.unsubscribe();u=D++;dy(K(n,u)).subscribe(H=new RE(f,function(a){return f.next(a)},void 0,function(){H=null;
S&&!H&&f.complete()}))},void 0,function(){(S=!0,!H)&&f.complete()}))})};
kQ=function(K,d){d=d===void 0?!1:d;return Uo(function(f,H){var D=0;f.subscribe(new RE(H,function(S){var n=K(S,D++);(n||d)&&H.next(S);!n&&H.complete()}))})};
wy=function(K,d,f){var H=LM(K)||d||f?{next:K,error:d,complete:f}:K;return H?Uo(function(D,S){D.subscribe(new RE(S,function(n){var u;(u=H.next)==null||u.call(H,n);S.next(n)},function(n){var u;
(u=H.error)==null||u.call(H,n);S.error(n)},function(){var n;
(n=H.complete)==null||n.call(H);S.complete()}))}):kG};
bMz=function(){var K=_.Pg.apply(0,arguments),d=B4p(K);return Uo(function(f,H){for(var D=K.length,S=Array(D),n=K.map(function(){return!1}),u=!1,a={i$jscomp$273:0};a.i$jscomp$273<D;a={i$jscomp$273:a.i$jscomp$273},a.i$jscomp$273++)dy(K[a.i$jscomp$273]).subscribe(new RE(H,function(R){return function(F){S[R.i$jscomp$273]=F;
u||n[R.i$jscomp$273]||(n[R.i$jscomp$273]=!0,(u=n.every(kG))&&(n=null))}}(a),void 0,Ja));
f.subscribe(new RE(H,function(R){u&&(R=[R].concat(_.Me(S)),H.next(d?d.apply(null,_.Me(R)):R))}))})};
mDX=function(K){var d=[],f=0,H;for(H in K)d[f++]=H;return d};
la5=function(K,d){for(var f in K)if(K[f]==d)return!0;return!1};
Wcz=function(K,d,f){for(var H in K)if(d.call(f,K[H],H,K))return H};
GYn=function(K){if(!K||typeof K!=="object")return K;if(typeof K.clone==="function")return K.clone();if(typeof Map!=="undefined"&&K instanceof Map)return new Map(K);if(typeof Set!=="undefined"&&K instanceof Set)return new Set(K);if(K instanceof Date)return new Date(K.getTime());var d=Array.isArray(K)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(K)||K instanceof DataView?{}:new K.constructor(K.length),f;for(f in K)d[f]=GYn(K[f]);return d};
Aaz=function(K){var d=arguments.length;if(d==1&&Array.isArray(arguments[0]))return Aaz.apply(null,arguments[0]);if(d%2)throw Error("oa");for(var f={},H=0;H<d;H+=2)f[arguments[H]]=arguments[H+1];return f};
T5O=function(K){var d=arguments.length;if(d==1&&Array.isArray(arguments[0]))return T5O.apply(null,arguments[0]);for(var f={},H=0;H<d;H++)f[arguments[H]]=!0;return f};
_.Zw=function(K){return new PNp(K[0].toLowerCase())};
rap=function(K){try{return new URL(K,window.document.baseURI)}catch(d){return new URL("about:invalid")}};
q2X=function(K,d){var f=d.createRange();f.selectNode(d.body);K=ta(K);return f.createContextualFragment(oo(K))};
QoG=function(K){K=K.nodeName;return typeof K==="string"?K:"FORM"};
joN=function(K){K=K.nodeType;return K===1||typeof K!=="number"};
el=function(K,d,f){K.setAttribute(d,f)};
C$Y=function(K){return K.parts.map(function(d){var f=d.descriptor;return""+d.url+(f?" "+f:"")}).join(" , ")};
_.p7=function(K){var d=_.Pg.apply(1,arguments);if(d.length===0)return _.yL(K[0]);for(var f=K[0],H=0;H<d.length;H++)f+=encodeURIComponent(d[H])+K[H+1];return _.yL(f)};
_.K0=function(K,d){K=_.nM(K).toString();var f=K.split(/[?#]/),H=/[?]/.test(K)?"?"+f[1]:"";return xDu(f[0],H,/[#]/.test(K)?"#"+(H?f[2]:f[1]):"",d)};
xDu=function(K,d,f,H){function D(n,u){n!=null&&(Array.isArray(n)?n.forEach(function(a){return D(a,u)}):(d+=S+encodeURIComponent(u)+"="+encodeURIComponent(n),S="&"))}
var S=d.length?"&":"?";H.constructor===Object&&(H=Object.entries(H));Array.isArray(H)?H.forEach(function(n){return D(n[1],n[0])}):H.forEach(D);
return _.yL(K+d+f)};
d0=function(K,d,f,H){this.top=K;this.right=d;this.bottom=f;this.left=H};
LcB=function(K){K=K.global;if(K.PendingGetBeacon)return K.PendingGetBeacon};
HR=function(K){return function(d){return d.pipe(B55(K,C7(new f0)))}};
D4=function(K){return function(d){return d.pipe(B55(K,L7(1)))}};
B55=function(K,d){function f(H){return new ee(function(D){return H.subscribe(function(S){Vp(K,function(){return void D.next(S)},3)},function(S){Vp(K,function(){return void D.error(S)},3)},function(){Vp(K,function(){return void D.complete()},3)})})}
return Za(f,s6z(),d,Fy(),f)};
kYO=function(K){var d=JaN(K);return d===null?new S4(null):d.pipe(vF(function(f){f=f.serialize();if(soS)f=_.Hu.btoa(f);else{for(var H=[],D=0,S=0;S<f.length;S++){var n=f.charCodeAt(S);n>255&&(H[D++]=n&255,n>>=8);H[D++]=n}f=_.eS(H)}return f}),A5(1),D4(K.queue))};
wgG=function(K){var d=d===void 0?{}:d;if(typeof Event==="function")return new Event(K,d);if(typeof document!=="undefined"){var f=document.createEvent("CustomEvent");f.initCustomEvent(K,d.bubbles||!1,d.cancelable||!1,d.detail);return f}throw Error();};
ZMO=function(K){return typeof K==="string"?document.getElementById(K):K};
pgX=function(K){var d=!1;d=d===void 0?!1:d;if(K.tagName==="IMG"){if(K.complete&&(!K.naturalWidth||!K.naturalHeight))return!0;var f;if(d&&((f=K.style)==null?void 0:f.display)==="none")return!0}var H,D;return eXu.test((H=K.getAttribute("width"))!=null?H:"")&&eXu.test((D=K.getAttribute("height"))!=null?D:"")};
KH5=function(K,d){if(K.tagName==="IMG")return K.naturalWidth&&K.naturalHeight?!0:!1;try{if(K.readyState)var f=K.readyState;else{var H,D;f=(H=K.contentWindow)==null?void 0:(D=H.document)==null?void 0:D.readyState}return f==="complete"}catch(S){return d===void 0?!1:d}};
deo=function(K){K||(K=function(d,f,H){d.addEventListener(f,H)});
return K};
Vlp=function(K,d){var f=fwO();f=f===void 0?new H7O:f;if(K=ZMO(K)){var H=deo(H);for(var D=!1,S=function(m){D||(D=!0,d(m))},n,u=2,a=0;a<DeS.length;++a)if(DeS[a]===K.tagName){u=3;
n=[K];break}n||(n=K.querySelectorAll(DeS.join(",")));var R=0,F=0,z=!0,v=K=!1;a={};for(var g=0;g<n.length;a={isImg:void 0},g++){var N=n[g];if(!pgX(N))if(a.isImg=N.tagName==="IMG",KH5(N,f.crossDomainLoadedDefault))K=!0,a.isImg&&(z=!0);else{R++;var h=function(m){return function(T){R--;!R&&z&&S(u);m.isImg&&(T=T&&T.type==="error",F--,T||(z=!0),!F&&v&&z&&S(u))}}(a);
H(N,"load",h);a.isImg&&(F++,H(N,"error",h))}}F===0&&(z=!0);n=null;n=_.Hu.document.readyState==="complete";if(R===0&&!K&&n)u=5;else if(R||!K){H(_.Hu,"load",function(){!f.pendingImagesBlockLoad||!F&&z?S(4):v=!0});
return}S(u)}};
So5=function(K,d,f){if(K)for(var H=0;K!=null&&H<500&&!f(K);++H)K=d(K)};
y5B=function(K,d){So5(K,function(f){try{return f===f.parent?null:f.parent}catch(H){}return null},d)};
nQY=function(K,d){if(K.tagName=="IFRAME")d(K);else{K=K.querySelectorAll("IFRAME");for(var f=0;f<K.length&&!d(K[f]);++f);}};
i7X=function(K){return(K=K.ownerDocument)&&(K.parentWindow||K.defaultView)||null};
c5u=function(K,d,f){try{var H=JSON.parse(f.data)}catch(n){}if(typeof H==="object"&&H&&H.type==="creativeLoad"){var D=i7X(K);if(f.source&&D){var S;y5B(f.source,function(n){try{if(n.parent===D)return S=n,!0}catch(u){}});
S&&nQY(K,function(n){if(n.contentWindow===S)return d(H),!0})}}};
uyJ=function(K){return typeof K==="string"?document.getElementById(K):K};
RcN=function(){var K={};return K[0]=_.p7(aw5,"current"),K[1]=_.p7(Iwo),K[2]=_.p7(UeO),K};
yp=function(K,d){return K.left===d.left&&K.top===d.top&&K.width===d.width&&K.height===d.height};
FHY=function(K,d){return{left:Math.max(K.left,d.left),top:Math.max(K.top,d.top),width:Math.max(0,Math.min(K.left+K.width,d.left+d.width)-Math.max(K.left,d.left)),height:Math.max(0,Math.min(K.top+K.height,d.top+d.height)-Math.max(K.top,d.top))}};
zcG=function(K,d){return{left:Math.round(K.left+d.x),top:Math.round(K.top+d.y),width:K.width,height:K.height}};
XFB=function(K,d,f){if(K&&d!==null&&d!=d.top){if(!d.top)return new _.n0(-12245933,-12245933);d=d.top}try{return(f===void 0?0:f)?(new _.n0(d.innerWidth,d.innerHeight)).round():_.iW(d).round()}catch(H){return new _.n0(-12245933,-12245933)}};
vQX=function(K,d,f){try{if(K){if(!d.top)return new d0(-12245933,-12245933,-12245933,-12245933);d=d.top}var H=XFB(K,d,f),D=H.height,S=H.width;if(S===-12245933)return new d0(S,S,S,S);var n=cR(uW(d.document)),u=n.x,a=n.y;return new d0(a,u+S,a+D,u)}catch(R){return new d0(-12245933,-12245933,-12245933,-12245933)}};
MlX=function(K){var d;return(d=K.google_tag_data)!=null?d:K.google_tag_data={}};
PQz=function(K){var d,f;return typeof((d=K.navigator)==null?void 0:(f=d.userAgentData)==null?void 0:f.getHighEntropyValues)==="function"};
O7n=function(K){if(!PQz(K))return null;var d=MlX(K);if(d.uach_promise)return d.uach_promise;K=K.navigator.userAgentData.getHighEntropyValues(gQY).then(function(f){d.uach!=null||(d.uach=f);return f});
return d.uach_promise=K};
Gfp=function(K){var d;return Nyn(YoX(tln(oQz($ep(EQG(hcS(b7J(mep(new lwu,K.architecture||""),K.bitness||""),K.mobile||!1),K.model||""),K.platform||""),K.platformVersion||""),K.uaFullVersion||""),((d=K.fullVersionList)==null?void 0:d.map(function(f){var H=new WH5;H=_.aL(H,1,f.brand);return _.aL(H,2,f.version)}))||[]),K.wow64||!1)};
A5o=function(K){var d,f;return(f=(d=O7n(K))==null?void 0:d.then(function(H){return Gfp(H)}))!=null?f:null};
TyY=function(K,d){return new ee(function(f){var H=!1,D=Array(d.length);D.fill(void 0);var S=new Set,n=new Set,u=function(z,v){K.running?(D[v]=z,S.add(v),H||(H=!0,Vp(K,function(){H=!1;f.next(_.ep(D))},1))):f.error(new IL(v))},a=function(z,v){n.add(v);
S.add(v);Vp(K,function(){f.error(z)},1)},R=function(z){n.add(z);
Vp(K,function(){n.size===d.length&&f.complete()},1)},F=d.map(function(z,v){return z.subscribe(function(g){return void u(g,v)},function(g){return void a(g,v)},function(){return void R(v)})});
return function(){F.forEach(function(z){return void z.unsubscribe()})}})};
qoz=function(K,d,f){function H(){if(d.debugChannel){var m=d.debugChannel,T=m.next;var r={creativeId:d.debugNames.getName(f),requiredSignals:D,signals:Object.assign({},S),hasPrematurelyCompleted:n,errorMessage:u,erroredSignalKey:a};r={specMajor:2,specMinor:0,specPatch:0,timestamp:h5(d.timeProvider.now(),new bQ(0,d.timeProvider.timeline)),instanceId:d.debugNames.getName(d.symbol),creativeState:r};T.call(m,r)}}
for(var D=Object.keys(K),S={},n=!1,u=null,a=null,R={},F=new Set,z=[],v=[],g=_.y(D),N=g.next(),h={};!N.done;h={key$jscomp$374:void 0},N=g.next())h.key$jscomp$374=N.value,N=K[h.key$jscomp$374],N instanceof S4?(R[h.key$jscomp$374]=N.value,F.add(h.key$jscomp$374),d.debugChannel&&(S[String(h.key$jscomp$374)]=vGp(N.value))):(N=N.pipe(Tf(function(m,T){return zXX(m)||zXX(T)?!1:m===T}),vF(function(m){return function(T){d.debugChannel&&(S[String(m.key$jscomp$374)]=vGp(T),H());
var r={};return r[m.key$jscomp$374]=T,r}}(h)),lQ(function(m){return function(T){if(T instanceof IL)throw new r5o(String(m.key$jscomp$374));
throw T;}}(h)),wy(function(m){return function(){F.add(m.key$jscomp$374)}}(h),function(m){return function(T){a=String(m.key$jscomp$374);
u=String(T);H()}}(h),function(m){return function(){F.has(m.key$jscomp$374)||(n=!0,H())}}(h))),v.push(h.key$jscomp$374),z.push(N));
(K=Object.keys(S).length>0)&&H();g=TyY(d.queue,z).pipe(lQ(function(m){if(m instanceof IL)throw new RL(String(v[m.inputObservableIndex]));throw m;}),vF(function(m){return Object.freeze(Object.assign.apply(Object,[{},
R].concat(_.Me(m))))}));
return(z=z.length>0)&&K?$Q(aE(Object.freeze(R)),g):z?g:aE(Object.freeze(R))};
QEY=function(K,d,f,H,D){return K.performanceMonitor.timeExecution.bind(K.performanceMonitor)(733,function(){var S={};try{return d.pipe(lQ(function(n){H(Object.assign({},S,{error:n}));return oE}),Oo(function(n){try{var u=f(K,n)}catch(R){return H(Object.assign({},S,{error:R instanceof Error?R:String(R)})),oE}var a={};
return qoz(u,K,n.symbol).pipe(wy(function(R){a=R}),L7(1),Fy()).pipe(D,lQ(function(R){H(Object.assign({},a,{error:R}));
return oE}),Qu(void 0),vF(function(){return!0}))})).pipe(BF(function(n){return n+1},0),lQ(function(n){H(Object.assign({},S,{error:n}));
return oE}))}catch(n){return H(Object.assign({},S,{error:n})),oE}})()};
FT=function(K){var d=new Map;if(typeof K!=="object"||K===null)return d;Object.values(K).forEach(function(f){f&&typeof f.extrapolateToNow==="function"&&(d.has(f.clock.timeline)||d.set(f.clock.timeline,f.clock.now()))});
return d};
jEB=function(K,d){return typeof K==="string"?encodeURIComponent(K):typeof K==="number"?String(K):Array.isArray(K)?K.map(function(f){return jEB(f,d)}).join(","):K instanceof bQ?K.toString():K&&typeof K.extrapolateToNow==="function"?jEB(K.extrapolateUsingTimestampMap(d).value,d):K===!0?"1":K===!1?"0":K===void 0||K===null?null:K instanceof CQX?xez(K):[K.top,
K.left,K.top+K.height,K.left+K.width].join()};
zj=function(K,d){K=Object.entries(K).map(function(f){var H=_.y(f);f=H.next().value;H=H.next().value;H=jEB(H,d);return H===null?"":f+"="+H}).filter(function(f){return f!==""});
return K.length?K.join("&"):""};
J5S=function(K,d){var f=LHz,H=ByN;d=d===void 0?.01:d;return function(D){d>0&&Math.random()<=d&&(K.global.HTMLFencedFrameElement&&K.global.fence&&typeof K.global.fence.reportEvent==="function"&&K.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),D=Object.assign({},D,{errorMessage:D.error instanceof Error&&D.error.message?D.error.message:String(D.error),errorStack:D.error instanceof Error&&D.error.stack?String(D.error.stack):null,errorName:D.error instanceof
Error&&D.error.name?String(D.error.name):null,errorContext:String(K.performanceMonitor.timedFunctionContext),errorEscapedQueryId:D.escapedQueryId}),f(Object.assign({},D,{payloadMapper:function(){return function(S){try{return H(Object.assign({},S))}catch(n){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),FT(D)).forEach(function(S){K.beaconFactory.makeBeacon(S).sendNow()}))}};
sEu=function(){var K=_.Pg.apply(0,arguments);return function(d){var f=d.pipe(L7(1),Fy());d=K.map(function(H){return f.pipe(H,Qu(!0))});
return PF(d).pipe(A5(1),WF())}};
kfY=function(){var K=_.Pg.apply(0,arguments);return function(d){var f=d.pipe(L7(1),Fy());d=K.map(function(H){return f.pipe(H,Qu(!0))});
return $Q.apply(null,_.Me(d)).pipe(A5(1),WF())}};
wFu=function(K,d){return function(f){var H=f.pipe(L7(1),Fy());f=H.pipe(K,Qu(!0));H=H.pipe(Za(d,L7(),Fy()),Qu(!0));f=PF([f,H]);return RXz(f,H).pipe(A5(1),WF())}};
Z7p=function(K,d,f){f(!0)};
ecO=function(K,d){return Za(so(function(f){var H=K(f),D=d(f),S={};return H&&D&&S?new ee(function(n){D(H,S,function(u){n.next(Object.assign({},f,{canEmit:u}));n.complete()});
return function(){}}):XT}),Eo(function(f){return f.canEmit}))};
pFN=function(K){var d={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(f){return f.pipe(so(function(H){return new ee(function(D){function S(){u.disconnect();a.unsubscribe()}
var n=K.MutationObserver;if(n&&H.ref!==void 0){var u=new n(function(R){D.next(R)});
u.observe(H.ref,d);var a=H.JSC$7369_released.subscribe(S);return S}})}))}};
K2p=function(K){if(K.measurementDeferralState===3)return null;if(K.timeOnScreenReason!==void 0){var d=K.creativeFound===!1?"n":null;if(d!==null)return d}return K.geometricMeasurementErrors instanceof vR?"msf":K.contextValidationErrors instanceof Mm?"c":K.contextVisibilityKnown===!1?"pv":K.geometricMeasurementErrors||K.contextValidationErrors?"x":null};
g0=function(K,d){return K.replace(dmX,function(f,H){try{var D=_.PR.get(d,H);if(D==null||D.toString()==null)return f;D=D.toString();if(D==""||!_.cu(D==null?"":String(D)))return encodeURIComponent(D).replace(/%2C/g,",")}catch(S){}return f})};
f4z=function(K,d){var f=Object.assign({},K),H=K.userAgentClientHints;f=(delete f.userAgentClientHints,f);f=K.payloadMapper(f);var D=zj(f,d);return _.O7(K.urlPrefixes,function(S){var n="";typeof H==="string"&&(n="&"+zj({uach:H},d));var u={};return g0(S,(u.VIEWABILITY=D,u))+n})};
LHz=function(K,d){var f=K.payloadMapper(K),H=zj(f,d);return H?_.O7(K.urlPrefixes,function(D){D=D.indexOf("?")>=0?D:D+"?";D="?&".indexOf(D.slice(-1))>=0?D:D+"&";return D+H}):K.urlPrefixes};
H0N=function(){return Za(Eo(function(K){return K!==void 0}),vF(function(K){return K}))};
DmX=function(K){return Za(vF(function(){return!0}),J5(!1),D4(K))};
V4J=function(K){return K.length<=0?oE:PF(K.map(function(d){var f=0;return d.pipe(vF(function(H){return{index:f++,value:H}}))})).pipe(Eo(function(d){return d.every(function(f){return f.index===d[0].index})}),vF(function(d){return d.map(function(f){return f.value})}))};
S7O=function(K,d){K.currentState&&(K.previousState=K.currentState);K.currentState=d;K.previousState&&K.previousState.value?(d=Math.max(0,h5(d.timestamp,K.previousState.timestamp)),K.totalTime+=d,K.consecutiveTime+=d):K.consecutiveTime=0;return K};
yAn=function(){return Za(BF(S7O,{totalTime:0,consecutiveTime:0}),vF(function(K){return K.totalTime}))};
nhp=function(){return Za(BF(S7O,{totalTime:0,consecutiveTime:0}),vF(function(K){return K.consecutiveTime}))};
i0S=function(K,d){return function(f){return V4J(d.map(function(H){return f.pipe(K(H))}))}};
cAp=function(){var K;return Za(wy(function(d){return void(K=d.timestamp)}),nhp(),vF(function(d){return{timestamp:K,
value:Math.round(d)}}))};
uTN=function(K,d){return yp(K.topWindowViewportExternalGeometry,d.topWindowViewportExternalGeometry)&&yp(K.elementGeometry,d.elementGeometry)&&yp(K.exposedViewportLocalGeometry,d.exposedViewportLocalGeometry)&&yp(K.intersectionGeometry,d.intersectionGeometry)&&K.elementGeometrySourceName===d.elementGeometrySourceName&&K.measurementRequests===d.measurementRequests&&K.viewportGeometrySourceName===d.viewportGeometrySourceName&&K.viewportLocalAppOffset.x===d.viewportLocalAppOffset.x&&K.viewportLocalAppOffset.y===
d.viewportLocalAppOffset.y};
Umo=function(K,d){return function(f){return function(H){var D=H.pipe(C7(new f0),Fy());H=f.element.pipe(Tf());D=D.pipe(vF(function(S){return S.value}));
return PF([H,D,d]).pipe(vF(function(S){var n=_.y(S);S=n.next().value;var u=n.next().value;n=n.next().value;if(S.ref===void 0)var a={top:0,left:0,width:0,height:0};else{a=S.ref.getBoundingClientRect();var R=S.ref,F=K.global,z=new _.Nm(0,0),v=tA(_.oL(R));if($h(v,"parent")){do{if(v==F)var g=_.E7(R);else g=a4O(R),g=new _.Nm(g.left,g.top);z.x+=g.x;z.y+=g.y}while(v&&v!=F&&v!=v.parent&&(R=v.frameElement)&&(v=v.parent))}a={top:z.y,left:z.x,width:a.width,height:a.height}}a=zcG(a,u.viewportLocalAppOffset);
F=FHY(a,u.exposedViewportLocalGeometry);z=K.timeProvider.now();v=Object;R=v.assign;if(n!==2||K.inCrossDomainIframe||F.width<=0||F.height<=0)var N=!1;else try{var h=K.document.elementFromPoint(F.left+F.width/2,F.top+F.height/2);N=h?!I45(h,S):!1}catch(m){N=!1}return{timestamp:z,value:R.call(v,{},u,{elementGeometrySourceName:"geo",intersectionGeometry:N?hA.intersectionGeometry:F,elementGeometry:a})}}),HR(K.queue))}}};
I45=function(K,d,f){f=f===void 0?0:f;return K.ref===void 0||d.ref===void 0?!1:K.ref===d.ref||_.bW(d.ref,function(H){return H===K.ref})?!0:d.ref.ownerDocument&&d.ref.ownerDocument.defaultView&&d.ref.ownerDocument.defaultView===d.ref.ownerDocument.defaultView.top?!1:f<10&&d.ref.ownerDocument&&d.ref.ownerDocument.defaultView&&d.ref.ownerDocument.defaultView.frameElement?I45(K,new m2(d.ref.ownerDocument.defaultView.frameElement),f+1):!0};
zTO=function(K){return function(d){return d.pipe(K.ResizeObserver?RTX(K):F2u(K),L7(1),Fy())}};
RTX=function(K){return function(d){return d.pipe(so(function(f){var H=K.ResizeObserver;if(!H||f.ref===void 0)return aE(hA.elementGeometry);var D=(new ee(function(S){function n(){f.ref!==void 0&&u.unobserve(f.ref);u.disconnect();a.unsubscribe()}
if(f.ref===void 0)return S.complete(),function(){};
var u=new H(function(R){R.forEach(function(F){S.next(F)})});
u.observe(f.ref);var a=f.JSC$7369_released.subscribe(n);return n})).pipe(mH(K.performanceMonitor,736),vF(function(S){return S.contentRect}));
return $Q(aE(f.ref.getBoundingClientRect()),D)}),Tf(yp))}};
F2u=function(K){return function(d){var f=d.pipe(pFN(K)),H=K.onResize;f=$Q(d.pipe(vF(function(){return wgG("resize")})),f,H);
return PF(d,f).pipe(mH(K.performanceMonitor,737),vF(function(D){D=_.y(D).next().value;return D.ref===void 0?void 0:D.ref.getBoundingClientRect()}),H0N(),Tf(yp))}};
M45=function(K,d){var f=XR5(K,d).pipe(L7(1),Fy());return function(H){return function(D){D=D.pipe(so(function(S){return S.element}),Tf());
return PF([f,D]).pipe(so(function(S){var n=_.y(S);S=n.next().value;n=n.next().value;return vhS(K,S.intersectionObserver,zTO(K),S.observations,H,S.flushRecords,n)}),HR(K.queue))}}};
PWn=function(K){return vF(function(d){return d.value.viewportGeometrySourceName!=="nio"?d:Object.assign({},d,{value:Object.assign({},d.value,{exposedViewportLocalGeometry:lW(K,!0),topWindowViewportExternalGeometry:lW(K,!0)})})})};
ghu=function(K,d){return aE(d).pipe(K,vF(function(){return d}))};
XR5=function(K,d){return K.timeProvider.timeline!==O0N?IE(new vR(2)):K.MutationObserver?typeof IntersectionObserver==="undefined"?IE(new vR(0)):(new ee(function(f){var H=new f0,D=new WR(H.next.bind(H),{threshold:[].concat(_.Me(d))});f.next({observations:H.pipe(mH(K.performanceMonitor,735)),intersectionObserver:D,flushRecords:function(S){S=D.takeRecords(S);S.length>0&&H.next(S)}})})).pipe(A5(1),L7(1),Fy()):IE(new vR(1))};
N05=function(K){return T4z(K.sort(function(d,f){return d.time-f.time}),J4z)};
vhS=function(K,d,f,H,D,S,n){return new ee(function(u){function a(){N||(N=!0,n.ref!==void 0&&d.unobserve(D,n.ref),F.unsubscribe(),g.unsubscribe(),v.unsubscribe(),h.unsubscribe())}
if(n.ref!==void 0){Y7J(d,D);d.observe(D,n.ref);var R=new Gj({timestamp:K.timeProvider.now(),value:Object.assign({},hA,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),F=H.pipe(Oo(function(m){return N05(m)}),Eo(function(m){return m.target===n.ref}),vF(function(m){return{timestamp:new bQ(m.time,O0N),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:m.rootBounds||AA,topWindowViewportExternalGeometry:m.rootBounds||lW(K,!0),measurementRequests:z,elementGeometrySourceName:"nio",intersectionGeometry:m.intersectionRect,elementGeometry:m.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:m.isIntersecting,isV2Visible:m.isVisible}}}),C7(R),Fy()).subscribe(u),z=new f0,v=z.subscribe(function(){S(D);
u.next({timestamp:K.timeProvider.now(),value:R.value.value});n.ref!==void 0&&(d.unobserve(D,n.ref),d.observe(D,n.ref))}),g=ghu(f,n).subscribe(function(){z.next()}),N=!1,h=n.JSC$7369_released.subscribe(function(){return a()});
return a}})};
t4G=function(K,d){var f=K.getOnBackgrounded().pipe(vF(function(){return"b"}));
return RXz(d,f).pipe(A5(1),D4(K.queue))};
Tj=function(K){return function(d){var f;return d.pipe(wy(function(H){return void(f=H.timestamp)}),vF(function(H){return H.value}),K,vF(function(H){return{timestamp:f,
value:H}}))}};
ohS=function(K){return K.intersectionGeometry.width*K.intersectionGeometry.height/(K.elementGeometry.width*K.elementGeometry.height)};
r0=function(K,d,f){f=f===void 0?function(H,D){return H===D}:f;
return K.timestamp.equals(d.timestamp)&&f(K.value,d.value)};
Qp=function(K,d){return d.pipe(vF(function(f){return new qm(K.timeProvider,{timestamp:K.timeProvider.now(),value:f})}))};
$mn=function(K){return function(d){return d.pipe(bMz(K),vF(function(f){var H=_.y(f);f=H.next().value;H=H.next().value;var D=f.value;return{timestamp:f.timestamp,value:D>=1?!0:D<=0?!1:D>=H}}))}};
hT5=function(){return Za(Eo(function(K,d){return d>0}),EhG,J5(-1),Tf())};
b0o=function(K,d,f){return K?PF([d,f]).pipe(Eo(function(H){var D=_.y(H);H=D.next().value;D=D.next().value;return H.timestamp.equals(D.timestamp)}),vF(function(H){var D=_.y(H);
H=D.next().value;D=D.next().value;return H.value>D.value?H:D})):d};
W2Y=function(K){return function(d){var f=d.pipe(mmp),H=d.pipe(l4O);return K instanceof ee?K.pipe(so(function(D){return b0o(D,f,H)})):b0o(K.value,f,H)}};
L2G=function(K,d,f,H){var D=H.geometryIsOccluded,S=H.exposureThreshold,n=H.wasLargeAdAtRender,u=H.allowLargeAdThreshold,a=H.largeAdExposureThreshold,R=H.mayUseViewportShareExposure,F=H.hasMeasurementStarted;H=H.useIntersectionObserverV2;d=Gjn(K,f,d);f=AA5(K,f);H=T0p(d,H);var z=rAS(K,D,R,d),v=z.pipe(vF(function(fB){return fB.value}),Tf(),D4(K),BF(function(fB,w){return Math.max(fB,w)},0)),g=z.pipe(vF(function(fB){return fB.value}),hT5(),D4(K)),N=d.pipe(q7S,vF(function(fB){return fB.value}),A5(2),Tf(),
D4(K));
n=QLN(K,d,n,u);var h=n.pipe(J5(!1),Tf(),vF(function(fB){return fB?a:S}));
u=z.pipe($mn(h),Tf(),D4(K));var m=PF([u,d]).pipe(Eo(function(fB){var w=_.y(fB);fB=w.next().value;w=w.next().value;return fB.timestamp.equals(w.timestamp)}),vF(function(fB){var w=_.y(fB);
fB=w.next().value;w=w.next().value;return{visible:fB.value,geometry:w.value.elementGeometry}}),BF(function(fB,w){return!w.visible&&fB.visible?fB:w},{visible:!1,
geometry:AA}),vF(function(fB){return fB.geometry}),J5(AA),D4(K),Tf(yp));
R=R instanceof ee?R.pipe(Tf(),Gf()):XT;h=PF([R,h]).pipe(Gf());var T=d.pipe(Eo(function(fB){return fB.value.viewportGeometrySourceName!=="ns"&&fB.value.elementGeometrySourceName!=="ns"}),BF(function(fB){return fB+1},0),J5(0),D4(K)),r=f.pipe(Gf(!0),J5(!1),D4(K));
r=PF([F,r]).pipe(vF(function(fB){var w=_.y(fB);fB=w.next().value;w=w.next().value;return fB&&!w}),D4(K));
var J=d.pipe(jLO,Tf()),L=J.pipe(vF(function(fB){return fB.value}),BF(function(fB,w){return Math.max(fB,w)},0),Tf(),D4(K));
K=J.pipe(vF(function(fB){return fB.value}),hT5(),D4(K));
return{shouldResetExposureSignals:R,shouldResetViewabilitySignals:h,geometrySignals:{readyGeometryWithDefault:d,measurementStrategy:d.pipe(CWN),creativePosition:m.pipe(Tf(yp)),visible:u.pipe(Tf(r0)),timestampedExposure:z.pipe(Tf(r0)),maximumExposure:v,minimumExposure:g,browserSize:d.pipe(xmz,Tf(_.If)),timestampedScreenShare:J,maxScreenShare:L,minScreenShare:K,geometricMeasurementErrors:f,measurementRequests:d.pipe(vF(function(fB){return fB.value.measurementRequests})),
isLargeAd:n,geometryIsOccluded:D,hasMeasurementStarted:F,geometryMeasurable:r,validMeasurementCount:T,loadTimeExposure:N,v2VisibilityBitVector:H}}};
AA5=function(K,d){return d.pipe(Eo(function(){return!1}),vF(function(f){return f}),lQ(function(f){return j4(new S4(f),K)}))};
Gjn=function(K,d,f){return d.pipe(Iaz(XT),D4(K)).pipe(Tf(function(H,D){return r0(H,D,uTN)}),J5({timestamp:f.now(),
value:hA}),D4(K))};
rAS=function(K,d,f,H){f=H.pipe(W2Y(f),Tj(vF(function(D){return Math.round(D*100)/100})),D4(K));
return d instanceof S4?f:PF([f,d]).pipe(vF(function(D){var S=_.y(D);D=S.next().value;S=S.next().value;return{timestamp:S.timestamp.maximum(D.timestamp),value:S.value?0:D.value}}),Tf(r0),D4(K))};
QLN=function(K,d,f,H){d=[d.pipe(vF(function(D){return D.value.elementGeometry.width*D.value.elementGeometry.height>=242500}))];
f instanceof ee&&d.push(f.pipe(vF(function(D){return!!D})));
f=PF(d);return H?f.pipe(vF(function(D){return D.some(function(S){return S})}),J5(!1),Tf(),D4(K)):j4(new S4(!1),K)};
T0p=function(K,d){K=PF([K,d]).pipe(vF(function(D){var S=_.y(D);D=S.next().value;if(S.next().value&&D.value.isIntersecting)return D.value.isV2Visible}),Tf());
var f=K.pipe(vF(function(D){return D===void 0?!0:D}),BF(function(D,S){return D||!S},!1)),H=K.pipe(BF(function(D,S){return S===void 0?D:S?!1:D!=null?D:!0},void 0),vF(function(D){return!!D}));
return PF([d,FcS(K,f,H)]).pipe(vF(function(D){var S=_.y(D);D=S.next().value;var n=_.y(S.next().value);S=n.next().value;var u=n.next().value;n=n.next().value;var a=0;if(!D)return 0;if(S===void 0)return 16;S&&(a|=1);S||(a|=2);u&&(a|=4);n&&(a|=8);return a}))};
kjG=function(K,d,f,H,D){var S=C0.timeThresholdMs;var n=n===void 0?new B0O(d,H):n;return(new ee(function(u){var a=f.pipe(J5(void 0),so(function(){return JAY(D)})).pipe(vF(function(R){var F=R.value;
R=R.timestamp;var z=F.visible;F=F.consecutiveViewTime;var v=F>=S;v||!z?xh(n):(R=Math.max(0,h5(d.now(),R)),sLS(n,Math.max(0,S-F-R)));return v}),BF(function(R,F){return F||R},!1),Tf()).subscribe(u);
return function(){n.dispose();a.unsubscribe()}})).pipe(kQ(function(u){return!u},!0),D4(K))};
JAY=function(K){return V4J([K,K.pipe(cAp())]).pipe(vF(function(d){var f=_.y(d);d=f.next().value;f=f.next().value;return{timestamp:d.timestamp,value:{visible:d.value,consecutiveViewTime:f.value}}}),Tf(function(d,f){return r0(d,f,function(H,D){return H.consecutiveViewTime===D.consecutiveViewTime&&H.visible===D.visible})}))};
wRG=function(){return Za(nhp(),BF(function(K,d){return Math.max(K,d)},0),vF(function(K){return Math.round(K)}))};
Z0Y=function(K){return Za($mn(aE(K)),wRG())};
eTX=function(K,d){return d instanceof ee?d.pipe(so(function(f){return(f=f?15:null)?IE(new vR(f)):K})):(d=d.value?15:null)?IE(new vR(d)):K};
pRB=function(K){var d=new vR(13);if(K.length<1)return{chain:oE,capturedErrors:oE};var f=new f0,H=K[0];return{chain:K.slice(1).reduce(function(D,S){return D.pipe(lQ(function(n){f.next(n);return S}))},H).pipe(lQ(function(D){f.next(D);
return IE(d)}),C7(new f0),Fy()),
capturedErrors:f}};
K$O=function(K,d){var f=K.pipe(C7(new f0),Fy());return so(function(H){return f.pipe(d(H))})};
fqY=function(K,d){if(K.inCrossDomainIframe)return IE(new vR(6));var f=new f0;return $Q(aE({}),d,f).pipe(vF(function(){return{timestamp:K.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:doS(K),topWindowViewportExternalGeometry:lW(K,!0),measurementRequests:f,viewportLocalAppOffset:{x:0,y:0}}}}),HR(K.queue))};
doS=function(K){var d=lW(K,!1);if(!K.inIframe||!L0(K.global.parent)||K.global.parent===K.global)return d;var f=new BR(K.global.parent,K.debugChannel);f.beaconFactory=K.beaconFactory;f=doS(f);K=K.global.frameElement.getBoundingClientRect();return FHY(zcG(FHY(f,K),{x:d.left-K.left,y:d.top-K.top}),d)};
Hm5=function(K){if(K.prerendering)return 3;var d;return(d={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[K.visibilityState||K.webkitVisibilityState||K.mozVisibilityState||""])!=null?d:0};
Doz=function(K){return K.document.JSC$7380_onVisibilityChange.pipe(vF(function(d){return d==="visible"}),Tf(),D4(K.queue))};
Vhp=function(K,d,f){var H;return d.pipe(Tf(),so(function(D){return f.pipe(vF(function(){if(!H){H=!0;try{D.next()}finally{H=!1}}return!0}))}),J5(!1),D4(K.queue))};
SmG=function(K){return Za(Tj(vF(function(d){return d>=1?!0:d<=0?!1:d>=K})),yAn(),vF(function(d){return Math.round(d)}))};
nln=function(K,d,f,H,D){var S=yso;if(S.length>1)for(var n=0;n<S.length-1;n++)if(S[n]<S[n+1])throw Error();n=D.pipe(J5(void 0),so(function(){return f.pipe(cAp())}),Tf(),D4(K));
D=D.pipe(J5(void 0),so(function(){return f.pipe(wRG())}),Tf(),D4(K));
return{totalMeasurementTime:H.pipe(J5(void 0),so(function(){return d.pipe(vF(function(u){return{timestamp:u.timestamp,value:!0}}),yAn())}),Tf(),D4(K)),
totalUnviewedTime:H.pipe(J5(void 0),so(function(){return d.pipe(vF(function(u){return{timestamp:u.timestamp,value:u.value===0}}),yAn())}),Tf(),D4(K)),
maxTimeOnScreen:H.pipe(J5(void 0),so(function(){return d.pipe(i0S(Z0Y,S))}),Tf(_.If),D4(K)),
timeOnScreen:H.pipe(J5(void 0),so(function(){return d.pipe(i0S(SmG,S),vF(function(u){return u.map(function(a,R){return R>0?a-u[R-1]:a})}))}),Tf(_.If),D4(K)),
maxConsecutiveViewTime:D,consecutiveViewTime:n.pipe(Tf(r0),D4(K))}};
csz=function(K){var d=!0;d=d===void 0?!1:d;return Za(so(function(f){return imz(K.document,f,d)}),D4(K.queue))};
uEY=function(K,d,f){var H=f.pipe(vF(function(D){return{value:D,timestamp:K.timeProvider.now()}}),Tf(r0));
return d instanceof ee?d.pipe(Tf(),so(function(D){return D?j4(new S4({value:!1,timestamp:K.timeProvider.now()}),K.queue):H})):d.value===!1?H:new S4(!1)};
aqz=function(K,d,f,H,D,S,n){var u=C0;d=d instanceof ee?d.pipe(J5(!1),Tf()):d;var a=!K.isMobile();f=uEY(K,f,H);K=n.measurableCreative.pipe(DmX(K.queue));return Object.assign({},u,{geometryIsOccluded:f,wasLargeAdAtRender:D,allowLargeAdThreshold:a,mayUseViewportShareExposure:d,hasMeasurementStarted:K,useIntersectionObserverV2:S})};
UoJ=function(K,d,f,H,D,S){var n=1;S=S===void 0?!0:S;n=n===void 0?.01:n;var u=u===void 0?K.timeProvider.intervalObservable(100).pipe(D4(K.queue)):u;return K.performanceMonitor.timeExecution(916,function(){return IqO(K,d.pipe(HR(K.queue)),f.pipe(HR(K.queue)),H,D,S,n,u)})()};
IqO=function(K,d,f,H,D,S,n,u){var a=Doz(K).pipe(vF(function(F){return!F})),R=new RQp(K,[new F$o(K,yso),
new zQ5(K,u)]);u=sEu(Xyp,vlz);return QEY(K,d,function(F,z){var v=j4(new S4(z.element),F.queue).pipe(csz(F),D4(F.queue)),g={loadedElement:v,shouldMeasure:v.pipe(Gf(!0)),measurableCreative:v.pipe(vF(function(fB){var w=w===void 0?Symbol():w;return Object.freeze({symbol:w,element:j4(new S4(fB),F.queue)})})),
creativeSearchResult:j4(new S4("mue"),F.queue)},N=new S4(!1),h=new S4(!1),m=new S4(17),T=new S4(!1),r=new S4(!1),J=j4(JA,F.queue);N=R.buildGeometrySource(g,{inApp:N,useV2:!1,requestSource:j4(m,F.queue)}).geometrySource;g=aqz(F,T,h,a,r,J,g);h=L2G(F.queue,F.timeProvider,N,g);g=h.geometrySignals;T=h.shouldResetViewabilitySignals;h=nln(F.queue,g.timestampedExposure,g.visible,h.shouldResetExposureSignals,T);T=kjG(F.queue,F.timeProvider,T,g.measurementRequests,g.visible);r=f.pipe(Eo(function(fB){return fB===
z.element.ref}),vF(function(){return"ur"}));
J=Mep(F.timeProvider,D).pipe(Gf("t"));r=t4G(F,$Q(r,J));J=Vhp(F,g.measurementRequests,r.pipe(Eo(function(fB){return fB!==null})));
N=r.pipe(Eo(function(fB){return fB!==null}),vF(function(){return Hm5(F.global.document)===1}));
var L=MhX(F.document);return Object.assign({},{beaconFactory:new S4(F.beaconFactory),context:new S4(F),inferredPingId:new S4("lidar2"),timeOnScreenPingId:new S4("lidartos"),binaryContext:new S4(17),binaryVersion:new S4(H),requestSource:m,contextValidationErrors:new S4(F.validate()?null:new Mm),contextVisibilityKnown:new S4(L),payloadMapper:new S4(ByN),endOfSessionReason:r,timeOnScreenReason:r,requestMeasurementOnEndOfSession:J,hasImpressionFired:PlS,crossDomainIframeState:new S4(F.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:JA,inFetchLaterBeaconExperiment:JA,isTurtlex:JA,turtlexReportEventData:new S4(""),reportFencedFrameEvent:XT,isViewableAttributionEnabled:JA,inViewableAttributionExperiment:new S4(0),fetchBeaconFactory:XT,supportsPendingBeacon:JA,supportsFetchLater:JA,emit:new S4(Z7p),beginToRenderEvent:new S4(Symbol()),activeViewUnmeasurableEvent:new S4(Symbol()),activeViewViewableEvent:new S4(Symbol()),creativeFound:PlS,immediateUrlPrefixes:new S4(z.immediateUrls),timeOnScreenUrlPrefixes:new S4(z.timeOnScreenUrls),
cpmavUrls:XT,viewableRelayUrls:XT,measurementDeferralState:new S4(2),urlSerializer:new S4(f4z),viewUrlSerializer:new S4(glX),isCreativeLoaded:v.pipe(DmX(F.queue)),pageVisible:a.pipe(vF(function(fB){return!fB})),
eosPageVisible:N,timestampedExposureHistory:g.timestampedExposure.pipe(BF(function(fB,w){fB.push(w);return fB},[]))},g,{viewable:Qp(F,T),
maxTimeOnScreen:Qp(F,h.maxTimeOnScreen),timeOnScreen:Qp(F,h.timeOnScreen),maxConsecutiveViewTime:Qp(F,h.maxConsecutiveViewTime),consecutiveViewTime:h.consecutiveViewTime.pipe(vF(function(fB){return new qm(F.timeProvider,fB)})),
totalMeasurementTime:Qp(F,h.totalMeasurementTime),totalUnviewedTime:Qp(F,h.totalUnviewedTime),userAgentClientHints:kYO(F),clientOrderPingCounter:new S4(new CQX)})},J5S(K,n),kfY(S?wFu(u,Omz):wFu(u,NGY),YmX))};
thG=function(K){var d=_.Pg.apply(1,arguments).filter(Boolean).join("&");if(!d)return K;var f=K.match(/[?&]adurl=/);return f?K.slice(0,f.index+1)+d+"&"+K.slice(f.index+1):K+(K.indexOf("?")<0?"?":"&")+d};
s7=function(K,d){return d?"&"+K+"="+encodeURIComponent(d):""};
olY=function(){try{var K,d;return!!((K=window)==null?0:(d=K.top)==null?0:d.location.href)&&!1}catch(f){return!0}};
_.kh=function(K){K&&typeof K.dispose=="function"&&K.dispose()};
_.w0=function(K){for(var d=0,f=arguments.length;d<f;++d){var H=arguments[d];_.d2(H)?_.w0.apply(null,H):_.kh(H)}};
ElN=function(){var K=$oB();K=K===void 0?"bevasrsg":K;return new Promise(function(d){var f=window===window.top?window:olY()?window:window.top,H=f[K],D;((D=H)==null?0:D.bevasrs)?d(new Z4(H.bevasrs)):(H||(H={},H=(H.nqfbel=[],H),f[K]=H),H.nqfbel.push(function(S){d(new Z4(S))}))})};
hQo=function(K){var d={c:K.uv,e:K.pq6,mc:K.dmj,me:K.n1G};K.au&&(d.co={c:K.au.iX3,a:K.au.lZJ,s:K.au.bHZ});return d};
bmX=function(K){var d,f,H={uv:K.c,pq6:K.e,dmj:(d=K.mc)!=null?d:!1,n1G:(f=K.me)!=null?f:!1};K.co&&(H.au={iX3:K.co.c,lZJ:K.co.a,bHZ:K.co.s});return H};
moX=function(K){return function(){var d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,K(),2);d=f.yieldResult;return f.return({f:function(){return d.pR6()},
c:function(H){return d.eRG(H)},
m:function(H){return d.nR(bmX(H))},
mws:function(H){return d.l9(bmX(H))}})})}};
lqB=function(K,d){var f=$oB();f=f===void 0?"bevasrsg":f;d={s:function(S){var n;return K.snapshot(Object.assign({},S.c&&{uv:S.c},S.s&&{xpO:S.s},{cbD:(n=S.p)!=null?n:!0}))},
e:function(S){var n;return void((n=K.h5Z)==null?void 0:n.call(K,S))},
c:function(S,n){return K.p0V(S,n)},
p:K.gQO,l:function(){return K.oun()},
wpc:d?moX(d):void 0};var H=window===window.top?window:olY()?window:window.top,D=H[f];if(D){D.bevasrs=d;if(D.nqfbel!==void 0)for(f=_.y(D.nqfbel),H=f.next();!H.done;H=f.next())H=H.value,H(d);D.nqfbel=void 0}else D={},D=(D.bevasrs=d,D.nqfbel=void 0,D),H[f]=D};
GpS=function(K){var d=d===void 0?49:d;var f=[];_.e4(K,W$O,6,_.p0()).forEach(function(H){_.Km(H,2)<=d&&f.push(_.Km(H,1))});
return f};
Asp=function(K){var d=d===void 0?49:d;var f=[];_.e4(K,W$O,6,_.p0()).forEach(function(H){_.Km(H,2)>d&&f.push(_.Km(H,1))});
return f};
TGX=function(K){K.then(function(){},function(){})};
dG=function(K){return{fieldType:1,fieldName:K}};
fm=function(K){return{fieldType:2,fieldName:K}};
_.Hy=function(K){return{fieldType:3,fieldName:K}};
rsY=function(){function K(){D[0]=1732584193;D[1]=4023233417;D[2]=2562383102;D[3]=271733878;D[4]=3285377520;F=R=0}
function d(z){for(var v=n,g=0;g<64;g+=4)v[g/4]=z[g]<<24|z[g+1]<<16|z[g+2]<<8|z[g+3];for(g=16;g<80;g++)z=v[g-3]^v[g-8]^v[g-14]^v[g-16],v[g]=(z<<1|z>>>31)&4294967295;z=D[0];var N=D[1],h=D[2],m=D[3],T=D[4];for(g=0;g<80;g++){if(g<40)if(g<20){var r=m^N&(h^m);var J=1518500249}else r=N^h^m,J=1859775393;else g<60?(r=N&h|m&(N|h),J=2400959708):(r=N^h^m,J=3395469782);r=((z<<5|z>>>27)&4294967295)+r+T+J+v[g]&4294967295;T=m;m=h;h=(N<<30|N>>>2)&4294967295;N=z;z=r}D[0]=D[0]+z&4294967295;D[1]=D[1]+N&4294967295;D[2]=
D[2]+h&4294967295;D[3]=D[3]+m&4294967295;D[4]=D[4]+T&4294967295}
function f(z,v){if(typeof z==="string"){z=unescape(encodeURIComponent(z));for(var g=[],N=0,h=z.length;N<h;++N)g.push(z.charCodeAt(N));z=g}v||(v=z.length);g=0;if(R==0)for(;g+64<v;)d(z.slice(g,g+64)),g+=64,F+=64;for(;g<v;)if(S[R++]=z[g++],F++,R==64)for(R=0,d(S);g+64<v;)d(z.slice(g,g+64)),g+=64,F+=64}
function H(){var z=[],v=F*8;R<56?f(u,56-R):f(u,64-(R-56));for(var g=63;g>=56;g--)S[g]=v&255,v>>>=8;d(S);for(g=v=0;g<5;g++)for(var N=24;N>=0;N-=8)z[v++]=D[g]>>N&255;return z}
for(var D=[],S=[],n=[],u=[128],a=1;a<64;++a)u[a]=0;var R,F;K();return{reset:K,update:f,digest:H,digestString:function(){for(var z=H(),v="",g=0;g<z.length;g++)v+="0123456789ABCDEF".charAt(Math.floor(z[g]/16))+"0123456789ABCDEF".charAt(z[g]%16);return v}}};
xo5=function(K,d){d=d===void 0?qmO:d;if(!QQN){var f;K=(f=K.navigator)==null?void 0:f.userAgentData;if(!K||typeof K.getHighEntropyValues!=="function"||K.brands&&typeof K.brands.map!=="function")return Promise.reject(Error("ya"));jQS((K.brands||[]).map(function(D){var S=new Cln;S=_.aL(S,1,D.brand);return _.aL(S,2,D.version)}));
typeof K.mobile==="boolean"&&_.Dq(VX,2,K.mobile);QQN=K.getHighEntropyValues(d)}var H=new Set(d);return QQN.then(function(D){var S=VX.clone();H.has("platform")&&_.aL(S,3,D.platform);H.has("platformVersion")&&_.aL(S,4,D.platformVersion);H.has("architecture")&&_.aL(S,5,D.architecture);H.has("model")&&_.aL(S,6,D.model);H.has("uaFullVersion")&&_.aL(S,7,D.uaFullVersion);return S.serialize()}).catch(function(){return VX.serialize()})};
Sh=function(K,d,f,H){this.initialValue_=K;this.maxValue_=d;this.currBaseValue_=this.currValue_=K;this.randomFactor_=f||0;this.backoffFactor_=H||2};
yX=function(K){this.src=K;this.listeners={};this.typeCount_=0};
sQG=function(){for(var K;K=L$z.remove();){try{K.fn.call(K.scope)}catch(d){Dn(d)}BGG.put(K)}JsO=!1};
_.nm=function(K){switch(K){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}};
kpJ=function(K){switch(K){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""}};
_.wyX=function(){};
VDG=function(K){return{gZy:new ZmX(K),errorCount:new eQO(K),eventCount:new pyB(K),kJd:new KUX(K),zW5:new dqB(K),yA5:new fKJ(K),v2O:new Hnz(K),wd5:new DqX(K)}};
bnz=function(K,d,f,H){K=SnO(ycz(nF5(new _.il(1828,"0"),K),new inY));d.length&&ccu(K,$qp(new EFS,d));H!==void 0&&(K.destinationUrl=H);var D=new h7z(1828,"","",!1,"",K.build());_.cy(D,K);var S=new ul({flush:function(n){try{D.flush(n)}catch(u){f(u)}}});
S.addOnDisposeCallback(function(){setTimeout(function(){try{S.snapshotAndFlush()}finally{D.dispose()}})});
S.invocationLimit=1E5;S.flushInterval=3E4;S.JSC$7796_flushTimer.setInterval(3E4);return S};
aQ=function(){var K,d,f;return(f=(K=globalThis.performance)==null?void 0:(d=K.now)==null?void 0:d.call(K))!=null?f:Date.now()};
lKz=function(K,d,f){if(K.disable)return new mqz;d=d?GpS(d):[];if(f)return f.re3(d),f.share();K={mX:K.mX,fDO:K.vvZ,zNV:K.gdh,destinationUrl:K.destinationUrl,okn:K.okn,ih:K.ih};f=d;f=f===void 0?[]:f;return new IQ(K,f)};
_.WUu=function(K){if(!K)return null;K=_.Um(K,4);return K===null||K===void 0?null:_.yL(K)};
TQG=function(K,d){return d?GhJ(d):K?Acu(K):Promise.resolve()};
GhJ=function(K){return new Promise(function(d,f){var H=_.RQ("SCRIPT"),D=_.WUu(K);_.Aa(H,D);H.onload=function(){_.FE(H);d()};
H.onerror=function(){_.FE(H);f(Error("Ja"))};
(zp("HEAD")[0]||document.documentElement).appendChild(H)})};
Acu=function(K){return new Promise(function(d){var f=_.RQ("SCRIPT");if(K){var H=_.Um(K,6);H=H===null||H===void 0?null:_.l$(H)}else H=null;_.GY(f,H);(zp("HEAD")[0]||document.documentElement).appendChild(f);_.FE(f);d()})};
XE=function(K,d,f){var H,D=new Promise(function(S){H=setTimeout(S,d)});
return Promise.race([K.finally(function(){return void clearTimeout(H)}),
D.then(f)])};
rcz=function(K,d){try{return globalThis.sessionStorage.setItem(K,d),!0}catch(f){return!1}};
qnN=function(K,d,f,H){d=d===void 0?0:d;f=f===void 0?K.length:f;var D=0;for(H&&(D=qnN(H));d<f;d++)H=typeof K==="string"?K.charCodeAt(d):K[d],D=QlY(31,D)+H|0;return D};
jlB=function(K,d){return[qnN(K,0,K.length>>1,d),qnN(K,K.length>>1)]};
C8S=function(K){var d=_.y(jlB(K,vy));K=d.next().value;d=d.next().value;return K.toString(16)+d.toString(16)};
xqN=function(K,d){var f=jlB(d);K=new Uint32Array(K.buffer);d=K[0];var H=_.y(f);f=H.next().value;H=H.next().value;for(var D=1;D<K.length;D+=2){for(var S=d,n=D,u=f,a=H,R=0;R<22;R++)n=n>>>8|n<<24,n+=S|0,n^=u+38293,S=S<<3|S>>>29,S^=n,a=a>>>8|a<<24,a+=u|0,a^=R+38293,u=u<<3|u>>>29,u^=a;S=[S,n];K[D]^=S[0];D+1<K.length&&(K[D+1]^=S[1])}};
LUz=function(K,d,f,H,D){var S=(4-(vy.length+f.length)%4)%4,n=new Uint8Array(4+S+vy.length+4+f.length),u=new DataView(n.buffer),a=0;u.setUint32(a,Math.random()*4294967295);a=a+4+S;n.set(vy,a);a+=vy.length;u.setUint32(a,D);n.set(f,a+4);xqN(n,H);return K.insert(d,function(R){return void globalThis.sessionStorage.removeItem(R)})?rcz(d,_.eS(n))?"s":"t":"i"};
BQY=function(K,d){var f=globalThis.sessionStorage.getItem(K);if(!f)return["m"];try{var H=_.Us(f);xqN(H,d)}catch(D){return globalThis.sessionStorage.removeItem(K),["c"]}for(d=4;d<7&&H[d]===0;)d++;for(f=0;f<vy.length;f++)if(H[d++]!==vy[f])return globalThis.sessionStorage.removeItem(K),["d"];f=(new DataView(H.buffer)).getUint32(d);return Math.floor(Date.now()/1E3)>=f?(globalThis.sessionStorage.removeItem(K),["e"]):["a",new Uint8Array(H.buffer,d+4)]};
JcS=function(K){return globalThis.TextEncoder?(new TextEncoder).encode(K):_.Mo(K)};
slz=function(K){var d=K,f;return function(){if(d){var H=d;d=void 0;f=H.apply(this,arguments)}return f}};
Py=function(K){return J6(function(d){if(d instanceof K)return!0;var f,H,D=d==null?void 0:(f=d.ownerDocument)==null?void 0:(H=f.defaultView)==null?void 0:H[K.name];return kh5(D)&&d instanceof D})};
_.No=function(K,d,f){_.gG.call(this);this.JSC$8006_listener_=K;this.JSC$8006_interval_=d||0;this.handler_=f;this.callback_=(0,_.Om)(this.JSC$8008_doAction_,this)};
_.ts=function(K){K=wCN(K);return _.yL(K)};
wCN=function(K){return K===null?"null":K===void 0?"undefined":K};
e7S=function(K){if(K&&K.focus)if(K!==document.activeElement)K.focus();else return ZnJ(function(){return _.c(function(d){document.activeElement&&document.activeElement.blur();return d.return(ZnJ(function(){K.focus()}))})})};
_.pCS=function(K){var d=d===void 0?5:d;setTimeout(function(){var f;return _.c(function(H){H.nextAddress==1&&(f=document.activeElement);if(H.nextAddress!=5)return(document.activeElement===f||document.activeElement===document.body)&&d>=0&&K?_.I(H,e7S(K),5):H.jumpTo(0);if(document.activeElement===K)return H.return();K=K.parentElement;--d;return H.jumpTo(2)})},15)};
ZnJ=function(K){return new Promise(function(d){requestAnimationFrame(function(){d(K())})})};
dkB=function(K){if(_.oQ)K(_.oQ);else{var d;((d=KDn)!=null?d:KDn=[]).push(K)}};
Em=function(){!_.oQ&&_.$l&&_.fdS(_.$l());return _.oQ};
_.fdS=function(K){_.oQ=K;var d;(d=KDn)==null||d.forEach(dkB);KDn=void 0};
_.hs=function(K){_.oQ&&_.oQ.beforeLoadModuleCode(K)};
_.bl=function(){_.oQ&&_.oQ.JSC$8949_setLoaded()};
m$=function(K){return WK(K)?Number(K):String(K)};
HQY=function(K){this.action=K;this.wfv=!1};
Dku=function(K,d){HQY.call(this,"set-drive-options");this.appId=K;this.appOrigin=d};
VqG=function(K){HQY.call(this,"visibility");this.visible=K};
Sbn=function(K,d,f){ll.call(this,K,d,f)};
yRn=function(K){Wy.call(this,K)};
nMY=function(K){K=K&&K.getWindow()||window;return K.gadgets&&K.gadgets.rpc};
cRS=function(K,d){var f=d&&d.getWindow()||window;if(nMY(d))K();else if(iQz)iQz.push(K);else var H=iQz=[K],D=f.setInterval(function(){if(nMY(d)){f.clearInterval(D);for(var S=0;S<H.length;S++)H[S]();iQz=null}},100)};
adn=function(K,d){var f=new Gp(K);_.cy(d,f);var H={passive:!1};d.listen(f,"mousewheel",function(D){return void u0B(K,D)},H).listen(K,"scroll",function(D){return void u0B(K,D)},H)};
u0B=function(K,d){var f;a:{for(f=d.target;f;){if(f.nodeType==1){var H=_.As(f,"overflowY");if(H=="auto"||H=="scroll")break a}f=f.parentNode}f=null}if(!f||!_.Tp(K,f)||f.scrollHeight==f.clientHeight||d.deltaY>0&&Math.abs(f.scrollTop-(f.scrollHeight-f.clientHeight))<=1||d.deltaY<0&&f.scrollTop==0)d.preventDefault(),d.stopPropagation()};
Lm=function(K,d,f,H,D,S,n,u,a){u=u===void 0?!1:u;a=a===void 0?!1:a;ll.call(this,void 0,void 0,void 0);ll.call(this,S?S+" picker modal-dialog":"picker modal-dialog",!0,f);_.rG(K,"protocol");this.iframeManager_=new Idz;this.targetId_=qo();this.rpcToken_=qo();K=_.QX(K);_.jh(K,"hostId");f=_.jh(K,"parent");this.useGapi_=!a&&!0||(f==null?void 0:f.includes("onepick.corp.google.com"));u&&_.Cm(K,"fv2","true");this.setUrl(K.toString());this.preferredDialogWidth_=H;this.preferredDialogHeight_=D;H!==void 0||
D!==void 0?H=!0:(H=_.jh(_.QX(K.toString()),"hostId"),Ukz||(Ukz=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),H=!Ukz.has(H));this.autoSizeDialog_=H;this.JSC$8196_gadgetsDomHelper_=n||this.JSC$8147_dom_;d&&(n=this.JSC$8196_gadgetsDomHelper_,d=_.jh(_.QX(this.JSC$8198_url_),"grugl")=="true"?R8X:FDS,nMY(n)||(n=n||uW(document),H=n.createElement("SCRIPT"),_.Aa(H,d),H.type="text/javascript",n.JSC$7335_document_.body.appendChild(H)));
K=K.toString();d=null;n=K.indexOf("/picker?");n>-1?d=K.substring(0,n+8-1):nB(K,"/picker")&&(d=K);d&&this.setRelayUrl(d+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(K=this.buttons_,K.JSC$8181_element_=this.buttonEl_,K.render()):_.TY(this.buttonEl_,z8z),_.xl(this.buttonEl_,!!this.buttons_))};
_.Px5=function(K){var d=d===void 0?X_5:d;var f=_.DL(K),H=function(S){S=_.y(S);S.next();S=By(S);return d(f,S)},D=function(S){var n=_.y(S);
S=n.next().value;n=By(n);return K.apply(S,n)};
return function(){var S=_.Pg.apply(0,arguments),n=this||_.Hu,u=vM5.get(n);u||(u={},vM5.set(n,u));return MqG(u,[this].concat(_.Me(S)),D,H)}};
Js=function(K){var d={};K=K.replace(/\r/g,"").split("\n");for(var f=0;f<K.length;f++){var H=K[f],D=H.indexOf(":");D<0||(d[H.substring(0,D)]=H.substring(D+2,H.length))}return d};
sm=function(K,d,f){f=f===void 0?function(){}:f;
return K?d():f()};
_.OQX=function(K){var d;return((d=gMo.documentOverride)!=null?d:K).__wizdispatcher};
eh=function(K){var d=kl;kl=K;return d};
Ybz=function(K){return K===NFp||(K==null?void 0:K.name)==="\u0275NotFound"};
tqB=function(K,d){var f;if((f=K)==null?0:f.isDisposed)throw Error("nb`"+String(K.debugName));for(;K!==void 0;){f=K;if(f.retrieve)return f.retrieve(d,{optional:!0});K=K.parent}return NFp};
pm=function(K){return{"\u0275prov":{providedIn:"root",token:Symbol(K),factory:void 0,value:void 0}}};
oMX=function(K){var d=eh(K);K={};return K[Symbol.dispose]=function(){eh(d)},K};
$kS=function(K,d){K.disposables||(K.disposables=[]);K.disposables.push(d)};
Kn=function(K){var d=kl;d&&!d.isDisposed&&($kS(d,K),K.parent=d)};
h8G=function(K){if(K.disposables){for(var d=_.y(K.disposables),f=d.next();!f.done;f=d.next())f=f.value,typeof f==="function"?f():EMG(f);K.disposables.length=0}};
EMG=function(K){if(!K.isDisposed){K.isDisposed=!0;var d;(d=K[Symbol.dispose])==null||d.call(K);delete K.parent;h8G(K)}};
qbX=function(K){var d={retrieve:function(f){switch(f.\u0275prov.token){case bQJ.\u0275prov.token:var H=K.asyncDeps;break;case mkX.\u0275prov.token:H=K.rootElement;break;case ldS.\u0275prov.token:H=K.modelRootElement;break;case WDX.\u0275prov.token:H=K.appContext;break;case G2n.\u0275prov.token:H=K.rendererData;break;case ARG.\u0275prov.token:H=K.injectingConstructor;break;case TFz.\u0275prov.token:H=K.dispatcher}if(H)f=H;else a:{for(H=d.parent;H;){var D=H;if(D.retrieve){f=D.retrieve(f);break a}H=
H.parent}H=f.\u0275prov.token;D=rRN[H];D!==void 0?f=D:(D=f.\u0275prov.providedIn,f.\u0275prov.factory?(f=f.\u0275prov.factory(),H&&D==="root"&&(rRN[H]=f)):f=NFp)}return f}};
Kn(d);return d};
Qd5=function(){var K=kl;if(!K)throw Error("ob");var d=tqB(K,WDX);Ybz(d)&&(K=tqB(K,TFz),Ybz(K)||K.getOptionalAppContext())};
jdo=function(K){if(typeof document!=="undefined"&&document&&document.getElementById&&(K=document.getElementById(K))){var d=K.tagName.toUpperCase();if(d=="SCRIPT"||d=="LINK")return K}return null};
xkB=function(K,d){if((K=K===void 0?"":K)&&d)throw Error("ub");var f="";var H=_.Hu._F_jsUrl;(K=d||jdo(K))&&(f=K.src?K.src:K.getAttribute("href"));if(H&&f){if(H!=f)throw Error("vb`"+H+"`"+f);f=H}else f=H||f;if(!CxG(f))throw Error("wb");return f};
sdN=function(){if(!LDu){LDu=!0;try{var K=xkB(_.Hu._F_jsUrl?"":"base-js")}catch(H){return}var d=BFB(JRn(K)),f=Object.keys(d);f.length!==0&&dkB(function(H){for(var D=_.y(f),S=D.next();!S.done;S=D.next()){S=S.value;for(var n=_.y(Object.keys(d[S])),u=n.next();!u.done;u=n.next())H.addExtraEdge(S,u.value)}})}};
k2Y=function(K,d,f){var H;return K&&d?K+"__"+d:(H=K!=null?K:d)!=null?H:f};
ZQB=function(){var K=Object.assign({},w_G);Object.getOwnPropertyNames(w_G).forEach(function(d){dQ[d]!==void 0&&(K[d]=dQ[d])});
return K};
e8Y=function(K,d){if(dQ.enablePerformanceTiming){var f,H;(H=(f=performance).mark)==null||H.call(f,K+"Start__"+d)}};
p_z=function(K,d){if(dQ.enablePerformanceTiming){var f,H;(H=(f=performance).measure)==null||H.call(f,K+"__"+d,K+"Start__"+d)}};
dXG=function(K,d){var f=Object.create(Kgo);f.debugName=d;!kl||Kn(f);d=eh(f);try{K(f)}finally{eh(d)}return function(){return void EMG(f)}};
Hyp=function(K){return fn(K)&&fUS in K};
DXz=function(K,d){return Object.is(K,d)};
DK=function(K){var d=HC;HC=K;return d};
n_O=function(K){if(VD)throw Error("da");if(HC!==null){var d=HC.nextProducerIndex++;VQu(HC);d<HC.producerNode.length&&HC.producerNode[d]!==K&&SD(HC)&&SFn(HC.producerNode[d],HC.producerIndexOfThis[d]);HC.producerNode[d]!==K&&(HC.producerNode[d]=K,HC.producerIndexOfThis[d]=SD(HC)?y9B(K,HC,d):0);HC.producerLastReadVersion[d]=K.version}};
u4S=function(K){if(!SD(K)||K.dirty)if(K.dirty||K.lastCleanEpoch!==iyJ)(K.producerMustRecompute(K)||c9G(K))&&K.producerRecomputeValue(K),K.dirty=!1,K.lastCleanEpoch=iyJ};
aUG=function(K){if(K.liveConsumerNode!==void 0){var d=VD;VD=!0;try{for(var f=_.y(K.liveConsumerNode),H=f.next();!H.done;H=f.next()){var D=H.value;D.dirty||(K=void 0,D.dirty=!0,aUG(D),(K=D.consumerMarkedDirty)==null||K.call(D,D))}}finally{VD=d}}};
IUY=function(){var K;return((K=HC)==null?void 0:K.consumerAllowSignalWrites)!==!1};
UXu=function(K){K&&(K.nextProducerIndex=0);return DK(K)};
RA5=function(K,d){DK(d);if(K&&K.producerNode!==void 0&&K.producerIndexOfThis!==void 0&&K.producerLastReadVersion!==void 0){if(SD(K))for(d=K.nextProducerIndex;d<K.producerNode.length;d++)SFn(K.producerNode[d],K.producerIndexOfThis[d]);for(;K.producerNode.length>K.nextProducerIndex;)K.producerNode.pop(),K.producerLastReadVersion.pop(),K.producerIndexOfThis.pop()}};
c9G=function(K){VQu(K);for(var d=0;d<K.producerNode.length;d++){var f=K.producerNode[d],H=K.producerLastReadVersion[d];if(H!==f.version)return!0;u4S(f);if(H!==f.version)return!0}return!1};
y9B=function(K,d,f){FgS(K);if(K.liveConsumerNode.length===0&&K.producerNode!==void 0)for(var H=0;H<K.producerNode.length;H++)K.producerIndexOfThis[H]=y9B(K.producerNode[H],K,H);K.liveConsumerIndexOfThis.push(f);return K.liveConsumerNode.push(d)-1};
SFn=function(K,d){FgS(K);if(K.liveConsumerNode.length===1&&K.producerNode!==void 0)for(var f=0;f<K.producerNode.length;f++)SFn(K.producerNode[f],K.producerIndexOfThis[f]);f=K.liveConsumerNode.length-1;K.liveConsumerNode[d]=K.liveConsumerNode[f];K.liveConsumerIndexOfThis[d]=K.liveConsumerIndexOfThis[f];K.liveConsumerNode.length--;K.liveConsumerIndexOfThis.length--;d<K.liveConsumerNode.length&&(f=K.liveConsumerIndexOfThis[d],K=K.liveConsumerNode[d],VQu(K),K.producerIndexOfThis[f]=d)};
SD=function(K){var d,f;return K.consumerIsAlwaysLive||((f=K==null?void 0:(d=K.liveConsumerNode)==null?void 0:d.length)!=null?f:0)>0};
VQu=function(K){K.producerNode!=null||(K.producerNode=[]);K.producerIndexOfThis!=null||(K.producerIndexOfThis=[]);K.producerLastReadVersion!=null||(K.producerLastReadVersion=[])};
FgS=function(K){K.liveConsumerNode!=null||(K.liveConsumerNode=[]);K.liveConsumerIndexOfThis!=null||(K.liveConsumerIndexOfThis=[])};
X6G=function(K){var d=Object.create(zAz);d.computation=K;K=function(){u4S(d);n_O(d);if(d.value===yD)throw d.error;return d.value};
K[nn]=d;return K};
g_X=function(K,d){var f=Object.create(v_n);f.value=K;d!==void 0&&(f.equal=d);K=function(){n_O(f);return f.value};
K[nn]=f;return[K,function(H){return MQY(f,H)},
function(H){IUY()||PHO(f);MQY(f,H(f.value))}]};
MQY=function(K,d){IUY()||PHO(K);if(!K.equal(K.value,d)){K.value=d;K.version++;iyJ++;aUG(K);var f;(f=Oyu)==null||f(K)}};
i8=function(K){var d=DK(null);try{return K()}finally{DK(d)}};
_.cC=function(K,d,f){f=f===void 0?"":f;K=g_X(K,d==null?void 0:d.equals);var H=K[0],D=H[nn];D.debugName=k2Y(d==null?void 0:d.debugName,f,"[signal]");if(!dQ.enablePerformanceTiming)return K;var S=K[1],n=K[2];return[H,function(u){Ni5(function(){return void S(u)},D)},
function(u){Ni5(function(){return void n(u)},D)}]};
Ni5=function(K,d){e8Y("signalSet",d.debugName);try{K()}finally{p_z("signalSet",d.debugName)}};
tQN=function(K,d){var f=_.y(_.cC(K,void 0,"cPpJzc"));K=f.next().value;f=f.next().value;K[YFp]=f;K[u8]=d;return K};
o_X=function(K){return!!K&&typeof K==="object"&&Object.getPrototypeOf(K)===Object.prototype};
$Xn=function(K){return typeof K==="function"&&YFp in K&&typeof K[YFp]==="function"};
E_p=function(K,d){Object.defineProperty(K,u8,{get:function(){return d}})};
Rl=function(K,d){if(al(K)){var f=K.map(function(S){return Rl(S,d)});
E_p(f,d);return f}if(o_X(K)){f={};K=_.y(Object.entries(K));for(var H=K.next();!H.done;H=K.next()){var D=_.y(H.value);H=D.next().value;D=D.next().value;f[H]=Rl(D,d)}E_p(f,d);return f}return tQN(K,d)};
hAJ=function(K){if(al(K))return K.map(function(D){return hAJ(D)});
if(o_X(K)){var d={};K=_.y(Object.entries(K));for(var f=K.next();!f.done;f=K.next()){var H=_.y(f.value);f=H.next().value;H=H.next().value;d[f]=hAJ(H)}return d}return $Xn(K)?K():K};
mXS=function(){var K={height:0,width:0};if(!o_X(K))throw Error("Ib");var d=Symbol("Jb");return[Rl(K,d),function(f,H){if(f[u8]===d)if(typeof H==="function"){var D=[].concat(_.Me(hAJ(f)));H=H(D)||D;byu(f,[].concat(_.Me(H)))}else byu(f,H);else throw Error("Kb");}]};
byu=function(K,d){if($Xn(K))K[YFp](d);else if(al(K)&&al(d))d=Rl(d,K[u8]),K.length=0,K.push.apply(K,_.Me(d));else if((o_X(K)||al(K))&&(al(d)||typeof d==="object"&&d!==null)){d=_.y(Object.entries(d));for(var f=d.next();!f.done;f=d.next()){var H=_.y(f.value);f=H.next().value;H=H.next().value;var D=K,S=D[f];Object.hasOwn(K,f)?byu(S,H):D[f]=Rl(H,K[u8])}}else throw Error("Lb");};
lUz=function(K){return Object.create(Object.assign({},FR,K))};
Gsp=function(){var K;return(K=Wgz)!=null?K:Wgz=lUz({consumerAllowSignalWrites:!0})};
_.zh=function(K,d,f){f=f===void 0?"":f;K=X6G(K);var H=K[nn];H.debugName=k2Y(d==null?void 0:d.debugName,f,"[computed]");(d==null?void 0:d.equals)!=null&&(H.equal=d.equals);return K};
vC=function(K){var d=DK(A95);try{K()}finally{DK(d)}};
xXX=function(K){if(!K.isDisposed)switch(K.effectType){case Tiz:r95.schedule(K);break;case qFJ:Q05.schedule(K);break;case j0o:CHX.schedule(K);break;default:_.nE(K.effectType)}};
Biz=function(K){LgY.push(K);return function(){var d=LgY.indexOf(K);d!==-1&&LgY.splice(d,1)}};
s0z=function(){if(PC>0)r95.flush();else for(var K=_.y(J9S),d=K.next();!d.done;d=K.next())d.value.flush()};
w6B=function(K){for(var d=_.y(K),f=d.next();!f.done;f=d.next()){var H=f.value;for(f=[H];H.parent!==void 0;)H=H.parent,ksJ(H)&&K.has(H)&&f.push(H);for(;f.length>0;)H=f.pop(),K.delete(H),H.run()}};
Zy5=function(K){PC--;if(K){K=_.y(J9S);for(var d=K.next();!d.done;d=K.next())d.value.clear()}else PC>0||s0z()};
p6G=function(K,d,f){var H=eAu(K);gQ={name:f?H+" ("+f+")":H,isReactive:K.componentType!==On,parent:gQ};K=d();gQ=gQ.parent;return K};
Nq=function(){var K=gQ;return K?K.isReactive:!1};
tc=function(K,d){var f=gQ;d&&(gQ=d);try{return K()}catch(S){K=S;YF(K,gQ);if(K!==KnB){dHO=gQ;d=[];for(var H=kl;H;){var D=void 0;d.push((D=H.debugName)!=null?D:"[context]");D=void 0;H=(D=H.parent)!=null?D:null}fkY=d.reverse()}KnB=K;throw K;}finally{gQ=f}};
YF=function(K,d){try{var f=HAB(d);if(f&&!K.componentStack&&(K.componentStack=f,dQ.enableComponentStacksInErrorMessages)){var H=K.message+"\n\nComponent stack: "+f;K.stack&&(K.stack=K.stack.replace(K.message,H));K.message=H}}catch(D){}};
HAB=function(K){if(fn(K)&&K.name!==void 0&&K.isReactive!==void 0&&K.parent!==void 0||K===null){for(var d=0,f="";d<20&&K;)f+=K.name+" > ",K=K.parent,d++;K=f.slice(0,-3)}else if(dQ.enableContextBasedComponentStacks){a:{for(K=K===void 0?kl:K;K;){if(Hyp(K))break a;d=void 0;K=(d=K.parent)!=null?d:null}K=null}K=K.getComponentStack().slice(0,20).join(" > ")}else K="";return K};
eAu=function(K){return K.debugName||K.name||"[component]"};
DHB=function(K,d,f){d=Object.create(d);d.effectFn=K;f&&(d.debugName=f);Kn(d);d.componentStack=gQ;return d};
_.ol=function(K,d){K=DHB(K,Vcn,d);xXX(K)};
_.$F=function(K){var d=kl;if(d){var f=gQ;$kS(d,function(){var H=DK(Gsp());try{tc(function(){return void K()},f)}catch(D){throw dQ.enableContextBasedComponentStacks&&YF(D),D;
}finally{DK(H)}})}};
En=function(K,d){var f={};(d===void 0||d)&&Kn(f);d=eh(f);try{K(f)}finally{eh(d)}return function(){return void EMG(f)}};
_.hc=function(K){return typeof K==="function"?K():(K==null?0:K[SXY])?K.get():K};
_.b8=function(K,d){K=DHB(K,yLn,d);xXX(K)};
nKJ=function(K){if(kl)throw Error("rb");En(K,!1)};
mU=function(K,d){K=eh(K);try{return i8(d)}finally{eh(K)}};
l8=function(K,d){var f=HAB(dHO),H,D;var S=(D=(H=fkY)==null?void 0:H.slice())!=null?D:[];d={componentStack:f,contextTrace:S,errorSeverity:3,featureFlags:ZQB(),tagName:d};return[K,d]};
ujo=function(K,d,f){if(Object.hasOwnProperty.call(iAY,K)&&(K=iAY[K],Object.hasOwnProperty.call(K,d)&&(K=K[d],K instanceof Array))){for(var H=null,D=!1,S=0,n=K.length;S<n;++S){var u=K[S],a=u.contingentAttribute;if(!a)return u.contract;H===null&&(H={});a=Object.hasOwnProperty.call(H,a)?H[a]:H[a]=f(a);if(a===u.requiredValue)return u.contract;a==null&&(D=!0)}if(D)return null}d=cLJ[d];return typeof d==="number"?d:null};
UHG=function(K,d,f){var H=null;(K=akz[K])&&(H=K[d]);return typeof H!=="number"&&((K=akz["*"])&&(H=K[d]),typeof H!=="number")?!1:!0===Ikz[H][String(f).toLowerCase()]};
Fnu=function(K,d){d=ujo(K.toLowerCase(),d,function(){var H;(H=dQ.handleError)==null||H.call.apply(H,[dQ].concat(_.Me(l8(Error("Qb"),K.toLowerCase()))))});
if(d===null)return null;var f;return(f=RnN[d])!=null?f:null};
znB=function(K,d,f){if(f===null||f===void 0)return f;K=Fnu(K,d);return K===null?f:K(d,f)};
XAG=function(){};
WC=function(K,d){for(;K.length>d;)K.pop()};
vKS=function(K){K=Array(K);WC(K,0);return K};
McX=function(K,d,f){if(f==null)K.removeAttribute(d);else{var H;(H=d.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":d.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?K.setAttributeNS(H,d,f):K.setAttribute(d,f)}};
P3n=function(K,d,f){K[d]=f};
OAO=function(K,d,f){K=K.style;if(typeof f==="string")K.cssText=f;else{K.cssText="";for(var H in f)if(gKB.call(f,H)){d=K;var D=H,S=f[H];D.indexOf("-")>=0?d.setProperty(D,S):d[D]=S}}};
NRn=function(K,d,f){var H=typeof f;H==="object"||H==="function"?K[d]=f:McX(K,d,f)};
YXG=function(){var K=new XAG;K[Gh.default]=NRn;K.style=OAO;return K};
tcN=function(K,d,f,H){(H[d]||H[Gh.default])(K,d,f)};
$HB=function(K,d,f){d=new oKJ(d,f);return K.__incrementalDOMData=d};
Ac=function(K,d){if(K.__incrementalDOMData)return K.__incrementalDOMData;var f=K.nodeType===1?K.localName:K.nodeName,H=K.nodeType===1?K.getAttribute("key"):null;d=$HB(K,f,K.nodeType===1?H||d:null);if(K.nodeType===1&&(K=K.attributes,f=K.length)){H=d._attrsArr||(d._attrsArr=vKS(f*2));for(var D=0,S=0;D<f;D+=1,S+=2){var n=K[D],u=n.value;H[S]=n.name;H[S+1]=u}}return d};
EKX=function(K,d,f,H,D){return d==f&&H==D};
hnp=function(K){for(var d=Th,f=rQ();f!==K;){var H=f.nextSibling;d.removeChild(f);qq.deleted.push(f);f=H}};
rQ=function(){return QD?QD.nextSibling:Th.firstChild};
jD=function(){QD=rQ()};
lkz=function(K,d,f){jD();var H;a:{if(H=QD){do{var D=H,S=K,n=d,u=Ac(D,n);if(bAX(D,S,u.nameOrCtor,n,u.key))break a}while(d&&(H=H.nextSibling))}H=null}H||(K==="#text"?(f=Cn.createTextNode(""),$HB(f,"#text",null),K=f):(H=Cn,D=Th,typeof K==="function"?H=new K:H=(D=K==="svg"?"http://www.w3.org/2000/svg":K==="math"?"http://www.w3.org/1998/Math/MathML":D==null||Ac(D).nameOrCtor==="foreignObject"?null:D.namespaceURI)?H.createElementNS(D,K):H.createElement(K),$HB(H,K,d),K=H,f&&K.setAttribute("nonce",f)),qq.created.push(K),
H=K);f=H;if(f!==QD){if(mHn.indexOf(f)>=0)for(K=Th,d=f.nextSibling,H=QD;H!==null&&H!==f;)D=H.nextSibling,K.insertBefore(H,d),H=D;else Th.insertBefore(f,QD);QD=f}};
WnY=function(K,d,f){lkz(K,d,f);Th=QD;QD=null;return Th};
G7p=function(){hnp(null);QD=Th;Th=Th.parentNode};
BC=function(){QD=Th.lastChild};
rLY=function(K,d){d=d===void 0?{}:d;var f=d.matches===void 0?EKX:d.matches;return function(H,D,S){var n=qq,u=Cn,a=mHn,R=Jc,F=sn,z=QD,v=Th,g=bAX;Cn=H.ownerDocument;qq=new ALX(H);bAX=f;Jc=[];sn=[];QD=null;var N=Th=H.parentNode,h,m=TRB.call(H);if((h=m.nodeType===11||m.nodeType===9?m.activeElement:null)&&H.contains(h)){for(m=[];h!==N;)m.push(h),h=h.parentNode||(N?h.host:null);N=m}else N=[];mHn=N;try{return K(H,D,S)}finally{H=qq,kF&&H.deleted.length>0&&kF(H.deleted),Cn=u,qq=n,bAX=g,Jc=R,sn=F,QD=z,Th=v,
mHn=a}}};
qX5=function(K,d,f,H){wQ.push(tcN);wQ.push(K);wQ.push(d);wQ.push(f);wQ.push(H)};
jcN=function(K,d,f){var H=sn;d=d._attrsArr||(d._attrsArr=vKS(H.length));for(var D=!d.length||!1,S=0;S<H.length;S+=2){var n=H[S];if(D)d[S]=n;else if(d[S]!==n)break;var u=H[S+1];if(D||d[S+1]!==u)d[S+1]=u,qX5(K,n,u,f)}if(S<H.length||S<d.length){for(S=D=S;S<d.length;S+=2)ZK[d[S]]=d[S+1];for(S=D;S<H.length;S+=2)D=H[S],n=H[S+1],ZK[D]!==n&&qX5(K,D,n,f),d[S]=D,d[S+1]=n,delete ZK[D];WC(d,H.length);for(var a in ZK)qX5(K,a,void 0,f),delete ZK[a]}K=QcS;QcS=f=wQ.length;for(a=K;a<f;a+=5)(0,wQ[a])(wQ[a+1],wQ[a+
2],wQ[a+3],wQ[a+4]);QcS=K;WC(wQ,K);WC(H,0)};
eD=function(K){lkz("#text",null);var d=QD;var f=Ac(d);if(f.text!==K){f=f.text=K;for(var H=1;H<arguments.length;H+=1)f=(0,arguments[H])(f);d.data!==f&&(d.data=f)}};
scO=function(K,d,f){if(f===!1&&C3z.has(d))McX(K,d,null);else if(d!=="idomKey"&&d!=="skip"&&d!=="skipchildren"&&d!=="children"&&d!=="el"){if(d.startsWith("on"))if(d[2]===":"){if(f===void 0||f===null){var H;(H=dQ.handleError)==null||H.call.apply(H,[dQ].concat(_.Me(l8(Error("Ub`"+d),K.tagName))));K[d]=void 0;return}if(typeof f!=="object"||f===null)throw Error("Vb`"+d+"`"+typeof f);if(typeof f.getFn!=="function")throw Error("Wb`"+d+"`"+Object.keys(f));var D=f.getFn(0),S=d.slice(3);if((H=Nq())&&K["on"+
S]===void 0)K.addEventListener(S,D),_.$F(function(){return void K.removeEventListener(S,D)});
else if(H||!xHG.includes(S))K["on"+S]=D}else{LnJ(K,d,f);return}else if(d.startsWith("data-")&&typeof f==="string")try{f=BRJ(f)}catch(n){f="zSoyz"}typeof f!=="function"||K._disposeEffects!=null?(dQ.enableAttributeSanitization&&(f=znB(K.tagName,d,f)),d==="style"?JLY(K,d,f):d.startsWith("prop:")?(d=d.slice(5),K[d]=f):LnJ(K,d,f)):(K._signalProps||(K._signalProps=[]),K._signalValues||(K._signalValues=[]),K._signalProps.push(d))}};
k7z=function(K,d,f){f=(f===void 0?{}:f).isReactive;if(d==null?0:d.el){var H=d.el;if(typeof H==="function")H(K);else{var D;(D=H.onRender)==null||D.call(H,K);K._disposeRef||(K._disposeRef=function(){var S;(S=H.onUnmount)==null||S.call(H);delete K._disposeRef},f&&_.$F(function(){var S;
return void((S=K._disposeRef)==null?void 0:S.call(K))}))}}};
wAJ=function(K){return fn(K)&&pn in K};
ZAX=function(K){return wAJ(K)?K[pn].flattened:K};
enN=function(K,d){var f=_.Pg.apply(2,arguments),H;d=(H=d)!=null?H:{};H={};return H.type=K,H.props=d,H.children=f,H[KQ]=!0,H};
_.dF=function(K){return K.children};
fQ=function(K){var d=pAB!==enN;pAB=K?Khz:enN;return d};
H_=function(K){return _.H4(K)?"nodeType"in K:!1};
Dd=function(){return document.createTextNode("")};
VB=function(K){K=document.createTextNode(String(K));K._isSignalTextNode=!0;return K};
dFO=function(K){var d=document.createElement("div");if(!(K instanceof YG)){if(K.contentKind!==Sq)throw Error("Tb");K=ta(K.toString())}_.TY(d,K);K=_.y(d.childNodes);for(var f=K.next();!f.done;f=K.next())f.value._isSafeOrSanitizedHtmlNode=!0;return d};
yB=function(K){K=typeof K;return K==="string"||K==="number"||K==="boolean"};
fxX=function(K){return K instanceof Se||ao(K)||"function"==typeof _.je&&K instanceof _.je||!1};
Ho5=function(K,d){var f=K.parentElement;if(!f)return d;f.replaceChild(d,K);return d};
DFo=function(K,d){var f=K[0].parentElement;if(f)if(K[0].previousSibling||K[K.length-1].nextSibling){f.insertBefore(d,K[0]);for(var H=K.length-1;H>=0;H--)f.removeChild(K[H])}else f.textContent="",f.appendChild(d);return d};
V75=function(K,d){if(K[0].parentElement)for(var f=K[0].parentElement,H=d.length,D=K.length,S=H,n=0,u=0,a=K[D-1].nextSibling,R=null;n<D||u<S;)if(K[n]===d[u])n++,u++;else{for(;K[D-1]===d[S-1];)D--,S--;if(D===n)for(var F=S<H?u?d[u-1].nextSibling:d[S-u]:a;u<S;){var z=d[u++];f.insertBefore(z,F)}else if(S===u)for(;n<D;)F=K[n],R&&R.has(F)||f.removeChild(F),n++;else if(K[n]===d[S-1]&&d[u]===K[D-1])F=K[--D].nextSibling,f.insertBefore(d[u++],K[n++].nextSibling),f.insertBefore(d[--S],F),K[D]=d[S];else{if(!R)for(R=
new Map,F=u;F<S;)R.set(d[F],F++);F=R.get(K[n]);if(F==null)f.removeChild(K[n]),n++;else if(u<F&&F<S){z=n;for(var v=1,g=void 0;++z<D&&z<S&&(g=R.get(K[z]))!=null&&g===F+v;)v++;if(v>F-u)for(z=K[n];u<F;)f.insertBefore(d[u++],z);else f.replaceChild(d[u++],K[n++])}else n++}}return d};
ioG=function(K,d){var f;d!=null?f=d:f=_.OQX(document).getAppContext();f.get(SNo).JSC$25450_getEventTarget().dispatchEvent(new y3z(n75,K,Sq))};
ubN=function(K){if(Array.isArray(K)){if(K.length>1)throw Error("ec`"+K.length+"`"+K.map(c3X).join(", "));K=K[0]}if(K==null)return null;if(!(K instanceof _.mc)){var d,f;if((d=window)==null?0:(f=d.trustedTypes)==null?0:f.isScript(K))throw Error("dc");if(String(K).trim().length===0)return null;throw Error("fc`"+c3X(K));}return K};
axO=function(K){if(Array.isArray(K)){if(K.length>1)throw Error("gc`"+K.length+"`"+K.map(c3X).join(", "));K=K[0]}if(K==null)return null;if(!Owz(K)){if(String(K).trim().length===0)return null;throw Error("hc`"+c3X(K));}return K};
c3X=function(K){return"("+typeof K+") "+(K!=null&&typeof K==="object"?K.constructor.name:typeof K)+" "+K};
ix=function(K,d){function f(){D=!1;d.isControlFlowComponent&&PC++;var S=H[0],n=H[pn].flattened,u=fQ(!0);try{var a=K(),R=Ixz(S,a,H);Array.isArray(R)||(H[pn].flattened=[R]);var F=H[pn].flattened;if(n&&(!Array.isArray(n)||n.length!==0)){var z=Array.isArray(n)?n[0]:n,v=z[nQ],g=z._disposeEffects;z._disposeEffects=void 0;z=Array.isArray(F)?F[0]:F;z[nQ]=v;z[nQ]&&(z[nQ].numNodes=z===F?1:F.length);z._disposeEffects=g}H[0]=R;d.isControlFlowComponent&&Zy5(!1)}catch(N){throw d.isControlFlowComponent&&Zy5(!0),
N;}finally{fQ(u)}}
d=d===void 0?{}:d;var H=UFX(),D=!0;dQ.legacyTriggerSoyRendererEvents&&Qd5();_.b8(function(){(RdS==null?0:RdS.logger)&&!D?RdS.logger.logGraft(H[0],f):f()},d.debugName);
return H};
Ixz=function(K,d,f){for(;typeof d==="function";)d=d();if(d!=null&&d[KQ]){var H,D,S;(S=dQ.handleError)==null||S.call.apply(S,[dQ].concat(_.Me(l8(Error("ic`"+((H=d.type)==null?void 0:H.TAG_NAME)),(D=d.type)==null?void 0:D.TAG_NAME))))}if(K==null)return d==null?Dd():yB(d)?VB(d):fxX(d)?VB(d.toString()):H_(d)?d:d.length===0?Dd():FhJ(d,f);if(H_(K)){if(d==null)return Ho5(K,Dd());if(yB(d))return zdp(K,d);if(fxX(d))return zdp(K,d.toString());if(H_(d))return Ho5(K,d);if(d.length===0)return Ho5(K,Dd());d=FhJ(d,
f);V75([K],f[pn].flattened);return d}K=c_(K);if(d==null)return DFo(K,Dd());if(yB(d))return DFo(K,VB(d));if(fxX(d))return DFo(K,VB(d.toString()));if(H_(d))return V75(K,[d])[0];if(d.length===0)return DFo(K,Dd());d=FhJ(d,f);V75(K,f[pn].flattened);return d};
zdp=function(K,d){K.nodeType===Node.TEXT_NODE?K.textContent!==String(d)&&(K.textContent=String(d)):K=Ho5(K,VB(d));return K};
c_=function(K,d,f){return Xa5(K,d!=null?d:[],f===void 0?!1:f)};
FhJ=function(K,d){var f=c_(K,void 0,!0);if(f.length===0)return Dd();d[pn].flattened=f;return K};
Xa5=function(K,d,f,H,D){d=d===void 0?[]:d;f=f===void 0?!1:f;D=D===void 0?-1:D;if(K==null)return d;if(K instanceof ux)return K=K.render(),Xa5(K,d,f,H,D);if(H_(d)&&d.nodeType===Node.ELEMENT_NODE)switch(d.tagName){case "SCRIPT":f=ubN(K);f!==null&&_.GY(d,f);return;case "STYLE":f=axO(K);f!==null&&(d.textContent=_.N4X(f));return}yB(K)&&(K=VB(K),H&&f&&(H[D]=K));if(K!=null&&K.contentKind===Sq||K instanceof YG){f=dFO(K);f=Array.from(f.childNodes);f=_.y(f);for(K=f.next();!K.done;K=f.next())v7p(d,K.value);return d}fxX(K)&&
(K=VB(K.toString()),H&&f&&(H[D]=K));if(H_(K))return v7p(d,K);if(Array.isArray(K)){for(var S=0;S<K.length;S++)Xa5(K[S],d,f,K,S);return d}if(typeof K==="function"){K=ix(K,{debugName:"qmF2ne"})[0];if(Array.isArray(K)){f=_.y(K);for(K=f.next();!K.done;K=f.next())v7p(d,K.value);return d}H&&f&&(H[D]=K);return v7p(d,K)}if(K!=null&&K[KQ]){H=fQ(!0);D=pAB;try{S=D.apply(null,[K.type,K.props].concat(_.Me(K.children)))}finally{fQ(H)}return Xa5(S,d,f)}var n;(n=dQ.handleError)==null||n.call.apply(n,[dQ].concat(_.Me(l8(Error("jc")))));
return d};
UFX=function(K){var d={};d=Object.assign([],(d[pn]={flattened:[]},d));if(!K)return d;d[0]=FhJ(K,d);return d};
v7p=function(K,d){Array.isArray(K)?K.push(d):K.appendChild(d);return K};
Id=function(K){if(!dQ.enableLazyTsx)return K;if(Array.isArray(K)){for(var d=0;d<K.length;d++)K[d]=Id(K[d]);return K}return K instanceof ux?(K=K.render(),Id(K)):K};
Ppn=function(K,d){var f,H,D=eAu(K),S=function(g){H=g;g=fQ(!0);var N=DK(Ub);e8Y("render",D);try{f=Id(K(d))}finally{p_z("render",D),DK(N),fQ(g)}};
S=dQ.enableContextPerComponent?dXG(S,D):En(S,dQ.alwaysTrackContexts||!!kl);Hyp(H);if(!d.renderedFromIdom){var n=eh(H);try{return M7B(K,d,f),f}finally{eh(n)}}!wAJ(f)&&Array.isArray(f)&&(f=UFX(f));var u=ZAX(f);n=Array.isArray(u)?u[0]:u;var a=!1;if(n){var R,F=(R=d==null?void 0:d.idomKey)!=null?R:K;R=u!==n;n._disposeEffects=S;var z=n[nQ]||{},v=wAJ(f)?f:z.sourceDynamicRange;Object.assign(z,{key:F,numNodes:R?u.length:1,context:H,higherOrder:!!n[nQ],sourceDynamicRange:v});n[nQ]=z}else a=!0;(function(){var g=
eh(H);try{M7B(K,d,u)}finally{eh(g)}})();
a&&S();return f};
g7o=function(K){var d={},f;for(f in K)d={prev$jscomp$23:void 0,next$jscomp$32:void 0},d.prev$jscomp$23=Rd[f],d.next$jscomp$32=K[f],Rd[f]=function(H){return function(){var D=_.Pg.apply(0,arguments);H.prev$jscomp$23.apply(null,_.Me(D));H.next$jscomp$32.apply(null,_.Me(D))}}(d)};
OoX=function(){if(Nq())throw Error("kc");return F0};
NUp=function(K,d){if(!K.__unmounted&&d){K.__unmounted=!0;try{K.didUnmount()}catch(D){var f,H;(H=dQ.handleError)==null||H.call.apply(H,[dQ].concat(_.Me(l8(D,(f=K.JSC$8270___type)==null?void 0:f.TAG_NAME))))}Rd.didUnmount(K);K.el=null;d.__instance&&delete d.__instance}};
t75=function(K,d,f){K._signalProps!=null&&K._disposeEffects==null&&((f===void 0?0:f)?K._disposeEffects=En(function(){return void YNu(K,d)},dQ.alwaysTrackContexts||!!kl):YNu(K,d))};
YNu=function(K,d){_.b8(function(){for(var f=K._signalProps,H=K._signalValues,D=0;D<f.length;D++){var S=f[D],n=d[S]();H[D]!==n&&(H[D]=n,scO(K,S,n))}},"e3YVbb")};
o7X=function(K,d,f){var H,D=[];K._disposeEffects=En(function(){_.b8(function(){var S=f();if(S===null||S===void 0)S="";if(yB(S)||S===null)H!=null||(H=document.createTextNode("")),H.parentNode!==K&&(H._isSignalTextNode=!0,K.insertBefore(H,d)),H.textContent=String(S);else if(S!=null&&S.contentKind===Sq||S instanceof YG){for(var n=D.length>0?D[D.length-1].nextSibling:d,u=_.y(D),a=u.next();!a.done;a=u.next())K.removeChild(a.value);S=dFO(S);D=Array.from(S.childNodes);S=_.y(D);for(u=S.next();!u.done;u=S.next())K.insertBefore(u.value,
n)}else throw a=(u=(n=gQ)==null?void 0:n.name)!=null?u:"unknown",Error("$b`"+a+"`"+typeof S);},"VvDgC")},dQ.alwaysTrackContexts||!!kl)};
hdn=function(K,d){var f=_.Pg.apply(2,arguments);d!=null||(d={});return!dQ.enableLazyTsx||gQ!=null&&!Nq()?$Fz(K,d,f):new E7X(K,d,f)};
$Fz=function(K,d,f){if(K===_.dF)return f;if(typeof K==="function")return gQ&&!Nq()&&(d.renderedFromIdom=!0),p6G(K,function(){var S=boX(K,d,f);if(S)return S;f.length>0&&(d.children=f.length===1?f[0]:f);if(K.componentType===On){var n;dXG(function(){var u=d;if(K.componentType!==On)n=!1;else{u||(u={});var a=new z2(u,K),R=DK(Ub);try{var F=a.render(u)}finally{DK(R)}F instanceof HTMLElement?(F.__instance=a,a.el=F,a.JSC$8270___type=K,K.TAG_NAME=F.tagName.toLowerCase(),Rd.didPatch(a),n=F):n=F}},K.name);
if(n)return n}return Ppn(K,d)},d.debugInstance);
var H=mFz(K,d),D;for(D in d)scO(H,D,d[D]);t75(H,d);c_(f,H);k7z(H,d,{isReactive:!0});lxO(H,d);return H};
mFz=function(K,d){K=(Whu.has(K.toLowerCase())?0:GEz.has(K.startsWith("svg:")?K.replace("svg:",""):K))?document.createElementNS("http://www.w3.org/2000/svg",K.startsWith("svg:")?K.replace("svg:",""):K):A3O(K,d)||document.createElement(K);K[TUp]=!0;return K};
r3u=function(K){if(K){var d;(d=K._disposeRef)==null||d.call(K);var f;(f=K._disposeEffects)==null||f.call(K);K.__instance&&K.__instance instanceof X0&&(d=K.__instance,NUp(d,K),d instanceof z2&&d.disposeEffects());for(d=0;d<K.childNodes.length;d++)r3u(K.childNodes[d])}};
QBz=function(K){qNu.push(K)===1&&requestAnimationFrame(function(){setTimeout(function(){var d=[].concat(_.Me(qNu));qNu=[];d=_.y(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;try{for(var H=0;H<f.length;H++)r3u(f[H])}catch(D){H=f=void 0,(H=(f=dQ).handleError)==null||H.call.apply(H,[f].concat(_.Me(l8(D))))}}})})};
_.U=function(K,d){return pAB.apply(null,[K,d].concat(_.Me(_.Pg.apply(2,arguments))))};
CpG=function(){var K=document.body.firstElementChild;window.ng||K.__ngContext__||(K.__ngContext__={},K.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=jBN)};
_.X=function(K){var d=K.cond;if(d===void 0)return K.else&&K.else();var f=_.zh(function(){return!!d()},void 0,"JHVi8"),H=function(){var D=d();
if(!D){var S;(S=dQ.handleError)==null||S.call.apply(S,[dQ].concat(_.Me(l8(xFo.nonNullableCondIsNull()))))}return D};
return ix(function(){var D=f(),S;En(function(){var n=DK(Ub);try{S=Id(D?K.then(H):K.else&&K.else())}finally{DK(n)}},!0);
return S},{debugName:K.debugInstance,
isControlFlowComponent:!0})};
LhB=function(K){return _.X(K)};
_.v_=function(K){return K.keyBy==="INDEX"?BUz(K):J3N(K)};
sBo=function(K){K=_.y(K);for(var d=K.next();!d.done;d=K.next()){var f=void 0;(f=d.value)==null||f()}};
J3N=function(K){var d=K.keyBy===void 0||K.keyBy==="REFERENCE",f=d?function(F){return F}:K.keyBy,H=[],D=[],S=[],n=[],u=[],a=[],R=!0;
_.$F(function(){sBo(n)});
return ix(function(){var F=K.each(),z=F.length;if(z===0){if(H.length===0&&!R)return S;sBo(n);H=F;D=[];for(F=0;F<H.length;F++)D.push(f(H[F]));S=[];n=[];u=[];a=[];K.fallback&&(n[0]=kEN(function(){S[0]=Id(K.fallback())}));
R=!1;return S}for(var v=new wa5,g=H.length-1;g>=0;g--)v.push(D[g],g);g=Array(z);for(var N=Array(z),h=Array(z),m=Array(z),T=Array(d?0:z),r={i$jscomp$486:0};r.i$jscomp$486<z;r={i$jscomp$486:r.i$jscomp$486,item$jscomp$103:void 0,key$jscomp$523:void 0},r.i$jscomp$486++){r.item$jscomp$103=F[r.i$jscomp$486];r.key$jscomp$523=f(r.item$jscomp$103);var J=v.pop(r.key$jscomp$523);J!=null?(h[r.i$jscomp$486]=S[J],N[r.i$jscomp$486]=D[J],g[r.i$jscomp$486]=n[J],m[r.i$jscomp$486]=u[J],d||(T[r.i$jscomp$486]=a[J]),vC(function(L){return function(){m[L.i$jscomp$486](L.i$jscomp$486);
if(!d)T[L.i$jscomp$486](L.item$jscomp$103)}}(r)),delete n[J]):g[r.i$jscomp$486]=kEN(function(L){return function(){var fB=_.y(_.cC(L.i$jscomp$486,void 0,"Fqk1zd")),w=fB.next().value;
fB=fB.next().value;m[L.i$jscomp$486]=fB;N[L.i$jscomp$486]=L.key$jscomp$523;if(d)h[L.i$jscomp$486]=Id(K.children(L.item$jscomp$103,w));else{var yO=_.y(_.cC(L.item$jscomp$103,void 0,"GBj5de"));fB=yO.next().value;yO=yO.next().value;T[L.i$jscomp$486]=yO;h[L.i$jscomp$486]=Id(K.children(fB,w))}}}(r))}sBo(n);
H=F;D=N;S=h;n=g;u=m;a=T;R=!1;return h},{debugName:K.debugInstance,
isControlFlowComponent:!0})};
BUz=function(K){var d=[],f=[],H=[],D=[],S=!1;_.$F(function(){for(var n=_.y(D),u=n.next();!u.done;u=n.next())u=u.value,u()});
return ix(function(){var n=K.each();S&&n.length>0&&(D.pop()(),d.pop(),S=!1);for(var u=Array(n.length),a={i$jscomp$487:0};a.i$jscomp$487<n.length;a={i$jscomp$487:a.i$jscomp$487},a.i$jscomp$487++)if(a.i$jscomp$487<d.length)d[a.i$jscomp$487]!==n[a.i$jscomp$487]&&(vC(function(F){return function(){return void f[F.i$jscomp$487](n[F.i$jscomp$487])}}(a)),d[a.i$jscomp$487]=n[a.i$jscomp$487]),u[a.i$jscomp$487]=H[a.i$jscomp$487];
else{var R=kEN(function(F){return function(){d[F.i$jscomp$487]=n[F.i$jscomp$487];var z=_.y(_.cC(n[F.i$jscomp$487],void 0,"kGMqJe")),v=z.next().value;z=z.next().value;f[F.i$jscomp$487]=z;u[F.i$jscomp$487]=Id(K.children(v,F.i$jscomp$487))}}(a));
D[a.i$jscomp$487]=R}for(;d.length>n.length;)d.pop(),D.pop()(),f.pop();n.length===0&&!S&&K.fallback&&(a=kEN(function(){u[0]=Id(K.fallback())}),D[0]=a,S=!0);
return H=u},{debugName:K.debugInstance,
isControlFlowComponent:!0})};
kEN=function(K){var d=kl;return En(function(f){var H=DK(Ub);try{f.parent=d,K(f)}finally{DK(H)}},!1)};
_.Mk=function(K){return K};
_.P_=function(K){return{isDefault:!0,children:K.children}};
_.gF=function(K){var d=ZoX(K),f=_.zh(function(){return ed5(d)},void 0,"F1PF4");
return ix(function(){var H=f(),D;En(function(){var S=DK(Ub);try{D=Id(H())}finally{DK(S)}});
return D},{debugName:K.debugInstance,
isControlFlowComponent:!0})};
ZoX=function(K){K=K.children;return Array.isArray(K)?K:[K]};
paG=function(K){var d=K.props;K=K.getChildren()[0];return d.when?{when:d.when,children:K}:{isDefault:!0,children:K}};
ed5=function(K){var d=function(){return null};
K=_.y(K);for(var f=K.next();!f.done;f=K.next())if(f=f.value,f!=null&&f[KQ]&&(f=f.type===_.P_?{isDefault:!0,children:f.children[0]}:{when:f.props.when,children:f.children[0]}),f instanceof ux&&(f=paG(f)),f.isDefault)d=f.children;else if(f.when())return f.children;return d};
KkN=function(K){var d=null,f;return{value:null,onRender:function(H){if(f&&H!==f){var D;(D=d)==null||D();f._disposeRef=void 0}f=H;d=K(H)||null},
onUnmount:function(){var H;(H=d)==null||H();d=null}}};
ftu=function(K){var d=OoX();if(d==null)throw d5Y.PRIMITIVE_INVALID_HOOK_CALL();var f=d.hookCounter++;d.hooks||(d.hooks=[]);var H=d.hooks;H[f]||(H[f]={key:K,host:d});if(K!==H[f].key){if(d.JSC$8270___type){var D;K=(D=d.JSC$8270___type)==null?void 0:D.name}else K=d instanceof z2?eAu(d.functionComponent):"<"+d.el.tagName.toLowerCase()+">";throw d5Y.OUT_OF_ORDER_HOOK_CALL(K);}return H[f]};
H3X=function(K,d){return!K||K.length!==(d==null?void 0:d.length)||K.some(function(f,H){return f!==d[H]})};
D5p=function(K,d){var f=ftu("onChange"),H=OoX();H3X(f.deps,d)&&(f.deps=d,f.pendingEffect=K,H.__syncEffects||(H.__syncEffects=[]),H.__syncEffects.push(f))};
_.Ob=function(K,d){var f=f===void 0?{enableDevtools:!1}:f;var H=dQ.legacyTriggerSoyRendererEvents,D=f.appContext,S=tc(function(){var n=DK(Ub);try{return En(function(){var u=_.OQX(_.oL(K)),a;var R=qbX({rootElement:{value:K},appContext:D||(u==null?void 0:(a=u.getOptionalAppContext)==null?void 0:a.call(u)),dispatcher:u});u=eh(R);R=fQ(!0);PC++;try{c_(d(),K),Zy5(!1)}catch(F){throw Zy5(!0),F;}finally{fQ(R),eh(u)}},!1)}catch(u){throw dQ.enableContextBasedComponentStacks&&YF(u),u;
}finally{DK(n)}});
K[VWo]=!0;H&&ioG(K,D);return function(){K.textContent="";S();K[VWo]=!1}};
_.Nk=function(K){if(ksJ(HC)){var d;(d=dQ.handleError)==null||d.call.apply(d,[dQ].concat(_.Me(l8(Error("Zb")))))}var f=kl,H=gQ;Promise.resolve().then(function(){if(f&&!f.isDisposed){var D=eh(f);try{tc(function(){return void K()},H)}catch(S){throw dQ.enableContextBasedComponentStacks&&YF(S),S;
}finally{eh(D)}}})};
YM=function(K,d){D5p(function(){return i8(K)},d)};
_.tR=function(K){Nq()?_.Nk(function(){i8(K)}):D5p(function(){return i8(K)},[])};
ydS=function(K){var d=[].concat(_.Me(K));K.length=0;K=_.y(d);for(d=K.next();!d.done;d=K.next()){d=d.value;SSX(d);var f=d.pendingEffect;d.pendingEffect=null;if(f=f==null?void 0:f())d.pendingCleanup=f}};
SSX=function(K){var d=K.pendingCleanup;K.pendingCleanup=null;d==null||d()};
n$G=function(K,d){if(Nq())return K();var f=ftu("useMemoInternal");H3X(f.deps,d)&&(f.deps=d,f.value=K());return f.value};
i3u=function(K,d){return n$G(K,d)};
od=function(K){return n$G(K,[])};
$M=function(K){return od(function(){return{value:K}})};
_.Eb=function(K,d){if(!K)return null;K=Object.keys(K);K=_.y(K);for(var f=K.next();!f.done;f=K.next()){f=f.value;var H=f.toLowerCase();if(H.indexOf(d,H.length-d.length)>-1)return f}return null};
_.bx=function(){var K=arguments,d=_.hR;K.length>1?d[K[0]]=K[1]:K.length===1&&Object.assign(d,K[0])};
_.mD=function(K,d){return K in _.hR?_.hR[K]:d};
_.lx=function(K,d){return!!_.mD(K,d)};
cdo=function(K){var d=_.hR.EXPERIMENT_FLAGS;return d?d[K]:void 0};
atB=function(K){utz.forEach(function(d){return d(K)})};
_.AR=function(K){return K&&window.yterr?function(){try{return K.apply(this,arguments)}catch(d){_.G2(d)}}:K};
_.G2=function(K){var d=_.T2("yt.logging.errors.log");d?d(K,"ERROR",void 0,void 0,void 0,void 0,void 0):(d=_.mD("ERRORS",[]),d.push([K,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.bx("ERRORS",d));atB(K)};
_.rF=function(K,d,f,H,D){var S=_.T2("yt.logging.errors.log");S?S(K,"WARNING",d,f,H,void 0,D):(S=_.mD("ERRORS",[]),S.push([K,"WARNING",d,f,H,void 0,D]),_.bx("ERRORS",S))};
U5u=function(K,d){d=K.split(d);for(var f={},H=0,D=d.length;H<D;H++){var S=d[H].split("=");if(S.length===1&&S[0]||S.length===2)try{var n=ItJ(S[0]||""),u=ItJ(S[1]||"");if(n in f){var a=f[n];Array.isArray(a)?_.fJ(a,u):f[n]=[a,u]}else f[n]=u}catch(v){var R=v,F=S[0],z=String(U5u);R.args=[{key:F,value:S[1],query:K,method:RtX===z?"unchanged":z}];FkO.hasOwnProperty(F)||_.rF(R)}}return f};
zto=function(K){var d=[];_.PR.forEach(K,function(f,H){var D=_.qk(H);_.QB(Array.isArray(f)?f:[f],function(S){S==""?d.push(D):d.push(D+"="+_.qk(S))})});
return d.join("&")};
_.jq=function(K){K.charAt(0)==="?"&&(K=K.substring(1));return U5u(K,"&")};
_.CQ=function(K){return K.indexOf("?")!==-1?(K=(K||"").split("#")[0],K=K.split("?",2),_.jq(K.length>1?K[1]:K[0])):{}};
_.xM=function(K,d){return XeO(K,d||{},!0)};
v$X=function(K,d){return XeO(K,d||{},!1)};
XeO=function(K,d,f){var H=K.split("#",2);K=H[0];H=H.length>1?"#"+H[1]:"";var D=K.split("?",2);K=D[0];D=_.jq(D[1]||"");for(var S in d)if(f||!_.PR.containsKey(D,S))D[S]=d[S];return _.LQ(K,D)+H};
kM=function(K){if(!d)var d=window.location.href;var f=_.B_(K)[1]||null,H=_.JR(K);return f&&H?sb(K,d):H?_.JR(d)===H&&(Number(_.B_(d)[4]||null)||null)===(Number(_.B_(K)[4]||null)||null):!0};
_.PTo=function(K){K=MWY(K);return K===null?!1:K[0]==="com"&&K[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
MWY=function(K){K=_.JR(K);return K!==null?K.split(".").reverse():null};
ItJ=function(K){return K&&K.match(g$5)?K:wF(K)};
_.Zd=function(K){return new O3G(K)};
_.eq=function(){NXX||(NXX=new YSS);return NXX};
o$p=function(K){var d=_.pQ,f,H;_.c(function(D){f=_.eq();return(H=f.resolve(_.Zd(d)))?(K(H),D.return(Promise.resolve(H))):D.return(f.resolve(new tWY(d)).then(function(S){K(S);return S}))})};
_.M=function(K){K=Ky(K);return typeof K==="string"&&K==="false"?!1:!!K};
_.di=function(K,d){K=Ky(K);return K===void 0&&d!==void 0?d:Number(K||0)};
$5z=function(K){K=Ky(K);return Array.isArray(K)?_.O7(K,function(d){return Number(d||0)}):[Number(K||0)]};
_.fy=function(K){K=Ky(K);return K!==void 0?String(K):""};
_.H6=function(K){K=Ky(K);return Array.isArray(K)?_.O7(K,function(d){return String(d||"")}):[String(K||"")]};
E$G=function(){return _.mD("EXPERIMENTS_TOKEN","")};
Ky=function(K){return _.mD("EXPERIMENT_FLAGS",{})[K]};
htN=function(){for(var K=[],d=_.mD("EXPERIMENTS_FORCED_FLAGS",{}),f=_.y(Object.keys(d)),H=f.next();!H.done;H=f.next())H=H.value,K.push({key:H,value:String(d[H])});f=_.mD("EXPERIMENT_FLAGS",{});H=_.y(Object.keys(f));for(var D=H.next();!D.done;D=H.next())D=D.value,D.startsWith("force_")&&d[D]===void 0&&K.push({key:D,value:String(f[D])});return K};
m5O=function(){if(!b3G)return null;var K=b3G();return"open"in K?K:null};
_.ltS=function(K){switch(_.DU(K)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.DU=function(K){return K&&"status"in K?K.status:-1};
_.VK=function(K,d){typeof K==="function"&&(K=_.AR(K));return window.setTimeout(K,d)};
_.SQ=function(K,d){typeof K==="function"&&(K=_.AR(K));return window.setInterval(K,d)};
_.yK=function(K){window.clearTimeout(K)};
GFX=function(K){K=_.CQ(K);for(var d=_.y(WkB),f=d.next();!f.done;f=d.next())if(K[f.value]!==void 0)return!0;return!1};
rdz=function(K,d,f,H,D,S,n,u){f=f===void 0?"GET":f;H=H===void 0?"":H;u=u===void 0?!1:u;var a=m5O();if(!a)return null;var R=function(){(a&&"readyState"in a?a.readyState:0)===4&&d&&_.AR(d)(a)};
"onloadend"in a?a.addEventListener("loadend",R,!1):a.onreadystatechange=R;_.M("debug_forward_web_query_parameters")&&(K=Adp(K,window.location.search));a.open(f,K,!0);S&&(a.responseType=S);n&&(a.withCredentials=!0);f=f==="POST"&&(window.FormData===void 0||!(H instanceof FormData));if(D=TXG(K,D))for(var F in D)a.setRequestHeader(F,D[F]),"content-type"===F.toLowerCase()&&(f=!1);f&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(u&&"setAttributionReporting"in XMLHttpRequest.prototype){K=
{eventSourceEligible:!0,triggerEligible:!1};try{a.setAttributionReporting(K)}catch(z){_.rF(z)}}a.send(H);return a};
TXG=function(K,d){d=d===void 0?{}:d;var f=kM(K),H=_.mD("INNERTUBE_CLIENT_NAME"),D=_.M("web_ajax_ignore_global_headers_if_set"),S;for(S in qSY){var n=_.mD(qSY[S]),u=S==="X-Goog-AuthUser"||S==="X-Goog-PageId";S!=="X-Goog-Visitor-Id"||n||(n=_.mD("VISITOR_DATA"));var a;if(!(a=!n)){if(!(a=f||(_.JR(K)?!1:!0))){a=K;var R;if(R=_.M("add_auth_headers_to_remarketing_google_dot_com_ping")&&S==="Authorization"&&(H==="TVHTML5"||H==="TVHTML5_UNPLUGGED"||H==="TVHTML5_SIMPLY"))R=MWY(a),R=R===null?!1:R[1]==="google"?
!0:R[2]==="google"?R[0]==="au"&&R[1]==="com"?!0:R[0]==="uk"&&R[1]==="co"?!0:!1:!1;R&&(a=_.ny(a)||"",a=a.split("/"),a="/"+(a.length>1?a[1]:""),R=a==="/pagead");a=R?!0:!1}a=!a}a||D&&d[S]!==void 0||H==="TVHTML5_UNPLUGGED"&&u||(d[S]=n)}"X-Goog-EOM-Visitor-Id"in d&&"X-Goog-Visitor-Id"in d&&delete d["X-Goog-Visitor-Id"];if(f||!_.JR(K))d["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(f||!_.JR(K)){try{var F=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(z){}F&&(d["X-YouTube-Time-Zone"]=
F)}document.location.hostname.endsWith("youtubeeducation.com")||!f&&_.JR(K)||(d["X-YouTube-Ad-Signals"]=zto(Q4z()));return d};
_.j4u=function(K,d){var f=_.JR(K);_.M("debug_handle_relative_url_for_query_forward_killswitch")||!f&&kM(K)&&(f=document.location.hostname);var H=_.ny(K);H=(f=f&&(f.endsWith("youtube.com")||f.endsWith("youtube-nocookie.com")))&&H&&H.startsWith("/api/");if(!f||H)return K;var D=_.jq(d),S={};_.QB(WkB,function(n){D[n]&&(S[n]=D[n])});
return v$X(K,S)};
CTY=function(K,d){d.method="POST";d.postParams||(d.postParams={});return _.iH(K,d)};
x5z=function(K,d){var f=_.mD("XSRF_FIELD_NAME"),H;d.headers&&(H=d.headers["Content-Type"]);return!d.excludeXsrf&&(!_.JR(K)||d.withCredentials||_.JR(K)===document.location.hostname)&&d.method==="POST"&&(!H||H==="application/x-www-form-urlencoded")&&!(d.postParams&&d.postParams[f])};
_.iH=function(K,d){var f=d.format||"JSON";K=LkX(K,d);var H=BXB(K,d),D=!1,S=JdS(K,function(a){if(!D){D=!0;u&&_.yK(u);var R=_.ltS(a),F=null,z=400<=a.status&&a.status<500,v=500<=a.status&&a.status<600;if(R||z||v)F=s4B(K,f,a,d.convertToSafeHtml);R&&(R=kFY(f,a,F));F=F||{};z=d.context||_.Hu;R?d.onSuccess&&d.onSuccess.call(z,a,F):d.onError&&d.onError.call(z,a,F);d.onFinish&&d.onFinish.call(z,a,F)}},d.method,H,d.headers,d.responseType,d.withCredentials);
H=d.timeout||0;if(d.onTimeout&&H>0){var n=d.onTimeout;var u=_.VK(function(){D||(D=!0,S.abort(),_.yK(u),n.call(d.context||_.Hu,S))},H)}return S};
LkX=function(K,d){d.includeDomain&&(K=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+K);var f=_.mD("XSRF_FIELD_NAME");if(d=d.urlParams)d[f]&&delete d[f],K=_.xM(K,d);return K};
BXB=function(K,d){var f=_.mD("XSRF_FIELD_NAME"),H=_.mD("XSRF_TOKEN"),D=d.postBody||"",S=d.postParams;x5z(K,d)&&(S||(S={}),S[f]=H);(_.M("ajax_parse_query_data_only_when_filled")&&S&&Object.keys(S).length>0||S)&&typeof D==="string"&&(D=_.jq(D),_.PR.extend(D,S),D=d.postBodyFormat&&d.postBodyFormat==="JSON"?JSON.stringify(D):_.c6(D));S=D||S&&!_.PR.isEmpty(S);!wep&&S&&d.method!=="POST"&&(wep=!0,_.G2(Error("Ec")));return D};
s4B=function(K,d,f,H){var D=null;switch(d){case "JSON":try{var S=f.responseText}catch(n){throw H=Error("Fc"),H.params=K,_.rF(H),n;}K=f.getResponseHeader("Content-Type")||"";S&&K.indexOf("json")>=0&&(S.substring(0,5)===")]}'\n"&&(S=S.substring(5)),D=JSON.parse(S));break;case "XML":if(K=(K=f.responseXML)?Z3N(K):null)D={},_.QB(K.getElementsByTagName("*"),function(n){D[n.tagName]=etz(n)})}H&&pep(D);
return D};
pep=function(K){if(_.H4(K))for(var d in K)d==="html_content"||nB(d,"_html")?K[d]=ta(K[d]):pep(K[d])};
kFY=function(K,d,f){if(d&&d.status===204)return!0;switch(K){case "JSON":return!!f;case "XML":return Number(f&&f.return_code)===0;case "RAW":return!0;default:return!!f}};
Z3N=function(K){return K?(K=("responseXML"in K?K.responseXML:K).getElementsByTagName("root"))&&K.length>0?K[0]:null:null};
etz=function(K){var d="";_.QB(K.childNodes,function(f){d+=f.nodeValue});
return d};
KVO=function(K){if(K.name==="JavaException")return!0;K=K.stack;return K.includes("chrome://")||K.includes("-extension://")||K.includes("webkit-masked-url://")};
duo=function(K){if(!K.stack)return!0;var d=!K.stack.includes("\n");return d&&K.stack.includes("ErrorType: ")||d&&K.stack.includes("Anonymous function (Unknown script")||K.stack.toLowerCase()==="not available"||K.fileName==="user-script"||K.fileName.startsWith("user-script:")?!0:!1};
_.uH=function(K){_.gG.call(this);this.JSC$8441_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!K};
H1X=function(K,d){var f=K.length,H=0,D=function(){return K.charCodeAt(H++)};
do{var S=fpN(D);if(S===Infinity)break;var n=S>>3;switch(S&7){case 0:S=fpN(D);if(n===d)return S;break;case 1:if(n===d)return;H+=8;break;case 2:S=fpN(D);if(n===d)return K.substr(H,S);H+=S;break;case 5:if(n===d)return;H+=4;break;default:return}}while(H<f)};
fpN=function(K){var d=K(),f=d&127;if(d<128)return f;d=K();f|=(d&127)<<7;if(d<128)return f;d=K();f|=(d&127)<<14;if(d<128)return f;d=K();return d<128?f|(d&127)<<21:Infinity};
VvB=function(K,d,f,H){if(K)if(Array.isArray(K)){var D=H;for(H=0;H<K.length&&!(K[H]&&(D+=DuX(H,K[H],d,f),D>500));H++);H=D}else if(typeof K==="object")for(D in K){if(K[D]){var S=D;var n=K[D],u=d,a=f;S=typeof n!=="string"||S!=="clickTrackingParams"&&S!=="trackingParams"?0:(n=H1X(atob(n.replace(/-/g,"+").replace(/_/g,"/")),2))?DuX(S+".ve",n,u,a):0;H+=S;H+=DuX(D,K[D],d,f);if(H>500)break}}else f[d]=a0(K),H+=f[d].length;else f[d]=a0(K),H+=f[d].length;return H};
DuX=function(K,d,f,H){f+="."+K;K=a0(d);H[f]=K;return f.length+K.length};
a0=function(K){try{return(typeof K==="string"?K:String(JSON.stringify(K))).substr(0,500)}catch(d){return"unable to serialize "+typeof K+" ("+d.message+")"}};
Syz=function(K){switch(K){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}};
_.UF=function(K,d,f,H,D){_.I0.set(K,d,{maxAge:f,path:"/",domain:H===void 0?"youtube.com":H,secure:D===void 0?!1:D})};
_.yeN=function(K,d,f){_.I0.remove(K,d===void 0?"/":d,f===void 0?"youtube.com":f)};
_.R0=function(){if(_.M("embeds_web_enable_cookie_detection_fix")){if(!_.Hu.navigator.cookieEnabled)return!1}else if(!_.I0.isEnabled())return!1;if(!_.I0.isEmpty())return!0;_.M("embeds_web_enable_cookie_detection_fix")?_.I0.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.I0.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.I0.get("TESTCOOKIESENABLED")!=="1")return!1;_.I0.remove("TESTCOOKIESENABLED");return!0};
nZX=function(){var K=_.Hu.navigator;return K?K.connection:void 0};
i1N=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(K){}};
_.udu=function(){var K=nZX();if(K){var d=ceS[K.type||"unknown"]||"CONN_UNKNOWN";K=ceS[K.effectiveType||"unknown"]||"CONN_UNKNOWN";d==="CONN_CELLULAR_UNKNOWN"&&K!=="CONN_UNKNOWN"&&(d=K);if(d!=="CONN_UNKNOWN")return d;if(K!=="CONN_UNKNOWN")return K}};
IpX=function(){var K=nZX();if(K!=null&&K.effectiveType)return apo.hasOwnProperty(K.effectiveType)?apo[K.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.zs=function(){try{return _.F4(),!0}catch(K){return!1}};
_.F4=function(K){if(_.mD("DATASYNC_ID")!==void 0)return _.mD("DATASYNC_ID");throw new _.X4("Datasync ID not set",K===void 0?"unknown":K);};
_.v6=function(K){this.mechanism=K};
MX=function(K){this.mechanism=K};
P6=function(K){this.storage_=K;this.cachedIsStorageAvailable_=null};
UuX=function(){var K=null;try{K=_.Hu.localStorage||null}catch(d){}P6.call(this,K)};
RJX=function(){var K=null;try{K=_.Hu.sessionStorage||null}catch(d){}P6.call(this,K)};
gi=function(K,d){this.mechanism_=K;this.JSC$8543_prefix_=d+"::"};
_.FVp=function(K){var d=new UuX;return d.isAvailable()?K?new gi(d,K):d:null};
_.zJS=function(K){var d=new RJX;return d.isAvailable()?K?new gi(d,K):d:null};
vZG=function(){var K;return(K=X0B())==null?void 0:K.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Y_=function(K){Mv5||(_.OF?_.OF.logError(K):(_.NX.push({type:"ERROR",payload:K}),_.NX.length>10&&_.NX.shift()))};
t9=function(K,d){Mv5||(_.OF?_.OF.logEvent(K,d):(_.NX.push({type:"EVENT",eventType:K,payload:d}),_.NX.length>10&&_.NX.shift()))};
o0=function(K){if(K.indexOf(":")>=0)throw Error("Mc");};
$_=function(K){return K.substr(0,K.indexOf(":"))||K};
O1N=function(){return(Pwo||gZz)&&EF("applewebkit")&&!EF("version")&&(!EF("safari")||EF("gsa/"))};
EF=function(K){var d=_.zS();return d?d.toLowerCase().indexOf(K)>=0:!1};
tvN=function(K,d,f,H){d=$_(d);var D=K instanceof Error?K:Error("Nc`"+K);if(D instanceof h9)return D;K={objectStoreNames:f,dbName:d,dbVersion:H};if(D.name==="QuotaExceededError")return new h9("QUOTA_EXCEEDED",K);if(_.bH&&D.name==="UnknownError")return new h9("QUOTA_MAYBE_EXCEEDED",K);if(D instanceof NLB)return new h9("MISSING_INDEX",Object.assign({},K,{objectStore:D.objectStore,index:D.index}));if(D.name==="InvalidStateError"&&YyJ.some(function(S){return D.message.includes(S)}))return new h9("EXECUTE_TRANSACTION_ON_CLOSED_DB",
K);
if(D.name==="AbortError")return new h9("UNKNOWN_ABORT",K,D.message);D.args=[Object.assign({},K,{name:"IdbError",originalName:D.name})];D.level="WARNING";return D};
mg=function(K,d,f){var H=vZG();return new h9("IDB_NOT_SUPPORTED",{context:{caller:K,publicName:d,version:f,hasSucceededOnce:H==null?void 0:H.hasSucceededOnce}})};
oZX=function(K){if(!K)throw Error();throw K;};
$uX=function(K){return K};
EZO=function(K,d,f){var H=function(){try{K.removeEventListener("success",D),K.removeEventListener("error",S)}catch(n){}},D=function(){d(K.result);
H()},S=function(){f(K.error);
H()};
K.addEventListener("success",D);K.addEventListener("error",S)};
hJB=function(K){return new Promise(function(d,f){EZO(K,d,f)})};
Gs=function(K){return new lH(new W6(function(d,f){EZO(K,d,f)}))};
b1S=function(K,d){return new lH(new W6(function(f,H){var D=function(){var S=K?d(K):null;S?S.then(function(n){K=n;D()},H):f()};
D()}))};
lpz=function(K,d,f){return new Promise(function(H,D){var S=d!==void 0?self.indexedDB.open(K,d):self.indexedDB.open(K);var n=f.blocked,u=f.blocking,a=f.terminated,R=f.upgrade,F=f.closed,z,v=function(){z||(z=new A9(S.result,{closed:F}));return z};
S.addEventListener("upgradeneeded",function(g){try{if(g.newVersion===null)throw Error("Sc");if(S.transaction===null)throw Error("Tc");g.dataLoss&&g.dataLoss!=="none"&&t9("IDB_DATA_CORRUPTED",{reason:g.dataLossMessage||"unknown reason",dbName:$_(K)});var N=v(),h=new muX(S.transaction);R&&R(N,function(m){return g.oldVersion<m&&g.newVersion>=m},h);
h.done.catch(function(m){D(m)})}catch(m){D(m)}});
S.addEventListener("success",function(){var g=S.result;u&&g.addEventListener("versionchange",function(){u(v())});
g.addEventListener("close",function(){t9("IDB_UNEXPECTEDLY_CLOSED",{dbName:$_(K),dbVersion:g.version});a&&a()});
H(v())});
S.addEventListener("error",function(){D(S.error)});
n&&S.addEventListener("blocked",function(){n()})})};
WVz=function(K,d,f){f=f===void 0?{}:f;return lpz(K,d,f)};
_.ri=function(K,d){d=d===void 0?{}:d;var f,H,D,S;return _.c(function(n){if(n.nextAddress==1)return _.HF(n,2),f=self.indexedDB.deleteDatabase(K),H=d,(D=H.blocked)&&f.addEventListener("blocked",function(){D()}),_.I(n,hJB(f),4);
if(n.nextAddress!=2)return _.Ts(n,0);S=_.n7(n);throw tvN(S,K,"",-1);})};
AeB=function(K,d){var f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,_.qX(Gwp,d),2);f=H.yieldResult;return H.return(_.QK(f,["databases"],{enableRetries:!0,mode:"readwrite"},function(D){var S=D.objectStore("databases");return S.get(K.actualName).then(function(n){if(n?K.actualName!==n.actualName||K.publicName!==n.publicName||K.userIdentifier!==n.userIdentifier:1)return S.put(K).then(function(){})})}))})};
_.jQ=function(K,d){var f;return _.c(function(H){if(H.nextAddress==1)return K?_.I(H,_.qX(Gwp,d),2):H.return();f=H.yieldResult;return H.return(f.delete("databases",K))})};
_.TLY=function(K,d){var f,H;return _.c(function(D){return D.nextAddress==1?(f=[],_.I(D,_.qX(Gwp,d),2)):D.nextAddress!=3?(H=D.yieldResult,_.I(D,_.QK(H,["databases"],{enableRetries:!0,mode:"readonly"},function(S){f.length=0;return Cy(S.objectStore("databases"),{},function(n){K(n.getValue())&&f.push(n.getValue());return n.continue()})}),3)):D.return(f)})};
re5=function(K,d){return _.TLY(function(f){return f.publicName===K&&f.userIdentifier!==void 0},d)};
jwO=function(){var K,d,f,H;return _.c(function(D){switch(D.nextAddress){case 1:K=vZG();if((d=K)==null?0:d.hasSucceededOnce)return D.return(!0);var S;if(S=qyO)S=/WebKit\/([0-9]+)/.exec(_.zS()),S=!!(S&&parseInt(S[1],10)>=600);S&&(S=/WebKit\/([0-9]+)/.exec(_.zS()),S=!(S&&parseInt(S[1],10)>=602));if(S||x_)return D.return(!1);try{if(f=self,!(f.indexedDB&&f.IDBIndex&&f.IDBKeyRange&&f.IDBObjectStore))return D.return(!1)}catch(n){return D.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return D.return(!1);
_.HF(D,2);H={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.I(D,AeB(H,QwJ),4);case 4:return _.I(D,_.jQ("yt-idb-test-do-not-use",QwJ),5);case 5:return D.return(!0);case 2:return _.n7(D),D.return(!1)}})};
xuJ=function(){if(Cwp!==void 0)return Cwp;Mv5=!0;return Cwp=jwO().then(function(K){Mv5=!1;var d;if((d=X0B())!=null&&d.expiringStorage_){var f;d={hasSucceededOnce:((f=vZG())==null?void 0:f.hasSucceededOnce)||K};var H;(H=X0B())==null||H.set("LAST_RESULT_ENTRY_KEY",d,2592E3,!0)}return K})};
Ly=function(){return _.T2("ytglobal.idbToken_")||void 0};
_.J9=function(){var K=Ly();return K?Promise.resolve(K):xuJ().then(function(d){(d=d?QwJ:void 0)&&_.B6("ytglobal.idbToken_",d);return d})};
LVX=function(K){if(!_.zs())throw K=new h9("AUTH_INVALID",{dbName:K}),_.Y_(K),K;var d=_.F4();return{actualName:K+":"+d,publicName:K,userIdentifier:d}};
BLu=function(K,d,f,H){var D,S,n,u,a,R;return _.c(function(F){switch(F.nextAddress){case 1:return S=(D=Error().stack)!=null?D:"",_.I(F,_.J9(),2);case 2:n=F.yieldResult;if(!n)throw u=mg("openDbImpl",K,d),_.M("ytidb_async_stack_killswitch")||(u.stack=u.stack+"\n"+S.substring(S.indexOf("\n")+1)),_.Y_(u),u;o0(K);a=f?{actualName:K,publicName:K,userIdentifier:void 0}:LVX(K);_.HF(F,3);return _.I(F,AeB(a,n),5);case 5:return _.I(F,WVz(a.actualName,d,H),6);case 6:return F.return(F.yieldResult);case 3:return R=
_.n7(F),_.HF(F,7),_.I(F,_.jQ(a.actualName,n),9);case 9:_.Ts(F,8);break;case 7:_.n7(F);case 8:throw R;}})};
Jen=function(K,d,f){f=f===void 0?{}:f;return BLu(K,d,!1,f)};
swJ=function(K,d,f){f=f===void 0?{}:f;return BLu(K,d,!0,f)};
kwY=function(K,d){d=d===void 0?{}:d;var f,H;return _.c(function(D){if(D.nextAddress==1)return _.I(D,_.J9(),2);if(D.nextAddress!=3){f=D.yieldResult;if(!f)return D.return();o0(K);H=LVX(K);return _.I(D,_.ri(H.actualName,d),3)}return _.I(D,_.jQ(H.actualName,f),0)})};
w0S=function(K,d,f){K=K.map(function(H){return _.c(function(D){return D.nextAddress==1?_.I(D,_.ri(H.actualName,d),2):_.I(D,_.jQ(H.actualName,f),0)})});
return Promise.all(K).then(function(){})};
Z1O=function(K){var d=d===void 0?{}:d;var f,H;return _.c(function(D){if(D.nextAddress==1)return _.I(D,_.J9(),2);if(D.nextAddress!=3){f=D.yieldResult;if(!f)return D.return();o0(K);return _.I(D,re5(K,f),3)}H=D.yieldResult;return _.I(D,w0S(H,d,f),0)})};
eJX=function(K,d){d=d===void 0?{}:d;var f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,_.J9(),2);if(H.nextAddress!=3){f=H.yieldResult;if(!f)return H.return();o0(K);return _.I(H,_.ri(K,d),3)}return _.I(H,_.jQ(K,f),0)})};
sF=function(K,d){return p0S(K,d)};
dYG=function(K){return _.qX(Kqz(),K)};
fE5=function(K,d,f,H){var D,S,n;return _.c(function(u){switch(u.nextAddress){case 1:return D={config:K,hashData:d,timestamp:H!==void 0?H:(0,_.k_)()},_.I(u,dYG(f),2);case 2:return S=u.yieldResult,_.I(u,S.clear("hotConfigStore"),3);case 3:return _.I(u,S.put("hotConfigStore",D),4);case 4:return n=u.yieldResult,u.return(n)}})};
Hdo=function(K,d,f,H,D){var S,n,u;return _.c(function(a){switch(a.nextAddress){case 1:return S={config:K,hashData:d,configData:f,timestamp:D!==void 0?D:(0,_.k_)()},_.I(a,dYG(H),2);case 2:return n=a.yieldResult,_.I(a,n.clear("coldConfigStore"),3);case 3:return _.I(a,n.put("coldConfigStore",S),4);case 4:return u=a.yieldResult,a.return(u)}})};
DYz=function(K){var d,f;return _.c(function(H){return H.nextAddress==1?_.I(H,dYG(K),2):H.nextAddress!=3?(d=H.yieldResult,f=void 0,_.I(H,_.QK(d,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(D){return _.wi(D.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(S){f=S.getValue()})}),3)):H.return(f)})};
VsX=function(K){var d,f;return _.c(function(H){return H.nextAddress==1?_.I(H,dYG(K),2):H.nextAddress!=3?(d=H.yieldResult,f=void 0,_.I(H,_.QK(d,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(D){return _.wi(D.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(S){f=S.getValue()})}),3)):H.return(f)})};
SxJ=function(){return _.c(function(K){return _.I(K,Z1O("ytGcfConfig"),0)})};
yyo=function(){return"INNERTUBE_API_KEY"in _.hR&&"INNERTUBE_API_VERSION"in _.hR};
_.ZU=function(){return{innertubeApiKey:_.mD("INNERTUBE_API_KEY"),innertubeApiVersion:_.mD("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.mD("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.mD("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.mD("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.mD("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.mD("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.mD("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.mD("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.lx("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.lx("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.mD("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.UYX=function(K){var d={client:{hl:K.innertubeContextHostLanguage,gl:K.innertubeContextGeoLocation,clientName:K.innertubeContextClientName,clientVersion:K.innertubeContextClientVersion,configInfo:K.innertubeContextClientConfigInfo}};navigator.userAgent&&(d.client.userAgent=String(navigator.userAgent));var f=_.Hu.devicePixelRatio;f&&f!=1&&(d.client.screenDensityFloat=String(f));f=E$G();f!==""&&(d.client.experimentsToken=f);f=htN();f.length>0&&(d.request={internalExperimentFlags:f});nJN(K,void 0,d);
idB(void 0,d);cyu(void 0,d);ufG(K,void 0,d);aEY(void 0,d);_.M("start_client_gcf")&&IEG(void 0,d);_.mD("DELEGATED_SESSION_ID")&&!_.M("pageid_as_header_web")&&(d.user={onBehalfOfUser:_.mD("DELEGATED_SESSION_ID")});!_.M("fill_delegate_context_in_gel_killswitch")&&(K=_.mD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(d.user=Object.assign({},d.user,{serializedDelegationContext:K}));K=_.mD("INNERTUBE_CONTEXT");var H;if(_.M("enable_persistent_device_token")&&(K==null?0:(H=K.client)==null?0:H.rolloutToken)){var D;
d.client.rolloutToken=K==null?void 0:(D=K.client)==null?void 0:D.rolloutToken}H=Object;D=H.assign;K=d.client;f={};for(var S=_.y(Object.entries(_.jq(_.mD("DEVICE","")))),n=S.next();!n.done;n=S.next()){var u=_.y(n.value);n=u.next().value;u=u.next().value;n==="cbrand"?f.deviceMake=u:n==="cmodel"?f.deviceModel=u:n==="cbr"?f.browserName=u:n==="cbrver"?f.browserVersion=u:n==="cos"?f.osName=u:n==="cosver"?f.osVersion=u:n==="cplatform"&&(f.platform=u)}d.client=D.call(H,K,f);return d};
nJN=function(K,d,f){K=K.innertubeContextClientName;if(K==="WEB"||K==="MWEB"||K===1||K===2)if(d){f=_.eQ(d,R0J,96)||new R0J;var H=FqG();H=Object.keys(z0J).indexOf(H);H=H===-1?null:H;H!==null&&_.py(f,3,H);_.fM(d,96,f)}else f&&(f.client.mainAppWebInfo=(H=f.client.mainAppWebInfo)!=null?H:{},f.client.mainAppWebInfo.webDisplayMode=FqG())};
idB=function(K,d){var f=_.T2("yt.embedded_player.embed_url");f&&(K?(d=_.eQ(K,XGp,7)||new XGp,_.aL(d,4,f),_.fM(K,7,d)):d&&(d.thirdParty={embedUrl:f}))};
cyu=function(K,d){var f;if(_.M("web_log_memory_total_kbytes")&&((f=_.Hu.navigator)==null?0:f.deviceMemory)){var H;f=(H=_.Hu.navigator)==null?void 0:H.deviceMemory;K?_.KA(K,95,hP(f*1E6)):d&&(d.client.memoryTotalKbytes=""+f*1E6)}};
ufG=function(K,d,f){if(K.appInstallData)if(d){var H;f=(H=_.eQ(d,dR,62))!=null?H:new dR;_.aL(f,6,K.appInstallData);_.fM(d,62,f)}else f&&(f.client.configInfo=f.client.configInfo||{},f.client.configInfo.appInstallData=K.appInstallData)};
aEY=function(K,d){var f=_.udu();f&&(K?_.py(K,61,vJX[f]):d&&(d.client.connectionType=f));_.M("web_log_effective_connection_type")&&(f=IpX())&&(K?_.py(K,94,MsX[f]):d&&(d.client.effectiveConnectionType=f))};
_.Odn=function(K,d,f){f=f===void 0?{}:f;var H={};_.mD("EOM_VISITOR_DATA")?H={"X-Goog-EOM-Visitor-Id":_.mD("EOM_VISITOR_DATA")}:H={"X-Goog-Visitor-Id":f.visitorData||_.mD("VISITOR_DATA","")};if(d&&d.includes("www.youtube-nocookie.com"))return H;d=f.authorization||_.mD("AUTHORIZATION");d||(K?d="Bearer "+_.T2("gapi.auth.getToken")().access_token:(PB5.instance||(PB5.instance=new PB5),K=gJn(),_.M("pageid_as_header_web")||delete K["X-Goog-PageId"],H=Object.assign({},H,K)));d&&(H.Authorization=d);return H};
IEG=function(K,d){var f=NNY();if(f){var H=f.coldConfigData,D=f.coldHashData;f=f.hotHashData;if(K){var S;d=(S=_.eQ(K,dR,62))!=null?S:new dR;H=_.aL(d,1,H);_.aL(H,3,D).setHotHashData(f);_.fM(K,62,d)}else d&&(d.client.configInfo=d.client.configInfo||{},H&&(d.client.configInfo.coldConfigData=H),D&&(d.client.configInfo.coldHashData=D),f&&(d.client.configInfo.hotHashData=f))}};
fA=function(K){for(var d=K.length;--d>=0;)K[d]=0};
Yxz=function(K,d,f,H,D){this.static_tree=K;this.extra_bits=d;this.extra_base=f;this.elems=H;this.max_length=D;this.has_stree=K&&K.length};
tsG=function(K,d){this.dyn_tree=K;this.max_code=0;this.stat_desc=d};
HA=function(K,d){K.pending_buf[K.pending++]=d&255;K.pending_buf[K.pending++]=d>>>8&255};
Dk=function(K,d,f){K.bi_valid>16-f?(K.bi_buf|=d<<K.bi_valid&65535,HA(K,K.bi_buf),K.bi_buf=d>>16-K.bi_valid,K.bi_valid+=f-16):(K.bi_buf|=d<<K.bi_valid&65535,K.bi_valid+=f)};
V9=function(K,d,f){Dk(K,f[d*2],f[d*2+1])};
oJp=function(K,d){var f=0;do f|=K&1,K>>>=1,f<<=1;while(--d>0);return f>>>1};
$YO=function(K,d,f){var H=Array(16),D=0,S;for(S=1;S<=15;S++)H[S]=D=D+f[S-1]<<1;for(f=0;f<=d;f++)D=K[f*2+1],D!==0&&(K[f*2]=oJp(H[D]++,D))};
EJG=function(K){var d;for(d=0;d<286;d++)K.dyn_ltree[d*2]=0;for(d=0;d<30;d++)K.dyn_dtree[d*2]=0;for(d=0;d<19;d++)K.bl_tree[d*2]=0;K.dyn_ltree[512]=1;K.opt_len=K.static_len=0;K.last_lit=K.matches=0};
h0u=function(K){K.bi_valid>8?HA(K,K.bi_buf):K.bi_valid>0&&(K.pending_buf[K.pending++]=K.bi_buf);K.bi_buf=0;K.bi_valid=0};
bdO=function(K,d,f){h0u(K);HA(K,f);HA(K,~f);nA.arraySet(K.pending_buf,K.window,d,f,K.pending);K.pending+=f};
mYY=function(K,d,f,H){var D=d*2,S=f*2;return K[D]<K[S]||K[D]===K[S]&&H[d]<=H[f]};
lES=function(K,d,f){for(var H=K.heap[f],D=f<<1;D<=K.heap_len;){D<K.heap_len&&mYY(d,K.heap[D+1],K.heap[D],K.depth)&&D++;if(mYY(d,H,K.heap[D],K.depth))break;K.heap[f]=K.heap[D];f=D;D<<=1}K.heap[f]=H};
ryX=function(K,d,f){var H=0;if(K.last_lit!==0){do{var D=K.pending_buf[K.d_buf+H*2]<<8|K.pending_buf[K.d_buf+H*2+1];var S=K.pending_buf[K.l_buf+H];H++;if(D===0)V9(K,S,d);else{var n=cA[S];V9(K,n+256+1,d);var u=Wqo[n];u!==0&&(S-=Guu[n],Dk(K,S,u));D--;n=D<256?u3[D]:u3[256+(D>>>7)];V9(K,n,f);u=Ayu[n];u!==0&&(D-=TNX[n],Dk(K,D,u))}}while(H<K.last_lit)}V9(K,256,d)};
qxX=function(K,d){var f=d.dyn_tree,H=d.stat_desc.static_tree,D=d.stat_desc.has_stree,S=d.stat_desc.elems,n,u=-1;K.heap_len=0;K.heap_max=573;for(n=0;n<S;n++)f[n*2]!==0?(K.heap[++K.heap_len]=u=n,K.depth[n]=0):f[n*2+1]=0;for(;K.heap_len<2;){var a=K.heap[++K.heap_len]=u<2?++u:0;f[a*2]=1;K.depth[a]=0;K.opt_len--;D&&(K.static_len-=H[a*2+1])}d.max_code=u;for(n=K.heap_len>>1;n>=1;n--)lES(K,f,n);a=S;do n=K.heap[1],K.heap[1]=K.heap[K.heap_len--],lES(K,f,1),H=K.heap[1],K.heap[--K.heap_max]=n,K.heap[--K.heap_max]=
H,f[a*2]=f[n*2]+f[H*2],K.depth[a]=(K.depth[n]>=K.depth[H]?K.depth[n]:K.depth[H])+1,f[n*2+1]=f[H*2+1]=a,K.heap[1]=a++,lES(K,f,1);while(K.heap_len>=2);K.heap[--K.heap_max]=K.heap[1];n=d.dyn_tree;a=d.max_code;H=d.stat_desc.static_tree;D=d.stat_desc.has_stree;S=d.stat_desc.extra_bits;var R=d.stat_desc.extra_base,F=d.stat_desc.max_length,z,v=0;for(z=0;z<=15;z++)K.bl_count[z]=0;n[K.heap[K.heap_max]*2+1]=0;for(d=K.heap_max+1;d<573;d++){var g=K.heap[d];z=n[n[g*2+1]*2+1]+1;z>F&&(z=F,v++);n[g*2+1]=z;if(!(g>
a)){K.bl_count[z]++;var N=0;g>=R&&(N=S[g-R]);var h=n[g*2];K.opt_len+=h*(z+N);D&&(K.static_len+=h*(H[g*2+1]+N))}}if(v!==0){do{for(z=F-1;K.bl_count[z]===0;)z--;K.bl_count[z]--;K.bl_count[z+1]+=2;K.bl_count[F]--;v-=2}while(v>0);for(z=F;z!==0;z--)for(g=K.bl_count[z];g!==0;)H=K.heap[--d],H>a||(n[H*2+1]!==z&&(K.opt_len+=(z-n[H*2+1])*n[H*2],n[H*2+1]=z),g--)}$YO(f,u,K.bl_count)};
QSo=function(K,d,f){var H,D=-1,S=d[1],n=0,u=7,a=4;S===0&&(u=138,a=3);d[(f+1)*2+1]=65535;for(H=0;H<=f;H++){var R=S;S=d[(H+1)*2+1];++n<u&&R===S||(n<a?K.bl_tree[R*2]+=n:R!==0?(R!==D&&K.bl_tree[R*2]++,K.bl_tree[32]++):n<=10?K.bl_tree[34]++:K.bl_tree[36]++,n=0,D=R,S===0?(u=138,a=3):R===S?(u=6,a=3):(u=7,a=4))}};
jSu=function(K,d,f){var H,D=-1,S=d[1],n=0,u=7,a=4;S===0&&(u=138,a=3);for(H=0;H<=f;H++){var R=S;S=d[(H+1)*2+1];if(!(++n<u&&R===S)){if(n<a){do V9(K,R,K.bl_tree);while(--n!==0)}else R!==0?(R!==D&&(V9(K,R,K.bl_tree),n--),V9(K,16,K.bl_tree),Dk(K,n-3,2)):n<=10?(V9(K,17,K.bl_tree),Dk(K,n-3,3)):(V9(K,18,K.bl_tree),Dk(K,n-11,7));n=0;D=R;S===0?(u=138,a=3):R===S?(u=6,a=3):(u=7,a=4)}}};
CB5=function(K){var d=4093624447,f;for(f=0;f<=31;f++,d>>>=1)if(d&1&&K.dyn_ltree[f*2]!==0)return 0;if(K.dyn_ltree[18]!==0||K.dyn_ltree[20]!==0||K.dyn_ltree[26]!==0)return 1;for(f=32;f<256;f++)if(K.dyn_ltree[f*2]!==0)return 1;return 0};
ac=function(K,d,f){K.pending_buf[K.d_buf+K.last_lit*2]=d>>>8&255;K.pending_buf[K.d_buf+K.last_lit*2+1]=d&255;K.pending_buf[K.l_buf+K.last_lit]=f&255;K.last_lit++;d===0?K.dyn_ltree[f*2]++:(K.matches++,d--,K.dyn_ltree[(cA[f]+256+1)*2]++,K.dyn_dtree[(d<256?u3[d]:u3[256+(d>>>7)])*2]++);return K.last_lit===K.lit_bufsize-1};
UX=function(K,d){K.msg=Ic[d];return d};
Rc=function(K){for(var d=K.length;--d>=0;)K[d]=0};
Fj=function(K){var d=K.state,f=d.pending;f>K.avail_out&&(f=K.avail_out);f!==0&&(nA.arraySet(K.output,d.pending_buf,d.pending_out,f,K.next_out),K.next_out+=f,d.pending_out+=f,K.total_out+=f,K.avail_out-=f,d.pending-=f,d.pending===0&&(d.pending_out=0))};
vA=function(K,d){var f=K.block_start>=0?K.block_start:-1,H=K.strstart-K.block_start,D=0;if(K.level>0){K.strm.data_type===2&&(K.strm.data_type=CB5(K));qxX(K,K.l_desc);qxX(K,K.d_desc);QSo(K,K.dyn_ltree,K.l_desc.max_code);QSo(K,K.dyn_dtree,K.d_desc.max_code);qxX(K,K.bl_desc);for(D=18;D>=3&&K.bl_tree[xYS[D]*2+1]===0;D--);K.opt_len+=3*(D+1)+5+5+4;var S=K.opt_len+3+7>>>3;var n=K.static_len+3+7>>>3;n<=S&&(S=n)}else S=n=H+5;if(H+4<=S&&f!==-1)Dk(K,d?1:0,3),bdO(K,f,H);else if(K.strategy===4||n===S)Dk(K,2+(d?
1:0),3),ryX(K,z7,Xj);else{Dk(K,4+(d?1:0),3);f=K.l_desc.max_code+1;H=K.d_desc.max_code+1;D+=1;Dk(K,f-257,5);Dk(K,H-1,5);Dk(K,D-4,4);for(S=0;S<D;S++)Dk(K,K.bl_tree[xYS[S]*2+1],3);jSu(K,K.dyn_ltree,f-1);jSu(K,K.dyn_dtree,H-1);ryX(K,K.dyn_ltree,K.dyn_dtree)}EJG(K);d&&h0u(K);K.block_start=K.strstart;Fj(K.strm)};
MH=function(K,d){K.pending_buf[K.pending++]=d};
PA=function(K,d){K.pending_buf[K.pending++]=d>>>8&255;K.pending_buf[K.pending++]=d&255};
LqX=function(K,d){var f=K.max_chain_length,H=K.strstart,D=K.prev_length,S=K.nice_match,n=K.strstart>K.w_size-262?K.strstart-(K.w_size-262):0,u=K.window,a=K.w_mask,R=K.prev,F=K.strstart+258,z=u[H+D-1],v=u[H+D];K.prev_length>=K.good_match&&(f>>=2);S>K.lookahead&&(S=K.lookahead);do{var g=d;if(u[g+D]===v&&u[g+D-1]===z&&u[g]===u[H]&&u[++g]===u[H+1]){H+=2;for(g++;u[++H]===u[++g]&&u[++H]===u[++g]&&u[++H]===u[++g]&&u[++H]===u[++g]&&u[++H]===u[++g]&&u[++H]===u[++g]&&u[++H]===u[++g]&&u[++H]===u[++g]&&H<F;);
g=258-(F-H);H=F-258;if(g>D){K.match_start=d;D=g;if(g>=S)break;z=u[H+D-1];v=u[H+D]}}}while((d=R[d&a])>n&&--f!==0);return D<=K.lookahead?D:K.lookahead};
OX=function(K){var d=K.w_size,f;do{var H=K.window_size-K.lookahead-K.strstart;if(K.strstart>=d+(d-262)){nA.arraySet(K.window,K.window,d,d,0);K.match_start-=d;K.strstart-=d;K.block_start-=d;var D=f=K.hash_size;do{var S=K.head[--D];K.head[D]=S>=d?S-d:0}while(--f);D=f=d;do S=K.prev[--D],K.prev[D]=S>=d?S-d:0;while(--f);H+=d}if(K.strm.avail_in===0)break;D=K.strm;f=K.window;S=K.strstart+K.lookahead;var n=D.avail_in;n>H&&(n=H);n===0?f=0:(D.avail_in-=n,nA.arraySet(f,D.input,D.next_in,n,S),D.state.wrap===
1?D.adler=BNS(D.adler,f,n,S):D.state.wrap===2&&(D.adler=gR(D.adler,f,n,S)),D.next_in+=n,D.total_in+=n,f=n);K.lookahead+=f;if(K.lookahead+K.insert>=3)for(H=K.strstart-K.insert,K.ins_h=K.window[H],K.ins_h=(K.ins_h<<K.hash_shift^K.window[H+1])&K.hash_mask;K.insert&&!(K.ins_h=(K.ins_h<<K.hash_shift^K.window[H+3-1])&K.hash_mask,K.prev[H&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=H,H++,K.insert--,K.lookahead+K.insert<3););}while(K.lookahead<262&&K.strm.avail_in!==0)};
JyJ=function(K,d){for(var f;;){if(K.lookahead<262){OX(K);if(K.lookahead<262&&d===0)return 1;if(K.lookahead===0)break}f=0;K.lookahead>=3&&(K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+3-1])&K.hash_mask,f=K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart);f!==0&&K.strstart-f<=K.w_size-262&&(K.match_length=LqX(K,f));if(K.match_length>=3)if(f=ac(K,K.strstart-K.match_start,K.match_length-3),K.lookahead-=K.match_length,K.match_length<=K.max_lazy_match&&K.lookahead>=3){K.match_length--;
do K.strstart++,K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+3-1])&K.hash_mask,K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart;while(--K.match_length!==0);K.strstart++}else K.strstart+=K.match_length,K.match_length=0,K.ins_h=K.window[K.strstart],K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+1])&K.hash_mask;else f=ac(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++;if(f&&(vA(K,!1),K.strm.avail_out===0))return 1}K.insert=K.strstart<2?K.strstart:2;return d===4?(vA(K,
!0),K.strm.avail_out===0?3:4):K.last_lit&&(vA(K,!1),K.strm.avail_out===0)?1:2};
NH=function(K,d){for(var f,H;;){if(K.lookahead<262){OX(K);if(K.lookahead<262&&d===0)return 1;if(K.lookahead===0)break}f=0;K.lookahead>=3&&(K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+3-1])&K.hash_mask,f=K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart);K.prev_length=K.match_length;K.prev_match=K.match_start;K.match_length=2;f!==0&&K.prev_length<K.max_lazy_match&&K.strstart-f<=K.w_size-262&&(K.match_length=LqX(K,f),K.match_length<=5&&(K.strategy===1||K.match_length===3&&
K.strstart-K.match_start>4096)&&(K.match_length=2));if(K.prev_length>=3&&K.match_length<=K.prev_length){H=K.strstart+K.lookahead-3;f=ac(K,K.strstart-1-K.prev_match,K.prev_length-3);K.lookahead-=K.prev_length-1;K.prev_length-=2;do++K.strstart<=H&&(K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+3-1])&K.hash_mask,K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart);while(--K.prev_length!==0);K.match_available=0;K.match_length=2;K.strstart++;if(f&&(vA(K,!1),K.strm.avail_out===0))return 1}else if(K.match_available){if((f=
ac(K,0,K.window[K.strstart-1]))&&vA(K,!1),K.strstart++,K.lookahead--,K.strm.avail_out===0)return 1}else K.match_available=1,K.strstart++,K.lookahead--}K.match_available&&(ac(K,0,K.window[K.strstart-1]),K.match_available=0);K.insert=K.strstart<2?K.strstart:2;return d===4?(vA(K,!0),K.strm.avail_out===0?3:4):K.last_lit&&(vA(K,!1),K.strm.avail_out===0)?1:2};
sSY=function(K,d){for(var f,H,D,S=K.window;;){if(K.lookahead<=258){OX(K);if(K.lookahead<=258&&d===0)return 1;if(K.lookahead===0)break}K.match_length=0;if(K.lookahead>=3&&K.strstart>0&&(H=K.strstart-1,f=S[H],f===S[++H]&&f===S[++H]&&f===S[++H])){for(D=K.strstart+258;f===S[++H]&&f===S[++H]&&f===S[++H]&&f===S[++H]&&f===S[++H]&&f===S[++H]&&f===S[++H]&&f===S[++H]&&H<D;);K.match_length=258-(D-H);K.match_length>K.lookahead&&(K.match_length=K.lookahead)}K.match_length>=3?(f=ac(K,1,K.match_length-3),K.lookahead-=
K.match_length,K.strstart+=K.match_length,K.match_length=0):(f=ac(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++);if(f&&(vA(K,!1),K.strm.avail_out===0))return 1}K.insert=0;return d===4?(vA(K,!0),K.strm.avail_out===0?3:4):K.last_lit&&(vA(K,!1),K.strm.avail_out===0)?1:2};
kuo=function(K,d){for(var f;;){if(K.lookahead===0&&(OX(K),K.lookahead===0)){if(d===0)return 1;break}K.match_length=0;f=ac(K,0,K.window[K.strstart]);K.lookahead--;K.strstart++;if(f&&(vA(K,!1),K.strm.avail_out===0))return 1}K.insert=0;return d===4?(vA(K,!0),K.strm.avail_out===0?3:4):K.last_lit&&(vA(K,!1),K.strm.avail_out===0)?1:2};
YK=function(K,d,f,H,D){this.good_length=K;this.max_lazy=d;this.nice_length=f;this.max_chain=H;this.func=D};
wGn=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 nA.Buf16(1146);this.dyn_dtree=new nA.Buf16(122);this.bl_tree=new nA.Buf16(78);Rc(this.dyn_ltree);Rc(this.dyn_dtree);Rc(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new nA.Buf16(16);this.heap=new nA.Buf16(573);Rc(this.heap);this.heap_max=this.heap_len=0;this.depth=new nA.Buf16(573);Rc(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};
Zdz=function(K,d){if(!K||!K.state||d>5||d<0)return K?UX(K,-2):-2;var f=K.state;if(!K.output||!K.input&&K.avail_in!==0||f.status===666&&d!==4)return UX(K,K.avail_out===0?-5:-2);f.strm=K;var H=f.last_flush;f.last_flush=d;if(f.status===42)if(f.wrap===2)K.adler=0,MH(f,31),MH(f,139),MH(f,8),f.gzhead?(MH(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),MH(f,f.gzhead.time&255),MH(f,f.gzhead.time>>8&255),MH(f,f.gzhead.time>>16&255),MH(f,f.gzhead.time>>
24&255),MH(f,f.level===9?2:f.strategy>=2||f.level<2?4:0),MH(f,f.gzhead.os&255),f.gzhead.extra&&f.gzhead.extra.length&&(MH(f,f.gzhead.extra.length&255),MH(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(K.adler=gR(K.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(MH(f,0),MH(f,0),MH(f,0),MH(f,0),MH(f,0),MH(f,f.level===9?2:f.strategy>=2||f.level<2?4:0),MH(f,3),f.status=113);else{var D=8+(f.w_bits-8<<4)<<8;D|=(f.strategy>=2||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6;f.strstart!==0&&(D|=
32);f.status=113;PA(f,D+(31-D%31));f.strstart!==0&&(PA(f,K.adler>>>16),PA(f,K.adler&65535));K.adler=1}if(f.status===69)if(f.gzhead.extra){for(D=f.pending;f.gzindex<(f.gzhead.extra.length&65535)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>D&&(K.adler=gR(K.adler,f.pending_buf,f.pending-D,D)),Fj(K),D=f.pending,f.pending!==f.pending_buf_size));)MH(f,f.gzhead.extra[f.gzindex]&255),f.gzindex++;f.gzhead.hcrc&&f.pending>D&&(K.adler=gR(K.adler,f.pending_buf,f.pending-D,D));f.gzindex===f.gzhead.extra.length&&
(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){D=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>D&&(K.adler=gR(K.adler,f.pending_buf,f.pending-D,D)),Fj(K),D=f.pending,f.pending===f.pending_buf_size)){var S=1;break}S=f.gzindex<f.gzhead.name.length?f.gzhead.name.charCodeAt(f.gzindex++)&255:0;MH(f,S)}while(S!==0);f.gzhead.hcrc&&f.pending>D&&(K.adler=gR(K.adler,f.pending_buf,f.pending-D,D));S===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===
91)if(f.gzhead.comment){D=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>D&&(K.adler=gR(K.adler,f.pending_buf,f.pending-D,D)),Fj(K),D=f.pending,f.pending===f.pending_buf_size)){S=1;break}S=f.gzindex<f.gzhead.comment.length?f.gzhead.comment.charCodeAt(f.gzindex++)&255:0;MH(f,S)}while(S!==0);f.gzhead.hcrc&&f.pending>D&&(K.adler=gR(K.adler,f.pending_buf,f.pending-D,D));S===0&&(f.status=103)}else f.status=103;f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&Fj(K),
f.pending+2<=f.pending_buf_size&&(MH(f,K.adler&255),MH(f,K.adler>>8&255),K.adler=0,f.status=113)):f.status=113);if(f.pending!==0){if(Fj(K),K.avail_out===0)return f.last_flush=-1,0}else if(K.avail_in===0&&(d<<1)-(d>4?9:0)<=(H<<1)-(H>4?9:0)&&d!==4)return UX(K,-5);if(f.status===666&&K.avail_in!==0)return UX(K,-5);if(K.avail_in!==0||f.lookahead!==0||d!==0&&f.status!==666){H=f.strategy===2?kuo(f,d):f.strategy===3?sSY(f,d):tL[f.level].func(f,d);if(H===3||H===4)f.status=666;if(H===1||H===3)return K.avail_out===
0&&(f.last_flush=-1),0;if(H===2&&(d===1?(Dk(f,2,3),V9(f,256,z7),f.bi_valid===16?(HA(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):f.bi_valid>=8&&(f.pending_buf[f.pending++]=f.bi_buf&255,f.bi_buf>>=8,f.bi_valid-=8)):d!==5&&(Dk(f,0,3),bdO(f,0,0),d===3&&(Rc(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),Fj(K),K.avail_out===0))return f.last_flush=-1,0}if(d!==4)return 0;if(f.wrap<=0)return 1;f.wrap===2?(MH(f,K.adler&255),MH(f,K.adler>>8&255),MH(f,K.adler>>16&255),MH(f,K.adler>>24&255),MH(f,
K.total_in&255),MH(f,K.total_in>>8&255),MH(f,K.total_in>>16&255),MH(f,K.total_in>>24&255)):(PA(f,K.adler>>>16),PA(f,K.adler&65535));Fj(K);f.wrap>0&&(f.wrap=-f.wrap);return f.pending!==0?0:1};
e0X=function(K){if(!(this instanceof e0X))return new e0X(K);K=this.options=nA.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},K||{});K.raw&&K.windowBits>0?K.windowBits=-K.windowBits:K.gzip&&K.windowBits>0&&K.windowBits<16&&(K.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new pGn;this.strm.avail_out=0;var d=this.strm;var f=K.level,H=K.method,D=K.windowBits,S=K.memLevel,n=K.strategy;if(d){var u=1;f===-1&&(f=6);D<0?(u=0,D=-D):D>15&&
(u=2,D-=16);if(S<1||S>9||H!==8||D<8||D>15||f<0||f>9||n<0||n>4)d=UX(d,-2);else{D===8&&(D=9);var a=new wGn;d.state=a;a.strm=d;a.wrap=u;a.gzhead=null;a.w_bits=D;a.w_size=1<<a.w_bits;a.w_mask=a.w_size-1;a.hash_bits=S+7;a.hash_size=1<<a.hash_bits;a.hash_mask=a.hash_size-1;a.hash_shift=~~((a.hash_bits+3-1)/3);a.window=new nA.Buf8(a.w_size*2);a.head=new nA.Buf16(a.hash_size);a.prev=new nA.Buf16(a.w_size);a.lit_bufsize=1<<S+6;a.pending_buf_size=a.lit_bufsize*4;a.pending_buf=new nA.Buf8(a.pending_buf_size);
a.d_buf=a.lit_bufsize;a.l_buf=3*a.lit_bufsize;a.level=f;a.strategy=n;a.method=H;if(d&&d.state){d.total_in=d.total_out=0;d.data_type=2;f=d.state;f.pending=0;f.pending_out=0;f.wrap<0&&(f.wrap=-f.wrap);f.status=f.wrap?42:113;d.adler=f.wrap===2?0:1;f.last_flush=0;if(!KSn){H=Array(16);for(S=n=0;S<28;S++)for(Guu[S]=n,D=0;D<1<<Wqo[S];D++)cA[n++]=S;cA[n-1]=S;for(S=n=0;S<16;S++)for(TNX[S]=n,D=0;D<1<<Ayu[S];D++)u3[n++]=S;for(n>>=7;S<30;S++)for(TNX[S]=n<<7,D=0;D<1<<Ayu[S]-7;D++)u3[256+n++]=S;for(D=0;D<=15;D++)H[D]=
0;for(D=0;D<=143;)z7[D*2+1]=8,D++,H[8]++;for(;D<=255;)z7[D*2+1]=9,D++,H[9]++;for(;D<=279;)z7[D*2+1]=7,D++,H[7]++;for(;D<=287;)z7[D*2+1]=8,D++,H[8]++;$YO(z7,287,H);for(D=0;D<30;D++)Xj[D*2+1]=5,Xj[D*2]=oJp(D,5);dQu=new Yxz(z7,Wqo,257,286,15);fRz=new Yxz(Xj,Ayu,0,30,15);HFu=new Yxz([],DQG,0,19,7);KSn=!0}f.l_desc=new tsG(f.dyn_ltree,dQu);f.d_desc=new tsG(f.dyn_dtree,fRz);f.bl_desc=new tsG(f.bl_tree,HFu);f.bi_buf=0;f.bi_valid=0;EJG(f);f=0}else f=UX(d,-2);f===0&&(d=d.state,d.window_size=2*d.w_size,Rc(d.head),
d.max_lazy_match=tL[d.level].max_lazy,d.good_match=tL[d.level].good_length,d.nice_match=tL[d.level].nice_length,d.max_chain_length=tL[d.level].max_chain,d.strstart=0,d.block_start=0,d.lookahead=0,d.insert=0,d.match_length=d.prev_length=2,d.match_available=0,d.ins_h=0);d=f}}else d=-2;if(d!==0)throw Error(Ic[d]);K.header&&(d=this.strm)&&d.state&&d.state.wrap===2&&(d.state.gzhead=K.header);if(K.dictionary){var R;typeof K.dictionary==="string"?R=V3O(K.dictionary):SVn.call(K.dictionary)==="[object ArrayBuffer]"?
R=new Uint8Array(K.dictionary):R=K.dictionary;K=this.strm;S=R;n=S.length;if(K&&K.state)if(R=K.state,d=R.wrap,d===2||d===1&&R.status!==42||R.lookahead)d=-2;else{d===1&&(K.adler=BNS(K.adler,S,n,0));R.wrap=0;n>=R.w_size&&(d===0&&(Rc(R.head),R.strstart=0,R.block_start=0,R.insert=0),f=new nA.Buf8(R.w_size),nA.arraySet(f,S,n-R.w_size,R.w_size,0),S=f,n=R.w_size);f=K.avail_in;H=K.next_in;D=K.input;K.avail_in=n;K.next_in=0;K.input=S;for(OX(R);R.lookahead>=3;){S=R.strstart;n=R.lookahead-2;do R.ins_h=(R.ins_h<<
R.hash_shift^R.window[S+3-1])&R.hash_mask,R.prev[S&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=S,S++;while(--n);R.strstart=S;R.lookahead=2;OX(R)}R.strstart+=R.lookahead;R.block_start=R.strstart;R.insert=R.lookahead;R.lookahead=0;R.match_length=R.prev_length=2;R.match_available=0;K.next_in=H;K.input=D;K.avail_in=f;R.wrap=d;d=0}else d=-2;if(d!==0)throw Error(Ic[d]);this._dict_set=!0}};
ypS=function(K,d){d=d||{};d.gzip=!0;d=new e0X(d);d.push(K,!0);if(d.err)throw d.msg||Ic[d.err];return d.result};
iFp=function(K,d){var f=noz();f&&f.publish.call(f,K.toString(),K,d)};
UQJ=function(K,d,f){var H=noz();if(!H)return 0;var D=H.subscribe(K.toString(),function(S,n){var u=_.T2("ytPubsub2Pubsub2SkipSubKey");u&&u==D||(u=function(){if(cpB[D])try{if(n&&K instanceof us5&&K!=S)try{var a=K.dataClass,R=n;if(!R.args||!R.version)throw Error("Vc");try{if(!a.version_){var F=new a;a.version_=F.version}var z=a.version_}catch(v){}if(!z||R.version!=z)throw Error("Wc");try{n=Reflect.construct(a,_.ep(R.args))}catch(v){throw v.message="yt.pubsub2.Data.deserialize(): "+v.message,v;}}catch(v){throw v.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+K.toString()+": "+v.message,v;}d.call(f||window,n)}catch(v){_.G2(v)}},aR5[K.toString()]?_.T2("yt.scheduler.instance")?_.oc.addLowPriorityJob(u):_.VK(u,0):u())});
cpB[D]=!0;IRn[K.toString()]||(IRn[K.toString()]=[]);IRn[K.toString()].push(D);return D};
XJN=function(){var K=RMS,d=UQJ(FSz,function(f){K.apply(void 0,arguments);zMz(d)});
return d};
zMz=function(K){var d=noz();d&&(typeof K==="number"&&(K=[K]),_.QB(K,function(f){d.unsubscribeByKey(f);delete cpB[f]}))};
noz=function(){return _.T2("ytPubsub2Pubsub2Instance")};
voO=function(K,d,f){f=f===void 0?{sampleRate:.1}:f;Math.random()<Math.min(.02,f.sampleRate/100)&&iFp("meta_logging_csi_event",{timerName:K,timelineData:d})};
_.M3o=function(K){return K?(K=K.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.l$(K):null:null};
_.$K=function(K){return K?(K=K.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.yL(K):null:null};
goX=function(){PAG||(PAG=_.$K(_.mD("WORKER_SERIALIZATION_URL")));return PAG||void 0};
_.NBX=function(){var K=goX();OFX||K===void 0||(OFX=new Worker(_.nM(K),void 0));return OFX};
_.YV5=function(){return typeof Worker==="function"&&goX()?!0:!1};
_.EoJ=function(){if(_.YV5()&&!t3X){var K=function(f){f=f.data;if(f.op==="gzippedGelBatch"){var H=ooo.get(f.key);H&&($Qo(f.gzippedBatch,H.latencyPayload,H.url,H.options,H.sendFn),ooo.delete(f.key))}},d=_.NBX();
d&&(d.addEventListener("message",K),d.onerror=function(){ooo.clear()},t3X=!0)}};
ApO=function(K,d,f,H,D){D=D===void 0?!1:D;var S={startTime:(0,_.k_)(),ticks:{},infos:{}};if(EX)try{var n=hMJ(d);if(n!=null&&(n>bFO||n<mQ5))H(K,f);else{if(_.M("gzip_gel_with_worker")&&(_.M("initial_gzip_use_main_thread")&&!lRX||!_.M("initial_gzip_use_main_thread"))){t3X||_.EoJ();var u=_.NBX();if(u&&!D){ooo.set(WSX,{latencyPayload:S,url:K,options:f,sendFn:H});u.postMessage({op:"gelBatchToGzip",serializedBatch:d,key:WSX});WSX++;return}}var a=ypS(G0O(d));$Qo(a,S,K,f,H)}}catch(R){_.rF(R),H(K,f)}else H(K,
f)};
$Qo=function(K,d,f,H,D){lRX=!1;var S=(0,_.k_)();d.ticks.gelc=S;hL++;_.M("disable_compression_due_to_performance_degredation")&&S-d.startTime>=TBo&&(rpB++,_.M("abandon_compression_after_N_slow_zips")?hL===_.di("compression_disable_point")&&rpB>qVu&&(EX=!1):EX=!1);QOo(d);H.headers||(H.headers={});H.headers["Content-Encoding"]="gzip";H.postBody=K;H.postParams=void 0;D(f,H)};
jON=function(K){var d=d===void 0?!1:d;var f=f===void 0?!1:f;var H=(0,_.k_)(),D={startTime:H,ticks:{},infos:{}},S=d?_.T2("yt.logging.gzipForFetch",!1):!0;if(EX&&S){if(!K.body)return K;try{var n=f?K.body:typeof K.body==="string"?K.body:JSON.stringify(K.body);S=n;if(!f&&typeof n==="string"){var u=hMJ(n);if(u!=null&&(u>bFO||u<mQ5))return K;f=d?{level:1}:void 0;S=ypS(G0O(n),f);var a=(0,_.k_)();D.ticks.gelc=a;if(d){hL++;if((_.M("disable_compression_due_to_performance_degredation")||_.M("disable_compression_due_to_performance_degradation_lr"))&&
a-H>=TBo)if(rpB++,_.M("abandon_compression_after_N_slow_zips")||_.M("abandon_compression_after_N_slow_zips_lr")){d=rpB/hL;var R=qVu/_.di("compression_disable_point");hL>0&&hL%_.di("compression_disable_point")===0&&d>=R&&(EX=!1)}else EX=!1;QOo(D)}}K.headers=Object.assign({},{"Content-Encoding":"gzip"},K.headers||{});K.body=S;return K}catch(F){return _.rF(F),K}}else return K};
hMJ=function(K){try{return(new Blob(K.split(""))).size}catch(d){return _.rF(d),null}};
QOo=function(K){_.M("gel_compression_csi_killswitch")||!_.M("log_gel_compression_latency")&&!_.M("log_gel_compression_latency_lr")||voO("gel_compression",K,{sampleRate:.1})};
CAS=function(){this.blockSize=-1};
b3=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var K=1;K<this.blockSize;++K)this.pad_[K]=0;this.total_=this.inbuf_=0;this.reset()};
LSn=function(K){K=Object.assign({},K);delete K.Authorization;var d=xQY();if(d){var f=new b3;f.update(_.mD("INNERTUBE_API_KEY"));f.update(d);K.hash=_.eS(f.digest(),3)}return K};
l3=function(){BBB||(BBB=new _.mn("yt.innertube"));return BBB};
Jpp=function(K,d,f,H){if(H)return null;H=l3().get("nextId",!0)||1;var D=l3().get("requests",!0)||{};D[H]={method:K,request:d,authState:LSn(f),requestTime:Math.round((0,_.k_)())};l3().set("nextId",H+1,86400,!0);l3().set("requests",D,86400,!0);return H};
sOG=function(K){var d=l3().get("requests",!0)||{};delete d[K];l3().set("requests",d,86400,!0)};
wJo=function(K){var d=l3().get("requests",!0);if(d){for(var f in d){var H=d[f];if(!(Math.round((0,_.k_)())-H.requestTime<6E4)){var D=H.authState,S=LSn(_.Odn(!1));_.PR.equals(D,S)&&(D=H.request,"requestTimeMs"in D&&(D.requestTimeMs=Math.round((0,_.k_)())),k0O(K,H.method,D,{}));delete d[f]}}l3().set("requests",d,86400,!0)}};
ZFB=function(K){var d;return(K=K==null?void 0:(d=K.error)==null?void 0:d.code)&&K>=400&&K<=599?!1:!0};
eMz=function(K){var d;K=K==null?void 0:(d=K.error)==null?void 0:d.code;return!(K!==400&&K!==415)};
KWp=function(){if(pJS)return pJS();var K={};pJS=sF("LogsDatabaseV2",{objectStores:(K.LogsRequestsStore={addedAtVersion:2},K),shared:!1,upgrade:function(d,f,H){f(2)&&WA(d,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});f(3);f(5)&&(H=H.objectStore("LogsRequestsStore"),H.JSC$8602_wrapped.indexNames.contains("newRequest")&&H.JSC$8602_wrapped.deleteIndex("newRequest"),G7(H,"newRequestV2",["status","interface","timestamp"]));f(7)&&d.JSC$8587_wrapped.objectStoreNames.contains("sapisid")&&d.JSC$8587_wrapped.deleteObjectStore("sapisid");
f(9)&&d.JSC$8587_wrapped.objectStoreNames.contains("SWHealthLog")&&d.JSC$8587_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return pJS()};
AL=function(K){return _.qX(KWp(),K)};
feS=function(K,d){var f,H,D,S;return _.c(function(n){if(n.nextAddress==1)return f={startTime:(0,_.k_)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.I(n,AL(d),2);if(n.nextAddress!=3)return H=n.yieldResult,D=Object.assign({},K,{options:JSON.parse(JSON.stringify(K.options)),interface:_.mD("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.I(n,H.put("LogsRequestsStore",D),3);S=n.yieldResult;f.ticks.tc=(0,_.k_)();dn5(f);return n.return(S)})};
HUN=function(K,d){var f,H,D,S,n,u,a,R;return _.c(function(F){if(F.nextAddress==1)return f={startTime:(0,_.k_)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.I(F,AL(d),2);if(F.nextAddress!=3)return H=F.yieldResult,D=_.mD("INNERTUBE_CONTEXT_CLIENT_NAME",0),S=[K,D,0],n=[K,D,(0,_.k_)()],u=IDBKeyRange.bound(S,n),a="prev",_.M("use_fifo_for_networkless")&&(a="next"),R=void 0,_.I(F,_.QK(H,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(z){return _.wi(z.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:u,direction:a},function(v){v.getValue()&&(R=v.getValue(),K==="NEW"&&(R.status="QUEUED",v.update(R)))})}),3);
f.ticks.tc=(0,_.k_)();dn5(f);return F.return(R)})};
DnG=function(K,d){var f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,AL(d),2);f=H.yieldResult;return H.return(_.QK(f,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(D){var S=D.objectStore("LogsRequestsStore");return S.get(K).then(function(n){if(n)return n.status="QUEUED",S.put(n).then(function(){return n})})}))})};
VZN=function(K,d,f,H){f=f===void 0?!0:f;var D;return _.c(function(S){if(S.nextAddress==1)return _.I(S,AL(d),2);D=S.yieldResult;return S.return(_.QK(D,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(n){var u=n.objectStore("LogsRequestsStore");return u.get(K).then(function(a){return a?(a.status="NEW",f&&(a.sendCount+=1),H!==void 0&&(a.options.compress=H),u.put(a).then(function(){return a})):lH.resolve(void 0)})}))})};
S1G=function(K,d){var f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,AL(d),2);f=H.yieldResult;return H.return(f.delete("LogsRequestsStore",K))})};
yGX=function(K){var d,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,AL(K),2);d=H.yieldResult;f=(0,_.k_)()-2592E6;return _.I(H,_.QK(d,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(D){return Cy(D.objectStore("LogsRequestsStore"),{},function(S){if(S.getValue().timestamp<=f)return S.delete().then(function(){return S.continue()})})}),0)})};
nmX=function(){_.c(function(K){return _.I(K,Z1O("LogsDatabaseV2"),0)})};
dn5=function(K){_.M("nwl_csi_killswitch")||voO("networkless_performance",K,{sampleRate:1})};
_.cGG=function(K){return _.qX(iUB(),K)};
u7B=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return _.I(H,_.cGG(K),2);d=H.yieldResult;f=(0,_.k_)()-2592E6;return _.I(H,_.QK(d,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(D){return Cy(D.objectStore("SWHealthLog"),{},function(S){if(S.getValue().timestamp<=f)return S.delete().then(function(){return S.continue()})})}),0)})};
aeX=function(K){var d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,_.cGG(K),2);d=f.yieldResult;return _.I(f,d.clear("SWHealthLog"),0)})};
_.T7=function(K,d,f,H,D,S,n){D=D===void 0?"":D;S=S===void 0?!1:S;n=n===void 0?!1:n;if(K)if(f&&!EF("cobalt"))_.rF(new _.X4("Legacy referrer-scrubbed ping detected")),K&&IeY(K,void 0,{scrubReferrer:!0});else if(D)rdz(K,d,"POST",D,H);else if(_.mD("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||H||n)rdz(K,d,"GET","",H,void 0,S,n);else{b:{try{c:{var u=new UnX({url:K});if(u.urlParamValues_.dsh==="1")var a=null;else{var R=u.urlParamValues_.ae;if(R==="1"){var F=u.urlParamValues_.adurl;if(F)try{a={version:3,directUrl:decodeURIComponent(F),
asyncUrl:thG(u.JSC$7485_url_,"act=1","ri=1",R3S(u))};break c}catch(N){}}a=R==="2"?{version:4,directUrl:thG(u.JSC$7485_url_,"dct=1","suid="+u.suid_,""),asyncUrl:thG(u.JSC$7485_url_,"act=1","ri=1","suid="+u.suid_)}:null}}if(a){var z=_.ny(K);var v=!(!z||!z.endsWith("/aclk")||_.rG(K,"ri")!=="1");break b}}catch(N){}v=!1}if(v){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(K,"")){var g=!0;break b}}catch(N){}g=!1}g?(d&&d(),f=!0):f=!1}else f=!1;f||IeY(K,d)}};
IeY=function(K,d,f){f=f===void 0?{}:f;var H=new Image,D=""+FWu++;z3B[D]=H;H.onload=H.onerror=function(){d&&z3B[D]&&d();delete z3B[D]};
f.scrubReferrer&&(H.referrerPolicy="no-referrer");H.src=K};
rR=function(K,d){XWO(K,d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
vmN=function(K){var d;return((d=document.featurePolicy)==null?0:d.allowedFeatures().includes("attribution-reporting"))?K+"&nis=6":K+"&nis=5"};
MZn=function(K){if(!K)return!1;try{var d;if(((d=_.jq(K))==null?void 0:d.asm)==="4")return!0}catch(f){_.G2(f)}return!1};
XWO=function(K,d){d?(K=vmN(K),_.T7(K,void 0,void 0,void 0,"",!0,!0)):_.T7(K)};
gmz=function(){PsG||(PsG=new _.mn("yt.offline"));return PsG};
OUX=function(K){if(_.M("offline_error_handling")){var d=gmz().get("errors",!0)||{};d[K.message]={name:K.name,stack:K.stack};K.level&&(d[K.message].level=K.level);gmz().set("errors",d,2592E3,!0)}};
Y1p=function(K,d,f,H){H=H===void 0?!1:H;d=_.M("web_fp_via_jspb")?Object.assign({},d):d;_.M("use_cfr_monitor")&&NmB(K,d);if(_.M("use_request_time_ms_header"))d.headers&&kM(K)&&(d.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.k_)())));else{var D;if((D=d.postParams)==null?0:D.requestTimeMs)d.postParams.requestTimeMs=Math.round((0,_.k_)())}f&&Object.keys(d).length===0?_.T7(K):d.compress?d.postBody?(typeof d.postBody!=="string"&&(d.postBody=JSON.stringify(d.postBody)),ApO(K,d.postBody,
d,_.iH,H)):ApO(K,JSON.stringify(d.postParams),d,CTY,H):_.iH(K,d)};
tZG=function(K,d){_.M("use_event_time_ms_header")&&kM(K)&&(d.headers||(d.headers={}),d.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.k_)())));return d};
_.$nS=function(){omG||(omG=new _.jc({logOfflineErrors:!0,enablePolling:!0}));return omG};
NmB=function(K,d){var f=d.onError?d.onError:function(){};
d.onError=function(D,S){CA().requestComplete(K,!1);f(D,S)};
var H=d.onSuccess?d.onSuccess:function(){};
d.onSuccess=function(D,S){CA().requestComplete(K,!0);H(D,S)}};
_.Emo=function(){return _.JR(document.location.toString())!=="www.youtube-nocookie.com"};
_.mnX=function(){return _.T2("ytNetworklessLoggingInitializationOptions")?_.h3O.isNwlInitialized:_.bUp};
le5=function(K,d){if(_.M("polymer_on_demand_shady_dom")){var f;var H=(f=K.__shady_native_firstElementChild)!=null?f:K.firstElementChild}else H=K.firstElementChild;for(;H;){if(K=d(H)?H:le5(H,d))return K;H=H.nextElementSibling}return null};
GoG=function(){var K=document;if("visibilityState"in K)return K.visibilityState;var d=WWz+"VisibilityState";if(d in K)return K[d]};
_.AGX=function(K,d){var f;xK(K,function(H){f=d[H];return!!f});
return f};
_.BA=function(K){var d=Tmz(K);d?d.focus():_.LA(K)};
Tmz=function(K){return(K=le5(K,function(d){return _.JL(d)?rGz(d)&&!!d.offsetParent:!1}))?K:null};
_.LA=function(K,d){K.hasAttribute("tabindex")||K.setAttribute("tabindex","-1");K.focus(d)};
q1p=function(K,d,f,H){H=H===void 0?{}:H;K.addEventListener&&(d!="mouseenter"||"onmouseenter"in document?d!="mouseleave"||"onmouseenter"in document?d=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(d="MozMousePixelScroll"):d="mouseout":d="mouseover");return _.PR.findKey(sX,function(D){var S=typeof D[4]==="boolean"&&D[4]==!!H,n=_.H4(D[4])&&_.H4(H)&&_.PR.equals(D[4],H);return!!D.length&&D[0]==K&&D[1]==d&&D[2]==f&&(S||n)})};
_.wR=function(K,d,f,H){H=H===void 0?{}:H;if(!K||!K.addEventListener&&!K.attachEvent)return"";var D=q1p(K,d,f,H);if(D)return D;D=++QMp.count+"";var S=!(d!="mouseenter"&&d!="mouseleave"||!K.addEventListener||"onmouseenter"in document);var n=S?function(u){u=new kK(u);if(!_.bW(u.relatedTarget,function(a){return a==K},!0))return u.currentTarget=K,u.type=d,f.call(K,u)}:function(u){u=new kK(u);
u.currentTarget=K;return f.call(K,u)};
n=_.AR(n);K.addEventListener?(d=="mouseenter"&&S?d="mouseover":d=="mouseleave"&&S?d="mouseout":d=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(d="MozMousePixelScroll"),jMX()||typeof H==="boolean"?K.addEventListener(d,n,H):K.addEventListener(d,n,!!H.capture)):K.attachEvent("on"+d,n);sX[D]=[K,d,f,n,H];return D};
_.xnO=function(K,d,f){var H=H===void 0?{}:H;var D=_.wR(K,d,function(){_.CsX(D);f.apply(K,arguments)},H)};
_.CsX=function(K){K&&(typeof K=="string"&&(K=[K]),_.QB(K,function(d){if(d in sX){var f=sX[d],H=f[0],D=f[1],S=f[3];f=f[4];H.removeEventListener?jMX()||typeof f==="boolean"?H.removeEventListener(D,S,f):H.removeEventListener(D,S,!!f.capture):H.detachEvent&&H.detachEvent("on"+D,S);delete sX[d]}}))};
Zk=function(K){this.callback_=K;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(K=0;K<4;K++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.wR(window,"mousemove",(0,_.Om)(this.onMouseMove_,this));this.timerId_=_.SQ((0,_.Om)(this.checkPosition_,this),25)};
BmO=function(){var K={};var d=K.preferMobileEvents===void 0?!1:K.preferMobileEvents;K=K.enableScrollEventListener===void 0?!0:K.enableScrollEventListener;if(_.T2("_lact",window)==null){var f=parseInt(_.mD("LACT"),10);f=isFinite(f)?Date.now()-Math.max(f,0):-1;_.B6("_lact",f,window);_.B6("_fact",f,window);f==-1&&_.ec();_.wR(document,"keydown",_.ec);_.wR(document,"keyup",_.ec);_.wR(document,"mousedown",_.ec);_.wR(document,"mouseup",_.ec);d?_.wR(window,"touchmove",function(){LWz("touchmove",200)},{passive:!0}):
(_.wR(window,"resize",function(){LWz("resize",200)}),K&&_.wR(window,"scroll",function(){LWz("scroll",200)}));
new Zk(function(){LWz("mouse",100)});
_.wR(document,"touchstart",_.ec,{passive:!0});_.wR(document,"touchend",_.ec,{passive:!0})}};
LWz=function(K,d){JGo[K]||(JGo[K]=!0,_.oc.addLowPriorityJob(function(){_.ec();JGo[K]=!1},d))};
_.ec=function(){_.T2("_lact",window)==null&&BmO();var K=Date.now();_.B6("_lact",K,window);_.T2("_fact",window)==-1&&_.B6("_fact",K,window);(K=_.T2("ytglobal.ytUtilActivityCallback_"))&&K()};
_.pA=function(){var K=_.T2("_lact",window);return K==null?-1:Math.max(Date.now()-K,0)};
_.Ha=function(K,d,f){var H=_.Ko();if(H&&d){var D=H.subscribe(K,function(){var S=arguments,n=function(){dU[D]&&d.apply&&typeof d.apply=="function"&&d.apply(f||window,S)};
try{_.sMz[K]?n():_.VK(n,0)}catch(u){_.G2(u)}},f);
dU[D]=!0;fo[K]||(fo[K]=[]);fo[K].push(D);return D}return 0};
_.koz=function(K){var d=_.Ko();d&&(typeof K==="number"?K=[K]:typeof K==="string"&&(K=[parseInt(K,10)]),_.QB(K,function(f){d.unsubscribeByKey(f);delete dU[f]}))};
_.wWO=function(K,d){var f=_.Ko();f&&f.publish.apply(f,arguments)};
_.e3z=function(K){var d=_.Ko();if(d)if(d.clear(K),K)ZUz(K);else for(var f in fo)ZUz(f)};
_.Ko=function(){return _.Hu.ytPubsubPubsubInstance};
ZUz=function(K){fo[K]&&(K=fo[K],_.QB(K,function(d){dU[d]&&delete dU[d]}),K.length=0)};
pWG=function(){var K,d;return"h5vcc"in Dx&&((K=Dx.h5vcc.traceEvent)==null?0:K.traceBegin)&&((d=Dx.h5vcc.traceEvent)==null?0:d.traceEnd)?1:"performance"in Dx&&Dx.performance.mark&&Dx.performance.measure?2:0};
Kxp=function(K){var d=pWG();switch(d){case 1:Dx.h5vcc.traceEvent.traceBegin("YTLR",K);break;case 2:Dx.performance.mark(K+"-start");break;case 0:break;default:_.nE(d,"unknown trace type")}};
d7o=function(K){var d=pWG();switch(d){case 1:Dx.h5vcc.traceEvent.traceEnd("YTLR",K);break;case 2:d=K+"-start";var f=K+"-end";Dx.performance.mark(f);Dx.performance.measure(K,d,f);break;case 0:break;default:_.nE(d,"unknown trace type")}};
fmo=function(K){var d,f;(f=(d=window).onerror)==null||f.call(d,K.message,"",0,0,K)};
H8z=function(K){if(_.M("web_lifecycle_error_handling_killswitch"))return K();try{return K()}catch(d){fmo(d)}};
D7J=function(K){return[K.auth===void 0?"undefined":K.auth,K.isJspb===void 0?"undefined":K.isJspb,K.cttAuthInfo===void 0?"undefined":K.cttAuthInfo,K.tier===void 0?"undefined":K.tier].join("/")};
_.P=function(K,d){if(K)return K[d.name]};
S7=function(){var K=_.T2("yt.logging.ims");K||(K=new VU,_.B6("yt.logging.ims",K));return K};
ImJ=function(K,d){if(K.endpoint==="log_event"){VPp(K);var f=SzG(K),H=yM5(K.payload)||"",D=npz(H),S=200;if(D){if(D.enabled===!1&&!_.M("web_payload_policy_disabled_killswitch"))return;S=i8p(D.tier);if(S===400){cMn(K,d);return}}yU[f]=!0;f={cttAuthInfo:f,isJspb:!1,tier:S};S7().storePayload(f,K.payload);uwG(d,!1,f,amz(H))}};
RmO=function(K,d,f){if(d.endpoint==="log_event"){VPp(void 0,d);var H=SzG(d,!0),D=npz(K),S=200;if(D){if(D.enabled===!1&&!_.M("web_payload_policy_disabled_killswitch"))return;S=i8p(D.tier);if(S===400){U75(K,d,f);return}}yU[H]=!0;H={cttAuthInfo:H,isJspb:!0,tier:S};S7().storePayload(H,fw(d.payload));uwG(f,!0,H,amz(K))}};
uwG=function(K,d,f,H){d=d===void 0?!1:d;H=H===void 0?!1:H;K&&(no=new K);K=_.di("tvhtml5_logging_max_batch_ads_fork")||_.di("tvhtml5_logging_max_batch")||_.di("web_logging_max_batch")||100;var D=(0,_.k_)(),S=Fxn(d,f.tier),n=S.lastDebounceQueueFromLogTimeMs;H&&(S.useVideoStatsEndPoint=!0);H=0;f&&(H=S7().getSequenceCount(f));var u=function(){zmz({writeThenSend:!0},d,f.tier)};
H>=1E3?u():H>=K?XPN||(XPN=vpO(function(){u();XPN=void 0},0)):D-n>=10&&(MPY(d,f.tier),S.lastDebounceQueueFromLogTimeMs=D)};
cMn=function(K,d){if(K.endpoint==="log_event"){_.M("more_accurate_gel_parser")&&S7().storePayload({isJspb:!1},K.payload);VPp(K);var f=SzG(K),H=new Map;H.set(f,[K.payload]);var D=yM5(K.payload)||"";d&&(no=new d);return new _.ip(function(S,n){no&&no.isReady()?PLz(H,no,S,n,{bypassNetworkless:!0},!0,amz(D)):S()})}};
U75=function(K,d,f){if(d.endpoint==="log_event"){VPp(void 0,d);var H=SzG(d,!0),D=new Map;D.set(H,[fw(d.payload)]);f&&(no=new f);return new _.ip(function(S){no&&no.isReady()?gpY(D,no,S,{bypassNetworkless:!0},!0,amz(K)):S()})}};
SzG=function(K,d){var f="";if(K.dangerousLogToVisitorSession)f="visitorOnlyApprovedKey";else if(K.cttAuthInfo){if(d===void 0?0:d){d=K.cttAuthInfo.token;f=K.cttAuthInfo;var H=new O8G;f.videoId?H.setVideoId(f.videoId):f.playlistId&&ca(H,2,NjB,Ty(f.playlistId));YzJ[d]=H}else d=K.cttAuthInfo,f={},d.videoId?f.videoId=d.videoId:d.playlistId&&(f.playlistId=d.playlistId),tPp[K.cttAuthInfo.token]=f;f=K.cttAuthInfo.token}return f};
zmz=function(K,d,f){K=K===void 0?{}:K;d=d===void 0?!1:d;new _.ip(function(H,D){var S=Fxn(d,f),n=S.useVideoStatsEndPoint;S.useVideoStatsEndPoint=!1;opp(S.queueTimer);opp(S.queueMaxTimer);S.queueMaxTimer=0;no&&no.isReady()?f===void 0&&_.M("enable_web_tiered_gel")?$7J(H,D,K,d,300,n):$7J(H,D,K,d,f,n):(MPY(d,f),H())})};
$7J=function(K,d,f,H,D,S){var n=no;f=f===void 0?{}:f;H=H===void 0?!1:H;D=D===void 0?200:D;S=S===void 0?!1:S;var u=new Map,a=new Map,R={isJspb:H,cttAuthInfo:void 0,tier:D},F={isJspb:H,cttAuthInfo:void 0};if(H){d=_.y(Object.keys(yU));for(D=d.next();!D.done;D=d.next())D=D.value,a=_.M("enable_web_tiered_gel")?S7().smartExtractMatchingEntries({keys:[R,F],sizeLimit:1E3}):S7().extractMatchingEntries({isJspb:!0,cttAuthInfo:D}),a.length>0&&u.set(D,a),(_.M("web_fp_via_jspb_and_json")&&f.writeThenSend||!_.M("web_fp_via_jspb_and_json"))&&
delete yU[D];gpY(u,n,K,f,!1,S)}else{u=_.y(Object.keys(yU));for(R=u.next();!R.done;R=u.next())R=R.value,F=_.M("enable_web_tiered_gel")?S7().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:R,tier:D},{isJspb:!1,cttAuthInfo:R}],sizeLimit:1E3}):S7().extractMatchingEntries({isJspb:!1,cttAuthInfo:R}),F.length>0&&a.set(R,F),(_.M("web_fp_via_jspb_and_json")&&f.writeThenSend||!_.M("web_fp_via_jspb_and_json"))&&delete yU[R];PLz(a,n,K,d,f,!1,S)}};
MPY=function(K,d){K=K===void 0?!1:K;d=d===void 0?200:d;var f=function(){zmz({writeThenSend:!0},K,d)},H=Fxn(K,d),D=H===EpG||H===hm5?5E3:b8S;
_.M("web_gel_timeout_cap")&&!H.queueMaxTimer&&(D=vpO(function(){f()},D),H.queueMaxTimer=D);
opp(H.queueTimer);D=_.mD("LOGGING_BATCH_TIMEOUT",_.di("web_gel_debounce_ms",1E4));_.M("shorten_initial_gel_batch_timeout")&&m7X&&(D=lmp);D=vpO(function(){_.di("gel_min_batch_size")>0?S7().getSequenceCount({cttAuthInfo:void 0,isJspb:K,tier:d})>=WxX&&f():f()},D);
H.queueTimer=D};
PLz=function(K,d,f,H,D,S,n){D=D===void 0?{}:D;var u=Math.round((0,_.k_)()),a=K.size,R=GCz(n);K=_.y(K);var F=K.next();for(n={};!F.done;n={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},F=K.next()){var z=_.y(F.value);F=z.next().value;z=z.next().value;n.batchRequest=_.PR.unsafeClone({context:_.UYX(d.config_||_.ZU())});if(!_.d2(z)&&!_.M("throw_err_when_logevent_malformed_killswitch")){H();break}n.batchRequest.events=z;
(z=tPp[F])&&AMo(n.batchRequest,F,z);delete tPp[F];n.dangerousLogToVisitorSession=F==="visitorOnlyApprovedKey";TjX(n.batchRequest,u,n.dangerousLogToVisitorSession);rMn(D);n.onSuccess$jscomp$3=function(v){_.M("start_client_gcf")&&_.oc.addLowPriorityJob(function(){return _.c(function(g){return _.I(g,qzX(v),0)})});
a--;a||f()};
n.networkFailures=0;n.onError$jscomp$5=function(v){return function(){v.networkFailures++;if(D.bypassNetworkless&&v.networkFailures===1)try{k0O(d,R,v.batchRequest,QnX({writeThenSend:!0},v.dangerousLogToVisitorSession,v.onSuccess$jscomp$3,v.onError$jscomp$5,S)),m7X=!1}catch(g){_.G2(g),H()}a--;a||f()}}(n);
try{k0O(d,R,n.batchRequest,QnX(D,n.dangerousLogToVisitorSession,n.onSuccess$jscomp$3,n.onError$jscomp$5,S)),m7X=!1}catch(v){_.G2(v),H()}}};
gpY=function(K,d,f,H,D,S){H=H===void 0?{}:H;var n=Math.round((0,_.k_)()),u={value:K.size},a=new Map([].concat(_.Me(K)));a=_.y(a);for(var R=a.next();!R.done;R=a.next()){var F=_.y(R.value).next().value,z=K.get(F);R=new jnz;var v=d.config_||_.ZU(),g=new up,N=new CLJ;_.aL(N,1,v.innertubeContextHostLanguage);_.aL(N,2,v.innertubeContextGeoLocation);_.py(N,16,v.innertubeContextClientNameFieldNumber);_.aL(N,17,v.innertubeContextClientVersion);if(v.innertubeContextClientConfigInfo){var h=v.innertubeContextClientConfigInfo,
m=new dR;h.coldConfigData&&_.aL(m,1,h.coldConfigData);h.appInstallData&&_.aL(m,6,h.appInstallData);h.coldHashData&&_.aL(m,3,h.coldHashData);h.hotHashData&&m.setHotHashData(h.hotHashData);_.fM(N,62,m)}(h=_.Hu.devicePixelRatio)&&h!=1&&_.KA(N,65,_.iU(h));h=E$G();h!==""&&_.aL(N,54,h);h=htN();if(h.length>0){m=new x7B;for(var T=0;T<h.length;T++){var r=new aB;r.setKey(h[T].key);ca(r,2,LxJ,Ty(h[T].value));IB(m,15,aB,r)}_.fM(g,5,m)}nJN(v,N);idB(g);cyu(N);ufG(v,N);aEY(N);_.M("start_client_gcf")&&IEG(N);_.mD("DELEGATED_SESSION_ID")&&
!_.M("pageid_as_header_web")&&(v=new UN,_.aL(v,3,_.mD("DELEGATED_SESSION_ID")));!_.M("fill_delegate_context_in_gel_killswitch")&&(h=_.mD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(m=_.eQ(g,UN,3)||new UN,v=g,h=_.aL(m,18,h),_.fM(v,3,h));v=N;h=_.y(Object.entries(_.jq(_.mD("DEVICE",""))));for(m=h.next();!m.done;m=h.next())T=_.y(m.value),m=T.next().value,T=T.next().value,m==="cbrand"?_.aL(v,12,T):m==="cmodel"?_.aL(v,13,T):m==="cbr"?_.aL(v,87,T):m==="cbrver"?_.aL(v,88,T):m==="cos"?_.aL(v,18,
T):m==="cosver"?_.aL(v,19,T):m==="cplatform"&&_.py(v,42,Syz(T));g.setClient(N);_.fM(R,1,g);if(N=YzJ[F])a:{if(_.Um(N,RB(N,NjB,1)))g=1;else if(N.getPlaylistId())g=2;else break a;_.fM(R,4,N);N=R.getContext()||new up;v=_.eQ(N,UN,3)||new UN;h=new Fb;h.setToken(F);_.py(h,1,g);IB(v,12,Fb,h);_.fM(N,3,v)}delete YzJ[F];F=F==="visitorOnlyApprovedKey";Bjp()||_.zE(R,2,n);!F&&(g=_.mD("EVENT_ID"))&&(N=JMz(),v=new snX,_.aL(v,1,g),_.zE(v,2,N),_.fM(R,5,v));rMn(H);if(_.M("jspb_serialize_with_worker")&&(g=_.NBX())&&
H.writeThenSend){_.kCo.set(wPn,{client:d,resolve:f,networklessOptions:H,isIsolated:D,useVSSEndpoint:S,dangerousLogToVisitorSession:F,requestsOutstanding:u});g.postMessage({op:"gelBatchToSerialize",batchRequest:fw(R),clientEvents:z,key:wPn});wPn++;break}if(z){g=[];for(N=0;N<z.length;N++)try{g.push(new Xb(z[N]))}catch(J){_.G2(new _.X4("Transport failed to deserialize "+String(z[N])))}z=g}else z=[];z=_.y(z);for(g=z.next();!g.done;g=z.next())IB(R,3,Xb,g.value);z={startTime:(0,_.k_)(),ticks:{},infos:{}};
R=R.serialize();z.ticks.geljspc=(0,_.k_)();_.M("log_jspb_serialize_latency")&&voO("gel_jspb_serialize",z,{sampleRate:.1});_.Z8n(R,d,f,H,D,S,F,u)}};
_.Z8n=function(K,d,f,H,D,S,n,u){H=H===void 0?{}:H;u=u===void 0?{value:0}:u;S=GCz(S);H=QnX(H,n,function(a){_.M("start_client_gcf")&&_.oc.addLowPriorityJob(function(){return _.c(function(R){return _.I(R,qzX(a),0)})});
u.value--;u.value||f()},function(){u.value--;
u.value||f()},D);
H.headers["Content-Type"]="application/json+protobuf";H.postBodyFormat="JSPB";H.postBody=K;k0O(d,S,"",H);m7X=!1};
rMn=function(K){_.M("always_send_and_write")&&(K.writeThenSend=!1)};
QnX=function(K,d,f,H,D){K={retry:!0,onSuccess:f,onError:H,networklessOptions:K,dangerousLogToVisitorSession:d,bypassMonitoring:!!D,headers:{},postBodyFormat:"",postBody:"",compress:_.M("compress_gel")||_.M("compress_gel_lr")};Bjp()&&(K.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.k_)())));return K};
TjX=function(K,d,f){Bjp()||(K.requestTimeMs=String(d));_.M("unsplit_gel_payloads_in_logs")&&(K.unsplitGelPayloadsInLogs=!0);!f&&(d=_.mD("EVENT_ID"))&&(f=JMz(),K.serializedClientEventId={serializedEventId:d,clientCounter:String(f)})};
JMz=function(){var K=_.mD("BATCH_CLIENT_COUNTER")||0;K||(K=Math.floor(Math.random()*65535/2));K++;K>65535&&(K=1);_.bx("BATCH_CLIENT_COUNTER",K);return K};
AMo=function(K,d,f){if(f.videoId)var H="VIDEO";else if(f.playlistId)H="PLAYLIST";else return;K.credentialTransferTokenTargetId=f;K.context=K.context||{};K.context.user=K.context.user||{};K.context.user.credentialTransferTokens=[{token:d,scope:H}]};
VPp=function(K,d){var f=_.fy("il_payload_scraping")==="enable_il_payload_scraping";if(!_.T2("yt.logging.transport.enableScrapingForTest"))if(f)em5=[],_.B6("yt.logging.transport.enableScrapingForTest",!0),_.B6("yt.logging.transport.scrapedPayloadsForTesting",em5),_.B6("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.B6("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.B6("yt.logging.transport.scrapeClientEvent",!0);else return;f=_.T2("yt.logging.transport.scrapedPayloadsForTesting");var H=_.T2("yt.logging.transport.payloadToScrape");d&&(d=_.T2("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(d.payload)())&&f.push(d);d=_.T2("yt.logging.transport.scrapeClientEvent");if(H&&H.length>=1)for(var D=0;D<H.length;D++)if(K&&K.payload[H[D]])if(d)f.push(K.payload);else{var S=void 0;f.push(((S=K)==null?void 0:S.payload)[H[D]])}_.B6("yt.logging.transport.scrapedPayloadsForTesting",
f)};
Bjp=function(){return _.M("use_request_time_ms_header")||_.M("lr_use_request_time_ms_header")};
vpO=function(K,d){return _.M("transport_use_scheduler")===!1?_.VK(K,d):_.M("logging_avoid_blocking_during_navigation")||_.M("lr_logging_avoid_blocking_during_navigation")?_.va(_.oc,function(){if(_.pPO().currentState==="none")K();else{var f={};_.pPO().install((f.none={callback:K},f))}},d):_.va(_.oc,K,d)};
opp=function(K){_.M("transport_use_scheduler")?_.oc.cancelJob(K):_.yK(K)};
qzX=function(K){var d,f,H,D,S,n,u,a,R,F;return _.c(function(z){return z.nextAddress==1?(H=(d=K)==null?void 0:(f=d.responseContext)==null?void 0:f.globalConfigGroup,D=_.P(H,KeX),n=(S=H)==null?void 0:S.hotHashData,u=_.P(H,dd5),R=(a=H)==null?void 0:a.coldHashData,(F=_.eq().resolve(_.Zd(MF)))?n?D?_.I(z,fFJ(F,n,D),2):_.I(z,fFJ(F,n),2):z.jumpTo(2):z.return()):R?u?_.I(z,HZX(F,R,u),0):_.I(z,HZX(F,R),0):z.jumpTo(0)})};
Fxn=function(K,d){d=d===void 0?200:d;return K?d===300?EpG:Dd5:d===300?hm5:VVX};
npz=function(K){if(_.M("enable_web_tiered_gel")){K=SPG[K||""];var d,f,H,D=_.eq().resolve(_.Zd(MF))==null?void 0:(d=yJ5())==null?void 0:(f=d.loggingHotConfig)==null?void 0:(H=f.eventLoggingConfig)==null?void 0:H.payloadPolicies;if(D)for(d=0;d<D.length;d++)if(D[d].payloadNumber===K)return D[d]}};
yM5=function(K){K=Object.keys(K);K=_.y(K);for(var d=K.next();!d.done;d=K.next())if(d=d.value,SPG[d])return d};
i8p=function(K){switch(K){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}};
amz=function(K){return K==="gelDebuggingEvent"};
GCz=function(K){return(K===void 0?0:K)&&_.M("vss_through_gel_video_stats")?"video_stats":"log_event"};
gU=function(K,d,f,H){H=H===void 0?{}:H;var D={},S=Math.round(H.timestamp||(0,_.k_)());D.eventTimeMs=S<Number.MAX_SAFE_INTEGER?S:0;D[K]=d;K=_.pA();D.context={lastActivityMs:String(H.timestamp||!isFinite(K)?-1:K)};H.sequenceGroup&&!_.M("web_gel_sequence_info_killswitch")&&(K=D.context,d=H.sequenceGroup,d={index:nAo(d),groupKey:d},K.sequence=d,H.endOfSequence&&delete Pa[H.sequenceGroup]);(H.sendIsolatedPayload?cMn:ImJ)({endpoint:"log_event",payload:D,cttAuthInfo:H.cttAuthInfo,dangerousLogToVisitorSession:H.dangerousLogToVisitorSession},
f)};
nAo=function(K){Pa[K]=K in Pa?Pa[K]+1:0;return Pa[K]};
_.t3=function(K,d,f){f=f===void 0?{}:f;var H=Y7;_.lx("ytLoggingEventsDefaultDisabled",!1)&&Y7===Y7&&(H=null);gU(K,d,H,f)};
_.oB=function(){if(_.M("web_fp_via_jspb")){var K=!0;K=K===void 0?!1:K;var d=iZo;iZo=[];if(d){d=_.y(d);for(var f=d.next();!f.done;f=d.next())f=f.value,K?gU(f.payloadName,f.payload,Y7,f.options):_.t3(f.payloadName,f.payload,f.options)}zmz(void 0,!0);if(!_.M("web_fp_via_jspb_and_json"))return}zmz(void 0,!1)};
cJu=function(K,d){var f;if((f=d)==null?0:f.componentStack)return d;if(K=K.componentStack)d||(d={}),d.componentStack=K;return d};
uqB=function(){_.QB(_.mD("ERRORS")||[],function(K){_.$7.apply(null,K)});
_.bx("ERRORS",[])};
_.EN=function(K){_.$7(K)};
_.h3=function(K){_.$7(K,"WARNING")};
aFS=function(K){K instanceof Error?_.$7(K):(K=_.H4(K)?JSON.stringify(K):String(K),K=new _.X4(K),K.name="RejectedPromiseError",_.h3(K))};
IFY=function(K,d,f,H,D,S){d=d===void 0?"Unknown file":d;f=f===void 0?0:f;var n=!1,u=cdo("log_window_onerror_fraction");if(u&&Math.random()<u)n=!0;else{u=document.getElementsByTagName("script");for(var a=0,R=u.length;a<R;a++)if(u[a].src.indexOf("/debug-")>0){n=!0;break}}n&&(n=!1,D?n=!0:(typeof K==="string"?u=K:ErrorEvent&&K instanceof ErrorEvent?(n=!0,u=K.message,d=K.filename,f=K.lineno,H=K.colno):(u="Unknown error",d="Unknown file",f=0),D=new _.X4(u),D.name="UnhandledWindowError",D.message=u,D.fileName=
d,D.lineNumber=f,isNaN(H)?delete D.columnNumber:D.columnNumber=H),_.M("wiz_enable_component_stack_propagation_killswitch")||(S=cJu(D,S)),S&&_.bp(D,S),n?_.$7(D):_.h3(D))};
_.$7=function(K,d,f,H,D,S,n,u){S=S===void 0?{}:S;S.name=f||_.mD("INNERTUBE_CONTEXT_CLIENT_NAME",1);S.version=H||_.mD("INNERTUBE_CONTEXT_CLIENT_VERSION");f=S;d=d===void 0?"ERROR":d;n=n===void 0?!1:n;d=d===void 0?"ERROR":d;n=n===void 0?!1:n;if(K&&(K.hasOwnProperty("level")&&K.level&&(d=K.level),_.M("console_log_js_exceptions")&&(H=[],H.push("Name: "+K.name),H.push("Message: "+K.message),K.hasOwnProperty("params")&&H.push("Error Params: "+JSON.stringify(K.params)),K.hasOwnProperty("args")&&H.push("Error args: "+
JSON.stringify(K.args)),H.push("File name: "+K.fileName),H.push("Stacktrace: "+K.stack),H=H.join("\n"),window.console.log(H,K)),!(UdX>=5))){H=[];D=_.y(R2Y);for(S=D.next();!S.done;S=D.next()){S=S.value;try{S()&&H.push(S())}catch(m){}}H=[].concat(_.Me(Feo),_.Me(H));var a=z2G(K);D=a.message||"Unknown Error";S=a.name||"UnknownError";var R=a.stack||K.stacktrace||"Not available";if(R.startsWith(S+": "+D)){var F=R.split("\n");F.shift();R=F.join("\n")}F=a.lineNumber||"Not available";a=a.fileName||"Not available";
var z=0;if(K.hasOwnProperty("args")&&K.args&&K.args.length)for(var v=0;v<K.args.length&&!(z=VvB(K.args[v],"params."+v,f,z),z>=500);v++);else if(K.hasOwnProperty("params")&&K.params){var g=K.params;if(typeof K.params==="object")for(v in g){if(g[v]){var N="params."+v,h=a0(g[v]);f[N]=h;z+=N.length+h.length;if(z>500)break}}else f.params=a0(g)}if(H.length)for(v=0;v<H.length&&!(z=VvB(H[v],"params.context."+v,f,z),z>=500);v++);navigator.vendor&&!f.hasOwnProperty("vendor")&&(f["device.vendor"]=navigator.vendor);
v={message:D,name:S,lineNumber:F,fileName:a,stack:R,params:f,sampleWeight:1};f=Number(K.columnNumber);isNaN(f)||(v.lineNumber=v.lineNumber+":"+f);if(K.level==="IGNORED")K=0;else a:{K=XvG();f=_.y(K.messageWeights);for(H=f.next();!H.done;H=f.next())if(H=H.value,v.message&&v.message.match(H.messageRegExp)){K=H.weight;break a}K=_.y(K.callbackWeights);for(f=K.next();!f.done;f=K.next())if(f=f.value,f.callback(v)){K=f.weight;break a}K=1}v.sampleWeight=K;K=_.y(vAO);for(f=K.next();!f.done;f=K.next())if(f=
f.value,f.patternsForType[v.name])for(D=_.y(f.patternsForType[v.name]),H=D.next();!H.done;H=D.next())if(S=H.value,H=v.message.match(S.regexp)){v.params["params.error.original"]=H[0];D=S.groups;S={};for(F=0;F<D.length;F++)S[D[F]]=H[F+1],v.params["params.error."+D[F]]=H[F+1];v.message=f.messageFn(S);break}v.params||(v.params={});K=XvG();v.params["params.errorServiceSignature"]="msg="+K.messageWeights.length+"&cb="+K.callbackWeights.length;v.params["params.serviceWorker"]="false";_.Hu.document&&_.Hu.document.querySelectorAll&&
(v.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new mh(MVX,"sample")).constructor!==mh&&(v.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(v);if(v.sampleWeight!==0&&!Pz5.has(v.message)){if(n&&_.M("web_enable_error_204"))gAJ(d===void 0?"ERROR":d,v);else{d=d===void 0?"ERROR":d;d==="ERROR"?(OZO.publish("handleError",v),_.M("record_app_crashed_web")&&NlX===0&&v.sampleWeight===1&&(NlX++,n={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.M("report_client_error_with_app_crash_ks")||(n.systemHealth={crashData:{clientError:{logMessage:{message:v.message}}}}),_.t3("appCrashed",n)),YPG++):d==="WARNING"&&OZO.publish("handleWarning",v);if(_.M("kevlar_gel_error_routing")){n=d;u=u===void 0?{}:u;b:{K=_.y(tVG);for(f=K.next();!f.done;f=K.next())if(EF(f.value.toLowerCase())){K=!0;break b}K=!1}if(K)u=void 0;else{f={stackTrace:v.stack};v.fileName&&(f.filename=v.fileName);K=v.lineNumber&&v.lineNumber.split?v.lineNumber.split(":"):[];K.length!==
0&&(K.length!==1||isNaN(Number(K[0]))?K.length!==2||isNaN(Number(K[0]))||isNaN(Number(K[1]))||(f.lineNumber=Number(K[0]),f.columnNumber=Number(K[1])):f.lineNumber=Number(K[0]));K={level:"ERROR_LEVEL_UNKNOWN",message:v.message,errorClassName:v.name,sampleWeight:v.sampleWeight};n==="ERROR"?K.level="ERROR_LEVEL_ERROR":n==="WARNING"&&(K.level="ERROR_LEVEL_WARNNING");f={isObfuscated:!0,browserStackInfo:f};u.pageUrl=window.location.href;u.kvPairs=[];_.mD("FEXP_EXPERIMENTS")&&(u.experimentIds=_.mD("FEXP_EXPERIMENTS"));
H=_.mD("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!cdo("web_disable_gel_stp_ecatcher_killswitch")&&H)for(D=_.y(Object.keys(H)),S=D.next();!S.done;S=D.next())S=S.value,u.kvPairs.push({key:S,value:String(H[S])});if(H=v.params)for(D=_.y(Object.keys(H)),S=D.next();!S.done;S=D.next())S=S.value,u.kvPairs.push({key:"client."+S,value:String(H[S])});H=_.mD("SERVER_NAME");D=_.mD("SERVER_VERSION");H&&D&&(u.kvPairs.push({key:"server.name",value:H}),u.kvPairs.push({key:"server.version",value:D}));u={errorMetadata:u,
stackTrace:f,logMessage:K}}u&&(_.t3("clientError",u),(n==="ERROR"||_.M("errors_flush_gel_always_killswitch"))&&_.oB())}_.M("suppress_error_204_logging")||gAJ(d,v)}try{Pz5.add(v.message)}catch(m){}UdX++}}};
gAJ=function(K,d){var f=d.params||{};K={urlParams:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),line:d.lineNumber,level:K,"client.name":f.name},postParams:{url:_.mD("PAGE_NAME",window.location.href),file:d.fileName},method:"POST"};f.version&&(K["client.version"]=f.version);if(K.postParams){d.stack&&(K.postParams.stack=d.stack);d=_.y(Object.keys(f));for(var H=d.next();!H.done;H=d.next())H=H.value,K.postParams["client."+H]=f[H];if(f=_.mD("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(d=
_.y(Object.keys(f)),H=d.next();!H.done;H=d.next())H=H.value,K.postParams[H]=f[H];(f=_.mD("LAVA_VERSION"))&&(K.postParams["lava.version"]=f);f=_.mD("SERVER_NAME");d=_.mD("SERVER_VERSION");f&&d&&(K.postParams["server.name"]=f,K.postParams["server.version"]=d)}_.iH(_.mD("ECATCHER_REPORT_HOST","")+"/error_204",K)};
_.oAB=function(K,d){d=d===void 0?"ERROR":d;var f=f===void 0?{}:f;var H=_.T2("ytbin.polymer.shared.lib.tampering.info");H&&(H=H())&&(f["params.tamperingInfo"]=H.sort().join(","));_.$7(K,d,void 0,void 0,!0,f)};
_.bp=function(K){var d=_.Pg.apply(1,arguments);K.args||(K.args=[]);Array.isArray(K.args)&&K.args.push.apply(K.args,_.Me(d))};
$dz=function(K){K.level="IGNORED"};
EAX=function(K,d){Feo.push(K);d();Feo.pop()};
Wa=function(K,d){for(var f in d)d.hasOwnProperty(f)&&(K=_.lp(K,f,d[f]));return K};
_.h25=function(K,d,f){f=f===void 0?!1:f;if(!K)return null;if(K.adInfoDialogEndpoint||K.backstageImageUploadEndpoint||K.confirmDialogEndpoint||K.clientActionEndpoint||K.createBackstagePostDialogEndpoint||K.createCommentReplyDialogEndpoint||K.flowEndpoint||K.guideBuilderEndpoint||K.liveChatDialogEndpoint||K.modalEndpoint||K.openPopupAction||K.shareEndpoint||K.shareEntityEndpoint||K.showLiveChatItemEndpoint||K.subscriptionManagerEndpoint||K.unlimitedCreateFamilyEndpoint||K.unlimitedFamilyFlowEndpoint||
K.updateCommentDialogEndpoint||K.updateCommentReplyDialogEndpoint||K.userFeedbackEndpoint||K.videoEditorEndpoint||K.ypcCancelSurveyEndpoint)return d=_.di("polymer_report_client_url_requested_rate"),!f&&Math.random()<d&&_.h3(new _.X4("urlForEndpoint used on client endpoint",K)),null;var H=_.di("polymer_report_missing_web_navigation_endpoint_rate");if(K.liveChatEndpoint||K.liveChatReplayEndpoint)H=0;if(!K.commandMetadata&&!K.clickTrackingParams&&Math.random()<H){var D={},S;for(S in K)D[S]="1";_.h3(new _.X4("Missing navigation data",
D))}D="";if(K.commandMetadata&&K.commandMetadata.webCommandMetadata&&K.commandMetadata.webCommandMetadata.url)D=K.commandMetadata.webCommandMetadata.url;else if(K.searchEndpoint)Math.random()<H&&_.h3(new _.X4("Should not manually handle search",K)),D="/results?search_query="+encodeURIComponent(K.searchEndpoint.query).replace(/%20/g,"+"),K.searchEndpoint.params&&(D+="&sp="+K.searchEndpoint.params);else if(K.watchEndpoint)Math.random()<H&&_.h3(new _.X4("Should not manually handle watch",K)),D="/watch?v="+
K.watchEndpoint.videoId,K.watchEndpoint.playlistId&&(D+="&list="+K.watchEndpoint.playlistId),K.watchEndpoint.index&&(D+="&index="+K.watchEndpoint.index),K.watchEndpoint.startTimeSeconds&&(D+="&t="+K.watchEndpoint.startTimeSeconds);else if(K.browseEndpoint)H=K.browseEndpoint.browseId,(S=K.browseEndpoint.canonicalBaseUrl)?D=S:H&&(D=H.substr(0,2),D=D==="FE"?H==="FEwhat_to_watch"?"/":H==="FEmy_videos"?"/my_videos":"/feed/"+H.substr(2):D==="VL"?"/playlist?list="+H.substr(2):"/channel/"+H),D&&K.browseEndpoint.query&&
(D=Wa(D+"/search",{query:K.browseEndpoint.query})),D&&K.browseEndpoint.params&&(D=Wa(D,{params:K.browseEndpoint.params}));else{if(K.urlEndpoint)return K.urlEndpoint.url;K.signInEndpoint?(D="https://accounts.google.com/ServiceLogin",H={},_.PR.extend(H,d||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),d=H):K.uploadEndpoint?D="//www.youtube.com/upload":K.liveChatEndpoint?(D=K.liveChatEndpoint,H=_.PR.clone(D),_.H4(D.continuation)&&(S=Object.keys(D.continuation)[0],
H.continuation=D.continuation[S].continuation),D=Wa("/youtubei/v1/live_chat/get_live_chat",H)):K.liveChatReplayEndpoint?(D=_.PR.clone(K.liveChatReplayEndpoint),D.currentPlayerState&&(_.PR.extend(D,D.currentPlayerState),delete D.currentPlayerState),D=Wa("/youtubei/v1/live_chat/get_live_chat_replay",D)):K.liveChatItemContextMenuEndpoint?D=Wa("/youtubei/v1/live_chat/get_item_context_menu",K.liveChatItemContextMenuEndpoint):K.liveChatPurchaseMessageEndpoint?D=Wa("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
K.liveChatPurchaseMessageEndpoint):K.openSuperStickerBuyFlowCommand?D=Wa("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",K.openSuperStickerBuyFlowCommand):K.videoEditEndpoint?D=Wa("/edit",{video_id:K.videoEditEndpoint.videoId}):K.liveDashboardEndpoint?D=K.liveDashboardEndpoint.videoId?Wa("/live_dashboard",{v:K.liveDashboardEndpoint.videoId}):"/live_dashboard":K.signalNavigationEndpoint&&K.signalNavigationEndpoint.signal&&K.signalNavigationEndpoint.signal==="WEBCAM"?D="/webcam":K.getPdgBuyFlowCommand&&
(D=Wa(K.getPdgBuyFlowCommand.buyflowApiPath,{params:K.getPdgBuyFlowCommand.params}))}return D||f?Wa(D,d||{}):(_.h3(new _.X4("Error: Can't construct url for endpoint","keys:"+Object.keys(K).sort().join(","),K)),null)};
bZY=function(K){if(K){if(K.browseEndpoint)return!!K.browseEndpoint.nofollow;if(K.watchEndpoint)return!!K.watchEndpoint.nofollow;if(K.urlEndpoint)return!!K.urlEndpoint.nofollow}return!1};
_.lFO=function(K,d){var f=d+K,H=mdY.get(f);if(H)return H;K=d+"-"+K.replace(/([A-Z])/g,"-$1").toLowerCase();mdY.set(f,K);return K};
Wen=function(K){var d=_.Eb(K,"action")||_.Eb(K,"command")||_.Eb(K,"endpoint");if(!d)return null;d=_.lFO(d,"yt");_.P(K,_.GE)&&(d+="-"+_.P(K,_.GE).signal.toLowerCase().replace(/_/g,"-"));return d};
rJS=function(K){try{var d=Object.keys(K)}catch(D){return[]}for(var f=0;f<d.length;f++){var H=d[f];if(GGo.test(H)||AJN.test(H))return TlN(K[H])}return[]};
TlN=function(K){return K.command?[K.command]:K.onExecutionAction?[K.onExecutionAction]:K.onResponseReceivedCommand?[K.onResponseReceivedCommand]:K.updateFlowCommand?[K.updateFlowCommand]:K.clientActions?K.clientActions:K.action?[K.action]:K.actions||K.commands||K.onResponseReceivedActions||K.onResponseReceivedCommands||K.onResponseReceivedEndpoints||[]};
QGu=function(K,d){d=d===void 0?!1:d;var f=_.eq().resolve(_.Zd(A3));f||(f=new qPJ,_.eq().addProvider({provide:A3,useValue:f}));return f&&K&&!_.PR.isEmpty(K)?f.getUrl(K,d):""};
jGu=function(K,d,f){f=f===void 0?"":f;if(d){K.data=d;var H=QGu(d);H?(ND(K,H),bZY(d)||!kM(H)?K.rel="nofollow":K.removeAttribute("rel"),_.P(d,_.TE)&&_.P(d,_.TE).target==="TARGET_NEW_WINDOW"?K.target="_blank":f?K.target=f:K.removeAttribute("target")):(K.removeAttribute("href"),K.removeAttribute("rel"),K.removeAttribute("target"))}};
_.j7=function(K,d){var f=kl;if(Nq())Czu(K,function(){var S=_.Pg.apply(0,arguments);mU(f,function(){d.apply(null,_.Me(S))})});
else{var H=_.rU.getInstance(),D=$M(d);D5p(function(){D.value=d});
_.tR(function(){var S={},n=_.qF(H,(S[K]=function(){var u=_.Pg.apply(0,arguments);mU(f,function(){D.value.apply(D,_.Me(u))})},S));
return function(){var u={};_.QU(H,(u[K]="",u),n)}})}};
_.Co=function(K){return Nq()?xdX(K):Lep(K)};
_.x7=function(K){return Nq()?xdX(K):Lep(K)};
Lep=function(K){return od(function(){return xdX(K)})};
xdX=function(K){var d=KkN(function(f){d.value&&d.value===f||(d.__count=d.__count?d.__count+1:1);d.value=f;var H=function(){var D=DK(null);try{return K==null?void 0:K(f)}finally{DK(D)}}();
return function(){H==null||H();d.value=null}});
return d};
Bln=function(K){var d=kl,f=gQ;return{getFn:function(){return function(H){d.isDisposed||tc(function(){return i8(function(){return K(H)})},f)!==!0&&H.stopPropagation()}}}};
Lo=function(K){if(typeof K.children==="function")return K.children(),null;K=_.y(K.children);for(var d=K.next();!d.done;d=K.next())d=d.value,d();return null};
JJn=function(K){var d;return((d=K.prototype)==null?void 0:d.render)===void 0};
sGN=function(K){K=K.items.map(K.children);return K.length>0&&typeof K[0]==="string"?K.join(""):K};
wvX=function(K,d,f){f=f===void 0?!1:f;tc(function(){return kGX(K,d,f)})};
kGX=function(K,d,f){f=((f===void 0?0:f)?ZZz:e2o)(K,function(){Ba(d)});
return f===null?K:f};
Ba=function(K){if(K!==void 0&&K!==null)if(K instanceof ux)for(var d=Th;rQ()!=null&&TUp in rQ()&&d.contains(rQ());)jD();else if(Array.isArray(K))for(d=_.y(K),K=d.next();!K.done;K=d.next())Ba(K.value);else if(K instanceof Se||"function"==typeof _.je&&K instanceof _.je)eD(K.toString());else if(H_(K)){if(rQ()!==K){var f,H;d=(H=(f=gQ)==null?void 0:f.name)!=null?H:"unknown";throw Error("cc`"+K.tagName+"`"+d);}jD()}else if(K!=null&&K.contentKind===Sq||K instanceof YG)for(d=dFO(K),d=Array.from(d.childNodes),
d=_.y(d),K=d.next();!K.done;K=d.next())Th.appendChild(K.value),jD();else if(ao(K)&&(K=K.toString()),f=typeof K,f==="boolean"||f==="number"||f==="string")eD(K);else if(typeof K==="function"){d=Th;var D=rQ();D&&(D._isSignalTextNode||D._isSafeOrSanitizedHtmlNode)||o7X(d,D,K);jD()}else if(K.type===sGN)Ba(K.type(Object.assign({},K.props,{children:K.children[0]})));else{Rd.beforeVisit(K);if(typeof K.type==="string"){a:{K.__open||WnY(K.type,K.props.idomKey);D=Th;for(d in K.props)if(K.props[d]!==pvJ){var S=
K.props[d];f=sn;f.push(d);f.push(S)}d=dQ.attributes;d=d===void 0?J3:d;S=Th;f=Ac(S);jcN(S,f,d);t75(D,K.props,!0);if((K.props.skip||K.props.skipchildren)&&Th.hasChildNodes())BC();else{if(K.type==="style"&&axO(K.children)===null){BC();d=void 0;break a}Ba(K.children)}G7p();K.__open&&(K.__open=!1);k7z(D,K.props);d=D}return d}if(K.type===_.dF)Ba(K.children);else if(!Kdz(K)){d=K;try{daB(d)}catch(n){K=n,(S=dQ.handleError)==null||S.call.apply(S,[dQ].concat(_.Me(l8(K,(D=d.type)==null?void 0:D.TAG_NAME))))}d.__open&&
(G7p(),d.__open=!1)}}};
fWG=function(K,d){var f;JJn(K)?f=new z2(d,K):f=new K(d);f.JSC$8270___type=K;f.__updateContext={nextState:f.state,isForced:!1};return f};
daB=function(K){var d=K.type,f=d.TAG_NAME;if(d===Lo)K.props.children=K.children,d(K.props);else{K.children.length>0&&(K.props.children=K.children);var H;(H=K.props).idomKey||(H.idomKey=d);if(f){var D=WnY(f,K.props.idomKey);K.__open=!0;var S=D.__instance}S||(S=fWG(d,K.props),S.props=null,D&&(D.__instance=S,S.el=D));var n;f=((n=S.__updateContext)!=null?n:{nextState:S.state,isForced:!1}).nextState;S.__updateContext=void 0;d.getDerivedStateFromProps&&(f=d.getDerivedStateFromProps(K.props,f));S.props=
K.props;S.state=f;n=function(){var u=S;Rd.beforeRender(u);var a=u.render(u.props);Rd.afterRender(u,a);a?(u.props.idomKey&&(a.props.idomKey=u.props.idomKey),u=a):u=void 0;if(a=u)if(a.__open=K.__open,u=Ba(a),K.__open=a.__open,!d.TAG_NAME)if(u)d.TAG_NAME=u.tagName.toLowerCase(),u.__instance=S,S.el=u;else{var R;if((R=S.hooks)==null?0:R.length){var F;(F=dQ.handleError)==null||F.call.apply(F,[dQ].concat(_.Me(l8(Error("id")))))}}S.didPatch();Rd.didPatch(S)};
(f=S.functionComponent)?p6G(f,n,S.props.debugInstance):n()}};
Kdz=function(K){var d=K.type;if(!JJn(d)||d===Lo||d.componentType===On)return!1;K.props.children=K.children.length>1?K.children:K.children[0];var f,H=(f=K.props.idomKey)!=null?f:K.type,D;if(rQ()&&((D=rQ()[nQ])==null?void 0:D.key)===H){var S=rQ(),n=S[nQ];if(!n)throw Error("bc`"+S.tagName);var u;(u=n.updateSignalsFromIdomProps)==null||u.call(n,K.props);HKN(n);return!0}if(Daz.has(d.name))throw u=d.name,d=(n=(S=gQ)==null?void 0:S.name)!=null?n:"unknown",Error("ac`"+u+"`"+d);boX(K.type,K.props,K.children);
K.props.renderedFromIdom=!0;(u=p6G(K.type,function(){return Ppn(K.type,K.props)},K.props.debugInstance))&&VCz(u);
return!0};
S5z=function(K){for(var d=0;d<c_(K).length;d++)jD()};
HKN=function(K){var d=yhN();if(d)S5z(d);else for(var f=0;f<K.numNodes;f++)(d=yhN())?S5z(d):jD()};
yhN=function(){var K;return(K=rQ()[nQ])==null?void 0:K.sourceDynamicRange};
VCz=function(K){K=ZAX(K);K=Array.isArray(K)?K:[K];K=_.y(K);for(var d=K.next();!d.done;d=K.next())Th.insertBefore(d.value,rQ()),jD()};
nPp=function(K){var d=OoX(),f=od(function(){return{value:typeof K==="function"?K():K}});
return[f.value,function(H){if(F0!==null){var D;(D=dQ.handleError)==null||D.call.apply(D,[dQ].concat(_.Me(l8(Error("jd")))))}f.value=typeof H==="function"?H(f.value):H;d.__updateContext={nextState:d.state,isForced:!0};H=eh(d.effectContext);D=fQ(!1);try{if(d.el){var S,n={},u=(n.props=d.props,n.type=d.JSC$8270___type,n.children=(S=d.props.children)!=null?S:[],n[KQ]=!0,n);try{wvX(d.el,u,!0)}catch(F){var a,R;(R=dQ.handleError)==null||R.call.apply(R,[dQ].concat(_.Me(l8(F,(a=d.JSC$8270___type)==null?void 0:
a.TAG_NAME))))}}}finally{fQ(D),eh(H)}}]};
sN=function(K,d){var f=kl,H=function(D){mU(f,function(){d(D)})};
window.addEventListener(K,H,void 0);_.$F(function(){window.removeEventListener(K,H,void 0)})};
_.wU=function(K,d){var f=kl;_.tR(function(){var H,D=(H=d.observer)!=null?H:_.eq().resolve(k7);if(H=K.value){var S=iKp(H),n=[];d.showOption&&n.push(D.observe(H,function(){mU(f,function(){d.visibilityCallback(!0)})},d.showOption));
d.hideOption&&n.push(D.observe(H,function(){mU(f,function(){d.visibilityCallback(!1)})},d.hideOption));
d.prescanOption&&d.prescanCallback&&n.push(D.observe(H,function(){mU(f,function(){d.prescanCallback()})},d.prescanOption));
var u;S.visibilityMonitorKeys=((u=S.visibilityMonitorKeys)!=null?u:[]).concat(n)}})};
iKp=function(K){var d;return(d=K.polymerController)!=null?d:K};
_.Zx=function(K){K.componentType=On};
IWn=function(K,d){var f=chN;return _.U(_.dF,null,sm(dQ.enableLazyTsx,function(){return _.U(uQX,{id:f,value:K,children:d})},function(){var H=aWz(f,K);
Kn(H);H=eh(H);try{return d()}finally{eh(H)}}))};
uQX=function(K){var d=K.children;K=aWz(K.id,K.value);Kn(K);K=eh(K);try{return _.U(_.dF,null,Id(d()))}finally{eh(K)}};
aWz=function(K,d){return Object.assign(Object.create(UaX),{id:K,contextValue:d})};
Ro5=function(K){var d,f=kl;_.b8(function(){var H=eh(f),D=fQ(!d);try{if(d)wvX(d,K.children(),!0);else if(d=Id(K.children()),!(d instanceof Element))throw Error("kd");}finally{fQ(D),eh(H)}});
return d};
Fdu=function(K){var d,f=En(function(){var H=fQ(!0);try{d=c_(K())}finally{fQ(H)}},!1);
return[d,f]};
XpX=function(K){K=K.buf.charCodeAt(K.pos++);return zop[K]};
e7=function(K){var d=0,f=0;do{var H=XpX(K);d|=(H&31)<<f;f+=5}while(H&32);return d<0?d+4294967296:d};
PhO=function(K,d,f){vPO(K,d);K[d][MCS].unshift(f)};
vPO=function(K,d){if(!K[d]||!K[d][MCS]){var f=K[d],H=f?[f]:[];K[d]=function(){for(var D=_.y(H),S=D.next();!S.done;S=D.next())S.value.apply(this,arguments)};
K[d][MCS]=H}};
gPo=function(K){if(!K)return[];var d=[];K=_.y(K);for(var f=K.next();!f.done;f=K.next())f=f.value,Array.isArray(f)?d.push.apply(d,_.Me(gPo(f))):d.push(f);return d};
_.K3=function(K,d){if(K&&OKB.test(K)||K==="//")return K;if(NHX===void 0){NHX=!1;try{var f=new URL("b","http://a");f.pathname="c%20d";NHX=f.href==="http://a/c%20d"}catch(H){}}d||(d=document.baseURI||window.location.href);if(NHX)try{return(new URL(K,d)).href}catch(H){return K}po||(po=document.implementation.createHTMLDocument("temp"),po.base=po.createElement("base"),po.head.appendChild(po.base),po.anchor=po.createElement("a"),po.body.appendChild(po.anchor));po.base.href=d;po.anchor.href=K;return po.anchor.href||
K};
tCX=function(K,d){return K.replace(Y5u,function(f,H,D,S){return H+"'"+_.K3(D.replace(/["']/g,""),d)+"'"+S})};
oPO=function(K){return K.substring(0,K.lastIndexOf("/")+1)};
hoS=function(){$az=!1;for(var K=dX.length,d=0;d<K;d++){var f=dX[d];if(f)try{f()}catch(H){setTimeout(function(){throw H;})}}dX.splice(0,K);
EPX+=K};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(K){console.log("["+K.is+"]: registered")};
map=function(K){bKu.push(K)};
f3=function(K){return lWB[K]||(lWB[K]=K.indexOf("-")<0?K:K.replace(WdN,function(d){return d[1].toUpperCase()}))};
He=function(K){return lWB[K]||(lWB[K]=K.replace(GzX,"-$1").toLowerCase())};
AhO=function(K,d){var f=d.parentInfo&&AhO(K,d.parentInfo);if(f)for(K=f.firstChild,f=0;K;K=K.nextSibling){if(d.parentIndex===f++)return K}else return K};
THn=function(K,d){K=K._methodHost||K;return function(f){if(K[d])K[d](f,f.detail);else console.warn("listener method `"+d+"` not defined")}};
Dt=function(K){return K.indexOf(".")>=0};
VQ=function(K){var d=K.indexOf(".");return d===-1?K:K.slice(0,d)};
rhG=function(K,d){return K.indexOf(d+".")===0};
SW=function(K,d){return d.indexOf(K+".")===0};
yQ=function(K,d,f){return d+f.slice(K.length)};
q5n=function(K,d){return K===d||rhG(K,d)||SW(K,d)};
n3=function(K){if(Array.isArray(K)){for(var d=[],f=0;f<K.length;f++)for(var H=K[f].toString().split("."),D=0;D<H.length;D++)d.push(H[D]);return d.join(".")}return K};
QmG=function(K){return Array.isArray(K)?n3(K).split("."):K.toString().split(".")};
iT=function(K,d,f){d=QmG(d);for(var H=0;H<d.length;H++){if(!K)return;K=K[d[H]]}f&&(f.path=d.join("."));return K};
jmX=function(K,d,f){var H=QmG(d),D=H[H.length-1];if(H.length>1){for(d=0;d<H.length-1;d++)if(K=K[H[d]],!K)return;K[D]=f}else K[d]=f;return H.join(".")};
Chn=function(K,d,f){var H=K[d];if(!H)H=K[d]={};else if(!K.hasOwnProperty(d)&&(H=K[d]=Object.create(K[d]),f))for(var D in H)for(K=H[D],d=H[D]=Array(K.length),f=0;f<K.length;f++)d[f]=K[f];return H};
uT=function(K,d,f,H,D,S){if(d){var n=!1,u=ce++,a;for(a in f){var R=D?VQ(a):a;if(R=d[R])for(var F=0,z=R.length,v=void 0;F<z&&(v=R[F]);F++)v.info&&v.info.lastRun===u||D&&!xaN(a,v.trigger)||(v.info&&(v.info.lastRun=u),v.fn(K,a,f,H,v.info,D,S),n=!0)}return n}return!1};
xaN=function(K,d){if(d){var f=d.name;return f==K||!(!d.structured||!rhG(f,K))||!(!d.wildcard||!SW(f,K))}return!0};
Ldo=function(K,d,f,H,D){d=typeof D.method==="string"?K[D.method]:D.method;f=D.property;d?d.call(K,K.__data[f],H[f]):D.dynamicFn||console.warn("observer method `"+D.method+"` not defined")};
BHX=function(K,d,f,H){f={value:f,queueProperty:!0};H&&(f.path=H);(0,_.a4)(K).dispatchEvent(new CustomEvent(d,{detail:f}))};
Jhz=function(K,d,f,H,D,S){S=(H=(S?VQ(d):d)!=d?d:null)?iT(K,H):K.__data[d];H&&S===void 0&&(S=f[d]);BHX(K,D.eventName,S,H)};
smo=function(K,d,f,H,D){f=K.__data[d];I4&&(f=I4(f,D.attrName,"attribute",K));K._propertyToAttribute(d,D.attrName,f)};
wpn=function(K){var d=K.constructor.__orderedComputedDeps;if(!d){d=new Map;for(var f=K.__computeEffects,H=kzN(K),D=H.counts,S=H.ready,n=H.total;H=S.shift();)d.set(H,d.size),(H=f[H])&&H.forEach(function(u){u=u.info.methodInfo;--n;--D[u]===0&&S.push(u)});
n!==0&&console.warn("Computed graph for "+K.localName+" incomplete; circular?");K.constructor.__orderedComputedDeps=d}return d};
kzN=function(K){var d=K.__computeInfo,f={};K=K.__computeEffects;var H=[],D=0,S;for(S in d){var n=d[S];D+=f[S]=n.args.filter(function(a){return!a.literal}).length+(n.dynamicFn?1:0)}for(var u in K)d[u]||H.push(u);
return{counts:f,ready:H,total:D}};
eon=function(K,d,f,H,D){d=ZKu(K,d,f,H,D);if(d===US)return!1;D=D.methodInfo;if(K.__dataHasAccessor&&K.__dataHasAccessor[D])return K._setPendingProperty(D,d,!0);K[D]=d;return!1};
dTo=function(K,d,f,H,D,S,n){f.bindings=f.bindings||[];H={kind:H,target:D,parts:S,literal:n,isCompound:S.length!==1};f.bindings.push(H);H.target&&H.kind!="attribute"&&H.kind!="text"&&!H.isCompound&&H.parts[0].mode==="{"&&(f=H.parts[0],S=f.negate,H.listenerEvent=f.event||He(D)+"-changed",H.listenerNegate=S);D=d.nodeInfoList.length;for(f=0;f<H.parts.length;f++){var u=H.parts[f];u.compoundIndex=f;S=K;n=d;var a=H,R=u,F=D;if(!R.literal)if(a.kind==="attribute"&&a.target[0]==="-")console.warn("Cannot set attribute "+
a.target+' because "-" is not a valid attribute starting character');else for(u=R.dependencies,a={index:F,binding:a,part:R,evaluator:S},R=0;R<u.length;R++)F=u[R],typeof F=="string"&&(F=pp5(F),F.wildcard=!0),S._addTemplatePropertyEffect(n,F.rootProperty,{fn:KRX,info:a,trigger:F})}};
KRX=function(K,d,f,H,D,S,n){n=n[D.index];var u=D.binding,a=D.part;S&&a.source&&d.length>a.source.length&&u.kind=="property"&&!u.isCompound&&n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[u.target]?(f=f[d],d=yQ(a.source,u.target,d),n._setPendingPropertyOrPath(d,f,!1,!0)&&K._enqueueClient(n)):(d=D.evaluator._evaluateBinding(K,a,d,f,H,S),d!==US&&(u.isCompound&&(f=n.__dataCompoundStorage[u.target],f[a.compoundIndex]=d,d=f.join("")),u.kind==="attribute"||u.target!=="textContent"&&
(u.target!=="value"||n.localName!=="input"&&n.localName!=="textarea")||(d=d==void 0?"":d),a=d,I4&&(a=I4(a,u.target,u.kind,n)),u.kind=="attribute"?K._valueToNodeAttribute(n,a,u.target):(u=u.target,n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[u]?n.__readOnly&&n.__readOnly[u]||n._setPendingProperty(u,a)&&K._enqueueClient(n):K._setUnmanagedPropertyToNode(n,u,a))))};
fSn=function(K,d,f){if(f.listenerEvent){var H=f.parts[0];K.addEventListener(f.listenerEvent,function(D){var S=f.target,n=H.source,u=H.negate,a=D.detail,R=a&&a.path;R?(n=yQ(S,n,R),D=a&&a.value):D=D.currentTarget[S];d.__readOnly&&d.__readOnly[n]||!d._setPendingPropertyOrPath(n,u?!D:D,!0,!!R)||a&&a.queueProperty||d._invalidateProperties()})}};
Htp=function(K,d,f,H,D,S){S=d.static||S&&(typeof S!=="object"||S[d.methodName]);D={methodName:d.methodName,args:d.args,methodInfo:D,dynamicFn:S};for(var n=0,u=void 0;n<d.args.length&&(u=d.args[n]);n++)u.literal||K._addPropertyEffect(u.rootProperty,f,{fn:H,info:D,trigger:u});S&&K._addPropertyEffect(d.methodName,f,{fn:H,info:D});return D};
ZKu=function(K,d,f,H,D){H=K._methodHost||K;var S=H[D.methodName];if(S)return K=K._marshalArgs(D.args,d,f),K===US?US:S.apply(H,K);D.dynamicFn||console.warn("method `"+D.methodName+"` not defined")};
DTz=function(K){for(var d="",f=0;f<K.length;f++)d+=K[f].literal||"";return d};
yv5=function(K){if(K=K.match(/([^\s]+?)\(([\s\S]*)\)/)){var d={methodName:K[1],static:!0,args:ViS};return K[2].trim()?SkB(K[2].replace(/\\,/g,"&comma;").split(","),d):d}return null};
SkB=function(K,d){d.args=K.map(function(f){f=pp5(f);f.literal||(d.static=!1);return f},this);
return d};
pp5=function(K){K=K.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var d={name:K,value:"",literal:!1},f=K[0];f==="-"&&(f=K[1]);f>="0"&&f<="9"&&(f="#");switch(f){case "'":case '"':d.value=K.slice(1,-1);d.literal=!0;break;case "#":d.value=Number(K),d.literal=!0}d.literal||(d.rootProperty=VQ(K),d.structured=Dt(K),d.structured&&(d.wildcard=K.slice(-2)==".*",d.wildcard&&(d.name=K.slice(0,-2))));return d};
nBX=function(K,d,f){K=iT(K,f);K===void 0&&(K=d[f]);return K};
ito=function(K,d,f,H){H={indexSplices:H};R4&&!K._overrideLegacyUndefined&&(d.splices=H);K.notifyPath(f+".splices",H);K.notifyPath(f+".length",d.length);R4&&!K._overrideLegacyUndefined&&(H.indexSplices=[])};
Ft=function(K,d,f,H,D,S){ito(K,d,f,[{index:H,addedCount:D,removed:S,object:d,type:"splice"}])};
cvX=function(K){K=tCX((K.body?K.body:K).textContent,K.baseURI);var d=document.createElement("style");d.textContent=K;return d};
ISz=function(K){K=K.trim().split(/\s+/);for(var d=[],f=0;f<K.length;f++)d.push.apply(d,_.Me(aSG(K[f])));return d};
aSG=function(K){var d=zF.import(K);if(!d)return console.warn("Could not find style data in module named",K),[];if(d._styles===void 0){K=[];K.push.apply(K,_.Me(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(d)));var f=d.querySelector("template");f&&K.push.apply(K,_.Me(UTY(f,d.assetpath)));d._styles=K}return d._styles};
UTY=function(K,d){if(!K._styles){for(var f=[],H=K.content.querySelectorAll("style"),D=0;D<H.length;D++){var S=H[D],n=S.getAttribute("include");n&&f.push.apply(f,_.Me(ISz(n).filter(function(u,a,R){return R.indexOf(u)===a})));
d&&(S.textContent=tCX(S.textContent,d));f.push(S)}K._styles=f}return K._styles};
RyN=function(K){return(K=zF.import(K))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(K):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(K){var d=[];K=K.querySelectorAll("link[rel=import][type~=css]");for(var f=0;f<K.length;f++){var H=K[f];if(H.import){var D=H.import;if((H=H.hasAttribute("shady-unscoped"))&&!D._unscopedStyle){var S=cvX(D);S.setAttribute("shady-unscoped","");D._unscopedStyle=S}else D._style||(D._style=cvX(D));d.push(H?D._unscopedStyle:D._style)}}return d};
zyn=function(K){K=K.trim().split(/\s+/);for(var d="",f=0;f<K.length;f++)d+=FRJ(K[f]);return d};
FRJ=function(K){var d=zF.import(K);if(d&&d._cssText===void 0){var f=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(d),H=d.querySelector("template");H&&(f+=X9p(H,d.assetpath));d._cssText=f||null}d||console.warn("Could not find style data in module named",K);return d&&d._cssText||""};
X9p=function(K,d){var f="";K=UTY(K,d);for(d=0;d<K.length;d++){var H=K[d];H.parentNode&&H.parentNode.removeChild(H);f+=H.textContent}return f};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(K){var d="";K=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(K);for(var f=0;f<K.length;f++)d+=K[f].textContent;return d};
Xt=function(K,d){return{index:K,removed:[],addedCount:d}};
MiJ=function(K,d,f,H){var D=0,S=0,n=0,u=0,a=Math.min(d-D,H-S);if(D==0&&S==0)a:{for(n=0;n<a;n++)if(K[n]!==f[n])break a;n=a}if(d==K.length&&H==f.length){u=K.length;for(var R=f.length,F=0;F<a-n&&vBz(K[--u],f[--R]);)F++;u=F}D+=n;S+=n;d-=u;H-=u;if(d-D==0&&H-S==0)return[];if(D==d){for(d=Xt(D,0);S<H;)d.removed.push(f[S++]);return[d]}if(S==H)return[Xt(D,d-D)];a=D;n=S;H=H-n+1;u=d-a+1;d=Array(H);for(R=0;R<H;R++)d[R]=Array(u),d[R][0]=R;for(R=0;R<u;R++)d[0][R]=R;for(R=1;R<H;R++)for(F=1;F<u;F++)if(K[a+F-1]===
f[n+R-1])d[R][F]=d[R-1][F-1];else{var z=d[R-1][F]+1,v=d[R][F-1]+1;d[R][F]=z<v?z:v}a=d.length-1;n=d[0].length-1;H=d[a][n];for(K=[];a>0||n>0;)a==0?(K.push(2),n--):n==0?(K.push(3),a--):(u=d[a-1][n-1],R=d[a-1][n],F=d[a][n-1],z=R<F?R<u?R:u:F<u?F:u,z==u?(u==H?K.push(0):(K.push(1),H=u),a--,n--):z==R?(K.push(3),a--,H=R):(K.push(2),n--,H=F));K.reverse();d=void 0;a=[];for(n=0;n<K.length;n++)switch(K[n]){case 0:d&&(a.push(d),d=void 0);D++;S++;break;case 1:d||(d=Xt(D,0));d.addedCount++;D++;d.removed.push(f[S]);
S++;break;case 2:d||(d=Xt(D,0));d.addedCount++;D++;break;case 3:d||(d=Xt(D,0)),d.removed.push(f[S]),S++}d&&a.push(d);return a};
PXY=function(K,d){return MiJ(K,K.length,d,d.length)};
vBz=function(K,d){return K===d};
OtJ=function(K){if(K instanceof gBz)return K.value;throw Error("Bd`"+K);};
NPz=function(K,d){for(var f in d)f===null?K.style.removeProperty(f):K.style.setProperty(f,d[f])};
Yk5=function(K,d){return(K=window.getComputedStyle(K).getPropertyValue(d))?K.trim():""};
EBX=function(K){requestAnimationFrame(function(){ti5?ti5(K):(oBz||(oBz=new Promise(function(d){$TS=d}),document.readyState==="complete"?$TS():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&$TS()})),oBz.then(function(){K&&K()}))})};
mTX=function(K){hyN=K&&K.shimcssproperties?!1:bt5||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
TPp=function(K){if(!(lSN.indexOf(K)>-1)&&K!=="touchend"&&WRo&&G15&&AvO)return{passive:!0}};
jYn=function(K){for(var d=rvX?["click"]:lSN,f=0,H;f<d.length;f++)H=d[f],K?(qkz.length=0,document.addEventListener(H,QYG,!0)):document.removeEventListener(H,QYG,!0)};
ve=function(K){var d=K.type;return lSN.indexOf(d)>-1?d==="mousemove"?(d=K.buttons===void 0?1:K.buttons,K instanceof window.MouseEvent&&!CXX&&(d=xTz[K.which]||0),!!(d&1)):(K.button===void 0?0:K.button)===0:!1};
LRz=function(K){if(K.type==="click"){if(K.detail===0)return!0;var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K);if(!d.nodeType||d.nodeType!==Node.ELEMENT_NODE)return!0;d=d.getBoundingClientRect();var f=K.pageX;K=K.pageY;return!(f>=d.left&&f<=d.right&&K>=d.top&&K<=d.bottom)}return!1};
BP5=function(K,d,f){K.movefn=d;K.upfn=f;document.addEventListener("mousemove",d);document.addEventListener("mouseup",f)};
M5=function(K){document.removeEventListener("mousemove",K.movefn);document.removeEventListener("mouseup",K.upfn);K.movefn=null;K.upfn=null};
Jvu=function(K,d){for(var f=document.elementFromPoint(K,d),H=f;H&&H.shadowRoot&&!window.ShadyDOM;){var D=H;H=H.shadowRoot.elementFromPoint(K,d);if(D===H)break;H&&(f=H)}return f};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K){var d=sYp(K);return d.length>0?d[0]:K.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K){var d=K.type,f=K.currentTarget.__polymerGestures;if(f&&(f=f[d])){if(!K.__polymerGesturesHandled&&(K.__polymerGesturesHandled={},d.slice(0,5)==="touch")){var H=K.changedTouches[0];d==="touchstart"&&K.touches.length===1&&(k1N=H.identifier);if(k1N!==H.identifier)return;WRo||(d==="touchstart"||d==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K)}H=
K.__polymerGesturesHandled;if(!H.skip){for(var D=0,S;D<Pe.length;D++)S=Pe[D],f[S.name]&&!H[S.name]&&S.flow&&S.flow.start.indexOf(K.type)>-1&&S.reset&&S.reset();for(D=0;D<Pe.length;D++)S=Pe[D],f[S.name]&&!H[S.name]&&(H[S.name]=!0,S[d](K))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K){var d=K.changedTouches[0],f=K.type;if(f==="touchstart")w9O=d.clientX,Ztu=d.clientY,eyO=!1;else if(f==="touchmove"&&!eyO){eyO=!0;f="auto";for(var H=sYp(K),D=0,S;D<H.length;D++)if(S=H[D],S.__polymerGesturesTouchAction){f=S.__polymerGesturesTouchAction;break}H=!1;D=Math.abs(w9O-d.clientX);d=Math.abs(Ztu-d.clientY);K.cancelable&&(f==="none"?H=!0:f==="pan-x"?H=d>D:f==="pan-y"&&(H=D>d));H?K.preventDefault():
gX("track")}};
N5=function(K,d,f){return OS[d]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K,d,f),!0):!1};
Y$=function(K,d,f){return OS[d]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K,d,f),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K,d,f){var H=OS[d],D=H.deps,S=H.name,n=K.__polymerGestures;n||(K.__polymerGestures=n={});for(var u=0,a,R;u<D.length;u++)a=D[u],rvX&&lSN.indexOf(a)>-1&&a!=="click"||((R=n[a])||(n[a]=R={_count:0}),R._count===0&&K.addEventListener(a,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,TPp(a)),R[S]=(R[S]||0)+1,R._count=(R._count||0)+1);K.addEventListener(d,f);H.touchAction&&_.td(K,H.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K,d,f){var H=OS[d],D=H.deps;H=H.name;var S=K.__polymerGestures;if(S)for(var n=0,u,a;n<D.length;n++)u=D[n],(a=S[u])&&a[H]&&(a[H]=(a[H]||1)-1,a._count=(a._count||1)-1,a._count===0&&K.removeEventListener(u,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,TPp(u)));K.removeEventListener(d,f)};
p9o=function(K){Pe.push(K);for(var d=0;d<K.emits.length;d++)OS[K.emits[d]]=K};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K){for(var d=0,f;d<Pe.length;d++){f=Pe[d];for(var H=0,D;H<f.emits.length;H++)if(D=f.emits[H],D===K)return f}return null};
_.td=function(K,d){WRo&&K instanceof HTMLElement&&o4.run(function(){K.style.touchAction=d});
K.__polymerGesturesTouchAction=d};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K,d,f){d=new Event(d,{bubbles:!0,cancelable:!0,composed:!0});d.detail=f;(0,_.a4)(K).dispatchEvent(d);d.defaultPrevented&&(K=f.preventer||f.sourceEvent)&&K.preventDefault&&K.preventDefault()};
gX=function(K){K=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K);K.info&&(K.info.prevent=!0)};
$$=function(K,d,f,H){d&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d,K,{x:f.clientX,y:f.clientY,sourceEvent:f,preventer:H,prevent:function(D){return gX(D)}})};
KfG=function(K,d,f){if(K.prevent)return!1;if(K.started)return!0;f=Math.abs(K.y-f);return Math.abs(K.x-d)>=5||f>=5};
djz=function(K,d,f){if(d){var H=K.moves[K.moves.length-2],D=K.moves[K.moves.length-1],S=D.x-K.x,n=D.y-K.y,u=0;if(H){var a=D.x-H.x;u=D.y-H.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d,"track",{state:K.state,x:f.clientX,y:f.clientY,dx:S,dy:n,ddx:a,ddy:u,sourceEvent:f,hover:function(){return Jvu(f.clientX,f.clientY)}})}};
HYo=function(K,d,f){var H=Math.abs(d.clientX-K.x),D=Math.abs(d.clientY-K.y),S=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f||d);!S||flO[S.localName]&&S.hasAttribute("disabled")||!(isNaN(H)||isNaN(D)||H<=25&&D<=25||LRz(d))||K.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S,"tap",{x:d.clientX,y:d.clientY,sourceEvent:d,preventer:f})};
Djz=function(K,d,f,H,D){var S;D&&(S=typeof f==="object"&&f!==null)&&(H=K.__dataTemp[d]);H=H!==f&&(H===H||f===f);S&&H&&(K.__dataTemp[d]=f);return H};
S8J=function(){if(ES&&!hd){if(!VdB){VdB=!0;var K=document.createElement("style");K.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(K)}return!0}return!1};
n6X=function(){return ybY};
iYu=function(K,d){ybY=K;Object.setPrototypeOf(K,d.prototype);new d;ybY=null};
cbu=function(K,d){for(var f=0;f<d.length;f++){var H=d[f];if(!!K!=!!H.__hideTemplateChildren__)if(H.nodeType===Node.TEXT_NODE)K?(H.__polymerTextContent__=H.textContent,H.textContent=""):H.textContent=H.__polymerTextContent__;else if(H.localName==="slot")if(K)H.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.a4)((0,_.a4)(H).parentNode).replaceChild(H.__polymerReplaced__,H);else{var D=H.__polymerReplaced__;D&&(0,_.a4)((0,_.a4)(D).parentNode).replaceChild(H,D)}else H.style&&(K?(H.__polymerDisplay__=
H.style.display,H.style.display="none"):H.style.display=H.__polymerDisplay__);H.__hideTemplateChildren__=K;H._showHideChildren&&H._showHideChildren(K)}};
urO=function(K){return(K=K.__dataHost)&&K._methodHost||K};
UjY=function(K,d,f){var H=f.mutableData?alo:bT;mk.mixin&&(H=mk.mixin(H));var D=function(){return H.apply(this,arguments)||this};
_.O(D,H);D.prototype.__templatizeOptions=f;D.prototype._bindTemplate(K);IlO(D,K,d,f);return D};
v65=function(K,d,f,H){var D=f.forwardHostProp;if(D&&d.hasHostProps){var S=K.localName=="template",n=d.templatizeTemplateClass;if(!n){if(S){var u=f.mutableData?RRz:FfX;n=function(){return u.apply(this,arguments)||this};
_.O(n,u);n=d.templatizeTemplateClass=n}else{var a=K.constructor;n=function(){return a.apply(this,arguments)||this};
_.O(n,a);n=d.templatizeTemplateClass=n}var R=d.hostProps,F;for(F in R)n.prototype._addPropertyEffect("_host_"+F,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:zRz(D)}),n.prototype._createNotifyingProperty("_host_"+F);lT&&H&&X$z(d,f,H)}K.__dataProto&&Object.assign(K.__data,K.__dataProto);if(S)iYu(K,n),K.__dataTemp={},K.__dataPending=null,K.__dataOld=null,K._enableProperties();else{Object.setPrototypeOf(K,n.prototype);d=d.hostProps;for(var z in d)z="_host_"+z,z in K&&(d=K[z],delete K[z],K.__data[z]=
d)}}};
zRz=function(K){return function(d,f,H){K.call(d.__templatizeOwner,f.substring(6),H[f])}};
IlO=function(K,d,f,H){var D=f.hostProps||{},S;for(S in H.instanceProps){delete D[S];var n=H.notifyInstanceProp;n&&K.prototype._addPropertyEffect(S,K.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:MdO(n)})}if(H.forwardHostProp&&d.__dataHost)for(var u in D)f.hasHostProps||(f.hasHostProps=!0),K.prototype._addPropertyEffect(u,K.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Pcz()})};
MdO=function(K){return function(d,f,H){K.call(d.__templatizeOwner,d,f,H[f])}};
Pcz=function(){return function(K,d,f){K.__dataHost._setPendingPropertyOrPath("_host_"+d,f[d],!0,!0)}};
mk=function(K,d,f){if(We&&!urO(K))throw Error("Hd");f=f||{};if(K.__templatizeOwner)throw Error("Id");K.__templatizeOwner=d;var H=(d?d.constructor:bT)._parseTemplate(K),D=H.templatizeInstanceClass;D||(D=UjY(K,H,f),H.templatizeInstanceClass=D);var S=urO(K);v65(K,H,f,S);f=function(){return D.apply(this,arguments)||this};
_.O(f,D);f.prototype._methodHost=S;f.prototype.__dataHost=K;f.prototype.__templatizeOwner=d;f.prototype.__hostProps=H.hostProps;return f};
X$z=function(K,d,f){f=f.constructor._properties;K=K.propertyEffects;d=d.instanceProps;for(var H in K)if(!(f[H]||d&&d[H]))for(var D=K[H],S=0;S<D.length;S++){var n=D[S].info.part;if(!n.signature||!n.signature.static){console.warn("Property '"+H+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
g6p=function(K,d){for(var f;d;)if(f=d.__dataHost?d:d.__templatizeInstance)if(f.__dataHost!=K)d=f.__dataHost;else return f;else d=(0,_.a4)(d).parentNode;return null};
GF=function(K){return K.localName==="slot"};
OYO=function(){for(var K=Ad.prototype,d="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),f={},H=0;H<d.length;f={method$jscomp$30:void 0},H++)f.method$jscomp$30=d[H],K[f.method$jscomp$30]=function(D){return function(){return this.node[D.method$jscomp$30].apply(this.node,arguments)}}(f)};
N3X=function(K,d){for(var f={},H=0;H<d.length;f={name$jscomp$379:void 0},H++)f.name$jscomp$379=d[H],Object.defineProperty(K,f.name$jscomp$379,{get:function(D){return function(){return this.node[D.name$jscomp$379]}}(f),
configurable:!0})};
Y8z=function(){for(var K=Ad.prototype,d=["textContent","innerHTML","className"],f={},H=0;H<d.length;f={name$jscomp$380:void 0},H++)f.name$jscomp$380=d[H],Object.defineProperty(K,f.name$jscomp$380,{get:function(D){return function(){return this.node[D.name$jscomp$380]}}(f),
set:function(D){return function(S){this.node[D.name$jscomp$380]=S}}(f),
configurable:!0})};
tdO=function(){TF=document.documentElement.getAttribute("dir");TF=document.documentElement.getAttribute("dir");for(var K=0;K<rX.length;K++){var d=rX[K];d.__autoDirOptOut||d.setAttribute("dir",TF)}};
hRO=function(){q5=!0;requestAnimationFrame(function(){q5=!1;o6Y($ju);setTimeout(function(){for(var K=0,d=QQ.length;K<d;K++)E6N(QQ.shift())})})};
o6Y=function(K){for(;K.length;)E6N(K.shift())};
E6N=function(K){var d=K[0],f=K[1];K=K[2];try{f.apply(d,K)}catch(H){setTimeout(function(){throw H;})}};
_.bYz=function(K,d,f){q5||hRO();$ju.push([K,d,f])};
_.jW=function(K,d,f){q5||hRO();QQ.push([K,d,f])};
Wf5=function(K,d){d=d===void 0?!1:d;if(!mjB||!llz||!mjB.handlesDynamicScoping)return null;var f=llz.ScopingShim;if(!f)return null;var H=f.scopeForNode(K),D=(0,_.a4)(K).getRootNode(),S=function(n){if((0,_.a4)(n).getRootNode()===D){var u=Array.from(mjB.nativeMethods.querySelectorAll.call(n,"*"));u.push(n);for(n=0;n<u.length;n++){var a=u[n];if((0,_.a4)(a).getRootNode()===D){var R=f.currentScopeForNode(a);R!==H&&(R!==""&&f.unscopeNode(a,R),f.scopeNode(a,H))}}}};
S(K);return d?(d=new MutationObserver(function(n){for(var u=0;u<n.length;u++)for(var a=n[u],R=0;R<a.addedNodes.length;R++){var F=a.addedNodes[R];F.nodeType===Node.ELEMENT_NODE&&S(F)}}),d.observe(K,{childList:!0,
subtree:!0}),d):null};
GDS=function(){document.body.removeAttribute("unresolved")};
Q9S=function(K){var d=K=K.replace(Ab5,"").replace(T3X,""),f=new rbJ;f.start=0;f.end=d.length;for(var H=f,D=0,S=d.length;D<S;D++)if(d[D]==="{"){H.rules||(H.rules=[]);var n=H,u=n.rules[n.rules.length-1]||null;H=new rbJ;H.start=D+1;H.parent=n;H.previous=u;n.rules.push(H)}else d[D]==="}"&&(H.end=D+1,H=H.parent||f);return q8X(f,K)};
q8X=function(K,d){var f=d.substring(K.start,K.end-1);K.parsedCssText=K.cssText=f.trim();K.parent&&(f=d.substring(K.previous?K.previous.end:K.parent.start,K.start-1),f=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(f),f=f.replace(j9X," "),f=f.substring(f.lastIndexOf(";")+1),f=K.parsedSelector=K.selector=f.trim(),K.atRule=f.indexOf("@")===0,K.atRule?f.indexOf("@media")===0?K.type=4:f.match(CcX)&&(K.type=7,K.keyframesName=K.selector.split(j9X).pop()):f.indexOf("--")===
0?K.type=1E3:K.type=1);if(f=K.rules)for(var H=0,D=f.length,S=void 0;H<D&&(S=f[H]);H++)q8X(S,d);return K};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(K){return K.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var d=arguments[1],f=6-d.length;f--;)d="0"+d;return"\\"+d})};
xjO=function(K,d,f){f=f===void 0?"":f;var H="";if(K.cssText||K.rules){var D=K.rules;if(D&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(D))for(var S=0,n=D.length,u=void 0;S<n&&(u=D[S]);S++)H=xjO(u,d,H);else d?d=K.cssText:(d=K.cssText,d=d.replace(Lfo,"").replace(B3o,""),d=d.replace(Jbo,"").replace(s9X,"")),(H=d.trim())&&(H="  "+H+"\n")}H&&(K.selector&&(f+=K.selector+" {\n"),f+=H,K.selector&&(f+="}\n\n"));return f};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(K){K=K[0];return!!K&&!!K.selector&&K.selector.indexOf("--")===0};
w$S=function(K){if(K=kDJ[K])K._applyShimCurrentVersion=K._applyShimCurrentVersion||0,K._applyShimValidatingVersion=K._applyShimValidatingVersion||0,K._applyShimNextVersion=(K._applyShimNextVersion||0)+1};
ZYX=function(K){return K._applyShimCurrentVersion===K._applyShimNextVersion};
p$p=function(K){K._applyShimValidatingVersion=K._applyShimNextVersion;K._validating||(K._validating=!0,eRu.then(function(){K._applyShimCurrentVersion=K._applyShimNextVersion;K._validating=!1}))};
dvJ=function(K){if(!K)return"";typeof K==="string"&&(K=Q9S(K));return xjO(K,K4N)};
ffp=function(K){!K.__cssRules&&K.textContent&&(K.__cssRules=Q9S(K.textContent));return K.__cssRules||null};
DvN=function(K,d,f,H){if(K){var D=!1,S=K.type;if(H&&S===4){var n=K.selector.match(HsX);n&&(window.matchMedia(n[1]).matches||(D=!0))}S===1?d(K):f&&S===7?f(K):S===1E3&&(D=!0);if((K=K.rules)&&!D)for(D=0,S=K.length,n=void 0;D<S&&(n=K[D]);D++)DvN(n,d,f,H)}};
VHo=function(K,d){var f=K.indexOf("var(");if(f===-1)return d(K,"","","");a:{var H=0;var D=f+3;for(var S=K.length;D<S;D++)if(K[D]==="(")H++;else if(K[D]===")"&&--H===0)break a;D=-1}H=K.substring(f+4,D);f=K.substring(0,f);K=VHo(K.substring(D+1),d);S=H.indexOf(",");if(S===-1)return d(f,H.trim(),"",K);D=H.substring(0,S).trim();H=H.substring(S+1).trim();return d(f,D,H,K)};
SaG=function(K){if(C3!==void 0)return C3;if(K.__cssBuild===void 0){var d=K.getAttribute("css-build");if(d)K.__cssBuild=d;else{a:{d=K.localName==="template"?K.content.firstChild:K.firstChild;if(d instanceof Comment&&(d=d.textContent.trim().split(":"),d[0]==="css-build")){d=d[1];break a}d=""}if(d!==""){var f=K.localName==="template"?K.content.firstChild:K.firstChild;f.parentNode.removeChild(f)}K.__cssBuild=d}}return K.__cssBuild||""};
nbo=function(K,d,f,H){for(var D=d._noAccessors,S=Object.getOwnPropertyNames(d),n=0;n<S.length;n++){var u=S[n];if(!(u in H))if(D)K[u]=d[u];else{var a=Object.getOwnPropertyDescriptor(d,u);a&&(a.configurable=!0,Object.defineProperty(K,u,a))}}for(var R in ymJ)d[R]&&(f[R]=f[R]||[],f[R].push(d[R]))};
isu=function(K,d,f){d=d||[];for(var H=K.length-1;H>=0;H--){var D=K[H];D?Array.isArray(D)?isu(D,d):d.indexOf(D)<0&&(!f||f.indexOf(D)<0)&&d.unshift(D):console.warn("behavior is null, check for missing or 404 import")}return d};
cmS=function(K,d){for(var f in d){var H=K[f],D=d[f];K[f]=!("value"in D)&&H&&"value"in H?Object.assign({value:H.value},D):D}};
Ifp=function(K,d,f){var H={},D=function(){return d.apply(this,arguments)||this};
_.O(D,d);D._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(n)for(var a=0,R;a<n.length;a++)R=n[a],R.properties&&this.createProperties(R.properties),R.observers&&this.createObservers(R.observers,R.properties);K.properties&&this.createProperties(K.properties);K.observers&&this.createObservers(K.observers,K.properties);this._prepareTemplate()}else d._finalizeClass.call(this)};
D.prototype.created=function(){d.prototype.created.call(this);var a=H.created;if(a)for(var R=0;R<a.length;R++)a[R].call(this)};
D.prototype._registered=function(){var a=D.prototype;if(!a.hasOwnProperty("__hasRegisterFinished")){a.__hasRegisterFinished=!0;d.prototype._registered.call(this);ES&&u(a);a=Object.getPrototypeOf(this);var R=H.beforeRegister;if(R)for(var F=0;F<R.length;F++)R[F].call(a);if(R=H.registered)for(F=0;F<R.length;F++)R[F].call(a)}};
D.prototype._applyListeners=function(){d.prototype._applyListeners.call(this);var a=H.listeners;if(a)for(var R=0;R<a.length;R++){var F=a[R];if(F)for(var z in F)this._addMethodEventListenerToNode(this,z,F[z])}};
D.prototype._ensureAttributes=function(){var a=H.hostAttributes;if(a)for(var R=a.length-1;R>=0;R--){var F=a[R],z;for(z in F)this._ensureAttribute(z,F[z])}d.prototype._ensureAttributes.call(this)};
D.prototype.ready=function(){d.prototype.ready.call(this);var a=H.ready;if(a)for(var R=0;R<a.length;R++)a[R].call(this)};
D.prototype.attached=function(){d.prototype.attached.call(this);var a=H.attached;if(a)for(var R=0;R<a.length;R++)a[R].call(this)};
D.prototype.detached=function(){d.prototype.detached.call(this);var a=H.detached;if(a)for(var R=0;R<a.length;R++)a[R].call(this)};
D.prototype.attributeChanged=function(a,R,F){d.prototype.attributeChanged.call(this);var z=H.attributeChanged;if(z)for(var v=0;v<z.length;v++)z[v].call(this,a,R,F)};
_.x$.Object.defineProperties(D,{properties:{configurable:!0,enumerable:!0,get:function(){var a={};if(n)for(var R=0;R<n.length;R++)cmS(a,n[R].properties);cmS(a,K.properties);return a}},
observers:{configurable:!0,enumerable:!0,get:function(){var a=[];if(n)for(var R=0,F;R<n.length;R++)F=n[R],F.observers&&(a=a.concat(F.observers));K.observers&&(a=a.concat(K.observers));return a}}});
if(f){Array.isArray(f)||(f=[f]);var S=d.prototype.behaviors;var n=isu(f,null,S);D.prototype.behaviors=S?S.concat(f):n}var u=function(a){if(n)for(var R=n,F=0;F<R.length;F++)nbo(a,R[F],H,umB);nbo(a,K,H,afB)};
ES||u(D.prototype);D.generatedFrom=K;return D};
zCY=function(K){var d=typeof K!=="string"?K:{is:K,notifyObserversOnUndefined:!0};d.fastInit===void 0&&(d.fastInit=!0);return function(f){if(!d.disableInheritanceCheck&&Object.getPrototypeOf(f.prototype).constructor!==_.L3)throw Error("Md");var H=f.prototype;H.is=d.is;PhO(H,"created",function(){this.hostElement=this;this.polymerController=this});
Uvz(H,f,d.fastInit);d.notifyObserversOnUndefined&&(H._overrideLegacyUndefined=!0);if(RCp)for(var D=_.y(Object.getOwnPropertyNames(H)),S=D.next();!S.done;S=D.next()){S=S.value;var n=Object.getOwnPropertyDescriptor(H,S);n.enumerable===!1&&(n.enumerable=!0,Object.defineProperty(H,S,n))}if("template"in f)var u=function(){return f.template};
else d.template!==void 0&&(u=d.template);if(u!==void 0){var a;Object.defineProperty(H,"_template",{get:function(){a===void 0&&(a=u());return a},
set:function(R){a=R},
configurable:!0,enumerable:!0})}Polymer(H);f[F4S]=H}};
Xdz=function(K){K=K===void 0?{}:K;K.fastInit===void 0&&(K.fastInit=!0);return function(d){if(!K.disableInheritanceCheck&&Object.getPrototypeOf(d.prototype).constructor!==Be)throw Error("Nd");Uvz(d.prototype,d,K.fastInit)}};
Uvz=function(K,d,f){f=f===void 0?!1:f;vbN(d);f?PhO(K,"created",function(){this.disableEnforceFastDefaultValuesCheck||MHu(d,this)}):PhO(K,"ready",function(){for(var H={},D=_.y(gPo(this.behaviors)),S=D.next();!S.done;S=D.next())S=S.value,S.properties&&Object.assign(H,Pfz(this,S.properties));
Object.assign(H,Pfz(this,this.properties));MHu(d,this);D=_.y(Object.keys(H));for(S=D.next();!S.done;S=D.next())S=S.value,this[S]=H[S]})};
MHu=function(K,d){if(RCp){K=new K;for(var f=_.y(Object.getOwnPropertyNames(K)),H=f.next();!H.done;H=f.next())H=H.value,d[H]=K[H];for(f=d;f&&f!==Object.prototype;f=Object.getPrototypeOf(f)){H=_.y(Object.getOwnPropertyNames(f));for(var D=H.next();!D.done;D=H.next())D=D.value,K.hasOwnProperty(D)||Object.defineProperty(K,D,gbp(d,D))}}else K.apply(d)};
gbp=function(K,d){return{get:function(){var f=K[d];return f instanceof Function?f.bind(K):f},
set:function(f){K[d]=f}}};
Pfz=function(K,d){if(!d)return{};for(var f={},H=_.y(Object.keys(d)),D=H.next();!D.done;D=H.next())if(D=D.value,!d[D].readOnly){var S=K[D];S!==void 0&&(f[D]=S)}return f};
vbN=function(K){var d=new K;K=K.prototype.properties||{};for(var f=_.y(Object.keys(K)),H=f.next();!H.done;H=f.next())if(H=H.value,d.hasOwnProperty(H)){var D=K[H];typeof D==="function"&&(K[H]=D={type:D});d[H]!=null&&D.type===Object&&(D.type=OsN(d[H].constructor))}};
OsN=function(K){for(var d=_.y(N75),f=d.next();!f.done;f=d.next())if(f=f.value,K===f)return f;return Object};
Yap=function(K){return function(d,f){d.behaviors=d.behaviors||[];d.behaviors.push(K||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",d,f).prototype:void 0));Object.defineProperty(d,f,{get:function(){return this},
enumerable:!0,configurable:!0})}};
tHX=function(K){K=K===void 0?{}:K;return function(d,f){d.properties=d.properties||{};K.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?K.type=OsN(Reflect.getMetadata("design:type",d,f)):K.type=String);var H=K,D=d.properties[f];d.properties[f]=D?Object.assign({},D,H):H}};
obo=function(K){return function(d,f){d.listeners=d.listeners||{};d.listeners[K]=f}};
$vn=function(){var K=_.Pg.apply(0,arguments);if(K.length===0)throw Error("Od");return function(d,f){d.observers=d.observers||[];d.observers.push(f+"("+K.join(",")+")")}};
Ebz=function(){var K=_.Pg.apply(0,arguments);return function(d,f,H){var D=Object.getOwnPropertyDescriptor(d,f).get,S="__compute__"+f;Object.defineProperty(d,S,{value:D,enumerable:!0});d.properties=d.properties||{};D=d.properties[f];D||(D={},d.properties[f]=D);D.computed=S+"("+K.join(",")+")";H.get=void 0}};
_.Jd=function(K,d,f){_.gG.call(this);this.JSC$9215_id_=null;this.usingListeners_=!1;this.JSC$9215_listener_=K;this.handler_=f;this.JSC$9215_win_=d||window;this.callback_=(0,_.Om)(this.JSC$9217_doAction_,this)};
sS=function(K){this.range_=K};
k$=function(K){this.range_=K};
eW=function(K,d,f){_.gG.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=K;this.scrollTimer_=new _.wX(50);this.JSC$9294_eventHandler_=new _.Zt(this);this.scrollDelta_=new _.Nm;this.containerIsActuallyContent_=K.tagName==="BODY"||K.tagName==="HTML";this.containerBounds_=hCo(K);this.containerIsActuallyContent_&&(K=_.iW(),this.containerBounds_.height=K.height,this.containerBounds_.width=K.width);this.margin_=d||0;if(d){if(d=this.containerBounds_.clone(),K=this.margin_){var H=
Math.min(K,d.height*.25);d.top+=H;d.height-=2*H;K=Math.min(K,d.width*.25);d.left+=K;d.width-=2*K}}else d=this.containerBounds_;this.scrollBounds_=d;f||this.JSC$9294_eventHandler_.listen(_.oL(this.containerNode_),"mousemove",this.JSC$9296_onMouseMove);this.JSC$9294_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9296_onTick_)};
_.p3=function(K){this.mechanism=K};
K1=function(K,d){this.JSC$9392_key_=K;this.JSC$9392_value_=d};
mvO=function(K){if(K>=55296&&K<=57343||K>1114111)return"\ufffd";K in bsB&&(K=bsB[K]);var d="";K>65535&&(K-=65536,d+=String.fromCharCode(K>>>10&1023|55296),K=56320|K&1023);return d+=String.fromCharCode(K)};
lfz=function(K,d){return K<d?1:-1};
G$O=function(){return function(K){return K.charAt(1)==="#"?K.charAt(2)==="X"||K.charAt(2)==="x"?mvO(parseInt(K.substr(3),16)):mvO(parseInt(K.substr(2),10)):W4p[K.slice(1,-1)]}};
rmG=function(K){return K.slice(1,K.length-1).trim().replace(AmB,function(d){return T7S[d]||" "})};
dL=function(K){return K===32||K===9};
f1=function(K,d){return d<K.length?K.charCodeAt(d):-1};
qap=function(K){for(;K;){if(K._lastLineBlank)return!0;var d=K.type;if(d==="list"||d==="item")K=K._lastChild;else break}return!1};
H0=function(K){if(Q1Y.test(K)){var d=1,f=0,H=0;for(K[f]=="|"&&f++;f<K.length;){switch(K[f]){case "|":H=1;break;case " ":break;case "\t":break;default:H&&(H=0,d++)}f++}return j1N.test(K)?-d:d}return 0};
Cfn=function(K){return K=="table"||K=="row"||K=="cell"};
xvp=function(){return new Dp("document",[[1,1],[0,0]])};
L4u=function(){};
V8=function(){var K={safe:!1};K=K||{};K.softbreak=K.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=K};
wdn=function(K,d){var f="";if(K)if(K=K.toLowerCase(),K===" "||B7S.test(K))f="space";else if(Jmo.test(K))f="esc";else if(K.length==1){if(!d||s1z.test(K))f=K}else f=k$S.test(K)?K.replace("arrow",""):K=="multiply"?"*":K;return f};
KQz=function(K,d){var f=K.hasModifiers;if(d.key)f=wdn(d.key,f);else if(d.detail&&d.detail.key)f=wdn(d.detail.key,f);else{f=d.keyIdentifier;var H="";f&&(f in Zsz?H=Zsz[f]:eCp.test(f)?(f=parseInt(f.replace("U+","0x"),16),H=String.fromCharCode(f).toLowerCase()):H=f.toLowerCase());(f=H)||(f=d.keyCode,H="",Number(f)&&(f>=65&&f<=90?H=String.fromCharCode(32+f):f>=112&&f<=123?H="f"+(f-112+1):f>=48&&f<=57?H=String(f-48):f>=96&&f<=105?H=String(f-96):H=pdY[f]),f=H);f=f||""}return f===K.key&&(!K.hasModifiers||
!!d.shiftKey===!!K.shiftKey&&!!d.ctrlKey===!!K.ctrlKey&&!!d.altKey===!!K.altKey&&!!d.metaKey===!!K.metaKey)};
fbY=function(K){return K.length===1?{combo:K,key:K,event:"keydown"}:K.split("+").reduce(function(d,f){var H=f.split(":");f=H[0];H=H[1];f in dip?(d[dip[f]]=!0,d.hasModifiers=!0):(d.key=f,d.event=H||"keydown");return d},{combo:K.split(":").shift()})};
HOz=function(K){return K.trim().split(" ").map(function(d){return fbY(d)})};
Dio=function(K,d){if(K&&K.fn){var f=K.fn;K.fn=function(){try{f.apply(this,arguments)}catch(H){if(H instanceof Sv)console.warn("Argument '"+H.arg+"'"+(d?" for method '"+d+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw H;}}}return K};
VRO=function(){var K=_.Pg.apply(0,arguments);return K.length===0?function(d){return d}:K.length===1?K[0]:K.reduce(function(d,f){return function(){return d(f.apply(null,_.Me(_.Pg.apply(0,arguments))))}})};
S3n=function(){var K=_.Pg.apply(0,arguments);return function(d){return function(f,H){f=d(f,H);var D=function(){throw Error("ye");},S={getState:f.getState,
dispatch:function(n){return D.apply(null,[n].concat(_.Me(_.Pg.apply(1,arguments))))}};
H=K.map(function(n){return n(S)});
D=VRO.apply(null,_.Me(H))(f.dispatch);return Object.assign({},f,{dispatch:D})}}};
iOn=function(K){Object.keys(K).forEach(function(d){var f=K[d];if(typeof f(void 0,{type:yIz})==="undefined")throw Error("ze`"+d);if(typeof f(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+n2Y()})==="undefined")throw Error("Ae`"+d+"`"+yIz);})};
y8=function(K){for(var d=Object.keys(K),f={},H=0;H<d.length;H++){var D=d[H];typeof K[D]==="function"&&(f[D]=K[D])}var S=Object.keys(f);try{iOn(f)}catch(u){var n=u}return function(u,a){u=u===void 0?{}:u;if(n)throw n;for(var R=!1,F={},z=0;z<S.length;z++){var v=S[z],g=u[v],N=(0,f[v])(g,a);if(typeof N==="undefined")throw u=a&&a.type,Error("Be`"+(u?'"'+String(u)+'"':"(unknown type)")+"`"+v);F[v]=N;R=R||N!==g}return(R=R||S.length!==Object.keys(u).length)?F:u}};
cIO=function(K,d,f){function H(){if(F)throw Error("Ce");return u}
function D(g){if(typeof g!=="function")throw Error("De`"+typeof g);if(F)throw Error("Ee");var N=!0;R===a&&(R=a.slice());R.push(g);return function(){if(N){if(F)throw Error("Fe");N=!1;R===a&&(R=a.slice());var h=R.indexOf(g);R.splice(h,1);a=null}}}
function S(g){if(typeof g!=="object"||g===null)var N=!1;else{for(N=g;Object.getPrototypeOf(N)!==null;)N=Object.getPrototypeOf(N);N=Object.getPrototypeOf(g)===N}if(!N)throw Error("Ge`"+typeof g);if(typeof g.type==="undefined")throw Error("He");if(F)throw Error("Ie");try{F=!0,u=n(u,g)}finally{F=!1}N=a=R;for(var h=0;h<N.length;h++)(0,N[h])();return g}
if(typeof d==="function"&&typeof f==="function"||typeof f==="function"&&typeof arguments[3]==="function")throw Error("Je");typeof d==="function"&&typeof f==="undefined"&&(f=d,d=void 0);if(typeof f!=="undefined"){if(typeof f!=="function")throw Error("Ke`"+typeof f);return f(cIO)(K,d)}if(typeof K!=="function")throw Error("Le`"+typeof K);var n=K,u=d,a=[],R=a,F=!1;S({type:yIz});var z={},v=(z.dispatch=S,z.subscribe=D,z.getState=H,z.replaceReducer=function(g){if(typeof g!=="function")throw Error("Me`"+
typeof g);n=g;S({type:uou});return v},z[ab5]=function(){var g={};
return g.subscribe=function(N){function h(){N.next&&N.next(H())}
if(typeof N!=="object"||N===null)throw new TypeError("Ne`"+typeof N);h();return{unsubscribe:D(h)}},g[ab5]=function(){return this},g},z);
return v};
IbB=function(K){function d(){D&&(D=!1,K());S&&H()}
function f(){requestAnimationFrame(d)}
function H(){var u=Date.now();if(D){if(u-n<2)return;S=!0}else D=!0,S=!1,setTimeout(f,20);n=u}
var D=!1,S=!1,n=0;return H};
n1=function(K){return typeof K==="number"?K:parseFloat(K)||0};
UiY=function(K){return _.Pg.apply(1,arguments).reduce(function(d,f){return d+n1(K["border-"+f+"-width"])},0)};
_.Y=function(K,d){d=oo(ta(d));K.innerHTML=d};
zHN=function(K){var d=RHN;d||(d=FQS(),d=RHN=_.PR.transpose(d));d=d[K];return typeof d==="string"?d:_.iw(K)};
XYX=function(K){K=String(K).toLowerCase();var d=FQS()[K];return typeof d==="string"?d:_.c0(K)};
v2X=function(K){K=K.toLowerCase();K=FQS()[K];return typeof K==="string"?K:null};
FQS=function(){if(!MRB){for(var K=Object.assign({},P1o),d=_.y(g2O),f=d.next();!f.done;f=d.next())f=f.value,K[f.toLowerCase()]=f;MRB=K}return MRB};
Y3X=function(K,d){var f=window.customElements;return f&&f.get(K)||OOB[K]===!0?2:d.name==="HTMLUnknownElement"?1:d.name==="HTMLElement"&&NcG.test(K)?3:0};
$io=function(K,d){switch(d){case "innerHTML":return tRS(K)===1?2:null;case "textContent":return K=tRS(K),K===1||K===6?1:null;default:var f,H;return(H=(f=o2O[K.localName])==null?void 0:f[d])!=null?H:null}};
tRS=function(K){var d=K.localName,f=Y3X(d,K.constructor);switch(f){case 0:case 1:return E2p(d,K);case 3:case 2:return 1;default:_.nE(f,"got an unknown element classification")}};
E2p=function(K,d){var f=Object.hasOwnProperty.call(hH5,K)?hH5[K]:null;return f!==null?f:Object.hasOwnProperty.call(bOX,K)&&d instanceof SVGElement?bOX[K]:null};
min=function(K,d){return d};
WQn=function(K){return(K=K.split(lb5,2))?{url:K[0],metadata:K[1]}:null};
AIG=function(K){var d=String(K.url).replace(G9Y,encodeURIComponent);if(K=K.metadata){G9Y.lastIndex=0;if(G9Y.test(K))return null;d+=" "+K}return d};
Q2N=function(K){function d(R){var F=R.localName;if(!R.getAttribute("is")&&Y3X(F,R.constructor)===2){var z;return(z=a)!=null?z:a=document.createElement("polyresinuncustomized")}(R=u[F])||(R=u[F]=document.createElement(F));return R}
var f=K.reportHandler||void 0,H=K.safeTypesBridge||TcN,D=/^$/;if(K=K.allowedIdentifierPrefixes){K=_.y(K);for(var S=K.next();!S.done;S=K.next())D=new RegExp(D.source+"|^"+_.rIn(S.value))}f&&f(!1,"initResin",null);var n=q3u(D,H,f),u={},a=null;return function(R,F,z){var v=R.nodeType;if(v!==Node.ELEMENT_NODE){if(v===Node.TEXT_NODE){F=R.parentElement;z=!F;if(F&&F.nodeType===Node.ELEMENT_NODE){v=F.localName;var g=Y3X(v,F.constructor);switch(g){case 0:case 1:F=E2p(v,F);z=F===1||F===6;break;case 3:case 2:z=
!0;break;default:_.nE(g,"got an unknown element classification")}}if(z)return function(T){return""+H(T,"STRING",T)}}return function(T){if(!T&&T!==document.all)return T;
f&&f(!0,"Failed to sanitize "+(R.parentElement&&R.parentElement.nodeName)+" #text node to value "+T,R.parentElement);return uw}}var N=R.localName;
v=d(R);var h=null;switch(z){case "attribute":if(XYX(F)in v)break;return function(T){return T};
case "property":if(F in v){h=$io(v,F);break}if((g=v2X(F))&&g in v)break;return function(T){return T};
default:_.nE(z,"got an unknown resin type, expected either 'property' or 'attribute'")}var m=z==="attribute"?F.toLowerCase():zHN(F);h||(h=ujo(N,m,function(T){var r=R.getAttribute(T);return!r||/[\[\{]/.test(T)?null:r}));
return function(T){var r=aw,J=null;if(!T&&T!==document.all)return T;if(h!=null){var L=n[h],fB=L.safeType;J=L.safeReplacement;fB&&(r=H(T,fB,aw));r===aw&&(L.filterString?(r=String(H(T,"STRING",T)),r=L.filterString(N,m,r)):L.filterRaw&&(r=L.filterRaw(N,m,T,R)),r===J&&(r=aw))}r===aw&&(r=J||uw,f&&f(!0,"Failed to sanitize attribute of <"+N+">: <"+N+" "+m+'="'+T+'">',R));return r}}};
q3u=function(K,d,f){return[,{filterRaw:function(H,D,S){return S},
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:j2u,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:j2u,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:uw,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:C1u,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(H,D,S){S=
String(S).toLowerCase();return UHG(H,D,S)?S:uw},
safeReplacement:uw,safeType:void 0},,{filterRaw:void 0,filterString:function(H,D,S){return K.test(S)?S:uw},
safeReplacement:uw,safeType:"CONSTANT"},{filterRaw:function(H,D,S,n){if(typeof S==="string")var u=(u=S.match(xiG))?u.map(WQn).filter(Boolean):[];else if(Array.isArray(S))u=S;else return j2u;var a=u;u=[];var R=[],F={};if(Array.isArray(a))for(var z=0,v=a.length;z<v;++z){var g=a[z],N=g&&g.url;if(N){var h=d(N,"URL",F);if(h){var m=h!==F;(m?u:R).push({url:m?h:N,metadata:g.metadata})}}}else R.push(a);a=R.length?JSON.stringify(R):null;R=aw;if(u.length){if(!Array.isArray(u))throw Error();R=u.map(AIG).filter(Boolean).join(" , ")||
aw}a&&f&&f(!0,"Failed to sanitize attribute value of <"+H+">: <"+H+" "+D+'="'+S+'">: '+a,n);return R===aw?j2u:R},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
LQz=function(K){var d=Q2N(K);return function(f,H,D,S){return S||S===document.all?d(f,H,D)(S):S}};
Iw=function(K,d){function f(){function D(u,a,R){for(a=Reflect.getMetadata("parameters",u)||[];a.length<=R;)a.push(null);a[R]=a[R]||[];a[R].push(n);Reflect.defineMetadata(a,u);return u}
var S=_.Pg.apply(0,arguments);if(this instanceof f)return H.apply(this,S),this;var n=new (Function.prototype.bind.apply(f,[null].concat(_.Me(S))));D.annotation=n;return D}
var H=Bcn(d);f.prototype.toString=function(){return"@"+K};
return f.annotationCls=f};
Bcn=function(K){return function(){var d=_.Pg.apply(0,arguments),f=this;K.forEach(function(H,D){D=d[D];if(Array.isArray(H))f[H[0]]=D&&D!==void 0?D:H[1];else for(var S in H)f[S]=D&&D[S]!==void 0?D[S]:H[S]})}};
JIS=function(K){return K!==void 0&&K!==null};
Rw=function(K){if(typeof K==="string")return K;if(K===void 0||K===null)return""+K;if(K.overriddenName)return K.overriddenName;if(K.name)return K.name;K=K.toString();var d=K.indexOf("\n");return d===-1?K:K.substring(0,d)};
s2Y=function(K){K.__forward_ref__=s2Y;K.toString=function(){return Rw(this())};
return K};
Fd=function(K){return typeof K==="function"&&K.hasOwnProperty("__forward_ref__")&&K.__forward_ref__===s2Y?K():K};
k9N=function(K){return K?K.map(function(d){return new (Function.prototype.bind.apply(d.type.annotationCls,[null].concat(_.Me(d.args?d.args:[]))))}):[]};
wYu=function(K){for(var d=[],f=0;f<K.length;++f){if(d.indexOf(K[f])>-1){d.push(K[f]);break}d.push(K[f])}return d};
ZOn=function(K){return K.length>1?" ("+wYu(K.slice().reverse()).map(function(d){return Rw(d.token)}).join(" -> ")+")":""};
pYu=function(K,d,f,H){if(H){var D=Error("Ue``"+(H instanceof Error?H.message:H));D.ngOriginalError=H}else D=Error();D.addKey=eHX;D.keys=[d];D.injectors=[K];D.constructResolvingMessage=f;D.message=D.constructResolvingMessage();D.ngOriginalError=H;return D};
eHX=function(K,d){this.injectors.push(K);this.keys.push(d);this.message=this.constructResolvingMessage()};
K9z=function(K,d){return pYu(K,d,function(){return"No provider for "+Rw(this.keys[0].token)+"!"+ZOn(this.keys)})};
dOO=function(K,d){return pYu(K,d,function(){return"Cannot instantiate cyclic dependency!"+ZOn(this.keys)})};
fhu=function(K,d,f){return pYu(K,f,function(){var H=Rw(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+H+"!"+ZOn(this.keys)+"."},d)};
Hgu=function(K,d){for(var f=[],H=0,D=d.length;H<D;H++){var S=d[H];S&&S.length!=0?f.push(S.map(Rw).join(" ")):f.push("?")}return Error("Ye`"+Rw(K)+"`"+f.join(", ")+"`"+Rw(K))};
cBJ=function(K){var d=void 0,f=void 0;if(K&&K.useClass!==void 0){d=K.useClass;var H=Fd(K.useClass);var D=DOJ.factory(H);H=VOz(H)}else K&&K.useExisting!==void 0?(D=function(S){return S},H=[SGn(zw.get(Fd(K.useExisting)))]):K&&K.useFactory!==void 0?(D=K.useFactory,H=yBO(K.useFactory,K.deps)):(f=K.useValue,D=function(){return K.useValue},H=nWz);
return new igB(D,H,d,f)};
ahz=function(K){return new u_B(zw.get(Fd(K.provide)),[cBJ(K)],K.multi)};
UON=function(K){K=Ih5(K,[]).map(ahz);for(var d=new Map,f=0;f<K.length;f++){var H=K[f],D=d.get(H.key.id);if(D){if(H.multiProvider!==D.multiProvider)throw Error("$e`"+D+"`"+H);if(H.multiProvider)for(var S=0;S<H.resolvedFactories.length;S++)D.resolvedFactories.push(H.resolvedFactories[S]);else d.set(H.key.id,H)}else D=void 0,H.multiProvider?D=new u_B(H.key,H.resolvedFactories.slice(),H.multiProvider):D=H,d.set(H.key.id,D)}return Array.from(d.values())};
Ih5=function(K,d){K.forEach(function(f){if(f instanceof RPN)d.push({provide:f,useClass:f});else if(f&&typeof f=="object"&&f.provide!==void 0)d.push(f);else if(f instanceof Array)Ih5(f,d);else throw Error("Xe`"+f);});
return d};
yBO=function(K,d){if(d){var f=d.map(function(H){return[H]});
return d.map(function(H){return F9p(K,H,f)})}return VOz(K)};
VOz=function(K){var d=DOJ.parameters(K);if(!d)return[];if(d.some(function(f){return f==null}))throw Hgu(K,d);
return d.map(function(f){return F9p(K,f,d)})};
F9p=function(K,d,f){var H=null,D=!1;if(!Array.isArray(d))return d instanceof zPp?XcG(d.token,D,null):XcG(d,D,null);for(var S=null,n=0;n<d.length;++n){var u=d[n];if(u instanceof RPN)H=u;else if(u instanceof zPp)H=u.token;else if(u instanceof vWn)D=!0;else if(u instanceof MOJ||u instanceof PRS)S=u}H=Fd(H);if(H!=null)return XcG(H,D,S);throw Hgu(K,f);};
XcG=function(K,d,f){return new gWB(zw.get(Fd(K)),d,f)};
Ogz=function(K,d){for(var f=Array(K.providers.length),H=0;H<K.providers.length;++H){var D=H;if(H<0||H>=K.providers.length)throw Error("Ze`"+H);f[D]=d(K.providers[H])}return f};
N9X=function(K){return typeof K==="function"&&DOJ.parameters(K).every(function(d){return!!d})};
oWz=function(K){var d=YGz;tOu.get(K)||tOu.set(K,new d);return tOu.get(K)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(K)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(K)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K,d){var f,H;if(K.contains(d))return!0;K=_.Xd(K).querySelectorAll("content,slot");for(f=0;f<K.length;++f){var D=_.Xd(K[f]).getDistributedNodes();for(H=0;H<D.length;++H)if(D[H].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(D[H],d))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K){K.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(K)&&K.preventDefault();K.targetTouches&&(K=K.targetTouches[0],$Ou=K.pageX,EWu=K.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 K=0,d=v0.length;K<d;K++)document.addEventListener(v0[K],_._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 K=0,d=v0.length;K<d;K++)document.removeEventListener(v0[K],_._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(K){var d=_.Xd(K).rootTarget;K.type!=="touchmove"&&hPO!==d&&(hPO=d,bgJ=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Xd(K).path));if(!bgJ.length)return!0;if(K.type==="touchstart")return!1;K=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(K);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(bgJ,K.deltaX,K.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K){for(var d=[],f=K.indexOf(mOB),H=0;H<=f;H++)if(K[H].nodeType===Node.ELEMENT_NODE){var D=K[H],S=D.style;S.overflow!=="scroll"&&S.overflow!=="auto"&&(S=window.getComputedStyle(D));S.overflow!=="scroll"&&S.overflow!=="auto"||d.push(D)}return d};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K,d,f){if(d||f)for(var H=Math.abs(f)>=Math.abs(d),D=0;D<K.length;D++){var S=K[D];if(H?f<0?S.scrollTop>0:S.scrollTop<S.scrollHeight-S.clientHeight:d<0?S.scrollLeft>0:S.scrollLeft<S.scrollWidth-S.clientWidth)return S}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K){var d={deltaX:K.deltaX,deltaY:K.deltaY};"deltaX"in K||("wheelDeltaX"in K&&"wheelDeltaY"in K?(d.deltaX=-K.wheelDeltaX,d.deltaY=-K.wheelDeltaY):"wheelDelta"in K?(d.deltaX=0,d.deltaY=-K.wheelDelta):"axis"in K?(d.deltaX=K.axis===1?K.detail:0,d.deltaY=K.axis===2?K.detail:0):K.targetTouches&&(K=K.targetTouches[0],d.deltaX=$Ou-K.pageX,d.deltaY=EWu-K.pageY));return d};
lhz=function(K){this.element=K;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
GlB=function(K){this.element=K;this.color=window.getComputedStyle(K).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");_.Xd(this.waveContainer).appendChild(this.wave);W9u(this)};
Mu=function(K,d){for(var f in K)if(f.toLowerCase()===d.toLowerCase())return K[f]};
ABS=function(K,d){for(var f in K)if(f.toLowerCase()===d.toLowerCase()){delete K[f];break}};
rBz=function(K){K=_.PR.clone(K);for(var d=0;d<T9Y.length;++d){var f=T9Y[d],H=Mu(K,f);H&&(K["X-Goog-Upload-Header-"+f]=H,ABS(K,f))}return K};
qGp=function(K){K=_.PR.clone(K);ABS(K,"X-Goog-Upload-Status")};
j_p=function(K){return Q_n.some(function(d){return d.test(K)})};
B9S=function(K,d){var f;var H=(f=K.formContent)==null?void 0:f.locale;f=H==null?void 0:H.split("-")[0];H=H&&CRN.includes(H)?H:f&&CRN.includes(f)?f:void 0;H=(H!=null?H:"en").replaceAll("-","_").toLowerCase();var D;K=((D=K.initializationData)==null?0:D.useNightlyRelease)?"nightly":"live";var S;return(d==null?0:(S=d.getEnableAlohaBinarySplit)==null?0:S.call(d))?_.p7(xON,K):_.p7(L9o,K,H)};
s_z=function(K,d,f,H){if(JBB)return JBB;var D=B9S(K,H);return JBB=d.feedbackV2GlobalObject?Promise.resolve(d.feedbackV2GlobalObject):new Promise(function(S,n){var u=_.RQ("SCRIPT");_.Aa(u,D);u.onload=function(){d.feedbackV2GlobalObject?S(d.feedbackV2GlobalObject):n(Error("cf"))};
u.onerror=function(){n(Error("df`"+D.toString()))};
f.body.appendChild(u)})};
wcX=function(K,d,f,H){if(klS)return klS;var D=B9S(K,H);return klS=d.feedbackV2GlobalObject?Promise.resolve(d.feedbackV2GlobalObject):new Promise(function(S,n){var u=_.RQ("SCRIPT");_.Aa(u,D);u.onload=function(){d.feedbackV2GlobalObject?S(d.feedbackV2GlobalObject):n(Error("cf"))};
u.onerror=function(){n(Error("df`"+D.toString()))};
f.body.appendChild(u)})};
ZgG=function(K,d,f,H,D){D=D===void 0?!0:D;var S,n,u,a,R;return _.c(function(F){switch(F.nextAddress){case 1:return S=Date.now(),_.I(F,s_z(K,f,H,d),2);case 2:n=F.yieldResult;if(!(D||((a=K.initializationData)==null?0:a.useNightlyRelease)||((R=K.initializationData)==null?0:R.isLocalServer))){u=n.initializeFeedbackClient(K,S,d);F.jumpTo(3);break}return _.I(F,n.initializeFeedbackClientAsync(K,S,d),4);case 4:u=F.yieldResult;case 3:return u.initiateAloha(),F.return(u)}})};
ePJ=function(K,d,f,H){var D,S,n;return _.c(function(u){if(u.nextAddress==1)return D=Date.now(),_.I(u,wcX(K,f,H.document,d),2);if(u.nextAddress!=3)return S=u.yieldResult,_.I(u,S.initializeFeedbackClientAsync(K,D,d,H),3);n=u.yieldResult;n.initiateAloha();return u.return(n)})};
pcz=function(K,d,f){var H=!0;H=H===void 0?!0:H;var D,S,n,u,a,R,F,z,v,g;return _.c(function(N){D=f||_.Hu;if((S=d)==null?0:(u=(n=S).getEnableAlohaBinarySplit)==null?0:u.call(n)){a=D;if(a.isFormOpened)throw R=Error("ef"),R.name="DuplicateFormError",R;a.isFormOpened=!0;K.callbacks=K.callbacks||{};F=K.callbacks.onClose||function(){};
K.callbacks.onClose=function(h){a.isFormOpened=!1;F(h)};
try{return N.return(ePJ(K,d,a,D))}catch(h){throw a.isFormOpened=!1,h;}}else{z=D;if(z.isFormOpened)throw v=Error("ef"),v.name="DuplicateFormError",v;z.isFormOpened=!0;K.callbacks=K.callbacks||{};g=K.callbacks.onClose||function(){};
K.callbacks.onClose=function(h){z.isFormOpened=!1;g(h)};
try{return N.return(ZgG(K,d,z,D.document,H))}catch(h){throw z.isFormOpened=!1,h;}}_.iQ(N)})};
Df5=function(K,d){return _.c(function(f){return f.return(new Promise(function(H){var D=Kop(d!=null?d:"")+"/aloha_form_properties?productId="+K;dfz(D,function(S){S=S.target;var n=null;try{var u=JSON,a=u.stringify;if(S.JSC$7805_xhr_){var R=S.JSC$7805_xhr_.responseText;R.indexOf(")]}'\n")==0&&(R=R.substring(5));var F=(0,_.P0)(R)}else F=void 0;n=HwS(f5o,a.call(u,F))}catch(z){a=new f5o,F=Hxz(),F=_.gL(F,13,!1),F=_.gL(F,14,!0),F=_.gL(F,15,!0),F=_.gL(F,20,!1),n=_.fM(a,1,F)}H(n)},"GET","",{},2E3,!0)}))})};
Kop=function(K){return j_p(K)?K:"https://www.google.com/tools/feedback"};
nkz=function(K){K=K.match(new RegExp(VU5,"gi"))||[];K=_.y(K);for(var d=K.next();!d.done;d=K.next()){d=d.value;a:{var f=_.y(Svu);for(var H=f.next();!H.done;H=f.next())if(H.value.test(d)){f=!1;break a}f=!0}if(!f)a:{f=_.y(yDB);for(H=f.next();!H.done;H=f.next())if(H.value.test(d)){f=!0;break a}f=!1}if(f)return!0}return!1};
ixz=function(K){switch(K){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"}};
uJz=function(K){if(window.crypto&&window.crypto.getRandomValues)try{var d=Array(K),f=new Uint8Array(K);window.crypto.getRandomValues(f);for(var H=0;H<d.length;H++)d[H]=f[H];return d}catch(S){}d=Array(K);for(f=0;f<K;f++){H=Date.now();for(var D=0;D<H%23;D++)d[f]=Math.random();d[f]=Math.floor(Math.random()*256)}if(cDY)for(f=1,H=0;H<cDY.length;H++)d[f%K]^=d[(f-1)%K]/4^cDY.charCodeAt(H),f++;return d};
Oy=function(K){K=uJz(K);for(var d=[],f=0;f<K.length;f++)d.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(K[f]&63));return d.join("")};
I5z=function(K){K&&_.t3("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:a5z,clientScreenNonce:K})};
Ufu=function(K){return _.mD("client-screen-nonce-store",{})[K===void 0?0:K]};
RwJ=function(K,d){d=d===void 0?0:d;var f=_.mD("client-screen-nonce-store");f||(f={},_.bx("client-screen-nonce-store",f));f[d]=K};
Foo=function(K){K=K===void 0?0:K;return K===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+K};
zwG=function(K){return _.mD(Foo(K===void 0?0:K))};
_.YZ=function(K){return(K=zwG(K===void 0?0:K))?new _.Nu({veType:K,youtubeData:void 0,jspbYoutubeData:void 0}):null};
XkS=function(){var K=_.mD("csn-to-ctt-auth-info");K||(K={},_.bx("csn-to-ctt-auth-info",K));return K};
vkY=function(){return Object.values(_.mD("client-screen-nonce-store",{})).filter(function(K){return K!==void 0})};
_.te=function(K){K=Ufu(K===void 0?0:K);if(!K&&!_.lx("USE_CSN_FALLBACK",!0))return null;K||(K="UNDEFINED_CSN");return K?K:null};
PJG=function(K){for(var d=_.y(Object.values(MUJ)),f=d.next();!f.done;f=d.next())if(_.te(f.value)===K)return!0;return!1};
gkG=function(K,d,f){var H=XkS();(f=_.te(f))&&delete H[f];d&&(H[K]=d)};
ow=function(K){return XkS()[K]};
_.$Z=function(K,d,f,H){f=f===void 0?0:f;if(K!==Ufu(f)||d!==_.mD(Foo(f)))if(gkG(K,H,f),RwJ(K,f),_.bx(Foo(f),d),d=function(){setTimeout(function(){I5z(K)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(d)}catch(D){d()}else d()};
OxS=function(K,d){d=d===void 0?"":d;var f=[],H;for(H in K)if(K.hasOwnProperty(H)){var D=d!==""?d+"."+H:H;typeof K[H]==="object"?f.push.apply(f,_.Me(OxS(K[H],D))):f.push([D,K[H]])}f.sort();return f};
_.YvB=function(K){var d=_.Pg.apply(1,arguments);if(!Ey(K)||d.some(function(H){return!Ey(H)}))throw Error("ff");
d=_.y(d);for(var f=d.next();!f.done;f=d.next())Nvn(K,f.value)};
Nvn=function(K,d){for(var f in d)if(Ey(d[f])){if(f in K&&!Ey(K[f]))throw Error("gf");f in K||(K[f]={});Nvn(K[f],d[f])}else if(tUX(d[f])){if(f in K&&!tUX(K[f]))throw Error("hf");f in K||(K[f]=[]);okz(K[f],d[f])}else K[f]=d[f];return K};
okz=function(K,d){d=_.y(d);for(var f=d.next();!f.done;f=d.next())f=f.value,Ey(f)?K.push(Nvn({},f)):tUX(f)?K.push(okz([],f)):K.push(f);return K};
Ey=function(K){return typeof K==="object"&&!Array.isArray(K)};
tUX=function(K){return typeof K==="object"&&Array.isArray(K)};
EkB=function(K){for(var d=_.y(Object.entries($fN)),f=d.next();!f.done;f=d.next())if(f=_.y(f.value),f.next(),f=f.next().value,f==="SLI_STATUS_"+K)return f;return"SLI_STATUS_UNKNOWN"};
_.he=function(K,d,f,H){return hwY(K,d,function(){return new _.bx5(K,d,f,H)})};
_.mf5=function(){return _.he("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
l5p=function(){return _.he("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
bw=function(){return _.he("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
WoX=function(){return _.he("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
GMB=function(){return _.he("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
ADX=function(){return _.he("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
qvX=function(K){K&&(K.dataset?K.dataset[Tvo()]="true":_.r5([_.Zw(rDu)],K,"data-loaded","true".toString()))};
QtS=function(K){return K?K.dataset?K.dataset[Tvo()]:K.getAttribute("data-loaded"):null};
Tvo=function(){return jtJ.loaded||(jtJ.loaded="loaded".replace(/\-([a-z])/g,function(K,d){return d.toUpperCase()}))};
_.mV=function(K,d,f){CJN(K,d,f===void 0?null:f)};
_.Lo5=function(K,d){K&&d&&(K=""+_.DL(d),(K=xf5[K])&&_.koz(K))};
CJN=function(K,d,f){f=f===void 0?null:f;var H=_.BvB(K),D=document.getElementById(H),S=D&&QtS(D),n=D&&!S;S?d&&d():(d&&(S=_.Ha(H,d),d=""+_.DL(d),xf5[d]=S),n||(D=JDp(K,H,function(){QtS(D)||(qvX(D),_.wWO(H),_.VK(function(){_.e3z(H)},0))},f)))};
JDp=function(K,d,f,H){H=H===void 0?null:H;var D=_.RQ("SCRIPT");D.id=d;D.onload=function(){f&&setTimeout(f,0)};
D.onreadystatechange=function(){switch(D.readyState){case "loaded":case "complete":D.onload()}};
H&&D.setAttribute("nonce",H);_.Aa(D,_.ts(K));K=document.getElementsByTagName("head")[0]||document.body;K.insertBefore(D,K.firstChild);return D};
_.BvB=function(K){var d=document.createElement("a");ND(d,K);return"js-"+lw(d.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
sto=function(K){var d=_.mD("INNERTUBE_HOST_OVERRIDE");d&&(K=String(d)+String(_.W0(K)));return K};
kMG=function(K){var d={};_.M("json_condensed_response")&&(d.prettyPrint="false");return K=v$X(K,d)};
_.Gw=function(K){return kM(K)?"same-origin":"include"};
_.Ae=function(K){return kM(K)?"same-origin":"cors"};
Tw=function(K,d,f){f=f===void 0?{}:f;K={method:d===void 0?"POST":d,mode:_.Ae(K),credentials:_.Gw(K)};d={};for(var H=_.y(Object.keys(f)),D=H.next();!D.done;D=H.next())D=D.value,f[D]&&(d[D]=f[D]);Object.keys(d).length>0&&(K.headers=d);return K};
_.rL=function(K,d){d=d===void 0?{}:d;return"service:"+K+"/"+Object.keys(d).sort().map(function(f){return f+":"+d[f]}).join("/")};
wkB=function(K){var d,f,H,D;K=(d=_.P(K,_.qu))==null?void 0:(f=d.watchEndpointSupportedOnesieConfig)==null?void 0:(H=f.html5PlaybackOnesieConfig)==null?void 0:(D=H.commonConfig)==null?void 0:D.url;if(!K)return[];d=new _.Q8(K);return d.JSC$8037_domain_?["https://"+d.JSC$8037_domain_+"/generate_204"]:[]};
_.pkX=function(){return ZxO()||O1N()||ewB&&EF("version/")?!0:_.mD("EOM_VISITOR_DATA")?!1:!0};
K8Y=function(K){var d=K.docid||K.video_id||K.videoId||K.id;if(d)return d;d=K.raw_player_response;d||(K=K.player_response)&&(d=JSON.parse(K));return d&&d.videoDetails&&d.videoDetails.videoId||null};
d0S=function(K){return K.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
jv=function(K){return!isNaN(Number(K))&&!_.cu(K)};
_.xZ=function(K,d,f,H){H=H===void 0?!0:H;var D=_.mD("VALID_SESSION_TEMPDATA_DOMAINS",[]),S=_.JR(window.location.href);S&&D.push(S);S=_.JR(K);if(_.Bu(D,S)||!S&&_.Sp(K,"/"))if(D=document.createElement("a"),ND(D,K),K=D.href)if(K=_.W0(K),K=_.C1(K))H&&!d.csn&&(d.itct||d.ved)&&(d=Object.assign({csn:_.te()},d)),f?(f=parseInt(f,10),isFinite(f)&&f>0&&f9N(K,d,f)):f9N(K,d)};
D0z=function(K){var d=_.mD("VALID_SESSION_TEMPDATA_DOMAINS",[]),f=_.JR(window.location.href);f&&d.push(f);f=_.JR(K);if(!(_.Bu(d,f)||!f&&_.Sp(K,"/")))return null;K=_.W0(K);(K=_.C1(K))?(K=HGB(K),K=(K=_.I0.get(K,void 0)||null)?_.jq(K):{}):K=null;return K};
f9N=function(K,d,f){K=HGB(K);d=d?_.c6(d):"";f=f||5;_.pkX()&&_.UF(K,d,f)};
HGB=function(K){for(var d=_.y(VIO),f=d.next();!f.done;f=d.next())K=_.L1(K,f.value);return"ST-"+lw(K).toString(36)};
StG=function(K,d){K.commandMetadata&&_.P(K.commandMetadata,_.B0)&&_.P(K.commandMetadata,_.B0).url&&(K=_.CQ(_.P(K.commandMetadata,_.B0).url).adurl)&&_.PTo(K)&&_.xZ(_.W0(K),{encoded_ad_playback_context:d})};
_.yzS=function(K){if(K.requestFullscreen)K=K.requestFullscreen(void 0);else if(K.webkitRequestFullscreen)K=K.webkitRequestFullscreen();else if(K.mozRequestFullScreen)K=K.mozRequestFullScreen();else if(K.msRequestFullscreen)K=K.msRequestFullscreen();else if(K.webkitEnterFullscreen)K=K.webkitEnterFullscreen();else return Promise.reject(Error("rf"));return K instanceof Promise?K:Promise.resolve()};
_.sy=function(K){var d;_.AGX(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Je()==K&&(d=document):d=K;if(d&&(K=_.AGX(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],d))){K.call(d)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Je=function(){var K=K===void 0?!1:K;var d=_.AGX(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(K)for(;d&&d.shadowRoot;)d=d.shadowRoot.fullscreenElement;return d?d:null};
_.kZ=function(K,d){d=d===void 0?!0:d;K.addEventListener("wheel",nnn);K.overscrollConfig={cooldown:d}};
_.wL=function(K){K.overscrollConfig=void 0;K.removeEventListener("wheel",nnn)};
nnn=function(K){var d=K.deltaY,f=K.target,H=null;if(window.Polymer&&window.Polymer.Element){if(f=K.path||K.composedPath&&K.composedPath()){f=_.y(f);for(var D=f.next();!D.done&&(D=D.value,!iGO(D,d));D=f.next())if(D.overscrollConfig){H=D;break}}}else for(;f&&!iGO(f,d);){if(f.overscrollConfig){H=f;break}f=f.parentElement}H&&(d=H.overscrollConfig,d.cooldown?(H=K.deltaY,f=d.lastDeltaY||0,d.lastDeltaY=H,D=d.lastStopped||0,f&&D&&f>0==H>0?Math.abs(f)>=Math.abs(H)?(H=D+1200,f=!1):(H=D+600,f=!0):(H=Date.now()+
600,f=!0),H>Date.now()&&(K.preventDefault(),f&&(d.lastStopped=Date.now()))):K.preventDefault())};
iGO=function(K,d){return d<0&&K.scrollTop>0||d>0&&K.scrollTop<K.scrollHeight-K.clientHeight-1?(K=getComputedStyle(K).overflowY,K=="auto"||K=="scroll"):!1};
_.Zp=function(K,d,f,H){H||(H={bubbles:!0,cancelable:!1,composed:!0});f!==null&&f!==void 0&&(H.detail=f);var D=new CustomEvent(d,H);_.M("untrack_fire_custom_event_killswitch")?K.dispatchEvent(D):i8(function(){return void K.dispatchEvent(D)});
return D};
_.ev=function(K,d,f,H){d=new czo(d,!(H===void 0||!H),f);_.Zp(K,"yt-action",d);return d.returnValue};
_.p1=function(K,d,f){return _.ev(K,d,f,!0)};
_.Kd=function(K,d,f){return _.ev(K,d,f)[0]};
_.fd=function(K,d,f,H){d&&d.length&&d.forEach(function(D){var S=Wen(D);S&&(_.M("handle_service_request_actions")&&D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.sendPost?_.dN(f?f:K,[D]):_.p1(K,S,[D,f,H]))})};
_.dN=function(K,d){var f=[K];d&&f.push.apply(f,d);d=_.ev(K,"yt-service-request",f);return d.length>0&&(d=d[0],_.Zp(K,"yt-service-request-sent",d),d&&d.ajaxPromise)?(d.ajaxPromise.then(function(H){_.Zp(K,"yt-service-request-completed",H)},function(H){_.Zp(K,"yt-service-request-error",{error:H,
params:f})},K),d.ajaxPromise):_.HG()};
_.V$=function(K,d){if(_.M("handle_service_request_actions"))_.fd(d,K,d);else{K=_.y(K);for(var f=K.next();!f.done;f=K.next()){f=f.value;var H=void 0;((H=_.P(f,_.DE))==null?0:H.commands)?_.V$(_.P(f,_.DE).commands,d):(H=void 0,((H=_.P(f,_.y$))==null?0:H.actions)?_.V$(_.P(f,_.y$).actions,d):(H=void 0,((H=_.P(f.commandMetadata,_.B0))==null?0:H.sendPost)?_.dN(d,[f]):_.fd(d,[f],d)))}}};
_.a9z=function(K,d,f){d=d===void 0?{}:d;typeof d==="function"&&(d={callback:d});f||d._c&&d._c.jsl&&d._c.jsl.h||_.PR.extend(d,{_c:{jsl:{h:_.mD("GAPI_HINT_PARAMS")}}});(d.gapiHintOverride||_.mD("GAPI_HINT_OVERRIDE"))&&(f=_.CQ(document.location.href).gapi_jsh)&&_.PR.extend(d,{_c:{jsl:{h:f}}});unp(K,d)};
_.iB=function(K,d,f){d=d===void 0?{}:d;K=(K=K in nd?nd[K]:f)||"";f={};for(var H in d){f={key$jscomp$788:f.key$jscomp$788};f.key$jscomp$788=H;var D=function(S){return function(){return String(d[S.key$jscomp$788])}}(f);
K=K.replace(new RegExp("\\$\\{"+f.key$jscomp$788+"\\}","gi"),D);K=K.replace(new RegExp("\\$"+f.key$jscomp$788,"gi"),D)}return K};
_.cG=function(K,d){return I9z(K in nd?nd[K]:{},d)};
I9z=function(K,d){var f=_.mD("I18N_PLURAL_RULES");f||(f=function(H){return H==1?"one":"other"});
return(K=K["case"+d]||K[f(d)])?K.replace("#",d.toString()):d+""};
F8p=function(K){var d=U0u(K),f=document.getElementById(d),H=f&&QtS(f);H||f&&!H||(f=Rip(K,d,function(){if(!QtS(f)){qvX(f);_.wWO(d);var D=_.uB(_.e3z,d);_.VK(D,0)}}))};
Rip=function(K,d,f){var H=document.createElement("link");H.id=d;H.onload=function(){f&&setTimeout(f,0)};
K=_.ts(K);_.qD(H,K,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(H);return H};
U0u=function(K){var d=_.RQ("A");ND(d,u$(K));return"css-"+lw(d.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Xtp=function(K){var d=ziX();K!==d&&(d=_.aS(),!_.M("web_autonav_allow_off_by_default")&&K||_.IS(0,141,!0),_.IS(0,140,!K),d.save())};
ziX=function(){var K=_.aS();return _.M("web_autonav_allow_off_by_default")&&!K.getFlag(141)&&_.mD("AUTONAV_OFF_BY_DEFAULT")?!1:!K.getFlag(140)};
vnG=function(K,d){var f,H;K=((f=K.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(H=f.videoAuthorizationToken)==null?void 0:H.credentialTransferTokens)||[];for(f=0;f<K.length;++f)if(K[f].scope===d)return K[f].token||void 0};
MIo=function(K){for(var d=0,f=0;f<K.length;f++)d=d*31+K.charCodeAt(f),f<K.length-1&&(d%=0x800000000000);return d%1E5};
_.Ux=function(K){return _.T2("ytcsi."+(K||"")+"data_")||PSz(K)};
_.gnu=function(K){K=_.Ux(K);K.metadata||(K.metadata={});return K.metadata};
_.OGo=function(K){K=_.Ux(K);K.tick||(K.tick={});return K.tick};
_.NTB=function(K){K=_.Ux(K);if(K.gel){var d=K.gel;d.gelInfos||(d.gelInfos={});d.gelTicks||(d.gelTicks={})}else K.gel={gelTicks:{},gelInfos:{}};return K.gel};
_.Ytz=function(K){K=_.NTB(K);K.gelInfos||(K.gelInfos={});return K.gelInfos};
tIB=function(K){var d=_.Ux(K).nonce;d||(d=Oy(16),_.Ux(K).nonce=d);return d};
PSz=function(K){var d={tick:{},info:{}};_.B6("ytcsi."+(K||"")+"data_",d);return d};
onz=function(){var K=_.T2("ytcsi.debug");K||(K=[],_.B6("ytcsi.debug",K),_.B6("ytcsi.reference",{}));return K};
_.Enz=function(K){K=K||"";var d=$0S();if(d[K])return d[K];var f=onz(),H={timerName:K,info:{},tick:{},span:{},jspbInfo:[]};f.push(H);return d[K]=H};
hiz=function(K){K=K||"";var d=$0S();d[K]&&delete d[K];var f=onz(),H={timerName:K,info:{},tick:{},span:{},jspbInfo:[]};f.push(H);d[K]=H};
$0S=function(){var K=_.T2("ytcsi.reference");if(K)return K;onz();return _.T2("ytcsi.reference")};
_.m0G=function(K){return bGX[K]||"LATENCY_ACTION_UNKNOWN"};
Az5=function(K,d,f){f=f===void 0?{}:f;var H=!1;_.lx("ytLoggingEventsDefaultDisabled",!1)&&(H=!0);H=H?null:Y7;f=f===void 0?{}:f;var D=Math.round(f.timestamp||(0,_.k_)());_.zE(d,1,D<Number.MAX_SAFE_INTEGER?D:0);D=new l9J;if(f.lact)_.zE(D,1,isFinite(f.lact)?f.lact:-1);else if(f.timestamp)_.zE(D,1,-1);else{var S=_.pA();_.zE(D,1,isFinite(S)?S:-1)}if(f.sequenceGroup&&!_.M("web_gel_sequence_info_killswitch")){S=f.sequenceGroup;var n=nAo(S),u=new W8z;_.zE(u,2,n);_.aL(u,1,S);_.fM(D,3,u);f.endOfSequence&&delete Gdu[f.sequenceGroup]}_.fM(d,
33,D);(f.sendIsolatedPayload?U75:RmO)(K,{endpoint:"log_event",payload:d,cttAuthInfo:f.cttAuthInfo,dangerousLogToVisitorSession:f.dangerousLogToVisitorSession},H)};
_.Ff=function(){return(_.M("csi_use_time_origin")||_.M("csi_use_time_origin_tvhtml5"))&&_.RS.timeOrigin?Math.floor(_.RS.timeOrigin):_.RS.timing.navigationStart};
_.TTz=function(K,d){_.zu("_start",K,d)};
_.MY=function(K,d){if(!_.M("web_csi_action_sampling_enabled")||!_.Ux(d).actionDisabled){var f=_.Enz(d||"");_.YvB(f.info,K);K.loadType&&(f=K.loadType,_.gnu(d).loadType=f);_.YvB(_.Ytz(d),K);f=tIB(d);d=_.Ux(d).cttAuthInfo;rzY().info(K,f,d)}};
qtS=function(){var K,d,f,H;return((H=_.eq().resolve(_.Zd(MF))==null?void 0:(K=yJ5())==null?void 0:(d=K.loggingHotConfig)==null?void 0:(f=d.csiConfig)==null?void 0:f.debugTicks)!=null?H:[]).map(function(D){return Object.values(D)[0]})};
_.zu=function(K,d,f){if(!_.M("web_csi_action_sampling_enabled")||!_.Ux(f).actionDisabled){var H=tIB(f),D;if(D=_.M("web_csi_debug_sample_enabled")&&H){(_.eq().resolve(_.Zd(MF))==null?0:yJ5())&&!QZX&&(QZX=!0,_.zu("gcfl",(0,_.k_)(),f));var S,n,u;D=(_.eq().resolve(_.Zd(MF))==null?void 0:(S=yJ5())==null?void 0:(n=S.loggingHotConfig)==null?void 0:(u=n.csiConfig)==null?void 0:u.debugSampleWeight)||0;if(S=D!==0)b:{S=qtS();if(S.length>0)for(n=0;n<S.length;n++)if(K===S[n]){S=!0;break b}S=!1}S?(D=MIo(H)%D!==
0,_.Ux(f).debugTicksExcludedLogged||(S={},S.debugTicksExcluded=D,_.MY(S,f)),_.Ux(f).debugTicksExcludedLogged=!0):D=!1}if(!D){K[0]!=="_"&&jZO(K,f,d);D=_.Enz(f||"");D.tick[K]=d||(0,_.k_)();if(D.callback&&D.callback[K])for(D=_.y(D.callback[K]),S=D.next();!S.done;S=D.next())S=S.value,S();D=_.NTB(f);D.gelTicks&&(D.gelTicks[K]=!0);S=_.OGo(f);D=d||(0,_.k_)();_.M("log_repeated_ytcsi_ticks")?K in S||(S[K]=D):S[K]=D;S=_.Ux(f).cttAuthInfo;K==="_start"?rzY().baseline(H,d,S):rzY().tick(K,H,d,S);_.CSO(f);return D}}};
jZO=function(K,d,f){if(_.RS.mark)if(K.startsWith("mark_")||(K="mark_"+K),d&&(K+=" ("+d+")"),f===void 0||_.M("web_csi_disable_alt_time_performance_mark"))_.RS.mark(K);else{f=_.M("csi_use_performance_navigation_timing")?f-_.RS.timeOrigin:f-(_.RS.timeOrigin||_.RS.timing.navigationStart);try{_.RS.mark(K,{startTime:f})}catch(H){}}};
x0X=function(){var K,d=(K=_.RS.getEntriesByType)==null?void 0:K.call(_.RS,"mark");d&&d.forEach(function(f){if(f.name.startsWith("mark_")){var H;(H=_.RS.clearMarks)==null||H.call(_.RS,f.name)}})};
_.L8z=function(){switch(GoG()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.BTB=function(K){var d={},f=function(S,n,u){n=n.match("_rid")?n.split("_rid")[0]:n;typeof u==="number"&&(u=JSON.stringify(u));S.requestIds?S.requestIds.push({endpoint:n,id:u}):S.requestIds=[{endpoint:n,id:u}]};
K=_.y(Object.entries(K));for(var H=K.next();!H.done;H=K.next()){var D=_.y(H.value);H=D.next().value;D=D.next().value;switch(H){case "GetBrowse_rid":f(d,H,D);break;case "GetGuide_rid":f(d,H,D);break;case "GetHome_rid":f(d,H,D);break;case "GetPlayer_rid":f(d,H,D);break;case "GetSearch_rid":f(d,H,D);break;case "GetSettings_rid":f(d,H,D);break;case "GetTrending_rid":f(d,H,D);break;case "GetWatchNext_rid":f(d,H,D);break;case "yt_red":d.isRedSubscriber=!!D;break;case "yt_ad":d.isMonetized=!!D}}return d};
_.JzX=function(K){var d=_.PG("aft",K);if(d)return d;d=_.mD((K||"")+"TIMING_AFT_KEYS",["ol"]);for(var f=d.length,H=0;H<f;H++){var D=_.PG(d[H],K);if(D)return D}return NaN};
_.sZo=function(K,d){_.B6("ytglobal.timing"+(d||"")+"ready_",K)};
_.PG=function(K,d){if(K=_.OGo(d)[K])return typeof K==="number"?K:K[K.length-1]};
_.CSO=function(K){var d=_.PG("_start",K),f=_.JzX(K),H=!kdp;d&&f&&H&&(iFp(wtS,new ZGu(Math.round(f-d),K)),kdp=!0)};
ptz=function(K){PSz(K);eiB();x0X();K||(_.mD("TIMING_ACTION")&&_.bx("PREVIOUS_ACTION",_.mD("TIMING_ACTION")),_.bx("TIMING_ACTION",""))};
_.KwY=function(K){K=K===void 0?{}:K;_.AR(function(){gN();hiz();ptz();_.sZo(!1);K.cttAuthInfo&&(_.Ux().cttAuthInfo=K.cttAuthInfo);_.bx("TIMING_AFT_KEYS",[]);K.isHot?_.Ox({loadType:"hot"}):_.Ox({loadType:"warm"});_.bx("TIMING_ACTION","");delete _.mD("TIMING_INFO",{}).yt_lt;_.AR(_.TTz)(K.startTime,void 0)})()};
_.NY=function(K,d,f,H){d=d===void 0?{}:d;_.AR(function(){var D=f?f:K;dhu(D);var S=d.sampleRate;if(!_.M("web_csi_action_sampling_enabled")||S===void 0||S<=1)S=!1;else{var n=tIB(D);S=MIo(n)%S!==0}S&&(_.Ux(D).actionDisabled=!0);_.Enz(D||"").info.actionType=K;d.cttAuthInfo&&(_.Ux(D).cttAuthInfo=d.cttAuthInfo);_.bx(D+"TIMING_ACTION",K);_.AR(_.TTz)(d.startTime,D);S={actionType:H||_.m0G(K)};d.logPreviousAction&&(S.previousAction=_.m0G(_.mD("TIMING_ACTION")));(n=_.te())&&n!=="UNDEFINED_CSN"&&(S.clientScreenNonce=
n);_.Ox(S,D);_.sZo(!0,D)})()};
dhu=function(K){_.AR(function(){gN(K);hiz(K);ptz(K)})()};
fTB=function(){_.AR(function(){var K=[],d;for(d in _.T2("ytcsi.".slice(0,-1)))d.endsWith("data_")&&K.push(d.slice(0,-5));K=_.y(K);for(d=K.next();!d.done;d=K.next())dhu(d.value);gN()})()};
_.Dho=function(K){return _.AR(function(){return _.Hfo("_start",K)})()};
_.Ox=function(K,d,f){_.AR(_.MY)(K,d,f===void 0?!1:f)};
_.YJ=function(K,d,f){return _.AR(_.zu)(K,d,f)};
_.Hfo=function(K,d){return _.AR(function(){var f=_.OGo(d);return K in f})()};
SAn=function(K){if(!_.M("universal_csi_network_ticks"))return"";K=_.ny(K)||"";for(var d=Object.keys(V$O),f=0;f<d.length;f++){var H=d[f];if(K.includes(H))return H}return""};
nSz=function(K){if(!_.M("universal_csi_network_ticks"))return function(){};
var d=V$O[K];return d?(_.ty(d),function(){var f=_.M("universal_csi_network_ticks")?(f=yoB[K])?_.ty(f):!1:!1;return f}):function(){}};
_.ty=function(K,d,f){return _.AR(function(){if(_.Hfo(K,f))return!1;_.YJ(K,d,f);return!0})()};
_.oS=function(K,d,f){_.AR(function(){if(!_.Dho(f)||_.Hfo(K,f))return!1;_.YJ(K,d,f);return!0})()};
_.$J=function(K){return _.AR(_.PG)(K,void 0)};
gN=function(K){_.Dho(K)&&_.YJ("aa",void 0,K)};
_.ITB=function(K,d,f,H,D,S,n,u,a){var R=ifX();u=new _.Nu({veType:d,youtubeData:S,jspbYoutubeData:u});S=Ex({},R);D&&(S.cttAuthInfo=D);D={csn:R,pageVe:u.getAsJson()};_.M("expectation_logging")&&a&&a.screenCreatedLoggingExpectations&&(D.screenCreatedLoggingExpectations=a.screenCreatedLoggingExpectations);f&&f.visualElement?(D.implicitGesture={parentCsn:f.clientScreenNonce,gesturedVe:f.visualElement.getAsJson()},n&&(D.implicitGesture.gestureType=n)):f&&_.h3(new _.X4("newScreen() parent element does not have a VE - rootVe",
d));H&&(D.cloneCsn=H);K?gU("screenCreated",D,K,S):_.t3("screenCreated",D,S);iFp(FSz,new cou(R));hy.clear();u2u.clear();aTz.clear();return R};
bB=function(K,d,f,H,D){UhO(K,d,f,[H],D===void 0?!1:D)};
UhO=function(K,d,f,H,D){D=D===void 0?!1:D;for(var S=Ex({cttAuthInfo:ow(d)||void 0},d),n=_.y(H),u=n.next();!u.done;u=n.next()){u=u.value;var a=u.getAsJson();(_.PR.isEmpty(a)||!a.trackingParams&&!a.veType)&&_.h3(Error("sf"));if(_.M("no_client_ve_attach_unless_shown")){var R=RKY(u,d);if(a.veType&&!u2u.has(R)&&!aTz.has(R)&&!D){if(!_.M("il_attach_cache_limit")||hy.size<1E3){hy.set(R,[K,d,f,u]);return}_.M("il_attach_cache_limit")&&hy.size>1E3&&_.h3(new _.X4("IL Attach cache exceeded limit"))}u=RKY(f,d);
hy.has(u)?Fwp(f,d):aTz.set(u,!0)}}H=H.filter(function(F){F.csn!==d?(F.csn=d,F=!0):F=!1;return F});
f={csn:d,parentVe:f.getAsJson(),childVes:_.O7(H,function(F){return F.getAsJson()})};
d==="UNDEFINED_CSN"?mq("visualElementAttached",S,f):K?gU("visualElementAttached",f,K,S):_.t3("visualElementAttached",f,S)};
XL5=function(K,d,f,H,D){zKS(K,d,f,D)};
zKS=function(K,d,f,H){vSB(f,d);var D=Ex({cttAuthInfo:ow(d)||void 0},d);f={csn:d,ve:f.getAsJson(),eventType:1};H&&(f.clientData=H);d==="UNDEFINED_CSN"?mq("visualElementShown",D,f):K?gU("visualElementShown",f,K,D):_.t3("visualElementShown",f,D)};
M$u=function(K,d,f,H){vSB(f,d);var D=Ex({cttAuthInfo:ow(d)||void 0},d);f={csn:d,ve:f.getAsJson(),eventType:4};H&&(f.clientData=H);d==="UNDEFINED_CSN"?mq("visualElementShown",D,f):K?gU("visualElementShown",f,K,D):_.t3("visualElementShown",f,D)};
PeG=function(K,d,f,H,D){var S=(H=H===void 0?!1:H)?16:8;H=Ex({cttAuthInfo:ow(d)||void 0,endOfSequence:H},d);f={csn:d,ve:f.getAsJson(),eventType:S};D&&(f.clientData=D);d==="UNDEFINED_CSN"?mq("visualElementHidden",H,f):K?gU("visualElementHidden",f,K,H):_.t3("visualElementHidden",f,H)};
OfB=function(K,d,f,H,D){gSY(K,d,f,void 0,H,D)};
gSY=function(K,d,f,H,D){vSB(f,d);H=H||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var S=Ex({cttAuthInfo:ow(d)||void 0},d);f={csn:d,ve:f.getAsJson(),gestureType:H};D&&(f.clientData=D);d==="UNDEFINED_CSN"?mq("visualElementGestured",S,f):K?gU("visualElementGestured",f,K,S):_.t3("visualElementGestured",f,S)};
Nhn=function(K,d,f,H){var D=Ex({cttAuthInfo:ow(d)||void 0},d);f={csn:d,ve:f.getAsJson(),clientData:H};d==="UNDEFINED_CSN"?mq("visualElementStateChanged",D,f):K?gU("visualElementStateChanged",f,K,D):_.t3("visualElementStateChanged",f,D)};
YAn=function(){var K=uJz(16);for(var d=[],f=0;f<K.length;f++)d.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(K[f]&63));return d.join("")};
mq=function(K,d,f){t$S.push({payloadName:K,payload:f,jspbPayload:void 0,options:d});oSX||(oSX=XJN())};
RMS=function(K){if(t$S){for(var d=_.y(t$S),f=d.next();!f.done;f=d.next())f=f.value,f.payload&&(f.payload.csn=K.csn,_.t3(f.payloadName,f.payload,f.options));t$S.length=0}oSX=0};
RKY=function(K,d){return""+K.getAsJson().veType+K.getAsJson().veCounter+d};
vSB=function(K,d){if(_.M("no_client_ve_attach_unless_shown")){var f=RKY(K,d);u2u.set(f,!0);Fwp(K,d)}};
Fwp=function(K,d){K=RKY(K,d);hy.has(K)&&(d=hy.get(K)||[],bB(d[0],d[1],d[2],d[3],!0),hy.delete(K))};
Ex=function(K,d){_.M("log_sequence_info_on_gel_web")&&(K.sequenceGroup=d);return K};
_.lB=function(K,d,f){_.AR(bB)(void 0,K,d,f)};
_.WG=function(K,d,f){_.AR(UhO)(void 0,K,d,f)};
_.Gu=function(K,d){_.AR(XL5)(void 0,K,d,void 0,void 0,void 0)};
_.Ay=function(K,d,f){_.AR(function(){_.QB(d,function(H){M$u(void 0,K,H,f)})})()};
_.Tu=function(K,d,f,H){_.AR(function(){_.QB(d,function(D){PeG(void 0,K,D,f,H)})})()};
_.rN=function(K,d,f){_.AR(OfB)(void 0,K,d,f,void 0)};
_.qY=function(K,d,f,H){_.AR(gSY)(void 0,K,d,f,H,void 0)};
_.Q$=function(K,d,f){_.AR(Nhn)(void 0,K,d,f,void 0)};
Cd=function(K){return js.get(K)};
$hX=function(K,d){js.set(K,d)};
ESO=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(K){return(+K^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+K/4).toString(16)})};
lTO=function(K,d){if(xJ&&xJ.sample(K,d)){var f=hKz++,H,D;K=new bfo(K,d,performance.now(),f,mhY,(D=(H=Ld)==null?void 0:H.traceId)!=null?D:f);if(Ld){var S;(S=Ld).children||(S.children=[]);Ld.children.push(K)}f=_.y(xJ.spanProcessors);for(H=f.next();!H.done;H=f.next())S=D=void 0,(S=(D=H.value).onSpanStart)==null||S.call(D,K);return Ld=K}};
Wwn=function(K){mhY=ESO();xJ=K};
GA5=function(K,d,f){if(!K)return d(f);var H=void 0;try{return d(f)}catch(D){throw H="error",D;}finally{K==null||K.close(H)}};
AoB=function(K,d){var f=Object.keys(K);K=new _.X4("[Command Handler] "+d,{filteredCommandNames:f,originalCommand:K});_.$7(K)};
ThN=function(K,d){AoB(K,d+" was called but not set")};
roz=function(K){return function(){return new K}};
BG=function(K){return function(){return _.eq().resolve(K)}};
qAB=function(K,d){var f=_.P(K,_.GE);if(f&&(f=d[f.signal]))return f();K=_.y(Object.keys(K));for(f=K.next();!f.done;f=K.next())if(f=f.value,d[f]&&(f=d[f]))return f()};
Jy=function(K,d,f,H){return{browseEndpoint:{browseId:K},commandMetadata:{webCommandMetadata:{url:d,rootVe:f,webPageType:H===void 0?"WEB_PAGE_TYPE_BROWSE":H}}}};
Qs5=function(K,d,f){var H=d=d===void 0?0:d;f=f===void 0?0:f;var D=f-H;return _.sx(K,"PPSV",void 0,void 0,(D>600?0:D<60||f<=0||H/f>.9)?0:d)};
_.sx=function(K,d,f,H,D){var S="/watch?v="+K;K={videoId:K};d&&(K.playlistId=d,S+="&list="+d);H&&(S+="&pp="+H);D&&(K.startTimeSeconds=D,S+="&t="+D+"s");d={watchEndpoint:K,commandMetadata:{webCommandMetadata:{url:S,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};f&&(d.clickTrackingParams=f);H&&(_.P(d,_.qu).playerParams=H);return d};
jsu=function(K){return{browseEndpoint:{browseId:"VL"+K},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+K,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Cep=function(K){if(K){var d;if(K){var f=(d=_.P(K.commandMetadata,_.B0))==null?void 0:d.url;d=!(!f||f==="/service_ajax")}else d=!1;if(d)return K;var H;if(K=(H=_.P(K,_.DE))==null?void 0:H.commands)for(H=_.y(K),K=H.next();!K.done;K=H.next())if(K=Cep(K.value))return K}};
_.kJ=function(K){return{runs:[{text:K}]}};
xhS=function(K,d){return K&&d?{runs:[{text:K,navigationEndpoint:d}]}:void 0};
wN=function(K){return K?_.kJ(K):void 0};
_.ZE=function(K){return K?{simpleText:K}:void 0};
_.es=function(K){var d=K.type;K=K.payload;d={type:d};K!==void 0&&(d.payload=K);return d};
Lwu=function(K,d,f){for(var H=Object.assign({},K),D=_.y(Object.keys(d)),S=D.next();!S.done;S=D.next()){S=S.value;var n=K[S],u=d[S];if(u===void 0)delete H[S];else if(n===void 0)H[S]=u;else if(Array.isArray(u)&&Array.isArray(n))H[S]=f?[].concat(_.Me(n),_.Me(u)):u;else if(!Array.isArray(u)&&_.H4(u)&&!Array.isArray(n)&&_.H4(n))H[S]=Lwu(n,u,f);else if(typeof u===typeof n)H[S]=u;else return d=new _.X4("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:S,originalValue:n,updateValue:u}),
_.$7(d),K}return H};
ssX=function(K){if(!K.length)return"";try{if(BhX)return BhX.decode(K);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(K)}catch(n){}for(var d=0,f=[],H=K.length;d<H;){for(var D=0;D<1024&&d<H;){var S=K[d++];if(S<128)Jon[D++]=S;else{if(S<224)S=(S&31)<<6|K[d++]&63;else if(S<240)S=(S&15)<<12|(K[d++]&63)<<6|K[d++]&63;else{if(D+1===1024){--d;break}S=(S&7)<<18|(K[d++]&63)<<12|(K[d++]&63)<<6|K[d++]&63;S-=65536;Jon[D++]=55296|S>>10;S=56320|S&1023}Jon[D++]=S}}S=String.fromCharCode.apply(String,
Jon);D<1024&&(S=S.substring(0,D));f.push(S)}return f.join("")};
wLp=function(K,d){var f;if((f=kAz)==null?0:f.encodeInto)return d=kAz.encodeInto(K,d),d.read<K.length?K.length*4:d.written;for(var H=f=0;H<K.length;H++){var D=K.charCodeAt(H);D<128?d[f++]=D:(D<2048?d[f++]=D>>6|192:((D&64512)===55296&&H+1<K.length&&(K.charCodeAt(H+1)&64512)===56320?(D=65536+((D&1023)<<10)+(K.charCodeAt(++H)&1023),d[f++]=D>>18|240,d[f++]=D>>12&63|128):d[f++]=D>>12|224,d[f++]=D>>6&63|128),d[f++]=D&63|128)}return f};
ZfY=function(K,d){K=new Uint8Array(K);d&&K.set(d);return K};
_.KF=function(K){K=new eKG(new pLO([_.Us(decodeURIComponent(K))]));if(K1p(K,2)){var d=pd(K);var f=K.pos;var H=K.arrayView;f=f===void 0?0:f;var D=d===void 0?-1:d;f=f===void 0?0:f;D=D===void 0?-1:D;if(H.totalLength&&D){D<0&&(D=H.totalLength-f);H.focus(f);if(!(f-H.arrayPos+D<=H.arrays[H.arrayIdx].length)){var S=H.arrayIdx,n=H.arrayPos;H.focus(f+D-1);n=new Uint8Array(H.arrayPos+H.arrays[H.arrayIdx].length-n);for(var u=0,a=S;a<=H.arrayIdx;a++)n.set(H.arrays[a],u),u+=H.arrays[a].length;H.arrays.splice(S,
H.arrayIdx-S+1,n);H.arrayIdx=0;H.arrayPos=0;H.focus(f)}S=H.arrays[H.arrayIdx];H=new DataView(S.buffer,S.byteOffset+f-H.arrayPos,D)}else H=new DataView(new ArrayBuffer(0));H=new Uint8Array(H.buffer,H.byteOffset,H.byteLength);K.pos+=d;d=H}else d=void 0;d=d?ssX(d):void 0;K=K1p(K,4)?pd(K):void 0;H=d_G[K];if(typeof H==="undefined")throw K=new _.X4("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:K}),_.$7(K),K;return{entityTypeFieldNumber:K,entityType:H,entityId:d}};
_.HJ=function(K,d,f){f=f===void 0?0:f;var H=new fzX;if(kAz)K=kAz.encode(K);else{var D=new Uint8Array(Math.ceil(K.length*1.2)),S=wLp(K,D);D.length<S&&(D=new Uint8Array(S),S=wLp(K,D));D.length>S&&(D=D.subarray(0,S));K=D}K!==void 0&&(dB(H,18),D=K.length,dB(H,D),fF(H,D),H.buf.set(K,H.pos),H.pos+=D);K=HTu[d];if(typeof K==="undefined")throw f=new _.X4("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:d}),_.$7(f),f;K!==void 0&&(dB(H,32),dB(H,K));dB(H,40);dB(H,1);d=new Uint8Array(H.buf.buffer,
H.buf.byteOffset,H.pos);return encodeURIComponent(_.eS(d,f))};
D_Y=function(K){K=K.key||K.id;if(!K)throw Error("xf");return K};
Shp=function(K,d){K=K===void 0?{}:K;return V2o(K,d)};
ylN=function(K,d,f,H){if(H===void 0)return H=Object.assign({},K[d]||{}),f=(delete H[f],H),H={},Object.assign({},K,(H[d]=f,H));var D={},S={};return Object.assign({},K,(S[d]=Object.assign({},K[d],(D[f]=H,D)),S))};
n1u=function(K,d,f,H,D){var S=K[d];if(S==null||!S[f])return K;H=Lwu(S[f],H,D==="REPEATED_FIELDS_MERGE_OPTION_APPEND");D={};S={};return Object.assign({},K,(S[d]=Object.assign({},K[d],(D[f]=H,D)),S))};
_.DR=function(K,d,f){return K[d]?K[d][f]||null:null};
clO=function(){if(iTo)return iTo();var K={};iTo=sF("PersistentEntityStoreDb",{objectStores:(K.EntityStore={addedAtVersion:1},K.EntityAssociationStore={addedAtVersion:2},K),shared:!1,upgrade:function(d,f){f(1)&&G7(WA(d,"EntityStore",{keyPath:"key"}),"entityType","entityType");f(2)&&(d=WA(d,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),G7(d,"byParentEntityKey","parentEntityKey"),G7(d,"byChildEntityKey","childEntityKey"))},
version:3});return iTo()};
ucX=function(K){return _.qX(clO(),K)};
Vj=function(K){return window.Int32Array?new Int32Array(K):Array(K)};
IzS=function(K){return _.qX(azX(),K)};
U_o=function(K){return new S3("WRONG_DATA_TYPE",{encoderVersion:K})};
ReX=function(K){return K instanceof Error?new S3("UNKNOWN_ENCODE_ERROR",{originalMessage:K.message}):new S3("UNKNOWN_ENCODE_ERROR")};
F1Y=function(K){return K instanceof Error?new S3("UNKNOWN_DECODE_ERROR",{originalMessage:K.message}):new S3("UNKNOWN_DECODE_ERROR")};
zeo=function(K,d){K=K instanceof S3?K:d(K);_.$7(K);throw K;};
XES=function(K){K=(new TextEncoder).encode(K).subarray(0,16);var d=new Uint8Array(16);d.set(K);return d};
M25=function(K){var d=v15[K];if(d)return d;_.h3(new _.X4("Entity model not found.",{entityType:K}))};
_.yj=function(){PVY||(PVY=g1n());return PVY};
g1n=function(){var K,d,f;return _.c(function(H){if(H.nextAddress==1)return _.HF(H,2),_.I(H,_.J9(),4);if(H.nextAddress!=2){K=H.yieldResult;if(!K||!_.zs()||typeof _.Hu.BroadcastChannel==="undefined")return H.return();d=new KlN;return H.return(new nF(K,d))}f=_.n7(H);f instanceof Error&&_.$7(f);return H.return()})};
_.iA=function(K,d){var f;return _.c(function(H){if(H.nextAddress==1){f=K.mutations;if(!f||f.length<=0)return H.return();d&&d.dispatch(_.es({type:"ENTITY_LOADED",payload:f}));return _.I(H,dgY(f),2)}f.length=0;_.iQ(H)})};
dgY=function(K){var d;return _.c(function(f){return f.nextAddress==1?_.I(f,_.yj(),2):(d=f.yieldResult)?_.I(f,_.cJ(d,"readwrite",function(H){for(var D={},S=_.y(K),n=S.next(),u={};!n.done;u={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},n=S.next())u.mutation$jscomp$4=n.value,u.mutation$jscomp$4.entityKey&&fPG(u.mutation$jscomp$4)&&(u.mutationEntityType$jscomp$3=(0,_.PR.getAnyKey)(u.mutation$jscomp$4.payload),n=void 0,u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(n=function(a){return function(){return _.HhY(H,
a.mutation$jscomp$4.payload[a.mutationEntityType$jscomp$3],a.mutationEntityType$jscomp$3)}}(u)),u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(n=function(a){return function(){return DgX(H,a.mutation$jscomp$4.entityKey)}}(u)),u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(n=function(a){return function(){return VxS(H,a.mutation$jscomp$4.entityKey,a.mutation$jscomp$4.payload[a.mutationEntityType$jscomp$3],a.mutationEntityType$jscomp$3)}}(u)),n&&(D[u.mutation$jscomp$4.entityKey]=
D[u.mutation$jscomp$4.entityKey]?D[u.mutation$jscomp$4.entityKey].then(n):n()));
return lH.all(Object.values(D))}),0):f.return()})};
fPG=function(K){var d;K=(d=K.options)==null?void 0:d.persistenceOption;return K==="ENTITY_PERSISTENCE_OPTION_PERSIST"||K==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
n5O=function(K,d){var f,H;_.c(function(D){if(D.nextAddress==1)return _.I(D,_.yj(),2);if(D.nextAddress!=3)return(f=D.yieldResult)?_.I(D,_.cJ(f,"readonly",function(S){var n={},u=Object.keys(d).map(function(a){var R=d[a]?[].concat(_.Me(d[a])):[];return SKX(S,a,R,n)});
return lH.all(u).then(function(){return n})}),3):D.return();
H=D.yieldResult;Object.keys(H).length>0&&K.dispatch(yfB(H));_.iQ(D)})};
SKX=function(K,d,f,H){return uA(K,d,f).then(function(D){H[d]=ihX(f,D)})};
ihX=function(K,d){if(d.length!==K.length)throw Error("Af");return d.reduce(function(f,H,D){f[K[D]]=H;return f},{})};
aPN=function(K){var d=K.filter(function(D){var S;return(D==null?void 0:(S=D.transferEntity)==null?void 0:S.transferState)==="TRANSFER_STATE_COMPLETE"}).length,f=K.filter(function(D){var S;
return(D==null?void 0:(S=D.transferEntity)==null?void 0:S.transferState)==="TRANSFER_STATE_FAILED"}).length,H=K.filter(function(D){var S;
return(D==null?void 0:(S=D.transferEntity)==null?void 0:S.transferState)&&cfX.includes(D.transferEntity.transferState)});
if(!(d||H!=null&&H.length))return 0;d=_.uuS(H)+d;K=K.length-f;return K===0?0:Math.round(d*100/K)/100};
_.uuS=function(K){var d=[];d=d.concat.apply(d,_.Me(K.filter(function(S){return S.streamEntity}).map(function(S){var n=Object.assign({},S.streamEntity),u,a=(u=S.transferEntity)==null?void 0:u.transferState;
n.streamsProgress=n.streamsProgress||[];n.streamsProgress=n.streamsProgress.map(function(R){var F=Object.assign({},R);F.numBytesDownloaded=a==="TRANSFER_STATE_COMPLETE"?R.numTotalBytes:R.numBytesDownloaded;return F});
return n}).map(function(S){return S.streamsProgress})));
var f=K=0;d=_.y(d);for(var H=d.next();!H.done;H=d.next()){var D=H.value;H=Number(D.numBytesDownloaded);D=Number(D.numTotalBytes);f+=isNaN(H)?0:H;K+=isNaN(D)?0:D}return K===0?0:Math.round(f*100/K)/100};
IPz=function(K){if(!K||!K.expirationTimestamp||!K.action)return!1;var d=(0,_.k_)()/1E3;return Number(K.expirationTimestamp)>=d};
aO=function(K){return K&&K.expirationTimestamp&&K.action?IPz(K)&&K.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.IO=function(K){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(K||"TRANSFER_STATE_UNKNOWN")};
Ugz=function(K){var d=new fzX;if(K!==void 0){var f=Math.ceil(Math.log2(K.length*4+2)/7);f=f===void 0?2:f;dB(d,10);d.submessagePosStack.push(d.pos);d.submessagePosStack.push(f);d.pos+=f;fF(d,K.length*1.2);f=wLp(K,d.buf.subarray(d.pos));d.pos+f>d.buf.length&&(fF(d,f),f=wLp(K,d.buf.subarray(d.pos)));d.pos+=f;K=d.submessagePosStack.pop();f=d.submessagePosStack.pop();for(var H=d.pos-f-K;K--;){var D=K?128:0;d.view.setUint8(f++,H&127|D);H>>=7}}d=new Uint8Array(d.buf.buffer,d.buf.byteOffset,d.pos);return(new TextDecoder("utf-8")).decode(d)};
_.UV=function(K){var d=0;K=_.y(K);for(var f=K.next(),H={};!f.done;H={transferState$jscomp$3:void 0},f=K.next()){var D=f.value,S=void 0;f=(S=D.streamEntity)!=null?S:{};S=void 0;H.transferState$jscomp$3=(S=D.transferEntity)==null?void 0:S.transferState;S=D=void 0;((D=f)==null?0:(S=D.streamsProgress)==null?0:S.length)&&f.streamsProgress.forEach(function(n){return function(u){u=Number(n.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?u.numTotalBytes:u.numBytesDownloaded);isFinite(u)&&(d+=u)}}(H))}return d};
RFG=function(K){return K.some(function(d){var f;if(!(d==null?0:(f=d.transferEntity)==null?0:f.transferState)){var H;return!(d==null?0:(H=d.policyEntity)==null?0:H.action)||d.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return cfX.includes(d.transferEntity.transferState)})};
Flo=function(K,d){if(!d)return!1;if(_.M("of_pb_en_po_ks"))return!0;var f;K=(f=_.DR(K,"offlineVideoPolicy",_.HJ(d,"offlineVideoPolicy")))!=null?f:void 0;return!!K&&aO(K)};
_.X35=function(K){var d=["TRANSFER_STATE_COMPLETE"];d=d===void 0?zFN:d;return K.filter(function(f){var H,D;return d.includes((D=(H=f.transferEntity)==null?void 0:H.transferState)!=null?D:"TRANSFER_STATE_UNKNOWN")})};
v5J=function(K,d){if(d){var f,H=(f=_.DR(K,"playbackData",_.HJ(d,"playbackData")))!=null?f:null,D;f=(D=_.DR(K,"transfer",_.HJ(d,"transfer")))!=null?D:null;var S;D=(S=_.DR(K,"offlineVideoStreams",_.HJ(d,"offlineVideoStreams")))!=null?S:null;var n;K=(n=_.DR(K,"offlineVideoPolicy",_.HJ(d,"offlineVideoPolicy")))!=null?n:null;if(H||f||D||K)return{playbackDataEntity:H,transferEntity:f,streamEntity:D,policyEntity:K}}};
_.RO=function(K){var d=K.playbackData;if(!d)return[];var f=[];d=_.y(Object.keys(d));for(var H=d.next();!H.done;H=d.next()){var D=H.value;if(!Mx5(K,_.KF(D).entityId)&&(H=v5J(K,_.KF(D).entityId))){var S=void 0,n=void 0;D=(n=Number((S=_.DR(K,"playbackData",D))==null?void 0:S.streamDownloadTimestampSeconds))!=null?n:(0,_.k_)();f.push({entity:H,streamDownloadTimestamp:D})}}return f.sort(function(u,a){var R=u.streamDownloadTimestamp,F=a.streamDownloadTimestamp;return F===R?u.entity.streamEntity&&!a.entity.streamEntity?
1:-1:F-R}).map(function(u){return u.entity})};
P4G=function(K){return _.X35(_.RO(K))};
_.g5X=function(K){return _.RO(K).filter(function(d){var f;if(((f=d.policyEntity)==null?0:f.action)&&d.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var H;if((H=d.transferEntity)==null?0:H.transferState){var D;return cfX.includes((D=d.transferEntity)==null?void 0:D.transferState)}return!0})};
Mx5=function(K,d){var f;return((f=_.DR(K,"downloadStatusEntity",_.HJ(d,"downloadStatusEntity")))==null?void 0:f.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Ohz=function(K){var d;if(K==null?0:(d=K.playbackDataEntity)==null?0:d.key)return _.KF(K.playbackDataEntity.key).entityId;var f;if(K==null?0:(f=K.transferEntity)==null?0:f.key)return _.KF(K.transferEntity.key).entityId;var H;if(K==null?0:(H=K.streamEntity)==null?0:H.key)return _.KF(K.streamEntity.key).entityId;var D;if(K==null?0:(D=K.policyEntity)==null?0:D.key)return _.KF(K.policyEntity.key).entityId};
YKO=function(K){var d=new Set,f;K=(f=K.mainDownloadsListEntity)==null?void 0:f[NOz];var H;if(!(K==null?0:(H=K.downloads)==null?0:H.length))return d;var D;K==null||(D=K.downloads)==null||D.forEach(function(S){(S==null?0:S.videoItem)&&d.add(S.videoItem)});
return d};
Fs=function(K,d){if(d){var f=_.DR(K,"mainVideoEntity",_.HJ(d,"mainVideoEntity")),H=_.DR(K,"downloadStatusEntity",_.HJ(d,"downloadStatusEntity")),D=_.DR(K,"ytMainChannelEntity",_.HJ(d,"ytMainChannelEntity")),S={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};K=v5J(K,d);H=(H==null?void 0:H.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.M("woffle_render_failed_download_state_ks")&&(H==null?void 0:H.downloadState)==="DOWNLOAD_STATE_FAILED";!K&&H&&(K=S);if(K&&f&&
D)return Object.assign({},{videoEntity:f,channelEntity:D},K)}};
o5Y=function(K,d){return txO(K,d)==="TRANSFER_STATE_COMPLETE"&&Flo(K,d)};
$gX=function(K,d){if(!d)return!1;var f;K=(f=_.DR(K,"playbackData",_.HJ(d,"playbackData")))!=null?f:void 0;return!!K&&!!K.playerResponseJson};
txO=function(K,d){if(!d)return"TRANSFER_STATE_UNKNOWN";var f=_.DR(K,"transfer",_.HJ(d,"transfer"));if(f){var H;return(H=f.transferState)!=null?H:"TRANSFER_STATE_UNKNOWN"}f=_.DR(K,"offlineOrchestrationActionWrapperEntity",_.HJ(d,"offlineOrchestrationActionWrapperEntity"));K=_.DR(K,"mainVideoEntity",_.HJ(d,"mainVideoEntity"));return f||K?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
E5p=function(K,d){if(!d)return"TRANSFER_STATE_UNKNOWN";if(K=_.DR(K,"transfer",_.HJ(d,"transfer"))){var f;return(f=K.transferState)!=null?f:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
hFO=function(K,d){return d&&(K=_.DR(K,"videoPlaybackPositionEntity",_.HJ(d,"videoPlaybackPositionEntity")),K==null?0:K.lastPlaybackPositionSeconds)?Number(K.lastPlaybackPositionSeconds):0};
mgX=function(K,d){return bhn(K).some(function(f){var H;return(f==null?void 0:(H=f.mainPlaylistEntity)==null?void 0:H.playlistId)===d})};
WlB=function(K,d,f){var H=lPX(K,d);if(!H.length)return[];d=[];H=_.y(H);for(var D=H.next();!D.done;D=H.next()){D=D.value;var S=Fs(K,D);f&&txO(K,D)!=="TRANSFER_STATE_COMPLETE"||S&&d.push(S)}return d};
lPX=function(K,d){if(!d)return[];var f=_.HJ(d,"mainPlaylistEntity"),H;d=(H=K.mainPlaylistEntity)==null?void 0:H[f];H=[];if(d==null||!d.videos)return H;d=_.y(d.videos);for(f=d.next();!f.done;f=d.next()){f=f.value;var D=void 0,S=void 0,n=void 0,u=(D=K)==null?void 0:(S=D.mainPlaylistVideoEntity)==null?void 0:(n=S[f])==null?void 0:n.video;u&&(f=_.KF(u).entityId)&&H.push(f)}return H};
GHB=function(K,d){if(d){var f=_.DR(K,"mainPlaylistEntity",_.HJ(d,"mainPlaylistEntity")),H=_.DR(K,"mainPlaylistDownloadStateEntity",_.HJ(d,"mainPlaylistDownloadStateEntity"));K=_.DR(K,"ytMainChannelEntity",_.HJ(d,"ytMainChannelEntity"));if(H&&f)return Object.assign({},{mainPlaylistEntity:f,mainPlaylistDownloadStateEntity:H},!!K&&{channelEntity:K})}};
bhn=function(K){return Af5(K).sort(function(d,f){return f.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return d.downloadedPlaylistEntities})};
Af5=function(K){var d=K.mainPlaylistDownloadStateEntity,f=[];if(!d)return f;for(var H=_.y(Object.keys(d)),D=H.next();!D.done;D=H.next()){var S=D.value;D=GHB(K,_.KF(S).entityId);var n=void 0;S=Number((n=d[S])==null?void 0:n.addedTimestampMillis);n=isNaN(S)?(0,_.k_)():S;D!==void 0&&f.push({downloadedPlaylistEntities:D,addedTimestampMillis:n})}return f};
TOY=function(K){var d,f=(d=K.mainPlaylistVideoEntity)!=null?d:{};return new Set(bhn(K).reduce(function(H,D){H=H===void 0?[]:H;var S,n;D==null||(S=D.mainPlaylistEntity)==null||(n=S.videos)==null||n.forEach(function(u){var a;(u=(a=f[u])==null?void 0:a.video)&&H.push(u)});
return H},[]))};
rfo=function(K){return"downloadedMusicPlaylistEntities"in K};
qKY=function(K){return"mainPlaylistEntity"in K&&"mainPlaylistDownloadStateEntity"in K};
QbY=function(K){return"videoEntity"in K&&"channelEntity"in K};
jbz=function(K){var d=K.musicPlaylistDownloadMetadataEntity,f=[];if(!d)return f;for(var H=_.y(Object.keys(d)),D=H.next();!D.done;D=H.next()){D=D.value;a:{var S=K,n=_.KF(D).entityId;if(n){var u=_.DR(S,"musicPlaylist",_.HJ(n,"musicPlaylist"));S=_.DR(S,"musicPlaylistDownloadMetadataEntity",_.HJ(n,"musicPlaylistDownloadMetadataEntity"));if(u&&S){u={musicPlaylistEntity:u,musicPlaylistDownloadStateEntity:S};break a}}u=void 0}S=void 0;D=Number((S=d[D])==null?void 0:S.addedTimestampMillis);D=isNaN(D)?(0,_.k_)():
D;u!==void 0&&f.push({downloadedMusicPlaylistEntities:u,addedTimestampMillis:D})}return f};
C4Y=function(K){var d=new Set;K=_.y(K);for(var f=K.next();!f.done;f=K.next())if(f=f.value,"musicPlaylistEntity"in f&&"musicPlaylistDownloadStateEntity"in f){f=_.y(f.musicPlaylistEntity.tracks);for(var H=f.next();!H.done;H=f.next())d.add(H.value)}return d};
xgu=function(K,d){if(d){var f=_.DR(K,"musicTrack",_.HJ(d,"musicTrack")),H=_.DR(K,"musicArtist",_.HJ(d,"musicArtist"))||{};if((K=v5J(K,d))&&f&&H)return Object.assign({},{musicTrackEntity:f,musicArtistEntity:H},K)}};
Llz=function(K){var d=K.musicTrackDownloadMetadataEntity,f=[];if(!d)return[];d=_.y(Object.keys(d));for(var H=d.next();!H.done;H=d.next()){var D=H.value;H=xgu(K,_.KF(D).entityId);var S=void 0;D=Number((S=_.DR(K,"musicTrackDownloadMetadataEntity",D))==null?void 0:S.addedTimestampMillis);S=isNaN(D)?(0,_.k_)():D;H!==void 0&&f.push({downloadedMusicEntities:H,addedTimestampMillis:S})}return f};
sbz=function(K,d){if(!d)return[];if(Object.values(BOz).includes(d))return JfS(K,d);d=_.HJ(d,"musicPlaylist");var f;K=(f=K.musicPlaylist)==null?void 0:f[d];f=[];if(K==null||!K.tracks)return f;K=_.y(K.tracks);for(d=K.next();!d.done;d=K.next())(d=_.KF(d.value).entityId)&&f.push(d);return f};
JfS=function(K,d){var f=new Set,H=jbz(K).map(function(S){return S.downloadedMusicPlaylistEntities});
H=C4Y(H);H=_.y(H);for(var D=H.next();!D.done;D=H.next())(D=_.KF(D.value).entityId)&&f.add(D);return kHz(K).downloadedMusicEntities.filter(function(S){var n;if((n=S.musicTrackEntity)!=null&&n.videoId){S=S.musicTrackEntity;if(n=d==="PPOM"?!0:!f.has(S.videoId))b:switch(S=S.musicVideoType,d){case "PPSE":n=S==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:n=S!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}S=n}else S=!1;return S}).map(function(S){var n;
return(n=S.musicTrackEntity)==null?void 0:n.videoId})};
kHz=function(K){var d=Llz(K).sort(function(f,H){return H.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return"downloadedMusicEntities"in f?f.downloadedMusicEntities:rfo(f)?f.downloadedMusicPlaylistEntities:{}});
K=jbz(K).sort(function(f,H){return H.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return"downloadedMusicEntities"in f?f.downloadedMusicEntities:rfo(f)?f.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:d,downloadedMusicPlaylistEntities:K}};
ZhB=function(K,d){d=_.mD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?sbz(K,d):lPX(K,d);if(!d.length)return"TRANSFER_STATE_UNKNOWN";d=d.map(function(f){return E5p(K,f)});
return w3J(d)};
w3J=function(K){var d=new Set(K);if(d.has("TRANSFER_STATE_FAILED")&&d.size===1)return"TRANSFER_STATE_FAILED";d.delete("TRANSFER_STATE_FAILED");if(d.has("TRANSFER_STATE_UNKNOWN")&&d.size===1)return"TRANSFER_STATE_PRE_TRANSFER";d.delete("TRANSFER_STATE_UNKNOWN");if(d.has("TRANSFER_STATE_PRE_TRANSFER")&&d.size===1||d.size===0)return"TRANSFER_STATE_PRE_TRANSFER";K=d.has("TRANSFER_STATE_TRANSFERRING");d=d.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return K||d?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
z0=function(K){var d=K.mainVideoDownloadStateEntity,f=[];if(!d)return[];d=_.y(Object.keys(d));for(var H=d.next();!H.done;H=d.next()){var D=H.value;if(!Mx5(K,_.KF(D).entityId)){H=Fs(K,_.KF(D).entityId);var S=void 0,n=void 0;D=(n=Number((S=_.DR(K,"mainVideoDownloadStateEntity",D))==null?void 0:S.addedTimestampMillis))!=null?n:(0,_.k_)();H!==void 0&&f.push({downloadedVideoEntities:H,addedTimestampMillis:D})}}return f};
eFp=function(K){return z0(K).sort(function(d,f){return f.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return d.downloadedVideoEntities})};
_.Kvo=function(K){var d=TOY(K),f=_.Xs(K),H=YKO(K),D=z0(K).filter(function(n){var u,a;if((n==null?void 0:(u=n.downloadedVideoEntities)==null?void 0:(a=u.transferEntity)==null?void 0:a.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var R,F;n=n==null?void 0:(R=n.downloadedVideoEntities)==null?void 0:(F=R.videoEntity)==null?void 0:F.key;return _.M("kevlar_use_library_entity")?n&&(H.has(n)||f[n]):n&&!d.has(n)}),S=Af5(K).filter(function(n){return ZhB(K,n.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Me(D),_.Me(S)).sort(function(n,u){return u.addedTimestampMillis-n.addedTimestampMillis}).map(function(n){return p3G(n)})};
dV5=function(K,d){if(d&&Flo(K,d)){var f,H,D=(H=(f=_.DR(K,"playbackData",_.HJ(d,"playbackData")))!=null?f:void 0)==null?void 0:H.playerResponseJson;if(D){try{var S=JSON.parse(D);var n=_.DR(K,"transfer",_.HJ(d,"transfer")),u=hFO(K,d);u&&(S=Object.assign({},S,{playerConfig:Object.assign({},S.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+u*1E3}}})}));S.cotn=n==null?void 0:n.cotn}catch(a){}return S}}};
_.DVJ=function(K){var d,f,H;K=(H=(f=((d=K.downloadsPageViewConfigurationEntity)!=null?d:{})[fDY])==null?void 0:f.smartDownloadsOptInBannerVisibility)!=null?H:{};var D;return(D=_.P(K,H2z))!=null?D:{}};
_.Xs=function(K){var d,f,H;K=(H=(f=((d=K.mainDownloadsListEntity)!=null?d:{})[_.VA5])==null?void 0:f.downloads)!=null?H:[];d={};f=_.y(K);for(H=f.next();!H.done;H=f.next())K=void 0,d[(K=H.value.videoItem)!=null?K:""]=!0;return d};
SIu=function(K){var d=_.Xs(K);if(Object.keys(d).length===0)return!1;var f=K.mainVideoEntity;if(!f)return!0;f=_.y(Object.keys(f));for(var H=f.next();!H.done;H=f.next()){H=H.value;var D=_.KF(H).entityId;if(d[H]&&!Mx5(K,D))return!1}return!0};
_.vJ=function(K){var d=_.Xs(K);return z0(K).sort(function(f,H){return f.addedTimestampMillis-H.addedTimestampMillis}).map(function(f){return f.downloadedVideoEntities}).filter(function(f){var H;
return(f=f==null?void 0:(H=f.videoEntity)==null?void 0:H.key)&&!!d[f]})};
p3G=function(K){return"downloadedVideoEntities"in K?K.downloadedVideoEntities:"downloadedPlaylistEntities"in K?K.downloadedPlaylistEntities:{}};
yQn=function(K){var d=_.Xs(K),f=TOY(K),H=z0(K).filter(function(D){var S,n;return(D=D==null?void 0:(S=D.downloadedVideoEntities)==null?void 0:(n=S.videoEntity)==null?void 0:n.key)&&!d[D]&&!f.has(D)});
K=Af5(K);return[].concat(_.Me(H),_.Me(K)).sort(function(D,S){return S.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return p3G(D)})};
_.MQ=function(K){if(!_.M("kevlar_use_library_entity"))return yQn(K);var d=z0(K).filter(function(H){var D,S;if(D=H=H==null?void 0:(D=H.downloadedVideoEntities)==null?void 0:(S=D.videoEntity)==null?void 0:S.key){var n,u,a;D=((u=(n=K.mainDownloadsListEntity)==null?void 0:n[NOz])==null?0:(a=u.downloads)==null?0:a.length)?YKO(K).has(H):!1}return D}),f=Af5(K);
return[].concat(_.Me(d),_.Me(f)).sort(function(H,D){return D.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return p3G(H)})};
nHo=function(K){var d=_.Xs(K),f=TOY(K);return eFp(K).filter(function(H){var D;return(H=H==null?void 0:(D=H.videoEntity)==null?void 0:D.key)&&!d[H]&&!f.has(H)})};
i2X=function(K){if(!_.M("kevlar_use_library_entity"))return nHo(K);var d=_.Xs(K),f=YKO(K);return eFp(K).filter(function(H){var D;return(H=H==null?void 0:(D=H.videoEntity)==null?void 0:D.key)&&!d[H]&&f.has(H)})};
cQX=function(K,d){d=_.HJ(d,"settingEntity");var f,H,D;return!!((D=(H=((f=K.settingEntity)!=null?f:{})[d])==null?void 0:H.settingOptionValue)!=null?D:{}).boolValue};
_.PJ=function(K){var d=_.vJ(K);if(RFG(d))return 0;var f=[];d=_.y(d);for(var H=d.next();!H.done;H=d.next()){H=H.value;var D=void 0,S=void 0;if((D=H)==null?0:(S=D.videoEntity)==null?0:S.key)D=_.KF(H.videoEntity.key).entityId,H=K,D=_.HJ(D,"mainVideoDownloadStateEntity"),H=_.DR(H,"mainVideoDownloadStateEntity",D),(H=Number(H==null?void 0:H.addedTimestampMillis))&&f.push(H)}return Math.max.apply(Math,_.Me(f))};
_.gB=function(K){return K.ui.richGridMiniMode};
_.NQ=function(K){return K.ui.richGridItemsPerRow};
_.u3o=function(K){return K.ui.richGridSlimItemsPerRow};
_.aDp=function(K){return K.ui.guideIsExpanded};
_.Yo=function(K){return K.ui.miniplayerIsActive};
_.IDX=function(K){return K.ui.singleOptionSurveyIsActive};
_.tp=function(K){return K.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.UVX=function(K){return K.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.RxO=function(K){return K.ui.inlinePreviewIsActive};
_.Fvo=function(K){return K.ui.inlinePreviewIsEnabled};
_.zx5=function(K){return K.ui.miniplayerPlaybackState};
XrX=function(K){return K.ui.isOnline};
_.vHS=function(K){return K.ui.frostedGlassMode};
_.oO=function(K,d){return txO(K.entities,d)};
_.$o=function(K,d){return ZhB(K.entities,d)};
MAG=function(K,d){var f;if(d){var H;K=(H=_.DR(K.entities,"offlineVideoPolicy",_.HJ(d,"offlineVideoPolicy")))==null?void 0:H.action}else K=void 0;return(f=K)!=null?f:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
PqX=function(K,d){var f;d?(K=_.DR(K.entities,"offlineVideoPolicy",_.HJ(d,"offlineVideoPolicy")),K=Number(K==null?void 0:K.expirationTimestamp)):K=void 0;return(f=K)!=null?f:0};
_.gHB=function(K){return _.RO(K.entities).length};
O2B=function(K,d){return Fs(K.entities,d)};
Nd5=function(K,d){return GHB(K.entities,d)};
EV=function(K,d){return(K=Fs(K.entities,d))?_.uuS([K]):0};
_.YIn=function(K,d){var f=_.mD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(f){var H=K.entities;var D=sbz(H,d);if(D.length){var S=[];D=_.y(D);for(var n=D.next();!n.done;n=D.next())(n=xgu(H,n.value))&&S.push(n);H=S}else H=[]}else H=WlB(K.entities,d);var u;if(f){var a=K.entities;d?(d=_.HJ(d,"musicPlaylist"),a=(u=a.musicPlaylist)==null?void 0:u[d],u=a!=null&&a.tracks?a.tracks.length:0):u=0}else u=K.entities,d?(d=_.HJ(d,"mainPlaylistEntity"),u=(a=u.mainPlaylistEntity)==null?void 0:a[d],u=u!=null&&u.videos?
u.videos.length:0):u=0;return H.length!==u?0:H?aPN(H):0};
_.tAX=function(K){return K.download.isLeaderTab};
_.oHu=function(K,d,f){if(!d&&f){var H=K.entities;if(f){var D=Ugz(f),S,n;d=(n=(S=_.DR(H,"offlineabilityEntity",_.HJ(D,"offlineabilityEntity")))==null?void 0:S.addToOfflineButtonState)!=null?n:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else d="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else S=K.entities,d?(n=Ugz(d),d=(D=(H=_.DR(S,"offlineabilityEntity",_.HJ(n,"offlineabilityEntity")))==null?void 0:H.addToOfflineButtonState)!=null?D:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):d="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return d};
$VG=function(K,d){K=K.entities;if(d){d=Ugz(d);var f,H;d=(H=(f=_.DR(K,"offlineabilityEntity",_.HJ(d,"offlineabilityEntity")))==null?void 0:f.addToOfflineButtonState)!=null?H:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else d="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return d};
_.EHX=function(K){var d=K.entities;K=XrX(K);var f=cQX(d,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.M("kevlar_modern_downloads_page")&&f)var H=!1;else{var D,S;d=(S=(D=((H=d.downloadsPageViewConfigurationEntity)!=null?H:{})[fDY])==null?void 0:D.smartDownloadsOptInBannerVisibility)!=null?S:{};H=K?!!d.visibleWithConnection:!!d.visibleWithoutConnection}return H};
_.hxY=function(K){return cQX(K.entities,"SMART_DOWNLOADS_ENABLED")};
_.b2N=function(K){return SIu(K.entities)};
mV5=function(K){return _.vJ(K.entities).every(function(d){var f;return(d==null?void 0:(f=d.transferEntity)==null?void 0:f.transferState)&&!cfX.includes(d.transferEntity.transferState)})};
_.lDo=function(K,d){return Mx5(K.entities,d)};
Wvz=function(K,d){if(d){var f,H;K=(H=(f=_.DR(K.entities,"downloadStatusEntity",_.HJ(d,"downloadStatusEntity")))==null?void 0:f.downloadState)!=null?H:"DOWNLOAD_STATE_UNKNOWN"}else K="DOWNLOAD_STATE_UNKNOWN";return K};
hp=function(K,d){return hFO(K.entities,d)};
rQp=function(K){K=_.GIX(K);var d=K.hours===void 0?0:K.hours,f=K.minutes===void 0?0:K.minutes,H=K.seconds===void 0?0:K.seconds,D=d>0;K=[];D&&(d=_.AQN(d),K.push(d));d=D;d=d===void 0?!1:d;f=(["af","be","lt"].includes(_.bA)||d)&&f<10?TdO().format(f):(new Intl.NumberFormat("en-u-nu-latn")).format(f);K.push(f);f=TdO().format(H);K.push(f);f=":";"da fi id si sr sr-Latn".split(" ").includes(_.bA)&&(f=".");return K.join(f)};
_.GIX=function(K){var d=K.hours||0,f=K.minutes||0,H=K.seconds||0;d=H+f*60+d*3600+(K.days||0)*86400+(K.weeks||0)*604800+(K.months||0)*2629800+(K.years||0)*31557600;if(d<=0)return{hours:0,minutes:0,seconds:0};K=d;d=Math.floor(K/3600);K%=3600;f=Math.floor(K/60);H=Math.floor(K%60);return{hours:d,minutes:f,seconds:H}};
_.AQN=function(K){K=(new Intl.NumberFormat("en-u-nu-latn")).format(K);var d=["fr"],f="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(_.bA)?K.replace(",","\u00a0"):d.includes(_.bA)?K.replace(",","\u202f"):f.includes(_.bA)?K.replace(",","."):K};
TdO=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
qIY=function(K){try{return(new _.mS(5)).format(K)}catch(d){}};
lA=function(K){return{thumbnailOverlayDownloadingRenderer:{state:K}}};
Qao=function(K){if(K=qIY(K))return{thumbnailOverlaySidePanelRenderer:{text:_.kJ(K),icon:{iconType:"PLAYLISTS"}}}};
jan=function(){var K=_.iB("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.kJ(K),icon:{iconType:"PLAY_ALL"}}}};
CqX=function(K){K=_.WJ(K,2);return _.bA!=="ru"&&_.bA!=="es_419"&&_.bA!=="es-419"&&_.bA!=="es"&&_.bA!=="es_US"&&_.bA!=="es-US"&&_.bA!=="fr"&&_.bA!=="pl"&&_.bA!=="it"&&_.bA!=="nl"&&_.bA!=="uk"&&_.bA!=="fr_CA"&&_.bA!=="fr-CA"||K===""?K:K[0].toLocaleUpperCase()+K.substring(1)};
LvG=function(K){return function(d){var f=K(),H=_.WJ(d,f.dateFormat);d=_.WJ(d,f.timeFormat);var D=xVN.DATETIMEFORMATS[f.joinerStyle];D=D.replace(/'(?!')/g,"");D=D.replace("{0}",d);D=D.replace("{1}",H);return f.capitalize(D)}};
BdB=function(K){return K?typeof K.seconds==="string"&&(K.nanos===void 0||typeof K.nanos==="number"):!1};
JQn=function(K){return new Date(Number(K.seconds)*1E3+(K.nanos||0)*1E-6)};
_.WJ=function(K,d){if(typeof K.getTime==="function")K={date:K};else if(BdB(K))K={date:JQn(K)};else if(typeof BdB(K.timestamp)&&typeof K.i18nInternalSecondsEastOfUtc==="number")K={date:JQn(K.timestamp),timeZone:G0(-K.i18nInternalSecondsEastOfUtc/60)};else throw Error("Bf`"+JSON.stringify(K));var f=K;K=f.date;f=f.timeZone;d=saN(d).format(K,f);_.bA==="zh-TW"&&(K=f?Number(saN("H").format(K,f)):K.getHours(),d=K<5?d.replace("\u4e0a\u5348","\u51cc\u6668"):K<8?d.replace("\u4e0a\u5348","\u65e9\u4e0a"):K<12?
d.replace("\u4e0a\u5348","\u4e0a\u5348"):K<13?d.replace("\u4e0b\u5348","\u4e2d\u5348"):K<19?d.replace("\u4e0b\u5348","\u4e0b\u5348"):d.replace("\u4e0b\u5348","\u665a\u4e0a"));return d};
saN=function(K){if(kIB.has(K))return kIB.get(K);var d=wr5(K);d=Z2Y(d);exo!==!0&&(exo=!0);prp=!0;prp=!1;d=new Ap(d,xVN);kIB.set(K,d);return d};
wr5=function(K){return(new Ap(K,xVN)).patternParts_.map(function(d){return d.type===0?"'"+d.text+"'":d.text}).join("")};
Z2Y=function(K){return _.bA==="en"||_.bA==="es_US"||_.bA==="es-US"?K:K.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(d,f,H){return"H".repeat(f.length)+H})};
y_z=function(K,d){KMY||(_.T0=_.dpO,KMY=new fBp);var f=KMY;a:if(K=H5o(K),d=H5o(d||new Date),K>d)f=K.getTime()-d.getTime()>6048E5?_.WJ(K,1):DpS(K);else{for(var H=0;VJJ(K,12*(H+1))<d;)++H;if(H>0)f=f.format(-H,0);else{for(H=0;VJJ(K,H+1)<d;)++H;if(H>0)f=f.format(-H,2);else{K=d.getTime()-K.getTime();d=_.y(S0Y);for(H=d.next();!H.done;H=d.next()){H=H.value;var D=H.unit,S=Math.floor(K/H.unitDuration);if(S>=(H.threshold===void 0?1:H.threshold)){f=f.format(-S,D);break a}}f=f.format(-0,7)}}}return f};
H5o=function(K){if(typeof K.getTime==="function")return K;if(BdB(K))return JQn(K);throw Error("Cf`"+JSON.stringify(K));};
VJJ=function(K,d){for(var f=0,H;;++f)if(H=new Date(K.getFullYear(),K.getMonth()+d,K.getDate()-f,K.getHours(),K.getMinutes(),K.getSeconds()),H.getMonth()===(K.getMonth()+d)%12)return H};
_.rB=function(K){return{runs:[{text:K}]}};
_.qQ=function(K){if(K&&K.simpleText)return K.simpleText;var d="";if(K&&K.runs)for(var f=0;f<K.runs.length;f++)K.runs[f].text&&(d+=K.runs[f].text);return d};
i5X=function(K,d,f,H){return K.videoEntity&&!K.policyEntity&&f!=="DOWNLOAD_STATE_FAILED"?[lA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:aO(K.policyEntity)&&d!=="TRANSFER_STATE_FAILED"&&d!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?d==="TRANSFER_STATE_PAUSED_BY_USER"?[lA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.IO(d)?[lA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:K.videoEntity.lengthSeconds?nfo(K.videoEntity.lengthSeconds,H):[]:
[lA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
nfo=function(K,d){var f=[{thumbnailOverlayTimeStatusRenderer:{text:_.kJ(rQp({seconds:K})),style:"DEFAULT"}}];d&&(K=d<=0||K<=0?0:d>=K?100:Math.ceil(d*100/K),K>0&&f.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:K}}));return f};
c_u=function(K,d,f,H,D){if(d==="TRANSFER_STATE_UNKNOWN"||!K)return{};if(_.IO(d)||d==="TRANSFER_STATE_PRE_TRANSFER")var S=[lA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var n,u;if(d==="TRANSFER_STATE_COMPLETE"&&((n=K.mainPlaylistEntity)==null?0:(u=n.videos)==null?0:u.length)){if(_.M("web_modern_collections_v2")){var a;var R=(S=K.mainPlaylistEntity)==null?void 0:(a=S.videos)==null?void 0:a.length;S=(S=qIY(R))?{thumbnailOverlayBottomPanelRenderer:{text:_.kJ(S),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var F;S=Qao((R=K.mainPlaylistEntity)==null?void 0:(F=R.videos)==null?void 0:F.length)}var z;S=[jan(),Object.assign({},(z=S)!=null?z:{})]}else S=[]}z=S;a:if(d==="TRANSFER_STATE_PRE_TRANSFER")f=wN(_.iB("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(d==="TRANSFER_STATE_TRANSFER_IN_QUEUE")f=wN(_.iB("WAITING_TO_DOWNLOAD"));else if(_.IO(d))f=Math.floor(f*100).toString(),f=wN(_.iB("DOWNLOADING_PERCENT",{percent:f},"Downloading... "+f+"%"));else{if(H&&(_.M("playlist_is_offline_selector_killswitch")&&
(D=_.eq().resolve(_.jc).isNetworkAvailable()),D)){f=xhS(_.iB("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),jsu(H));break a}f=void 0}d=d==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.iB("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},z.length?{thumbnailOverlays:z}:{},f?{viewPlaylistText:f}:{viewPlaylistText:_.rB("")},d.length?{badges:d}:{})};
uvG=function(K,d,f,H,D,S){if(d==="TRANSFER_STATE_UNKNOWN"||!K)return{};if(H==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var n=i5X(K,d,H);if(K.videoEntity&&!K.policyEntity&&H!=="DOWNLOAD_STATE_FAILED"){var u=_.iB("WAITING_TO_DOWNLOAD");if(u)return{shortViewCountText:_.rB(u),publishedTimeText:void 0,thumbnailOverlays:n}}if(!aO(K.policyEntity)){S=K.policyEntity&&!IPz(K.policyEntity)?_.iB("DOWNLOAD_EXPIRED",{},"Download expired"):
_.iB("TRANSFER_FAILED",{},"Download failed");var a;if((a=K.policyEntity)==null?0:a.shortMessageForDisabledAction)S=K.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:wN(S),publishedTimeText:void 0,thumbnailOverlays:n}}if(d==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.rB(_.iB("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:n};if(d==="TRANSFER_STATE_FAILED"||d==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.rB(_.iB("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:n};if(d==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(a=_.iB("WAITING_TO_DOWNLOAD"),H==="DOWNLOAD_STATE_PAUSED"&&(a=_.iB("DOWNLOAD_PAUSED",{},"Download paused")),a))return{shortViewCountText:_.rB(a),publishedTimeText:void 0,thumbnailOverlays:n};if(_.IO(d))return K=Math.floor(f*100).toString(),{shortViewCountText:_.rB(_.iB("DOWNLOADING_PERCENT",{percent:K},"Downloading... "+K+"%")),publishedTimeText:void 0,thumbnailOverlays:n};d=void 0;K.videoEntity.publishedTimestampMillis&&
(d=new Date,D&&(d=new Date(D)),d=wN(y_z(new Date(Number(K.videoEntity.publishedTimestampMillis)),d)));D=[];_.M("kevlar_woffle_badge_killswitch")||(D=[{metadataBadgeRenderer:{label:_.iB("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var R;K=wN((R=K.videoEntity.localizedStrings)==null?void 0:R.viewCount);return Object.assign({},S?{shortViewCountText:void 0}:{shortViewCountText:K},S?{}:{publishedTimeText:d},{badges:D,thumbnailOverlays:n})};
IBJ=function(K,d){K=K===void 0?aB5:K;switch(d.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:d.payload.playlistId,inviteLinkURL:d.payload.inviteLinkUrl};default:return K}};
RlN=function(K,d){K=K===void 0?Upu:K;switch(d.type){case "SET_CURRENT_FORM_ID":return d=d.payload.formId,K.currentFormId===d?K:{currentFormId:d,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var f=d.payload;d=f.groupId;f=f.command;if(K.currentFormId){var H=Object.assign({},K.commandsMap);H[d]=f;K=Object.assign({},K,{commandsMap:H})}return K;case "RESET_COMMAND_MAP":return Object.assign({},K,{commandsMap:{}});default:return K}};
zlz=function(K,d){K=K===void 0?FMY:K;switch(d.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},K,{guideIsExpanded:d.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},K,{scrollAtTop:d.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},K,{guideIsVisibleButNotPersistent:d.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},K,{miniplayerIsActive:d.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},K,{singleOptionSurveyIsActive:d.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},K,{slimlineSurveyRatingSelectedIndex:d.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},K,{richGridMiniMode:d.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},K,{richGridItemsPerRow:d.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},K,{richGridSlimItemsPerRow:d.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},K,{richGridContainerWidth:d.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},K,{richGridStyle:d.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},K,{currentPageType:d.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},K,{inlinePreviewIsActive:d.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},K,{inlinePreviewIsEnabled:d.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},K,{darkModeIsEnabled:d.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
K,{miniplayerPlaybackState:d.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},K,{tabGesturesIsActive:d.payload});case "SET_ONLINE_STATUS":return Object.assign({},K,{isOnline:d.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},K,{chipBarIsSticky:d.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},K,{frostedGlassMode:d.payload});default:return K}};
vfB=function(K,d){K=K===void 0?X5X:K;switch(d.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},K,{transcription:d.payload});case "SET_OVERLAY_STATE":return Object.assign({},K,{overlay:d.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return K}};
EfY=function(){return y8(Object.assign({},{continuation:MJJ,entities:Shp,download:Pin,reportChannelAbuse:gfu,share:O5B,talkToRecs:Nxo,ui:zlz,voiceSearch:vfB,watch:Y0p,ypc:tJ5,shorts:of5,radioButtonGroup:RlN,collabInviteLink:IBJ},$po))};
mpO=function(){return _.M("web_player_entities_middleware")?new Qj(EfY(),[hlN,b5B]):new Qj(EfY(),[hlN])};
_.j3=function(){lBz||(lBz=mpO());return lBz};
WMu=function(K,d,f){if(K.length)return{titleText:_.kJ(d!=null?d:_.iB("DOWNLOADS",void 0,"Downloads")),contents:K.map(function(H){var D=H.videoEntity;H={videoId:D.videoId,title:wN(D.title),shortBylineText:wN(H.channelEntity.title),thumbnail:D.thumbnail};var S=D.videoId?hp(_.j3().getState(),D.videoId):0;D.videoId&&f?H.navigationEndpoint=_.sx(D.videoId,f,void 0,void 0,S):D.videoId&&(H.navigationEndpoint=Qs5(D.videoId,S,D.lengthSeconds));D.lengthSeconds&&(H.thumbnailOverlays=nfo(D.lengthSeconds,S));return{playlistPanelVideoRenderer:H}}),
totalVideos:K.length}};
GZo=function(K){return(K=(0,_.PR.getValueByKeys)(K,"playlistId"))?{playlistId:K}:null};
A_z=function(){return{}};
TxB=function(K,d){return new _.ip(function(f,H){K.then(function(D){if(D){if(D=d(D))return f(D);H()}},H)})};
r_O=function(K){var d,f,H,D=(d=K.contents)==null?void 0:(f=d.twoColumnWatchNextResults)==null?void 0:(H=f.autoplay)==null?void 0:H.autoplay,S,n,u;d=(S=K.contents)==null?void 0:(n=S.twoColumnWatchNextResults)==null?void 0:(u=n.playlist)==null?void 0:u.playlist;return D&&d&&d.playlistId?{rawResponse:K,autoplayRenderer:D,playlistPanelRenderer:d,playlistId:d.playlistId}:null};
QvN=function(K){var d=d===void 0?"UNKNOWN_INTERFACE":d;if(K.length===1)return K[0];var f=q0S[d];if(f){f=new RegExp(f);for(var H=_.y(K),D=H.next();!D.done;D=H.next())if(D=D.value,f.exec(D))return D}var S=[];Object.entries(q0S).forEach(function(n){var u=_.y(n);n=u.next().value;u=u.next().value;d!==n&&S.push(u)});
f=new RegExp(S.join("|"));K.sort(function(n,u){return n.length-u.length});
H=_.y(K);for(D=H.next();!D.done;D=H.next())if(D=D.value,!f.exec(D))return D;return K[0]};
_.CF=function(K){return"/youtubei/v1/"+QvN(K)};
_.xo=function(K){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:K}}}}};
_.LF=function(K){return _.xo(_.rB(K))};
jvG=function(K,d){var f={mode:"NORMAL"};K&&(f.autoplayVideo=K.navigationEndpoint,f.nextButtonVideo=K.navigationEndpoint);d&&(f.previousButtonVideo=d.navigationEndpoint);return f};
LMY=function(K,d,f){if(!f||!f.sets)return{sets:[jvG(K,d)]};var H=f.sets.find(function(n){return n.mode==="NORMAL"}),D=(0,_.PR.unsafeClone)(f);
if(!H)return D.sets.push(jvG(K,d)),D;if(!K)return f;H=_.PR.getValueByKeys.apply(null,[H].concat(_.Me(CiS)));var S=_.PR.getValueByKeys.apply(null,[K].concat(_.Me(xpY)));if(H===S)return f;D.sets=D.sets.filter(function(n){return n.mode!=="NORMAL"});
D.sets.push(jvG(K,d));return D};
Bxp=function(K){return!!K.playlistPanelVideoRenderer&&!K.playlistPanelVideoRenderer.unplayableText};
J_z=function(K){return!!K.playlistPanelVideoRenderer&&!!K.playlistPanelVideoRenderer.title};
svz=function(K,d){if(d.contents&&!(K>=d.contents.length)&&(K=d.contents.slice(K).find(Bxp)))return K.playlistPanelVideoRenderer};
kZO=function(K,d){if(d.contents)return(d=d.contents.find(function(f){return!!f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.videoId===K}))?d.playlistPanelVideoRenderer:void 0};
w55=function(K,d){return d.contents?d.contents.findIndex(function(f){return!!f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.videoId===K}):-1};
Z5X=function(K,d){return d.contents?d.contents.findIndex(function(f){return!!f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.playlistSetVideoId===K}):-1};
elO=function(K,d){K.contents&&d!==-1&&K.contents.splice(d,1).length===1&&K.totalVideos!==void 0&&(--K.totalVideos,delete K.videoCountText)};
_.p5Y=function(K){var d=[];if(!K||!K.contents)return d;K=_.y(K.contents);for(var f=K.next();!f.done;f=K.next())f=f.value,f.playlistPanelVideoRenderer&&f.playlistPanelVideoRenderer.videoId&&d.push(f.playlistPanelVideoRenderer.videoId);return d};
_.KPY=function(K){if(K&&K.contents)return(K=K.contents.find(function(d){return!!d.playlistPanelVideoRenderer&&!!d.playlistPanelVideoRenderer.selected})||K.contents[K.currentIndex])?K.playlistPanelVideoRenderer:void 0};
dzN=function(K,d,f,H,D,S,n){D=D===void 0?!1:D;S=S===void 0?!1:S;n=n===void 0?!1:n;if(K.contents&&K.contents.length!==0){H&&(K.contents=K.contents.filter(H));H=K.contents.length;for(var u=0;u<H;u++){var a=K.contents[u].playlistPanelVideoRenderer;a&&(u===d?(S&&delete a.menu,a.indexText=_.rB("\u25b6")):D||K.isInfinite||a.indexText===void 0?delete a.indexText:a.indexText=_.rB((u+1+f).toString()))}K.currentIndex=d+f;n&&(delete K.videoCountText,K.totalVideos=H)}};
_.BJ=function(K){K=fIB(K);if(K){var d=K.length;var f=-84%d;f<0&&(f=d+f);K=K.slice(d-f)+K.slice(0,d-f)}else K="";f="";for(d=0;d<K.length&&K[d]!==HI5;d++)f+=K[d];return f};
_.Dzn=function(K,d){var f=document.body;d=d===void 0?function(u){return u}:d;
var H,D=null;K=_.y(K);for(H=K.next();!H.done;H=K.next()){var S=H.value;H=document.createElement("div");D||(D=H);var n=S[0];S=S[1];n&&(H.id=d(n));if(S)for(n=_.y(S),S=n.next();!S.done;S=n.next())H.classList.add(d(S.value));f.appendChild(H);f=H}return[D,f]};
VbX=function(K,d){for(var f="",H=0;H<d;H++)f+=K.charAt(Math.floor(Math.random()*K.length));return f};
Jp=function(K){return VbX("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",K)};
sV=function(K){return VbX("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",K)};
ko=function(K){return VbX("0123456789",K)};
wB=function(){var K=performance.now(),d=new Date;var f="2."+d.getFullYear()+String(d.getMonth()+1).padStart(2,"0")+String(d.getDate()).padStart(2,"0");for(var H,D=Math.floor(Math.random()*11)+15,S=[],n=0;n<D;n++)S.push(Math.floor(Math.random()*26476865)+24547720);H=S.join(",");var u=Jp(10),a=Jp(100),R=Jp(102),F=Jp(106),z=Jp(108),v=Jp(11),g=Jp(1140),N=Jp(123),h=Jp(14),m=Jp(16),T=Jp(1900),r=Jp(23),J=Jp(26),L=Jp(34),fB=Jp(397),w=Jp(44),yO=Jp(5),FX=Jp(72),NJ=Jp(74),$z=Jp(75),hN=Jp(88),bo=Jp(91),xz="rr5---sn-q4flrney rr3---sn-aigl6nsd rr1---sn-ntqe6nel rr2---sn-hgn7yn7l rr2---sn-q4flrnsk rr1---sn-ntqe6nes rr4---sn-q4fl6n6d rr2---sn-hgn7ynek rr1---sn-q4flrn7r rr1---sn-q4flrnes rr3---sn-q4flrnss rr3---sn-ntqe6n76 rr4---sn-q4flrnle rr5---sn-q4flrnel rr4---sn-q4fl6nds rr2---sn-q4flrnel rr3---sn-q4fl6n6d rr1---sn-q4fl6n6z rr5---sn-aigl6nsd rr1---sn-ntq7ynle".split(" ");
var qJ=xz[Math.floor(Math.random()*xz.length)];var Y8=(new Date("2010-01-01")).getTime();var Iz=(new Date(Y8+Math.random()*((new Date).getTime()-Y8))).toISOString().split("T")[0];for(var qs,af=[],i9=0;i9<4;i9++)af.push(Math.floor(Math.random()*100));qs=af.join(".");var KE=Number(ko(5)),c4=Number(ko(6)),cx=Number(ko(7)),Oj=Number(ko(9)),io=ko(1),g2=ko(10),l9=ko(16),rw=ko(19),t6=ko(2),LJ=ko(20),ry=ko(21),u9=ko(3),wz=ko(4),Ms=ko(5),yc=ko(6),P4=ko(7),zy=ko(8),nw=ko(9);var Sc=VbX("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var AP=[sV(5),sV(5),sV(5)].join("%2C"),zf=[ko(3),ko(5),ko(5)].join("%2C"),Ss=sV(0),Qv=sV(1),PK=sV(10),Z7=sV(108),Kw=sV(11),Yl=sV(12),qe=sV(13),W_=sV(14),Il=sV(15),w5=sV(16),tG=sV(17),Pu=sV(18),GS=sV(19),jp=sV(2),Rf=sV(20),D7=sV(22),o6=sV(23),cK=sV(24),v4=sV(266),FH=sV(3),Fi=sV(30),a6=sV(34),St=sV(35),Fa=sV(36),Un=sV(4),lN=sV(40),Xy=sV(43),y9=sV(47),tD=sV(5),LB=sV(6),fE=sV(7),iN=sV(75),xw=sV(8),Ne=sV(80),Yh=sV(9),$s="https://www."+sV(12)+".com",a2={},I2={},FV={},LtY={},zt={},C6={},xx={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:H}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:f},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+sV(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:f},{key:"client.name",value:"WEB"},{key:"client.fexp",value:H}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:ry+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+sV(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:lN,ypcGetOfflineUpsellEndpoint:{params:Ne}},trackingParams:St+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&cnr="+t6+"&ratebypass=yes&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&c=WEB&txp="+P4+"&n="+m+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:c4,width:640,height:360,lastModified:l9,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:P4,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+zf+"&mn="+
AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&cnr="+t6+"&ratebypass=yes&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&c=WEB&txp="+P4+"&n="+m+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Z7+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:c4,width:1280,
height:720,lastModified:l9,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:P4,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+zf+"&mn="+AP+"&ms="+
AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+nw+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:cx,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:nw,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:cx,approxDurationMs:P4},{itag:248,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+zf+"&mn="+AP+"&ms="+AP+"&mv="+
Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fwebm&ns="+cK+"&gir="+FH+"&clen="+nw+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&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="+z,mimeType:'video/webm; codecs="vp9"',bitrate:cx,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:nw,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:cx,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:399,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+nw+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:cx,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:nw,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:cx,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:136,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+nw+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:cx,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:nw,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:c4,approxDurationMs:P4},{itag:247,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+zf+"&mn="+
AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fwebm&ns="+cK+"&gir="+FH+"&clen="+nw+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:cx,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:nw,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:c4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:398,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+nw+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:cx,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:nw,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:c4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:135,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:c4,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:c4,approxDurationMs:P4},{itag:244,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+zf+"&mn="+
AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fwebm&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z7+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:c4,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:c4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:397,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:c4,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:c4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:134,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:c4,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:c4,highReplication:!0,approxDurationMs:P4},{itag:243,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fwebm&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&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="+z,mimeType:'video/webm; codecs="vp9"',bitrate:c4,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:c4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:396,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:c4,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:c4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:133,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:c4,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:c4,approxDurationMs:P4},{itag:242,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+zf+"&mn="+
AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fwebm&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:c4,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:c4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:395,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:c4,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:c4,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:160,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&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="+z,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:c4,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:KE,approxDurationMs:P4},{itag:278,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+zf+"&mn="+
AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fwebm&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:c4,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:KE,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:394,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&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="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=video%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:KE,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:KE,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:140,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=audio%2Fmp4&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&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="+z,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:c4,
initRange:{start:"0",end:"631"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:c4,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:P4,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+
t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=audio%2Fwebm&ns="+cK+"&gir="+FH+"&clen="+P4+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&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="+z,mimeType:'audio/webm; codecs="opus"',bitrate:KE,initRange:{start:"0",end:"265"},indexRange:{start:u9,
end:wz},lastModified:l9,contentLength:P4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:KE,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:P4,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=audio%2Fwebm&ns="+
cK+"&gir="+FH+"&clen="+P4+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+P4+"&n="+w5+"&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="+z,mimeType:'audio/webm; codecs="opus"',bitrate:KE,initRange:{start:"0",end:"265"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:P4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:KE,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:P4,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+qJ+".googlevideo.com/videoplayback?expire="+g2+"&ei="+r+"&ip="+qs+"&id=o-AF"+Xy+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+zf+"&mn="+AP+"&ms="+AP+"&mv="+Qv+"&mvi="+io+"&pl="+t6+"&initcwndbps="+P4+"&siu="+io+"&spc="+w+"&vprv="+io+"&svpuc="+io+"&mime=audio%2Fwebm&ns="+cK+"&gir="+FH+"&clen="+zy+"&dur="+zy+"&lmt="+l9+"&mt="+g2+"&fvip=3&keepalive="+FH+"&c=WEB&txp="+
P4+"&n="+w5+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+a+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/webm; codecs="opus"',bitrate:c4,initRange:{start:"0",end:"265"},indexRange:{start:u9,end:wz},lastModified:l9,contentLength:zy,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:c4,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:P4,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="+nw+"&docid="+v+"&ei="+r+"&feature="+u+"&fexp="+Ss+"&ns="+jp+"&plid="+m+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Qv+"&el="+PK+"&len="+wz+"&of="+D7+
"&uga="+t6+"&vm="+v4},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+nw+"&docid="+v+"&ei="+r+"&feature="+u+"&fexp="+Ss+"&ns="+jp+"&plid="+m+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Qv+"&el="+PK+"&len="+wz+"&of="+D7+"&uga="+t6+"&vm="+v4},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+nw+"&docid="+v+"&ei="+r+"&feature="+u+"&fexp="+Ss+"&ns="+jp+"&plid="+m+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Qv+"&el="+PK+"&len="+wz+"&of="+D7+"&uga="+t6+"&vm="+v4},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+r+"&m="+hN+"&oid="+D7+"&plid="+m+"&pltype="+fE+"&ptchn="+D7+"&ptk="+h+"&video_id="+v},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+nw+"&docid="+v+"&ei="+r+"&event="+W_+"&feature="+u+"&fexp="+Ss+"&ns="+jp+"&plid="+m+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Qv},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+v+"&ei="+r+"&feature="+
u+"&len="+wz+"&ns="+jp+"&plid="+m+"&ver="+io,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+v+"&caps="+FH+"&opi="+nw+"&xoaf="+io+"&hl="+jp+"&ip="+qs+"&ipbits="+io+"&expire="+g2+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+qs+"&key="+FH+"&lang="+yO,name:{simpleText:fE},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+v+"&caps="+FH+"&opi="+nw+"&xoaf="+io+"&hl="+jp+"&ip="+qs+"&ipbits="+io+"&expire="+g2+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+qs+"&key="+FH+"&kind="+FH+"&lang="+jp,name:{simpleText:tG},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:Kw,title:Un,lengthSeconds:"1155",keywords:[qe,Kw,Yl,PK],
channelId:cK,isOwnerViewing:!1,shortDescription:Pu,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Fa+"G&rs="+a6,width:168,height:94},{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Fa+"G&rs="+a6,width:196,height:110},{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Fa+"G&rs="+L,width:246,height:138},{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Fa+"G&rs="+L,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
v+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:P4,author:qe,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:P4,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+D7+"/featured_channel.jpg?v="+xw,width:40,height:40}]},trackingParams:St+"=",navigationEndpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{url:"/channel/"+cK,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:cK}},channelName:qe,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:LB}]},subscribed:!1,enabled:!0,type:"FREE",channelId:cK,showPreferences:!1,subscribedButtonText:{runs:[{text:Il}]},unsubscribedButtonText:{runs:[{text:fE}]},trackingParams:St+"=",unsubscribeButtonText:{runs:[{text:qe}]},serviceEndpoints:[{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[cK],params:xw}},{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:lN,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:St+"=",dialogMessages:[{runs:[{text:W_},{text:xw},{text:Un}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:GS}]},serviceEndpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[cK],params:xw}},accessibility:{label:LB},trackingParams:St+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Yh}]},accessibility:{label:w5},trackingParams:St+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:W_}},unsubscribeAccessibility:{accessibilityData:{label:Yl}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:zy},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[cK],params:xw}},unsubscribeCommand:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[cK],params:xw}},addToWatchLaterCommand:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Kw,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Kw}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+v+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Fa+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
v+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Kw,width:1280,height:720},title:{simpleText:Yl},description:{simpleText:W_},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+fE,externalChannelId:cK,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:P4,category:"Travel & Events",publishDate:Iz,ownerChannelName:qe,uploadDate:Iz}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:PK},trackingParams:St+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:lN,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:St+"="}}],headerText:{simpleText:GS},icon:{infoCardIconRenderer:{trackingParams:St+"="}},closeButton:{infoCardIconRenderer:{trackingParams:St+"="}},trackingParams:St+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:St+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Kw+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Sc,interpreterSafeUrl:(a2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Fi+".js",a2),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:tD},{text:GS,bold:!0}]},endpoint:{clickTrackingParams:lN,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:St+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:W_}]},actionButton:{buttonRenderer:{text:{runs:[{text:Kw}]},navigationEndpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+v,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
v,target:"TARGET_NEW_WINDOW"}},trackingParams:St+"="}},trackingParams:St+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+FX+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+FX+"=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:P4,endMs:P4,title:{accessibility:{accessibilityData:{label:GS}},simpleText:Il},metadata:{simpleText:w5},callToAction:{simpleText:LB},dismiss:{simpleText:w5},endpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{url:"/channel/"+cK,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:cK}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:xw}]},subscribed:!1,enabled:!0,type:"FREE",channelId:cK,showPreferences:!1,
subscribedButtonText:{runs:[{text:Il}]},unsubscribedButtonText:{runs:[{text:tG}]},trackingParams:St+"=",unsubscribeButtonText:{runs:[{text:Kw}]},serviceEndpoints:[{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[cK],params:xw}},{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:lN,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:St+
"=",dialogMessages:[{runs:[{text:Pu},{text:Kw},{text:GS}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:qe}]},serviceEndpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[cK],params:xw}},accessibility:{label:Pu},trackingParams:St+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Un}]},
accessibility:{label:Pu},trackingParams:St+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:w5}},unsubscribeAccessibility:{accessibilityData:{label:Rf}}}},trackingParams:St+"=",isSubscribe:!0,id:LJ}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Fa+"G&rs="+L,width:168,height:94},{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Fa+"G&rs="+a6,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Fa+"G&rs="+L,width:246,height:138},{url:"https://i.ytimg.com/vi/"+v+"/hqdefault.jpg?sqp=-oaymwE"+Fa+"G&rs="+L,width:336,height:188},{url:"https://i.ytimg.com/vi/"+v+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:P4,endMs:P4,title:{accessibility:{accessibilityData:{label:xw}},simpleText:Yl},metadata:{simpleText:Il},endpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Kw,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Kw,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+qJ+".googlevideo.com/videoplayback?source=youtube&oeis="+io+"&c=WEB&oad="+wz+"&ovd="+wz+"&oaad="+Ms+"&oavd="+Ms+"&ocs="+u9+"&oewis="+io+"&oputc="+io+"&ofpcc="+io+"&siu="+io+"&msp="+io+"&odepv="+io+
"&id=o-AF"+Xy+"&ip="+qs+"&initcwndbps="+P4+"&mt="+g2+"&oweuc="+Ss}}}}},trackingParams:St+"=",id:LJ,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:tG}},simpleText:qe},style:"DEFAULT"}}]}}],startMs:P4,trackingParams:St+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:io,offsetEndMilliseconds:Ms},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nw+";dc_trk_cid="+nw+";dc_dbm_token="+z+";ord="+g2+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+io+";dc_rui="+io+";dc_exteid="+LJ+";dc_av="+u9+";dc_sk="+io+";dc_ctype="+t6+";dc_ref=http://www.youtube.com/video/"+Kw+";dc_pubid="+io+";dc_btype=23?gclid="+bo+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+io+"&ns="+io+"&event="+io+"&device="+io+"&content_v="+v+"&el="+PK+"&ei="+r+"&devicever="+f+"&bti="+P4+"&format="+yc+"&break_type="+io+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+io+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+qs+"&slot_pos="+io+"&slot_len="+io+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+zf+"&ad_len="+Ms+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Kw+"&aqi="+r+"&ad_rmp="+io+"&sli="+io}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+
";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+yc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+P4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&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"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&ctype="+u9+"&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"+
g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_engaged_view&ctype="+u9+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+yc+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
nw+";dc_trk_cid="+nw+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+io+";ord="+nw+";dc_rui="+io+";dc_exteid="+rw+";dc_av="+io+";dc_sk="+io+";dc_ctype="+t6+";dc_pubid="+io+";dc_btype=3?gclid="+bo+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+o6+"&ad_cpn=[AD_CPN]&id="+LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&dc_pubid="+io+"&dc_exteid="+LJ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+o6+"&ad_cpn=[AD_CPN]&id="+LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+io},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&avm="+io+"&dc_pubid="+io+"&dc_exteid="+
LJ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&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="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
R+"&sig="+o6+"&ad_cpn=[AD_CPN]&id="+LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+io},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&dc_pubid="+io+"&dc_exteid="+LJ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+yc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+yc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:lN,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+
u9+"&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/"+v+"/mqdefault.jpg",width:320,height:180}]},trackingParams:St+"="},trackingParams:St+
"=",templatedCountdown:{templatedAdText:{text:W_,isTemplated:!0,trackingParams:St+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Il,isTemplated:!1,trackingParams:St+"="},trackingParams:St+"="}},trackingParams:St+"=",skipOffsetMilliseconds:5E3}},trackingParams:St+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Pu},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:St+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:fE,isTemplated:!1,trackingParams:St+"="},trackingParams:St+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Pu,isTemplated:!0,trackingParams:St+"="}},trackingParams:St+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:lN,openPopupAction:{popup:{aboutThisAdRenderer:{url:(I2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+T+"&hl="+jp+"&origin=www.youtube.com&ata_theme="+Un,I2),trackingParams:St+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:St+"="}},hoverText:{runs:[{text:PK}]},trackingParams:St+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+y9+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:St+"="},headline:{text:LB,isTemplated:!1,trackingParams:St+"="},description:{text:W_,
trackingParams:St+"="},actionButton:{buttonRenderer:{text:{simpleText:w5},navigationEndpoint:{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nw+";dc_trk_cid="+nw+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+io+";ord="+nw+";dc_rui="+io+";dc_exteid="+LJ+";dc_av="+io+";dc_sk="+io+";dc_ctype="+t6+";dc_pubid="+io+";dc_btype=3?gclid="+bo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:St+"="}},startMs:io,trackingParams:St+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:fE},elementId:Un}},elementId:W_,trackingParams:St+"=",legacyInfoCardVastExtension:xw,sodarExtensionData:{siub:PK,bgub:Yl,scs:fE,bgp:Kw},externalVideoId:Kw,adLayoutLoggingData:{serializedAdServingDataEntry:Pu},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+y9+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:St+"="},
headline:{text:Rf,isTemplated:!1,trackingParams:St+"="},description:{text:Yl,isTemplated:!1,trackingParams:St+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:tD},navigationEndpoint:{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nw+";dc_trk_cid="+nw+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+io+";ord="+nw+";dc_rui="+io+";dc_exteid="+
LJ+";dc_av="+io+";dc_sk="+io+";dc_ctype="+t6+";dc_pubid="+io+";dc_btype=3?gclid="+bo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+
io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:St+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:St+"="}},navigationEndpoint:{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nw+";dc_trk_cid="+
nw+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+io+";ord="+nw+";dc_rui="+io+";dc_exteid="+LJ+";dc_av="+io+";dc_sk="+io+";dc_ctype="+t6+";dc_pubid="+io+";dc_btype=3?gclid="+bo+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+
N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:St+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:St+"="},abandonCommands:{commands:[{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&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="+io+";dc_exteid="+LJ+";met="+io+";ecn"+
io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:lN,commandExecutorCommand:{commands:[{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Pu,isTemplated:!1,trackingParams:St+
"="},trackingParams:St+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:xw},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+P4+";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="+nw+";dc_trk_cid="+nw+";ord="+g2+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+io+";dc_rui="+io+";dc_exteid="+LJ+";dc_av="+u9+";dc_sk="+io+";dc_ctype="+t6+";dc_ref=http://www.youtube.com/video/"+Kw+";dc_pubid="+io+";dc_btype=23?gclid="+bo+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+io+"&ns="+io+"&event="+io+"&device="+io+"&content_v="+v+"&el="+PK+"&ei="+r+"&devicever="+f+"&bti="+P4+"&format="+yc+"&break_type="+io+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+io+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+qs+"&slot_pos="+io+"&slot_len="+io+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
zf+"&ad_len="+Ms+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Kw+"&aqi="+r+"&ad_rmp="+io+"&sli="+io}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+yc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+
J+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+P4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&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"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&ctype="+u9+"&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"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_engaged_view&ctype="+u9+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+yc+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+o6+"&ad_cpn=[AD_CPN]&id="+
LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&dc_pubid="+io+"&dc_exteid="+LJ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+
"&sig="+o6+"&ad_cpn=[AD_CPN]&id="+LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+io},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&avm="+io+"&dc_pubid="+io+"&dc_exteid="+LJ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&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="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+R+"&sig="+o6+"&ad_cpn=[AD_CPN]&id="+LB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+io},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+LB+"&dc_pubid="+io+"&dc_exteid="+LJ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+yc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+yc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+
u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&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/"+v+"/mqdefault.jpg",width:320,height:180}]},trackingParams:St+"="},trackingParams:St+"=",templatedCountdown:{templatedAdText:{text:Yl,isTemplated:!0,trackingParams:St+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:xw,isTemplated:!1,trackingParams:St+"="},trackingParams:St+"="}},
trackingParams:St+"=",skipOffsetMilliseconds:5E3}},trackingParams:St+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Rf},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:St+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Rf,isTemplated:!1,trackingParams:St+"="},trackingParams:St+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Pu,
isTemplated:!0,trackingParams:St+"="}},trackingParams:St+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:lN,openPopupAction:{popup:{aboutThisAdRenderer:{url:(FV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+T+"&hl="+jp+"&origin=www.youtube.com&ata_theme="+Un,FV),trackingParams:St+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:St+"="}},hoverText:{runs:[{text:PK}]},trackingParams:St+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+NJ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:St+"="},headline:{text:Un,isTemplated:!1,trackingParams:St+"="},description:{text:Rf,trackingParams:St+"="},actionButton:{buttonRenderer:{text:{simpleText:Rf},navigationEndpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:St+"="}},startMs:io,trackingParams:St+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:fE},elementId:xw}},elementId:Un,trackingParams:St+"=",legacyInfoCardVastExtension:W_,sodarExtensionData:{siub:Pu,bgub:Rf,scs:LB,bgp:Il},externalVideoId:Kw,adLayoutLoggingData:{serializedAdServingDataEntry:tG},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+NJ+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:St+"="},headline:{text:Il,
isTemplated:!1,trackingParams:St+"="},description:{text:Yh,isTemplated:!1,trackingParams:St+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Il},navigationEndpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:St+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:St+"="}},navigationEndpoint:{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+
io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:St+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:St+"="},abandonCommands:{commands:[{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&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="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+t6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:lN,commandExecutorCommand:{commands:[{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Yl,isTemplated:!1,trackingParams:St+"="},trackingParams:St+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:GS},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+io+";dc_exteid="+LJ+";met="+io+";ecn"+io+"="+io+";etm1="+io+";eid1="+
P4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:fE}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Un}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ms,offsetEndMilliseconds:yc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+t6+"&token=ALHj"+fB+"&index="+io+"&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="+f+"&m_pos_ms="+Ms}},adSlotLoggingData:{serializedSlotAdServingDataEntry:w5}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:yc,offsetEndMilliseconds:yc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+u9+"&token=ALHj"+fB+"&index="+io+"&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="+
f+"&m_pos_ms="+yc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:xw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yc,offsetEndMilliseconds:yc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+u9+"&token=ALHj"+fB+"&index="+io+"&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="+
f+"&m_pos_ms="+yc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Kw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yc,offsetEndMilliseconds:yc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+u9+"&token=ALHj"+fB+"&index="+io+"&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="+
f+"&m_pos_ms="+yc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Pu}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:yc,offsetEndMilliseconds:t6},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+u9+"&token=ALHj"+fB+"&index="+io+"&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="+
f+"&m_pos_ms="+yc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Yl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:t6,offsetEndMilliseconds:t6},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+t6+"&token=ALHj"+fB+"&index="+io+"&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="+
f+"&m_pos_ms="+t6}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fE}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Kw,isTemplated:!1,trackingParams:St+"="},description:{text:xw,isTemplated:!1,trackingParams:St+"="},actionButton:{buttonRenderer:{text:{simpleText:PK},navigationEndpoint:{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
nw+";dc_trk_cid="+nw+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+io+";ord="+nw+";dc_rui="+io+";dc_exteid="+LJ+";dc_av="+io+";dc_sk="+io+";dc_ctype="+t6+";dc_pubid="+io+";dc_btype=3?gclid="+bo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:St+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+y9+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:St+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$z+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:St+"="},navigationEndpoint:{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nw+";dc_trk_cid="+nw+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+io+";ord="+nw+
";dc_rui="+io+";dc_exteid="+LJ+";dc_av="+io+";dc_sk="+io+";dc_ctype="+t6+";dc_pubid="+io+";dc_btype=3?gclid="+bo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:St+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:lN,openPopupAction:{popup:{aboutThisAdRenderer:{url:(LtY.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+T+"&hl="+jp+"&origin=www.youtube.com&ata_theme="+Un,LtY),trackingParams:St+"="}},popupType:"DIALOG"}},trackingParams:St+"="}},hoverText:{runs:[{text:qe}]},trackingParams:St+"="}},adVideoId:Kw,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Il},associatedCompositePlayerBytesLayoutId:w5}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:tD}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Yl,isTemplated:!1,trackingParams:St+"="},description:{text:PK,isTemplated:!1,trackingParams:St+"="},actionButton:{buttonRenderer:{text:{simpleText:w5},navigationEndpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+
N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:St+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+NJ+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:St+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+iN+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:St+"="},navigationEndpoint:{clickTrackingParams:lN,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+
io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:St+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:lN,openPopupAction:{popup:{aboutThisAdRenderer:{url:(zt.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+T+"&hl="+jp+"&origin=www.youtube.com&ata_theme="+Un,zt),trackingParams:St+"="}},popupType:"DIALOG"}},trackingParams:St+"="}},
hoverText:{runs:[{text:Kw}]},trackingParams:St+"="}},adVideoId:Kw,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+Kw+"&cid="+J+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:GS},associatedCompositePlayerBytesLayoutId:w5}},adSlotLoggingData:{serializedSlotAdServingDataEntry:qe}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:fE,
isTemplated:!1,trackingParams:St+"="},description:{text:qe,isTemplated:!1,trackingParams:St+"="},actionButton:{buttonRenderer:{text:{simpleText:Yl},navigationEndpoint:{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nw+";dc_trk_cid="+nw+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+io+";ord="+nw+";dc_rui="+io+";dc_exteid="+LJ+";dc_av="+io+";dc_sk="+io+";dc_ctype="+
t6+";dc_pubid="+io+";dc_btype=3?gclid="+bo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+
L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:St+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+y9+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:St+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$z+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:St+
"="},navigationEndpoint:{clickTrackingParams:lN,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nw+";dc_trk_cid="+nw+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+io+";ord="+nw+";dc_rui="+io+";dc_exteid="+LJ+";dc_av="+io+";dc_sk="+io+";dc_ctype="+t6+";dc_pubid="+io+";dc_btype=3?gclid="+bo+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+N+"AxAA&ase=2&num="+io+"&cid="+J+"&ad_cpn=%5BAD_CPN%5D&sig="+L+"&adurl="+$s+"&label=video_click_to_advertiser_site&ctype="+u9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:St+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:lN,openPopupAction:{popup:{aboutThisAdRenderer:{url:(C6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+T+"&hl="+jp+"&origin=www.youtube.com&ata_theme="+Un,C6),trackingParams:St+"="}},popupType:"DIALOG"}},trackingParams:St+
"="}},hoverText:{runs:[{text:tD}]},trackingParams:St+"="}},adVideoId:Kw,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+N+"AxAA&sigh="+v+"&cid="+J+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Il},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:w5}},adSlotLoggingData:{serializedSlotAdServingDataEntry:PK}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Fi,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Fi,command:{innertubeCommand:{clickTrackingParams:lN,ypcGetOfflineUpsellEndpoint:{params:Ne}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:St+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:g2,nanos:Oj}}}},uNS=JSON.stringify(xx),L6=performance.now()-K;return{objectRepresentation:xx,jsonRepresentation:uNS,generationTime:L6}};
S9S=function(K,d){if(K===d)return!0;if(!K||!d||typeof K!==typeof d)return!1;if(K instanceof Array&&d instanceof Array){if(K.length!==d.length)return!1;for(var f=0;f<K.length;f++)if(!S9S(K[f],d[f]))return!1;return!0}if(typeof K==="object"&&typeof d==="object"&&K&&d){for(f in K)if(!(f in d&&S9S(K[f],d[f])))return!1;for(var H in d)if(!(H in K))return!1;return!0}return!1};
_.e3=function(){if(!ZR){ZR=new ul(new yjO);var K=_.di("client_streamz_web_flush_count",-1);K!==-1&&(ZR.invocationLimit=K)}return ZR};
pF=function(K,d,f,H){if(K===d)return!0;if(Array.isArray(K)&&Array.isArray(d)){if(K.length!==d.length)return!1;for(var D=0;D<K.length;D++)if(!pF(K[D],d[D],f,H))return!1;return!0}if(K instanceof Set||d instanceof Set){if(K instanceof Set&&d instanceof Set){if(K.size!==d.size)return!1;H=_.y(K.values());for(D=H.next();!D.done;D=H.next())if(!d.has(D.value))return!1;return!0}return!1}if(K instanceof Function){if(H)return!0;K.name===""&&_.$7(Error("Gf"),"ERROR");return!1}if(K instanceof Date&&d instanceof
Date)return K.getTime()===d.getTime();if(K instanceof Object&&d instanceof Object){if(ncO(K)&&ncO(d))try{return K.equals(d)}catch(n){_.$7(Error("Hf`"+n),"ERROR")}D=Object.getOwnPropertyNames(K).filter(function(n){return f?K[n]!==void 0:!0});
var S=Object.getOwnPropertyNames(d).filter(function(n){return f?d[n]!==void 0:!0});
if(D.length!==S.length)return!1;D=_.y(D);for(S=D.next();!S.done;S=D.next())if(S=S.value,!pF(K[S],d[S],f,H))return!1;return!0}return!1};
ncO=function(K){K=Object.getPrototypeOf(K).equals;return K instanceof Function&&K.length===1};
_.u8S=function(){return _.c(function(K){if(K.nextAddress==1)return iIB!==2?K.jumpTo(2):_.I(K,cjo(),3);K.nextAddress!=2&&(iIB=K.yieldResult);return K.return(iIB)})};
_.Uzo=function(){return _.c(function(K){if(K.nextAddress==1)return _.M("ab_pl_man")?aIu!==2?K.jumpTo(2):_.I(K,IIS(),3):K.return(1);K.nextAddress!=2&&(aIu=K.yieldResult);return K.return(aIu)})};
zLu=function(){return _.c(function(K){if(K.nextAddress==1)return _.M("ab_fk_sk_cl")?RLB!==2?K.jumpTo(2):_.I(K,FPu(),3):K.return(1);K.nextAddress!=2&&(RLB=K.yieldResult);return K.return(RLB)})};
_.Mbp=function(){return _.c(function(K){if(K.nextAddress==1)return _.M("ab_det_apb_b")?XnX!==2?K.jumpTo(2):_.I(K,vc5(),3):K.return(1);K.nextAddress!=2&&(XnX=K.yieldResult);return K.return(XnX)})};
OIO=function(){var K;return _.c(function(d){if(d.nextAddress==1)return _.I(d,Promise.all([_.u8S(),_.Mbp(),_.Uzo(),zLu()]),2);if(d.nextAddress!=3)return Pmp()?d.return(!0):_.I(d,_.gcB(),3);K=d.yieldResult;return d.return(K===0)})};
Pmp=function(){var K=!1,d=function(f,H){NsS.increment(H,f);f===0&&(K=!0)};
d(_.Y95(),"j.s_");d(iIB,"f.i_");d(XnX,"a.b_");d(aIu,"p.m_");d(RLB,"i.f_");tbu===2&&(tbu=_.ocp($zz));d(tbu,"e.h_");_.M("ks_det_gpbl")||d(_.EcG(),"p.i_");_.M("ks_get_o_pp")||d(_.hLu(),"g.o_");_.M("ab_deg_unex_thr")||d(_.bIp(),"a.o_");d(mzS,"s.t_");_.M("ab_det_sc_inj_enf")&&d(_.lIS(),"s.i_");d(WPX,"d.p_");d(_.G8X(_.KU),"o.p_");d(_.AjG()===0?0:_.TsB(),"o.a_");return _.M("debug_sk_em_precheck")?!0:K};
q9n=function(){var K=[].concat(_.Me(rjO));try{var d=wB();K.push({jsonRepresentation:d.jsonRepresentation,objectRepresentation:d.objectRepresentation})}catch(f){K=[].concat(_.Me(rjO))}return K};
QCJ=function(){var K=["adPlacements","adSlots"];try{return K.filter(function(){return!0}).length!==K.length?0:1}catch(d){return 0}};
_.hLu=function(){if(QCJ()===0)return 0;var K=wB(),d=K.objectRepresentation,f=(0,_.PR.unsafeClone)(d),H=[];if(d&&typeof d==="object")for(var D in d)H.push(D);else return 4;K=K.objectRepresentation.adPlacements;if(!(K&&K.length>0))return 4;try{if(!S9S(H,Object.getOwnPropertyNames(d)))return 0}catch(S){return 0}return S9S(f,d)?1:0};
_.G8X=function(K){if(!K||!K.length||typeof K==="string")return 0;for(var d=Object.getOwnPropertyNames(Object.prototype),f=0;f<K.length;f++)for(var H=_.BJ(K[f]),D=_.y(d),S=D.next();!S.done;S=D.next())if(H===S.value)return 0;return 1};
jCX=function(K){var d=_.BJ(K[1]);if(K[0]===null)return d;K=K[0];for(var f={},H=0;H<K.length;H++){var D=_.BJ(K[H]);if(H===0)f[D]=d;else{var S={};S[D]=f;f=S}}return f};
_.AjG=function(){for(var K=_.dm,d=0;d<K.length;d++){var f=jCX(K[d]),H=[];H.push(f);if(H.length===0)return 0}return 1};
_.TsB=function(){for(var K=_.dm,d={},f=0;f<K.length;d={rln:void 0},f++){var H=[jCX(K[f])];d.rln=[];H.forEach(function(D){return function(S){D.rln[D.rln.length]=S}}(d));
if(d.rln.length===0)return 0}return 1};
_.Y95=function(){for(var K=_.y(q9n()),d=K.next();!d.done;d=K.next()){var f=d.value;d=f.jsonRepresentation;f=f.objectRepresentation;try{var H=JSON.parse(d);if(!pF(H,f,!1,!1))return 0}catch(D){return 0}}return 1};
_.lIS=function(){try{var K=_.H6("ab_det_sc_inj_val");K.length===1&&K[0]===""&&(K=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var d=document.querySelectorAll("script"),f=_.y(d),H=f.next();!H.done;H=f.next())for(var D=H.value,S=_.y(K),n=S.next();!n.done;n=S.next()){var u=n.value;d=void 0;if((d=D.textContent)==null?0:d.includes(u))return 0}}catch(a){return 4}return 1};
_.gcB=function(){var K,d,f,H,D,S,n;return _.c(function(u){switch(u.nextAddress){case 1:_.HF(u,2),K=_.y(rjO),d=K.next();case 4:if(d.done)return u.return(1);H=f=d.value;D=H.jsonRepresentation;S=H.objectRepresentation;return _.I(u,(new Response(D,{status:200})).json(),7);case 7:n=u.yieldResult;if(!pF(n,S,!1,!1))return u.return(0);d=K.next();u.jumpTo(4);break;case 2:return _.n7(u),u.return(4)}})};
_.bIp=function(){try{btoa("abc")}catch(K){return 0}return 1};
cjo=function(){var K,d,f,H,D,S,n,u,a,R,F;return _.c(function(z){switch(z.nextAddress){case 1:_.HF(z,2),K=_.y(q9n()),d=K.next();case 4:if(d.done)return z.return(1);H=f=d.value;D=H.jsonRepresentation;S=H.objectRepresentation;n=btoa(D);u="data:application/json;base64,"+n;a=new Request(u);Object.defineProperty(a,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(a,"method",{get:function(){return"POST"}});
Object.defineProperty(a,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(a,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(a,"body",{get:function(){return new ReadableStream}});
return _.I(z,fetch(a),7);case 7:return R=z.yieldResult,_.I(z,R.json(),8);case 8:F=z.yieldResult;if(!pF(F,S,!1,!1))return z.return(0);d=K.next();z.jumpTo(4);break;case 2:return _.n7(z),z.return(4)}})};
_.ocp=function(K){if(!K||!K.length||typeof K==="string")return 0;for(var d=function(D){return _.BJ(D)},f=2,H=0;H<K.length&&(f=_.CmJ(_.Dzn(K[H],d)),f!==0);H++);
return f};
_.CmJ=function(K){var d=_.y(K);K=d.next().value;d=d.next().value;try{var f=document.createElement("div");document.body.appendChild(f);var H=getComputedStyle(f).display;document.body.removeChild(f);if(H==="none")return 4;var D=getComputedStyle(d).display==="none"?0:1;document.body.removeChild(K);return D}catch(S){return 4}};
FPu=function(){var K,d,f;return _.c(function(H){K=new _.fU;d=document.createElement("button");d.classList.add("ytp-ad-skip-button");d.style.opacity="0";d.style.height="0px";d.style.width="0px";d.style.padding="0px";d.style.border="none";f=function(){d.parentElement&&d.parentElement.removeChild(d)};
d.onclick=function(){K.resolve(0);f()};
document.body.appendChild(d);setTimeout(function(){f();K.resolve(1)},50);
return H.return(K.promise)})};
IIS=function(){var K,d,f,H,D,S,n;return _.c(function(u){K=new _.fU;d=document.createElement("ytd-player");try{document.body.prepend(d)}catch(a){return u.return(4)}f=function(){d.parentElement&&d.parentElement.removeChild(d)};
d.getElementsByTagName("div").length>0?H=d.getElementsByTagName("div")[0]:(H=document.createElement("div"),d.appendChild(H));D=document.createElement("div");H.appendChild(D);S=document.createElement("video");n=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"});S.src=_.Io(_.MD(n));S.ontimeupdate=function(){f();K.resolve(0)};
D.appendChild(S);S.classList.add("html5-main-video");setTimeout(function(){D.classList.add("ad-interrupting")},200);
setTimeout(function(){f();K.resolve(1)},5E3);
return u.return(K.promise)})};
xzz=function(K,d){var f,H;return _.c(function(D){switch(D.nextAddress){case 1:f=[],H=0;case 2:if(!(H<3)){D.jumpTo(4);break}return _.I(D,fetch(K,{cache:"no-store",method:d}).then(function(S){f.push(S.status)}).catch(function(){f.push(-1)}),3);
case 3:H++;D.jumpTo(2);break;case 4:return D.return(f)}})};
LPu=function(K){return K.domainLookupStart===0&&K.domainLookupEnd===0&&K.connectStart===0&&K.connectEnd===0};
BsB=function(K,d,f){f=f===void 0?"GET":f;var H,D,S,n,u,a,R,F,z,v;return _.c(function(g){if(g.nextAddress==1)return _.I(g,Promise.all([xzz(K,f),xzz(d,f)]),2);H=g.yieldResult;D=_.y(H);S=D.next().value;n=D.next().value;u=S;a=n;if(Math.min.apply(Math,_.Me(a))!==Math.max.apply(Math,_.Me(a))||Math.min.apply(Math,_.Me(u))!==Math.max.apply(Math,_.Me(u)))return g.return(2);if(Math.min.apply(Math,_.Me(a))===Math.min.apply(Math,_.Me(u)))return g.return(1);F=(R=performance.getEntriesByName(K))==null?void 0:R[0];
v=(z=performance.getEntriesByName(d))==null?void 0:z[0];return F&&v?LPu(v)?g.return(1):LPu(F)?g.return(0):g.return(1):g.return(2)})};
vc5=function(){var K;return _.c(function(d){var f=[];var H;var D,S,n;(D=H=(D=wB().objectRepresentation.streamingData)==null?void 0:(S=D.formats)==null?void 0:(n=S[0])==null?void 0:n.url)&&D&&!H.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(D=D.replace("initcwndbps","ctier=L&initcwndbps"),D=D.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),H={testUrl:D,baseUrl:H,method:"GET"}):H=void 0;H&&f.push(H);_.M("ab_net_tp_e")&&f.push({testUrl:_.Hu.location.origin+"/ad_companion",baseUrl:_.Hu.location.origin+
"/generate_204",method:"OPTIONS"});if(_.M("ad_net_pb_ab")){var u;b:{H=/api\/stats\/ads/;var a,R,F,z;D=(u=wB().objectRepresentation.adPlacements)==null?void 0:(a=u[0])==null?void 0:(R=a.adPlacementRenderer)==null?void 0:(F=R.renderer)==null?void 0:(z=F.linearAdSequenceRenderer)==null?void 0:z.linearAds;if(D!=null&&D.length&&(u=_.P(D[0],Jjz))&&(u=u.pings,u!=null&&u.impressionPings))for(a=[].concat(_.Me(u.impressionPings)),u.progressPings&&(a=[].concat(_.Me(a),_.Me(u.progressPings))),u=_.y(a),a=u.next();!a.done;a=
u.next())if(a=a.value,a.baseUrl&&H.test(a.baseUrl)){u=a.baseUrl.replace("https://www.youtube.com","");break b}u=void 0}u&&f.push({testUrl:_.Hu.location.origin+u,baseUrl:_.Hu.location.origin+"/feed/download",method:"GET"})}if(_.M("ad_net_pb_pbp")){var v;b:{u=/api\/stats\/qoe/;if(a=wB().objectRepresentation.playbackTracking){R=[];R.push(a==null?void 0:(v=a.videostatsPlaybackUrl)==null?void 0:v.baseUrl);var g;R.push(a==null?void 0:(g=a.videostatsDelayplayUrl)==null?void 0:g.baseUrl);var N;R.push(a==
null?void 0:(N=a.videostatsWatchtimeUrl)==null?void 0:N.baseUrl);var h;R.push(a==null?void 0:(h=a.ptrackingUrl)==null?void 0:h.baseUrl);var m;R.push(a==null?void 0:(m=a.qoeUrl)==null?void 0:m.baseUrl);var T;R.push(a==null?void 0:(T=a.atrUrl)==null?void 0:T.baseUrl);v=_.y(R);for(g=v.next();!g.done;g=v.next())if((g=g.value)&&u.test(g)){v=g.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}v=void 0}v&&f.push({testUrl:_.Hu.location.origin+v,baseUrl:_.Hu.location.origin+
"/feed/download",method:"GET"})}f=f.length!==0?f[Math.floor(Math.random()*f.length)]:void 0;return(K=f)?d.return(BsB(K.testUrl,K.baseUrl,K.method)):d.return(4)})};
_.EcG=function(){if(_.Hu.p1O===void 0||_.Hu.p1O===null||typeof _.Hu.p1O!=="function")return 2;try{return _.Hu.p1O()===!0?0:1}catch(K){return 0}};
sCX=function(K){switch(K){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.nE(K,"unknown result type")}};
_.k8J=function(K,d){var f=Number(_.mD("CATSTAT",0));if(d.yho===void 0)return f;d=d.yho;K=sCX(K);return f&~(3<<d)|K<<d};
wnz=function(K){var d,f;if((K=(d=K.auxiliaryUi)==null?void 0:(f=d.messageRenderers)==null?void 0:f.bkaEnforcementMessageViewModel)&&K.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return K};
eLX=function(){for(var K=_.y(Object.values(_.ZIu)),d=K.next();!d.done;d=K.next())d=d.value,d.isAsync&&d.yho&&_.bx("CATSTAT",_.k8J(2,d))};
_.SZ=function(K,d){K=_.HW("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",K);(d===void 0?0:d)?_.pno(K,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.De(_.Vm(),K,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
drG=function(){if(!KZY){if(Polymer.Base){var K=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{K.apply(this,arguments)}catch(z){_.G2(z)}};
var d=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{d.apply(this,arguments)}catch(z){_.G2(z)}};
var f=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{f.apply(this,arguments)}catch(z){_.G2(z)}};
var H=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{H.apply(this,arguments)}catch(z){_.G2(z)}};
var D=Polymer.Base._listen,S=new WeakMap;Polymer.Base._listen=function(z,v,g){var N=function(){try{g.apply(this,arguments)}catch(h){_.G2(h)}};
S.set(g,N);D.call(this,z,v,N)};
var n=Polymer.Base._unlisten;Polymer.Base._unlisten=function(z,v,g){n.call(this,z,v,S.get(g))}}if(Polymer.Async){var u=Polymer.Async,a=u._atEndOfMicrotask;
u._atEndOfMicrotask=function(){try{a.apply(u,arguments)}catch(z){_.G2(z)}}}if(Polymer.RenderStatus){var R=Polymer.RenderStatus,F=R.afterNextRender;
R.afterNextRender=function(z,v,g){F.call(R,z,function(){try{v.apply(this,arguments)}catch(N){_.G2(N)}},g)}}KZY=!0}};
_.ym=function(K){var d=K?_.ny(K):"";if(d){if(d.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(d.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(d.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(d.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(d.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(d.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";d=d.toLowerCase();if(d==="/")return"home";if(d===
"/channel_memberships")return"channel-memberships-shopfront";if(d.indexOf("/feed/trending")===0)return"trending";if(d.indexOf("/feed/explore")===0)return"explore";if(d.indexOf("/live")===0)return"live";if(d.indexOf("/results")===0)return"search";if(d.indexOf("/sports")===0)return"sports";if(d.indexOf("/fashion")===0||d.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(d))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(d))return"learning";
if(d.indexOf("/channel/")===0||d.indexOf("/user/")===0||d.indexOf("/gaming")===0||d.indexOf("/post/")===0)return"channel";if(fHS(K))return"show";if(d==="/playlist"||d.indexOf("/playlist/")===0||d==="/view_play_list"||d.indexOf("/view_play_list/")===0||d.indexOf("/show/")===0)return"playlist";if(d==="/feed/history"||d.indexOf("/feed/history/")===0)return"history";if(d==="/new")return"labs";if(d==="/feed/subscriptions")return"subscriptions";if(d.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(d==="/history_controls")return"standalone";if(d.indexOf("/account")===0||d==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(d.indexOf("/paid_memberships")===0||d.indexOf("/refund")===0||d.indexOf("/purchases")===0||d.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(d.indexOf("/product")===0)return"yts-products";if(d.indexOf("/premium")===0||d.indexOf("/musicpremium")===0)return d.indexOf("/premium/offers")===0||d.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(d===
"/cart/checkout"||d==="/cart")return"ypc-checkout";if(d.indexOf("/feed/downloads")===0||d.indexOf("/redeem")===0||d.indexOf("/reporthistory")===0)return"browse";if(d.indexOf("/hashtag")===0)return"hashtag-landing-page";if(d.indexOf("/handle")===0)return"handle";if(d.indexOf("/source")===0)return"audio-pivot";if(d.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(d.indexOf("/playables")===0)return"playables";if(d.indexOf("/create/live/join")===0)return"open-in-app";if(d.indexOf("/shorts")===
0)return"shorts";if(d.indexOf("/feed/channels")===0)return"subscriptions-channels";(d=K?_.ny(K):"")&&d.indexOf("/watch")===0&&_.M("web_watch_enable_learning_journey")?(K=_.CQ(K),K=!!K.list&&K.list.indexOf("LJPP")===0):K=!1;if(K)return"learning_journey_watch"}};
_.nU=function(K){var d,f;(K=(f=_.P(K==null?void 0:K.commandMetadata,_.B0))==null?void 0:f.url)&&(d=_.ym(K));return d};
fHS=function(K){var d=K?_.ny(K):"";if(!d)return!1;d=d.toLowerCase();return d.indexOf("/show/")===0||d.indexOf("/playlist")===0&&(K=_.CQ(K),K.list&&K.list.indexOf("EL")===0)?!0:!1};
us=function(K){var d="unknown",f;var H=((f=_.P(K==null?void 0:K.commandMetadata,_.B0))==null?void 0:f.webPageType)||"";H?(f=H.toLowerCase(),f.startsWith("web_page_type_")&&(f=f.slice(14))):f=H;f&&HLY[f.toUpperCase()]?d=HLY[f.toUpperCase()]:_.P(K,_.is)||_.P(K,Dru)?d="browse":_.P(K,_.cW)?d="search":_.P(K,_.qu)&&(d="watch");d==="watch"&&_.nU(K||null)==="learning_journey_watch"&&(d="learning_journey_watch");d==="unknown"&&_.h3(Error("Jf`"+JSON.stringify({clickTrackingParams:K==null?void 0:K.clickTrackingParams,
commandMetadata:K==null?void 0:K.commandMetadata,allEndpointKeys:Object.keys(K||[])})));return d};
_.aM=function(K){if(!_.VYo||K)_.VYo=_.iW();return _.VYo};
_.SQG=function(K){return!!_.P(K,_.qu)||!!_.P(K,_.IM)&&_.M("kevlar_enable_shorts_prefetch")};
_.yTz=function(K,d){K=_.P(K,_.qu)||_.P(K,_.IM);return"v"+K.videoId+(K.playlistId?"-pl"+K.playlistId:"")+(d?"-an1":"")+(K.params?"-pr"+K.params:"")};
U1=function(K){return function(){return new K}};
RM=function(K){var d=_.eq();return function(){return d.resolve(K)}};
iLo=function(K){var d=_.di("web_pbj_log_warning_rate",0);d=d>0&&Math.random()<d;if(!_.P(K,_.IM))return d&&_.h3(Error("Mf")),!1;var f;return _.M("shorts_controller_retrieve_seedless_sequence_v2")&&((f=_.P(K,_.IM))==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:nLN(K)?!0:(d&&_.h3(Error("Nf")),!1)};
nLN=function(K){var d=(_.P(K,_.qu)||_.P(K,_.IM)).videoId;if(!d||!cTz.test(d))return!1;var f;return(K=(f=_.P(K.commandMetadata,_.B0))==null?void 0:f.url)&&(K.includes(d)||K.startsWith("/clip"))?!0:!1};
_.aHp=function(){var K=_.aS();return K.getFlag(192)?K.getFlag(190):!(_.M("web_watch_cinematics_disabled_by_default")||_.M("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&uDo())};
_.F7=function(K,d,f){var H={};H.currentUrl=d;H.vis=K.vis!==void 0?K.vis:0;H.splay=!1;d=_.aS();H.autoCaptionsDefaultOn=d.getFlag(66);d.getFlag(141)?d.getFlag(140)?H.autonavState="STATE_OFF":H.autonavState="STATE_ON":H.autonavState="STATE_NONE";H.html5Preference="HTML5_PREF_WANTS";isNaN(_.mD("STS"))||(H.signatureTimestamp=_.mD("STS"));K.autonav&&(H.autoplay=!0,H.autonav=!0);K.mutedAutoplay&&(H.autoplay=!0,H.mutedAutoplay=!0);K.inlinePlayback&&(H.autoplay=!0,H.autonav=!1,H.isInlineUnmutedPlayback=!!K.inlineUnmuted);
H.referer=f;H.lactMilliseconds=K.lact!==void 0?K.lact.toString():"-1";_.M("enable_unknown_lact_fix_on_html5")&&H.lactMilliseconds==="-1"&&_.h3(new _.X4("Unknown LACT is set in playbackContext.",{"lact in tempData":K.lact||"undefined",autonav:K.autonav||"undefined"}));K={};d.getFlag(194)&&(K.hasShownAmbientMode=!0);d.getFlag(192)&&(K.hasToggledOffAmbientMode=!0);_.aHp()&&(K.watchAmbientModeEnabled=!0);H.watchAmbientModeContext=K;return H};
IHN=function(K){var d={},f=K.pbis||0;f&&(d.playbackBeginsInSeconds=f);K.prefetch_reason&&K.prefetch_reason==="hc_pbis"&&(d.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return d};
_.X7=function(K){K=K===void 0?!1:K;var d=_.aS(),f="USER_INTERFACE_THEME_LIGHT";d.getFlag(165)?f="USER_INTERFACE_THEME_DARK":d.getFlag(174)?f="USER_INTERFACE_THEME_LIGHT":_.zo()&&(f="USER_INTERFACE_THEME_DARK");return K?f:UrY()||f};
_.R4J=function(){return!_.M("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.zo=function(){return _.R4J()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.vW=function(){var K=_.aS();return _.R4J()&&!K.getFlag(165)&&!K.getFlag(174)};
UrY=function(){var K=K===void 0?window.location.href:K;if(_.M("kevlar_disable_theme_param"))return null;var d=_.ny(K);if(_.FZn(d))return"USER_INTERFACE_THEME_DARK";try{var f=_.CQ(K).theme;return z4Y.get(f)||null}catch(H){}return null};
_.FZn=function(K){return _.M("enable_dark_theme_only_on_shorts")?!(K==null||!K.startsWith("/shorts/")):!1};
_.MYG=function(K,d,f,H,D){d=d===void 0?!1:d;f=f===void 0?!1:f;var S=_.mD("INNERTUBE_CONTEXT");if(!S)return _.$7(Error("Qf")),{};S=(0,_.PR.unsafeClone)(S);_.M("web_no_tracking_params_in_shell_killswitch")||delete S.clickTracking;S.client||(S.client={});var n=S.client;n.clientName==="MWEB"&&n.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(n.clientFormFactor=_.mD("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");n.screenWidthPoints=window.innerWidth;n.screenHeightPoints=window.innerHeight;n.screenPixelDensity=
Math.round(window.devicePixelRatio||1);n.screenDensityFloat=window.devicePixelRatio||1;n.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());n.userInterfaceTheme=_.X7();if(!d){var u=_.udu();u&&(n.connectionType=u);_.M("web_log_effective_connection_type")&&(u=IpX())&&(S.client.effectiveConnectionType=u)}var a;if(_.M("web_log_memory_total_kbytes")&&((a=_.Hu.navigator)==null?0:a.deviceMemory)){var R;a=(R=_.Hu.navigator)==null?void 0:R.deviceMemory;S.client.memoryTotalKbytes=""+a*1E6}d&&H&&!_.M("web_it_context_set_original_url_ks")&&
(n.originalUrl=XU5(_.Hu.location.href,H).toString());_.M("web_gcf_hashes_innertube")&&(u=NNY())&&(R=u.coldConfigData,a=u.coldHashData,u=u.hotHashData,S.client.configInfo=S.client.configInfo||{},R&&(S.client.configInfo.coldConfigData=R),a&&(S.client.configInfo.coldHashData=a),u&&(S.client.configInfo.hotHashData=u));R=_.CQ(_.Hu.location.href);!_.M("web_populate_internal_geo_killswitch")&&R.internalcountrycode&&(n.internalGeo=R.internalcountrycode);!_.M("web_populate_client_screen_killswitch")&&D&&(n.clientScreen=
D);n.clientName==="MWEB"||n.clientName==="WEB"?(n.mainAppWebInfo={graftUrl:H||_.Hu.location.href},_.M("kevlar_woffle")&&_.Mn.instance&&(H=_.Mn.instance,n.mainAppWebInfo.pwaInstallabilityStatus=!H.appInstalledEventFired&&H.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),n.mainAppWebInfo.webDisplayMode=FqG(),n.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):n.clientName==="TVHTML5"&&(!_.M("web_lr_app_quality_killswitch")&&
(H=_.mD("LIVING_ROOM_APP_QUALITY"))&&(n.tvAppInfo=Object.assign(n.tvAppInfo||{},{appQuality:H})),H=_.mD("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(n.tvAppInfo=Object.assign(n.tvAppInfo||{},{certificationScope:H}));!_.M("web_populate_time_zone_itc_killswitch")&&(H=i1N())&&(n.timeZone=H);(H=E$G())?n.experimentsToken=H:delete n.experimentsToken;n=htN();H=_.vL5();H=(0,_.PR.getValues)(H.tokenJars);S.request=Object.assign({},S.request,{internalExperimentFlags:n,consistencyTokenJars:H});!_.M("web_prequest_context_killswitch")&&
(n=_.mD("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(S.request.externalPrequestContext=n);H=_.aS();n=H.getFlag(58);H=H.get("gsml","");S.user=Object.assign({},S.user);n&&(S.user.enableSafetyMode=n);H&&(S.user.lockedSafetyMode=!0);_.M("warm_op_csn_cleanup")?f&&(d=_.te())&&(S.clientScreenNonce=d):!d&&(d=_.te())&&(S.clientScreenNonce=d);K&&(S.clickTracking={clickTrackingParams:K});if(K=_.T2("yt.mdx.remote.remoteClient_"))S.remoteClient=K;_.PW.getInstance().setLocationOnInnerTubeContext(S);try{var F=Q4z(),
z=F.bid;delete F.bid;S.adSignalsInfo={params:[],bid:z};for(var v=_.y(Object.entries(F)),g=v.next();!g.done;g=v.next()){var N=_.y(g.value),h=N.next().value,m=N.next().value;F=h;z=m;K=void 0;(K=S.adSignalsInfo.params)==null||K.push({key:F,value:""+z})}var T,r;if(((T=S.client)==null?void 0:T.clientName)==="TVHTML5"||((r=S.client)==null?void 0:r.clientName)==="TVHTML5_UNPLUGGED"){var J=_.mD("INNERTUBE_CONTEXT");J.adSignalsInfo&&(S.adSignalsInfo.advertisingId=J.adSignalsInfo.advertisingId,S.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",S.adSignalsInfo.limitAdTracking=J.adSignalsInfo.limitAdTracking)}}catch(L){_.$7(L)}return S};
_.PFX=function(K){var d=new gm(_.mD("ONE_PICK_URL",""));d.urlParamMap_.set("hostId",K);(K=_.mD("GAPI_LOCALE"))&&d.urlParamMap_.set("hl",K);(K=_.mD("SESSION_INDEX"))&&d.urlParamMap_.set("authuser",K);(K=_.mD("DELEGATED_SESSION_ID"))&&d.urlParamMap_.set("groupId",K);return d};
OLB=function(){var K=_.eq(),d=K.resolve(_.O1);K=K.resolve(_.Nn);return new gLu(d,K)};
YQO=function(K){if(window.IntersectionObserver)return new N8u(K,400);throw new TypeError("Xf");};
oLX=function(){var K=Hammer.TouchAction,d=K.prototype.preventDefaults;K.prototype.preventDefaults=function(f){var H=this.actions.indexOf("pan-down")>-1;if(!H)return d.call(this,f);if(!tYN){var D=f.srcEvent;f=f.direction;var S;if((S=this.manager)==null?0:S.session.prevented)D.preventDefault();else if(H&&f&Hammer.DIRECTION_DOWN)return this.preventSrc(D)}}};
$rG=function(K){if(!K||K.size===0)return Hammer.DIRECTION_ALL;if(K.size===2){if(K.has("up")&&K.has("down"))return Hammer.DIRECTION_VERTICAL;if(K.has("right")&&K.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(K.size===1){if(K.has("up"))return Hammer.DIRECTION_UP;if(K.has("down"))return Hammer.DIRECTION_DOWN;if(K.has("right"))return Hammer.DIRECTION_RIGHT;if(K.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.h4O=function(){return ELX?Promise.resolve(ELX):new Promise(function(K,d){var f=self.indexedDB.open("swpushnotificationsdb");f.onerror=d;f.onsuccess=function(){var H=f.result;if(H.objectStoreNames.contains("swpushnotificationsstore"))ELX=H,K(ELX);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.h4O()};
f.onupgradeneeded=bL5})};
bL5=function(K){K=K.target.result;K.objectStoreNames.contains("swpushnotificationsstore")&&K.deleteObjectStore("swpushnotificationsstore");K.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
lHX=function(K){var d=mrO(),f;return _.c(function(H){switch(H.nextAddress){case 1:return _.HF(H,2),_.I(H,K.match(d,{cacheName:"yt-appshell-assets"}),4);case 4:f=H.yieldResult;_.Ts(H,3);break;case 2:_.n7(H);case 3:return H.return(f)}})};
mrO=function(){var K=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?WZG.registration.scope:G45;K.endsWith("/")&&(K=K.slice(0,-1));return K+"/app_shell_home"};
ATu=function(K){K.map(function(d){return d.source}).join("|")};
_.T8X=function(K){return _.c(function(d){return d.return(lHX(K))})};
rTO=function(){var K=window.caches,d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,_.T8X(K),2);d=f.yieldResult;return f.return(!!d)})};
B8J=function(){_.c(function(K){if(K.nextAddress==1){if(qQO)return K.jumpTo(0);qQO=!0;if(_.M("enable_system_health_primes_monitoring"))return _.SQ(QFY,3E4),jFG(),K.return();if(!(Math.random()<_.di("web_system_health_fraction")))return K.jumpTo(0);CFu={heightPixels:screen.height,widthPixels:screen.width};Ym&&!isNaN(Ym.jsHeapSizeLimit)&&(CFu.memoryTotalKbytes=String(Math.round(Ym.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(CFu.devicePixelRatio=window.devicePixelRatio);return _.I(K,xrB(),4)}_.SQ(QFY,
3E4);return _.I(K,LZS(),0)})};
xrB=function(){return _.c(function(K){if(K.nextAddress==1)return oM.intersectionObserverPresent="IntersectionObserver"in window,oM.serviceWorkerPresent="serviceWorker"in navigator,oM.webSharePresent="share"in navigator,oM.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,oM.cacheStoragePresent="caches"in window,oM.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,oM.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
oM.webkitTemporaryStoragePresent="webkitTemporaryStorage"in $m&&$m.webkitTemporaryStorage&&"queryUsageAndQuota"in $m.webkitTemporaryStorage,oM.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.I(K,xuJ(),2);oM.indexedDbPresent=K.yieldResult;oM.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;oM.broadcastChannelPresent="BroadcastChannel"in window;oM.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(oM.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,oM.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.iQ(K)})};
QFY=function(){var K=9E4+Math.random()*2E3;_.pA()>K||(_.M("enable_system_health_primes_monitoring")?jFG():LZS())};
LZS=function(){var K;return _.c(function(d){if(d.nextAddress==1)return _.I(d,JTo(),2);K=d.yieldResult;_.t3("systemHealthCaptured",K);_.iQ(d)})};
jFG=function(){var K={metric:{}},d=sFG();d.networkEvents.length&&(K.metric.networkEvents=k4z(d));_.t3("systemHealthCaptured",K)};
JTo=function(){var K,d,f,H,D,S,n,u,a,R;return _.c(function(F){switch(F.nextAddress){case 1:K={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)};d=window.screen;_.M("enable_is_extended_monitoring")&&d&&"isExtended"in d&&(K.isExtended=!!d.isExtended);f={metric:{staticContext:CFu,dynamicContext:K,webMetric:wUG,webApiSupport:oM}};
if(H=_.te())f.csn=H;Ym&&(f.metric.webMetric.currentHeapKbytes=Math.round(Ym.usedJSHeapSize/1E3));window.matchMedia&&(f.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,f.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,f.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in $m&&typeof $m.getBattery==="function")){F.jumpTo(2);break}return _.I(F,$m.getBattery(),3);case 3:if(D=
F.yieldResult)f.metric.dynamicContext.chargingStatus=D.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(f.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(oM.storageEstimatePresent)return _.I(F,navigator.storage.estimate(),8);if(!oM.webkitTemporaryStoragePresent){F.jumpTo(5);break}return _.I(F,ZLz(),7);case 7:S=F.yieldResult;F.jumpTo(5);break;case 8:S=F.yieldResult;case 5:return f.metric.dynamicContext.deviceStorageQuotaMbytes=((n=S)==null?0:n.quota)?String(Math.round(S.quota/
1048576/10)*10):"-1",f.metric.dynamicContext.deviceStorageUsageMbytes=((u=S)==null?0:u.usage)?String(Math.round(S.usage/1048576/10)*10):"-1",a=f.metric.dynamicContext,_.I(F,rTO(),9);case 9:return a.hasAppShell=F.yieldResult,R=sFG(),R.networkEvents.length&&(f.metric.networkEvents=k4z(R)),F.return(f)}})};
ZLz=function(){return new Promise(function(K){var d;oM.webkitTemporaryStoragePresent&&(d=$m.webkitTemporaryStorage)!=null&&d.queryUsageAndQuota?$m.webkitTemporaryStorage.queryUsageAndQuota(function(f,H){K({usage:f,quota:H})}):K(void 0)})};
_.E1=function(K){K&=16777215;K=[(K&16711680)>>16,(K&65280)>>8,K&255];return e4Y(K[0],K[1],K[2])};
_.hG=function(K){K=[(K&16711680)>>>16,(K&65280)>>>8,K&255,(K&4278190080)>>>24];var d=_.pUO(K,function(f){return f==(f&255)});
K[3]=(K[3]/255).toFixed(3);if(!d)throw Error("Yf`"+K.join(","));return"rgba("+K.join(",")+")"};
_.KrS=function(K){return[(K&16711680)>>>16,(K&65280)>>>8,K&255]};
_.d3O=function(K){K=K.map(function(d){d/=255;return d<=.03928?d/12.92:Math.pow((d+.05)/1.05,2.4)});
return K[0]*.2126+K[1]*.7152+K[2]*.0722};
bs=function(K,d){K=_.KrS(K);return"rgba("+K[0]+", "+K[1]+", "+K[2]+", "+d+")"};
_.fvN=function(){try{return!!self.localStorage}catch(K){return!1}};
SLO=function(){if(HDX())_.h3(Error("Zf"));else{var K=document.createElement("iframe");K.style.display="none";var d=d===void 0?window.location.href:d;var f=_.$K(_.mD("PERSIST_IDENTITY_IFRAME_URL"));d=f?f:(new URL(d)).host.indexOf("studio")===0?_.p7(D3n,"persist_identity"):_.p7(V_z,"persist_identity");_.vsO(K,1,d);K.id="persist_identity";var H;(H=document.body)==null||H.appendChild(K)}};
HDX=function(){var K=yVB;K||(K=document.querySelector("#persist_identity"));return K};
nVz=function(){var K=!1;try{K=!!window.sessionStorage.getItem("session_logininfo")}catch(d){K=!0}return(_.mD("INNERTUBE_CLIENT_NAME")==="WEB"||_.mD("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&K};
iD5=function(K,d){if(!nVz())return!1;d||(d=_.mD("LOGIN_INFO"));return d?(K.session_logininfo=d,!0):!1};
uIX=function(K,d){K=K===void 0?!1:K;if((d===void 0||!d)&&cVz!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.lx("LOG_STICKINESS",!1)){d=_.te();var f=_.YZ(),H={identityStickinessData:{initialState:cVz}};d&&f&&_.Q$(d,f,H)}if(d=HDX())if(f=d.src?(new URL(d.src)).origin:"*",K){var D;(D=d.contentWindow)==null||D.postMessage({action:"clear"},f)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(K=window.sessionStorage.getItem("session_logininfo"))){var S;(S=d.contentWindow)==null||S.postMessage({loginInfo:K},f)}};
_.mW=function(K){K=K===void 0?!0:K;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.bx("LOGIN_INFO",""),K&&window.sessionStorage.setItem("from_switch_account","1"),uIX(!0,K)}catch(d){}};
avu=function(K){K&&(K.startsWith("https://accounts.google.com/AddSession")?_.mW():K.startsWith("https://accounts.google.com/ServiceLogin")?_.mW():K.startsWith("https://myaccount.google.com")&&_.QX(K).getPath().endsWith("/youtubeoptions")&&_.mW())};
ls=function(K,d){avu(K);if(_.lx("LOGGED_IN",!0)&&nVz()){var f=D0z(K);f==null&&(f={});iD5(f,d)&&_.xZ(K,f)}};
IvX=function(){function K(d){for(d=d.target;d&&d.nodeName!=="A";)if(d=d.parentNode,!(d&&d instanceof HTMLElement))return;if(d&&!d.hasAttribute("download")&&d.getAttribute("rel")!=="external"&&d.href)return d.href}
document.addEventListener("mousedown",function(d){d.button!==0&&(d=K(d))&&ls(d)});
document.addEventListener("click",function(d){(d=K(d))&&ls(d)})};
FrG=function(){var K=new U3B;try{if(_.lx("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(u){K.increment(5,!1);return}if(_.mD("LOGIN_INFO")){var d=Rpp?Rpp:window.location;_.mD("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&SLO();var f=D0z(d.href);f==null&&(f={});var H=f.session_logininfo,D=Number(window.sessionStorage.getItem("stickiness_reload")),S=H===_.mD("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
D>=2||S)D>=2?K.increment(2,S):S?K.increment(7,S):window.sessionStorage.getItem("session_logininfo")||(K.increment(3,S),cVz="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.mD("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.mD("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))K.increment(4,S),window.sessionStorage.removeItem("stickiness_reload");
else if(D<2){window.sessionStorage.setItem("stickiness_reload",String(D+1));var n=d.href;n=_.L1(n,"sttick");ls(n,window.sessionStorage.getItem("session_logininfo"));n=_.xM(n,{sttick:D});K.increment(D,S);_.CM(d,n)}}else K.increment(6,!1)}else _.mW(!1)}catch(u){}};
_.WW=function(K,d,f,H,D){d=d===void 0?{}:d;f=f===void 0?"":f;H=H===void 0?window:H;K=_.LQ(K,d);ls(K);f=_.Xa(K+f,D);_.CM(H.location,f)};
zpN=function(K){if(K.urlEndpoint){if(K=_.CQ(K.urlEndpoint.url),K.adurl)return wF(K.adurl)}else if(K.watchEndpoint)return"//www.youtube.com/watch?v="+K.watchEndpoint.videoId;return null};
Xwp=function(K){if(!K||!K.reportingPings)return null;var d={};K.reportingPings.forEach(function(f){f.pingType in d?d[f.pingType].push(f.url):d[f.pingType]=[f.url]});
return{adpings:zto(d)}};
_.Go=function(){return{isShellLoad:_.lx("IS_SHELL_LOAD",!1)}};
M_Y=function(){navigator.serviceWorker.getRegistrations().then(function(K){K.forEach(vVz)})};
vVz=function(K){K&&_.POB(gVX,K.scope)};
_.POB=function(K,d){d={scope:d||_.fy("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.nM(K),d)};
AG=function(K,d,f,H){if(d&&d.serializedYpcCujLoggingParams){if(f){var D={};D.transactionErrorType=f;H&&(D.errorMessage=H);d.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:D}}}f={};f.ypcCujContext=d;K=_.HW("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",K,f);_.De(_.Vm(),K,"FLOW_TYPE_YPC_ACQUISITION")}};
_.ODo=function(K,d,f,H){var D={};D.serializedTransactionFlowLoggingParams=d;f&&(D.errorType=f);H&&(D.errorMessage=H);_.t3(K,D);_.oB()};
_.NaS=function(K){K&&_.ODo("transactionFlowStarted",K)};
_.YLO=function(K){K&&_.ODo("transactionFlowCancelled",K)};
_.To=function(K,d,f){d&&_.ODo("transactionFlowFailed",d,K,f)};
_.rm=function(){this.megabloxUrl_=null};
_.qn=function(K){try{var d=t_X==null?void 0:t_X.composedPath(K)}catch(f){d=K.composedPath?K.composedPath():[]}return d&&d.length>0?d:K.composedPath?K.composedPath():[]};
_.Qm=function(K){return _.qn(K)[0]};
_.jZ=function(K){if(!(K instanceof Element))return null;K=K.classList?Array.from(K.classList):void 0;if(!K)return null;var d=K.indexOf("style-scope");return d>-1&&d+1<K.length?K[d+1]:null};
CU=function(K){if(!(K instanceof HTMLElement))return null;var d=K&&(K.$$||K.polymerController)?K.tagName.toLowerCase():null;return d?d:_.jZ(K)};
oVz=function(K,d){return K.replace(/[^a-z]*[^\s]+/g,function(f){return f+".style-scope."+d})};
$3o=function(K,d){return d?K.split(",").map(function(f){return oVz(f.trim(),d)}).join(", "):K};
_.xm=function(K){var d,f,H,D;return(D=(H=(f=(d=K.root)!=null?d:K.shadowRoot)!=null?f:K.__shady_native_shadowRoot)!=null?H:K.__shady_shadowRoot)!=null?D:K};
LU=function(K){return K instanceof ShadowRoot?ShadowRoot:K instanceof DocumentFragment?DocumentFragment:K instanceof Document?Document:HTMLElement};
EVS=function(K){var d,f,H;return(H=(f=(d=K.parentElement)!=null?d:K.__shady_native_parentElement)!=null?f:K.__shady_parentElement)!=null?H:null};
hp5=function(K){var d,f,H;return(H=(f=(d=K.parentNode)!=null?d:K.__shady_native_parentNode)!=null?f:K.__shady_parentNode)!=null?H:null};
bDX=function(K){var d,f,H;return(H=(f=(d=K.__shady_parentNode)!=null?d:K.__shady_native_parentNode)!=null?f:K.parentNode)!=null?H:null};
m3Y=function(K){var d,f;return(f=(d=hp5(K))!=null?d:K.host)!=null?f:null};
lvY=function(K){var d,f,H;return(H=(f=(d=K.nextSibling)!=null?d:K.__shady_native_nextSibling)!=null?f:K.__shady_nextSibling)!=null?H:null};
WrX=function(K){var d,f,H;return(H=(f=(d=K.previousSibling)!=null?d:K.__shady_native_previousSibling)!=null?f:K.__shady_previousSibling)!=null?H:null};
GxB=function(K){var d,f,H;return(H=(f=(d=K.nextElementSibling)!=null?d:K.__shady_native_nextElementSibling)!=null?f:K.__shady_nextElementSibling)!=null?H:null};
AVS=function(K){var d,f,H;return(H=(f=(d=K.previousElementSibling)!=null?d:K.__shady_native_previousElementSibling)!=null?f:K.__shady_previousElementSibling)!=null?H:null};
Tao=function(K){var d,f,H;return new Set([].concat(_.Me((d=K.children)!=null?d:[]),_.Me((f=K.__shady_native_children)!=null?f:[]),_.Me((H=K.__shady_children)!=null?H:[])))};
rVY=function(K){var d,f,H;return new Set([].concat(_.Me((d=K.childNodes)!=null?d:[]),_.Me((f=K.__shady_native_childNodes)!=null?f:[]),_.Me((H=K.__shady_childNodes)!=null?H:[])))};
qLY=function(K){if(!K)return null;var d=_.jZ(K);if(!d){var f;return(f=Node.prototype.getRootNode)==null?void 0:f.call(K)}d=d.toUpperCase();for(K=EVS(K);K&&K.tagName!==d;)K=EVS(K);return K?_.xm(K):null};
QuO=function(K){for(;K&&!(K instanceof HTMLElement);)K=m3Y(K);return K};
ju5=function(K){var d=QuO(K);return K===d?_.jZ(K):d?CU(d):null};
COO=function(K){return(K=QuO(K))?CU(K):null};
x3S=function(K){if(K instanceof Comment)return!1;if(K instanceof Text){var d,f;if(((f=(d=K.textContent)==null?void 0:d.trim())!=null?f:"")==="")return!1}return!0};
BW=function(K,d,f){var H=d(K);for(f=f===void 0?COO(K):f;H&&(ju5(H)!==f||!x3S(H));)K=H,H=d(K);return H};
Lrn=function(K,d,f){if(!d)return null;K=COO(K);return ju5(d)===K&&x3S(d)?d:BW(d,f,K)};
BaJ=function(K){return BW(K,bDX,_.jZ(K))};
JVY=function(K){return BW(K,GxB)};
suX=function(K){return BW(K,lvY)};
kxX=function(K){return BW(K,AVS)};
ww5=function(K){return BW(K,WrX)};
ZDG=function(K){return Lrn(K,K.firstChild||K.__shady_native_firstChild||K.__shady_firstChild||null,lvY)};
epu=function(K){var d,f,H;var D=(H=(f=(d=K.firstElementChild)!=null?d:K.__shady_native_firstElementChild)!=null?f:K.__shady_firstElementChild)!=null?H:null;return Lrn(K,D,GxB)};
pwX=function(K){var d,f,H;var D=(H=(f=(d=K.lastChild)!=null?d:K.__shady_native_lastChild)!=null?f:K.__shady_lastChild)!=null?H:null;return Lrn(K,D,WrX)};
KXu=function(K){var d,f,H;var D=(H=(f=(d=K.lastElementChild)!=null?d:K.__shady_native_lastElementChild)!=null?f:K.__shady_lastElementChild)!=null?H:null;return Lrn(K,D,AVS)};
dZn=function(K){var d=COO(K);return Array.from(rVY(K)).filter(function(f){return ju5(f)===d})};
fG5=function(K){var d=CU(K);return Array.from(Tao(K)).filter(function(f){return _.jZ(f)===d})};
_.JG=function(K,d,f){if(K instanceof HTMLElement&&_.jZ(K)===f){var H=Array.from(K.classList).indexOf("style-scope");if(H===-1)K.classList.add("style-scope"),K.classList.add(d);else if(!(H+1>=K.classList.length)){H=K.classList[H+1];var D,S;K==null||(D=K.classList)==null||(S=D.replace)==null||S.call(D,H,d)}}if(K instanceof HTMLElement||K instanceof DocumentFragment)for(D=_.y(Tao(K)),S=D.next();!S.done;S=D.next())_.JG(S.value,d,f);return K};
wm=function(K,d){if(K instanceof HTMLElement&&_.jZ(K)===d){var f=Array.from(K.classList).indexOf("style-scope");f===-1||f+1>=K.classList.length||K.classList.remove("style-scope",K.classList[f+1])}if(K instanceof HTMLElement||K instanceof DocumentFragment){f=_.y(K.children);for(var H=f.next();!H.done;H=f.next())wm(H.value,d)}return K};
_.Hvn=function(K,d){return LU(K).prototype.appendChild.call(K,d)};
DZX=function(K,d){if(K===d)return!0;K=rVY(K);return Array.from(K).some(function(f){return DZX(f,d)})};
_.E=function(K,d){if(K instanceof Ze)return K;(d==null?0:d.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(K,"ownerDocument")&&Object.defineProperty(K,"ownerDocument",{get:function(){return window.document}});
return new Ze(K)};
SOz=function(){var K=Ze.prototype,d=[].concat(_.Me(VEz?[]:["getRootNode"]),["setAttribute","removeAttribute"]);d=_.y(d);for(var f=d.next(),H={};!f.done;H={method$jscomp$48:void 0},f=d.next())H.method$jscomp$48=f.value,K[H.method$jscomp$48]=function(D){return function(){return this.host[D.method$jscomp$48].apply(this.host,arguments)}}(H)};
nYX=function(){var K=Ze.prototype,d=[].concat(_.Me(VEz?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Me(ySX?[]:["querySelector","querySelectorAll"]));d=_.y(d);for(var f=d.next(),H={};!f.done;H={method$jscomp$49:void 0},f=d.next())H.method$jscomp$49=f.value,K[H.method$jscomp$49]=function(D){return function(){return this.root[D.method$jscomp$49].apply(this.root,arguments)}}(H)};
uMu=function(){var K=Ze.prototype,d=[].concat(_.Me(ivn?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Me(cSz?[]:["parentNode"]));d=_.y(d);for(var f=d.next(),H={};!f.done;H={prop$jscomp$62:void 0},f=d.next())H.prop$jscomp$62=f.value,Object.defineProperty(K,H.prop$jscomp$62,{get:function(D){return function(){return this.host[D.prop$jscomp$62]}}(H),
configurable:!0})};
UZX=function(){var K=Ze.prototype,d=["activeElement"].concat(_.Me(ivn?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Me(aGn?[]:["children"]),_.Me(IGY?[]:["lastChild"]));d=_.y(d);for(var f=d.next(),H={};!f.done;H={prop$jscomp$63:void 0},f=d.next())H.prop$jscomp$63=f.value,Object.defineProperty(K,H.prop$jscomp$63,{get:function(D){return function(){return this.root[D.prop$jscomp$63]}}(H),
configurable:!0})};
Rku=function(){for(var K=Ze.prototype,d=_.y(["innerHTML","textContent"]),f=d.next(),H={};!f.done;H={prop$jscomp$64:void 0},f=d.next())H.prop$jscomp$64=f.value,Object.defineProperty(K,H.prop$jscomp$64,{get:function(D){return function(){return this.root[D.prop$jscomp$64]}}(H),
set:function(D){return function(S){this.root[D.prop$jscomp$64]=S}}(H),
configurable:!0})};
FXz=function(K){var d=Ze.prototype;K=_.y(Object.entries(K));for(var f=K.next(),H={};!f.done;H={fn$jscomp$360:void 0},f=K.next()){var D=_.y(f.value);f=D.next().value;D=D.next().value;H.fn$jscomp$360=D;d[f]=function(S){return function(){return S.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.Me(arguments)))}}(H)}};
XIu=function(){for(var K=Ze.prototype,d=_.y(Object.entries(zkp)),f=d.next(),H={};!f.done;H={fn$jscomp$361:void 0},f=d.next()){var D=_.y(f.value);f=D.next().value;D=D.next().value;H.fn$jscomp$361=D;Object.defineProperty(K,f,{get:function(S){return function(){return S.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.Me(arguments)))}}(H),
configurable:!0})}};
_.eZ=function(K){return K instanceof vYO||K instanceof Document?K:new vYO(K)};
MEY=function(){for(var K=vYO.prototype,d=_.y("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),f=d.next(),H={};!f.done;H={method$jscomp$50:void 0},f=d.next())H.method$jscomp$50=f.value,K[H.method$jscomp$50]=function(D){return function(){return HTMLElement.prototype[D.method$jscomp$50].call.apply(HTMLElement.prototype[D.method$jscomp$50],[this.node].concat(_.Me(arguments)))}}(H)};
PZX=function(){for(var K=vYO.prototype,d=_.y("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),f=d.next(),H={};!f.done;H={prop$jscomp$65:void 0},f=d.next())H.prop$jscomp$65=f.value,Object.defineProperty(K,H.prop$jscomp$65,{get:function(D){return function(){var S;return(S=this.node["__shady_native_"+D.prop$jscomp$65])!=null?S:this.node[D.prop$jscomp$65]}}(H),
configurable:!0})};
_.pU=function(K,d,f){f===void 0&&(f=!K.classList.contains(d));f?K.classList.add(d):K.classList.remove(d)};
_.K8=function(K,d,f){f===void 0&&(f=!K.hasAttribute(d));if(d==="class")throw Error("dg");f?_.eZ(K).setAttribute(d,""):_.eZ(K).removeAttribute(d)};
gYu=function(K){return(K.localName!=="slot"?[]:(0,_.dj)(K).assignedNodes({flatten:!0})).filter(function(d){return d.nodeType===Node.ELEMENT_NODE})};
_.OvO=function(K){return(K=_.E(K).querySelector("slot"))&&K.localName==="slot"?gYu(K):[]};
_.f8=function(K,d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(K,d)};
HP=function(K,d){var f=d.bind(K);return function(H){f(H,H.detail)}};
_.Dm=function(K,d){var f=NJN.get(K);f||(f=new WeakMap,NJN.set(K,f));if(f.has(d))return f.get(d);if(_.M("web_fi_listen_disable_bound_fn_helper")){var H=d.bind(K);K=function(D){H(D,D==null?void 0:D.detail)}}else K=HP(K,d);
f.set(d,K);return K};
oYG=function(K,d){YOo(K);K.created[tEo].push(d)};
YOo=function(K){if(!K.created||!K.created[tEo]){var d=K.created,f=d?[d]:[];K.created=function(){for(var H=_.y(f),D=H.next();!D.done;D=H.next())D.value.apply(this)};
K.created[tEo]=f}};
$ZG=function(K){return function(){var d=_.Pg.apply(0,arguments);return function(f,H,D){K.apply(null,_.Me(d))(f,H,D)}}};
EYn=function(){return function(){var K=_.Pg.apply(0,arguments);return function(d,f,H){Yap.apply(null,_.Me(K))(d,f,H)}}};
_.l=function(K){return EYn()(K)};
_.W=function(){return $ZG(Ebz).apply(null,_.Me(_.Pg.apply(0,arguments)))};
_.VV=function(K){return _.M("pbcm_fi_listen_decorators")?hkz(K):$ZG(obo)(K)};
hkz=function(K){return function(d,f){oYG(d,function(){var H=this[f],D=_.M("web_fi_listen_disable_bound_fn_helper")?function(S){H(S,S.detail)}.bind(this):HP(this,H);
bvO.has(K)?N5(this.hostElement,K,D):this.hostElement.addEventListener(K,D)})}};
_.SP=function(){return $ZG($vn).apply(null,_.Me(_.Pg.apply(0,arguments)))};
_.A=function(K){K=K===void 0?{}:K;return $ZG(tHX)(K)};
_.yV=function(K){if(K.hostElement&&K!==K.hostElement){var d=_.Xd(K.hostElement);d=K.renderIdom?d:d.shadowRoot}d||(K=K.root,d=K instanceof Node?_.Xd(K):null);return d};
_.n8=function(K){return mZS?lGY(K):function(d,f){Object.defineProperty(d,f,{get:function(){var H;return(H=_.yV(this))==null?void 0:H.querySelector(K)},
enumerable:!0,configurable:!0})}};
lGY=function(K){return function(d,f){Object.defineProperty(d,f,{get:function(){var H,D=(H=_.E(this.hostElement))==null?void 0:H.querySelector(K);if(D)return D;var S;return(S=_.yV(this))==null?void 0:S.querySelector(K)},
enumerable:!0,configurable:!0})}};
_.iL=function(K){return mZS?WXX(K):function(d,f){Object.defineProperty(d,f,{get:function(){var H;return(H=_.yV(this))==null?void 0:H.querySelectorAll(K)},
enumerable:!0,configurable:!0})}};
WXX=function(K){return function(d,f){Object.defineProperty(d,f,{get:function(){var H,D=(H=_.E(this.hostElement))==null?void 0:H.querySelectorAll(K);if(D==null?0:D.length)return D;var S;return(S=_.yV(this))==null?void 0:S.querySelectorAll(K)},
enumerable:!0,configurable:!0})}};
GT5=function(K){return function(d){if(![_.L3,_.q].includes(Object.getPrototypeOf(d.prototype).constructor))throw Error("eg");zCY(Object.assign({},typeof K!=="string"?K:{is:K,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(d)}};
_.uL=function(){var K=K===void 0?{}:K;return function(d){if(![Be,_.cP].includes(Object.getPrototypeOf(d.prototype).constructor))throw Error("fg");Xdz(Object.assign({},K,{disableInheritanceCheck:!0}))(d)}};
TJS=function(K,d){ASo[K]!=null||(ASo[K]=new Set);ASo[K].add(d)};
_.an=function(){var K=_.SP.apply(null,_.Me(_.Pg.apply(0,arguments)));return function(d,f){TJS(d.is,f);K(d,f)}};
Rn=function(K,d,f){if(In(K)&&!rSX.has(d)){d=d.replace(/^JSC\$[\d]+_/,"");d=d.replace(/\.\d+(\.|$)/g,function(S,n){return".#"+n});
Uz[K]!=null||(Uz[K]={});var H,D;(H=Uz[K])[D=d]!=null||(H[D]=new Set);Uz[K][d].has(f)||(Uz[K][d].add(f),_.t3("polymerPropertyAccessEvent",{componentName:K,propertyName:d,accessType:f}))}};
qOJ=function(){return _.M("polymer_property_access_logging_debug")||_.M("polymer_enable_property_access_logging")};
In=function(K){if(_.M("polymer_property_access_logging_debug"))return!0;if(!_.M("polymer_enable_property_access_logging"))return!1;QTX||(QTX=Date.now());return(lw(K)+QTX)%100<_.di("polymer_property_access_logging_percent")};
jT5=function(K,d){return In(d)&&K.hostElement.loggingStatus?new Proxy(K,{get:function(f,H,D){if(f.hostElement.loggingStatus.bypassProxyController)return f[H];f.hostElement.loggingStatus.isExternalGet=!0;var S=f[H];f.hostElement.loggingStatus.isExternalGet=!1;if(S instanceof Function)return function(){var n=_.Pg.apply(0,arguments);try{return f.hostElement.loggingStatus.currentExternalCall=H,Rn(d,H,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),S.apply(this===D?f:this,n)}finally{f.hostElement.loggingStatus.currentExternalCall=
void 0}};
Rn(d,H,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return S},
set:function(f,H,D){if(f.hostElement.loggingStatus.bypassProxyController)return f[H]=D,!0;f.hostElement.loggingStatus.isRendererStamper?Rn(d,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):f.hostElement.loggingStatus.isDeclarativeExternal||Rn(d,H,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{f.hostElement.loggingStatus.currentExternalSet=H,f[H]=D}finally{f.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):K};
CZX=function(K,d){K&&K.loggingStatus&&!K.loggingStatus.isDeclarativeExternal&&!K.loggingStatus.isExternalGet&&K.loggingStatus.currentExternalSet!==d&&Rn(K.tagName.toLowerCase(),d,"PROPERTY_ACCESS_GET_INTERNAL")};
Fw=function(K,d,f){K&&(f||K.loggingStatus&&!K.loggingStatus.isInitializing&&!K.loggingStatus.isDefiningPropertyAccessor&&K.loggingStatus.currentExternalSet!==d)&&Rn(K.tagName.toLowerCase(),d,"PROPERTY_ACCESS_SET_INTERNAL")};
xZO=function(){return{_definePropertyAccessor:function(K,d){var f=this,H=f.hostElement.loggingStatus;H&&(H.isDefiningPropertyAccessor=!0);var D=f[K];D!==void 0&&(f.__data?f._setPendingProperty(K,D):(f.__dataProto!=null||(f.__dataProto={}),f.__dataProto[K]=D));H&&(H.isDefiningPropertyAccessor=!1);Object.defineProperty(this,K,{get:function(){CZX(f.hostElement,K);return this.__data[K]},
set:function(S){d||this._setPendingProperty(K,S,!0)&&this._invalidateProperties()}})},
created:function(){var K=this._setPendingProperty.bind(this);this._setPendingProperty=function(d,f,H){Fw(this.hostElement,d);return K.apply(this,[d,f,H])}}}};
LXz=function(K){qOJ()&&_.l(zC.prototype)(K.prototype,"__templateBindingLoggingBehavior")};
BJB=function(K,d){if(d.resolvedFactories.length!==K.resolvedFactories.length)return!0;d=_.y(d.resolvedFactories.entries());for(var f=d.next();!f.done;f=d.next()){var H=_.y(f.value);f=H.next().value;H=H.next().value;if(H.providerClass){if(H.providerClass!==K.resolvedFactories[f].providerClass)return!0}else if(H.providerValue){if(H.providerValue!==K.resolvedFactories[f].providerValue)return!0}else if(H.factory!==K.resolvedFactories[f].factory)return!0}return!1};
JSz=function(K,d){K=_.y(K);for(var f=K.next();!f.done;f=K.next())if(f=f.value,f.constructor===Array)JSz(f,d);else{var H=d;H.has(f)||(f.inject&&H.add(f),f.behaviors&&JSz(f.behaviors,H))}};
Xw=function(K,d){var f=K[d];K[d]=function(){var H=_.Pg.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(f)return f.apply(this,H)}};
ZvX=function(){_.vP.Class=function(f,H){f=sTS(f,H);Xw(f.prototype,"created");return f};
Xw(M7.prototype,"_initializeProperties");Xw(_.PP.prototype,"_initializeProperties");if(kTS)Xw(wIn,"created");else{var K=function(){Xw(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))K();else{var d=customElements.define;customElements.define=function(f,H,D){d.call(customElements,f,H,D);f==="tp-yt-iron-list"&&(K(),customElements.define=d)}}}};
pIz=function(K,d){K.prototype.behaviors=K.prototype.behaviors||[];K.prototype.behaviors.unshift(ekB.InjectBehavior);K.prototype.provide=d};
_.N7=function(K){return function(d){if(!K.disableElementRegistration){K.noInjection||pIz(d,K.providers);var f=d.prototype;f.__templateHelpers||Yap(gj.prototype)(f,"__templateHelpers");f=K.is;KiO||(KiO=Date.now());(lw(f)+KiO)%100<_.di("polymer_log_prop_change_observer_percent")&&Yap(Oz.prototype)(d.prototype,"__propertyObserverObserver");d.prototype.behaviors=d.prototype.behaviors||[];d.prototype.behaviors.unshift(_.d9B.YtHostElementBehavior);LXz(d);GT5({is:K.is,notifyObserversOnUndefined:K.notifyObserversOnUndefined!==
!1,fastInit:K.fastInit,template:K.template,disableEnforceFastDefaultValuesCheck:!0})(d)}}};
_.Q=function(K){return _.N7({is:K.is,template:K.template,disableElementRegistration:K.disableElementRegistration,cssBuildOptOut:K.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
D9Y=function(K,d){if(fuz){K=new K;for(var f=_.y(Object.getOwnPropertyNames(K)),H=f.next();!H.done;H=f.next())H=H.value,d[H]=K[H];for(f=d;f&&f!==Object.prototype;f=Object.getPrototypeOf(f)){H=_.y(Object.getOwnPropertyNames(f));for(var D=H.next();!D.done;D=H.next())D=D.value,K.hasOwnProperty(D)||Object.defineProperty(K,D,HWB(d,D))}}else K.apply(d)};
HWB=function(K,d){return{get:function(){var f=K[d];return f instanceof Function?f.bind(K):f},
set:function(f){K[d]=f}}};
S$X=function(K,d){for(var f=K._noAccessors,H=_.y(Object.getOwnPropertyNames(K)),D=H.next();!D.done;D=H.next())if(D=D.value,!VfN.has(D))if(f)d[D]=K[D];else{var S=Object.getOwnPropertyDescriptor(K,D);S&&(S.configurable=!0,Object.defineProperty(d,D,S))}};
yHz=function(K,d,f){return function(H){if(f){var D=f();H.model=D}if(K[d])K[d](H,H.detail)}};
Yp=function(K){var d=[];if(typeof K==="string")K.length>0&&d.push.apply(d,_.Me(K.split(".")));else{K=_.y(K);for(var f=K.next();!f.done;f=K.next())f=f.value,typeof f==="string"?d.push.apply(d,_.Me(f.split("."))):d.push(f)}return d};
ndG=function(K,d){if(d[d.length-1]!=="*"&&d[d.length-1]!=="splices"){for(var f=0;f<d.length;f++){if(!K)return;K=K[d[f]]}return K}};
iW5=function(K,d){if(K.length>d.length)return!1;for(var f=0;f<K.length;f++)if(K[f]!==d[f])return!1;return!0};
u9p=function(K,d,f){if(d.type==="compute"){var H=d.getter.bind(f);var D=d.args}else H=function(){return f[d.method.methodName].apply(f,_.Me(_.Pg.apply(0,arguments)))},D=d.method.args;
cHO(K,d.propertyKey,H,D,d.value)};
IuX=function(K,d){if(d.readOnly){var f=Object.getOwnPropertyDescriptor(K.model,d.propertyKey);Object.defineProperty(K.model,d.propertyKey,{get:f.get,set:function(){}});
K.model[aup(d.propertyKey)]=f.set}};
U95=function(K,d,f){if(f){var H=d.propertyKey,D=d.selector;d=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Me(d.selectorArgs.map(function(S){return{type:"path",path:S}})));
cHO(K,H,function(S){var n=_.Pg.apply(1,arguments);return D.apply(null,[f.getState()].concat(_.Me(n)))},d)}};
FiO=function(K,d,f){var H=_.iw(d.propertyKey)+"-changed";RWz(K,function(D){var S={value:D.value,queueProperty:!0};D.path.split(".").length>1&&(S.path=D.path);f.dispatchEvent(new CustomEvent(H,{detail:S}))},[{type:"wildcard",
path:d.propertyKey}])};
zWn=function(K,d,f){RWz(K,function(){f[d.method.methodName].apply(f,_.Me(_.Pg.apply(0,arguments)))},d.method.args)};
aup=function(K){return"_set"+(K.charAt(0).toUpperCase()+K.slice(1))};
XzX=function(){var K,d=En(function(f){K=f},!1);
return[K,d]};
OWB=function(K){K=K.trim().replace(vdS,",").replace(MfJ,"$1");var d=K[0];d==="-"&&(d=K[1]);if(d>="0"&&d<="9")return{type:"literal",value:Number(K)};if(d==="'"||d==='"')return{type:"literal",value:K.slice(1,-1)};if(d=K.match(Pnn)){d=d[1];var f=gdB[d];if(f)return{type:f,path:K.slice(0,-(d.length+1))}}return{type:"path",path:K}};
odu=function(K){var d=K.match(NWX);if(d)return K={methodName:d[1],args:Y$X},d[2].trim()&&(d=d[2].replace(tfJ,"&comma;").split(","),K.args=d.map(OWB)),K};
$9O=function(K,d,f,H){H=H===void 0?!1:H;d=_.iw(d);var D=I4;D&&(f=D(f,d,"attribute",K));tM(K,f,d,H)};
tM=function(K,d,f,H){d=EdN(d,H===void 0?!1:H);d===void 0?K.removeAttribute(f):K.setAttribute(f,d)};
EdN=function(K,d){switch(typeof K){case "object":case "function":if(K instanceof Date)return K.toString();if(K){if((d===void 0?0:d)&&!_.M("polymer_reflect_objects_as_boolean_killswitch"))return K?"":void 0;d=window.trustedTypes?window.trustedTypes.isHTML(K)||window.trustedTypes.isScript(K)||window.trustedTypes.isScriptURL(K):void 0;if(d)return K;try{return JSON.stringify(K)}catch(f){_.h3(Error("Bg`"+K))}}break;case "boolean":return K?"":void 0;default:return K!==null&&K!==void 0?K.toString():void 0}};
hWS=function(K){if(K===void 0)throw Error("Cg");return K};
G5X=function(K,d,f,H){var D=bWu(H);if(D.length){H=f;var S="property";m9o.test(f)?S="attribute":f[f.length-1]==="$"&&(f=f.slice(0,-1),S="attribute");var n=lun(D);n&&S==="attribute"&&(f==="class"&&K.hasAttribute("class")&&(n+=" "+K.getAttribute(f)),tM(K,n,f));S==="attribute"&&H==="disable-upgrade$"&&K.setAttribute("disable-upgrade","");K.localName==="input"&&H==="value"&&K.setAttribute("value","");K.removeAttribute(H);S==="property"&&(f=_.c0(f));d=hWS(d);Wiu(d,S,f,D);return!0}return f.slice(0,3)===
"on-"?(K.removeAttribute(f),(S=d).events!=null||(S.events=[]),d.events.push({name:f.slice(3),value:H}),!0):f==="id"?(d.id=H,!0):!1};
bWu=function(K){for(var d=[],f=0,H;(H=AH5.exec(K))!==null;){H.index>f&&d.push({type:"literal",value:K.slice(f,H.index)});var D=H[1][0];f=!!H[2];H=H[3].trim();if(D==="{")throw Error("Dg");(D=odu(H))?d.push({type:"method",negate:f,signature:D}):d.push({type:"path",negate:f,path:H});f=AH5.lastIndex}f&&f<K.length&&(K=K.substring(f))&&d.push({type:"literal",value:K});return d};
lun=function(K){for(var d="",f=0;f<K.length;f++){var H=K[f];H.type==="literal"&&(d+=H.value)}return d};
Wiu=function(K,d,f,H){K.bindings!=null||(K.bindings=[]);K.bindings.push({kind:d,target:f,parts:H})};
jJu=function(K,d,f){var H=!1;if(K.localName==="template"){H=f;var D=d.stripWhitespace;D=TWz(K,D===void 0?!1:D);var S=K.content.ownerDocument.createDocumentFragment();D.content=S;S.appendChild(K.content);H&&(H.templateInfo=D);H=!0}else K.localName==="slot"&&(d.hasInsertionPoint=!0);if(K.firstChild&&(D=f,K.localName!=="script"&&K.localName!=="style")){S=0;for(var n=K.firstChild;n;){var u=n;if(u.localName==="template"){var a=u.getAttribute("is");if((n=a==="dom-if")||a==="dom-repeat"){u.removeAttribute("is");
a=u.ownerDocument.createElement("ps-"+a);u.parentNode.replaceChild(a,u);a.appendChild(u);var R=Array.from(u.attributes);R=_.y(R);for(var F=R.next();!F.done;F=R.next())F=F.value,n?rHN.has(F.name)&&tM(a,F.value,F.name):q$z.has(F.name)?tM(a,F.value,F.name):QJY.has(F.name),u.removeAttribute(F.name);n=a}else n=u}if(n.nodeType===Node.TEXT_NODE){u=void 0;a=K;for(R=n;((u=R.nextSibling)==null?void 0:u.nodeType)===Node.TEXT_NODE;)F=void 0,(F=R).textContent!=null||(F.textContent=""),R.nextSibling.textContent&&
(R.textContent+=R.nextSibling.textContent),a.removeChild(R.nextSibling);if(d.stripWhitespace&&n.textContent&&!n.textContent.trim()){K.removeChild(n);n=n.nextSibling;continue}}jJu(n,d,{parentIndex:S,parentInfo:D});n.parentNode&&S++;n=n.nextSibling}}var z;if((z=K.hasAttributes)==null?0:z.call(K)){z=f=hWS(f);D=!1;S=Array.from(K.attributes);S=_.y(S);for(u=S.next();!u.done;u=S.next())u=u.value,D=G5X(K,z,u.name,u.value)||D;H=D||H}K.nodeType===Node.TEXT_NODE&&(z=bWu(K.textContent),z.length&&(K.textContent=
lun(z)||" ",f=hWS(f),Wiu(f,"text","textContent",z),H=!0));f&&H&&(f.infoIndex=d.nodeInfoList.push(f)-1)};
TWz=function(K,d){d={nodeInfoList:[],stripWhitespace:(d===void 0?!1:d)||K.hasAttribute("strip-whitespace")};jJu(K.content,d);return d};
CnJ=function(K){Object.assign(K,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
Lip=function(K,d,f){d.signalCache!=null||(d.signalCache={});var H=d.signalCache[f];if(!H){var D=f.split(".");H=!x9O(K,D[0]);if(D.length>1&&H){var S=K.getPathMutationSignal(D);H=function(){var n=mU(K.owner,function(){return K.getWithPath([D[0]])}),u,a=(u=S())==null?void 0:u.value;
return{rootWasDefined:n!==void 0,value:a}}}else H=function(){var n=K.getWithPath(D);
return{rootWasDefined:n!==void 0,value:n}};
d.signalCache[f]=H}return H()};
JHz=function(K,d,f,H,D){d=d.parts.map(function(n,u){if(n.type==="literal"){f.partWasDefined!=null||(f.partWasDefined=[]);var a;(a=f.partWasDefined)[u]||(a[u]=n.value!==void 0);return n.value}var R;if(n.type==="method"){var F,z=(F=(R=f.partWasDefined)==null?void 0:R[u])!=null?F:!1;z||(z=n.signature.args.every(function(N){return N.type==="literal"}));
var v=!1,g=!0;R=n.signature.args.map(function(N){if(N.type==="literal")return N.value;if(N.type!=="path")throw Error("Eg`"+N.type);var h=Lip(K,f,N.path);N=h.value;h=h.rootWasDefined;v||(v=h);g&&(g=h);return N});
z||(z=D===1?g:v);f.partWasDefined!=null||(f.partWasDefined={});f.partWasDefined[u]=z;if(!z)return;R=(u=Lip(K,f,n.signature.methodName).value)&&typeof u==="function"?u.apply(H,R):void 0}else F=Lip(K,f,n.path),R=F.value,f.partWasDefined!=null||(f.partWasDefined={}),(z=f.partWasDefined)[u]||(z[u]=R!==void 0||F.rootWasDefined);n.negate&&(R=!R);return R});
if(d.length===1){var S;return((S=f.partWasDefined)==null?0:S[0])?d[0]:BWO}return d.join("")};
sJX=function(K){return typeof K==="object"&&!!K&&"notifyPath"in K&&"canNotifyPath"in K};
k5u=function(K){return typeof K==="object"&&!!K&&"notifyPath"in K};
wzz=function(K){return"polymerController"in K};
ZW5=function(K,d){d=""+Yp(d)[0];if(sJX(K))return K.canNotifyPath(d);if(wzz(K)&&sJX(K.polymerController))return K.polymerController.canNotifyPath(d);if(k5u(K)){var f;return!((f=K.properties)==null||!f[d])}if(wzz(K)&&k5u(K.polymerController)){var H;return!((H=K.polymerController.properties)==null||!H[d])}return!1};
eWY=function(K,d,f){sJX(K)||k5u(K)?K.notifyPath(d,f):wzz(K)&&(sJX(K.polymerController)||k5u(K.polymerController))&&K.polymerController.notifyPath(d,f)};
Kaz=function(K,d,f){if(f!==BWO){K.kind==="attribute"||K.target!=="textContent"&&(K.target!=="value"||d.localName!=="input"&&d.localName!=="textarea")||(f=f===void 0?"":f);var H,D=(H=pzX.Polymer)==null?void 0:H.sanitizeDOMValue;D&&(f=D(f,K.target,K.kind,d));if(K.kind==="attribute"){K=K.target;if(K==="class"||K==="name"||K==="slot")d=(0,_.dj)(d);tM(d,f,K)}else if(K=K.target,f!==d[K]||typeof f==="object")d.loggingStatus&&(d.loggingStatus.isDeclarativeExternal=!0,Rn(d.localName,K,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
d[K]=f,d.loggingStatus&&(d.loggingStatus.isDeclarativeExternal=!1)}};
dKS=function(K,d,f,H){var D=d.parts[0];if(d.parts.length!==1||D.type!=="path"||!ZW5(f,d.target))return!1;var S=_.y(D.path.split(".")),n=S.next().value,u=By(S);if(x9O(K,n))return!1;H.signalCache!=null||(H.signalCache={});S=H.signalCache[D.path];var a;S=(a=S)==null?void 0:a().value;if((S==null?void 0:S.path)!==void 0){H=Yp(S.path);var R=Yp(D.path);H=[d.target].concat(_.Me(H.slice(R.length-1)));eWY(f,H,D.negate?!S.value:S.value);return!0}var F=on(K,n);var z=F.getChangeRecordSignal(u),v=!1;S=function(){if(!v){var N=
mU(K.owner,function(){return F.getWithPath([])});
v||(v=N!==void 0)}return{value:z(),rootWasDefined:v}};
H.signalCache[D.path]=S;H.partWasDefined!=null||(H.partWasDefined={});S=S();(R=H.partWasDefined)[0]||(R[0]=S.rootWasDefined);var g=mU(K.owner,function(){return F.getWithPath(u)});
H.partWasDefined[0]&&mU(K.owner,function(){return void Kaz(d,f,D.negate?!g:g)});
return!0};
fVG=function(K,d,f,H,D,S){if(!dKS(K,d,f,H)){var n=JHz(K,d,H,D,S);mU(K.owner,function(){return void Kaz(d,f,n)})}};
Hep=function(K,d,f,H,D,S){f=_.y(f);for(var n=f.next(),u={};!n.done;u={infoIndex:void 0},n=f.next()){n=n.value;var a=n.bindings;u.infoIndex=n.infoIndex;n=n.parentInfo;if(a){a=_.y(a);for(var R=a.next(),F={};!R.done;F={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},R=a.next()){F.b$jscomp$254=R.value;if(u.infoIndex===void 0)throw Error("Fg");F.bindingCtx$jscomp$4={};K.effect(function(z,v){return function(){D&&!D()||fVG(K,z.b$jscomp$254,d[v.infoIndex],z.bindingCtx$jscomp$4,H,S)}}(F,u))}}n&&Hep(K,d,[n],
H,D,S)}};
DKO=function(K,d){K=(d.parentInfo?DKO(K,d.parentInfo):K).firstChild;for(var f=0;K;K=K.nextSibling)if(d.parentIndex===f++)return K;throw Error("Gg");};
SRB=function(K,d,f,H){K=document.importNode(K.content,!0);K.__noInsertionPoint=!(H==null?0:H.hasInsertionPoint);for(var D=Array(d.length),S={},n=0;n<d.length;n++){var u=d[n],a=DKO(K,u);D[n]=a;u.id&&(S[u.id]=a);if(u.templateInfo){var R=a.parentElement;R&&(R.templateInfo=u.templateInfo,R.parentSignalProxy=f,R.eventListenerHost=H.eventListenerHost,R.stampingEnabled=H.enabledSignal)}R=void 0;if((R=u.events)==null?0:R.length)for(R=0;R<u.events.length;R++){var F=u.events[R];Vo5(H.eventListenerHost,a,F.name,
F.value,H.getModel)}}Hep(f,D,d,H.thisCtx,H.enabledSignal,H.methodInvocationRequirement);return{root:K,nodes:D,nodesById:S}};
n4B=function(K,d){K=K();var f;(f=y2S.ShadyCSS)==null||f.prepareTemplate(K,d);d=TWz(K);return{template:K,nodeInfoList:d.nodeInfoList,hasInsertionPoint:d.hasInsertionPoint}};
uVz=function(){ieJ=!1;for(var K=$p.length,d=0;d<K;d++){var f=$p[d];if(f)try{f()}catch(H){Promise.resolve().then(function(){throw H;})}}$p.splice(0,K);
c2p+=K};
R6o=function(K){ieJ||(ieJ=!0,aVG.textContent=(IVY++).toString());$p.push(K);return UKo++};
_.bL=function(K,d,f){Ez++;K=d?new FaG(Ez,K,d,f):new z6Y(Ez,K);hM.set(Ez,K);return Ez};
XsJ=function(K){(K=hM.get(K))&&K.cancel()};
MoG=function(K,d){K=v4o.get(K);return K?(d=K.get(d))?d:null:null};
_.mx=function(K,d,f,H){var D=MoG(K,d);if(!D){D=new PYp;var S=v4o.get(K);S||(S=new Map,v4o.set(K,S));S.set(d,D)}K=f.bind(K);D.run(K,H,void 0)};
_.g4O=function(K,d){var f;(f=MoG(K,d))==null||f.cancel()};
OeJ=function(K){var d;(d=MoG(K,"doRender"))==null||d.flush()};
lL=function(K){var d;return(d=K.hostElement)!=null?d:K};
NCB=function(K){var d=K.indexOf(".");return d===-1?K:K.slice(0,d)};
YRY=function(K,d,f,H,D,S){S=(D=(H=S?NCB(d):d)?d:null)?K.get(D):K.__data[d];D&&S===void 0&&(S=f[d]);_.Zp(K.hostElement,d0S(H)+"-changed",{value:S,queueProperty:!0,path:D!=null?D:void 0},{bubbles:!1,composed:!1})};
tou=function(K,d){K.__isReflecting=!0;$9O(K.hostElement,d,K.__data[d]);K.__isReflecting=!1};
o45=function(K){if(K._onIronRequestResizeNotifications){var d=K._onIronRequestResizeNotifications.bind(K);K._onIronRequestResizeNotifications=function(f){_.Qm(f)!==K.hostElement&&d(f)}}K._ariaActiveAttributeChanged&&(K._ariaActiveAttributeChanged=K._ariaActiveAttributeChanged.bind(K.hostElement));
K._activeChanged&&(K._activeChanged=function(f){K.toggles?tM(K.hostElement,f?"true":"false",K.ariaActiveAttribute):K.hostElement.removeAttribute(K.ariaActiveAttribute);K._changedButtonState()});
K._asyncClick&&(K._asyncClick=function(){_.bL(function(){K.hostElement.click()},1)});
!K.keyEventTarget||K.keyEventTarget instanceof EventTarget||(K.keyEventTarget=lL(K.keyEventTarget));K._disabledChanged&&(K._disabledChanged=K._disabledChanged.bind(K.hostElement));K._observeItems&&(K._observeItems=function(f){var H=lL(f);return _.Xd(H).observeNodes(function(D){K._updateItems();K._updateSelected();_.Zp(H,"iron-items-changed",D,{bubbles:!1,cancelable:!1})})});
K._updateItems&&K._updateItems===_.WP._updateItems&&(K._updateItems=function(){var f=_.Xd(K.hostElement).queryDistributedElements(K.selectable||"*");f=Array.prototype.filter.call(f,K._bindFilterItem);K._setItems(f)});
K._computeKeyboardClass&&(K._computeKeyboardClass=function(f){_.pU(K.hostElement,"keyboard-focus",f)});
K.ensureRipple&&(K.ensureRipple=function(f){if(K.hasRipple&&!K.hasRipple()){if(!K._createRipple)return;K._ripple=K._createRipple();K._ripple.noink=K.noink;var H=K._rippleContainer||K.hostElement;H&&_.E(H).appendChild(K._ripple)}var D;if(f&&((D=K._ripple)==null?0:D.uiDownAction)){H=_.E(K._rippleContainer||K.hostElement);var S;D=(S=f.composedPath())==null?void 0:S[0];H.contains(D)&&K._ripple.uiDownAction(f)}});
K._updateMultiselectable&&(K._updateMultiselectable=function(f){f?K.hostElement.setAttribute("aria-multiselectable","true"):K.hostElement.removeAttribute("aria-multiselectable")})};
$Kz=function(K,d,f){f=_.y(f);for(var H=f.next();!H.done;H=f.next())D9Y(H.value.constructor,K);D9Y(d.constructor,K)};
h6o=function(K,d){K=_.y(K);for(var f=K.next();!f.done;f=K.next())if(f=f.value,f.type==="signal"){var H=f.propertyKey;if(d.hasOwnProperty(H)&&d[H]!=null&&f.attributeType===Object){a:{H=d[H].constructor;for(var D=_.y(E4S),S=D.next();!S.done;S=D.next())if(S=S.value,H===S){H=S;break a}H=Object}f.attributeType=H}}};
bez=function(){};
mKG=function(K){var d;return(d=K.hostElement)!=null?d:K};
lVY=function(){throw Error("Kg");};
WaY=function(K,d){K.constructor.prototype.useSignals=!0;var f=new K.constructor;$Kz(f,K,d.behaviors);h6o(d.reactiveSchemas,f);f={};for(var H=_.y(d.reactiveSchemas),D=H.next();!D.done;D=H.next())D=D.value,D.type==="signal"&&(f[D.propertyKey]=D.attributeType);var S={copyPropertiesToProto:lVY,didRegister:!1,typesForSignals:f},n=["disable-upgrade"].concat(_.Me(d.observedAttributes)),u=function(a){GC.call(this,K,d,S,a)};
_.O(u,GC);_.x$.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return n}}});
S.copyPropertiesToProto=function(){for(var a=0;a<d.behaviors.length;a++)S$X(d.behaviors[a],u.prototype);S$X(K,u.prototype)};
d.legacyOptimizations||S.copyPropertiesToProto();u.prototype.is=K.is;return u};
GtJ=function(K,d){if(Object.getPrototypeOf(d.prototype).constructor!==_.q)throw Error("Lg");d.prototype.is=K.is;return WaY(d.prototype,K)};
A2z=function(K){return K.type==="compute"||K.type==="computeWithMethod"};
TCz=function(K){for(var d=K.reactiveSchemas.filter(A2z),f=new Map,H=new Map,D=new Map,S=_.y(d),n=S.next();!n.done;n=S.next())n=n.value,f.set(n.propertyKey,n),H.set(n.propertyKey,[]),D.set(n.propertyKey,0);S=0;d=_.y(d);for(n=d.next();!n.done;n=d.next()){n=n.value;for(var u=_.y(n.type==="computeWithMethod"?n.method.args:n.args),a=u.next();!a.done;a=u.next())a=a.value,a.type!=="literal"&&(a=a.path.split(".")[0],H.has(a)&&(H.get(a).push(n.propertyKey),D.set(n.propertyKey,D.get(n.propertyKey)+1),S++))}n=
[].concat(_.Me(H.keys())).filter(function(R){return D.get(R)===0});
for(d=[];n.length;)for(u=n.shift(),d.push(f.get(u)),u=_.y(H.get(u)),a=u.next();!a.done;a=u.next())a=a.value,D.set(a,D.get(a)-1),S--,D.get(a)===0&&n.push(a);f=K.reactiveSchemas.filter(function(R){return!A2z(R)});
K.reactiveSchemas=[].concat(_.Me(f),_.Me(d))};
r2o=function(K,d){if(d.properties)for(var f=_.y(Object.entries(d.properties)),H=f.next();!H.done;H=f.next()){var D=_.y(H.value);H=D.next().value;D=D.next().value;K.properties[H]=typeof D==="function"?{type:D}:D}d.observers&&K.observers.push.apply(K.observers,_.Me(d.observers));d.disabledPolySiReactions&&K.disabledPolySiReactions.push.apply(K.disabledPolySiReactions,_.Me(d.disabledPolySiReactions))};
qRz=function(K,d){for(var f=d.length-1;f>=0;f--){var H=d[f];Array.isArray(H)?qRz(K,H):K.indexOf(H)<0&&K.unshift(H)}};
QWG=function(K,d){K.reactiveSchemas=K.reactiveSchemas.filter(function(f){return f.type==="observe"&&d.includes(f.method.methodName)||A2z(f)&&d.includes(f.propertyKey)?!1:!0})};
CYN=function(K,d){var f=d.prototype,H,D,S={is:K.is,reactiveSchemas:[],observedAttributes:[],behaviors:[ekB.InjectBehavior,gj.prototype],disableElementRegistration:K.disableElementRegistration,provide:(H=K.providers)!=null?H:[],reactivityMode:K.reactivityMode,signalProperties:(D=f.signalProperties)!=null?D:[]};"template"in d?S.templateGetter=function(){return d.template}:K.getTemplate&&(S.templateGetter=K.getTemplate);
f.behaviors&&qRz(S.behaviors,f.behaviors);jW5(S,d);return S};
jW5=function(K,d){for(var f=d.prototype,H={properties:{},observers:[],disabledPolySiReactions:[]},D=_.y(K.behaviors),S=D.next();!S.done;S=D.next())r2o(H,S.value);r2o(H,f);if(K.signalProperties)for(f=_.y(K.signalProperties),D=f.next();!D.done;D=f.next())delete H.properties[D.value];f=_.y(Object.entries(H.properties));for(D=f.next();!D.done;D=f.next()){S=_.y(D.value);D=S.next().value;S=S.next().value;var n=void 0;if((n=K.signalProperties)==null||!n.includes(D)){n=void 0;var u=K,a=S.type;if(!a)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{a=Reflect.getMetadata("design:type",d,D);for(var R=_.y(xKn),F=R.next();!F.done;F=R.next())if(F=F.value,a===F){a=F;break a}a=Object}else a=String;S.computed||S.selector||(u.reactiveSchemas.push({type:"signal",propertyKey:D,value:S.value,attributeType:a,readOnly:S.readOnly}),u.observedAttributes.push(_.iw(D)));S.reflectToAttribute&&u.reactiveSchemas.push({type:"reflect",propertyKey:D});if(S.computed){a=odu(S.computed);if(!a)throw Error("Mg");u.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:D,method:a,value:S.value})}S.observer&&u.reactiveSchemas.push({type:"observe",method:{methodName:S.observer,args:[{type:"path",path:D}]}});S.notify&&u.reactiveSchemas.push({type:"notify",propertyKey:D});S.selector&&u.reactiveSchemas.push({type:"redux",propertyKey:D,selector:S.selector,selectorArgs:(n=S.selectorArgs)!=null?n:[]})}}Lao&&TCz(K);d=_.y(H.observers);for(D=d.next();!D.done;D=d.next())f=K,D=D.value,(S=odu(D))?f.reactiveSchemas.push({type:"observe",method:S}):console.log('Warning: unable to parse observe declaration: "'+
D+'"');QWG(K,H.disabledPolySiReactions)};
BCn=function(K,d){for(var f=0;f<d.length;f++){var H=d[f],D=void 0;(D=H).showHideApi!=null||(D.showHideApi={});D=void 0;!!K!==!((D=H.showHideApi)==null||!D.hideTemplateChildren)&&(H.nodeType===Node.TEXT_NODE?K?(H.showHideApi.polymerTextContent=H.textContent,H.textContent=""):(D=void 0,H.textContent=(D=H.showHideApi.polymerTextContent)!=null?D:null):H instanceof Element&&H.localName==="slot"?K?(H.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.dj)((0,_.dj)(H).parentNode).replaceChild(H.showHideApi.polymerReplaced,
H)):(D=H.showHideApi.polymerReplaced)&&(0,_.dj)((0,_.dj)(D).parentNode).replaceChild(H,D):H instanceof HTMLElement&&H.style&&(K?(H.showHideApi.polymerDisplay=H.style.display,H.style.display="none"):H.style.display=H.showHideApi.polymerDisplay));H.showHideApi.hideTemplateChildren=K;H.showHideChildren&&H.showHideChildren(K)}};
sWS=function(){if(!J2Y){var K=document.createElement("style");K.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(K);J2Y=!0}};
AM=function(){return _.M("disable_hidden_dom_if_using_stamper")||_.M("creator_disable_hidden_dom_if_using_stamper")};
ktp=function(K,d){var f=_.TC().getState();return d?K.apply(null,[f].concat(_.Me(d))):K(f)};
e6J=function(){if(wsN)return wsN;var K=_.y(_.cC(0,void 0,"Nl6eIe")),d=K.next().value;K.next();var f=K.next().value;_.TC().subscribe(function(){ZeY(f)});
return wsN=d};
ZeY=function(K){_.M("delay_redux_signal_update_killswitch")?K(function(d){return d+1}):psz||(psz=!0,Promise.resolve().then(function(){K(function(d){return d+1});
psz=!1}))};
_.TC=function(){return KsS.getAppStore()};
rj=function(K,d){return KsS.getSelectFn()(K,d)};
_.q7=function(K){KsS.getDispatchFn()(K)};
dCX=function(K,d){var f={},H;for(H in K)f[H]=d(K[H],H);return f};
_.QV=function(K,d){return function(){var f;return(f=_.hc(K))!=null?f:d}};
_.jP=function(K,d){var f=Object.assign({},K),H;for(H in d)d.hasOwnProperty(H)&&(f[H]=_.QV(K[H],d[H]));return f};
fJp=function(K,d,f){K instanceof Element&&(f.debugName||(f.debugName="<"+K.tagName.toLowerCase()+(K.tagName.includes("-")?">":"."+K.className+">")),_.M("ytwiz_enable_debug_component_props")&&(K.debugProps||(K.debugProps=dCX(d,function(H){return function(){return H()}}))))};
_.C8=function(K,d){var f=function(H){var D={stack:[],error:void 0,hasError:!1};try{var S=H9X={};var n=DCX(D,lTO("ytComponent",{})),u;if(((u=f)==null?0:u.idomCompat)&&H.renderedFromIdom){n==null||n.attr("idomCompat",!0);var a,R=typeof f.idomCompat==="object"?(a=f)==null?void 0:a.idomCompat.callbacks:{},F=_.y(VNu(H,R,f.debugName)),z=F.next().value;F.next();var v=F.next().value,g=S4X(K,z);S.privateValue=g;H9X=void 0;fJp(g,z,f);n==null||n.attr("debugName",f.debugName);var N=ZAX(g),h=Array.isArray(N)?
N[0]:N;h[nQ]||(h[nQ]={});h[nQ].updateSignalsFromIdomProps=v;return g}var m=dCX(H,yXG);var T=S4X(K,m);S.privateValue=T;H9X=void 0;fJp(T,m,f);n==null||n.attr("debugName",f.debugName);return T}catch(r){D.error=r,D.hasError=!0}finally{n3z(D)}};
f.debugName=d===void 0?"":d;return f};
S4X=function(K,d){K=K(d);return Id(K)};
i9o=function(K,d){K[d]||(K=new _.X4("IDOM interop setter undefined. Key:",d),_.$7(K))};
yXG=function(K,d){return d==="children"||d==="ref"||typeof K==="function"||K===void 0?K:function(){return _.hc(K)}};
VNu=function(K,d,f){var H={},D={},S={},n={},u;for(u in K){n={key$jscomp$890:n.key$jscomp$890};n.key$jscomp$890=u;var a=K[n.key$jscomp$890];if(n.key$jscomp$890==="children"||n.key$jscomp$890==="ref")H[n.key$jscomp$890]=a;else if(typeof a==="function")n.key$jscomp$890 in d||a.length>0?(S[n.key$jscomp$890]=a,H[n.key$jscomp$890]=function(F){return function(){return S[F.key$jscomp$890].apply(S,_.Me(_.Pg.apply(0,arguments)))}}(n)):H[n.key$jscomp$890]=a;
else if(!(K[n.key$jscomp$890]===void 0&&n.key$jscomp$890 in d)){var R=_.y(_.cC(K[n.key$jscomp$890],{debugName:"__cwis:"+f+":"+n.key$jscomp$890},"cEBU8c"));a=R.next().value;R=R.next().value;H[n.key$jscomp$890]=a;D[n.key$jscomp$890]=R}}return[H,D,function(F){var z={},v;for(v in F)z={key$jscomp$891:z.key$jscomp$891,val$jscomp$117:void 0},z.key$jscomp$891=v,z.val$jscomp$117=F[z.key$jscomp$891],z.key$jscomp$891!=="children"&&z.key$jscomp$891!=="ref"&&(typeof z.val$jscomp$117==="function"?z.key$jscomp$891 in
d?S[z.key$jscomp$891]=z.val$jscomp$117:z.val$jscomp$117.length>0&&(S[z.key$jscomp$891]=z.val$jscomp$117,_.h3(new _.X4("Callback detected that was not set in the idomCompat callbacks map. Key:",z.key$jscomp$891))):z.key$jscomp$891 in d&&z.val$jscomp$117===void 0||(i9o(D,z.key$jscomp$891),vC(function(g){return function(){D[g.key$jscomp$891](g.val$jscomp$117)}}(z))))}]};
aJY=function(K,d,f){var H=Ifp(K.prototype,cXX,K.prototype.behaviors);H.prototype.is=d;H.prototype.localName=d;f&&u$z(H,f);return function(D){D&&(H.prototype.hostElement=D);var S=new H;S.root=S;S.hostElement=D;return S}};
u$z=function(K,d){var f;Object.defineProperty(K.prototype,"_template",{get:function(){f===void 0&&(f=d());return f},
set:function(H){f=H},
configurable:!0,enumerable:!0})};
zNS=function(K,d,f,H){function D(){if(!g){for(var N=new Set,h=_.y(F),m=h.next();!m.done;m=h.next()){m=m.value;for(var T=_.y(Object.getOwnPropertyNames(m)),r=T.next();!r.done;r=T.next()){r=r.value;var J=void 0,L=(J=Object.getOwnPropertyDescriptor(m,r))==null?void 0:J.value;L&&L instanceof Function&&!xp(r)&&(!u[r]||_.M("polymer_forward_method_killswitch"))&&N.add(r)}}h=_.y(Object.entries(Object.getOwnPropertyDescriptors(K.prototype)));for(m=h.next();!m.done;m=h.next())T=_.y(m.value),m=T.next().value,
T=T.next().value,T.value instanceof Function&&!xp(m)&&N.add(m);g=N}return g}
IJp(K,d,H==null?void 0:H.providers);Uvz(K.prototype,K,!0);var S=aJY(K,d,f),n,u=(n=K.prototype.properties)!=null?n:{},a,R,F=(R=(a=K.prototype.behaviors)==null?void 0:a.flat(Infinity))!=null?R:[];f=_.y(F);for(n=f.next();!n.done;n=f.next())u=Object.assign({},n.value.properties,u);var z=[].concat(_.Me(UCB),_.Me(Object.keys(u).map(function(N){return _.iw(N)}))),v=!1,g;
return{ctor:function(N,h){var m=S(N),T,r;N=[].concat(_.Me((T=H==null?void 0:H.allowedProps)!=null?T:[]),_.Me((r=H==null?void 0:H.allowedPropsFromBehaviors)!=null?r:[]));m.allowedProps=N.length>0?N:void 0;T={};r=_.y(z);for(N=r.next();!N.done;N=r.next())N=N.value,T[N]=_.c0(N);m.__dataAttributes=T;var J=m.ready.bind(m);m.ready=function(){h.beforeReady();J();if(In(d)&&!v){var L=m.__templateInfo;if(L==null?0:L.hostProps){L=_.y(Object.keys(L.hostProps));for(var fB=L.next();!fB.done;fB=L.next())Rn(d,fB.value,
"PROPERTY_ACCESS_GET_INTERNAL")}v=!0}};
m._overrideLegacyUndefined=!0;return m},
props:u,observedAttributes:z,getInitialMethods:D,getPropsToForwardBeforeRegister:function(){for(var N=[],h=new Set,m=_.y(Object.keys(u)),T=m.next();!T.done;T=m.next())T=T.value,N.push([T,u[T].readOnly]),h.add(T);m=D();T=_.y(Object.keys(Object.getOwnPropertyDescriptors(K.prototype)));for(var r=T.next();!r.done;r=T.next())r=r.value,!RNS(r)||m.has(r)||h.has(r)||(N.push([r,!1]),h.add(r));h=_.y(FsX);for(m=h.next();!m.done;m=h.next())N.push([m.value,!0]);return N},
getPropsToForwardBeforeReady:function(N){for(var h=[],m=_.y(Object.entries(N)),T=m.next();!T.done;T=m.next()){var r=_.y(T.value);T=r.next().value;r=r.next().value;if(RNS(T)&&!(r instanceof Function)&&(h.push([T,!1]),In(d))){var J=r=void 0;(J=(r=N)._createPropertyAccessor)==null||J.call(r,T)}}return h},
shouldForwardProp:RNS,shouldLog:In}};
IJp=function(K,d,f){pIz(K,f);K.prototype.behaviors.unshift(XSX);if(qOJ()){if(In(d)){var H;(H=K.prototype).behaviors!=null||(H.behaviors=[]);K.prototype.behaviors.unshift(xZO())}LXz(K)}_.l(gj.prototype)(K.prototype,"__templateHelpers")};
xp=function(K){return v3N.has(K)||K.startsWith("__compute__")};
RNS=function(K){return!xp(K)&&!K.startsWith("_")&&!K.endsWith("_")};
NtG=function(K,d){function f(){var v=a();v=_.y(v);for(var g=v.next();!g.done;g=v.next()){var N=_.y(g.value);g=N.next().value;N=N.next().value;MNJ(z.prototype,g,N)}H=!0}
var H=!1,D=K.ctor,S=K.getInitialMethods,n=K.observedAttributes,u=K.getPropsToForwardBeforeReady,a=K.getPropsToForwardBeforeRegister,R=K.shouldForwardProp,F=K.shouldLog,z=function(){var v=HTMLElement.call(this)||this;v.didForwardDynamicProps=!1;v.loggingStatus={};H||f();v.inst=D(v,{beforeReady:function(){v.didForwardDynamicProps||(v.forwardDynamicProps(),v.didForwardDynamicProps=!0)}});
v.controllerProxy=jT5(v.inst,d);v.forwardMethods();return v};
_.O(z,HTMLElement);z.prototype.forwardMethods=function(){for(var v=this,g=_.y(this.inst.getExtraMethodsToForward()),N=g.next(),h={};!N.done;h={method$jscomp$60:void 0},N=g.next()){var m=_.y(N.value);N=m.next().value;m=m.next().value;h.method$jscomp$60=m;this[N]=function(T){return function(){return T.method$jscomp$60.call.apply(T.method$jscomp$60,[v.inst].concat(_.Me(_.Pg.apply(0,arguments))))}}(h)}g=_.y(S());
for(h=g.next();!h.done;h=g.next())h=h.value,R(h)&&PGo(this,h),F(d)&&!xp(h)&&g3p(this.inst,h)};
z.prototype.forwardDynamicProps=function(){var v=u(this.inst);v=_.y(v);for(var g=v.next();!g.done;g=v.next()){var N=_.y(g.value);g=N.next().value;N=N.next().value;MNJ(this,g,N);F(d)&&!xp(g)&&O9O(this.inst,g)}};
z.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
z.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
z.prototype.attributeChangedCallback=function(v,g,N){this.inst.attributeChangedCallbackWrapper(v,g,N)};
_.x$.Object.defineProperties(z.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return d}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.x$.Object.defineProperties(z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return n}}});
customElements.define(d,z)};
MNJ=function(K,d,f){K.hasOwnProperty(d)||Object.defineProperty(K,d,{get:function(){var H,D=((H=K.is)!=null?H:K.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Rn(D,d,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,H=this.polymerController[d],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,H},
set:function(H){if(!f){var D,S=((D=K.is)!=null?D:K.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Rn(S,d,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=d,this.loggingStatus.bypassProxyController=!0,this.polymerController[d]!==H&&(D={},this.polymerController.setProperties((D[d]=H,D)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
PGo=function(K,d,f){var H=K.polymerController;K[d]=function(){var D=_.Pg.apply(0,arguments);K.loggingStatus.currentExternalCall=d;K.loggingStatus.bypassProxyController=!0;var S,n=((S=K.is)!=null?S:K.tagName).toLowerCase();Rn(n,d,"PROPERTY_ACCESS_CALL_EXTERNAL");var u;S=(u=f!=null?f:H[d])==null?void 0:u.call.apply(u,[H].concat(_.Me(D)));K.loggingStatus.currentExternalCall=void 0;K.loggingStatus.bypassProxyController=!1;return S}};
g3p=function(K,d){var f=K.hostElement,H=K[d];K[d]=function(){var D=_.Pg.apply(0,arguments);if(f.loggingStatus.currentExternalCall!==d){var S,n=((S=f.is)!=null?S:f.tagName).toLowerCase();Rn(n,d,"PROPERTY_ACCESS_CALL_INTERNAL")}return H==null?void 0:H.apply(K,D)}};
O9O=function(K,d){var f=Object.getOwnPropertyDescriptor(K,d);f&&!f.get&&Object.defineProperty(K,d,{get:function(){CZX(K.hostElement,d);return f.value},
set:function(H){Fw(K.hostElement,d);f.value=H}})};
Y4X=function(K){return _.M("poly_si_dom_repeat_detached_fix_killswitch")||K.tagName!=="PS-DOM-REPEAT"?K.tagName==="DOM-REPEAT":!0};
o3S=function(K,d){var f=tNO(K);K instanceof Element&&f.unshift(K);K=_.y(f.filter(Y4X));for(var H=K.next();!H.done;H=K.next()){var D=void 0;H=_.y((D=H.value.__instances)!=null?D:[]);for(D=H.next();!D.done;D=H.next())if(D=D.value,D.root){D=Array.from(D.root.children);D=_.y(D);for(var S=D.next();!S.done;S=D.next())f.push.apply(f,_.Me(o3S(S.value,d)))}}return f.filter(function(n){return n.usePatchedLifecycles&&n.lifecycleIsConnected===d})};
tNO=function(K){var d=null;K instanceof Element?d=Element.prototype.querySelectorAll:K instanceof DocumentFragment&&(d=DocumentFragment.prototype.querySelectorAll);return d?Array.from(d.call(K,"*")):[]};
L8=function(K){i8(function(){for(var d=_.y(o3S(K,!1)),f=d.next();!f.done;f=d.next()){f=f.value;f.lifecycleIsConnected=!0;try{var H=void 0,D=void 0,S=void 0,n=void 0;(H=(n=f.polymerController)!=null?n:f)==null||(S=(D=H).connectedCallback)==null||S.call(D)}catch(u){_.$7(u)}}})};
BP=function(K){i8(function(){for(var d=_.y(o3S(K,!0)),f=d.next();!f.done;f=d.next()){f=f.value;f.lifecycleIsConnected=!1;try{var H=void 0,D=void 0,S=void 0,n=void 0;(H=(n=f.polymerController)!=null?n:f)==null||(S=(D=H).disconnectedCallback)==null||S.call(D)}catch(u){_.$7(u)}}})};
Ws5=function(){if(!$CN){$CN=!0;var K=[Node];JM&&K.push(JM.Wrapper);var d=Node.prototype.insertBefore,f=Node.prototype.removeChild;K=_.y(K);for(var H=K.next(),D={};!H.done;D={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},H=K.next())H=H.value,D.nativeInsertBefore=H.prototype.insertBefore,H.prototype.insertBefore=function(n){return function(u,a){if(u instanceof DocumentFragment){var R=Array.from(u.children);u=n.nativeInsertBefore.call(this,u,a);
if(this.isConnected&&n.nativeInsertBefore===d)for(a=_.y(R),R=a.next();!R.done;R=a.next())L8(R.value);return u}R=u instanceof Element&&u.isConnected;a=n.nativeInsertBefore.call(this,u,a);R&&BP(u);this.isConnected&&L8(u);return a}}(D),D.nativeAppendChild=H.prototype.appendChild,H.prototype.appendChild=function(n){return function(u){if(u instanceof DocumentFragment){var a=Array.from(u.children);
u=n.nativeAppendChild.call(this,u);if(this.isConnected){a=_.y(a);for(var R=a.next();!R.done;R=a.next())L8(R.value)}return u}a=u instanceof Element&&u.isConnected;R=n.nativeAppendChild.call(this,u);a&&BP(u);this.isConnected&&L8(u);return R}}(D),D.nativeRemoveChild=H.prototype.removeChild,H.prototype.removeChild=function(n){return function(u){var a=u instanceof Element&&u.isConnected,R=n.nativeRemoveChild.call(this,u);
a&&f===n.nativeRemoveChild&&BP(u);return R}}(D),D.nativeReplaceChild=H.prototype.replaceChild,H.prototype.replaceChild=function(n){return function(u,a){if(u instanceof DocumentFragment){var R=Array.from(u.children);
u=n.nativeReplaceChild.call(this,u,a);if(this.isConnected)for(BP(a),a=_.y(R),R=a.next();!R.done;R=a.next())L8(R.value);return u}R=u instanceof Element&&u.isConnected;var F=this.isConnected,z=n.nativeReplaceChild.call(this,u,a);F&&BP(a);R&&BP(u);F&&L8(u);return z}}(D);
K=[Element];JM&&K.push(JM.Wrapper);K=_.y(K);H=K.next();for(D={};!H.done;D={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},H=K.next())H=H.value,H.prototype.before=E3B(H.prototype.before),H.prototype.after=E3B(H.prototype.after),D.nativeReplaceWith=H.prototype.replaceWith,H.prototype.replaceWith=function(n){return function(){var u=_.Pg.apply(0,arguments),a=_.y(hNB(u)),R=a.next().value,
F=a.next().value;a=this.isConnected;n.nativeReplaceWith.apply(this,u);u=_.y(F);for(F=u.next();!F.done;F=u.next())BP(F.value);if(a)for(BP(this),R=_.y(R),a=R.next();!a.done;a=R.next())a=a.value,a instanceof Element&&L8(a)}}(D),D.nativeRemove=H.prototype.remove,H.prototype.remove=function(n){return function(){var u=this.isConnected;
n.nativeRemove.call(this);u&&BP(this)}}(D),D.nativeInsertAdjacentElement=H.prototype.insertAdjacentElement,H.prototype.insertAdjacentElement=function(n){return function(u,a){var R=a.isConnected;
u=n.nativeInsertAdjacentElement.call(this,u,a);R&&BP(a);u.isConnected&&L8(u);return u}}(D),D.nativeSetAttribute=H.prototype.setAttribute,H.prototype.setAttribute=function(n){return function(u,a){var R=b9z(this);
if(!R.usePatchedLifecycles)return n.nativeSetAttribute.call(this,u,a);var F=this.getAttribute(u);n.nativeSetAttribute.call(this,u,a);a=this.getAttribute(u);mCJ(R,u,F,a)}}(D),D.nativeRemoveAttribute=H.prototype.removeAttribute,H.prototype.removeAttribute=function(n){return function(u){var a=b9z(this);
if(!a.usePatchedLifecycles)return n.nativeRemoveAttribute.call(this,u);var R=this.getAttribute(u);n.nativeRemoveAttribute.call(this,u);R!==null&&mCJ(a,u,R,null)}}(D),D.nativeToggleAttribute=H.prototype.toggleAttribute,H.prototype.toggleAttribute=function(n){return function(u,a){var R=b9z(this);
if(!this.usePatchedLifecycles)return n.nativeToggleAttribute.call(this,u,a);var F=this.getAttribute(u),z=F!==null;a=n.nativeToggleAttribute.call(this,u,a);a!==z&&mCJ(R,u,F,a?"":null);return a}}(D);
K=[Document,DocumentFragment,Element,ShadowRoot];JM&&K.push(JM.Wrapper);K=_.y(K);for(D=K.next();!D.done;D=K.next())D=D.value,D.prototype.prepend=E3B(D.prototype.prepend),D.prototype.append=E3B(D.prototype.append);(JM==null?void 0:JM.noPatch)===!0&&lJz();document.readyState==="complete"?L8(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&L8(document.body)});
var S=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");S&&S.get&&S.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:S.enumerable,configurable:!0,get:S.get,set:function(n){n||BP(this);S.set.call(this,n);return n}})}};
E3B=function(K){return function(){var d=_.Pg.apply(0,arguments),f=_.y(hNB(d)),H=f.next().value;f=f.next().value;K.apply(this,d);d=_.y(f);for(f=d.next();!f.done;f=d.next())BP(f.value);if(this.isConnected)for(H=_.y(H),d=H.next();!d.done;d=H.next())d=d.value,d instanceof Element&&L8(d)}};
lJz=function(){for(var K=_.y(GUn),d=K.next();!d.done;d=K.next()){d=d.value.prototype;for(var f=_.y(AXo),H=f.next();!H.done;H=f.next()){H=H.value;var D=Object.getOwnPropertyDescriptor(d,H);D&&Object.defineProperty(d,"__shady_native_"+H,D)}}};
mCJ=function(K,d,f,H){var D,S;if((D=K.polymerController)==null?0:(S=D.observedAttributes)==null?0:S.includes(d))if(K=K.polymerController,K.attributeChangedCallbackWrapper)K.attributeChangedCallbackWrapper.call(K,d,f,H);else{var n;(n=K.attributeChangedCallback)==null||n.call(K,d,f,H)}};
hNB=function(K){var d=[],f=[];K=_.y(K);for(var H=K.next();!H.done;H=K.next())H=H.value,H instanceof Element&&H.isConnected&&f.push(H),H instanceof DocumentFragment?d.push.apply(d,_.Me(Array.from(H.children))):d.push(H);return[d,f]};
b9z=function(K){return!(K instanceof Element)&&K.node instanceof Element?K.node:K};
TtN=function(K,d){var f=d?["children"].concat(_.Me(d)):["children"];d=[];f=_.y(f);for(var H=f.next();!H.done;H=f.next()){var D=H.value;if(K.hasOwnProperty(D)){H=K[D];H=typeof H==="function"?H():H;H=Id(Array.isArray(H)?H:[H]).flat();if(D!=="children"){D=d0S(D);for(var S=_.y(H),n=S.next();!n.done;n=S.next())n=n.value,n instanceof Element&&n.setAttribute("slot",D)}d.push(H)}}d.length===0?K=[]:(K=Id(_.U("div",null,d)),K=Array.from(K.childNodes));return K};
q4z=function(K,d,f){var H={};_.b8(function(){var D={},S;for(S in d)if(d.hasOwnProperty(S)){var n=void 0,u=void 0;if(!(((n=f.slotProps)==null?0:n.includes(S))||S==="children"||((u=f.callbackProps)==null?0:u.includes(S))||S==="ref")&&(n=_.hc(d[S]),H[S]!==n)){H[S]=n;u=void 0;var a=(u=K.hostElement)!=null?u:K;rXX.has(S)&&(a[S]=n);D[S]=n}}vC(function(){if(K.setProperties)K.setProperties(D);else for(var R=_.y(Object.entries(D)),F=R.next();!F.done;F=R.next()){var z=_.y(F.value);F=z.next().value;z=z.next().value;
K[F]=z}})})};
jjo=function(K,d,f,H){var D=TtN(f,H.slotProps),S=(0,_.dj)(K);D=_.y(D);for(var n=D.next();!n.done;n=D.next())S.appendChild(n.value);q4z(d,f,H);H=_.y(H.callbackProps||[]);D=H.next();for(S={};!D.done;S={kebabEventName:void 0,eventListener:void 0},D=H.next())n=D=D.value,String(D).substring(0,2)==="on"&&f[n]?(S.kebabEventName=d0S(String(D).substring(2)),S.eventListener=f[n],K.addEventListener(S.kebabEventName,S.eventListener),_.$F(function(F){return function(){K.removeEventListener(F.kebabEventName,F.eventListener)}}(S))):
d[n]=f[n];
if(f.ref){f=_.y(Qju(f.ref));var u=f.next().value,a=f.next().value,R=d.attached.bind(d);d.attached=function(){u(K);R()};
_.$F(function(){a()})}};
Qju=function(K){if(typeof K==="function"){var d;return[function(f){d=K(f)},
function(){var f;(f=d)==null||f()}]}if(!K.onRender||!K.onUnmount)throw Error("Qg");
return[K.onRender,K.onUnmount]};
BtJ=function(K,d,f,H,D){H=H===void 0?{}:H;var S=CGS,n=!1;S?(n=!0,CGS=void 0):(xCo=d,S=document.createElement(d),xCo=void 0);var u=S;u.usePatchedLifecycles=!0;u.lifecycleIsConnected=!1;S.loggingStatus={};var a=LsX(K,d,S,H,D);_.$F(function(){u.lifecycleIsConnected&&(u.lifecycleIsConnected=!1,a.disconnectedCallback())});
n||jjo(S,a,f,H);return S};
LsX=function(K,d,f,H,D){D=D===void 0?zNS:D;JX5[d]!=null||(JX5[d]=D(K,d,H==null?void 0:H.getTemplate,H));var S=JX5[d],n=S.ctor;D=S.getInitialMethods;var u=S.getPropsToForwardBeforeReady;K=S.getPropsToForwardBeforeRegister;H=S.shouldForwardProp;var a=S.observedAttributes,R=S.shouldLog,F=n(f,{beforeReady:function(){var z=F;z._takeAttributes?z._takeAttributes():z.setPropertiesFromInitialAttributeValues&&z.setPropertiesFromInitialAttributeValues();z=_.y(u(f.polymerController));for(var v=z.next();!v.done;v=
z.next()){var g=_.y(v.value);v=g.next().value;g=g.next().value;MNJ(f,v,g);R(d)&&!xp(v)&&O9O(f.polymerController,v)}f.polymerController=jT5(F,d)}});
f.polymerController=F;f.polymerController.observedAttributes=a;S=_.y(F.getExtraMethodsToForward());for(n=S.next();!n.done;n=S.next())a=_.y(n.value),n=a.next().value,a=a.next().value,PGo(f,n,a);D=_.y(D());for(S=D.next();!S.done;S=D.next())S=S.value,H(S)&&PGo(f,S),R(d)&&!xp(S)&&g3p(F,S);K=_.y(K());for(H=K.next();!H.done;H=K.next())D=_.y(H.value),H=D.next().value,D=D.next().value,MNJ(f,H,D);return F};
kUN=function(K,d){return sz===d?(K.isInert=!0,sz="",!0):sj5===d?(K.isInert=!0,sj5="",!0):!1};
wSp=function(K){var d=kp;kp=K;return d};
eNB=function(K){if(wj.has(K))sj5=K;else if(Zm.has(K)&&kp&&Z95(kp)===K){var d;(d=kp)._numRenders!=null||(d._numRenders=0);kp._numRenders++;if(kp._numRenders>1)throw Error("Rg");return kp}};
pS5=function(K){wj.has(Z95(K))?sj5=Z95(K):Zm.has(Z95(K))&&kp!==K&&(K._isInert=!0)};
Z95=function(K){var d;return(d=K==null?void 0:K.tagName.toLowerCase())!=null?d:""};
KAJ=function(K,d){if(K.componentType===On)throw Error("Sg");Zm.add(d);var f=function(){var H=HTMLElement.call(this)||this;H.is=d;if(xCo===d)return H.isInert=!0,H;H.createElement();return H};
_.O(f,HTMLElement);f.prototype.createElement=function(){if(!this.isInert){CGS=this;var H=_.y(Fdu(function(){return _.U(K,null)})).next().value;
CGS=void 0;CnJ(this);return H}};
customElements.define(d,f)};
f_o=function(K,d,f,H,D){K.prototype.is=d;(H==null?0:H.useSink)?dxJ(K,d,f,H,D):(f=zNS(K,d,f,H),NtG(f,d));return K};
dxJ=function(K,d,f,H,D){Ws5();var S=_.C8(function(n){return BtJ(K,d,n,Object.assign({},H,{getTemplate:f}),D)},"a");
KAJ(S,d);return S};
Dx5=function(K){return!HNu.has(K)};
ytX=function(K,d,f,H){function D(){if(!z){for(var v=new Set(VKz),g=_.y(S.behaviors),N=g.next();!N.done;N=g.next()){N=N.value;for(var h=_.y(Object.getOwnPropertyNames(N)),m=h.next();!m.done;m=h.next()){m=m.value;var T=void 0,r=(T=Object.getOwnPropertyDescriptor(N,m))==null?void 0:T.value;r&&r instanceof Function&&(!R[m]||_.M("polymer_forward_method_killswitch"))&&v.add(m)}}g=_.y(Object.entries(Object.getOwnPropertyDescriptors(K.prototype)));for(N=g.next();!N.done;N=g.next())h=_.y(N.value),N=h.next().value,
h=h.next().value,h.value instanceof Function&&v.add(N);z=v}return z}
var S=CYN({is:d,disableElementRegistration:!1,getTemplate:f,providers:H==null?void 0:H.providers,reactivityMode:H==null?void 0:H.reactivityMode},K);if((H==null?0:H.allowedProps)||(H==null?0:H.allowedPropsFromBehaviors)){var n,u;S.allowedProps=[].concat(_.Me((n=H.allowedProps)!=null?n:[]),_.Me((u=H.allowedPropsFromBehaviors)!=null?u:[]))}var a=GtJ(S,K);d=a.observedAttributes;var R={};f=_.y(S.reactiveSchemas);for(H=f.next();!H.done;H=f.next())if(H=H.value,H.type==="signal")R[H.propertyKey]={readOnly:H.readOnly},
H.readOnly&&(R[aup(H.propertyKey)]={readOnly:!0});else if(H.type==="compute"||H.type==="computeWithMethod"||H.type==="redux")R[H.propertyKey]={readOnly:!0};var F=S.reactiveSchemas.length,z;return{ctor:function(v,g){v=new a(v);v.beforeReady=g.beforeReady;return v},
props:R,observedAttributes:d,getInitialMethods:D,getPropsToForwardBeforeRegister:function(){for(var v=[],g=new Set,N=_.y(SEY),h=N.next();!h.done;h=N.next())h=h.value,v.push([h,h!=="observers"&&h!=="properties"]),g.add(h);N=_.y(Object.keys(R));for(h=N.next();!h.done;h=N.next())h=h.value,v.push([h,R[h].readOnly]),g.add(h);N=D();h=_.y(Object.keys(Object.getOwnPropertyDescriptors(K.prototype)));for(var m=h.next();!m.done;m=h.next())m=m.value,!Dx5(m)||N.has(m)||g.has(m)||(v.push([m,!1]),g.add(m));v.push(["allowedProps",
!0]);return v},
getPropsToForwardBeforeReady:function(v){var g=[];v=_.y(Object.keys(v));for(var N=v.next();!N.done;N=v.next()){N=N.value;var h=D();Dx5(N)&&!h.has(N)&&g.push([N,!1])}v=_.y(S.reactiveSchemas.slice(F));for(N=v.next();!N.done;N=v.next())N=N.value,N.type!=="compute"&&N.type!=="computeWithMethod"&&N.type!=="redux"&&N.type!=="signal"||g.push([N.propertyKey,N.type==="signal"?N.readOnly:!0]);return g},
shouldForwardProp:Dx5,shouldLog:In}};
_.C=function(K,d,f,H){var D,S,n=(S=(D=H)==null?void 0:D.mode)!=null?S:0;H!=null||(H={});var u;(u=H).reactivityMode!=null||(u.reactivityMode=0);n===1&&_.H6("creator_poly_si_disable_list").includes(d)&&(n=2);return n===1?f_o(K,d,f,Object.assign({},H,{useSink:!0}),ytX):f_o(K,d,f,Object.assign({},H,{useSink:n===2}))};
_.eP=function(){return function(K,d,f,H){var D,S,n=(S=(D=H)==null?void 0:D.mode)!=null?S:2;H!=null||(H={});var u;(u=H).reactivityMode!=null||(u.reactivityMode=0);if(n===0)throw Error("Tg`"+n);return dxJ(K,d,f,H,n===1?ytX:void 0)}};
_.p8=function(K){return _.M("creator_poly_si_killswitch")?!1:_.M("force_all_poly_si_batches")&&(K==="poly_si_all_on_test_check"||K==="creator_poly_si_batch_050"?0:K)||document.documentElement.hasAttribute("use-signals")?!0:!K||_.M(K+"_holdback_enabled")&&_.M("kevlar_polysi_holdback")?!1:_.M(K)};
KZ=function(K){return K?K.icon?K.icon.iconType.toLowerCase():K.customThumbnail?"member":"":""};
nXX=function(K){if(!K)return"";K=_.y(K);for(var d=K.next();!d.done;d=K.next())if((d=d.value)&&d.liveChatAuthorBadgeRenderer&&(d=KZ(d.liveChatAuthorBadgeRenderer))&&d!=="verified")return d;return""};
iNo=function(K,d){if(!K)return null;var f;return((f=K.find(function(H){return H&&H.liveChatAuthorBadgeRenderer?KZ(H.liveChatAuthorBadgeRenderer)===d:!1}))==null?void 0:f.liveChatAuthorBadgeRenderer)||null};
_.Rso=function(K){var d=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;K=ctu(K);d=ctu(d);var f=uBN(K.hex);d=uBN(d.hex);var H=d[0]/255;var D=d[1]/255,S=d[2]/255,n=Math.max(H,D,S),u=Math.min(H,D,S),a=0,R=0,F=.5*(n+u);n!=u&&(n==H?a=60*(D-S)/(n-u):n==D?a=60*(S-H)/(n-u)+120:n==S&&(a=60*(H-D)/(n-u)+240),R=0<F&&F<=.5?(n-u)/(2*F):(n-u)/(2-2*F));H=[Math.round(a+360)%360,R,F];f=a_O(f,d);for(K=I_Y(K.hex);f<4.5;){K=H[2]>=.5?K.darker((4.5-f)/2):K.brighter((4.5-f)/2);f=K.toString();
D=UxO(f);if(!D.length)throw Error("Qd`"+f);f=D;f=a_O(f,d)}return K.hex()};
a_O=function(K,d){K=_.d3O(K);d=_.d3O(d);return(Math.max(K,d)+.05)/(Math.min(K,d)+.05)};
_.dl=function(K){return"#"+("000000"+(K&16777215).toString(16)).slice(-6)};
_.FAY=function(K){for(var d=0,f=0;f<K.length;f++)d=K.charCodeAt(f)+((d<<5)-d);K="#";for(f=0;f<3;f++)K+=("00"+(d>>f*8&255).toString(16)).slice(-2);return K};
zsn=function(K){K=(K||"").split(":");K.length===1&&K.unshift("yt-icons");K[1]=K[1].toLowerCase();return K};
ONp=function(K,d){var f=(d=d===void 0?!1:d)?XZo:vXO,H=d?MKO:Pbp;K.getIconNames().forEach(function(D){D=d?D:D.substring(D.indexOf(":")+1);K.name==="yt-icons"?gXp.add(D):D.includes("-filled")?f.add(D):H.add(D)})};
fZ=function(K,d,f,H){f=f===void 0?!1:f;H=H===void 0?!1:H;var D,S,n;return _.c(function(u){if(u.nextAddress==1)return _.I(u,NAz,2);if(H)return u.return(gXp.has(K));D=f?XZo:vXO;S=f?MKO:Pbp;return d?(n=K.includes("-filled")?K:K.concat("-filled"),u.return(D.has(n))):u.return(S.has(K))})};
_.oXX=function(K){if(YEO(K))return K;var d=K=K.toLowerCase();(K=tKG.get(K))&&(d=K);return d};
_.Hv=function(K){if(YEO(K))return K.toString();var d=$xX.get(K);if(d)return d;d=K.toLowerCase();var f="yt-icons",H=d.replace(/_/g,"-");switch(K){case "MY_CHANNEL":d="account_circle";break;case "ADD_TO_LIBRARY":d="add";break;case "ALERT_WARN_RED":d="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":d="person_music";break;case "BLOCK_USER":d="block";break;case "CAPTIONS":d="closed_caption";break;case "CLOSED_CAPTION":f="av";d="closed-caption";break;case "COLLECTION":f="maps";d="layers";break;case "CONTACT":f=
"icons";d="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":f="ytcp-icons";d=H.split("creator-studio-")[1];break;case "DISMISSAL":d="close";break;case "DO_NOT_DISTURB":d="block";break;case "DOGFOOD":f="icons";d="pets";break;case "DRAFT":d="paper_corner_folded";break;
case "EMPTY_LIKE":d="like_outline";break;case "EXIT_APP":d="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":d=H;break;case "GAMES":f="ytg";d="my-games";break;case "GO_TO_PAGE":d="arrow-forward";break;case "GROUP":f="social";break;case "HIDE":d="not_interested";break;case "INPUT_COMPONENT":f="icons";d="settings-input-component";break;case "KIDS_BLOCK":d="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":f="ytg";d="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":f=
"ytg";d="membership-post-purchase";break;case "MULTIVIEW":d="screen_multi_view";break;case "MY_LOCATION":f="maps";d=H;break;case "NOTIFICATIONS_INBOX":d="NOTIFICATIONS";break;case "NEXT":d="chevron_right";break;case "OFFLINE":d="power-settings-new";break;case "PAUSE":f="miniplayer";break;case "PAYMENT":f="icons";break;case "PHONE_DOWNLOAD":d="phone_download";break;case "PREMIUM_STANDALONE":f="yt-logos";d="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":f="yt-logos";d="premium_standalone_cairo";
break;case "QUESTION_ANSWER":d="question_answer";break;case "REDEEM":f="icons";d="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":d="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":d="library_add";break;case "SCHOOL":f="yt-sys-icons";d="creator_academy";break;case "SETTINGS_LIGHT":d="settings_applications";break;case "SETTINGS_MATERIAL":d="settings";break;case "SEARCH_HISTORY":d="watch_history";break;case "SHOPPING_BAG":d="bag";break;case "SOCIAL":case "PEOPLE":f=
"yt-icons";d="people";break;case "STAFF_PICK":f="ytg";d="spotlight";break;case "START_DVR":d="add";break;case "STOP_DVR":f="av";d="stop";break;case "TAB_LIKED":d="like";break;case "TAB_INBOX":d="mail";break;case "TERMS_OF_SERVICE":f="icons";d="description";break;case "TRENDING":d="fire";break;case "UNBLOCK_USER":d="remove";break;case "UNPLUGGED_DARK_THEME":f="image";d="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":d="live";break;case "UNPLUGGED_SPORTS":f="ytu";d="visibility-off";break;
case "VIDEOS":f="av";d="play-circle-filled";break;case "YOUTUBE":f="yt-logos";d="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":f="yt-logos-ext";d="yt-logo-red-updated";break;case "YOUTUBE_LOGO":f="yt-logos-ext";d="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":f="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":f="shorts";d=H;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":f="yt-sys-icons";d="youtube_improve_tv";break;case "OUTLINE_BAG":f=
"yt-sys-icons";d="bag";break;case "QUEUE_PLAY_LAST":f="yt-sys-icons";d="list_queue_last";break;case "SLASH_CIRCLE_LEFT":d="slash_circle_left";break;case "SPEED_1_POINT_2X":d="1_point_2x";break;case "SPEED_1_POINT_5X":d="1_point_5x";break;case "SPEED_1_POINT_8X":d="1_point_8x";break;case "SPEED_POINT_2X":d="point_2x";break;case "SPEED_POINT_5X":d="point_5x";break;case "SPEED_POINT_8X":d="point_8x";break;case "SPEED_1X":d="1x";break;case "SPEED_2X":d="2x";break;case "TAB_BOOKMARK":d="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":f="yt-sys-icons";d="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":f="yt-sys-icons";d="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":f="yt-sys-icons",d="tic_tac_toe"}d=f+":"+d;$xX.set(K,d);return d};
YEO=function(K){var d;_.M("kevlar_use_wil_icons")?d=!!_.eq().resolve(_.DF).resolveIcon({iconName:K.toString()}):d=!1;return d};
_.SV=function(K,d,f,H){f=f===void 0?{}:f;H=H===void 0?!1:H;f===null&&(f={});var D=_.H6("kevlar_command_handler_command_banlist");D=_.y(D);for(var S=D.next();!S.done;S=D.next())if(S=K?K.hasOwnProperty(S.value):void 0,S)return!1;D=_.P(K.commandMetadata,_.B0);return H&&D!=null&&D.url?!1:!d.disableCommandHandlerOverride&&_.V2.instance?(H=_.V2.instance,f.form||(f.form={element:d}),f.form.element||(f.form.element=d),!f.clickedVisualElement&&d.visualElement&&(f.clickedVisualElement=d.visualElement),H.resolveCommand(K,
f),!0):!1};
EXX=function(K,d){K=y2(K);for(var f=_.y(K.visibilityMonitorKeys||[]),H=f.next();!H.done;H=f.next())d.unobserveByKey(H.value);K.visibilityMonitorKeys=void 0};
l_u=function(K,d){if(_.te()){if(_.M("kevlar_vimio_use_shared_monitor"))hsY(K,d.data);else if(!hsY(K,d.data))return;var f=d.data,H=bNp(f);if(_.M("enable_client_ve_spec_logging"))EXX(K,d.observer);else{var D=y2(K);D.trackedParams&&D.trackedParams!==H&&EXX(K,d.observer)}D=y2(K);!f||D.data&&D.data===f||(D.data=f);mxO(K,d);D.trackedParams=H}};
mxO=function(K,d){var f=d.observer;if(!f&&_.M("web_skip_missing_vimio_observer")){var H,D;_.h3(new _.X4("VisibilityObserver is not defined.",K.tagName,K.trackedParams,(H=d.data)==null?void 0:H.trackingParams,(D=d.data)==null?void 0:D.loggingDirectives))}else{var S=d.layer,n=d.visibilityCallback||function(){},u=d.prescanCallback,a=y2(K);
H=[];d.showOption&&H.push(f.observe(K,function(){d.skipLogging&&d.skipLogging()||_.nZ().reportShown(a,void 0,S);n(!0)},d.showOption));
d.hideOption&&H.push(f.observe(K,function(){_.nZ().reportHidden(a,void 0,S);n(!1)},d.hideOption));
d.prescanOption&&u&&H.push(f.observe(K,function(){u()},d.prescanOption));
a.visibilityMonitorKeys=H}};
hsY=function(K,d){K=y2(K);if(K.visualElement&&!d)return!0;if(!d)return!1;var f=!1;if(_.M("enable_client_ve_spec_logging")){var H,D;f=!!((H=d.loggingDirectives)==null?0:(D=H.clientVeSpec)==null?0:D.uiType)}H=bNp(d);if(!H&&!f)return!1;_.M("mweb_component_visibility_logging")&&(K.veContainer||(K.veContainer={}),K.veContainer.trackingParams=H);if(K.trackedParams&&K.trackedParams===H)return!1;var S;if(_.M("enable_client_ve_spec_logging")&&((S=K.visualElement)==null?0:S.isClientVe())){var n;S=(n=K.visualElement)==
null?void 0:n.getAsJspb();var u,a,R,F;if(_.Km(S,2)===((u=d.loggingDirectives)==null?void 0:(a=u.clientVeSpec)==null?void 0:a.uiType)&&_.Km(S,3,-1)===((R=d.loggingDirectives)==null?void 0:(F=R.clientVeSpec)==null?void 0:F.elementIndex))return!1}if(_.M("enable_client_ve_spec_logging")){var z,v;!K.visualElement&&((z=d.loggingDirectives)==null?0:(v=z.clientVeSpec)==null?0:v.uiType)&&(u=d.loggingDirectives.clientVeSpec,d=u.uiType,n=u.elementIndex,u=u.clientYoutubeData,K.visualElement=_.iz(_.cv(),{veType:d,
elementIndex:n,clientYouTubeData:u}))}return!0};
bNp=function(K){if(K==null?0:K.rendererContext){var d=_.P(K.rendererContext,_.uz);if(d==null?0:d.loggingDirectives)return d.loggingDirectives.trackingParams}return(K==null?0:K.loggingDirectives)?K.loggingDirectives.trackingParams:K==null?void 0:K.trackingParams};
y2=function(K){var d;return(d=K.polymerController)!=null?d:K};
TAn=function(K){_.nZ();if(_.AR(aG().JSC$10465_elementShouldLogGesture).bind(aG())(K,4)){WAS(K);var d=Gvp(K);AtG.set(K,d)}};
WAS=function(K){AtG.has(K)&&(AtG.get(K).cancel("untrack hover element"),AtG.delete(K))};
Gvp=function(K){var d,f=[],H=!1,D=new _.ip(function(S,n){IG(K,"mouseenter",_.AR(function(){var u,a,R;return _.c(function(F){if(F.nextAddress==1)return d=(0,_.k_)(),u=rtp(K),f.push(u),a=qEo(K,function(){H=!0;n(Error("Ug"))}),_.I(F,u,2);
if(F.nextAddress!=3)return a&&UP(a),R=QkS(K),f.push(R),_.I(F,R,3);S();_.iQ(F)})}))});
D.then(function(){var S=(0,_.k_)()-d;S=Math.round(S);if(!(500>S||6E5<=S)){var n=K.getScreenLayer?K.getScreenLayer():void 0;n=_.te(n)||"";var u=jkX(_.nZ(),K);_.qY(n,K.visualElement?K.visualElement:_.RG(u),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:S}})}TAn(K)},function(){Fq&&(Fq(),Fq=null);
H&&(WAS(K),TAn(K))});
return D};
rtp=function(K){var d;return(new _.ip(function(f,H){Fq=function(){H(Error("Vg"))};
d=_.oc.debounce(_.AR(function(){UP(D);f()}),1,100);
var D=_.zG(K,"mousemove",d)})).thenCatch(function(){var f=_.oc.cancelDebouncedJobMap.get(d);
f&&_.oc.cancelJob(f)})};
QkS=function(K){var d;return(new _.ip(function(f,H){Fq=function(){H(Error("Wg"))};
d=IG(K,"mouseleave",_.AR(function(){f()}))})).thenCatch(function(){UP(d)})};
qEo=function(K,d){return IG(K,"mouseleave",_.AR(d))};
xxO=function(K){CbB&&_.Xq.cancel(CbB);CbB=_.Xq.run(function(){_.Zp(K,"yt-visibility-refresh");CbB=0})};
LAu=function(K){K=Number(K);return"rgba("+[K>>16&255,K>>8&255,K&255,(K>>24&255)/255].join()+")"};
JtO=function(K){if(!K)return!1;if(_.P(K,_.BAp))return!0;var d;if(K=(d=_.P(K,_.DE))==null?void 0:d.commands)for(d=_.y(K),K=d.next();!K.done;K=d.next())if(_.P(K.value,_.BAp))return!0;return!1};
skY=function(K){var d=!0;d=d===void 0?!0:d;if(!K.useSignals&&!K.experimentalPropertiesChanged||_.M("experimental_templating_behavior_nopatch_killswitch")){var f=K._propertiesChanged;K._propertiesChanged=function(H,D,S){d?K.debounceRender():K.doRender();f&&f.call(K,H,D,S)}}};
kvG=function(K,d){if(K.useSignals||K.experimentalPropertiesChanged)if(_.M("experimental_templating_behavior_nopatch_killswitch"))K.experimentalPropertiesChanged=function(){};
else return;var f=new Set,H=[K].concat(_.Me(K.behaviors));H=_.y(H);for(var D=H.next();!D.done;D=H.next()){D=D.value;for(var S in D.properties)f.has(S)||(K._addPropertyEffect(S,"function",d),f.add(S))}};
wZX=function(){var K=Polymer.Element,d=K._prepareTemplate;K._prepareTemplate=function(){d.call(this);var f=this.prototype;if(f.experimentalTemplatingInUse&&f.experimentalTemplatingInUse()&&f.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.$7(Error("Xg"));else{f=this.template.content.childNodes;for(var H=f.length-1;H>=0;H--){var D=f[H];D.nodeName!=="STYLE"&&D.nodeName!=="LINK"&&D.nodeName!=="SCRIPT"&&D.nodeName!=="#comment"&&D.remove()}}}};
ZNp=function(K){var d=!0;d=d===void 0?!0:d;wZX();var f=K.ready;K.ready=function(){this._template=null;f.call(this)};
kvG(K,d?K.debounceRender:K.doRender)};
pZY=function(K,d,f){if(f===null||f===void 0)return f;var H=ujo(K.tagName.toLowerCase(),d,function(){throw Error("Qb");});
if(H===null)return f;H=esO[H];var D;if((D=H.isUnwrappable)==null?0:D.call(H,f)){if(H.unwrap)return H.unwrap(f);throw Error("$g");}return H.filterString?H.filterString(K.tagName,d,String(f)):f};
KjJ=function(K,d,f){var H=d[d.length-1]!=="$",D=pZY(K,d,f);if(H)if(typeof D==="function"&&d.startsWith("reactiveon")&&d===d.toLowerCase()){var S=kl;P3n(K,d.slice(8),function(n){mU(S,function(){D(n)})})}else K[d]=D;
else f=D==null?null:String(D),McX(K,d.slice(0,-1),f)};
Md=function(K){dtn.length===0&&requestAnimationFrame(function(){setTimeout(function(){var d=dtn.slice();dtn.length=0;d=_.y(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;try{f()}catch(H){_.vv(H)}}})});
dtn.push(K)};
f2O=function(K){if(K){var d=K.component;if(d){var f;d==null||(f=d.events)==null||f.publish("DISCONNECTED");var H;d==null||(H=d.onDisconnected)==null||H.call(d)}var D,S;(D=K.__spec)==null||(S=D.didUnmount)==null||S.call(D);for(d=0;d<K.childNodes.length;d++)f2O(K.childNodes[d])}};
gl=function(K,d,f){var H=d&&d.key,D=Jc;D[0]=K;D[1]=H;D[2]=void 0;for(var S in d)d.hasOwnProperty(S)&&(K=d[S],H=sn,H.push(S),H.push(K));d=Jc;a:{if(S=Jc[2])for(K=0;K<S.length;K+=2)if(S[K]==="nonce"){S=S[K+1];break a}S=""}S=WnY(d[0],d[1],S);K=Ac(S);H=d[2];if(!K.staticsApplied&&(K.staticsApplied=!0,H&&H.length))if((D=K._attrsArr)&&D.length){for(D=0;D<H.length;D+=2)Pv[H[D]]=D+1;D=K._attrsArr||(K._attrsArr=vKS(0));for(var n=0,u=0;u<D.length;u+=2){var a=D[u],R=D[u+1],F=Pv[a];F?H[F]===R&&delete Pv[a]:(D[n]=
a,D[n+1]=R,n+=2)}WC(D,n);for(var z in Pv)tcN(S,z,H[Pv[z]],J3),delete Pv[z]}else for(z=0;z<H.length;z+=2)tcN(S,H[z],H[z+1],J3);jcN(S,K,J3);WC(d,0);f&&f(Th);G7p()};
H_p=function(K){var d=K.toString().toLowerCase();return function(f,H){gl(d,f,H)}};
_.OP=function(K,d,f){f===void 0?delete K[d.name]:K[d.name]=f};
_.Nd=function(K){var d={androidIncludeFontPadding:!1},f=0,H=[],D=[],S=[];if(K.simpleText)return d.content=K.simpleText,d;if(K.runs===void 0)return d.content="",d;K=_.y(K.runs);for(var n=K.next();!n.done;n=K.next()){n=n.value;var u=n.text,a=void 0,R=(a=u)==null?void 0:a.length;if(u&&R){H.push(u);if(n.bold||n.italics||n.strikethrough||n.underline||n.textColor!=null&&n.textColor!==0||n.deemphasize){u=D;a=u.push;var F={startIndex:f,length:R};n.bold&&(F.weightLabel="FONT_WEIGHT_MEDIUM");n.italics&&(F.italic=
!0);n.strikethrough&&(F.strikethrough="LINE_STYLE_SINGLE");n.underline&&(F.underline="LINE_STYLE_SINGLE");n.textColor!=null&&n.textColor!==0?document.documentElement.hasAttribute("dark")?F.fontColor=n.darkModeTextColor||n.textColor:F.fontColor=n.textColor:n.deemphasize&&(document.documentElement.hasAttribute("dark")?F.fontColor=parseInt("ff"+DtX("#aaa").substring(1),16):F.fontColor=parseInt("ff"+DtX("#606060").substring(1),16));a.call(u,F)}n.navigationEndpoint&&(u=S,a=u.push,F={startIndex:f,length:R,
onTap:{innertubeCommand:n.navigationEndpoint}},n.loggingDirectives&&_.OP(F,V1p,n.loggingDirectives),a.call(u,F));f+=R}}d.content=H.join("");d.styleRuns=D.length?D:void 0;d.commandRuns=S.length?S:void 0;return d};
yWG=function(K){if(K==null||!K.runs)return!0;K=_.y(K.runs);for(var d=K.next();!d.done;d=K.next())if(d=d.value,d.bracket||d.errorUnderline||d.deemphasize||_.P(d,YA)||_.P(d,Sr5))return!1;return!0};
naO=function(K,d){return function(f){var H=d.unit;if(H!==f)throw Error("ch`"+K+"`"+H+"`"+f);return d}};
tJ=function(K){if(!((K==null?0:K.value)&&(K==null?0:K.unit)))return"";switch(K.unit){case "DIMENSION_UNIT_FRACTION":var d="%";break;default:d="px"}K=K.value;d==="%"&&(K*=100);return""+K+d};
i_S=function(K){try{return K()}catch(d){_.h3(d)}};
_.$A=function(K){var d=_.P(K,_.oG);if(d)return d;if((d=_.P(K,cWO))&&d.commands)return uC5(d.commands);if((d=_.P(K,a2z))&&d.commands)return uC5(d.commands);if((K=_.P(K,I2u))&&K.identifier&&K.command&&(UtG||(UtG=[]),!UtG.includes(K.identifier)))return UtG.push(K.identifier),_.P(K.command,_.oG)};
uC5=function(K){if(K.length!==0){var d=[];K=_.y(K);for(var f=K.next();!f.done;f=K.next())(f=_.$A(f.value))&&d.push(f);return{commandExecutorCommand:{commands:d}}}};
_.hJ=function(K){var d=K.defaultTarget,f=K.elementConfig,H=K.elementsCommand,D=K.skipOnClick,S=K.forceNewState,n=K.additionalCommandArgs,u=K.innertubeCommand||_.$A(H);if(u){K={};var a=RIG(u);H=a.navigatingCommand;a=a.href;H&&a?(K.href$=a,FjO(K,H,a,d),_.M("web_atagconfig_pointerdown")&&zIJ(K,H),S&&(K["force-new-state$"]=!0)):(K.role$="button",K.href$="javascript:void(0);");_.P(u,XOS)&&(K["aria-haspopup$"]=!0);D||(K.onclick=function(R){if(vaz(R)){var F=Object.assign({},{form:{element:R.target,event:R}},
n);R.preventDefault();_.EP(u,F)}});
return Object.assign({},f,K)}};
M1S=function(K){if(K.length){if(K.length===1)return K[0];var d={};_.OP(d,_.DE,{commands:K});return d}};
bz=function(K){return K&&K.href$!=="javascript:void(0);"};
RIG=function(K){var d,f=((d=_.P(K,_.DE))==null?void 0:d.commands)||[K];K=_.y(f);for(d=K.next();!d.done;d=K.next()){d=d.value;var H=void 0,D=void 0;f=(D=_.P((H=d)==null?void 0:H.commandMetadata,_.B0))==null?void 0:D.url;_.M("web_remove_web_navigation_endpoint_data")||(H=void 0,f=f||((H=_.P(d,P2B))==null?void 0:H.url));if(f&&f!=="/service_ajax"){if(H=Ro(f,gaz))return K=_.Io(H),{navigatingCommand:d,href:K};_.h3(new _.X4("AttributedString URL could not be sanitized",f))}}return{}};
vaz=function(K){return K.button!==void 0?K.button===0&&!(K.shiftKey||K.altKey||K.metaKey||K.ctrlKey):!(K.shiftKey||K.altKey||K.metaKey||K.ctrlKey)};
FjO=function(K,d,f,H){f=!kM(f);var D,S,n;if((D=_.P(d,_.is))!=null&&D.nofollow||(S=_.P(d,_.qu))!=null&&S.nofollow||(n=_.P(d,_.TE))!=null&&n.nofollow||f)K.rel$="nofollow";var u;d=((u=_.P(d,_.TE))==null?void 0:u.target)==="TARGET_NEW_WINDOW"?"_blank":H===void 0?"":H;K.target$=d};
zIJ=function(K,d){d.clickTrackingParams&&(K.params={itct:d.clickTrackingParams});K.onpointerdown=function(f){O_z(f)};
K._data=d};
ND5=function(K){(K.loggingUrls||[]).forEach(function(d){rR(d.baseUrl,d.attributionSrcMode)})};
Yrz=function(K){K.currentTarget._data&&ND5(K.currentTarget._data)};
O_z=function(K){var d=K.currentTarget;K=i_S(function(){return d.href});
var f=d.params;K&&_.xZ(K,f||{},8,!0)};
t1p=function(K,d){if(d=_.P(d,_.TE))(d==null?void 0:d.target)==="TARGET_NEW_WINDOW"&&(K.target="_blank"),d.nofollow&&(K.rel="nofollow")};
oaB=function(K){K=_.P(K==null?void 0:K.commandMetadata,_.B0);return(K==null?0:K.url)?K.url:null};
_.me=function(K,d){(K=_.$A(K))&&_.EP(K,d)};
_.EP=function(K,d){o$p(function(f){d?f.resolveCommand(K,d):f.resolveCommand(K)})};
b_X=function(K,d){var f=["yt-core-attributed-string__link"];d!=null&&d.noLinkColor||((d==null?0:d.isOverlay)?f.push("yt-core-attributed-string__link--overlay-call-to-action-color"):f.push("yt-core-attributed-string__link--call-to-action-color"),(d==null?0:d.linkInheritColor)&&f.push("yt-core-attributed-string--link-inherit-color"));f={className:f.join(" "),tabindex$:"0"};var H=K.onTap||K.onLongPress;if(!H)return f;var D=$tG(K);D&&(f["aria-label$"]=D);d=_.hJ({elementsCommand:H,elementConfig:f,skipOnClick:!(d==
null||!d.skipOnClick),forceNewState:!0});K.onLongPress&&(H=new EaB(function(){var S=_.$A(K.onLongPress);S&&_.eq().resolve(_.pQ).resolveCommand(S)}),d&&hIo(H,d));
return d||f};
$tG=function(K){var d,f;return(d=K.onTapOptions)==null?void 0:(f=d.accessibilityInfo)==null?void 0:f.accessibilityLabel};
mto=function(K){var d=K;K<=16777215&&(d+=parseInt("ff000000",16));return _.hG(d)};
l2O=function(K){var d=K.isDarkTheme;var f=K.extension;K=K.runColor;var H=void 0;if(f=f==null?void 0:f.colorMap){d=d?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";f=_.y(f);for(var D=f.next();!D.done;D=f.next())if(D=D.value,d===D.key){H=D.value;break}}H==null&&K&&(H=K);if(H)return mto(H)};
lz=function(K){var d=K.config;var f=K.image;var H=K.imageConfig;var D=K.imageWrapperConfig;var S=K.run;var n=K.tag;var u=K.textLength;var a=K.startIndex===void 0?0:K.startIndex;K=K.length;a===void 0&&(a=0);S={run:S,startIndex:a,endIndex:K!==void 0?a+K:u,tag:n};f&&(S.image=f);H&&(S.imageConfig=H);D&&(S.imageWrapperConfig=D);d&&(S.config=d);return S};
GnY=function(K,d){var f=[];f.push("yt-core-attributed-string");(d==null?0:d.className)&&f.push(d==null?void 0:d.className);(d==null?0:d.ellipsisTruncate)?f.push("yt-core-attributed-string--ellipsis-truncate"):(d==null?0:d.noWrap)?f.push("yt-core-attributed-string--white-space-no-wrap"):(d==null?0:d.noPreWrap)||f.push("yt-core-attributed-string--white-space-pre-wrap");(d==null?0:d.linkInheritColor)&&f.push("yt-core-attributed-string--link-inherit-color");K.alignment&&f.push(Wju(K.alignment));K.lineBreakMode&&
f.push("yt-core-attributed-string--word-wrapping");return f.join(" ")};
AWX=function(K){if(K.weight)return K.weight;switch(K.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
TDn=function(K){switch(K){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"}};
Wju=function(K){switch(K){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"}};
qrY=function(K,d,f){var H=d;K.content&&f&&(f=K.content.indexOf("\n"),f!==-1&&(H=Math.min(d,f)));if(!K.content||K.content.length<=H)d=K;else if(K.attachmentRuns||K.commandRuns||K.decorationRuns||K.styleRuns||K.paragraphStyleRuns){d=Wv(K.content,H);f=H;var D=K.attachmentRuns;if(D){var S=[];D=_.y(D);for(var n=D.next();!n.done;n=D.next())n=Object.assign({},n.value),n.startIndex===void 0||n.startIndex>=f||(n.length||(n.length=0),n.length+n.startIndex>f&&(n.length=f-n.startIndex),S.push(n));f=S}else f=
void 0;S=rW5(H,K.commandRuns);D=H;var u=K.decorationRuns;if(u){n=[];u=_.y(u);for(var a=u.next();!a.done;a=u.next()){a=a.value;var R=_.P(a.textDecorator,GG);if(R&&R.startIndex!==void 0&&!(R.startIndex>=D)){a=Object.assign({},a,{textDecorator:{highlightTextDecorator:Object.assign({},R)}});R=_.P(a.textDecorator,GG);if(!R.length||R.length+R.startIndex>D)R.length=D-R.startIndex;n.push(a)}}D=n}else D=void 0;n=rW5(H,K.styleRuns);if(u=K.paragraphStyleRuns)for(K=[],u=_.y(u),a=u.next();!a.done;a=u.next()){var F=
a.value;a=Object.assign({},F);if(!(a.startIndex===void 0||a.startIndex>=H)){if(!a.length||a.length+a.startIndex>H)a.length=H-a.startIndex;R=[];var z=void 0,v=void 0;if((z=F)==null?0:(v=z.listGroup)==null?0:v.listItems)for(F=_.y(F.listGroup.listItems),z=F.next();!z.done;z=F.next())if(z=Object.assign({},z.value),!(z.startIndex===void 0||z.startIndex>=H)){if(!z.length||z.length+z.startIndex>H)z.length=H-z.startIndex;R.push(z)}R.length>0&&(a.listGroup||(a.listGroup={}),a.listGroup=Object.assign({},a.listGroup,
{listItems:R}));K.push(a)}}else K=void 0;d={content:d,attachmentRuns:f,commandRuns:S,decorationRuns:D,styleRuns:n,paragraphStyleRuns:K}}else d=Object.assign({},K,{content:Wv(K.content,H)});return d};
rW5=function(K,d){if(d){var f=[];d=_.y(d);for(var H=d.next();!H.done;H=d.next())if(H=Object.assign({},H.value),!(H.startIndex===void 0||H.startIndex>=K)){if(!H.length||H.length+H.startIndex>K)H.length=K-H.startIndex;f.push(H)}return f}};
Wv=function(K,d){var f=d,H;if(H=f>0)H=K.charCodeAt(f-1),H=H>=55296&&H<=56319;H&&(f=K.charCodeAt(f),H=f>=56320&&f<=57343);H&&--d;return K.substring(0,d)};
xtG=function(K,d,f){f=f===void 0?QRG:f;if(K){var H=_.eq().resolve(k7);H||_.M("mweb_no_observer_killswitch")?l_u(K,{data:d,observer:H,visibilityCallback:f,hideOption:jRu,showOption:C2n,layer:K.layer}):_.h3(new _.X4("Warning: monitorVisibility called with null observer",K.tagName,d==null?void 0:d.loggingDirectives,d==null?void 0:d.trackingParams))}else _.h3(new _.X4("Warning: monitorVisibility called with null element",d==null?void 0:d.loggingDirectives,d==null?void 0:d.trackingParams,d==null?void 0:
d.rendererContext))};
Z_X=function(K,d){var f=[],H=K.content.length,D,S=(D=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:D();if(K.paragraphStyleRuns){D=_.y(K.paragraphStyleRuns);for(var n=D.next();!n.done;n=D.next()){var u=f.push,a=u.apply;var R=void 0;n=n.value;if((R=n.listGroup)!=null&&R.listItems){R=[];b:switch(n.listGroup.listType){case "LIST_TYPE_BULLET":var F="ul";break b;default:F="span"}R.push(lz({run:n,textLength:H,tag:F,config:{className:"yt-core-attributed-string__list-group"},startIndex:n.startIndex,length:n.length}));
F=_.y(n.listGroup.listItems);for(var z=F.next();!z.done;z=F.next()){z=z.value;b:switch(n.listGroup.listType){case "LIST_TYPE_BULLET":var v="li";break b;default:v="span"}R.push(lz({run:n,textLength:H,tag:v,startIndex:z.startIndex,length:z.length}))}n=R}else n=[];a.call(u,f,_.Me(n))}}if(K.styleRuns&&(d==null||!d.noStyleRuns))for(D=_.y(K.styleRuns),u=D.next();!u.done;u=D.next()){u=u.value;a=l2O({extension:_.P(u.styleRunExtensions,Ljp),isDarkTheme:S===void 0?!1:S,runColor:u.fontColor});R=[];a&&R.push("yt-core-attributed-string--link-inherit-color");
u.italic&&R.push("yt-core-attributed-string--italicized");u.underline&&u.strikethrough?R.push("yt-core-attributed-string--underline-strikethrough",TDn(u.underline)):u.underline?R.push("yt-core-attributed-string--underlined",TDn(u.underline)):u.strikethrough&&R.push("yt-core-attributed-string--strikethrough",TDn(u.strikethrough));if(u.baselineOffset){a:switch(u.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":n="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":n=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:n="yt-core-attributed-string--baseline-offset-unknown"}R.push(n)}n=R.join(" ");R=u;F={};if(R.weight||R.weightLabel)F.fontWeight=AWX(R).toString();a&&(F.color=a);f.push(lz({run:u,textLength:H,tag:"span",config:{className:n,style:F},startIndex:u.startIndex,length:u.length}))}if(K.decorationRuns)for(D=_.y(K.decorationRuns),u=D.next();!u.done;u=D.next())u=u.value,a={},u.textDecorator&&(F=u.textDecorator,n=S===void 0?!1:S,z=[],R=
_.P(F,GG),F=_.P(F,BDO),R?(F=z,z=F.concat,v=[],(n=l2O({extension:_.P(R.highlightTextDecoratorExtensions,JWJ),isDarkTheme:n,runColor:R.backgroundColor}))&&v.push("background-color: "+n+";"),R.backgroundCornerRadius!==void 0&&v.push("border-radius: "+R.backgroundCornerRadius+"px;"),R.leftPadding!==void 0&&v.push("padding-left: "+R.leftPadding+"px;"),R.rightPadding!==void 0&&v.push("padding-right: "+R.rightPadding+"px;"),R.topPadding!==void 0&&v.push("padding-top: "+R.topPadding+"px;"),R.bottomPadding!==
void 0&&v.push("padding-bottom: "+R.bottomPadding+"px;"),z=z.call(F,v)):F&&(R=z,z=R.concat,n=n?"#2ba640":"#107516",n=F.color?mto(F.color):n,n=["padding: 2px;","border-top: solid "+n+" 2px;","border-bottom: solid "+n+" 2px;","background: linear-gradient(135deg, "+n+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+n+" 3px, rgba(0, 0, 0, 0) 3px);"],z=z.call(R,n)),n=z.join(" "),a.style$=n,n=u.textDecorator,R=[],F=_.P(n,BDO),_.P(n,GG)?R.push("yt-core-attributed-string--highlight-text-decorator"):
F&&R.push("yt-core-attributed-string--bracket-text-decorator"),n=R.join(" "),a.className=n,a.dir="auto"),n=_.P(u.textDecorator,GG),R=_.P(u.textDecorator,BDO),F=_.P(u.textDecorator,GG),z=_.P(u.textDecorator,BDO),f.push(lz({run:u,textLength:H,tag:"span",config:a,startIndex:(n==null?void 0:n.startIndex)||(R==null?void 0:R.startIndex)||0,length:(F==null?void 0:F.length)||(z==null?void 0:z.length)||0}));if(K.commandRuns&&(d==null||!d.noEndpoints))for(S=_.y(K.commandRuns),D=S.next();!D.done;D=S.next())D=
D.value,u=b_X(D,d),f.push(lz({run:D,textLength:H,tag:"a",config:u,startIndex:D.startIndex,length:D.length}));if(K.attachmentRuns)for(K=_.y(K.attachmentRuns),S=K.next();!S.done;S=K.next()){S=S.value;a=u=void 0;D={className:"yt-core-attributed-string--inline-block-mod"};if((a=S.element)==null?0:a.properties){a=(u=S.element)==null?void 0:u.properties;u=[];a=_.P(a,sRp);if(a==null?0:a.margin)a=a.margin,a.left&&u.push("margin-left: "+tJ(a.left)+";"),a.right&&u.push("margin-right: "+tJ(a.right)+";"),a.top&&
u.push("margin-top: "+tJ(a.top)+";"),a.bottom&&u.push("margin-bottom: "+tJ(a.bottom)+";");u=u.length!==0?u.join(" "):void 0;D.style$=u}n=void 0;u={alt:"",preserveHeight:!0,preserveWidth:!0};a=["yt-core-attributed-string__image-element"];if(S.alignment){a:switch(S.alignment){case "ALIGNMENT_BASELINE":R="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":R="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:R=
"yt-core-attributed-string__image-element--image-alignment-bottom"}a.push(R)}if((n=S.element)==null?0:n.properties)n=[],R=_.P(S.element.properties,sRp),(R==null?0:R.height)&&n.push("height: "+tJ(R.height)+";"),(R==null?0:R.width)&&n.push("width: "+tJ(R.width)+";"),n=n.length!==0?n.join(" "):void 0,u.style$=n,R=void 0,n=((R=_.P(S.element.properties,knz))==null?void 0:R.label)||"",u.alt=n;u.className=a.join(" ");a=void 0;F=R=void 0;n=((F=S.element)==null?0:F.type)?(R=_.P(S.element.type,wOu))==null?
void 0:R.image:void 0;f.push(lz({run:S,textLength:H,tag:"img",image:n,imageConfig:u,imageWrapperConfig:D,startIndex:S.startIndex,length:(a=S.length)!=null?a:0}))}if(d==null?0:d.headerRuns)for(d=_.y(d.headerRuns),K=d.next();!K.done;K=d.next())if(K=K.value,K.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(K.headerMapping)){a:{switch(K.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":S=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":S="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":S="yt-core-attributed-string--heading-3";break a}S=void 0}f.push(lz({run:K,textLength:H,tag:"span",config:S?{className:S}:void 0,startIndex:K.startIndex,length:K.length}))}return f};
_.TG=function(K){return(K==null?void 0:K.content)!==void 0};
eIB=function(K){return _.TG(K)?K:_.Nd(K)};
pOJ=function(K){return K.image!==void 0&&K.imageConfig!==void 0};
KKB=function(K,d){if(d==null?0:d.userInput)for(K=_.y(K),d=K.next();!d.done;d=K.next())if(d=d.value,d.tag!=="a"&&d.tag!=="li"){var f=void 0;(f=d).config||(f.config={});d.config.dir=d.tag==="ul"?_.eq().resolve(_.rl):"auto"}};
dSB=function(K){return function(d){var f=K.run;(f.onTap!==void 0||f.onLongPress!==void 0)&&_.P(f,V1p)&&xtG(d,{loggingDirectives:_.P(f,V1p)})}};
f8X=function(K){return function(d){for(var f in K)(J3[f]||J3[Gh["default"]])(d,f,K[f])}};
SpO=function(K,d){HrO(d);var f={data:null,start:0,end:K.length,parts:[]};d=_.y(d);for(var H=d.next();!H.done;H=d.next())H=H.value,DSJ(f,H.startIndex,H.endIndex,H);V0p(K,f);return f};
DSJ=function(K,d,f,H){for(var D=_.y(K.parts),S=D.next();!S.done;S=D.next()){S=S.value;if(typeof S==="string")throw Error("eh");if(S.start<=d&&f<=S.end){DSJ(S,d,f,H);return}}K.parts.push({data:H,parts:[],start:d,end:f})};
V0p=function(K,d){for(var f=d.parts.length;f>=0;f--){var H=d.parts[f],D=d.parts[f-1],S=f===d.parts.length?d.end:H.start;D=f===0?d.start:D.end;S!==D&&d.parts.splice(f,0,K.slice(D,S));H&&V0p(K,H)}};
HrO=function(K){K.sort(function(d,f){if(d.startIndex<f.startIndex)return-1;if(f.startIndex<d.startIndex)return 1;d=d.endIndex-d.startIndex;f=f.endIndex-f.startIndex;return d>f?-1:f>d?1:0})};
_.yYn=function(K){var d=K.thumbnails;if(d){K={sources:[]};d=_.y(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var H={};H.url=f.url;H.width=f.width;H.height=f.height;K.sources.push(H)}return K}};
ne5=function(K,d,f,H){if(!d)return K.length>=1?K[K.length-1]:null;if(H)for(var D=_.y(K),S=D.next();!S.done;S=D.next()){S=S.value;var n=void 0,u=(n=S.url)==null?void 0:n.indexOf(H);if(u!==void 0&&u>=0)return S}H=_.y(K);for(D=H.next();!D.done;D=H.next())if(D=D.value,D.width&&D.height&&(f&&D.width>=d||!f&&D.height>=d))return D;for(d=K.length-1;d>=0;d--)if(f&&K[d].width||!f&&K[d].height)return K[d];return K[0]};
_.irp=function(K){var d;return(K=(d=K.sources)==null?void 0:d[0])?K.width/K.height:0};
_.cYJ=function(K){if(K.sources){K=_.y(K.sources);for(var d=K.next();!d.done;d=K.next()){d=d.value;var f=void 0;if((f=d.clientResource)==null?0:f.imageName)return d}}};
ukX=function(K){var d;if((d=K.clientResource)!=null&&d.imageColor)return _.hG(K.clientResource.imageColor)};
_.I8O=function(K,d,f,H,D,S,n){if(!d||d.length===0||d[0].clientResource)return null;if(f&&d[0].url)return d[0].url;H===void 0&&(H=!0);if(H){var u;K=a8z*(D||(K==null?void 0:(u=K.getBoundingClientRect())==null?void 0:u.width)||0)}else{var a;K=a8z*(S||(K==null?void 0:(a=K.getBoundingClientRect())==null?void 0:a.height)||0)}d=ne5(d,K,H,n);return(d==null?0:d.url)?d.url:(d==null?0:d.imageData)?d.imageData:null};
USX=function(K,d,f){f=f?[f]:[];K.opacity&&f.push("opacity: "+K.opacity+";");d&&K.placeholderColor?(K=_.hG(K.placeholderColor),f.push("background-color: "+K+";")):f.push("background-color: transparent;");return f.join(" ")};
RSX=function(K,d,f,H,D){var S=["yt-core-image"];d&&S.push(d);f||S.push("yt-core-image--fill-parent-height");H||S.push("yt-core-image--fill-parent-width");switch(K.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":S.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":S.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":S.push("yt-core-image--content-mode-center");break;default:S.push("yt-core-image--content-mode-scale-to-fill")}K.flipForRtlLayout&&
S.push("yt-core-image--flip-rtl");switch(D){case "TOP_START":var n;S.push(((n=document.body)==null?void 0:n.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return S.join(" ")};
zSz=function(K){var d;if(K==null?0:(d=K.clientResource)==null?0:d.imageName){var f;K=(f=K.clientResource)==null?void 0:f.imageName;a:{switch(K){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":f="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":f="yt-logos-ext:yt-logo-updated";break a}f=void 0}return f||FKX.get(K)||K}};
qd=function(K){return _.M("mweb_wiz_skip_render")?XHY(K):veJ(K)};
XHY=function(K){return function(d){var f=WnY("wink-root");BC();G7p();wvX(f,_.U(K,d))}};
veJ=function(K){var d=d===void 0?!1:d;return function(f){if(!d||!_.M("mweb_skip_keto_to_c3_if_no_data")||f.data!==void 0){var H=fQ(!1);try{var D=f.children;_.M("mweb_render_outside_patch_killswitch")||Th?D?Ba(_.U(K,f,D)):Ba(_.U(K,f)):_.h3(new _.X4("ketoToC3 called outside of a patch",{tagName:K.TAG_NAME}))}finally{fQ(H)}}}};
M0n=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
geX=function(K,d){K.onViewportEntered=d;P65.observe(K)};
Oro=function(){var K={rootMargin:"10%",threshold:.01};_.M("mweb_enable_set_io_root_to_null_safari")?K.root=null:_.M("mweb_enable_set_io_root_to_body_safari")&&(K.root=document.body);return new IntersectionObserver(function(d,f){d.filter(function(H){return H.intersectionRect.height>0}).forEach(function(H){H=H.target;
if(!_.M("mweb_enable_only_update_image_when_connected")||H.isConnected!==!1){var D;(D=H.onViewportEntered)==null||D.call(H);f.unobserve(H)}})},K)};
N6Y=function(K,d,f,H,D){function S(){if(H){var u=H.loadedClass,a=H.notifyOnUnloaded;u&&_.Q2(K,u);a&&K.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function n(){var u=f(d,K);u&&K.getAttribute("src")!==u&&(_.M("mweb_enable_only_update_image_when_connected")&&K.isConnected===!1||u===K.src||(K.src=u),S())}
D=D===void 0?!0:D;K.removeAttribute("src");S();d&&(D?geX(K,n):n())};
YpY=function(K,d,f){if(!d)return!1;d=f(d,K);f=K.getAttribute("src");return d&&d===f&&K.complete};
t05=function(K,d){for(var f in d)f==="className"?K.className=d[f]:(J3[f]||J3[Gh.default])(K,f,d[f])};
oeB=function(K,d,f,H){qd(_.jV)({contentMode:d.contentMode,loadedClass:d.loadedClass,isPreloaded:d.isPreloaded,notifyOnLoaded:d.notifyOnLoaded,notifyOnUnloaded:d.notifyOnUnloaded,preferredThumbnail:d.preferredThumbnail,preserveHeight:d.preserveHeight,preserveWidth:d.preserveWidth,objectPosition:d.objectPosition,targetWidth:d.targetWidth,targetHeight:d.targetHeight,shouldShowPlaceholder:d.shouldShowPlaceholder,useWidth:d.useWidth,alt:d.alt,className:d.className,onerror:d.onerror,onload:d.onload,style$:d.style$,
color:d.color,width:d.width,height:d.height,"aria-hidden$":d["aria-hidden$"],draggable:d.draggable,"data-disabled$":d["data-disabled$"],data:K,callback:f,renderLazy:H===void 0?!0:H,hideOn404:!1})};
EeN=function(K,d,f){f=f===void 0?!1:f;var H=K.sources!==void 0?K:_.yYn(K);if(H){var D=d.onload;d.onload=function(a){var R=a.target;f&&R.naturalWidth===120||_.CZ(R,"yt-core-image--loaded");d.notifyOnLoaded&&R.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));D==null||D(a)};
d.targetWidth&&d.preserveWidth&&(d.width=d.targetWidth);d.targetHeight&&d.preserveHeight&&(d.height=d.targetHeight);var S=_.cYJ(H),n=S&&zSz(S);if(n)return(K=ukX(S))&&(d.color=K),{type:"icon",iconName:n,config:Object.assign({},d,d.alt?{}:{"aria-hidden$":"true"},{"aria-label$":d.alt,role:"img"})};if(K.sources===void 0){d.alt=K.accessibility&&K.accessibility.accessibilityData&&K.accessibility.accessibilityData.label||d.alt;d.style$=USX(K,d.shouldShowPlaceholder,d.style$);var u;d.isPreloaded=!((u=_.P(K,
$SX))==null||!u.isPreloaded)}d.contentMode&&!H.contentMode&&(H.contentMode=d.contentMode);d.className=RSX(H,d.className,d.preserveHeight,d.preserveWidth,d.objectPosition);d.loadedClass="yt-core-image--loaded";return{type:"image",image:H,config:d}}};
_.xA=function(){var K=_.Pg.apply(0,arguments);return _.x7(function(d){var f=K.map(function(H){return H(d)});
return function(){return void f.forEach(function(H){return void(H==null?void 0:H())})}})};
LZ=function(K,d){var f=d==null?void 0:d.initial;return _.zh(function(){_.hc(!0);return f=K(f)},{equals:d==null?void 0:d.isEqual},"rSlKsc")};
hSn=function(K,d){if(K===d)return!0;if(K===void 0||d===void 0)return!1;var f,H,D,S,n,u,a,R;return K.content===d.content&&((f=K.styleRuns)==null?void 0:f.length)===((H=d.styleRuns)==null?void 0:H.length)&&((D=K.commandRuns)==null?void 0:D.length)===((S=d.commandRuns)==null?void 0:S.length)&&((n=K.attachmentRuns)==null?void 0:n.length)===((u=d.attachmentRuns)==null?void 0:u.length)&&((a=K.decorationRuns)==null?void 0:a.length)===((R=d.decorationRuns)==null?void 0:R.length)};
l8B=function(K,d){if(K){var f=eIB(K);if(f!=null&&f.content)if(_.M("attr_string_reactive"))qd(brG)({text:K,config:d});else{var H=!(d==null||!d.ariaLabel)||!(f.commandRuns&&f.commandRuns.length!==0||f.paragraphStyleRuns&&f.paragraphStyleRuns.length!==0);K=H?d==null?void 0:d.ariaLabel:null;H=H?"text":null;gl("span",{className:GnY(f,d),dir$:(d==null?0:d.userInput)?"auto":void 0,"aria-label$":K,role$:H},function(){if(f.styleRuns||f.commandRuns||f.attachmentRuns||f.decorationRuns){var D=Z_X(f,d);KKB(D,
d);D=SpO(f.content,D);D=_.y(D.parts);for(var S=D.next();!S.done;S=D.next())mSJ(S.value)}else eD(f.content)})}}};
mSJ=function(K){typeof K==="string"?eD(K):pOJ(K.data)?gl("span",K.data.imageWrapperConfig,function(){oeB(K.data.image,K.data.imageConfig)}):gl(K.data.tag,K.data.config,function(d){dSB(K.data)(d);
d=_.y(K.parts);for(var f=d.next();!f.done;f=d.next())mSJ(f.value)})};
GOS=function(K){return K.parts.map(WKY)};
WKY=function(K){if(typeof K==="string")return K;K=pOJ(K.data)?_.U("span",{el:_.xA(f8X(K.data.imageWrapperConfig))},_.U(_.jV,Object.assign({},{data:K.data.image},K.data.imageConfig))):_.U(K.data.tag,{el:_.xA(dSB(K.data),f8X(K.data.config))},K.parts.map(WKY));return Id(K)};
AYo=function(K,d){return K===d?!0:K===void 0||d===void 0?!1:K.noStyleRuns===d.noStyleRuns&&K.noLinkColor===d.noLinkColor&&K.noEndpoints===d.noEndpoints&&K.headerRuns===d.headerRuns&&K.isOverlay===d.isOverlay&&K.linkInheritColor===d.linkInheritColor&&K.userInput===d.userInput};
T6n=function(K){return function(){var d,f,H,D,S,n,u,a,R,F,z,v,g,N;return{ariaLabel:(d=K.ariaLabel)==null?void 0:d.call(K),className:(f=K.className)==null?void 0:f.call(K),ellipsisTruncate:(H=K.ellipsisTruncate)==null?void 0:H.call(K),isOverlay:(D=K.isOverlay)==null?void 0:D.call(K),linkInheritColor:(S=K.linkInheritColor)==null?void 0:S.call(K),noEndpoints:(n=K.noEndpoints)==null?void 0:n.call(K),noStyleRuns:(u=K.noStyleRuns)==null?void 0:u.call(K),noLinkColor:(a=K.noLinkColor)==null?void 0:a.call(K),
noPreWrap:(R=K.noPreWrap)==null?void 0:R.call(K),noWrap:(F=K.noWrap)==null?void 0:F.call(K),skipOnClick:(z=K.skipOnClick)==null?void 0:z.call(K),stopPropagation:(v=K.stopPropagation)==null?void 0:v.call(K),userInput:(g=K.userInput)==null?void 0:g.call(K),headerRuns:(N=K.headerRuns)==null?void 0:N.call(K)}}};
rYz=function(K){return K.value===""||K.value==="true"?!0:K.value==="false"?!1:isNaN(Number(K.value))?K.value:Number(K.value)};
Bv=function(K,d){K=new qpX(K,d);_.$7(K);throw K;};
QD5=function(K,d,f){var H=wSp(K);K._numRenders=0;try{var D=Fdu(function(){return _.U(d,Object.assign({},f))})}catch(n){var S=function(u){u.args||(u.args=[]);
u.args.push("Error in web component wrapper");u.args.push(K.tagName.toLowerCase());return u};
_.EN(n instanceof Error?S(n):new qpX("Wiz rendering error",K.tagName.toLowerCase()));throw n;}finally{wSp(H)}return D};
_.sP=function(K,d,f){function H(F){var z={};F=_.y(F);for(var v=F.next();!v.done;v=F.next()){v=v.value;var g=void 0,N=void 0,h=void 0,m=_.c0((h=(N=(g=v).getAttribute)==null?void 0:N.call(g,"slot"))!=null?h:"children");if(g=z[m])g.push(v);else if(m in S||m==="children")z[m]=[v]}F=_.y(Object.keys(z));m=F.next();for(v={};!m.done;v={content$jscomp$55:void 0},m=F.next())m=m.value,m!=="children"&&(v.content$jscomp$55=z[m],z[m]=function(T){return function(){return T.content$jscomp$55}}(v));
return z}
f=f===void 0?{}:f;K.componentType!==On||Bv("Components must be marked reactive to be used from web component wrapper.",d);wj.has(d)&&Bv("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",d);var D,S=(D=f.props)!=null?D:{};Zm.add(d);var n=jDz();D=function(){var F=n.apply(this,arguments)||this;F.rawProps={};F.queuingRender=!1;F.dispose=function(){};
F.isWebComponentWrapper=!0;F.isReparenting=!1;F.hasRendered=!1;return F};
_.O(D,n);D.prototype.render=function(){this.hasRendered=!0;for(var F=_.y([].concat(_.Me(this.attributes))),z=F.next();!z.done;z=F.next())z=z.value,z.name!=="slot"&&this.removeAttribute(z.name);F=Object.assign({},this.componentProps,this.slotProps);z=_.y(QD5(this,K,F));F=z.next().value;z=z.next().value;!(F[0]instanceof Element)||F.length>1?Bv("Wrapped Wiz components must return a single root element.",d):(F=F[0].tagName.toLowerCase(),F!==d&&Bv("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(F+" !== '"+d),d),this.dispose=z)};
D.prototype.setUpProps=function(){for(var F=this.rawProps,z=this.attributes,v=_.y(Object.keys(S)),g=v.next();!g.done;g=v.next()){g=g.value;var N=void 0;((N=this)==null?0:N[g])&&this[g]!==C6p&&F[g]===void 0&&(F[g]=this[g],(N=Object.getOwnPropertyDescriptor(this.constructor.prototype,g))&&Object.defineProperty(this,g,N))}v=_.y(z);for(g=v.next();!g.done;g=v.next()){N=g.value;g=_.c0(N.name);var h=g==="class"&&!z.getNamedItem("class-name");if(g in S||h)N=rYz(N),g!=="class"||F.className?F[g]=N:F.className=
N}z={};for(var m in S)S[m]!==_.JJ&&S[m]!==xSp&&(F[m]instanceof Function&&Bv("Function props must be configured as STATIC, not SIGNAL.",d),g=_.y(_.cC(F[m],void 0,"Ri8MSe")),v=g.next().value,g=g.next().value,z[m]=g,F[m]=v);F=_.y([F,z]);this.componentProps=F.next().value;this.setters=F.next().value;this.slotProps=H(this.childNodes)};
D.prototype.connectedCallback=function(){sz===d&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in S&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
D.prototype.disconnectedCallback=function(){if(!this._isInert){var F;a:{if(_.LKp)for(F=this;F;){if(_.B6X.has(F)){F=!0;break a}F=F.parentElement}F=!1}if(F)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){F=_.y([].concat(_.Me(this.attributes)));for(var z=F.next();!z.done;z=F.next())z=z.value,z.name!=="slot"&&this.removeAttribute(z.name)}this.innerText="";CnJ(this)}}};
D.prototype._setPendingPropertyOrPath=function(){};
D.prototype.notifyPath=function(){};
_.x$.Object.defineProperties(D.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var u=_.y(Object.keys(S)),a=u.next(),R={};!a.done;R={prop$jscomp$104:void 0},a=u.next())R.prop$jscomp$104=a.value,a=void 0,((a=f.legacyPolymer)==null?0:a.forwardHostProps)&&rXX.has(R.prop$jscomp$104)||Object.defineProperty(D.prototype,R.prop$jscomp$104,{set:function(F){return function(z){var v=this;this._isInert||(this.setters?vC(function(){var g,N;return void((N=(g=v.setters)[F.prop$jscomp$104])==null?void 0:N.call(g,z))}):(this.rawProps[F.prop$jscomp$104]=z,this.queuingRender&&F.prop$jscomp$104===
"data"&&z!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(R),
get:JYS.has(R.prop$jscomp$104)?void 0:function(){return C6p}});
customElements.define(d,D)};
_.sDN=function(K,d){return(K=_.kA(K,d))?_.Io(_.Xa(K)):null};
_.wl=function(K){if(K=_.kA(K,Number.MAX_VALUE,void 0,"width"))return _.Xa(K)};
_.kA=function(K,d,f,H){H=H===void 0?"width":H;if(!K||!K.length)return null;if(_.M("kevlar_tuner_should_always_use_device_pixel_ratio")){var D=window.devicePixelRatio;_.M("kevlar_tuner_should_clamp_device_pixel_ratio")?D=Math.min(D,_.di("kevlar_tuner_clamp_device_pixel_ratio")):_.M("kevlar_tuner_should_use_thumbnail_factor")&&(D=_.di("kevlar_tuner_thumbnail_factor"));kOJ=D}else kOJ||(kOJ=window.devicePixelRatio);D=kOJ;_.M("kevlar_tuner_should_always_use_device_pixel_ratio")?d*=D:D>1&&(d*=D);if(_.M("kevlar_tuner_min_thumbnail_quality"))return K[0].url||
null;D=K.length;if(_.M("kevlar_tuner_max_thumbnail_quality"))return K[D-1].url||null;if(f)for(var S=0;S<D;S++)if(K[S].url.indexOf(f)>=0)return K[S].url||null;for(f=0;f<D;f++)if(K[f][H]>=d)return K[f].url||null;for(d=D-1;d>0;d--)if(K[d][H])return K[d].url||null;return K[0].url||null};
eSO=function(){ZF.size?setTimeout(function(){eV(wHX)},0):Zr5=0};
wHX=function(){var K=(0,_.k_)(),d=null,f=!1;ZF.forEach(function(D){D.loaded=!0;D.loadTime=K;D.pendingPaint=!1;var S=pHz.get(D);S&&S.resolve(K);d=D;f||!D.ftlEligible&&D.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(f=!0)});
var H;((H=d)==null?0:H.markDirty)&&d.markDirty();ZF.clear();Zr5=0;f&&K0z(K)};
db5=function(K){ZF.add(K);K.pendingPaint=!0;Zr5||(Zr5=_.pZ(_.oc,eSO))};
fQX=function(K){K.loaded=!1;K.loadTime=Infinity;var d=pHz.get(K);d&&(d.reject(Error("kh")),pHz.delete(K));K.pendingPaint&&(ZF.delete(K),K.pendingPaint=!1)};
_.HjN=function(K){var d=K.indexOf(":");return d===-1?{originalName:K}:{originalName:K.substring(0,d),datasyncId:K.substring(d+1)}};
_.VGX=function(){return _.c(function(K){if(DbO!==void 0)return K.return(DbO);DbO=new Promise(function(d){var f;return _.c(function(H){switch(H.nextAddress){case 1:return _.HF(H,2),_.I(H,_.KK.open("test-only"),4);case 4:return _.I(H,_.KK.delete("test-only"),5);case 5:_.Ts(H,3);break;case 2:if(f=_.n7(H),f instanceof Error&&f.name==="SecurityError")return d(!1),H.return();case 3:d("caches"in window),_.iQ(H)}})});
return K.return(DbO)})};
nTY=function(){return _.c(function(K){if(K.nextAddress==1)return _.I(K,_.VGX(),2);if(!K.yieldResult)return K.return(void 0);Sdz||(Sdz=new y0X);return K.return(Sdz)})};
ijX=function(K){var d,f,H,D;return _.c(function(S){switch(S.nextAddress){case 1:return _.I(S,nTY(),2);case 2:d=S.yieldResult;if(!d)throw Error("mh");return _.I(S,d.open("yt-player-local-img"),3);case 3:return f=S.yieldResult,_.I(S,f.match(K),4);case 4:H=S.yieldResult;if(!H)throw Error("nh");return _.I(S,H.blob(),5);case 5:return D=S.yieldResult,S.return(D)}})};
c0S=function(K,d){for(var f in K)if(K.hasOwnProperty(f)&&d[f])return f;return null};
u1z=function(K){return"stamp"+K.replace("-","_")+"_"};
aQ5=function(K){var d=K.match(/\[\[([\w\.]+)\]\]/);if(d&&d.length>1)return d[1];_.$7(Error("ph`"+K));return null};
IQn=function(K){return K===void 0?_.lx("REUSE_COMPONENTS",!1):K||!1};
F0G=function(K,d,f){f&&(d.is?(Ub5.has(d)&&(K=Ub5.get(d),f=K.listener,delete d[K.property],f.type==="element"&&d.removeEventListener(f.eventName,f.handler),Ub5.delete(d)),Rgp(d)):d.__proto__==HTMLElement.prototype&&(d=new _.X4("Rendererstamper removed a non custom element","Stamper: "+K+" element: "+(d&&d.nodeName)),_.h3(d)))};
zgz=function(K,d,f,H){var D=d.node?d.node:d;_.E(f).parentNode===D&&(d.removeChild(f),F0G(K,f,H));if(K=dH.get(f))dH.delete(f),_.oc.cancelJob(K);f.hidden=!1};
XoS=function(K,d,f,H){if(d&&d.children&&(f=d.children[f]))if(_.lx("DEFERRED_DETACH"))for(;f&&!dH.has(f);){var D=K,S=d,n=f,u=H;n.hidden=!0;D=_.va(_.oc,zgz.bind(null,D,S,n,u),0);dH.set(n,D);f=f.nextElementSibling}else for(;(n=d.lastElementChild)&&(d.removeChild(n),F0G(K,n,H),n!=f););};
vTu=function(K){var d=_.Co();_.tR(function(){for(var f=_.y(K.slotContent),H=f.next();!H.done;H=f.next())d.value.appendChild(H.value)});
return _.U("__slot-el",{el:d,skip:!0})};
_.fK=function(K,d,f){f=f===void 0?MG5:f;wj.add(d);var H;(H=f).propNames!=null||(H.propNames=[]);var D=new Set(f.propNames),S=jDz();H=function(){var R=S.call(this)||this;R.props={};R.isUpdating=!1;R.hasAttached=!1;R.isInert=!1;R.updateQueued=!1;R.initialClasses=[];kUN(R,d);return R};
_.O(H,S);H.prototype.forwardKebabCaseProp=function(R,F){R=_.c0(R);if(D.has(R)||R==="children")this.props[R]=F};
H.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var R=_.y(this.initialClasses),F=R.next();!F.done;F=R.next())(F=F.value)&&this.classList.add(F);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
H.prototype.handleSlottedContent=function(){for(var R=new Map,F=_.y(this.children),z=F.next();!z.done;z=F.next()){z=z.value;var v=void 0,g=(v=z.getAttribute("slot"))!=null?v:"children";(v=R.get(g))?v.push(z):R.set(g,[z]);if(!z.getAttribute("key")){var N=void 0,h=void 0;z.setAttribute("key",g+"_"+((h=(N=v)==null?void 0:N.length)!=null?h:0))}}R=_.y(R);for(F=R.next();!F.done;F=R.next())z=_.y(F.value),F=z.next().value,z=z.next().value,this.forwardKebabCaseProp(F,_.U(vTu,{slotContent:z}))};
H.prototype.connectedCallback=function(){var R=this;if(!kUN(this,d)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var F=_.y(this.attributes),z=F.next();!z.done;z=F.next())z=z.value,this.forwardKebabCaseProp(z.name,rYz(z));this.handleSlottedContent();f.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){R.afterFirstPatch()});
this.hasAttached=!0}};
H.prototype.attributeChangedCallback=function(R,F,z){this.isInert||this.isUpdating||this.isConnected||R!=="class"||this.initialClasses.push.apply(this.initialClasses,_.Me(z.split(" ")))};
H.prototype.disconnectedCallback=function(){r3u(this)};
H.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var R,F;wvX(this,_.U(K,Object.assign({},this.props,{idomKey:(F=(R=this.__incrementalDOMData)==null?void 0:R.key)!=null?F:d})),!0)}catch(v){var z=v instanceof Error?v:new _.X4("Wiz rendering error");z.args||(z.args=[]);z.args.push("Error in deprecated web component wrapper");z.args.push(d.toLowerCase());_.$7(z);throw v;}finally{this.updateQueued=this.isUpdating=!1}}};
H.prototype.enqueueUpdate=function(){var R=this;return _.c(function(F){if(f.synchronous)return R.update(),F.return();if(R.updateQueued)return F.return();R.updateQueued=!0;return F.return(Promise.resolve().then(function(){R.update()}))})};
H.prototype.notifyPath=function(){f.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.x$.Object.defineProperties(H,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var n=_.y(f.propNames),u=n.next(),a={};!u.done;a={prop$jscomp$106:void 0},u=n.next())a.prop$jscomp$106=u.value,Object.defineProperty(H.prototype,a.prop$jscomp$106,{set:function(R){return function(F){this.isInert||F===this.props[R.prop$jscomp$106]||(this.props[R.prop$jscomp$106]=F,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(a)});
customElements.define(d,H)};
_.P_N=function(K,d){return _.DR(K.entities,"markersEngagementPanelSyncEntity",d)};
gTX=function(K,d){return _.DR(K.entities,"fantasyWinProbabilityEntity",d)};
OjN=function(K,d){return _.DR(K.entities,"fantasyTeamEntity",d)};
NrX=function(K,d){return _.DR(K.entities,"fantasyPlayerEntity",d)};
YdY=function(K,d){return _.DR(K.entities,"booleanEntity",d)};
tGB=function(K,d){return _.DR(K.entities,"qrCodeEntity",d)};
oTO=function(K){return _.DR(K.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
$bu=function(){if(Hp)return Hp;if(window.lottie)return Hp=Promise.resolve(window.lottie);var K=_.$K(_.mD("LOTTIE_URL"));return K?Hp=new Promise(function(d,f){var H=document.createElement("script");H.addEventListener("load",function(){d(lottie)});
H.addEventListener("error",function(D){var S="Lottie library failed to load.";D?D.message&&(S+=" Original description: "+D.message,_.bp(D,S)):D=Error(S);_.h3(D);f(D)});
H.setAttribute("async","");_.Aa(H,K);document.head.appendChild(H)}):Promise.reject(Error("qh"))};
ETO=function(){return Hp?Hp:$bu()};
hg5=function(K){if(K)switch(K){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.M("kevlar_use_wil_icons"))return K=(K=oTO(_.j3().getState()))&&K.animationLightUrl&&K.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:K.animationLightUrl,pathDarkTheme:K.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:60,lazyLoad:!0}:void 0,K?K:DW.get("LIKE")}};
bjz=function(K){var d=hg5(K);if(d)return d;switch(K){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return DW.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return DW.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return DW.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return DW.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return DW.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return DW.get("NOTIFICATION_BELL")}};
lQX=function(K,d){if(!K||mbG)d=!1;else{if(K.closest){var f=!!hg5(d);f=_.mD("ID_TOKEN")&&f?!!K.closest("segmented-like-dislike-button-view-model"):!1}else f=!1;if(!f)if(K.closest)if(f=!_.mD("ID_TOKEN"),K=K.closest("ytd-subscription-notification-toggle-button-renderer-next"),f||!K)f=!1;else{var H;f=((H=K.data)==null?void 0:H.targetId)==="notification-bell"&&d!=="EXPAND_MORE"}else f=!1;d=f}return d};
W0n=function(K){var d,f;return _.c(function(H){switch(H.nextAddress){case 1:return _.HF(H,2),_.I(H,fetch(K),4);case 4:return d=H.yieldResult,_.I(H,d.json(),5);case 5:return H.return(H.yieldResult);case 2:f=_.n7(H),_.h3(f),_.iQ(H)}})};
GJJ=function(K,d){var f,H,D;return _.c(function(S){if(S.nextAddress==1)return(f=d?K.pathDarkTheme:K.path)?_.I(S,Promise.all([W0n(f),$bu()]),2):S.return();H=S.yieldResult;D=H[0];VC.set(f,D);_.iQ(S)})};
_.SC=function(){var K=_.Pg.apply(0,arguments);return function(){for(var d="",f=_.y(K),H=f.next();!H.done;H=f.next())if(H=H.value,typeof H==="function"&&(H=H()),H)if(typeof H==="string")d+=" "+H;else for(var D in H)if(H.hasOwnProperty(D)){var S=H[D];typeof S==="function"&&(S=S());S&&(d+=" "+D)}d=d.trim()||void 0;return _.hc(d)}};
_.yC=function(K){var d;var f=K.data;var H=K.className;var D=K.animationName;var S=K.animationRef;var n=(d=K.elRefForInterop)||_.Co(),u;_.$F(function(){var F;return void((F=u)==null?void 0:F.destroy())});
var a;_.ol(function(){var F=_.hc(D);if(F!==a){a=F;var z=Object.assign({},{animationName:F,animationRef:_.hc(S)},_.hc(f));try{_.eq().resolve(A0O)().then(function(N){var h;(h=u)==null||h.destroy();h=z.animationRef;var m=z.listeners;N=N.loadAnimation(Object.assign({},{container:n.value},z.animationConfig));h&&(h.lottieEl=N);if(m)for(h=_.y(Object.entries(m)),m=h.next();!m.done;m=h.next()){var T=_.y(m.value);m=T.next().value;(T=T.next().value)&&N.addEventListener(m,T)}u=N})}catch(N){F=N;
var v="LottieComponent error.";F.message&&(v+=" Original description: "+F.message);_.bp(F,v);_.h3(F);var g;((g=z.listeners)==null?0:g.error)&&z.listeners.error(F)}}});
var R=_.SC("ytLottieComponentHost",H);return _.U(LhB,{cond:function(){return!d},
then:function(){return _.U("lottie-component",{class:R,el:n})}})};
r0z=function(K,d,f,H){function D(n,u){if(d.value===u&&K!=null&&K.value){for(;K.value.firstChild;)K.value.removeChild(K.value.firstChild);K.value.classList.add("yt-spec-icon-shape");n(K.value,H)}}
f=_.TrY(_.eq().resolve(_.DF),f);if(typeof f==="function")d.value=null,D(f,null);else{var S=new _.ip(f.then,f);d.value=S;S.then(function(n){D(n,S)})}};
Q$z=function(K,d){var f=document.createElement("div"),H=_.Ob(f,function(){return _.U(_.X,{cond:K,then:function(D){return _.U(qdX,{data:D,options:d})}})});
return[f,H]};
_.nK=function(){for(var K=[],d=_.y(_.Pg.apply(0,arguments)),f=d.next();!f.done;f=d.next())if(f=f.value)if(typeof f==="string")K.push(f);else{f=_.y(Object.entries(f));for(var H=f.next();!H.done;H=f.next()){var D=_.y(H.value);H=D.next().value;(D=D.next().value)&&K.push(H)}}return K.join(" ")};
L0N=function(K){var d=_.Co(),f=$M(),H=jv(K.character)||jv(K.previousCharacter);D5p(function(){if(K.marginMultiplier){var D;(D=f.value)==null||D.cancel();H?(D=K.previousCharacter?Number(K.previousCharacter)+10:K.rollUp?0:30,K.shouldAnimate||(D-=j$o(K,D))):(D=K.rollUp?0:2,K.shouldAnimate||(D-=K.rollUp?-1:1));d.value.style.marginTop="-"+D*K.marginMultiplier+"px";K.shouldAnimate?f.value=C_n(d.value,K,D,H):d.value.style.display=K.character?"":"none"}});
return _.U("animated-rolling-character",{el:d,class:"animated-rolling-character-wiz"},sm(H,function(){for(var D=[],S=1;S<30;S++)D.push(_.U("div",null,S%10));return _.U(_.dF,null,_.U("div",null,"\u00a0"),D,_.U("div",null,"\u00a0"))},function(){return xbO(K.character)}))};
xbO=function(K){return _.U(_.dF,null,_.U("div",null,"\u00a0"),_.U(_.dF,null,sm(!K||_.cu(K),function(){return _.U("div",null,"\u00a0")},function(){return _.U("div",null,K)})),_.U("div",null,"\u00a0"))};
C_n=function(K,d,f,H){f=new Animation(new KeyframeEffect(K,[{transform:"translateY(0px)"},{transform:"translateY("+(H?j$o(d,f):d.rollUp?-1:1)*d.marginMultiplier+"px)"}],BrX),document.timeline);d.character?(K.style.display="",f.onfinish=null):f.onfinish=function(){K.style.display="none"};
f.play();return f};
j$o=function(K,d){var f=Number(K.character)+10;if(K.previousCharacter)if(K.character){var H=Number(K.character),D=Number(K.previousCharacter);K=K.rollUp?D<H?f:f+10:D<H?f-10:f}else K=K.rollUp?30:0;else K=K.character==="0"?f:K.rollUp?f-10:f+10;return d-K};
_.ih=function(K,d){return function(f){var H={},D;for(D in f){var S=void 0,n=void 0;((S=d)==null?0:(n=S.callbacks)==null?0:n[D])||(H[D]=f[D])}return _.U(Ro5,null,function(){for(var u in H)f[u]=_.hc(H[u]);f.disableReactiveLogging=!0;return _.U(K,Object.assign({},f))})}};
_.J0X=function(K){var d=$M(),f=$M();YM(function(){d.value=K.numberText;f.value=K.numberValue},[K.numberText]);
var H=K.fontSizeMultiplier?K.heightPx*K.fontSizeMultiplier:K.heightPx,D=i3u(function(){if(K.numberText){var n=K.numberText;var u=K.forceRollUp||!f.value||!K.numberValue||f.value<K.numberValue;var a=!!K.shouldAnimate,R=d.value,F=[],z=0,v=0,g=(R?R.replace(/\D/g,"").length:0)-(n?n.replace(/\D/g,"").length:0);R=R?R.split(/(\d)/).filter(Boolean):[];for(n=n.split(/(\d)/).filter(Boolean);g<0;){var N=n[v];F.push({character:N,rollUp:u,marginMultiplier:H,shouldAnimate:a});v++;jv(N)&&g++}for(;z<g;)N=R[z],F.push({previousCharacter:N,
rollUp:u,marginMultiplier:H,shouldAnimate:a}),z++,jv(N)||g++;for(;v<n.length;)g=n[v],N=R[z],jv(g)===jv(N)?(v++,z++):jv(g)?(z++,g=void 0):jv(N)&&(v++,N=void 0),F.push({character:g,previousCharacter:N,rollUp:u,marginMultiplier:H,shouldAnimate:a});u=F}else u=[];return u},[K.numberText]),S=K.numberText?["height: "+H+"px;",
"line-height: "+K.heightPx+"px;"].join(" "):"";return _.U("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:S,dir:"ltr","aria-hidden":"true"},D.map(function(n){return _.U(L0N,Object.assign({},n))}))};
s$z=function(K){var d=K.nodeName;if(K.id)return d+="#"+K.id;if(K.classList)for(var f=_.y(K.classList),H=f.next();!H.done;H=f.next())d+="."+H.value;K.parentElement&&(d=s$z(K.parentElement)+" > "+d);return d};
kJJ=function(K){return function(d){var f=lTO("event",{type:d.type,nodepath:s$z(d.target)});return GA5(f,K,d)}};
_.cp=function(K){K&&xJ&&(xJ.enabledSpans?xJ.enabledSpans.event:1)&&(K=kJJ(K));return Bln(function(d){var f,H=(f=K)==null?void 0:f(d);return typeof H==="boolean"?H:!0})};
uh=function(K){return function(){return K()?K():void 0}};
woz=function(K){return new KeyframeEffect(K,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
ZjX=function(K){return new KeyframeEffect(K,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.am=function(K){var d=LZ(function(f){f=f?i8(f[0]):void 0;return _.cC(K(f),void 0,"AwTxXe")},{isEqual:function(f,H){return i8(f[0])===i8(H[0])}});
return[function(){return d()[0]()},
function(f){return void d()[1](f)}]};
_.Im=function(K){return function(){var d="",f;for(f in K){for(var H=K[f];typeof H==="function";)H=H();H!==void 0&&H!==null&&(d+="; "+f+": "+H)}return d.length>0?_.hc(d.slice(2)):_.hc()}};
egn=function(K){switch(K){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"}};
fgu=function(K,d,f,H,D,S){var n=poJ(K),u=n.disabled,a=n.iconPosition,R=n.style,F=n.focused,z=function(){return!!N()&&a()==="icon-only"},v=function(){return!!N()&&a()==="icon-only-40"},g=function(){return!!N()&&a()==="icon-with-label"},N=function(){return!!d||!(H==null||!H())};
return{type:function(){return R()==="call-to-action-inverse"?"text":R()==="overlay-dark"&&K().type!=="filled"&&K().type!=="tonal"?"tonal":K().type},
shouldFocus:function(){return(F()||(S==null?void 0:S()))&&!u()},
hasIconLeading:function(){return!!N()&&a()==="leading"},
hasIconTrailing:function(){return!!N()&&a()==="trailing"},
hasIconLeadingTrailing:function(){return!!N()&&!!(f||D!=null&&D())&&a()==="leading-trailing"},
hasIconOnly:z,hasIconOnly40:v,hasIconWithLabel:g,iconButton:function(){return z()||v()||g()},
visiblyDisabled:function(){return(u()?"disabled":K().state)==="disabled"||u()},
overrideSmallSizeIcon:function(){return KTJ(K(),N())},
iconToRender:d?d:function(){return _.U(_.U5,{icon:H,size:function(){return Rm(K(),!0)},
active:function(){return K().toggled},
iconFilter:function(){return dIo(K())}})},
secondaryIconToRender:f?f:function(){return _.U(_.U5,{icon:D,size:function(){return Rm(K(),!0)},
active:function(){return K().toggled},
iconFilter:function(){return dIo(K())}})}}};
poJ=function(K){return{size:function(){return K().size},
style:function(){return K().style},
focused:function(){return K().focused},
disabled:function(){return K().disabled},
onTap:function(d){var f,H;return(H=(f=K()).onTap)==null?void 0:H.call(f,d)},
alignByText:function(){return K().alignByText},
aTagConfig:function(){return K().aTagConfig},
customColors:function(){return K().customColors},
segmentedPosition:function(){return K().segmentedPosition},
toggled:function(){return K().toggled},
toggleable:function(){return K().toggleable},
accessibilityLabel:function(){return K().accessibilityLabel},
onToggle:function(d){var f,H;return(H=(f=K()).onToggle)==null?void 0:H.call(f,d)},
iconPosition:function(){return K().iconPosition},
oneOffCustomTextWrap:function(){return K().oneOffCustomTextWrap},
disableTextEllipsis:function(){return K().disableTextEllipsis},
disableBackdropFilter:function(){return K().disableBackdropFilter},
tooltipText:function(){return K().tooltipText},
ariaHidden:function(){return K().ariaHidden},
tabIndex:function(){return K().tabIndex},
buttonText:function(){return K().buttonText},
formattedButtonText:function(){return K().formattedButtonText},
animatedTextProps:function(){return K().animatedTextProps}}};
HuS=function(K){return K.style==="overlay-dark"?4:K.style==="overlay"?K.type==="filled"?4:3:K.type==="filled"||K.style==="call-to-action-inverse"||K.style==="mono-inverse"?2:1};
KTJ=function(K,d){d=(K.iconPosition==="icon-only"||K.iconPosition==="icon-only-40"||K.iconPosition==="icon-with-label")&&d;return!K.segmentedPosition&&d&&K.size==="S"};
DIn=function(){return!_.M("web_disable_backdrop_filter")};
Rm=function(K,d){switch(K.size){case "XS":return 16;case "S":return KTJ(K,d)?24:16;default:return 24}};
V5X=function(K){switch(K){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"}};
SfO=function(K){switch(K){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"}};
yiB=function(K){switch(K){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"}};
dIo=function(K){if(K.style==="overlay-dark"&&K.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
n9Y=function(K){if(!K)return{};var d=K.color,f=K.backgroundColor;K=K.borderColor;var H="";d&&(H+="color: "+d+";");f&&(H+="background-color: "+f+";");K&&(H+="border-color: "+K+";");return{style:H}};
agz=function(K,d,f){var H=K.buttonText,D=K.formattedButtonText,S=K.formattedButtonTextLegacy,n=K.animatedTextProps,u=K.style,a=K.size,R=K.focused,F=K.disabled,z=K.onTap,v=K.alignByText,g=K.aTagConfig,N=K.customColors,h=K.segmentedPosition,m=K.toggled,T=K.toggleable,r=K.accessibilityLabel,J=K.onToggle,L=K.iconPosition,fB=K.oneOffCustomTextWrap,w=K.disableTextEllipsis,yO=K.disableBackdropFilter,FX=K.tooltipText,NJ=K.ariaHidden,$z=K.tabIndex,hN=K.state,bo=K.type;u==="call-to-action-inverse"&&(bo="text");
u==="overlay-dark"&&bo!=="filled"&&bo!=="tonal"&&(bo="tonal");var xz=!!d&&L==="leading",qJ=!!d&&L==="trailing",Y8=!!d&&!!f&&L==="leading-trailing",Iz=!!d&&L==="icon-only",qs=!!d&&L==="icon-only-40",af=!!d&&L==="icon-with-label",i9=Iz||qs||af;F&&(hN="disabled");var KE=hN==="disabled"||F;hN=KTJ(K,!!d);var c4={},cx=(c4["yt-spec-button-shape-next"]=!0,c4[V5X(bo)]=!0,c4[SfO(u)]=!KE,c4["yt-spec-button-shape-next--disabled"]=!!KE,c4[yiB(a)]=!0,c4["yt-spec-button-shape-next--focused"]=!!R&&!F,c4["yt-spec-button-shape-next--icon-trailing"]=
qJ,c4["yt-spec-button-shape-next--icon-leading"]=xz,c4["yt-spec-button-shape-next--icon-leading-trailing"]=Y8,c4["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=Y8&&!(H||D),c4["yt-spec-button-shape-next--icon-button"]=Iz||af,c4["yt-spec-button-shape-next--icon-only-default"]=qs,c4["yt-spec-button-shape-next--align-by-text"]=!!v,c4["yt-spec-button-shape-next--segmented-start"]=h==="start",c4["yt-spec-button-shape-next--segmented-end"]=h==="end",c4["yt-spec-button-shape-next--override-small-size-icon"]=
hN,c4["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!fB,c4["yt-spec-button-shape-next--disable-text-ellipsis"]=!!w,c4["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!yO&&DIn(),c4),Oj=function(){if(n)qd(_.J0X)(n);else if(S)S(L==="icon-with-label"||fB?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(D){var LJ=L==="icon-with-label"||fB;l8B(Object.assign({},D,LJ?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!LJ})}else H&&eD(H)},io=function(LJ){z==null||z(LJ);
T&&(J==null||J(LJ))},g2=g?iuS:cip,l9=g?"aria-current$":"aria-pressed$",rw=function(){d&&(xz||Y8||i9)&&function(){FQ({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){d()})}();
(H||D||S||n)&&!i9&&function(){FQ({className:"yt-spec-button-shape-next__button-text-content"},function(){Oj()})}();
qJ&&function(){FQ({className:"yt-spec-button-shape-next__icon"},function(){d()})}();
Y8&&function(){FQ({className:"yt-spec-button-shape-next__secondary-icon"},function(){f()})}();
F||qd(_.zz)({model:{color:HuS(K)}})},t6=function(){var LJ={};
g2(Object.assign({},(LJ.className=_.nK(cx),LJ.onclick=g?void 0:io,LJ.disabled=F,LJ["aria-disabled$"]=KE,LJ.style=F&&g?"pointer-events:none":void 0,LJ[l9]=T?!!m:void 0,LJ["aria-label$"]=r,LJ.title$=FX!=null?FX:"",LJ["aria-hidden$"]=NJ,LJ.tabindex$=$z,LJ),g,n9Y(N)),function(){rw()})};
af?(a={},u=(a["yt-spec-button-shape-with-label"]=!0,a["yt-spec-button-shape-with-label--is-overlay"]=u==="overlay"||u==="overlay-dark",a),uxX({className:_.nK(u)},function(){t6();FQ({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},Oj)})):t6()};
Ign=function(K,d){if(!kl){var f;nKJ(function(){return f=IWn(K,d)});
return f}return IWn(K,d)};
UIu=function(){var K=tqB(kl||void 0,chN);return Ybz(K)?void 0:K};
XQ=function(K,d){_.EP(K,Object.assign({},d,{forceClickLogging:!0}))};
Rvu=function(K,d,f,H){var D=void 0;return function(S){var n=_.$A(f?K==null?void 0:K.onDisabledTap:K==null?void 0:K.onTap);if(n){var u;D=(u=D)!=null?u:d==null?void 0:d.value;if(n)if(_.M("web_button_vm_click_client_ve_killswitch"))XQ(n,Object.assign({},{form:{element:D,event:S}},void 0));else{var a;u=n==null?void 0:n.clickTrackingParams;var R,F=K==null?void 0:(a=K.loggingDirectives)==null?void 0:(R=a.clientVeSpec)==null?void 0:R.uiType;a=F&&!u?_.vp(F):void 0;XQ(n,Object.assign({},{form:{element:D,event:S}},
{clickedVisualElement:a}))}}H&&H(S)}};
FTB=function(K){switch(K){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"}};
zvz=function(K){switch(K){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"}};
XbX=function(K){switch(K){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"}};
v9z=function(K){switch(K){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"}};
M5J=function(K,d){return _.DR(K.entities,"engagementToolbarStateEntityPayload",d)};
g9N=function(K){(K=_.RG(K))&&_.P7Y(K)};
_.P7Y=function(K){var d=_.te();d&&_.Gu(d,K)};
Ouz=function(K,d,f){_.ev(K,"yt-open-popup-action",[d,f||K])};
NYz=function(K,d){var f=_.Eb(K,"endpoint"),H=_.Eb(K,"action");return(f=H?H:f)&&d&&(f=d.navigationEndpointPopupMap[f])&&(K=_.T2(f,K),(f=_.Eb(K,"renderer"))&&d.supportedPopups.hasOwnProperty(f))?{openPopupAction:{popupType:d.popupTypeMap[f],popup:K}}:null};
YfN=function(K,d,f,H){if(H){var D;f=f==null?void 0:(D=f.data)==null?void 0:D.contents;(D=f instanceof Array&&f.length?f[0]:f)&&(f=_.Eb(D,"renderer"))&&H.supportedPopups.hasOwnProperty(f)&&(d.stopPropagation(),Ouz(K,{openPopupAction:{popupType:H.popupTypeMap[f],popup:D}}))}};
$IG=function(K,d,f,H){H=H===void 0?!1:H;var D=t5J(d);if(D){D.href&&ls(D.href);var S=d.button;S=S!==void 0?S===0&&!Ma(d):!Ma(d);D.data&&S&&o9O(K,D,d,f,H)}};
o9O=function(K,d,f,H,D){D=D===void 0?!1:D;var S=_.di("pbj_navigate_limit",-1)===0;E9S(d);_.eq().resolve(_.Zd(A3));var n=d.data;if(Object.keys(n).length!==0)if(!_.M("unplugged_web_disable_actions_for_cec_endpoint")&&_.P(n,_.DE))_.M("endpoint_behavior_command_executor_fix_killswitch")||(f.preventDefault(),f.stopPropagation()),_.fd(K,[n],K);else if(H=NYz(n,H))n.loggingUrls&&n.loggingUrls.forEach(function(a){a.baseUrl&&_.T7(a.baseUrl)}),f.preventDefault(),f.stopPropagation(),Ouz(K,H,d);
else{var u=hvz(0,d.data,f);if(K=d.getForm)K=K(),u.tempData=u.tempData||{},u.tempData=Object.assign({},u.tempData,K);K=_.qn(f);if(H=K.find(function(a){return!!a.visualElement}))u.createScreenConfig=u.createScreenConfig||{},u.createScreenConfig.clickedVisualElement=H.visualElement;
if(!S)if(f.preventDefault(),f.stopPropagation(),_.P(n,_.buO)&&!D&&_.V2.instance)_.V2.instance.resolveCommand(n,u);else if(_.M("kevlar_command_handler_formatted_string")&&!D&&_.V2.instance&&mIS(n))D=K.find(function(a){return!!a.is})||f.target,f={form:Object.assign({},u,{event:f,
element:D,originatingNode:d})},_.V2.instance.resolveCommand(n,f);else{n=_.qn(f);f=[];for(D=0;D<n.length;D++)(S=n[D].is)&&f.push(S);EAX({parents:f.join(","),text:d.innerText},function(){_.Zp(d,"yt-navigate",u)})}}};
lgS=function(K){if(K=t5J(K))E9S(K),avu(K.href)};
t5J=function(K){K=_.qn(K);for(var d,f=0;f<K.length;f++)if(d=K[f],d.tagName==="A"&&d.classList.contains("yt-simple-endpoint")){if(!d.data)break;return d}return null};
Ma=function(K){return K.shiftKey||K.altKey||K.metaKey||K.ctrlKey};
WTX=function(K,d){var f={itct:d.clickTrackingParams};_.M("kevlar_client_side_screens")&&(!_.P(d,_.IM)||_.M("kevlar_exclude_endpoint_killswitch"))&&(f.endpoint=JSON.stringify(d));_.M("enable_unknown_lact_fix_on_html5")&&_.eq().resolve(_.Zd(_.Pp))&&(f.lact=_.pA());iD5(f);_.xZ(K,f)};
E9S=function(K){K.href&&Object.keys(K.data).length!==0&&WTX(K.href,K.data)};
mIS=function(K){for(var d=_.y(Gez),f=d.next();!f.done;f=d.next())if(K[f.value])return!1;return!0};
_.gH=function(K,d){if(d){var f={};Aiz.forEach(function(H){H=TYN(d,H,"--yt-lightsource-");Object.assign(f,H)});
riS.forEach(function(H){H=TYN(d,H,"--yt-basic-");Object.assign(f,H)});
_.f8(K,f)}};
TYN=function(K,d,f){var H={};H[f+_.iw(d)]=K&&K[d]?_.hG(K[d]):"";return H};
_.Na=function(K,d,f){O5[K]||(O5[K]={});O5[K][d]=f};
_.YP=function(K){O5[K]||(O5[K]={});return O5[K]};
qf5=function(K){if(!K)return{};var d=K.foregroundTitleColor,f=K.backgroundColor;K=K.borderColor;var H="text";K?H="outline":f&&(H="filled");return{type:H,customColors:{color:d?_.hG(d):void 0,backgroundColor:f?_.hG(f):void 0,borderColor:K?_.hG(K):void 0}}};
LTS=function(K){var d=K.renderer;var f=K.element;var H=K.commandController;var D=K.onTapCallback;var S=K.skipCommandHandling;var n=K.overrides;var u=K.forceIcon;var a=K.forceModernIconButton;var R=K.forceDisabled;var F=K.isSubscribe===void 0?!1:K.isSubscribe;var z=K.isPressed===void 0?!1:K.isPressed;var v=K.useButtonSize===void 0?!1:K.useButtonSize;K=Q7z(d);F&&(K.style="mono",K.type="filled");u=!d.icon||!u&&d.text?d.icon?d.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:a?"icon-only":"icon-only-40";u==="icon-only-40"&&(K.type="text");var g;a=Object;F=a.assign;v=j7O(d,v);z=!!d.isSelected||!_.M("web_propagate_is_pressed_killswitch")&&!!z;var N=d.isSelected!==void 0;R=R===void 0?d.isDisabled:R;var h=d.text?_.Nd(d.text):void 0;var m,T,r,J=((m=d.accessibilityData)==null?void 0:(T=m.accessibilityData)==null?void 0:T.label)||((r=d.accessibility)==null?void 0:r.label);m=J?J:_.qQ(d.text);f=C7G(d,f,H,D,S);H=xIu(d);H!=null&&H.length?(H=_.hJ({innertubeCommand:M1S(H),
forceNewState:!0}),H=bz(H)?H:void 0):H=void 0;return F.call(a,{},K,v,{iconPosition:u},n,{focused:!1,toggled:z,toggleable:N,disabled:R,formattedButtonText:h,accessibilityLabel:m,onTap:f,aTagConfig:H},qf5((g=d.colorData)==null?void 0:g.basicColorPaletteData),{oneOffCustomTextWrap:d.oneOffCustomTextWrap})};
C7G=function(K,d,f,H,D){return function(S){var n=xIu(K);H(n,S);if(!D){n=_.y(n);for(var u=n.next();!u.done;u=n.next())XQ(u.value,{form:{element:d,event:S},commandController:f})}}};
xIu=function(K){var d=[];K.command&&d.push(K.command);K.serviceEndpoint&&d.push(K.serviceEndpoint);K.navigationEndpoint&&d.push(K.navigationEndpoint);return d};
j7O=function(K,d){if(d)switch(K.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(K.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Q7z=function(K){switch(K.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.th=function(K){return _.zh(function(){e6J()();return rj(K)},void 0,"Icv7j")};
om=function(K,d){return _.DR(K.entities,"likeStatusEntity",d)};
BYJ=function(K,d){return _.DR(K.entities,"likeCountEntity",d)};
_.Jiu=function(K,d){return _.DR(K.entities,"stringEntity",d)};
s7z=function(K,d){if(!K)return!1;var f,H=(f=_.P(K,_.y$))==null?void 0:f.signal;if(H&&d.signalEndpointMap)return!!d.signalEndpointMap[H];var D;if((f=(D=_.P(K,_.$P))==null?void 0:D.request)&&d.continuationEndpointMap)return!!d.continuationEndpointMap[f];for(var S in K)if(d.commandEndpointMap[S])return!0;return!1};
keo=function(K,d){if(d.streamingEndpointMap)for(var f in K)if(d.streamingEndpointMap[f]&&(K=d.streamingEndpointMap[f]))return K()};
wb5=function(K,d){var f,H=(f=_.P(K,_.y$))==null?void 0:f.signal;if(H&&d.signalEndpointMap&&(f=d.signalEndpointMap[H]))return f();var D;if((f=(D=_.P(K,_.$P))==null?void 0:D.request)&&d.continuationEndpointMap&&(D=d.continuationEndpointMap[f]))return D();for(var S in K)if(d.commandEndpointMap[S]&&(K=d.commandEndpointMap[S]))return K()};
ZuB=function(K){var d={"Content-Type":"application/json"};_.mD("EOM_VISITOR_DATA")?d["X-Goog-EOM-Visitor-Id"]=_.mD("EOM_VISITOR_DATA"):_.mD("VISITOR_DATA")&&(d["X-Goog-Visitor-Id"]=_.mD("VISITOR_DATA"));d["X-Youtube-Bootstrap-Logged-In"]=_.mD("LOGGED_IN",!1);_.mD("DEBUG_SETTINGS_METADATA")&&(d["X-Debug-Settings-Metadata"]=_.mD("DEBUG_SETTINGS_METADATA"));K!=="cors"&&((K=_.mD("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(d["X-Youtube-Client-Name"]=K),(K=_.mD("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(d["X-Youtube-Client-Version"]=
K),(K=_.mD("CHROME_CONNECTED_HEADER"))&&(d["X-Youtube-Chrome-Connected"]=K),(K=_.mD("DOMAIN_ADMIN_STATE"))&&(d["X-Youtube-Domain-Admin-State"]=K),_.lx("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(K=_.mD("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(d["X-YouTube-Lava-Device-Context"]=K));return d};
evB=function(K,d){d.watchNextResponse||d.reelItemWatchResponse?d.watchNextResponse?K.content=d.watchNextResponse:K.content=d.reelItemWatchResponse:d.playerResponse?K.player=d.playerResponse:d.reelWatchSequenceResponse&&(K.reelSequence=d.reelWatchSequenceResponse)};
_.E5=function(K){if(!K)return null;for(var d=[],f=0;f<K.textSegments.length;f++){var H=K.textSegments[f];H.text?d.push(H):H.emojiId&&d.push({emoji_id:H.emojiId})}return{text_segments:d}};
HCz=function(K,d,f,H,D,S,n){S=S===void 0?[]:S;var u=new _.hh;u.endpoint=f;if(!f)return _.EN(new _.X4("handle undefined endpoint",d.tagName)),u;var a=rJS(f);a.length&&(_.fd(K,a,d,H),u.actions=a);f.loggingUrls&&f.loggingUrls.forEach(function(F){F.baseUrl&&rR(F.baseUrl,F.attributionSrcMode)});
a=!_.M("web_skip_impression_click_killswitch")&&H&&H.impression;if(f.clickTrackingParams&&!pbG(f)&&!K_z(d)&&!a&&(a=_.cv(),!_.bh(a,d))){var R=d.getScreenLayer&&d.getScreenLayer();R?a.clickCommand(f,null,R):a.clickCommand(f,null)}a=!1;for(R=0;R<S.length;R++)if((0,S[R])(d,f,H)){a=!0;break}!a&&d1z(f)&&(u.ajaxPromise=fcB(K,d,f,H,D,n));return u};
K_z=function(K){var d;return(K=(d=K.data)==null?void 0:d.navigationEndpoint)&&!!K.clickTrackingParams};
pbG=function(K){var d=_.P(K,_.y$);if(d&&(d=d.signal)&&D1B.indexOf(d)>=0)return!0;for(var f in K)if(VnJ.indexOf(f)>=0)return!0;return!1};
d1z=function(K){var d;if(((d=_.P(K,_.y$))==null?void 0:d.signal)==="CLIENT_SIGNAL")return!1;for(var f in K)if(SlG.indexOf(f)>=0)return!1;K=Object.keys(K);return K.length===1&&K[0]==="loggingUrls"?!1:!0};
U1J=function(K,d,f,H,D,S,n){var u=_.md.instance;if(u&&_.lh(u,H))var a=_.Wp(u,H,D).then(function(F){return(F==null?0:F.data)?F:{data:F}});
else a=K.requestDataForServiceEndpoint(H,D),_.P(H,yOu)||_.P(H,nEY)||_.P(H,_.iCz)||_.P(H,cOY)||_.h3(new _.X4("No RequestBuilder for endpoint",H));var R=_.Gz();R.promise.thenCatch(function(){var F=_.Eb(H,"action")||_.Eb(H,"command")||_.Eb(H,"endpoint");F&&(F=H[F],F.hasOwnProperty("onFailureAction")?_.fd(d,[F.onFailureAction],f):F.hasOwnProperty("onFailureCommand")&&_.fd(d,F.onFailureCommand,f));a.cancel("Resolver promise rejected")});
a.then(function(F){if(F){var z=F.error;if(z){if(S&&S.onServerError)S.onServerError(H,F);R.reject(new _.X4("Response error",H,z))}else if(F=F.data)if(z=F.error){if(S&&S.onServerError)S.onServerError(H,F);R.reject(new _.X4("Returned error",H,z))}else{uZS(d,f,F,H);acX(F);if(z=TlN(F))for(var v=_.y(z),g=v.next();!g.done;g=v.next()){g=g.value;var N=_.eq().resolve(_.Zd(IcN))||Ah;if(!_.md.instance||!N.some(function(m){return!!_.P(H,m)})||_.M("kevlar_response_processor_allowlist_killswitch")){var h=N=void 0;
((h=_.P((N=g)==null?void 0:N.commandMetadata,_.B0))==null?0:h.sendPost)?_.dN(d,[g]):_.fd(d,[g],f)}}(v=_.P(F==null?void 0:F.frameworkUpdates,Tz))&&n&&n(v);if(S&&S.onSuccess)S.onSuccess(H,F);R.resolve(new _.rH(F,z))}}else R.reject(new _.X4("Invalid service endpoint provided",H))},function(F){R.reject(F)});
return R.promise};
acX=function(K){var d;(K=(d=_.P(K==null?void 0:K.onResponseReceivedCommand,_.RfX))==null?void 0:d.continuationItems)&&(K==null?void 0:K.length)===1&&_.P(K[0],F_p)&&_.YJ("so_r",void 0,"search_overview_answer")};
fcB=function(K,d,f,H,D,S){var n;return(n=d.getNetworkManager&&d.getNetworkManager()?d.getNetworkManager():_.eq().resolve(_.Zd(_.O1)))?U1J(n,K,d,f,H,D,S):_.vv("No network manager.")};
uZS=function(K,d,f,H){if(f=f.trackingParams||f.loggingDirectives&&f.loggingDirectives.trackingParams){var D;(_.P(H,zfN)||_.P(H,XVn)||_.P(H,vEX))&&H.clickTrackingParams?D=_.RG(H.clickTrackingParams):_.M("web_graft_to_parent_command")&&H.clickTrackingParams&&(D=_.RG(H.clickTrackingParams));var S;H=(S=d.getScreenLayer)==null?void 0:S.call(d);d=_.cv().graftServerVe(f,D,H);_.p1(K,"yt-store-grafted-ve-action",[d])}};
_.MnX=function(K){var d=new Image;return new _.ip(function(f,H){d.addEventListener("load",function(){f()});
d.addEventListener("error",function(){H()});
d.src=K})};
PkX=function(K){return!!K};
gEY=function(K){return!!K};
OCG=function(K,d,f){var H=K.rowIndex;H!==void 0&&_.p1(K.hostElement,"yt-section-reactive-dismissal",[H,d,f])};
_.qa=function(K,d,f){K=_.y(K);for(var H=K.next();!H.done;H=K.next()){H=H.value;if(H===d)break;for(var D=_.y(f),S=D.next();!S.done;S=D.next())if(S=S.value,H.tagName===S||!_.M("web_event_button_role_check_killswitch")&&H.role==="button"&&S==="BUTTON")return!0}return!1};
_.QC=function(K,d,f){K=_.y(K);for(var H=K.next();!H.done;H=K.next()){H=H.value;if(H===d)break;for(var D=_.y(f),S=D.next();!S.done;S=D.next())if(H.id===S.value)return!0}return!1};
NqX=function(K,d){if(!K&&!d)return"medium";K=Math.max(K||0,d||0);return K>=256?"large":K>=96?"medium":"small"};
YlY=function(K){switch(K){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.xP=function(){var K=_.eq().resolve(_.Zd(_.jC));return K?(K=K.getCurrentPage())?_.CK(K):null:null};
_.LK=function(){var K=_.xP();if(!K){var d=_.eq().resolve(_.Zd(_.jC)),f=d?typeof d:"no page manager";d=d?d.getCurrentPage():null;f=new _.X4("Player is missing when requested.",f,d?d.tagName:"no page");_.$7(f)}return K};
_.CK=function(K){return K&&K.getPlayer?K.getPlayer():null};
tnz=function(K,d){K={args:{raw_player_response:K}};d&&(K.args=Object.assign({},K.args,d));return K};
oEN=function(K){if(K.args){if(K.args.raw_player_response)return K.args.raw_player_response;if(K.args.player_response)return JSON.parse(K.args.player_response)}};
_.$1X=function(K,d){var f={url:"/watch?v="+K.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};K.playlistId&&(f.url+="&list="+K.playlistId);K.playerParams&&(f.url+="&pp="+K.playerParams);K={watchEndpoint:K,commandMetadata:{webCommandMetadata:f}};d&&(K.clickTrackingParams=d);return K};
hfX=function(){return EEu||!!_.T2("yt.player.Application")};
m1p=function(){return bCJ||!!document.querySelector("link#player-css")};
W_X=function(){function K(){EEu=!0;lcz.resolve()}
var d,f;return _.c(function(H){lcz||(lcz=new _.fU,hfX()?K():(d=document.createElement("script"),d.addEventListener("load",K),f=_.ts(_.mD("PLAYER_JS_URL")),_.Aa(d,f),document.head.appendChild(d)));return H.return(lcz.promise)})};
AOG=function(){function K(){bCJ=!0;GPG.resolve()}
if(!GPG)if(GPG=new _.fU,m1p())K();else{var d=document.createElement("link");d.id="player-css";d.addEventListener("load",K);var f=_.ts(_.mD("PLAYER_CSS_URL"));_.qD(d,f,"stylesheet");document.head.appendChild(d)}return GPG.promise};
Tqu=function(){return hfX()&&m1p()?Promise.resolve([]):Promise.all([W_X(),AOG()])};
rOX=function(K,d,f){var H={args:{}};K&&(H.args.raw_player_response=K);d&&(H.args.raw_watch_next_response=d);f&&(H.args=Object.assign({},H.args,f));return H};
Cko=function(K,d,f){var H=!1;H=H===void 0?!0:H;K=typeof K==="string"?_.Bp(document,K):K;var D=qlX+"_"+_.DL(K),S=QI5[D];if(S&&H)return jIO(d,f)?S.api.loadVideoByPlayerVars(d.args||null):S.loadNewVideoConfig(d),S.api;S=new Jh(K,D,d,f,void 0);QI5[D]=S;S.addOnDisposeCallback(function(){delete QI5[S.getId()]});
return S.api};
jIO=function(K,d){return d&&d.serializedExperimentFlags?d.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):K&&K.args&&K.args.fflags?K.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
x1p=function(){var K=new _.fU;K.resolved=!1;var d=K.resolve;K.resolve=function(f){K.resolved=!0;d(f)};
return K};
Bqz=function(K){var d={};L_J().install((d.document_disposed={callback:K},d))};
s5=function(K,d){if(!K&&Math.random()<=_.di("kevlar_unified_player_logging_threshold")){K=Error("sh`"+(d?d:"Unspecified error"));if(_.M("kevlar_unified_player_throw_errors"))throw K;_.h3(K)}};
_.JOY=function(){var K=_.T2("ytDebugData.callbacks");K||(K={},_.B6("ytDebugData.callbacks",K));return K};
kPz=function(K,d){var f=_.JOY();if(_.M("web_dd_iu")||sIG.includes(K))f[K]=d};
wVu=function(){return _.c(function(K){return K.return({isLeader:_.tAX(_.j3().getState()),c:_.mD("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.mD("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
ZCY=function(){var K;_.c(function(d){if(d.nextAddress==1)return kPz("APP_STATE",wVu),_.I(d,_.eq().resolve(_.kP),2);K=d.yieldResult;kPz("PI",function(){return _.c(function(f){return f.return(K.getVideoStats())})});
_.iQ(d)})};
efN=function(K){var d=_.C1(_.W0(_.Hu.location.href));K=_.C1(_.W0(K));return _.M("kevlar_clear_non_displayable_url_params")?d==wH(K):wH(d)==wH(K)};
wH=function(K){var d=_.pVG(K);K=K.slice(0);var f=["frags"];_.M("kevlar_hide_pp_url_param")&&f.push("pp");_.M("kevlar_hide_time_continue_url_param")&&f.push("time_continue");f=_.y(f);for(var H=f.next();!H.done;H=f.next())H=H.value,K=_.L1(_.C1(K),H);return _.C1(K)+(d?"#"+d:"")};
ZW=function(K,d){d=Number(d)*1E3;var f=Math.round((0,_.k_)()),H=f.toString();K={innertubeResponse:K,serverDateTimestampMs:H,lastModifiedTimestampMs:H,expireTimestampMs:(f+d).toString()};if(d=_.mD("INNERTUBE_CONTEXT_CLIENT_NAME"))K.clientName=d;return K};
dPo=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++KJo};
_.f3Y=function(){var K=_.YZ(),d=_.te();d&&K&&_.Tu(d,[K],!0)};
DPn=function(K){return K&&HSX.some(function(d){return K.includes(d)})};
cwu=function(K){var d=_.P(K,_.TE);if(!d)return!1;var f=d.url,H=d.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!f)return _.$7(Error("xh")),!1;if(d.target==="TARGET_NEW_WINDOW"){var D={};_.M("resolve_url_parent_tracking_params")&&(!_.JR(f)||sb(window.location.href,f))&&(D={endpoint:K,itct:K.clickTrackingParams});iD5(D);K=null;try{if(H){a:{var S=f,n=D;H=H===void 0?!1:H;n&&_.xZ(S,n);var u=_.Xa(S),a=_.Io(u);S!=a&&_.rF(Error("$f`"+S));S=a;try{if(H){a=S;a=vmN(a);ls(a);K=_.ha(window,a,"_blank",
"attributionsrc");break a}}catch(v){_.G2(v)}ls(S);K=_.ha(window,u,"_blank")}VMo(_.eq().resolve(Sen),K,f);return!0}}catch(v){_.$7(v)}_.xZ(f,D);D={target:"_blank",noopener:_.M("set_window_noopener_ks")&&!d.allowOpener};d=window;u=ao(f)?f:_.Xa(typeof f.href!="undefined"?f.href:String(f));K=self.crossOriginIsolated!==void 0;S="strict-origin-when-cross-origin";window.Request&&(S=(new Request("/")).referrerPolicy);a=D.noreferrer;if(K&&a&&S==="unsafe-url")throw Error("oe");S=a&&!K;a=D.target||f.target;H=
[];n=[];var R=!1;for(z in D){var F=D[z];switch(z){case "width":case "height":case "top":case "left":H.push(z+"="+F);break;case "target":break;case "noopener":case "noreferrer":F?n.push(z):(R=!0,n.push(z+"=false"));break;case "attributionsrc":H.push(z+(F?"="+F:""));break;default:H.push(z+"="+(F?1:0))}}var z=a!==void 0&&!["_blank","_self","_top","_parent",""].includes(a);z=EY()&&z;yw5&&K&&H.length===0&&n.length>0&&!z&&!R?(n.length===2&&(n=["noreferrer"]),_.ha(d,u,a,n[0]),K=nun()):(z=H.join(","),_.AN()&&
d.navigator&&d.navigator.standalone&&a&&a!="_self"?(z=_.RQ("A"),ND(z,u),z.target=a,S&&(z.rel="noreferrer"),((D=D.attributionsrc)||D==="")&&z.setAttribute("attributionsrc",D),D=document.createEvent("MouseEvent"),D.initMouseEvent("click",!0,!0,d,1),z.dispatchEvent(D),z=nun()):S?(z=_.ha(d,"",a,z),d=_.Io(u),z&&(z.opener=null,d===""&&(d="javascript:''"),d='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+pK(d)+'">',d=ta(d),(D=z.document)&&D.write&&(D.write(oo(d)),
D.close()))):((z=_.ha(d,u,a,z))&&D.noopener&&(z.opener=null),z&&D.noreferrer&&(z.opener=null)),K=z);VMo(_.eq().resolve(Sen),K,f);return!0}z=_.ny(f);z=DPn(z)||f==="https://studio.youtube.com/";d=!(!_.JR(f)||sb(window.location.href,f));D=f.indexOf("disable_polymer=1")>=0;if(d||D||z)ls(f),gN(),_.WW(f,void 0,void 0,window.top,iSN);else return _.h3(new _.X4("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",K)),!1;return!0};
_.I3z=function(K,d){d=d===void 0?0:d;if(!(_.P(K,uLz)||_.P(K,a3Y)||_.P(K,_.TE)&&_.P(K,_.TE).url))return!1;var f,H=(f=_.P(K,_.TE))==null?void 0:f.url;f=H?{externalLinkData:{url:H}}:null;return _.cv().clickCommand(K,f,d)};
UPu=function(K,d){return _.DR(K.entities,"subscriptionStateEntity",d)};
RYY=function(K,d){return _.DR(K.entities,"subscriptionNotificationStateEntity",d)};
FJY=function(K,d){return _.DR(K.entities,"upcomingEventReminderStateEntity",d)};
zYN=function(K,d){return _.DR(K.entities,"engagementToolbarSurfaceEntityPayload",d)};
X1J=function(K,d){return _.DR(K.entities,"triStateButtonStateEntityPayload",d)};
vuG=function(K,d){return _.DR(K.entities,"commerceCartCheckoutButtonEntity",d)};
_.MMz=function(K,d){return _.DR(K.entities,"playlistLoopStateEntity",d)};
PrN=function(K,d){return _.DR(K.entities,"commandEntity",d)};
OSY=function(K,d,f,H,D){D=D===void 0?{}:D;return function(S){var n,u;var a=((n=K.loggingDirectives)==null?0:(u=n.clientVeSpec)==null?0:u.uiType)?_.vp(K.loggingDirectives.clientVeSpec.uiType):void 0;D.clickedVisualElement||(D.clickedVisualElement=a);a=guX(K,d);f(a,S);a=_.y(a);for(n=a.next();!n.done;n=a.next()){n=n.value;u=H;var R=S,F=D;F.form?F.form.event=R:F.form={element:u,event:R};XQ(n,F)}}};
guX=function(K,d){var f=[];d?(K.toggledCommand&&f.push(K.toggledCommand),K.toggledServiceEndpoint&&f.push(K.toggledServiceEndpoint)):(K.defaultCommand&&f.push(K.defaultCommand),K.defaultServiceEndpoint&&f.push(K.defaultServiceEndpoint),K.defaultNavigationEndpoint&&f.push(K.defaultNavigationEndpoint));return f};
N$Y=function(K,d){var f=K.toggledStyle||K.style,H;switch((H=d?f:K.style)==null?void 0:H.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"}}};
_.Kt=function(){return _.c(function(K){return K.nextAddress==1?_.I(K,_.eq().resolve(_.kP),2):K.return(_.eq().resolve(YeN)())})};
_.dP=function(){return _.eq().resolve(YeN)()};
_.ft=function(){return od(function(){return{lottieEl:void 0}})};
tMX=function(K,d){return K.startsWith(d.uniqueId)};
ouz=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return _.I(H,_.Kt(),2);d=H.yieldResult;if((f=d)==null||!f.addEventListener)return H9(),H.return();d.addEventListener("onCueRangeEnter",K);_.iQ(H)})};
$Pz=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return _.I(H,_.Kt(),2);d=H.yieldResult;if((f=d)==null||!f.removeEventListener)return H9(),H.return();d.removeEventListener("onCueRangeEnter",K);_.iQ(H)})};
EuB=function(K){var d,f,H,D,S;_.c(function(n){if(n.nextAddress==1)return _.I(n,_.Kt(),2);d=n.yieldResult;if((f=d)==null||!f.addCueRange)return H9(),n.return();H=_.y(K.timings);for(D=H.next();!D.done;D=H.next())S=D.value,d.addCueRange(K.uniqueId+"-"+S,S/1E3,(S+100)/1E3);_.iQ(n)})};
hYu=function(K){var d,f,H,D,S;_.c(function(n){if(n.nextAddress==1)return _.I(n,_.Kt(),2);d=n.yieldResult;if((f=d)==null||!f.removeCueRange)return H9(),n.return();H=_.y(K.timings);for(D=H.next();!D.done;D=H.next())S=D.value,d.removeCueRange(K.uniqueId+"-"+S);_.iQ(n)})};
bS5=function(){var K,d,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,_.Kt(),2);K=H.yieldResult;if((d=K)==null||!d.getPlayerState)return H9(),H.return();f=K.getPlayerState();return H.return(f===2)})};
H9=function(){_.h3(new _.X4("Smartimation player does not exist or is corrupted"))};
mPz=function(){try{var K;return(K=window.CSS)!=null&&K.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(d){return _.h3(new _.X4("Smartimation CSS.supports threw an error")),!1}};
qeJ=function(K,d,f,H,D){var S=K.playlistId?l3z:WJ5;d=d();f=f();D=!!K.videoId&&D()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.IO(d))return GBS({data:K,actionType:S,disabled:D},f);if(K.videoId&&H())return Awp({data:K,actionType:S,disabled:D});switch(d){case "TRANSFER_STATE_UNKNOWN":return Awp({data:K,actionType:S,disabled:D});case "TRANSFER_STATE_FAILED":return K.videoId?T$S({data:K,actionType:S,disabled:D}):rwX({data:K,actionType:S,disabled:D});case "TRANSFER_STATE_COMPLETE":return rwX({data:K,
actionType:S,disabled:D});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return GBS({data:K,actionType:S,disabled:D},f);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return K.videoId?T$S({data:K,actionType:S,disabled:D}):Awp({data:K,actionType:S,disabled:D});default:return Awp({data:K,actionType:S,disabled:D})}};
QNX=function(K,d){var f=K.onTapCommand,H=_.$A(f);if(K.videoId&&_.P(H,_.DS))return _.P(H,_.DS).action=d,f;K.playlistId&&_.P(H,_.VF)&&(_.P(H,_.VF).action=d);return f};
Awp=function(K){var d=K.data;var f=K.actionType;K=K.disabled;return{text:jNO,iconType:"OFFLINE_DOWNLOAD",onTap:QNX(d,f.ACTION_ADD),disabled:K}};
GBS=function(K,d){var f=K.data;var H=K.actionType;K=K.disabled;var D="OFFLINE_DOWNLOAD";d>=0&&d<=.1?D="OFFLINE_DOWNLOADING_ZERO":d>.1&&d<=.3?D="OFFLINE_DOWNLOADING_TWENTY":d>.3&&d<=.5?D="OFFLINE_DOWNLOADING_FORTY":d>.5&&d<=.7?D="OFFLINE_DOWNLOADING_SIXTY":d>.7&&d<1?D="OFFLINE_DOWNLOADING_EIGHTY":d===1&&(D="OFFLINE_PIN");return{text:CrS,iconType:D,onTap:QNX(f,H.ACTION_REMOVE_WITH_PROMPT),disabled:K}};
rwX=function(K){var d=K.data;var f=K.actionType;K=K.disabled;return{text:xPz,iconType:"OFFLINE_PIN",onTap:QNX(d,f.ACTION_REMOVE_WITH_PROMPT),disabled:K}};
T$S=function(K){var d=K.data;var f=K.actionType;K=K.disabled;return{text:LJG,iconType:"OFFLINE_DOWNLOAD",onTap:QNX(d,f.ACTION_RETRY),disabled:K}};
kBX=function(K){var d=B$o;JwJ.push(K);sNu||(d(function(){for(var f=_.y(JwJ),H=f.next();!H.done;H=f.next())H=H.value,H();JwJ.length=0;sNu=!1}),sNu=!0)};
B$o=function(K){Promise.resolve().then(K)};
Si=function(K){K=_.y(nPp(K));var d=K.next().value,f=K.next().value,H=!1;_.tR(function(){return function(){H=!0}});
return[d,function(D){kBX(function(){H&&!_.M("cow_prevent_state_setter_after_cleanup_killswitch")||f(D)})}]};
w15=function(){var K=_.y(Si(!1)),d=K.next().value,f=K.next().value;return function(){f(!d)}};
ZSS=function(K){return od(function(){return{value:K}})};
eYJ=function(K,d){var f=ZSS(K),H=ZSS(d);YM(function(){f.value=K},[K]);
YM(function(){H.value=d},d&&d.length>=1?d:[void 0]);
var D=od(function(){return{value:void 0}});
if(K!==f.value||H.value!==d||D.value===void 0)D.value=rj(K,d);var S=w15();_.tR(function(){function n(){var a=rj(f.value,d);a!==D.value&&(D.value=a,S())}
var u=_.TC().subscribe(n);n();return u});
return D.value};
_.yF=function(K,d){var f=e6J();return _.zh(function(){f();return rj(K,[_.hc(d)||""])},void 0,"HaeHEc")};
p1J=function(K){var d=_.yF(_.oO,function(){return K().videoId}),f=_.yF(_.$o,function(){return K().playlistId});
return function(){return K().videoId?d:K().playlistId?f:_.y(_.cC("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
KIn=function(K){var d=_.yF(EV,function(){return K().videoId}),f=_.yF(_.YIn,function(){return K().playlistId});
return function(){return K().videoId?d:K().playlistId?f:_.y(_.cC(0,void 0,"K4tgOc")).next().value}};
dWG=function(K){var d=_.yF(_.lDo,function(){return K().videoId});
return function(){return K().videoId?d:_.y(_.cC(!1,void 0,"Oaxwcf")).next().value}};
fio=function(K){var d=_.yF($VG,function(){return K().videoId});
return function(){return K().videoId?d:_.y(_.cC("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
HiY=function(){return{}};
DWS=function(){var K,d;return(d=(K=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:K())!=null?d:!1};
SBz=function(K,d){K=K===void 0?V85:K;switch(d.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},K,{isOpen:d.payload});default:return K}};
njn=function(K,d){K=K===void 0?y7N:K;switch(d.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},K,{isAllowed:d.payload});default:return K}};
c7z=function(K,d){K=K===void 0?iio:K;switch(d.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},K,{errorMessage:d.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},K,{title:d.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},K,{privacy:d.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},K,{isDisabled:d.payload});default:return K}};
aiG=function(K,d){K=K===void 0?uAB:K;switch(d.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},K,{isOpen:d.payload});default:return K}};
UWX=function(K,d){K=K===void 0?IiS:K;switch(d.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},K,{isFullscreen:d.payload});case "SET_NAVIGATION_BUTTON":var f=d.payload.targetId,H=Object.assign({},K.navigationButtons);H[f]=d.payload.button;return Object.assign({},K,{navigationButtons:H});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},K,{topPanelId:d.payload});case "SET_SECONDARY_HEADER":return f=d.payload.panelId,H=Object.assign({},K.secondaryHeader),H[f]=d.payload.secondaryHeader,
Object.assign({},K,{secondaryHeader:H});default:return K}};
XQo=function(){return y8(Object.assign({},{entities:Shp,voiceSearch:vfB,engagementPanel:UWX,bottomSheet:SBz,cinematicSetting:njn,shorts:of5,drawerLayout:aiG,createPlaylist:c7z,locationCollection:R9B,reportChannel:FIn,reportForm:z9X},$po))};
vjY=function(K,d){_.oc.addLowPriorityJob(function(){var f,H,D;return _.c(function(S){switch(S.nextAddress){case 1:return _.HF(S,2),_.I(S,$bu(),4);case 4:return _.I(S,fetch(K),5);case 5:return f=S.yieldResult,_.I(S,f.json(),6);case 6:H=S.yieldResult;VC.set(K,H);requestAnimationFrame(function(){d(H)});
_.Ts(S,0);break;case 2:D=_.n7(S),_.h3(D),_.iQ(S)}})})};
M8Y=function(K){var d={animationConfig:{},listeners:{}},f=function(){K(!0)};
d.listeners.data_failed=f;d.listeners.error=f;d.listeners.data_ready=function(){K(!1)};
return d};
Oio=function(K){var d=K.model;var f=K.subscribed;var H=K.isOverlay;var D=K.element;var S=K.commandController;var n=K.notificationState;if(f){var u,a;var R=(d==null?void 0:(u=d.buttonStyle)==null?void 0:u.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:d==null?void 0:(a=d.unsubscribeButtonContent)==null?void 0:a.buttonText}else{var F;R=d==null?void 0:(F=d.subscribeButtonContent)==null?void 0:F.buttonText}a:{var z;switch(d==null?void 0:(z=d.buttonStyle)==
null?void 0:z.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":u="S";break a;default:u="M"}}a:if(H)H="overlay";else switch(d.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":H="overlay";break a;default:H="mono"}a:if(f)var v="tonal";else switch((v=d.buttonStyle)==
null?void 0:v.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":v="tonal";break a;default:v="filled"}return{style:H,type:v,state:d.disableSubscribeButton?"disabled":"active",size:u,focused:K.focused,toggled:f,accessibilityLabel:P0B(d,f,n),buttonText:R,iconPosition:d.disableNotificationBell?"none":"leading-trailing",onTap:gjn(d,f,D,S),disableTextEllipsis:!!K.disableTextEllipsis}};
gjn=function(K,d,f,H){return function(D){if(d){var S;var n=K.disableNotificationBell?_.$A(K==null?void 0:(S=K.unsubscribeButtonContent)==null?void 0:S.onTapCommand):_.$A(K==null?void 0:K.onShowSubscriptionOptions)}else{var u;n=_.$A(K==null?void 0:(u=K.subscribeButtonContent)==null?void 0:u.onTapCommand)}n&&XQ(n,{form:{element:f==null?void 0:f.value},commandController:H});D.stopPropagation()}};
P0B=function(K,d,f){if(d){if(K==null?0:K.disableNotificationBell){var H;return K==null?void 0:(H=K.unsubscribeButtonContent)==null?void 0:H.accessibilityText}switch(f){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var D;return K==null?void 0:(D=K.bellAccessibilityData)==null?void 0:D.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var S;return K==null?void 0:(S=K.bellAccessibilityData)==null?void 0:S.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var n;return K==null?void 0:(n=
K.bellAccessibilityData)==null?void 0:n.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var u;return K==null?void 0:(u=K.bellAccessibilityData)==null?void 0:u.disabledLabel;default:var a;return K==null?void 0:(a=K.unsubscribeButtonContent)==null?void 0:a.accessibilityText}}else{var R;return K==null?void 0:(R=K.subscribeButtonContent)==null?void 0:R.accessibilityText}};
NKo=function(K){if(K){switch(K){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":K="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":K="NOTIFICATIONS_OFF";break;default:K="NOTIFICATIONS_NONE"}return K}};
YBJ=function(K,d,f){f.subscribed!==d&&((f=f.key)&&_.q7(_.nt("subscriptionStateEntity",f,{key:f,subscribed:d})),K.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:d})),d||_.ev(K,"yt-unsubscribe-action"))};
ojY=function(K){K=_.P(_.$A(K),_.iX);var d,f,H,D;return(D=_.P(K==null?void 0:(d=K.panelLoadingStrategy)==null?void 0:(f=d.inlineContent)==null?void 0:(H=f.sheetViewModel)==null?void 0:H.content,t8X))==null?void 0:D.listItems};
$Wn=function(K,d){if(K.onShowSubscriptionOptions&&d&&(K=ojY(K.onShowSubscriptionOptions),K!=null&&K.length)){var f=NKo(d);K.forEach(function(H){H=_.P(H,_.c9);var D,S,n,u,a=H==null?void 0:(D=H.leadingImage)==null?void 0:(S=D.sources)==null?void 0:(n=S[0])==null?void 0:(u=n.clientResource)==null?void 0:u.imageName;H&&a&&(H.isSelected=a===f)})}};
Eju=function(K,d,f,H){d&&f?K.style.width=f+"px":!d&&H&&(K.style.width=H+"px")};
h9z=function(K,d,f){var H;(H=K.lottieEl)==null||H.goToAndPlay(0);var D;(D=d.lottieEl)==null||D.goToAndPlay(0);_.uX(_.oc,function(){var S;(S=f.lottieEl)==null||S.goToAndPlay(0)},300)};
aY=function(){return _.eq().resolve(_.Zd(bip))||{}};
mWO=function(K){return typeof K==="function"};
_.IY=function(K){Object.keys(K);var d=function(f,H){var D=d.mapping||K;if(!f)return _.U(_.dF,null);if(Array.isArray(f)&&(f=liu(D,d,f),Array.isArray(f))){if(!f.length)return _.U(_.dF,null);if(f.length>1){for(var S=!1,n=!1,u=[],a={},R=0;R<f.length;a={data$jscomp$1832:void 0},R++)if(a.data$jscomp$1832=f[R],a.data$jscomp$1832){var F=WIG(a.data$jscomp$1832,D),z=F.mappingEntry;F=F.rendererName;z&&F&&(z&&(!mWO(z)&&GNX(z)&&(n=!0),!mWO(z)&&z.asyncId||(S=!0)),u.push(A7o(a.data$jscomp$1832,z,F,d,H)))}return n&&
!S?_.U(_.dF,null,TKY()):_.U(_.dF,null,u)}f=f[0]}if(!f)return _.U(_.dF,null);f=liu(D,d,[f])[0];if(!f)return _.U(_.dF,null);S=WIG(f,D);D=S.mappingEntry;S=S.rendererName;return D&&S?_.U(_.dF,null,A7o(f,D,S,d,H)):_.U(_.dF,null)};
d.mapping=K;return d};
_.r7X=function(K){var d=void 0,f;for(f in K)if(K.hasOwnProperty(f)){d=f;break}return d};
liu=function(K,d,f){var H,D=(H=aY().preProcessOptions)==null?void 0:H.idomOptions;if(!D)return f;aY();return D.preProcessPropsIdom(K,f,d.triggerRerender)};
WIG=function(K,d){return(K=_.r7X(K))?{mappingEntry:d[K],rendererName:K}:{mappingEntry:void 0,rendererName:void 0}};
A7o=function(K,d,f,H,D){if(!d)return _.U(_.dF,null);var S={};D&&D[f]&&(S=Object.assign({},D[f]));K[f]!==void 0&&(S.data=K[f]);if(mWO(d))return d.debugName||(d.debugName=f),_.U(d,S);d.asyncId&&(H.pendingIdsMap=H.pendingIdsMap||{},H.pendingIdsMap[f]=d.asyncId);return d.templateFn?d.templateFn(S):GNX(d)?TKY():_.U(_.dF,null)};
GNX=function(K){var d;return(d=K.showPlaceholder)!=null?d:aY().defaultShowPlaceholder};
TKY=function(){var K=aY().placeholder;return K()};
qBN=function(K,d){d=d===void 0?{shouldPersist:!0}:d;return{useUpdatableData:function(f,H){var D=[],S=_.y(_.am(function(){var R=f();if(H!=null&&H.length&&D){var F=D.length>0;for(var z=!1,v=0;v<H.length;v++){var g=H[v]();F&&g!==D[v]&&(z=!0);D[v]=g}F=z}else F=!1;if(F)_.Uk.remove(a());else if(F=_.Uk.get(a()))return F;return R})),n=S.next().value,u=S.next().value,a=_.zh(function(){return K(f())},void 0,"VFraLb");
_.ol(function(){if(a()!=null){RY.set(a(),[n,u,!1]);var R=a();_.$F(function(){RY.delete(R)})}});
return[n,function(R){u(R);d.shouldPersist&&_.Uk.set(a(),R)}]},
getData:function(f){var H;return(H=RY.get(K(f)))==null?void 0:H[0]()},
updateData:function(f,H){f=K(f);var D=RY.get(f);if(!D)return!1;var S=_.y(D);D=S.next().value;S=S.next().value;H=H(D());S(H);d.shouldPersist&&_.Uk.set(f,H);return!0},
useUpdatableDataIdom:function(f,H){var D=K(f),S=_.Uk.get(D),n=_.y(Si(S!=null?S:f)),u=n.next().value,a=n.next().value,R=$M(S!=null?S:f);YM(function(){if(D!=null)return RY.set(D,[function(){return R.value},
function(F){a(F);R.value=F},
RY.has(D)]),_.oc.addJob(function(){_.FN(_.oc,function(){var F=RY.get(D);F&&(F[2]=!1)},0)},8),function(){var F;
((F=RY.get(D))==null?0:F[2])||RY.delete(D)}},[D]);
YM(function(){u!==f&&(a(f),R.value=f)},H?[].concat(_.Me(H),[D]):[D]);
return[u,a]}}};
Qpp=function(K){var d=_.y(_.cC(!0,void 0,"bKtO6d")),f=d.next().value;d.next();return function(){var H=Id(K.children());return _.U(_.X,{cond:f,then:function(){return H},
else:K.fallback})}()};
_.z1=function(K){var d=jpN(K),f=d.data,H=d.mapping,D=d.wrapper;d=d.pendingFallback;var S=function(){return C0o(_.hc(f))},n=function(){var u=S(),a=[];
u=_.y(u);for(var R=u.next();!R.done;R=u.next()){var F=void 0;R=R.value;var z=void 0;for(F in R)if(!(!R).hasOwnProperty(F)){z=F;break}(F=z)&&a.push(F)}return a};
return K.data?_.U(Qpp,{fallback:d},function(){return _.U(_.v_,{each:n},function(u,a){var R=D?function(z){return D(function(){return H[u](z,a)},F,a)}:function(z){return H[u](z,a)};
R.debugName||(R.debugName=String(u));if(!H[String(u)])return document.createComment("");var F=xWJ(S,u,a);return _.U(R,{data:F})})}):_.U(_.dF,null)};
jpN=function(K){var d=K.targetId||LIX(K.children);if(!K.data||!d||_.M("mweb_new_replaceables_killswitch"))return Object.assign({},K,{mapping:K.children,wrapper:void 0});var f="stamper-"+BKX++,H=function(){var u;return(u=_.hc(K.targetId))!=null?u:f};
d=_.y(J7J(function(){var u=C0o(K.data());u.targetId=H;return u})).next().value;
var D=Object.assign({},aY().replaceableMapping,K.children);if(K.replacementWrapper){var S=D.notificationTextRenderer,n=D.notificationMultiActionRenderer;S&&(D.notificationTextRenderer=function(u,a){return K.replacementWrapper(S({data:u.data},a))});
n&&(D.notificationMultiActionRenderer=function(u,a){return K.replacementWrapper(n({data:u.data},a))})}return Object.assign({},K,{data:d,
mapping:D,wrapper:function(u,a,R){return Ign({targetId:H,stamperIndex:R},u)}})};
xWJ=function(K,d,f){var H;return _.zh(function(){var D=K()[f()];if(D)H=D[d];else return _.h3(new _.X4("Stamper failed to find "+String(d)+" at index "+f()+" of data array of length "+(K().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),H;return D[d]},void 0,"DHuMIe")};
LIX=function(K){K=_.y(Object.keys(K));for(var d=K.next();!d.done;d=K.next())if(d=d.value,spp.includes(d)||kNO.includes(d)||wQz.includes(d))return!0;return!1};
C0o=function(K){return K?Array.isArray(K)?K:[K]:[]};
Zio=function(K){K=_.P(K,_.XN);return(K==null?void 0:K.iconName)&&!(K==null?0:K.title)};
K7J=function(K,d,f){var H;return _.U(_.dF,null,K==null?void 0:(H=K.actions)==null?void 0:H.map(function(D){return _.U("div",{class:function(){var S={"yt-flexible-actions-view-model-wiz__action":!0};S["yt-flexible-actions-view-model-wiz__action--row-action"]=d;S["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(Zio(D))var n=!0;else if(n=_.P(D,_.v9),(n==null?0:n.isToggled)&&Zio(n==null?void 0:n.toggledButtonViewModel)||(n==null||!n.isToggled)&&Zio(n==null?void 0:n.defaultButtonViewModel))n=
!0;else{var u;n=((u=_.P(D,e9B))==null?0:u.playlistId)?!0:!1}S=(S["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=n,S["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=f,S);return _.nK(S)}},pQO([D],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!d}}))}))};
dGB=function(K){var d=K.layout===1,f,H=((f=K.data)==null?void 0:f.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";f={};H=(f["yt-flexible-actions-view-model-wiz"]=!0,f["yt-flexible-actions-view-model-wiz--inline"]=!d,f["yt-flexible-actions-view-model-wiz--scrollable"]=H,f);var D,S;return _.U("yt-flexible-actions-view-model",{class:_.nK(K.className,H)},(D=K.data)==null?void 0:(S=D.actionsRows)==null?void 0:S.map(function(n){if(d){var u;return _.U("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
K7J(n,d,!((u=K.data)==null||!u.respectActionIntrinsicWidth)))}return K7J(n,d,!1)}))};
fXz=function(K){return!(K==null||!K.iconName||(K==null?0:K.title))};
H$X=function(K){var d=_.P(K.data.toggleButtonViewModel,_.v9),f,H=(f=K.data.dislikeEntityKey)!=null?f:"",D=eYJ(om,[H]);d=Object.assign({},d,{isToggled:D?D.likeStatus==="DISLIKE":d.isToggled});return _.U("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.U(_.MT,{data:d,buttonShapeOverrides:K.buttonShapeOverrideables,onToggle:function(S){D&&S!==(D.likeStatus==="DISLIKE")&&D.key&&_.q7(_.P9("likeStatusEntity",D.key,{likeStatus:S?"DISLIKE":"INDIFFERENT",hadUserInteraction:S}))}}))};
VjB=function(K){var d=_.M("web_supports_animations_api"),f=_.P(K.data.toggleButtonViewModel,_.v9),H,D,S,n,u=_.y(Si({numberText:(n=(H=K.likeCountEntity)==null?void 0:(D=H.likeCountIfIndifferent)==null?void 0:D.content)!=null?n:"",numberValue:Number((S=K.likeCountEntity)==null?void 0:S.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),a=u.next().value,R=u.next().value,F,z,v,g;H=_.y(Si({numberText:(g=(F=K.likeCountEntity)==null?void 0:(z=F.likeCountIfLiked)==null?void 0:z.content)!=null?
g:"",numberValue:Number((v=K.likeCountEntity)==null?void 0:v.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));F=H.next().value;var N=H.next().value;z=_.y(Si());var h=z.next().value,m=z.next().value,T;z=(T=K.data.likeStatusEntityKey)!=null?T:"";var r,J;T=(J=(r=K.likeCountEntity)==null?void 0:r.key)!=null?J:"";var L=eYJ(om,[z]),fB=eYJ(BYJ,[T]);r=i3u(function(){return(L==null?void 0:L.likeStatus)==="LIKE"},[L]);
YM(function(){var w,yO=fB&&((w=fB.likeCountIfIndifferent)==null?void 0:w.content)!==a.numberText;if(!h&&yO){var FX,NJ;R({numberText:(NJ=fB==null?void 0:(FX=fB.likeCountIfIndifferent)==null?void 0:FX.content)!=null?NJ:"",numberValue:Number(fB==null?void 0:fB.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var $z,hN;N({numberText:(hN=fB==null?void 0:($z=fB.likeCountIfLiked)==null?void 0:$z.content)!=null?hN:"",numberValue:Number(fB==null?void 0:fB.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[fB]);
f=Object.assign({},f,{isToggled:r});d=d&&K.likeCountEntity;return _.U("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.U(_.MT,{data:f,buttonShapeOverrides:K.buttonShapeOverrideables,animatedTextPropsDefault:d?a:void 0,animatedTextPropsToggled:d?F:void 0,onToggle:function(w){DG5(w,L,h,m)},
style:function(){return K.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
DG5=function(K,d,f,H){f&&_.oc.cancelJob(f);f=_.oc.addLowPriorityJob(function(){H(void 0)},5E3);
H(f);d&&K!==(d.likeStatus==="LIKE")&&d.key&&_.q7(_.nt("likeStatusEntity",d.key,{key:d.key,likeStatus:K?"LIKE":"INDIFFERENT",hadUserInteraction:K}))};
Sgz=function(K,d,f,H){f&&_.oc.cancelJob(f);f=_.oc.addLowPriorityJob(function(){H(void 0)},5E3);
H(f);d&&K!==(d.likeStatus==="LIKE")&&d.key&&_.q7(_.nt("likeStatusEntity",d.key,{key:d.key,likeStatus:K?"LIKE":"INDIFFERENT",hadUserInteraction:K}))};
i$5=function(K){var d,f=_.P((d=K.data)==null?void 0:d.likeButtonViewModel,_.gP),H;d=_.P((H=K.data)==null?void 0:H.dislikeButtonViewModel,_.Ok);var D,S=(D=eYJ(om,[(f==null?void 0:f.likeStatusEntityKey)||""]))!=null?D:f==null?void 0:f.likeStatusEntity;H=i3u(function(){var n=K.data,u;n=(n==null?void 0:(u=n.timedAnimationData)==null?void 0:u.animationTiming)||[];return{uniqueId:"like-dislike",timings:n,enabled:(S==null?void 0:S.likeStatus)==="INDIFFERENT"&&n.length>0,experimentEnabled:n.length>0}},[K.data,
S]);return _.U("segmented-like-dislike-button-view-model",{class:_.nK(K.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.U(NT,{settings:H},_.U("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},f?_.U(yUS,{data:f,likeCountEntity:K.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,d?_.U(nyY,{data:d,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
cUS=function(K,d){var f=Cd(K)||{layerNode:d};f.layerNode=d;$hX(K,f);K.getScreenLayer=function(){return YB(f.layerNode)}};
u5B=function(K){var d;K=K.parentNode;for(var f;K&&((d=Cd(K))==null||!d.isRenderer)&&!((f=K.polymerController)!=null?f:K).isRenderer_;)K=K.parentNode||K.host;if(d=K)return Cd(d)};
aXX=function(K){if(K){js.delete(K);var d=_.eq().resolve(k7);EXX(K,d)}};
UGX=function(K,d,f){if(f===void 0?0:f){if(f=K.getAttribute("client-ve-type"),d.data&&!d.disableReactiveLogging||f)_.b8(function(){IXn(K,_.hc(d.data))}),_.$F(function(){return void aXX(K)})}else typeof d.data!=="function"&&IXn(K,d.data)};
IXn=function(K,d){RUN++;F7J(K,d)&&_.oc.addJob(function(){_.FN(_.oc,function(){if(F7J(K,d)&&K.ownerDocument.documentElement===document.documentElement&&K){var f;if(K.getAttribute("layer")){var H=f=Number(K.getAttribute("layer")),D=Cd(K);D?D.layerNode.layer=H:cUS(K,new zUX(H));(H=u5B(K))&&(D=Cd(K))!=null&&(D.layerNode.parent=H.layerNode)}else if(f=Cd(K))f=YB(f.layerNode);else{f=YB;H=new zUX;if(D=u5B(K))H.parent=D.layerNode;cUS(K,H);f=f(H)}f!=null||(f=0);H=K.getAttribute("client-ve-type");D=Number(H);
var S=!1;H=!1;var n=Cd(K),u;if((u=n)&&!(u=n[tv]!==d)&&(u=D)){var a;u=((a=js.get(K))==null?void 0:a.clientVeType)===void 0}u&&(n[tv]=d,S=H=n.isRenderer=!0);js.has(K)&&(js.get(K).clientVeType=D);K.visualElement&&(H=!0);if(_.M("wiz_next_ld_fix_client_ve_spec")){var R;a=((R=_.P(d==null?void 0:d.rendererContext,_.uz))==null?void 0:R.loggingDirectives)||(d==null?void 0:d.loggingDirectives)}else a=d==null?void 0:d.loggingDirectives;a&&a.clientVeSpec&&(R=XXX(_.nZ(),K),R=_.vyG(_.cv(),a,R||void 0,f))&&(K.visualElement=
R);!K.visualElement&&D&&S&&(K.veType=D,R=void 0,_.M("wiz_next_client_ve_parent_fix")&&(R=XXX(_.nZ(),K)),R=_.iz(_.cv(),K,R,f),K.visualElement=R);H&&(R=_.eq().resolve(k7),l_u(K,{data:d,observer:R,layer:f,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
F7J=function(K,d){return(d==null?0:d.trackingParams)||(d==null?0:d.loggingDirectives)||_.P(d==null?void 0:d.rendererContext,_.uz)||K.getAttribute("client-ve-type")?!0:!1};
P5o=function(K){return _.M("cow_logging_in_component_wrapper")?function(d){UGX(d,K,!0)}:Mju};
Mju=function(){};
_.gyn=function(K,d){return _.DR(K.entities,"accountLinkStatusEntity",d)};
O$J=function(K,d){return _.DR(K.entities,"hatsSurveyEntity",d)};
Nez=function(K,d){return _.DR(K.entities,"hatsSurveyStateEntity",d)};
YgO=function(K,d){return _.DR(K.entities,"quantityIncrementerEntity",d)};
hUJ=function(K){var d=K.data;var f=K.className===void 0?"":K.className;var H=K.setMinWidth;K=K.forceIconOnly;var D=_.Co(P5o({data:d}));H=H?"ytwAccountLinkButtonViewModelHostMinWidth":"";var S=_.yF(_.gyn,function(){var z;return(z=_.hc(d).accountLinkStatusEntityKey)!=null?z:""}),n=_.yF(_.gyn,function(){var z;
return(z=_.hc(d).accountLinkStatusSecondaryEntityKey)!=null?z:""}),u=function(){if(!_.M("web_account_link_secondary_killswitch")){var z,v;
return((z=S())==null?void 0:z.linked)||((v=n())==null?void 0:v.linked)}var g;return(g=S())==null?void 0:g.linked};
_.ol(function(){var z=S();if(z){var v=tjp(new oyX,$Gn(new Eyz,!!z.linked));_.Kt().then(function(g){g&&(g.setAccountLinkState(_.eS(v.JSC$10069_serializeBinary(),4)),g.updateAccountLinkingConfig(!!z.linked))})}});
var a=function(){return _.P(_.hc(d).toggleButtonViewModel,_.v9)};
_.j7("yt-signal-action-show-account-link-dialog",function(){if(a()){var z=u()?a().toggledButtonViewModel:a().defaultButtonViewModel;z=_.P(z,_.XN);var v;if((v=S())==null?0:v.isWarning){v=_.P(_.hc(d).warningButtonViewModel,_.XN);if(!v){_.rF(Error("yh"));return}z=v}var g;(v=_.$A((g=z)==null?void 0:g.onTap))&&_.V$([v],D.value)}else _.rF(Error("zh"))});
var R=function(){var z=a();return Object.assign({},z,{isToggled:u()})},F=K?{iconPosition:"icon-only"}:{};
return _.U("account-link-button-view-model",{class:_.SC("ytwAccountLinkButtonViewModelHost",function(){return _.hc(f)},H),
el:D,"button-renderer":!0},_.U("div",null,_.U(_.X,{cond:function(){var z;if((z=S())==null?0:z.isWarning)return(z=_.P(_.hc(d).warningButtonViewModel,_.XN))||_.rF(Error("yh")),z},
then:function(z){return _.U(_.oY,{data:z,buttonOverrides:F})},
else:function(){return _.U(_.MT,{data:R,buttonShapeOverrides:F})}})))};
b$X=function(K){switch(K){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
mGu=function(K){switch(K){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}};
lXz=function(K){switch(K){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.GmO=function(K){var d=_.di("web_generic_client_event_wait_period ",0);d||(d=3E5);var f=W7p.get(K);!_.M("enable_web_client_experiment_event_timeout_killswitch")&&f&&(0,_.k_)()-f<d||(W7p.set(K,(0,_.k_)()),_.t3("genericClientExperimentEvent",{eventType:K}))};
AUz=function(K){switch(K){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
TeS=function(K){if(!K)return"";var d,f=(d=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:d(),H;if(!f&&((H=K.vibrantColorPalette)==null?0:H.iconInactiveColor))return bs(K.vibrantColorPalette.iconInactiveColor,"1");var D;return f&&((D=K.darkColorPalette)==null?0:D.iconInactiveColor)?bs(K.darkColorPalette.iconInactiveColor,"1"):K.color?bs(K.color,"1"):K.sampledThumbnailColor?(K=K.sampledThumbnailColor,"rgba("+K.red+","+K.green+","+K.blue+");"):""};
_.$B=function(K,d){if(!K.includes("DATE_PLACEHOLDER"))return K;var f=new Date(0);f.setUTCSeconds(d);return K.replace("DATE_PLACEHOLDER",rUo(f))};
_.Ek=function(K){K=_.qgY(K);return _.M("web_watch_enable_single_column_grid_view")?K:!1};
_.qgY=function(K){return K.watch.isWatchNarrowWidth};
QeJ=function(K,d,f){return function(H){var D=K.command;D&&(XQ(D,{form:{element:f}}),d([D],H))}};
C5z=function(K,d,f,H,D){return function(S){var n=jeo(K,f);n&&XQ(n,{form:{element:H},commandController:D});d&&d.stopPropagation&&S.stopPropagation()}};
jeo=function(K,d){if(K.signInEndpoint&&!_.M("web_subscribe_sign_in_endpoint_killswitch"))return K.signInEndpoint;if(d){if(K.serviceEndpoints)return K.serviceEndpoints[1];if(K.onUnsubscribeEndpoints)return K.onUnsubscribeEndpoints[0]}else{if(K.serviceEndpoints)return K.serviceEndpoints[0];if(K.onSubscribeEndpoints)return K.onSubscribeEndpoints[0]}};
xGO=function(K,d){var f,H,D,S;d=d&&((f=K.unsubscribeAccessibility)==null?void 0:(H=f.accessibilityData)==null?void 0:H.label)||((D=K.subscribeAccessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label);return K.longSubscriberCountText?[d,_.qQ(K.longSubscriberCountText)].filter(function(n){return n}).join(" "):d};
hv=function(K,d){return d||(K==null?0:K.isChannelDelegate)?"disabled":"active"};
L7N=function(K,d){var f;switch((f=K.style)==null?void 0:f.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:hv(K)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:hv(K)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:hv(K,!0)};case "OVERLAY":return d?{style:"overlay",type:"tonal",state:hv(K)}:{style:"overlay",type:"filled",state:hv(K)};default:return d?{style:"mono",type:"tonal",state:hv(K)}:{style:"mono",type:"filled",state:hv(K)}}};
Be5=function(K,d){var f=K.map(function(H){return H.toString()});
return _.cp(function(H){if(f.includes(H.key)){d&&H.preventDefault();var D;(D=H.currentTarget)==null||D.click()}})};
_.JUG=function(){return Be5(["Enter"])};
_.sen=function(){return Be5(["Enter"," "],!0)};
_.bX=function(K){if(K.composedPath)return K.composedPath();if(!K.__composedPath){for(var d=[],f=K.target;f;)d.push(f),f=f.parentNode;d.push(window);K.__composedPath=d}return K.__composedPath};
_.kmO=function(K,d,f){K=_.y(K);for(var H=K.next();!H.done;H=K.next()){H=H.value;if(H===d)break;for(var D=_.y(f),S=D.next();!S.done;S=D.next())if(S=S.value,H.tagName===S||H.role==="button"&&S==="BUTTON")return!0}return!1};
Z$N=function(K,d){var f,H=(f=d.observer)!=null?f:_.eq().resolve(k7);if(K){f=wXG(K);var D=[];d.showOption&&D.push(H.observe(K,function(){d.visibilityCallback(!0)},d.showOption));
d.hideOption&&D.push(H.observe(K,function(){d.visibilityCallback(!1)},d.hideOption));
d.prescanOption&&d.prescanCallback&&D.push(H.observe(K,function(){d.prescanCallback()},d.prescanOption));
var S;f.visibilityMonitorKeys=((S=f.visibilityMonitorKeys)!=null?S:[]).concat(D)}};
wXG=function(K){var d;return(d=K.polymerController)!=null?d:K};
_.lX=function(K){return!!_.mR(K)};
_.KCn=function(K,d){var f=UIu();YM(function(){var H=K.value;if(H)return eUp(H,d),pXz(H,d,void 0,void 0,void 0,f)},[d])};
_.W9=function(K,d,f,H,D,S){var n=UIu();_.ol(function(){var u=K.value;u&&(eUp(u,d(),S),u=pXz(u,d(),f,H,D,n),_.$F(u))})};
eUp=function(K,d,f){var H=dcB(d),D=foN(d);d=H&&HPS;var S=D&&Dcn;(H||D)&&Z$N(K,{visibilityCallback:function(n){var u=_.eq().resolve(_.pQ);n&&H?u.resolveCommand(H,{form:{element:f?K:void 0},disableClickTracking:!0}):!n&&D&&u.resolveCommand(D,{form:{element:f?K:void 0},disableClickTracking:!0})},
showOption:d,hideOption:S})};
pXz=function(K,d,f,H,D,S){var n=new Map;if(d=_.mR(d)){var u;K=(H==null?void 0:(u=H.onTap)==null?void 0:u.value)||K;f=Vao(d,K,f==null?void 0:f.onTap,D,S);K.addEventListener("click",f);n.set("click",f)}return function(){for(var a=_.y(n),R=a.next();!R.done;R=a.next()){var F=_.y(R.value);R=F.next().value;F=F.next().value;K.removeEventListener(R,F)}}};
_.mR=function(K){var d;return(K=(d=_.P(K,STz))==null?void 0:d.onTap)&&_.$A(K)};
dcB=function(K){var d;return(K=(d=_.P(K,STz))==null?void 0:d.onVisible)&&_.$A(K)};
foN=function(K){var d;return(K=(d=_.P(K,STz))==null?void 0:d.onHidden)&&_.$A(K)};
Vao=function(K,d,f,H,D){var S=function(u){_.eq().resolve(_.pQ).resolveCommand(K,u)},n=function(u){H&&_.kmO(_.bX(u),d,H)||S(u.target?{form:{element:u.target,
sourceData:K,mutationContext:D}}:void 0)};
f&&(n=function(u){f(u,S)});
return n};
yZX=function(K){switch(K){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}};
nqG=function(K){var d=K.numAvatarsInCluster;switch(K.clusterSize){case "small":return d===2?22:18;case "40":return d===2?24:22;default:return d===2?24:20}};
iP5=function(K,d){return function(f){var H=Object.keys(d);_.ol(function(){if(K()){for(var D=_.y(H),S=D.next();!S.done;S=D.next())S=S.value,f.addEventListener(S,d[S]);_.$F(function(){for(var n=_.y(H),u=n.next();!u.done;u=n.next())u=u.value,f.removeEventListener(u,d[u])})}})}};
cZ5=function(K){switch(nqG(K)){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""}};
upz=function(K){switch(K){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""}};
aop=function(K){switch(nqG(K)){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""}};
IoS=function(K){switch(K){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""}};
UcN=function(K){switch(K){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}};
Ra5=function(K){return K==="medium"||K==="48"||K==="large"||K==="extra-large"||K==="extra-extra-large"||K==="giant"};
FCJ=function(K){return!!((K==null?0:K.includes(3))||(K==null?0:K.includes(5)))};
Xjo=function(K){return{size:zaN(K.data.avatarImageSize),onTap:K.onTap,decorations:K.decorations||[],badgeText:K.badgeText,accessibilityText:K.accessibilityText,avatarButtonCustomClassName:K.avatarButtonCustomClassName,clusterLayoutConfig:K.clusterLayoutConfig}};
zaN=function(K){switch(K){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"}};
vqB=function(K){switch(K){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}};
MaY=function(K){switch(K){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
PCz=function(K){var d=K.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",f,H=K.avatars&&K.avatars.length>0?(f=_.P(K.avatars[0],_.G1))==null?void 0:f.avatarImageSize:"AVATAR_SIZE_UNKNOWN";f=vqB(H)||0;if(d){var D,S=(D=K.avatarClusterSize)!=null?D:"AVATAR_SIZE_M";d=vqB(S);var n,u,a=Math.min((u=(n=K.avatars)==null?void 0:n.length)!=null?u:0,4),R;return{avatars:((R=K.avatars)==null?void 0:R.slice(0,4))||[],avatarSizeInPx:f,avatarStackStyle:{width:d+"px",height:d+"px",position:"relative"},avatarStyle:function(z){var v=
nqG({clusterSize:zaN(S),numAvatarsInCluster:a,avatarIndex:z});var g=vqB(S);a===3&&z===2?(g=(g-v)/2,g=(_.mD("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*g):g=void 0;return{position:"absolute",top:a===2&&z===1||a===3&&z===2||a===4&&z>=2?"0":void 0,bottom:a===2&&z===0||a>2&&z<2?"0":void 0,left:a===2&&z===1||a>2&&(z===1||z===3)?"0":void 0,right:a<=3&&z===0||a===4&&(z===0||z===2)?"0":void 0,transform:g?"translateX("+g+"px)":void 0,width:v+"px",height:v+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(z){return{clusterSize:zaN(K.avatarClusterSize),numAvatarsInCluster:a,avatarIndex:z}},
avatarButtonCustomClassName:void 0}}var F;return{avatars:((F=K.avatars)==null?void 0:F.slice())||[],avatarSizeInPx:f,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:MaY(H),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
gqu=function(K,d,f){return function(){XQ(K,{form:{element:d},commandController:f})}};
OPz=function(K){switch(K){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
NfN=function(K){switch(K){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
YTp=function(K){var d=K.data;K=K.hidden===void 0?!1:K.hidden;var f={};K={class:_.nK("yt-page-indicator-view-model",(f["yt-page-indicator-view-model__indicator--hidden"]=!d.indicatorCount,f)),hidden:K};if(d.indicatorCount){f=[];for(var H=0;H<d.indicatorCount;H++){var D={};D=_.nK("yt-page-indicator-view-model__indicator",(D["yt-page-indicator-view-model__indicator--selected"]=d.selectedIndex===H,D));f.push(_.U("div",{class:D}))}d=_.U(_.dF,null,f)}else d=_.U(_.dF,null);return _.U("yt-page-indicator-view-model",
K,d)};
oqn=function(K){K&&(taX(K)?delete K.inlinePlayerData:"inlinePlaybackEndpoint"in K&&delete K.inlinePlaybackEndpoint)};
$co=function(K){if("accessibilityText"in K)return K.accessibilityText||"";if("title"in K){var d,f,H;return((d=K.title)==null?void 0:(f=d.accessibility)==null?void 0:(H=f.accessibilityData)==null?void 0:H.label)||""}if("accessibility"in K){var D,S;return((D=K.accessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label)||""}return""};
taX=function(K){return"inlinePlayerData"in K};
Av=function(K){return new EqX(K)};
_.haY=function(K,d,f,H,D,S){var n=function(R){R.preventDefault()},u=function(){var R=K.value;
if(R)return(R._data=d)?(R.addEventListener("touchstart",O_z,{passive:!0}),R.addEventListener("click",Yrz),d.clickTrackingParams&&(R.params={itct:d.clickTrackingParams}),t1p(R,d),ND(R,oaB(d)||"")):R.addEventListener("click",n),function(){d?(R.removeEventListener("touchstart",O_z,{passive:!0}),R.removeEventListener("click",Yrz)):R.removeEventListener("click",n)}},a=function(){var R=K.value;
if(R){var F=_.hJ({innertubeCommand:d,elementsCommand:f,forceNewState:H,stopPropagation:S});if(F)return R._data=F._data,F["aria-haspopup$"]&&R.setAttribute("aria-haspopup",F["aria-haspopup$"].toString()),F["force-new-state$"]&&R.setAttribute("force-new-state",F["force-new-state$"].toString()),F.href$&&ND(R,F.href$),F.rel$&&(R.rel=F.rel$),F.role$&&R.setAttribute("role",F.role$),F.target$&&(R.target=F.target$),R.params=F.params,F.onclick&&R.addEventListener("click",F.onclick),F.onpointerdown&&R.addEventListener("onpointerdown",
F.onpointerdown),function(){F.onclick&&R.removeEventListener("click",F.onclick);F.onpointerdown&&R.removeEventListener("onpointerdown",F.onpointerdown)}}};
YM(D?a:u,[d,f])};
bP5=function(K){var d=K.children;var f=K.className;var H=K.dir;var D=K.style;var S=K.role;var n=K.ariaSelected;var u=K.ariaLabel;var a=K.ariaHidden;var R=K.ariaLabelledby;var F=K.ariaDescribedby;var z=K.command;var v=K.elementsCommand;var g=K.forceNewState;var N=K.isPlaceholder;var h=K.tabIdentifier;var m=K.target;var T=K.tabIndex;var r=K.useATagConfig;var J=K.stopPropagation;K=_.Co();_.haY(K,z,v,g,r,J);return _.U("a",{el:K,"on:click":_.cp(function(){return J===!1}),
class:f,style:D,dir:H,role:S?S:z?void 0:"group","aria-hidden":a?!0:void 0,"aria-label":u,"aria-labelledby":R,"aria-describedby":F,"aria-selected":n,tabindex:T!==void 0?T:void 0,target:m,"tab-identifier":h,"force-new-state":g?!0:void 0,"is-placeholder":N?!0:void 0},d)};
mcz=function(K){var d=K.data;K=_.cp(function(){var D=_.P(d.onTap,_.oG);D&&_.eq().resolve(_.pQ).resolveCommand(D);return!1});
var f={sources:[{url:d.thumbnailUrl,width:120,height:90}]},H=d.rating&&d.ratingA11yLabel&&d.reviewsCount&&d.reviewsCountA11yLabel;return _.U("place-data-view-model",null,d.placeName&&d.placeCategory?_.U("div",{class:"yt-spec-place-data-view-model-shape","on:click":K},_.U(_.jV,{data:f,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.U(bP5,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.P(d.onTap,_.oG),forceNewState:!0,useATagConfig:!0},
_.U("h3",{class:"yt-spec-place-data-view-model-shape__name",title:d.placeName},d.placeName)),_.U("div",{class:"yt-spec-place-data-view-model-shape__metadata"},H?_.U("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.U("span",{class:"score",title:d.ratingA11yLabel},d.rating),_.U("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.U(_.U5,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.U("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:d.reviewsCountA11yLabel},d.reviewsCount)):_.U("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.U("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.U("span",{class:"category",title:d.placeCategory},d.placeCategory)))):null)};
loO=function(K){return function(d){K&&(K.thumbnailElRef=d.thumbnailElRef,K.thumbnail=d.thumbnail,K.thumbnailOverlays=d.thumbnailOverlays,K.thumbnailSize=d.thumbnailSize)}};
WCn=function(K){var d;return(d=K.sharedUi)==null?void 0:d.animatedThumbnailEnabled};
Gap=function(K){var d;return(d=K.sharedUi)==null?void 0:d.inlinePreviewEnabled};
_.AZu=function(K){var d;return(d=K.sharedUi)==null?void 0:d.currentPageSubType};
TfX=function(K){switch(K){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
qT5=function(K){var d=_.y(_.cC(!1,void 0,"RIOonf")),f=d.next().value,H=d.next().value;_.tR(function(){var D=K==null?void 0:K();if(D){var S=_.eq().resolve(_.Zd(rZX));if(S){var n={triggeringElement:D,onDwellTriggeredFn:function(){H(!0)},
onDwellEndFn:function(){H(!1)}};
S.registerElement(n);_.$F(function(){S.unregisterElement(n)})}}});
return f};
Q5z=function(K,d,f){f?f(d):_.me(d,K.target?{form:{element:K.target}}:void 0)};
_.T1=function(K,d,f,H){_.ol(function(){var D=K.value;if(D){var S=new Map,n,u=(n=d())==null?void 0:n.onTap;u&&(n=function(a){a:{var R=a.composedPath();R=_.y(R);for(var F=R.next();!F.done;F=R.next()){F=F.value;if(F===D)break;if(F.className.indexOf("HostIsClickableAdComponent")>=0||F.tagName==="A".toString()||F.tagName==="BUTTON".toString()){R=!0;break a}}R=!1}R||(_.M("enable_square_image_components_ui_web_with_float_button")?_.Zp(K.value,"yt-navigate",{endpoint:_.$A(u)}):Q5z(a,u,f))},(H==null?0:H())||
_.M("enable_web_home_top_landscape_image_layout_level_click")?(D.addEventListener("tap",n),S.set("tap",n)):(D.addEventListener("click",n),S.set("click",n)));
_.$F(function(){for(var a=_.y(S),R=a.next();!R.done;R=a.next()){var F=_.y(R.value);R=F.next().value;F=F.next().value;D.removeEventListener(R,F)}})}})};
j5J=function(K,d){var f,H=(f=K.interaction)==null?void 0:f.onTap;if(K=_.hJ({elementsCommand:H,forceNewState:!0,skipOnClick:!0}))return K.onclick=function(D){vaz(D)&&(D.preventDefault(),H&&Q5z(D,H,d))},bz(K)?K:void 0};
CCG=function(K){switch(K){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
xcS=function(K){switch(K){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"}};
LCY=function(K){switch(K){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"}};
_.Bfz=function(K){return _.M("rich_grid_enable_dynamic_offset")&&K?Math.max(Math.round((K-_.di("rich_grid_dynamic_offset_anchor_width",1300))/100*_.di("rich_grid_dynamic_offset_offset_per_100",10)),_.di("rich_grid_dynamic_offset_lower_bound",-60)):0};
JZz=function(K,d){switch(d){case 4:return 16;case 1:return K<528?16:K<1024?32:48;case 2:return(K>=528?16:8)/2;case 3:return(K<528?16:K<1024?32:48)+(K>=528?16:8)/2;default:return 0}};
s5p=function(K){var d=K.originalContainerWidth;var f=K.sizing;var H=K.standardUnit;if(K.isCompactList&&d<528)return 1;switch(f){case "STANDARD":return H;case "COMPACT":return H+1;case "EXTRA_COMPACT":return _.M("web_responsive_extra_compact_2x")?H*2:_.M("web_responsive_current")?H===1?2:H%2===0?H/2*3:H+2:H<4?H*2:Math.ceil(H*3/2);case "MINI":return H>1?H*2:3;default:return H}};
wjG=function(K){var d=K.containerWidth;var f=K.peek;var H=K.gutter;var D=K.numItems;K=K.ignoreMaxWidthLimit;d=f?Math.max((d-f-H*D)/D,0):Math.max((d-H*(D-1))/D,0);return K?d:Math.min(d,kaN)};
_.rP=function(K){var d=K.containerWidth;var f=K.hasPeek;var H=K.sizing;var D=K.marginSettings;var S=K.isCompactList;var n=K.enableFullBleedForSingleCol;var u=K.standardUnitMinWidth;H=H||"STANDARD";f=!!f;K=d>=528?16:8;var a=f?d>=528?48:24:0;D=JZz(d,D);var R=Math.max(d-D*2,0);u=_.M("kevlar_disable_min_width_override")?void 0:u;u=Math.min(Math.max(Math.floor((R-a+K)/((u!=null?u:ZPO)+_.Bfz(d)+K)),1),6);var F=(n=!!n&&u===1)||u===1&&H!=="STANDARD";f=f||F?R:Math.min(R,(kaN+K)*u-K);H=s5p({originalContainerWidth:d,
sizing:H,standardUnit:u,isCompactList:S});return{itemWidth:wjG({containerWidth:f,peek:a,gutter:K,numItems:H,ignoreMaxWidthLimit:F}),gutter:K,maxContainerWidth:f,numItems:H,margin:n?0:D,contentMargin:JZz(d,1),typographyBump:wjG({containerWidth:f,peek:a,gutter:K,numItems:u,ignoreMaxWidthLimit:F})>400&&!(S&&d<528),standardUnit:u}};
eap=function(K){switch(K){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.pju=function(K){if(K){var d;if((d=K.responsiveContainerConfiguration)==null?0:d.responsiveSize)return eap(K.responsiveContainerConfiguration.responsiveSize);if(K.layoutSizing)switch(K.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"}}};
K6X=function(K){if(K.fullbleed)return 1;switch(K.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
D6o=function(K,d,f,H,D,S,n,u){a:switch(K){case 4:S=!!(S&&S<100);break a;default:S=!1}a:switch(K){case 3:case 4:var a=H==="LOCKUP_CONTENT_TYPE_CHANNEL"||H==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:a=!1}a:switch(K){case 5:var R=!0;break a;case 4:R=!1;break a;default:R=!1}a:if(K===4&&H==="LOCKUP_CONTENT_TYPE_SOURCE")var F=1;else switch(K){case 3:F=1;break a;default:F=0}return{isOverlay:R,isCard:d6z(H,n),sizing:d!=null?d:"STANDARD",typographyBump:f!=null?f:!1,isTiny:S,isCentered:a,isCollection:f$z(H),
arrangement:F,addMarginForFullbleed:K===1&&H!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:K===1&&H==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:HcB(H,D,u),disableRounding:K===5||d6z(H,n)||K===1&&H==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:f$z(H)?2:0,useLegacyTypography:!(u==null||!u.useLegacyTypography),useRichGridLegacyTypography:!(u==null||!u.useRichGridLegacyTypography)&&!_.M("web_enable_typography_bump")}};
f$z=function(K){switch(K){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
d6z=function(K,d){if(d&&K==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(K){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
HcB=function(K,d,f){if(d&&(f==null||!f.alwaysRespectPodcastShowAspectRatio||K!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(K){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}};
VgJ=function(K){switch(K){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"}};
niB=function(K,d,f){a:switch(K.badgeStyle){case "BADGE_OVERLAY":var H=!0;break a;default:H=!1}return{type:d?16:SqG(K.badgeStyle),brNzRatingBadgeType:yKX(K.badgeStyle),text:K.badgeText,icon:K.iconName,isOverlay:H,modern:f||_.M("web_modern_badge_view_model")}};
SqG=function(K){switch(K){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
yKX=function(K){switch(K){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}};
cKG=function(K){var d=K.data?niB(K.data,!!K.workaroundShortsIsThumbnailBadge,K.modern):void 0;return _.U("yt-badge-view-model",{class:_.nK("yt-badge-view-model-wiz",K.class)},sm(d==null?void 0:d.brNzRatingBadgeType,function(){return _.U(icz,{data:d})}),sm(d&&!d.brNzRatingBadgeType,function(){return _.U(_.qT,{data:d})}))};
_.QF=function(K){if(K){var d;return((d=_.eq().resolve(_.Zd(_.AJ)))==null?0:d())?K.darkThemeImage:K.image}};
I$Y=function(K,d,f,H,D,S){if(D&&S&&d==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:D,height:S};if(!f)return{};D=f.size;f=f.allowFullWidth;if(d==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&f)return{fullWidth:!0};if(D===void 0)return{};switch(K){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:D,height:D};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:D,height:1/uSB*D};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:D*
a$J,height:D};default:return(H==null?0:H.height)&&(H==null?0:H.width)?H.width/H.height>1?{maxWidth:D*a$J}:{maxWidth:D}:{maxWidth:D}}};
U6X=function(K){var d;return K&&((d=_.QF(K.themedImage))!=null?d:K.image)};
RzY=function(K){var d;return K==null?void 0:(d=K.sources)==null?void 0:d[0]};
zzN=function(K,d){var f,H;return!!((K==null?0:(f=K.byline)==null?0:f.hideAvatar)&&((H=_.P(d,F6X))==null?void 0:H.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
Xf5=function(K,d){var f,H;return!!((K==null?0:(f=K.byline)==null?0:f.addPadding)&&((H=_.P(d,F6X))==null?void 0:H.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
viz=function(K,d,f,H){var D={},S=(D["yt-content-metadata-view-model-wiz__delimiter"]=!0,D["yt-content-metadata-view-model-wiz__delimiter--standalone"]=H,D);return sm(d-1>f,function(){return _.U("span",{class:_.nK(S),"aria-hidden":!0},K)})};
PEB=function(K,d){return _.U(_.ji,{text:K.text,linkInheritColor:!0,className:MgG(d),userInput:!0})};
OcS=function(K){var d=K.metadataPart;var f=K.isOverlay;var H=K.useMediumText;var D=K.hideAvatar;var S=1;d.maxLines!==void 0&&(S=d.maxLines);return _.U(_.dF,null,sm(d.avatarStack,function(){return giB(d.avatarStack,{avatarStackViewModel:{isOverlay:f,useMediumText:H,hideAvatar:D}})}),sm(d.text,function(){var n=S;
return _.U(_.dF,null,d.tooltip?_.U("span",{title:d.tooltip,role:"tooltip"},PEB(d,n)):PEB(d,n))}))};
MgG=function(K){switch(K){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
NoX=function(K){var d=K.metadataRow;var f=K.isInline;var H=K.delimiter;var D=K.isOverlay;var S=K.useMediumText;var n=K.extensions;var u=zzN(n==null?void 0:n.lockupMetadata,d);K=Xf5(n==null?void 0:n.lockupMetadata,d);n=!(!((n==null?0:n.lockupMetadata)&&d.badges)||d.metadataParts);var a={};K=(a["yt-content-metadata-view-model-wiz__metadata-row"]=!0,a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=f,a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
K,a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=n,a);var R,F;return _.U("div",{class:_.nK(K)},(R=d.badges)==null?void 0:R.map(function(z){return _.U("div",{class:"yt-content-metadata-view-model-wiz__badge"},giB(z))}),(F=d.metadataParts)==null?void 0:F.map(function(z,v){return _.U(_.dF,null,OcS({metadataPart:z,
isOverlay:D,useMediumText:S,hideAvatar:u}),viz(H,d.metadataParts.length,v,!1))}),sm(d.isSpacerRow&&!f,function(){return _.U("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
YqO=function(K){var d=K.className;var f=K.data;var H=K.layout===void 0?0:K.layout;var D=K.isOverlay===void 0?!1:K.isOverlay;var S=K.useMediumText;var n=K.extensions;K=_.Co();var u=H===0;H={};H=(H["yt-content-metadata-view-model-wiz"]=!0,H["yt-content-metadata-view-model-wiz--inline"]=u,H["yt-content-metadata-view-model-wiz--tappable"]=_.lX(f.rendererContext),H["yt-content-metadata-view-model-wiz--medium-text"]=S,H);_.KCn(K,f.rendererContext);return _.U("yt-content-metadata-view-model",{class:_.nK(d,
H),el:K},sm(f.metadataRows,function(){return f.metadataRows.map(function(a,R){return _.U(_.dF,null,NoX({metadataRow:a,isInline:u,delimiter:f.delimiter,isOverlay:D,useMediumText:S,extensions:n}),sm(u&&!a.isSpacerRow,function(){return viz(f.delimiter,f.metadataRows.length,R,!0)}))})}))};
tgX=function(K){switch(K){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
oio=function(K){switch(K.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"}}};
$6X=function(K){var d=_.AZu(_.TC().getState())||"";return K?K+d:""};
Eiu=function(K){switch(K){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
bc5=function(K){var d=_.y(_.cC(void 0,void 0,"BIquNb")),f=d.next().value,H=d.next().value,D=_.y(_.cC(void 0,void 0,"eR0GH"));d=D.next().value;var S=D.next().value;D=_.y(_.cC(void 0,void 0,"UmkP0"));var n=D.next().value,u=D.next().value;return{touchFeedbackEvents:{pointerUpEvent:f,pointerDownEvent:d,pointerLeaveEvent:n},touchFeedbackOnPointerUp:_.cp(function(a){if(hzO(_.bX(a)))return!1;H(a);S(void 0);u(void 0);return!0}),
touchFeedbackOnPointerDown:_.cp(function(a){K==null||K(a);if(hzO(_.bX(a)))return!1;S(a);H(void 0);u(void 0);return!0}),
touchFeedbackOnPointerLeave:_.cp(function(a){hzO(_.bX(a))||(u(a),S(void 0),H(void 0))})}};
hzO=function(K){var d=["BUTTON".toString()];K=_.y(K);for(var f=K.next();!f.done;f=K.next()){f=f.value;for(var H=_.y(d),D=H.next();!D.done;D=H.next())if(f.tagName===D.value)return!0}return!1};
m6Y=function(K){switch(K){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"}};
l$p=function(K,d){var f;return qrY(K,((f=K.content)==null?void 0:f.length)||0,!d)};
W6B=function(K,d){d=l$p(K,d);var f,H;return(((f=K.content)==null?void 0:f.length)||0)>(((H=d.content)==null?void 0:H.length)||0)};
GRX=function(K){var d=K.isTruncated;var f=K.isAbsoluteButton;var H=K.lineHeight;var D=K.contentRef.value,S=K.placeholderTruncationTextRef.value,n=K.truncationTextRef.value;K=K.appDirection==="rtl";if(D&&S){var u=S.offsetLeft;K&&(u=D.offsetWidth-S.offsetWidth-S.offsetLeft);if(d){d=S.offsetWidth;S=D.offsetWidth;var a=f?S-d-70:u-70;H="linear-gradient(\n      to top, transparent 0%,\n      transparent "+H+"px,\n      #000 "+H+"px,\n      #000 100%), linear-gradient(\n      to "+((K?"left":"right")+",\n      #000 0px,\n      #000 "+
a+"px,\n      transparent "+(f?S-d:a+70)+"px)");D.style.setProperty("-webkit-mask-image",H);D.style.setProperty("mask-image",H)}else D.style.setProperty("-webkit-mask-image",""),D.style.setProperty("mask-image","");f?K?(n.style.setProperty("left","0"),n.style.setProperty("right","unset")):(n.style.setProperty("left",""),n.style.setProperty("right","0")):K?(n.style.setProperty("left","unset"),n.style.setProperty("right",u+"px")):(n.style.setProperty("left",u+"px"),n.style.setProperty("right","unset"))}};
AKz=function(K,d,f,H,D,S,n){var u=_.Co(),a=_.Co(),R=_.Co(),F=l$p(K,D),z=_.eq().resolve(_.rl),v=_.y(Si(W6B(K,D))),g=v.next().value,N=v.next().value,h=$M(null);YM(function(){function m(){if(u.value&&a.value&&R.value){var J=u.value;J.scrollHeight-J.offsetHeight>1?(N(!0),H||GRX({isTruncated:!0,isAbsoluteButton:!0,lineHeight:f,contentRef:u,placeholderTruncationTextRef:a,truncationTextRef:R,appDirection:z})):(J=W6B(K,D),N(J),H||GRX({isTruncated:J,isAbsoluteButton:!1,lineHeight:f,contentRef:u,placeholderTruncationTextRef:a,
truncationTextRef:R,appDirection:z}))}}
var T,r;(T=h.value)==null||(r=T.stop)==null||r.call(T);T=new _.Ct(m,17);m();h.value=T},[K.content,
d,f,z,H,S,n,D]);_.tR(function(){var m=function(){var r,J;(r=h.value)==null||(J=r.fire)==null||J.call(r)};
if(window.ResizeObserver){var T=new ResizeObserver(m);T.observe(u.value);return function(){var r,J;(r=h.value)==null||(J=r.stop)==null||J.call(r);T.disconnect()}}window.addEventListener("resize",m);
return function(){var r,J;(r=h.value)==null||(J=r.stop)==null||J.call(r);window.removeEventListener("resize",m)}});
return{isTruncated:g,displayText:F,contentRef:u,placeholderTruncationTextRef:a,truncationTextRef:R}};
ToN=function(K){return _.U("button",{"aria-disabled":!0,disabled:!0,class:K.className,el:K.elRef,style:"line-height: "+K.lineHeight+"px;"},_.U(_.ji,{text:K.text}))};
rKz=function(K){var d=K.text;var f=K.alwaysShowTruncationText;var H=K.truncationText;var D=K.onExpandClick;var S=K.lineHeight===void 0?16:K.lineHeight;var n=K.maxLines===void 0?2:K.maxLines;var u=K.disableTextMask===void 0?!1:K.disableTextMask;var a=K.textStyle===void 0?"default":K.textStyle;var R=K.accessibilityLabel===void 0?"":K.accessibilityLabel;var F=K.textSize===void 0?"small":K.textSize;var z=_.cp(function(){return void(D==null?void 0:D())}),v=AKz(d,n,S,u,K.alwaysTruncateAtMaxLines===void 0?
!1:K.alwaysTruncateAtMaxLines,F,a),g=v.isTruncated;
K=v.displayText;d=v.contentRef;var N=v.placeholderTruncationTextRef;v=v.truncationTextRef;var h={};f=_.nK((h["truncated-text-wiz__absolute-button"]=!u,h["truncated-text-wiz__bottom-button"]=u,h["truncated-text-wiz--hidden"]=!(f||g),h));u={};a=_.nK((u["truncated-text-wiz"]=!0,u["truncated-text-wiz--overlay"]=a==="overlay",u["truncated-text-wiz--medium-text"]=F==="medium",u["truncated-text-wiz--large-text"]=F==="large",u["truncated-text-wiz--primary-text"]=a==="primary-text",u));return _.U("truncated-text",
{class:a,"on:click":z,style:"line-height: "+S+"px;"},_.U("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:d,style:"max-height: "+n*S+"px;"},_.U(_.ji,{text:K}),_.U(ToN,{text:H,lineHeight:S,elRef:N,className:"truncated-text-wiz__inline-button"})),_.U("button",{"aria-label":R,class:f,el:v,style:"line-height: "+S+"px;"},_.U(_.ji,{text:H})))};
qqu=function(K){return{content:K!=null?K:""}};
CEG=function(K){var d=K.data;var f;K={class:K.className};a:switch(d.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var H="yt-video-attribute-view-model--vertical";break a;default:H="yt-video-attribute-view-model--horizontal"}a:switch(d.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(d.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var S="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":S="yt-video-attribute-view-model--image-avatar";break a;default:S=""}a:switch(d.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var n="yt-video-attribute-view-model--metadata-header";break a;default:n=""}a:switch(d.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var u="yt-video-attribute-view-model--container-card";break a;default:u=""}var a=_.$A(d.onTap)||_.mR(d.rendererContext)?"yt-video-attribute-view-model--clickable":"";
H=["yt-video-attribute-view-model",H,D,S,n,u,a].join(" ");if(d.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var R="";else D=d.lightColorPalette,S=d.darkColorPalette,n=((R=_.eq().resolve(_.Zd(_.AJ)))==null?0:R())&&S?S:D,R=(R=n==null?void 0:n.section2Color)?_.hG(R):"";return _.U("yt-video-attribute-view-model",K,_.U("div",{class:H,style:_.Im({"background-color":R})},_.U(bP5,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(f=_.$A(d.onTap))!=
null?f:_.mR(d.rendererContext),role:"group",ariaLabel:d.title,forceNewState:!0},d.heroText||d.image?_.U(QKo,{data:d}):null,_.U(jKn,{data:d,sizeSmall:d.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
x6Y=function(K){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:K.overflowMenuA11yLabel,onTap:function(d){d.preventDefault();d.stopPropagation();if(K.overflowMenuOnTap){var f=_.hJ({elementsCommand:K.overflowMenuOnTap,forceNewState:!0});if(f==null?0:f.onclick)f.onclick(d)}}}};
QKo=function(K){K=K.data;var d,f=((d=_.eq().resolve(_.Zd(_.AJ)))==null?0:d())&&K.darkThemeImage?K.darkThemeImage:K.image;d=x6Y(K);return _.U("div",{class:"yt-video-attribute-view-model__hero-section"},f?_.U(_.jV,{data:f,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):K.heroText?_.U("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.U("span",{class:"yt-video-attribute-view-model__hero-text"},K.heroText)):null,K.overflowMenuOnTap?
_.U("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.U(xB,{data:d,iconName:"MORE_VERT"})):null)};
jKn=function(K){var d=K.data;K=K.sizeSmall;var f=d.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",H=_.$A(d.onTap)||_.mR(d.rendererContext);H=_.hJ({innertubeCommand:H});H=bz(H);var D={};K={class:_.nK("yt-video-attribute-view-model__metadata",(D["yt-video-attribute-view-model--small-font"]=K,D)),role:H?"link":"group"};H=_.U("h1",{class:"yt-video-attribute-view-model__title"},d.title);f=d.subtitle?_.U("h4",{class:"yt-video-attribute-view-model__subtitle"},f?_.U(rKz,{text:qqu(d.subtitle),truncationText:qqu(d.subtitleTruncationText),
maxLines:2}):_.U("span",null,d.subtitle)):null;if(d.secondarySubtitle){D=d.secondarySubtitle;if(D!=null&&D.attachmentRuns){for(var S=[],n=_.y(D.attachmentRuns),u=n.next();!u.done;u=n.next())u=u.value,u.element&&S.push(Object.assign({},u,{element:Object.assign({},u.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));D=Object.assign({},D,{attachmentRuns:S})}D=_.U("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.U(_.ji,{text:D}))}else D=null;return _.U("div",K,H,f,D,d.buttonViewModel?L6G(d.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.Lt=function(K,d,f,H,D){H=H===void 0?{}:H;if(!D||Math.random()<5E-4){d=d||null;f=f||null;K=K instanceof Error?K:new _.X4(K);if(K.args)for(var S=_.y(K.args),n=S.next();!n.done;n=S.next())n=n.value,n instanceof Object&&(H=Object.assign({},n,H));H.category="H5 Ads Control Flow";d&&(H.slot=d?"slot:  "+d.slotType:"");f&&(H.layout=f?"layout:  "+f.layoutType:"",H.layoutId=f.layoutId);D&&(H.known_error_aggressively_sampled=!0);K.args=[H];_.h3(K)}};
_.BoB=function(K,d){_.ev(K,"yt-open-popup-action",[_.xo(d),K])};
_.B9=function(K,d){_.BoB(K,_.rB(d))};
sKN=function(K){if(!K)return"";if(JKO[K])return JKO[K];Jv||(Jv=_.RQ("A"));Jv.href!==K&&ND(Jv,K);var d=Jv.pathname;JKO[K]=d.startsWith("/")?d:"/"+d;return JKO[K]};
kR5=function(){var K=sKN(window.location.href);if(K==="/")return"home";if(K.startsWith("/results"))return"search";if(K.startsWith("/watch"))return"watch";if(K.startsWith("/shorts"))return"shorts";if(K.startsWith("/hashtag"))return"hashtag";if(K.startsWith("/create_channel"))return"create_channel";if(K.startsWith("/@")||K.startsWith("/user/")||K.startsWith("/channel/"))return"channel";if(K.startsWith("/experiments"))return"experiments";if(K.startsWith("/sponsor_channel"))return"sponsorship";if(K.startsWith("/select_site"))return"settings";
if(K.startsWith("/locate"))return"locate";if(K.startsWith("/redeem"))return"redeem";if(K.startsWith("/musicpremium")||K.startsWith("/premium")||K.startsWith("/red"))return"premium";if(K.startsWith("/paid_memberships"))return"paid_memberships";if(K.startsWith("/oops"))return"oops";if(K.startsWith("/clip"))return"clip";var d;return(sk==null?void 0:(d=sk.response)==null?void 0:d.page)==="404"?"404":K.startsWith("/feed/history")?"history":K.startsWith("/feed/library")?"library":K.startsWith("/feed/subscriptions")?
"subscriptions":K.startsWith("/feed/trending")?"trending":K.startsWith("/feed/news_destination")?"news":K.startsWith("/playlist")?"playlist":K.startsWith("/minor_moment")?"minor_moment":K.startsWith("/playable/")||K.match("^/playables/(?!saved).")?"mini_app":K.startsWith("/playables")?"playables":K.startsWith("/create/live/join")?"open_in_app":K.startsWith("/feed/explore")?"explore":"browse"};
_.pfX=function(){var K=sk==null?void 0:sk.response,d=K==null?void 0:K.endpoint;if(!d)return(K==null?void 0:K.page)==="watch"?"watch":kR5();var f;K=(f=_.P(d==null?void 0:d.commandMetadata,_.B0))==null?void 0:f.webPageType;f=!1;if(K&&!wfz.includes(K))switch(K){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 H;return((H=_.P(d==null?void 0:d.commandMetadata,_.B0))==null?0:H.url)&&sKN(_.P(d.commandMetadata,_.B0).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var D;return(d=(D=_.P(d,_.is))==null?void 0:D.browseId)?Zcz[d]||"browse":"browse";default:f=!0}if(_.P(d,_.kB)||_.P(d,ezY))return"sponsorship";D=sKN(window.location.href);if(D.startsWith("/experiments"))return"experiments";if(D.startsWith("/create_channel"))return"create_channel";
if(_.P(d,_.TE)&&D.startsWith("/shorts"))return"shorts";if(_.P(d,_.TE)&&D.startsWith("/watch"))return"watch";f&&(d=new _.X4("Unsupported mWeb page type",{pathname:D,webPageType:K}),_.$7(d));return"browse"};
wP=function(K,d,f,H){return K&&d?K!==f||d!==H?(_.Lt(Error("Fh"),void 0,void 0,{"stored-slot":K,"stored-layout":d,"latest-slot":f,"latest-layout":H}),!1):!0:!1};
KGB=function(K,d,f){return K({targetId:d},function(H){return f.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},H,{header:f.continuationItems?f.continuationItems[0]:void 0}):Object.assign({},H,{contents:f.continuationItems?f.continuationItems:[]})})};
dAX=function(K,d,f,H){if(d=d.trackingParams){var D,S=(D=f.getScreenLayer)==null?void 0:D.call(f);f=_.te(S);D=_.YZ(S);if(f&&D){var n=_.RG(d);_.M("combine_ve_grafts")?K.graftServerVe(d,D,S):_.lB(f,D,n);H==null||H(n)}}};
Hao=function(K){var d;return((d=f0G.get(K))==null?void 0:d.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
SD5=function(K,d){var f={type:d.slotType,controlFlowManagerLayer:DAn.get(d.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};d.slotEntryTrigger&&(f.entryTriggerType=d.slotEntryTrigger.triggerType);d.slotPhysicalPosition!==1&&(f.slotPhysicalPosition=d.slotPhysicalPosition);if(K){f.debugData={slotId:d.slotId};if(K=d.slotEntryTrigger)f.debugData.slotEntryTriggerData=VF5(K);K=d.slotFulfillmentTriggers;f.debugData.fulfillmentTriggerData=[];K=_.y(K);for(var H=K.next();!H.done;H=K.next())f.debugData.fulfillmentTriggerData.push(VF5(H.value));
d=d.slotExpirationTriggers;f.debugData.expirationTriggerData=[];d=_.y(d);for(K=d.next();!K.done;K=d.next())f.debugData.expirationTriggerData.push(VF5(K.value))}return f};
VF5=function(K,d){var f={type:K.triggerType};d!=null&&(f.category=d);K.triggeringSlotId!=null&&(f.triggerSourceData||(f.triggerSourceData={}),f.triggerSourceData.associatedSlotId=K.triggeringSlotId);K.triggeringLayoutId!=null&&(f.triggerSourceData||(f.triggerSourceData={}),f.triggerSourceData.associatedLayoutId=K.triggeringLayoutId);return f};
yEz=function(K,d,f,H){d={opportunityType:d};K&&(H||f)&&(H=_.O7(H||[],function(D){return SD5(K,D)}),d.debugData=Object.assign({},f&&f.length>0?{associatedSlotId:f}:{},H.length>0?{slots:H}:{}));
return d};
nOG=function(K){return ZS(K.opportunityAdapterMap).concat(ZS(K.triggerAdapterMap)).concat(ZS(K.fulfillmentAdapterFactoryMap)).concat(ZS(K.slotAdapterFactoryMap)).concat(ZS(K.layoutRenderingAdapterFactoryMap))};
ZS=function(K){var d=[];K=_.y(K.values());for(var f=K.next();!f.done;f=K.next())f=f.value,f.isAdsControlFlowEventListener&&d.push(f);return d};
pt=function(K){var d=K.slotId,f=K.slotType,H=K.slotPhysicalPosition;return d===void 0?new ei("Cannot construct a slot due to the missing id.",{adSlotMetadata:K}):f===void 0?new ei("Cannot construct a slot due to the missing type.",{adSlotMetadata:K}):H===void 0?new ei("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:K}):{slotId:d,slotType:f,slotPhysicalPosition:H,managerLayer:"external",adSlotLoggingData:K.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new iaz}};
cEz=function(K){var d=K.layoutId,f=K.layoutType;return d===void 0?new KY("Cannot construct a layout due to the missing id.",{adLayoutMetadata:K}):f===void 0?new KY("Cannot construct a layout due to the missing type.",{adLayoutMetadata:K}):{layoutId:d,layoutType:f,managerLayer:"external",adLayoutLoggingData:K.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new iaz,interactionLoggingAdsClientData:{}}};
uPz=function(K){if((K=K.value)&&K.querySelector("img")){var d=K.querySelector("img");d.addEventListener("error",function(){ijX(d.src).then(function(f){(f=_.MD(f).toString())?d.src=f:d.removeAttribute("src")}).catch(function(){d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
fY=function(K,d){if(d&&(a0Y(d.viewableCommand)||a0Y(d.endOfSessionCommand))){K=K.value;var f=I0p(d==null?void 0:d.viewableCommand);d=I0p(d==null?void 0:d.endOfSessionCommand);if(!d3){var H=_.di("custom_active_view_tos_timeout_ms");d3=H>0&&H!==36E5?new UAX(ROn(),H):new UAX(ROn())}FGo(d3,K);zOY(d3,K,f,d)}};
H$=function(K){d3&&FGo(d3,K.value)};
ROn=function(){var K=_.mD("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(K==null?void 0:K.length)===2?K[1]:null};
a0Y=function(K){K=_.$A(K);return!(K==null||!K.loggingUrls)&&K.loggingUrls.length>0};
I0p=function(K){if(!K)return[];var d=[],f,H;((H=(f=_.$A(K))==null?void 0:f.loggingUrls)!=null?H:[]).forEach(function(D){D.baseUrl&&d.push(D.baseUrl)});
return d};
X2z=function(K){return K.shorts.isDesktopSmallWidth};
_.vOz=function(K){return K.shorts.isWatchWhileMode};
_.Dl=function(K){return K.shorts.isFullscreen};
_.Vb=function(K){return K.shorts.isShortsPipActive};
PvG=function(K){var d,f;if(K=(d=_.P(K.reelsAdCardButtoned,MFo))==null?void 0:(f=d.animatedRenderingConfig)==null?void 0:f.easeOutSeconds)return K+"s"};
OaB=function(K,d,f){return _.c(function(H){return H.return(new Promise(function(D){var S=new Image;S.onload=function(){D(new gOX(K,d,f,S.naturalWidth,S.naturalHeight))};
S.src=f.toString()}))})};
NSG=function(K,d){return Math.round(K/1E-5)===Math.round(d/1E-5)};
YDu=function(K,d){return Math.round(K/1E-5)===Math.round(d/1E-5)};
tFo=function(K,d){return K.year===d.year&&K.month===d.month&&K.day===d.day};
oOo=function(K,d){return K.year!==d.year?K.year<d.year:K.month!==d.month?K.month<d.month:K.day<d.day};
EOX=function(K){return K.day===$AB(K.year,K.month)?K.month===11?{year:K.year+1,month:0,day:1}:{year:K.year,month:K.month+1,day:1}:{year:K.year,month:K.month,day:K.day+1}};
hOB=function(){var K=new Date,d={year:K.getFullYear(),month:K.getMonth(),day:K.getDate()};return{start:d,end:{year:K.getFullYear()+2,month:K.getMonth(),day:K.getDate()},selectedDate:EOX(d)}};
ba5=function(K){return(new Ap(2)).format(new Date(K.year,K.month,K.day))};
mA5=function(K){return{year:K.getFullYear(),month:K.getMonth(),day:K.getDate()}};
l0X=function(K,d){K=(K+(Number(d.utcOffsetSec)+(new Date(K*1E3)).getTimezoneOffset()*60))*1E3;d=mA5(new Date(K));return{date:d,secondsSinceMidnight:Math.floor((K-(new Date(d.year,d.month,d.day)).getTime())/1E3)}};
WGN=function(K,d){d=d.months.findIndex(function(f){return f.year===K.year&&f.month===K.month});
return d>=0?d:void 0};
GbN=function(K){if(!K)return!1;try{if(K.host&&K.host.tagName==="YT-FORMATTED-STRING"&&K.host.id==="contenteditable-textarea"||K.nodeType===Node.ELEMENT_NODE&&K.tagName==="YTD-COMMENTBOX")return!0}catch(d){return!1}return GbN(K.parentNode)};
Sd=function(K){return K?!(K.tagName!=="A"||!K.href||!K.classList.contains("yt-simple-endpoint")):!1};
AEJ=function(K){return K?K.tagName==="IMG"&&K.classList.contains("emoji"):!1};
TSY=function(K,d,f){if(!K)return null;var H=Sd(K);if(H&&f)return d=K.pathname.substring(K.pathname.indexOf("/channel/")+9),document.createTextNode("@"+d);if(H&&!f)return document.createTextNode("");if(AEJ(K))return f=K.alt,K=K.dataset.emojiId,!K&&d&&(d=_.yb(d,f))&&d.isCustomEmoji&&(K=d.emojiId),K?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+K+">"):document.createTextNode(f);H=K.cloneNode(!1);for(var D=0;D<K.childNodes.length;++D){var S=TSY(K.childNodes[D],d,f);S&&H.appendChild(S)}return H};
nY=function(K){return K?Sd(K)?K:nY(K.lastChild):null};
rE5=function(K){return K?Sd(K)?K:rE5(K.firstChild):null};
qD5=function(K){if(!K)return null;for(var d=K.previousSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.previousSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.previousSibling;else break;(d=nY(d))?K=d:K=(K=K.parentNode)?nY(K.previousElementSibling):null;return K};
QqG=function(K){if(!K)return null;for(var d=K.nextSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.nextSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.nextSibling;else break;return(d=rE5(d))?d:QqG(K.parentNode)};
jqu=function(K){var d=_.ic(),f=d.JSC$9248_getStartNode();if(!GbN(f.parentNode))return null;d=d.JSC$9248_getStartOffset();if(f.nodeType===Node.TEXT_NODE){var H=_.bW(f,Sd);if(H){if(K&&d===0||!K&&d===f.length)return H}else{if(K&&d===f.length)return!f||f.nodeName==="BR"||f.nextElementSibling&&_.c$(f.nextElementSibling,"display")==="block"?null:rE5(f.nextElementSibling);if(!K&&d===0)return f?nY(f.previousElementSibling):null}}if(f.nodeType===Node.ELEMENT_NODE)if(K){if(0<=d&&d<f.childNodes.length)return rE5(f.childNodes[d])}else if(0<
d&&d<=f.childNodes.length)return nY(f.childNodes[d-1]);return null};
Cvo=function(K,d,f){if(!K)return null;if(K.nodeType===Node.TEXT_NODE)if(f){var H=qD5(K);if(H&&!/^\s+\S/.test(K.wholeText.substr(0,d)))return H}else if((H=QqG(K))&&!/\S\s+/.test(K.wholeText.substr(d,K.wholeText.length)))return H;return K.nodeType===Node.ELEMENT_NODE?f?qD5(K.childNodes[d]):QqG(K.childNodes[d]):Cvo(K.parentNode,d,f)};
xAN=function(K){if(K.hasChildNodes())switch(K.tagName){case "DIV":case "A":case "SPAN":var d="";for(K=K.firstChild;K;K=K.nextSibling)d+=xAN(K);return d;default:return""}else switch(K.nodeType){case 3:return K.textContent;default:return""}};
uc=function(K,d){return K.year===d.year&&K.month===d.month&&K.day===d.day};
a9=function(K,d){return K.year!==d.year?K.year<d.year:K.month!==d.month?K.month<d.month:K.day<d.day};
LGn=function(K){return{year:K.getFullYear(),month:K.getMonth(),day:K.getDate()}};
BSn=function(K){var d=CqX;d=d===void 0?CqX:d;d(new Date(K.year,K.month,K.day))};
I9=function(K){return LGn(new Date(Number(K.seconds)*1E3))};
JES=function(K){return K.year!==void 0&&K.month!==void 0&&K.day!==void 0};
sqp=function(K){return K.start!==void 0&&K.end!==void 0};
kbB=function(K){return sqp(K)?K.start:K};
w2z=function(K){return sqp(K)?K.end:void 0};
eOz=function(K,d){for(var f=[],H=new Date(K.start.year,K.start.month);H.getFullYear()<K.end.year||H.getFullYear()===K.end.year&&H.getMonth()<=K.end.month;){var D=f,S=D.push,n=H.getFullYear(),u=H.getMonth(),a=K,R=d,F=void 0,z=[],v=Object.freeze({extraCssClass:"invisible"}),g=new Date(n,u),N=LGn(g);g=g.getDay();for(var h=LGn(new Date);N.month===u;){g!==Zaz&&F||(F=Array.from({length:7}).fill(v),z.push(F));var m={date:{year:n,month:u,day:N.day},extraCssClass:"",debugClass:""};m.extraCssClass=R(m.date,
N,h,a).trim();F[(g-Zaz+7)%7]=m;N=N.day===$AB(N.year,N.month)?N.month===11?{year:N.year+1,month:0,day:1}:{year:N.year,month:N.month+1,day:1}:{year:N.year,month:N.month,day:N.day+1};g=(g+1)%7}S.call(D,{weeks:z,monthLabel:U8.SHORTMONTHS[u]+" "+n,year:n,month:u,monthLabelExtraCssClass:z[0][2]===v?"shift-down-label":""});H.setMonth(H.getMonth()+1)}return f};
p2O=function(K,d){d=d.months.findIndex(function(f){return f.year===K.year&&f.month===K.month});
return d>=0?d:void 0};
dUz=function(K,d){a:{var f=f===void 0?[2,3]:f;f=_.y(f);for(var H=f.next();!H.done;H=f.next()){var D=new Date;if((new KOu(H.value)).parse(d,D,{validate:!0})){D.setHours(0,0,0,0);d=D;break a}}d=null}if(!d)return{isValid:!1,value:void 0};d=LGn(d);f=K.end;return a9(d,K.start)||a9(f,d)?{isValid:!1,value:void 0}:{isValid:!0,value:d}};
SiX=function(K){var d=f6X;d=d===void 0?HXz:d;var f=K.columnsToShow||[],H=DUN(K.columnDimensions,K.columnsToShow,K.leftFloatingColumns,d);return f.map(function(D,S){var n=K.columns[D];if(n===void 0)throw Error("Lh");var u=H?H[S]:"";var a=K.getCustomTooltip?K.getCustomTooltip(D,n.headerTooltipParagraphs):n.headerTooltipParagraphs;var R=VLG(K,D);return{type:D,index:S,style:u,classes:R,headerName:n.headerName||"",headerIcon:n.headerIcon,headerTooltipParagraphs:a||[],headerTooltipHelpContext:n.headerTooltipHelpContext,
sortOrders:n.sortOrders||[],selectionState:n.isSelectionCheckbox?K.selectionState:void 0}})};
VLG=function(K,d){var f=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],H=K.columns[d];if(H===void 0)return"";var D=f.includes("DEFAULTS")&&H.cssClass?[H.cssClass]:[];if(f.includes("SORTING")){H.sortOrders&&H.sortOrders.length&&D.push("sortable");if(K.sorting&&K.sorting.columnType===d)a:switch(K.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var S="column-sorted";break a;default:S=""}else S="";S&&D.push(S)}f.includes("FLOATING")&&(d=K.columnsToShow.indexOf(d),K.leftFloatingColumns&&d<K.leftFloatingColumns&&
D.push("floating-column"),K.leftFloatingColumns&&d===K.leftFloatingColumns-1&&D.push("last-floating-column"));f.includes("RIGHT_ALIGN")&&H.rightAlignHeader&&D.push("right-align");return D.filter(function(n){return n}).join(" ")};
DUN=function(K,d,f,H){f=f===void 0?0:f;H=H===void 0?HXz:H;if(K){var D=[],S=0;yCX(K,d,H).forEach(function(n,u){var a="min-width:"+n.minWidth+"px;padding-left:"+n.paddingLeft+"px;padding-right:"+n.paddingRight+"px;flex:"+n.flexGrow+" 0 "+n.minWidth+"px;";n.maxWidth!==Infinity&&(a=[a,"max-width:"+n.maxWidth+"px;"].join(""));S>0&&u<f&&(a=[a,"left:"+S+"px;"].join(""));D.push(a);S+=n.minWidth+n.paddingLeft+n.paddingRight});
return D}};
yCX=function(K,d,f){f=f===void 0?HXz:f;return d.map(function(H,D){H=K&&K[H]||{};var S=D===0?f.paddingLeftFirstColumn:f.padding;H.paddingLeft!==void 0&&(S=H.paddingLeft);D=D===d.length-1?f.paddingRightLastColumn:f.padding;H.paddingRight!==void 0&&(D=H.paddingRight);return{paddingLeft:S,paddingRight:D,minWidth:H.minWidth!==void 0?H.minWidth:f.minWidth,maxWidth:H.maxWidth!==void 0?H.maxWidth:f.maxWidth,flexGrow:H.flexGrow!==void 0?H.flexGrow:f.flexGrow}})};
ngX=function(K){var d=K.reduce(function(H,D){var S=D.columnId,n={};D.headerText&&(n.headerName=_.qQ(D.headerText));D.rightAlignHeader&&(n.rightAlignHeader=D.rightAlignHeader);var u;if((u=D.headerIcon)==null?0:u.iconType)n.headerIcon=_.Hv(D.headerIcon.iconType);H[S]=n;return H},{}),f=K.filter(function(H){return!H.hideColumn}).map(function(H){return H.columnId});
K=K.filter(function(H){return!!H.dimensions}).reduce(function(H,D){H[D.columnId]=D.dimensions;
return H},{});
return{columns:d,columnsToShow:f,columnDimensions:K}};
_.iX5=function(K){return K?K.simpleText?K.simpleText:K.runs?K.runs.map(function(d){return d.text}).join(""):"":""};
UUS=function(K){var d=K.data;var f=K.onTap;var H=K.isSelected;var D=K.onFocusIn;if(!d)return{};K=cC5(d);H===void 0&&(H=d==null?void 0:d.isSelected);var S;return{text:uOz(d,K),startIcon:(S=d.icon)==null?void 0:S.iconType,state:H?0:2,type:0,onTap:a6Y(d,f),accessibilityLabel:I6u(d,K),onFocusIn:function(){return D==null?void 0:D()}}};
uOz=function(K,d){if(!d)return K.text?_.iX5(K.text):void 0};
a6Y=function(K,d){return function(f){d==null||d(f,K)}};
cC5=function(K){K=K.style&&K.style.styleType;return!R1u&&K==="STYLE_EXPLORE_LAUNCHER_CHIP"};
I6u=function(K,d){if(d){var f,H,D;return(D=(f=K.accessibilityData)==null?void 0:(H=f.accessibilityData)==null?void 0:H.label)!=null?D:uOz(K,!1)}};
R9=function(K){return{signalAction:{signal:K}}};
XMN=function(){return _.mD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?FOB:_.z1B};
vgY=function(K,d){K=K===void 0?"SOFT_RELOAD_PAGE":K;d=d===void 0?49504:d;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.kJ(_.iB("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:d}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:K}}]}}}};
MLS=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.kJ(_.iB("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:XMN()}};
Pao=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.kJ(_.iB("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:XMN()}};
ggn=function(K,d){var f=_.kJ(_.iB("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),H=_.kJ(_.iB("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),D={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.kJ(_.iB("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};D.serviceEndpoint=K?K:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[R9("SOFT_RELOAD_PAGE")]}};return{title:f,bodyText:H,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:D},
style:{value:d!=null?d:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
NnN=function(K){K=K===void 0?{}:K;return{title:_.kJ(K.localizedZeroStateTitleText===void 0?"":K.localizedZeroStateTitleText),bodyText:_.kJ(K.localizedZeroStateMessage===void 0?"":K.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.kJ(K.localizedZeroStateButtonText===void 0?"":K.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[OXz]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.ogz=function(K,d,f,H,D,S,n,u){H=H===void 0?!1:H;D=D===void 0?!1:D;S=S===void 0?0:S;n=n===void 0?-Infinity:n;u=u===void 0?!1:u;var a=[],R=_.kJ(_.iB("SMART_DOWNLOADS",void 0,"Smart downloads"));n=_.kJ(YiO(S,n,K.length));S=void 0;H?S=K.length>0?tLo(K,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.M("kevlar_manual_downloads_above"),R,n):u?{alertBannerViewModel:{heading:{content:f.localizedOptInBannerTitleText===void 0?"":f.localizedOptInBannerTitleText},body:{content:f.localizedPromptMessage===
void 0?"":f.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.iB("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.iB("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:_.VA5}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.kJ(_.iB("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"}}}:D&&(S={alertBannerViewModel:{heading:{content:f.localizedOptInBannerTitleText===void 0?"":f.localizedOptInBannerTitleText},body:{content:f.localizedOptInMessage===
void 0?"":f.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.iB("TURN_ON",void 0,"Turn on"),accessibilityText:_.iB("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}}}}}});f=_.kJ(_.iB("YOUR_DOWNLOADS",void 0,"Your downloads"));D=void 0;d.length>0?(D=void 0,_.M("kevlar_display_downloads_numbers")&&(D=_.kJ(_.cG("VIDEO_COUNT",d.length))),D=tLo(d,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,f,D)):H||K.length||(D={backgroundPromoRenderer:{bodyText:_.kJ(_.iB("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}}}});S&&!_.M("kevlar_manual_downloads_above")&&a.push({richSectionRenderer:{content:S,loggingDirectives:{clientVeSpec:{uiType:139572}}}});D&&a.push({richSectionRenderer:{content:D,loggingDirectives:{clientVeSpec:{uiType:51721}}}});S&&_.M("kevlar_manual_downloads_above")&&a.push({richSectionRenderer:{content:S,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(d.length>0||H&&K.length>0)&&a.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.kJ(_.iB("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:a}};
_.EgS=function(K){return $UG(K,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.h1o=function(K){return $UG(K,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
$UG=function(K,d){var f=[];K=tLo(K,d,!0);f.push({richSectionRenderer:{content:K}});return{contents:f}};
tLo=function(K,d,f,H,D){f=f===void 0?!1:f;K={isExpanded:f,contents:Fr(K),entitySelectorType:d};H&&(K.title=H);D&&(K.subtitle=D);f||(_.M("kevlar_smart_downloads_show_more_button")?(K.showMoreButton={buttonRenderer:{accessibility:{label:_.iB("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.kJ(_.iB("SHOW_MORE",void 0,"Show more"))}},K.showLessButton={buttonRenderer:{accessibility:{label:_.iB("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.kJ(_.iB("SHOW_LESS",void 0,"Show less"))}}):(K.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.iB("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}}}},K.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.iB("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}}}},K.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.iB("VIEW_ALL",void 0,"View all"),accessibilityText:_.iB("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:Jy("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:K}};
Fr=function(K){var d=[];K=_.y(K);for(var f=K.next();!f.done;f=K.next())if(f=f.value,QbY(f)){var H=d,D=H.push;var S=void 0;if(f==null?0:(S=f.videoEntity)==null?0:S.videoId){S=hp(_.j3().getState(),f.videoEntity.videoId);var n=_.j3().getState();var u=_.HJ(f.videoEntity.videoId,"mainVideoEntity");n=!!_.Xs(n.entities)[u];n={videoId:f.videoEntity.videoId,title:wN(f.videoEntity.title),shortBylineText:wN(f.channelEntity.title),thumbnail:f.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:n&&_.M("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:Qs5(f.videoEntity.videoId,S,f.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.iB("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};f.videoEntity.lengthSeconds&&(n.thumbnailOverlays=nfo(f.videoEntity.lengthSeconds,S));n.isWatched=S>0;_.M("kevlar_modern_downloads_page")&&(n.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:f.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.iB("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},n.badges=void 0);f=n}else f={};D.call(H,{richItemRenderer:{content:{videoRenderer:f},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(qKY(f)){H=d;D=H.push;var a=u=S=void 0,R=void 0,F=void 0,z=void 0,v=void 0,g=void 0,N=void 0,h=void 0,m=void 0,T=void 0;n=f.mainPlaylistEntity.playlistId;var r=f==null?void 0:(T=f.mainPlaylistEntity)==null?void 0:(m=T.thumbnailStyleData)==null?void 0:(h=m[0])==null?void 0:(N=h.value)==null?void 0:(g=N.collageThumbnail)==
null?void 0:g.coverThumbnail;if(n&&r){g=jsu(n);!_.M("enable_offline_playlist_page")&&(f==null?0:(v=f.mainPlaylistEntity)==null?0:v.videos)&&(v=f==null?void 0:(z=f.mainPlaylistEntity)==null?void 0:(F=z.videos)==null?void 0:F[0],F=_.KF(v).entityId,F=JSON.parse(F).videoId,F!==void 0&&(z=hp(_.j3().getState(),F),g=_.sx(F,n,void 0,void 0,z)));F=[];if(f==null?0:(R=f.mainPlaylistEntity)==null?0:(a=R.videos)==null?0:a.length)F=[jan(),Object.assign({},(u=Qao(f==null?void 0:f.mainPlaylistEntity.videos.length))!=
null?u:{})];f={playlistId:n,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:r}},navigationEndpoint:g,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:F,title:wN(f.mainPlaylistEntity.title),shortBylineText:wN(f==null?void 0:(S=f.channelEntity)==null?void 0:S.title),badges:[{metadataBadgeRenderer:{label:_.iB("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.M("kevlar_modern_downloads_page")&&(f.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:bXB,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:n,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.iB("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},f.badges=void 0)}else f=void 0;D.call(H,{richItemRenderer:{content:{playlistRenderer:f},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return d};
YiO=function(K,d,f){K=K?mUY(K):"";d!==void 0&&isFinite(d)?d===0?d=_.iB("UPDATING",void 0,"Updating..."):(d=y_z(new Date(d),new Date),d=_.iB("UPDATED_TIME",{relative_time:d},"Updated "+d)):d="";var H="";K&&d&&(H=" \u2022 ");if(f&&_.M("kevlar_display_downloads_numbers")){f=_.cG("VIDEO_COUNT",f);if(K||d)H=" \u2022 ";return f+H+K+H+d}return K+H+d};
l6X=function(K){return bhn(K.entities).length};
_.WOG=function(K,d){var f=eap(K.responsiveSize),H;K=!((H=K.responsiveMap)==null||!H.some(function(D){return D.containerSize==="CONTAINER_SIZE_NARROW"&&D.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:d,sizing:f,enableFullBleedForSingleCol:!1,isCompactList:f==="COMPACT"&&K}};
GQS=function(K,d){return _.DR(K.entities,"votingEntity",d)};
ACp=function(K){if(K){var d;return((d=_.eq().resolve(_.Zd(_.AJ)))==null?0:d())?K.darkTheme:K.lightTheme}};
TnJ=function(K,d){if(K.simpleText)return Object.assign({},K,{simpleText:Wv(K.simpleText,d)});if(!K.runs)return K;for(var f=Object.assign({},K,{runs:[]}),H=0,D=_.y(K.runs),S=D.next();!S.done;S=D.next())if(S=S.value,S.text)if(H+S.text.length<=d)f.runs.push(S),H+=S.text.length;else return f.runs.push(Object.assign({},S,{text:Wv(S.text,d-H)})),f;return K};
rC5=function(K,d){return _.DR(K.entities,"chipBarStateEntity",d)};
qio=function(K,d){return _.DR(K.entities,"chipEntity",d)};
j3z=function(K,d,f,H){return function(){var D=Q3n.has(K.displayType)&&K.selected,S=D&&K.deselectCommand?K.deselectCommand:K.tapCommand;!S||D&&H||_.me(S,{form:{element:d==null?void 0:d.value}});f==null||f()}};
Cap=function(K){switch(K){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
xUO=function(K,d){return{triggeringElement:K,onDwellTriggeredFn:function(){var f={triggeringElement:K,loadVideoPreviewEventData:d},H=document.querySelector(".video-preview");H&&H.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:f}))},
onDwellEndFn:function(){var f=document.querySelector(".video-preview");f&&f.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
LOp=function(K,d){var f=_.eq().resolve(_.Zd(rZX)),H=function(){var D=d();return f&&D?xUO(K.value,D):null};
_.ol(function(){var D=H();f&&D&&Promise.resolve().then(function(){f.registerElement(D)});
_.$F(function(){f&&D&&Promise.resolve().then(function(){f.unregisterElement(D)})})})};
JCX=function(K){var d=K.dataset.resizeObserverId;if(d)return d;d=""+Bnz++;return K.dataset.resizeObserverId=d};
s3B=function(K,d){var f=JCX(K);zD.has(f)||zD.set(f,new Set);zD.get(f).add(d);Xr.has(f)&&d(Object.assign({},{target:K},Xr.get(f)))};
kQY=function(K){K=_.y(K);for(var d=K.next();!d.done;d=K.next()){d=d.value;var f=JCX(d.target),H=Object.assign({},{target:d.target},Xr.get(f));if(H!=null&&H.contentRect?H.contentRect.width!==d.contentRect.width||H.contentRect.height!==d.contentRect.height:1)for(Xr.set(f,{borderBoxSize:d.borderBoxSize,contentBoxSize:d.contentBoxSize,contentRect:d.contentRect,devicePixelContentBoxSize:d.devicePixelContentBoxSize}),f=_.y(zD.get(f)||[]),H=f.next();!H.done;H=f.next())H=H.value,H(d)}};
ZXX=function(){return v$?v$:v$=new wM5(kQY)};
e1X=function(K,d){var f=JCX(K);zD.has(f)&&(zD.get(f).delete(d),zD.get(f).size===0&&(zD.delete(f),Xr.delete(f),v$.unobserve(K),delete K.dataset.resizeObserverId));zD.size===0&&v$&&(v$.disconnect(),v$=void 0)};
KLu=function(K,d){var f=_.eq().resolve(k7);return pMo.map(function(H){return f.observe(K,d,H)})};
d2X=function(K){var d=_.eq().resolve(k7);K.forEach(function(f){d.unobserveByKey(f)})};
_.D2u=function(K,d){var f=Object.assign({},fyp,d);d=_.y(mXS());var H=d.next().value,D=d.next().value,S=function(n){var u=n.contentRect.height;if((n=n.contentRect.width)||u||f.canHaveZeroSize)H.width()===n&&H.height()===u||D(H,{height:u,width:n})};
_.tR(function(){var n=K instanceof HTMLElement?K:K.value,u=H6B(S,f.throttleMs),a=[];f.useVisibilityObserver&&(a=KLu(n,function(R,F){requestAnimationFrame(function(){F==="visible"?(s3B(n,u),ZXX().observe(n)):e1X(n,u)})}));
a.length||(s3B(n,u),ZXX().observe(n));_.$F(function(){a.length&&(d2X(a),a.length=0);e1X(n,u)})});
return H};
S_u=function(K){var d=K.data;var f=K.callback;var H=K.enableSingleChipSelection;var D=K.disableChipsScrollAnimation;var S=_.x7(),n=$M(!1),u=$M(0);K={};K=_.y(Si(d.autoselectedChipIndex!=null?(K[d.autoselectedChipIndex]=!0,K):{}));var a=K.next().value,R=K.next().value,F=function(){var FX=S.value;return FX==null||FX.scrollLeft-1<=0},z=function(){var FX=S.value;
return FX==null?!1:FX.scrollLeft+1>=(FX==null?NaN:FX.scrollWidth)-(FX==null?NaN:FX.clientWidth)};
K=_.y(Si(F()));var v=K.next().value,g=K.next().value;K=_.y(Si(z()));var N=K.next().value,h=K.next().value;K=d.isHorizontallyScrollable;var m=function(FX){S.value!=null&&(_.mD("HTML_DIR")==="rtl"&&(FX=-FX),S.value.scrollBy({left:FX,behavior:D?"instant":"smooth"}))},T=function(){m(-320)},r=function(){m(320)},J=_.cp(function(FX){n.value=!0;
u.value=FX.clientX}),L=_.cp(function(FX){if(n.value){FX=FX.clientX;
var NJ=FX-u.value;u.value=FX;var $z;($z=S.value)==null||$z.scrollBy({left:-NJ})}}),fB=_.cp(function(){var FX=F(),NJ=z();
FX!==v&&g(FX);NJ!==N&&h(NJ)});
sN("pointerup",function(){n.value&&(n.value=!1)});
var w={},yO={};return _.U("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},sm(d.title,function(){return _.U("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.U("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},d.title),VmB(d.overflowButton))}),_.U("div",{class:"ytChipsShelfViewModelChipsShelfContent"},sm(d.previousButton!=null,function(){var FX={};
return _.U("div",{class:_.nK("ytChipsShelfViewModelLeftArrowContainer",(FX.ytChipsShelfViewModelLeftArrowContainerIsHidden=v,FX))},VmB(d.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:T}}))}),_.U("div",{el:S,
"on:pointerdown":J,"on:pointermove":L,"on:scroll":fB,class:_.nK("ytChipsShelfViewModelChipsScrollContainer",(w.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!K,w))},_.U("div",{class:_.nK("ytChipsShelfViewModelChipsContainer",(yO.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!K,yO.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!K&&!1,yO))},(d.contents||[]).map(function(FX,NJ){return _.U("div",{class:"ytChipsShelfViewModelChipWrapper"},VmB(FX,
{chipViewModel:{callback:function($z,hN){if(H){var bo={};R((bo[NJ]=hN,bo))}else bo={},R(Object.assign({},a,(bo[NJ]=hN,bo)));f==null||f($z,hN,NJ)},
disableDeselection:H,selected:!!a[NJ]}}))}))),sm(d.nextButton!=null,function(){var FX={};
return _.U("div",{class:_.nK("ytChipsShelfViewModelRightArrowContainer",(FX.ytChipsShelfViewModelRightArrowContainerIsHidden=N,FX))},VmB(d.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:r}}))})))};
nxJ=function(K,d,f,H,D){K=d?K.switchOffCommand:K.switchOnCommand;if(H&&D)yuN(K,f,D);else{var S,n;(S=_.hJ({elementsCommand:K}))==null||(n=S.onclick)==null||n.call(S,f)}};
yuN=function(K,d,f){K=_.hJ({elementsCommand:K,additionalCommandArgs:{commandController:{onSuccess:function(){f(!1)},
onServerError:function(){f(!1)}}}});
if(K==null?0:K.onclick)K.onclick(d),f(!0)};
cuo=function(K){if(K)return _.P(K,i6X)};
REN=function(K,d,f){if(d)return[uzo];switch(K){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Mj];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return f?[Mj]:[ayu,Mj];case "TRANSFER_STATE_PAUSED_BY_USER":return[IyY,Mj];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[U2J,Mj];default:return[uzo]}};
FLp=function(K,d,f,H){return REN(K,d,H).map(function(D){var S=D.text,n=D.iconType,u=D.videoAction;D=D.playlistAction;S=S?{content:S}:void 0;n=n&&{sources:[{clientResource:{imageName:n}}]};var a=(0,_.PR.unsafeClone)(f);if(a){var R=_.P(a,_.DS),F=_.P(a,_.VF);R&&u?R.action=u:F&&D&&(F.action=D)}return{title:S,leadingImage:n,rendererContext:a&&{commandContext:{onTap:{innertubeCommand:a}}}}})};
zES=function(K){K=_.mR(K.rendererContext);var d;return(d=_.P(K,_.VF))==null?void 0:d.playlistId};
XTz=function(K){var d;return(d=K.listItems)==null?void 0:d.some(function(f){var H;return _.lX((H=_.P(f,_.c9))==null?void 0:H.rendererContext)})};
MmX=function(K){var d;return(d=K.listItems)==null?void 0:d.some(function(f){f=_.P(f,_.c9);return!!_.P(f==null?void 0:f.leadingAccessory,vxo)})};
P$=function(K){var d=_.eq().resolve(_.Zd(_.AJ));return d!=null&&d()?K.darkThemeColorPalette:K.lightThemeColorPalette};
O8=function(K){return{primaryTextColor:g3(K,0),secondaryTextColor:g3(K,1),optionColor:g3(K,2),backgroundColor:g3(K,3),videoBackgroundColor:g3(K,4)}};
g3=function(K,d){if(K){switch(d){case 0:K=K.primaryTitleColor;break;case 1:K=K.secondaryTitleColor;break;case 2:K=K.surgeColor;break;case 3:K=K.section2Color;break;case 4:K=K.section3Color;break;default:return}if(K)return _.E1(K)}};
PIX=function(K){return K?_.hG(K):""};
gxB=function(K){return(K==null?void 0:K.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
O6o=function(K,d){var f;return"linear-gradient(to bottom, "+((f=d==null?void 0:d.map(function(H){var D=K?H.darkThemeColor:H.lightThemeColor;return D?_.hG(D)+" "+((H==null?void 0:H.startLocation)||0)*100+"%":"transparent"}))==null?void 0:f.join(", "))+")"};
NIO=function(K,d,f,H,D){if(!((H==null?0:H.height)&&(H==null?0:H.width)))return{size:0};var S=H.width;H=H.height;if(D)return d==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||d==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&S>H?{size:312/a$J}:d==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(f!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||K!==1&&K!==2||d!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&d!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&d!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(d==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||d==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||H===S)switch(K){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(d==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||H>S)switch(K){case 1:case 3:return{size:240*uSB};default:return{size:360*uSB}}switch(K){case 1:case 2:return{size:1/a$J*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Y_z=function(K){if(!("matchMedia"in window))return _.rF(Error("Mh")),function(){return!1};
var d=window.matchMedia(K);K=_.y(_.cC(d.matches,void 0,"jLJc8e"));var f=K.next().value,H=K.next().value,D=function(S){H(S.matches)};
d.addEventListener?(d.addEventListener("change",D),_.$F(function(){d.removeEventListener("change",D)})):d.addListener&&(d.addListener(D),_.$F(function(){d.removeListener(D)}));
return f};
tmG=function(K){return K==="IMAGE_BANNER_STYLE_INSET"||K==="IMAGE_BANNER_STYLE_UNKNOWN"};
oxX=function(){if(!("matchMedia"in window))return _.rF(Error("Mh")),function(){return 0};
var K=od(function(){return window.matchMedia("(max-width: 527.9px)")}),d=od(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),f=od(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),H=od(function(){return window.matchMedia("(min-width: 1024px)")}),D=_.y(_.cC(K.matches,void 0,"og9kEc")),S=D.next().value,n=D.next().value;
D=_.y(_.cC(d.matches,void 0,"ybDWCb"));var u=D.next().value,a=D.next().value;D=_.y(_.cC(f.matches,void 0,"o0Gfh"));var R=D.next().value,F=D.next().value;D=_.y(_.cC(H.matches,void 0,"yqUUgd"));var z=D.next().value,v=D.next().value,g=od(function(){return function(T){n(T.matches)}}),N=od(function(){return function(T){a(T.matches)}}),h=od(function(){return function(T){F(T.matches)}}),m=od(function(){return function(T){v(T.matches)}});
_.tR(function(){K.addEventListener?(K.addEventListener("change",g),d.addEventListener("change",N),f.addEventListener("change",h),H.addEventListener("change",m)):K.addListener&&(K.addListener(g),d.addListener(N),f.addListener(h),H.addListener(m));_.$F(function(){K.removeEventListener?(K.removeEventListener("change",g),d.removeEventListener("change",N),f.removeEventListener("change",h),H.removeEventListener("change",m)):K.removeListener&&(K.removeListener(g),d.removeListener(N),f.removeListener(h),
H.removeListener(m))})});
return function(){return S()?1:u()?2:R()?3:z()?4:0}};
$2N=function(K){var d=0;K=_.y([K.title,K.metadata,K.actions,K.description,K.attribution]);for(var f=K.next();!f.done;f=K.next())f.value&&d++;return d};
ExN=function(K){return K===1||K===2?1:0};
b6u=function(K){var d,f=((d=_.eq().resolve(_.Zd(_.AJ)))==null?0:d())&&K.data.darkThemeImage?K.data.darkThemeImage:K.data.image;d=_.U("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.U("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},f?_.U(_.jV,{data:f,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),hE5(K.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));f=_.U(_.ji,{text:K.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var H=K.data;if(H.bodyText){var D=[];H=_.y(H.bodyText);for(var S=H.next();!S.done;S=H.next())D.push(_.U(_.ji,{text:S.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else D=_.U(_.dF,null);return _.U("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},d,f,D,hE5(K.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.U(_.ji,{text:K.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.U(_.ji,{text:K.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
lyz=function(K){K=(new m2J).parse(K);return(new V8).render(K).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(d){var f=d.split(":").map(Number),H=0,D=0;if(f.length===3)f=_.y(f),H=f.next().value,D=f.next().value,f=f.next().value;else if(f.length===2)f=_.y(f),D=f.next().value,f=f.next().value;else if(f.length===1)f=_.y(f).next().value;else throw Error("Nh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(H*3600+D*60+f)+'" role="button">'+d+"</span>"})};
WLz=function(K){K=_.y(K.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var d=K.next(),f={};!d.done;f={clickHandler$jscomp$4:void 0},d=K.next()){d=d.value;f.clickHandler$jscomp$4=function(D){D=Number(D.target.getAttribute("data-time"));if(isNaN(D))throw Error("Oh");var S;(S=_.dP())==null||S.seekTo(D,!0)};
var H=function(D){return function(S){S.key!=="Enter"&&S.key!=="Space"||(0,D.clickHandler$jscomp$4)(S)}}(f);
d.setAttribute("tabindex","0");d.removeEventListener("click",f.clickHandler$jscomp$4);d.removeEventListener("keydown",H);d.addEventListener("click",f.clickHandler$jscomp$4);d.addEventListener("keydown",H)}};
GLB=function(){return _.U("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.U(Nj,{percentWidth:100}),_.U(Nj,{animationDelay:200}),_.U(Nj,{animationDelay:400}),_.U(Nj,{animationDelay:600}),_.U(Nj,{animationDelay:800,percentWidth:60}),_.U("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.U(Nj,{percentWidth:100}),_.U(Nj,{animationDelay:200}),_.U(Nj,{animationDelay:400}),_.U(Nj,{animationDelay:600,percentWidth:50}))};
Nj=function(K){return _.U("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(K.percentWidth===void 0?100:K.percentWidth)+"%"},_.U("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(K.animationDelay===void 0?0:K.animationDelay)+"ms"}))};
Au5=function(){var K=_.y(_.cC(function(){return""},void 0,"v2wS5e")),d=K.next().value;
return[function(){return d()()},
K.next().value]};
ruJ=function(K){K=K===void 0?{}:K;return{title:_.kJ(K.localizedOptInBannerTitleText===void 0?"":K.localizedOptInBannerTitleText),titleLength:19,subtitle:_.kJ(K.localizedOptInMessage===void 0?"":K.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.kJ(_.iB("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:_.kJ(_.iB("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:[TIX]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
q_z=function(K,d){K=K?mUY(K):"";d!==void 0&&isFinite(d)?d===0?d=_.iB("UPDATING",void 0,"Updating..."):(d=y_z(new Date(d),new Date),d=_.iB("UPDATED_TIME",{relative_time:d},"Updated "+d)):d="";var f="";K&&d&&(f=" \u2022 ");return _.kJ(K+f+d)};
CIu=function(K,d,f,H,D,S){d=d===void 0?0:d;var n=Q8o[d],u=n.title,a=n.iconType,R=n.topButtonRenderer,F=n.sectionClientVE;n=n.videoClientVE;var z;if(d!==1||K.length){f=[];K=_.y(K);for(H=K.next();!H.done;H=K.next()){var v=H.value;if(QbY(v))f.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:v.videoEntity.videoId,title:wN(v.videoEntity.title),shortBylineText:wN(v.channelEntity.title),thumbnail:v.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:v.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.iB("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:n}}}}}});else if(qKY(v)){H=f;var g=H.push;var N=void 0,h=void 0,m=void 0,T=void 0,r=void 0,J=void 0,L=void 0,fB=void 0,w=v.mainPlaylistEntity.playlistId,yO=v==null?void 0:(fB=v.mainPlaylistEntity)==null?void 0:(L=fB.thumbnailStyleData)==null?void 0:(J=L[0])==null?void 0:(r=J.value)==null?void 0:(T=r.collageThumbnail)==null?void 0:T.coverThumbnail;T=jsu(w);if(!_.M("enable_offline_playlist_page")&&
(v==null?0:(m=v.mainPlaylistEntity)==null?0:m.videos)){b:{m=v==null?void 0:(h=v.mainPlaylistEntity)==null?void 0:h.videos;h=_.j3().getState().entities;if(m!=null&&m.length&&h)for(m=_.y(m),r=m.next();!r.done;r=m.next())if(r=_.KF(r.value).entityId,(r=JSON.parse(r).videoId)&&E5p(h,r)==="TRANSFER_STATE_COMPLETE"){h=r;break b}h=""}h!==void 0&&(T=hp(_.j3().getState(),h),T=_.sx(h,w,void 0,void 0,T))}h=xhS(_.iB("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),jsu(w));v=w&&yO&&h?{playlistId:w,navigationEndpoint:T,
viewPlaylistText:h,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:yO}},title:wN(v.mainPlaylistEntity.title),shortBylineText:wN(v==null?void 0:(N=v.channelEntity)==null?void 0:N.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:j8z,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:w,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.iB("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:n}}}:
void 0;g.call(H,{gridPlaylistRenderer:v})}}n={gridRenderer:{items:f}};d===1&&(z=q_z(D,S))}else if(H){var FX=_.kJ((g=f==null?void 0:f.localizedPromptMessage)!=null?g:"");n={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.kJ(_.iB("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.VA5}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.kJ(_.iB("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};z=q_z(D,S)}else FX=_.kJ(_.iB("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
n={};return{contents:[{shelfRenderer:{title:u,titleAnnotation:z,icon:{iconType:a},subtitle:FX,content:n,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:R}]}}}}],loggingDirectives:{clientVeSpec:{uiType:F}}}};
x2Y=function(K,d,f,H,D,S,n,u){f=f===void 0?{}:f;H=H===void 0?!1:H;D=D===void 0?!1:D;S=S===void 0?!1:S;n=n===void 0?0:n;u=u===void 0?-Infinity:u;if(!d.length&&!K.length&&!H)return D?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:NnN(f)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.kJ(_.iB("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 a=[];K.length&&a.push(CIu(K,0));H?a.push(CIu(d,1,f,S,n,u)):D&&a.push({contents:[{statementBannerRenderer:ruJ(f)}]});(H&&d.length||K.length)&&a.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.kJ(_.iB("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 a.map(function(R){return{itemSectionRenderer:R}})};
Y6=function(K,d){if(typeof K!=="object")return null;K=_.y(Object.entries(K));for(var f=K.next();!f.done;f=K.next()){var H=_.y(f.value);f=H.next().value;H=H.next().value;if(f===d)return f;if(H=Y6(H,d))return f+"."+H}return null};
tb=function(K){var d=K.content;return(K=K.styleRuns)&&d?{runs:K.map(function(f){var H={text:d.slice(f.startIndex,f.startIndex+f.length)};f.fontColor&&(H.textColor=f.fontColor);return H})}:{simpleText:d}};
Juo=function(K,d,f,H){var D=LLz;H&&(K.quantity=H);if(!K.quantity||!K.maxQuantity)return{};H=K.minusButton;var S=K.plusButton,n,u,a,R;return{value:K.quantity,maxValue:K.maxQuantity,onChangeCallback:function(F){D(K,F)},
minusLabel:(n=_.P(H,BIO))==null?void 0:n.label,minimumReachedLabel:(u=_.P(H,BIO))==null?void 0:u.limitReachedLabel,plusLabel:(a=_.P(S,BIO))==null?void 0:a.label,maximumReachedLabel:(R=_.P(S,BIO))==null?void 0:R.limitReachedLabel,disabled:d,onRemoveCommand:f}};
LLz=function(K,d){var f=K.quantityIncrementerEntityKey;if(f){var H={};H.quantity=d;_.q7(_.P9("quantityIncrementerEntity",f,H));K.onChangeCommand&&_.me(K.onChangeCommand)}};
s8z=function(K){return _.M("kevlar_comments_clone_data_killswitch")?K:_.PR.unsafeClone(K)};
Z6O=function(K,d){(K=kLX(K))&&(d?wTo.push({command:K,sourceData:{},commandContext:void 0}):_.eq().resolve(_.pQ).resolveCommand(K))};
kLX=function(K){return _.P(K,_.oG)};
eEJ=function(){var K=window.performance.timeOrigin+window.performance.now(),d=(new _.o9).setSeconds(K/1E9);return _.Ys(d,2,_.OZ(K%1E9),0)};
$6=function(K,d){var f=_.P(_.P(K,_.oG),pTX);f&&(d&&(f.serializedAdditionalMetadata=_.eS(d)),Z6O(K,!0))};
K3p=function(K){switch(K){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"}};
dLN=function(){return!!_.mD("ID_TOKEN")};
DLS=function(K){return K instanceof Error&&K.cause instanceof fjX&&K.cause.rpcErrorCode!==void 0?!Hb5.includes(K.cause.rpcErrorCode):!0};
SHJ=function(){return _.LQ(VkY,{authuser:""+(_.mD("SESSION_INDEX")||0)})};
E8=function(K,d,f,H){f=f===void 0?"MINI_APP_SDK_API_UNSPECIFIED":f;H=H===void 0?"":H;var D=new _.X4;f={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:H,sdkApi:f};K instanceof Error&&(D.message=K.message,D.name=K.name,K.cause instanceof fjX&&K.cause.rpcErrorCode!==void 0&&(f.rpcErrorCode=K.cause.rpcErrorCode));var S;(S=d.onError)==null||S.call(d,{loggingError:D,metadata:f})};
ntz=function(K,d,f,H){switch(K){case "MINI_APP_SOURCE_GAMESNACKS":return new hb(d,f,H);default:return new yxX(d,f,H)}};
ibp=function(K){switch(K){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"}};
cxG=function(K){switch(K){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"}};
uUJ=function(K){switch(K){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
ajG=function(){return Math.floor(Math.random()*4)+1};
IjN=function(K,d,f,H){K=_.y(Object.entries(K));for(var D=K.next(),S={};!D.done;S={message$jscomp$957:void 0},D=K.next()){var n=_.y(D.value);D=n.next().value;n=n.next().value;S.message$jscomp$957=n;d.push(setTimeout(function(u){return function(){H(!1);f(u.message$jscomp$957.text)}}(S),S.message$jscomp$957.delayMs));
Number(D)>0&&d.push(setTimeout(function(){H(!0)},S.message$jscomp$957.delayMs-400))}};
ULz=function(K,d){var f=f===void 0?QRG:f;_.M("mweb_fix_monitor_visibility_after_render")?K&&Md(function(){xtG(K,d,f)}):Md(function(){xtG(K,d,f)})};
F3S=function(K){var d=K.data;var f=K.uniqueId;K=K.overrides;var H,D=((H=d.timedAnimationData)==null?void 0:H.animationTiming)||[];return _.U("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.U(NT,{settings:{uniqueId:f,timings:D,experimentEnabled:D.length>0,enabled:D.length>0}},RuB(d.buttonRenderer,{buttonRenderer:{buttonOverrides:K}})))};
MkG=function(K){zuo||(zuo=Xqz(new _.mS(1,void 0,void 0,vtX),0));var d=zuo.format(Math.floor(K));d=_.bA==="be"||_.bA==="bg"||_.bA==="es"||_.bA==="et"||_.bA==="hu"||_.bA==="ka"||_.bA==="lv"||_.bA==="pl"||_.bA==="pt-PT"||_.bA==="sq"?d.replace(new RegExp("^(\\d)"+vtX.GROUP_SEP.replace(".","\\.")+"(\\d+("+vtX.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):d;return K>=1E3&&K<=9999&&d[1]==="."&&(_.bA==="sl"||_.bA==="it")?d.replace(".",""):d};
PDJ=function(K,d){gl("ytd-button-renderer",{data:K,className:d?d.className:"",overrides:d==null?void 0:d.buttonOverrides},BC)};
NMp=function(K,d,f,H){if(K)return H=H||K.likeStatus,d?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:H==="LIKE",isDisabled:!K.likesAllowed,defaultIcon:{iconType:f},defaultText:H==="LIKE"?K.likeCountWithUnlikeText:K.likeCountText,toggledText:H==="LIKE"?K.likeCountText:K.likeCountWithLikeText,defaultNavigationEndpoint:gtO(K,"LIKE"),defaultServiceEndpoint:Obn(K,"LIKE"),toggledServiceEndpoint:Obn(K,"INDIFFERENT"),defaultTooltip:_.qQ(K.likeCountTooltipText),toggledTooltip:_.qQ(K.likeCountTooltipText),
targetId:K.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:H==="DISLIKE",isDisabled:!K.likesAllowed,defaultIcon:{iconType:f},defaultText:H==="DISLIKE"?K.dislikeCountWithUndislikeText:K.dislikeCountText,toggledText:H==="DISLIKE"?K.dislikeCountText:K.dislikeCountWithDislikeText,defaultNavigationEndpoint:gtO(K,"DISLIKE"),defaultServiceEndpoint:Obn(K,"DISLIKE"),toggledServiceEndpoint:Obn(K,"INDIFFERENT"),defaultTooltip:_.qQ(K.dislikeCountTooltipText),
toggledTooltip:_.qQ(K.dislikeCountTooltipText)}};
gtO=function(K,d){if(d==="LIKE")return K.likeCommand;if(d==="DISLIKE")return K.dislikeNavigationEndpoint};
Obn=function(K,d){var f;return(f=K.serviceEndpoints)==null?void 0:f.find(function(H){var D;return((D=_.P(H,_.bc))==null?void 0:D.status)===d})};
_.otB=function(K,d,f){return window.spf&&!_.M("web_disable_spfjs_client")?YHJ(K,d,f):tkn(K,d)};
YHJ=function(K,d,f){var H=null,D=(new _.ip(function(S,n){var u={};if(d){u.method=d.method;var a=d.postParams||{};x5z(K,d)&&(a[_.mD("XSRF_FIELD_NAME")]=_.mD("XSRF_TOKEN"));u.postData=_.c6(a);d.type&&(u.type=d.type);a=d.headers}u.headers=TXG(K,a);_.M("debug_forward_web_query_parameters")&&(K=_.j4u(K,window.location.search));u.experimental_headers=u.headers;u.onError=function(R){R.err&&R.xhr&&(R.err.params={url:R.xhr.responseURL,response:R.xhr.responseText.substr(0,64)});n(R.err)};
u.onPartDone=function(R){f&&f.call(null,R.part)};
u.onDone=function(R){var F=$LX(R.response,"xsrf_token");sb(window.location.href,K)&&F&&_.bx("XSRF_TOKEN",F);if(F=$LX(R.response,"service_worker_killswitch"))_.bx("SERVICE_WORKER_KILLSWITCH",F),M_Y();S(R.response)};
H=spf.request(K,u)})).then(EtO);
D.thenCatch(function(S){var n=S instanceof _.mf,u=S&&S.hasOwnProperty("params")&&S.params.response?S.params.response:"";S instanceof Error&&(u?n?$dz(S):u===')]}\'\n{"reload":"now"}'?$dz(S):(huY(S,K,u),bbu(S,u)?_.h3(S):_.$7(S)):$dz(S));H&&H.abort()});
return D};
EtO=function(K){if(K.type==="multipart"){var d=K.timing;K=K.parts.reduce(function(f,H){Object.assign(f,H);return f},{});
K.timing=K.timing||{};Object.assign(K.timing,d);K.type="reduced"}return K};
tkn=function(K,d){d=d===void 0?{}:d;var f=null,H=new _.ip(function(D,S){d.onFinish=function(n){if(n.readyState===XMLHttpRequest.DONE)if(n.status===200){if(n.responseType!=="json"){var u=n.response;u.substring(0,5)===")]}'\n"&&(u=u.substring(5));try{var a=JSON.parse(u)}catch(R){a=R}}else a=n.response;a instanceof Error?S(a):(u=$LX(a,"xsrf_token"),sb(window.location.href,K)&&u&&_.bx("XSRF_TOKEN",u),n=n.responseURL,window.performance&&window.performance.getEntriesByName?(u=window.performance.getEntriesByName(n).pop())?
n={responseStart:(0,_.k_)()-(u.responseEnd-u.responseStart)}:(Math.random()<.01&&(u=Error("$h"),u.params=n,_.h3(u)),n={responseStart:-1}):n={responseStart:0},a.timing=a.timing||{},Object.assign(a.timing,n),D(a))}else S(Error("Zh`"+n.status))};
(f=_.iH(K,d))||S(Error("Zh`"+f.status))});
H.thenCatch(function(D){D instanceof Error&&(huY(D,K),bbu(D)&&(D.level="WARNING"))});
_.M("cancel_pending_navs")&&H.thenCatch(function(){f.abort()});
return H};
$LX=function(K,d){var f=K[d],H=K.parts;K.type==="multipart"&&H&&(f=(K=H.find(function(D){return d in D}))&&K[d]);
return f};
huY=function(K,d,f){var H=K.message||"";d={original:H,url:d};if(f)if(H=H.match(/position:?\s*(\d+)/)){H=H&&Number(H[1])?Number(H[1]):0;var D=Math.max(H-25,0);d.position=H;d.response=f.substring(D,H+25)}else d.response=f.substring(0,50);_.bp(K,d);try{K.message="JSON parse error"}catch(S){}};
bbu=function(K,d){K=K.message||"";K=!!(K.indexOf("<")>=0||K.indexOf("end of ")>=0||K.indexOf("Unterminated string")>=0||K.indexOf("Unexpected EOF"));if(!K&&d)for(var f=d.length,H=!1,D=0;D<f;D++)if(H&&d[D]==="\\")D++;else if(d[D]==='"')H=!H;else if(d[D]==="<"&&!H){K=!0;break}return K};
mLz=function(){return document.documentElement.hasAttribute("dark")};
_.ljX=function(K,d){if(K!=="GFEEDBACK"&&K!=="GUIDED_HELP")_.G2(Error("ai`"+K));else{var f=_.eq().resolve(_.Zd(_.jC));if(f&&(f=f.getCurrentPage())&&f.getServiceTrackingParams&&(f=f.getServiceTrackingParams()))for(var H=0,D;D=f[H++];)if(D.service===K){if(K=D.params)for(f=0;H=K[f++];)d[H.key]=H.value;break}}};
_.W3u=function(K){var d=_.xP();d&&(d=d.getPlayer())&&(d.pauseVideo(),K.playback_id=d.getVideoData().cpn,K.eid=d.getVideoData().eventId,Object.assign(K,d.getFeedbackProductData()))};
GVJ=function(){var K={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.mD("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(K.enableAnonymousFeedback=!0);_.mD("SESSION_INDEX")&&(K.authuser=String(_.mD("SESSION_INDEX")));_.M("enable_pageid_for_feedback")&&_.mD("DELEGATED_SESSION_ID")&&(K.pageId=String(_.mD("DELEGATED_SESSION_ID")));return K};
_.lc=function(K){_.M("enable_ypc_spinners")&&_.ev(K,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},K])};
_.W$=function(K){_.M("enable_ypc_spinners")&&_.ev(K,"yt-close-popup-action",["yt-loading-renderer"])};
Axp=function(K){return new Promise(function(d,f){_.EP({verifyCommand:{recaptchaToken:K.recaptchaResponse}},{commandController:{onSuccess:function(H,D){D||f("ChallengeService did not return a response.");var S;d({challengeCompleted:(S=D.verified)!=null?S:!1})},
onServerError:function(H,D){f(D)}}})})};
TMX=function(K,d,f,H){d({recaptchaResponse:H}).then(function(D){D.challengeCompleted?_.R0()?(f(3),_.eq().resolve(_.pQ).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:K}})):f(2):f(4)},function(){f(4)})};
rxz=function(K,d,f){_.mV("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.mD("HL"),function(){var H;(H=window.grecaptcha)==null||H.ready(function(){var D=window.grecaptcha;D?(f(D.render(K,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:TMX.bind(null,K,Axp,d)})),d(1)):d(4)})})};
qHn=function(K,d){return function(){switch(d()){case 0:return K().captchaLoadingMessage;case 1:return K().challengeReason;case 3:return K().captchaSuccessfulMessage;case 2:return K().captchaCookieSetFailureMessage;case 4:return K().captchaFailedMessage;default:return K().challengeReason}}()};
_.GD=function(){if(!QgJ){var K=document.querySelector("#player.skeleton");K&&(_.FE(K),QgJ=!0)}};
_.CDz=function(){return jgX=Pmp()};
BMu=function(){return _.c(function(K){return xLB!==void 0?K.return():_.I(K,L3o(),0)})};
L3o=function(){return _.c(function(K){if(K.nextAddress==1)return _.I(K,OIO(),2);jgX=K.yieldResult;xLB=_.oc.addLowPriorityJob(L3o,5E3);_.iQ(K)})};
euz=function(K){var d=d===void 0?JxS:d;var f,H,D=(f=K.responseContext)==null?void 0:(H=f.mainAppWebResponseContext)==null?void 0:H.trackingParam;if(!D){d.increment("MISSING");var S,n,u,a,R,F;_.h3(new _.X4("282054944_a",{nRT:!!((S=K.responseContext)==null?0:(n=S.mainAppWebResponseContext)==null?0:n.loggedOut),z1T:((u=K.responseContext)==null?void 0:u.mainAppWebResponseContext)===void 0,mpe:K.responseContext===void 0,rqD:(a=K.playabilityStatus)==null?void 0:a.contextParams,d1r:(((R=K.streamingData)==
null?void 0:R.formats)||[]).length>0,slr:(((F=K.streamingData)==null?void 0:F.adaptiveFormats)||[]).length>0,os:!!K.offlineState,cotn:K.cotn}));return 2}f="";try{f=sgY(D)}catch(g){return d.increment("C_ERROR"),_.$7(g),2}try{var z=_.kVX(f);var v=wqo(z)}catch(g){return d.increment("P_ERROR"),_.$7(g),2}v=_.e4(v,ZbX,1,_.p0());D=[];v=_.y(v);for(z=v.next();!z.done;z=v.next())H=z.value,z=H.getPath(),f=(0,_.PR.getValueByKeys)(K,z.split(".")),f=String(f===void 0||f===null?"":f),H=H.getValue()||"",S=/[+\-\/_]/g,
f.replace(S,"")!==H.replace(S,"")&&(d.increment("MISMATCH"),_.M("ab_mis_log_err")&&(f=new _.X4("282054944_p",{fL4:z,g:String(f),e:String(H)}),_.$7(f)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(z)||(z.match(/enforcementMessageViewModel/i)?D.push(3):D.push(2)));if(D.length>0)return Math.max.apply(Math,_.Me(D));d.increment("SUCCESS");return 1};
dwB=function(K){var d=new qj;if(K.interpreterJavascript){var f=_.M3o(K.interpreterJavascript);f=Wg(f).toString();var H=new pqB;_.aL(H,6,f);_.fM(d,1,H,CJ)}else K.interpreterUrl&&(f=_.$K(K.interpreterUrl),f=_.nM(f).toString(),H=new _.KpN,_.aL(H,4,f),_.fM(d,2,H,CJ));K.interpreterHash&&_.Qb(d,3,K.interpreterHash,CJ);K.program&&_.Qb(d,4,K.program,CJ);K.globalName&&_.Qb(d,5,K.globalName,CJ);K.clientExperimentsStateBlob&&_.Qb(d,7,K.clientExperimentsStateBlob,CJ);return d};
jd=function(K){var d={};K=_.y(K.split("&"));for(var f=K.next();!f.done;f=K.next())f=f.value.split("="),f.length===2&&(d[f[0]]=f[1]);return d};
f15=function(K){return Number(K.t)||7200};
$oB=function(){if(_.M("bg_st_hr"))return"havuokmhhs-0";var K,d=((K=performance)==null?void 0:K.timeOrigin)||0;return"havuokmhhs-"+Math.floor(d)};
HHS=function(){return new Promise(function(K){var d=window.top;d.ntpevasrs!==void 0?K(new CY(d.ntpevasrs)):(d.ntpqfbel===void 0&&(d.ntpqfbel=[]),d.ntpqfbel.push(function(f){K(new CY(f))}))})};
Dwp=function(K){var d=K.ot6.bind(K);_.B6("yt.aba.att",d);K=K.oVQ.bind(K);_.B6("yt.aba.att2",K)};
Suo=function(K){switch(_.ny(K.input)){case _.CF(V9N):var d={};return d.encryptedVideoId=K.innerTubeRequest.externalVideoId,d}return{}};
nNz=function(K){switch(_.ny(K.input)){case _.CF(V9N):if(_.M("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.CF(x6):if(_.M("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&K.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.CF(y8Y):var d,f;if(_.M("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((f=_.P((d=K.config)==null?void 0:d.command,
zfN))==null?0:f.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.c85=function(K){var d;if(K.playlistVideoRenderer&&((d=K.playlistVideoRenderer)==null?0:d.engagementBar))return iHN(K.playlistVideoRenderer.engagementBar);if(_.P(K,LY)){var f;if(K=(f=_.P(K,LY))==null?void 0:f.engagementBar)return iHN(K)}return""};
iHN=function(K){if(!K)return"";K=_.P(K,_.uFz);if(K==null||!K.actions)return"";K=_.y(K.actions);for(K=K.next();!K.done;K=K.next()){K=_.P(K.value,_.a1p);var d=void 0;if((d=K)==null||!d.itemId)break;return K.itemId}return""};
_.I1N=function(K){var d;if(K.playlistVideoRenderer&&((d=K.playlistVideoRenderer)==null?0:d.videoId))return K.playlistVideoRenderer.videoId;if(_.P(K,LY)){var f,H;if(K=(f=_.P(K,LY))==null?void 0:(H=f.playlistItemData)==null?void 0:H.videoId)return K}return""};
_.UwS=function(K){var d;if(K.playlistVideoRenderer&&((d=K.playlistVideoRenderer)==null?0:d.voteCount))return K.playlistVideoRenderer.voteCount;if(_.P(K,LY)){var f,H;if(K=(f=_.P(K,LY))==null?void 0:(H=f.playlistItemData)==null?void 0:H.voteCount)return K}return 0};
_.B$=function(K,d){return _.DR(K.entities,"flowStateEntity",d)};
FpX=function(K,d,f,H){var D=void 0;K=_.y(K[d.iconName]||[]);for(var S=K.next();!S.done;S=K.next()){S=S.value;var n=d.iconSize;var u=d.iconStyle;n=!n||n===S[2];var a=RhG[S[0]];H&&H!==S[1]||!n||u&&u!==a?u=!1:D?(u=RhG[S[0]],u=!!d.iconStyle||u==="youtube_outline",n=D.version<=S[1],u=(!!d.iconSize||S[2]===24)&&u&&n):u=!0;u&&(D={name:d.iconName,style:RhG[S[0]],size:S[2],version:S[1],allowMirroring:!!S[3],url:f(d.iconName,S)})}return D};
zhN=function(K,d,f,H){return K+(""+RhG[f[0]]+((H===void 0?0:H)?"_experimental":"")+"/"+d+"/v"+f[1]+"/")+(f[2]+"px.svg")};
Jb=function(K){return _.M("web_bookmark_playlist_save_icon")?"bookmark":K};
XlY=function(K,d){return zhN("https://fonts.gstatic.com/s/i/",K,d)};
vNB=function(K,d){return zhN("https://fonts.gstatic.com/s/i/",K,d,!0)};
M9S=function(K,d){return zhN("https://www.gstatic.com/youtube/img/icons/web/",K,d)};
Pjp=function(K){var d=K.enabled;var f=K.itemPlaybackModel;var H=K.thumbnailElRef;var D=K.containerElRef;var S=K.options;var n;_.ol(function(){var u=D==null?void 0:D.value;var a,R=(a=H())==null?void 0:a.value;a=f();var F=S();if(d&&a&&u&&R&&(F==null?0:F.thumbnail)){var z,v;u={mediaRenderer:{data:a,hostElement:u},lockupElement:u,thumbnailElement:R,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.$A((z=a.inlinePlayerData)==null?void 0:z.onVisible),navigationEndpoint:_.$A((v=a.inlinePlayerData)==
null?void 0:v.onSelect),thumbnail:F.thumbnail,thumbnailOverlays:F.thumbnailOverlays||[],accessibilityText:F.accessibilityText||""},thumbnailSize:F.thumbnailSize,enableRounding:F.enableRounding}}}else u=void 0;if(z=u){var g;(g=n)==null||s8(g);n=Av(z)}});
_.$F(function(){var u;(u=n)==null||s8(u)})};
gNz=function(K){K=atob(K);for(var d=[],f=0;f<K.length;f++)d.push(K.charCodeAt(f));return new Blob([new Uint8Array(d)],{type:"image/png"})};
NbS=function(K,d,f,H){H=H===void 0?"INSERTION_POSITION_UNSPECIFIED":H;return K({targetId:d},function(D){var S,n=(S=D.contents)!=null?S:[];S=f!=null?f:[];var u=OHY(n);switch(H){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},D,{contents:[].concat(_.Me(n.slice(0,u)),_.Me(S),_.Me(n.slice(u+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},D,{contents:[].concat(_.Me(S),_.Me(n))});case "INSERTION_POSITION_LAST":return Object.assign({},D,{contents:[].concat(_.Me(n),_.Me(S))});
default:return D}})};
t9X=function(K,d,f,H,D){D=D===void 0?"RELATIVE_INSERTION_POSITION_AFTER":D;return K({targetId:d},function(S){var n,u=(n=S.contents)!=null?n:[];n=YuX(u,f);if(n<0)return S;n=D==="RELATIVE_INSERTION_POSITION_BEFORE"?n:n+1;return Object.assign({},S,{contents:[].concat(_.Me(u.slice(0,n)),_.Me(H),_.Me(u.slice(n)))})})};
OHY=function(K){var d=K.findIndex(function(f){return _.P(f,_.k6)});
return d>=0?d:K.length};
YuX=function(K,d){return K.findIndex(function(f){a:{f=_.y(Object.values(f));for(var H=f.next();!H.done;H=f.next())if((H=H.value)&&H.targetId){f=H.targetId;break a}f=""}return f===d})};
$wO=function(K,d,f){return K({targetId:d},function(H){var D,S=(D=H.contents)!=null?D:[];return Object.assign({},H,{contents:oNJ(S,f)})})};
oNJ=function(K,d){return K.filter(function(f){var H=d.includes;a:{f=_.y(Object.values(f));for(var D=f.next();!D.done;D=f.next())if((D=D.value)&&D.targetId){f=D.targetId;break a}f=""}return!H.call(d,f||"")})};
_.ENo=function(K,d){return{engagementPanelSectionListRenderer:{panelIdentifier:K,identifier:d,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
hhS=function(K){return K.getOption("captions","tracklist",{includeAsr:!0})};
bHN=function(K){var d=hhS(K);if(d==null?0:d.length)return d;K.loadModule("captions");return hhS(K)};
mwz=function(K,d,f){if(K.getVideoData){var H,D=(H=bHN(K))==null?void 0:H.find(function(S){return S.languageCode===f});
H=_.HJ("/youtube/app/player_caption_language_entity_key","stringEntity",2);d.dispatch(_.nt("stringEntity",H,{key:H,value:(D==null?void 0:D.displayName)||""}));D?K.setOption("captions","track",D):(K.setOption("captions","stickyLoading",{}),K.setOption("captions","track",{}))}};
l1z=function(K){return K.getOption("captions","tracklist",{includeAsr:!0})};
Wpo=function(K){return K.getOption("captions","tracklist",{includeAsr:!0})};
GXp=function(K){var d=Wpo(K);if(d==null?0:d.length)return d;K.loadModule("captions");return Wpo(K)};
A8p=function(K){var d=K.getOption("captions","track");if(d)return d;K.loadModule("captions");return K.getOption("captions","track")};
TbJ=function(K){var d=GXp(K);if(d!=null&&d.length){var f=A8p(K);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.iB("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(f==null?0:f.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Me(d.map(function(H){return{listItemViewModel:{title:{content:H.displayName},
isSelected:H.languageCode===(f==null?void 0:f.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:H.languageCode}}]}}}}}}}})))}}}}}}}}};
jx5=function(K){return new Promise(function(d,f){if(K===void 0)_.$7(Error("Bi"),"ERROR"),f(Error("Bi"));else{f=new _.r8B;var H=_.quO();f=f.init();var D=_.QxG(_.mD("YPC_MB_URL"),!0);Promise.all([f,D]).then(function(){var S=payments.business.integration.ClientTokenFactory.createClientToken(K,H);d(S)})}})};
LpO=function(K,d,f,H,D,S,n){var u=_.Gz();f=f.replace(/-/g,"+").replace(/_/g,"/");var a=_.aS().get("hl"),R=_.w3(_.rm),F=d==null?void 0:d.element;F&&_.lc(F);Cjz(d,!0);_.xwz(R,f,u.resolve,function(){F&&_.W$(F)},function(z){F&&_.W$(F);
u.reject(z)},a,H?function(z){H&&_.Wp(K,H,{backend_analytics:z})}:void 0,u.resolve,D,S,n);
return u.promise};
Cjz=function(K,d){!(K=K==null?void 0:K.element)||K.tagName!=="YT-BUTTON-RENDERER"&&K.tagName!=="YTD-BUTTON-RENDERER"||(K.disabled=d)};
BbX=function(){var K=_.iB("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.kJ(K),actionButton:{buttonRenderer:Pao()}}},popupType:"TOAST"}};
J8O=function(){var K=_.iB("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.kJ(K),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
sxz=function(K){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:K}]}}};
Zl=function(K,d,f,H){var D;return _.c(function(S){if(S.nextAddress==1)return _.HF(S,2),_.I(S,K,4);if(S.nextAddress!=2)return(D=_.RO(d.getState().entities).length>0)?S.return({title:_.kJ(_.iB("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.kJ(_.iB("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:MLS()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
S.return(ggn(f,H));_.n7(S);return S.return(ggn(f,H))})};
kXu=function(K,d){return d?d==="PPSV"||mgX(K,d):!1};
wlG=function(K){K.responseContext||(K.responseContext={});K.responseContext.maxAgeSeconds=0;return K};
pY=function(K){var d;return _.c(function(f){return f.nextAddress==1?_.I(f,ZHS(K,"service:topbar:fallback"),2):(d=f.yieldResult)&&_.ed(d)?f.return(wlG(_.ed(d))):f.return()})};
ehJ=function(K){var d;return _.c(function(f){return f.nextAddress==1?_.I(f,ZHS(K,"service:downloads_settings:fallback"),2):(d=f.yieldResult)&&_.ed(d)?f.return(d):f.return()})};
ZHS=function(K,d){var f;return _.c(function(H){if(H.nextAddress==1)return K?_.I(H,K.get(d),2):H.return();f=H.yieldResult;return!f||!_.ed(f)||!isNaN(Number(f.data.expireTimestampMs))&&f.isExpired()?H.return():H.return(f)})};
plJ=function(K){var d=_.eq().resolve(Ks).getState().entities;return K.playlistId?kXu(d,K.playlistId):!1};
KBG=function(K,d){var f;if(d==null?0:(f=d.requestTemplate)==null?0:f.panelId)K.panelId=d.requestTemplate.panelId;var H;if(d==null?0:(H=d.requestTemplate)==null?0:H.params)K.params=d.requestTemplate.params};
fOz=function(){if(d4X)return d4X();var K=!_.M("idb_response_store_auth_killswitch"),d={};d4X=sF("yt-it-response-store",{objectStores:(d.ResponseStore={addedAtVersion:1},d),shared:!K,upgrade:function(f,H){H(1)&&(f=WA(f,"ResponseStore",{keyPath:["key","clientName"]}),G7(f,"byExpiration","expireTimestampMs"),G7(f,"byInterface","clientName"))},
version:1});return d4X()};
HzN=function(K){return _.qX(fOz(),K)};
Vz5=function(K,d){var f;return _.c(function(H){return H.nextAddress==1?_.I(H,_.J9(),2):(f=H.yieldResult)?H.return(new D4N(K,d,f)):H.return()})};
SWX=function(K){var d=Object.keys(K)[0];if(d)return K.screenExit&&(d=d+";"+K.screenExit.screen),d};
yrX=function(K){var d=new Map;K=_.y(K);for(var f=K.next();!f.done;f=K.next())f=f.value,f!=null&&(d.has(f.taskType)||d.set(f.taskType,[]),d.get(f.taskType).push(f));return d};
nUY=function(K){return!isNaN(K)&&K>0};
iz5=function(K){K=[].concat(_.Me(K)).sort(function(f,H){return f-H});
var d=Math.floor(K.length/2);return K.length%2?K[d]:(K[d-1]+K[d])/2};
aOn=function(K,d){K=K===void 0?IFY:K;d=d===void 0?{}:d;_.B6("yt.logging.errors.log",_.$7);uqB();crX(XvG(),d);window.onerror=K;u65=aFS;window.addEventListener("unhandledrejection",function(f){if(f.reason instanceof Error){var H=f.reason;_.bp(H,{source:"unhandledrejection"});H.name==="AbortError"&&(H.level="WARNING")}aFS(f.reason);f.preventDefault()})};
_.IOY=function(K){return K.a11y.ephemeralAction||null};
_.U4o=function(K){var d,f,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J,L,fB,w,yO,FX,NJ,$z,hN,bo,xz,qJ,Y8,Iz,qs,af,i9,KE,c4,cx,Oj,io;return _.c(function(g2){if(g2.nextAddress==1)return _.I(g2,_.cJ(K,{mode:"readonly",enableRetries:!0},function(l9){return uA(l9,"playbackData").then(function(rw){var t6=rw.map(function(wz){return wz.transfer}).filter(function(wz){return!!wz}),LJ=rw.map(function(wz){return wz.offlineVideoPolicy}).filter(function(wz){return!!wz}),ry=rw.filter(function(wz){return!!wz.key}).map(function(wz){return _.HJ(_.KF(wz.key).entityId,
"downloadStatusEntity")});
t6=uA(l9,"transfer",t6);LJ=uA(l9,"offlineVideoPolicy",LJ);ry=uA(l9,"downloadStatusEntity",ry);var u9=t6.then(function(wz){wz=wz.reduce(function(Ms,yc){(yc==null?0:yc.offlineVideoStreams)&&Ms.push.apply(Ms,_.Me(yc.offlineVideoStreams));return Ms},[]).filter(function(Ms){return!!Ms});
return uA(l9,"offlineVideoStreams",wz)});
return lH.all([t6,LJ,u9,ry]).then(function(wz){var Ms=_.y(wz);wz=Ms.next().value;var yc=Ms.next().value;var P4=Ms.next().value;Ms=Ms.next().value;return[rw,wz,yc,P4,Ms]})})}),2);
if(g2.nextAddress!=3)return d=g2.yieldResult,_.I(g2,_.cJ(K,{mode:"readonly",enableRetries:!0},function(l9){return uA(l9,"mainDownloadsListEntity").then(function(rw){var t6,LJ;return(LJ=(t6=rw[0])==null?void 0:t6.downloads)!=null?LJ:[]})}),3);
f=g2.yieldResult;H=_.y(d);D=H.next().value;S=H.next().value;n=H.next().value;u=H.next().value;a=H.next().value;R=D;F=S;z=n;v=u;g=a;N={};h={};m={};T={};r={};J=[];L=_.y(F);for(fB=L.next();!fB.done;fB=L.next())(w=fB.value)&&(N[w.key]=w);yO=_.y(z);for(FX=yO.next();!FX.done;FX=yO.next())(NJ=FX.value)&&(h[NJ.key]=NJ);$z=_.y(g);for(hN=$z.next();!hN.done;hN=$z.next())(bo=hN.value)&&(m[bo.key]=bo);xz=_.y(v);for(qJ=xz.next();!qJ.done;qJ=xz.next())(Y8=qJ.value)&&(T[Y8.key]=Y8);Iz=_.y(f);for(qs=Iz.next();!qs.done;qs=
Iz.next())af=qs.value,i9=void 0,r[(i9=af.videoItem)!=null?i9:""]=!0,af.videoItem&&(c4=KE=void 0,cx=(c4=(KE=_.KF(af.videoItem))==null?void 0:KE.entityId)!=null?c4:"",J.push({externalVideoId:cx}));Oj=R.filter(function(l9){if(!l9||!l9.key||!l9.offlineVideoPolicy)return!1;l9=_.KF(l9.key).entityId;l9=_.HJ(l9,"downloadStatusEntity");var rw;return!(l9&&((rw=m[l9])==null?void 0:rw.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
io=Oj.map(function(l9){var rw=N[l9.transfer],t6=[];if(rw==null?0:rw.offlineVideoStreams)for(var LJ=_.y(rw.offlineVideoStreams),ry=LJ.next();!ry.done;ry=LJ.next())(ry=T[ry.value])&&t6.push(ry);LJ=h[l9.offlineVideoPolicy];ry=r;var u9=l9==null?void 0:l9.playerResponseTimestamp,wz=_.KF(LJ.key).entityId;l9=_.HJ(wz,"mainVideoEntity");if(LJ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Ms="OFFLINE_VIDEO_STATE_DISABLED";LJ.expirationTimestamp&&Number(LJ.expirationTimestamp)<Date.now()/1E3&&(Ms="OFFLINE_VIDEO_STATE_EXPIRED")}else if(LJ.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Ms="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(rw==null?void 0:rw.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Ms="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Ms="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Ms="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Ms="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Ms="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Ms="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Ms="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Ms==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(rw==null?void 0:rw.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Ms="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Ms="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Ms=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}wz={id:wz,videoState:Ms};if(rw==null?0:rw.cotn)wz.cotn=rw.cotn;if(rw==null?0:rw.maximumDownloadQuality)wz.selectedVideoQuality=rw==null?void 0:rw.maximumDownloadQuality;if(rw==null?0:rw.lastProgressTimeMs)wz.lastProgressTimeMs=rw.lastProgressTimeMs;u9&&(wz.playerResponseSavedTimeMs=String(Number(u9)*1E3));rw=String;u9=0;t6=_.y(t6);for(Ms=t6.next();!Ms.done;Ms=t6.next())if(Ms=Ms.value,Ms.streamsProgress){Ms=_.y(Ms.streamsProgress);for(var yc=Ms.next();!yc.done;yc=
Ms.next()){var P4=void 0;u9+=Number((P4=yc.value.numBytesDownloaded)!=null?P4:0)}}wz.downloadedBytes=rw(u9);wz.selectedOfflineMode=ry[l9]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";LJ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(wz.offlinePlaybackDisabledReason=LJ.offlinePlaybackDisabledReason);return wz});
return g2.return({offlineVideos:io,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:J}}})})};
RV5=function(){var K;return _.c(function(d){return d.nextAddress==1?_.I(d,_.yj(),2):(K=d.yieldResult)?d.return(_.U4o(K)):d.return({state:"PES Unavailable"})})};
XiN=function(){var K,d,f,H;return _.c(function(D){if(D.nextAddress==1)return _.I(D,_.yj(),2);if(D.nextAddress!=3)return(K=D.yieldResult)?_.I(D,FBp(K),3):D.return({state:"PES Unavailable"});d=D.yieldResult;f={};H=d.reduce(function(S,n){S[n.key]=n;return S},f);
return D.return(zVJ(H))})};
zVJ=function(K){for(var d={},f=[],H=_.y(Object.keys(K)),D=H.next();!D.done;D=H.next()){var S=D.value;D=K[S];var n=void 0;if(((n=D)==null?void 0:n.entityType)==="mainVideoEntity"){delete K[S];var u=D.data;D={};if(u){var a=void 0;n=(a=u.videoId)!=null?a:"vid-"+S;S=K;D.video=u;delete D.video.formattedDescription;delete D.video.thumbnail;u.owner&&(a=S[u.owner],a==null?0:a.data)&&(delete S[a.key],D.video.owner=a.data,delete D.video.owner.avatar);if(u=u.downloadState)if(a=S[u],a==null?0:a.data)if(delete S[u],
u=a.data.playbackData)if(a=S[u],a!=null&&a.data){delete S[u];u=a.data;delete u.playerResponseJson;D.playbackData=u;if(u.transfer&&(a=S[u.transfer],a==null?0:a.data)){delete S[a.key];var R=a.data;D.transfer=R;a=[];R=_.y(R.offlineVideoStreams||[]);for(var F=R.next();!F.done;F=R.next())if(F=S[F.value])delete S[F.key],a.push(F.data);a&&(D.streams=a)}(u=u.offlineVideoPolicy)&&(u=S[u])&&u.data&&(delete S[u.key],D.offlineVideoPolicy=u.data)}d[n]=D}}else D&&D.entityType==="offlineOrchestrationActionWrapperEntity"&&
D.data&&(delete K[D.key],n=D.data,S=void 0,f.push({id:n.rootActionId,type:((S=n.actionProto)==null?void 0:S.actionType)||"",entity:D}))}d.wrapperEntities=f;Object.keys(K).length>0&&(d.unknownKeys=K);return d};
vUn=function(){var K,d,f,H,D,S,n,u,a;return _.c(function(R){if(R.nextAddress==1)return K=!!(new _.mn("")).expiringStorage_,H=!!((d=_.Hu.crypto)==null?0:(f=d.subtle)==null?0:f.importKey),D=!!_.Hu.BroadcastChannel,S=!!_.Hu.navigator.locks,_.I(R,xuJ(),2);n=R.yieldResult;u=K&&H&&D&&S&&n;a={isSupported:u};if(u)return R.return(a);a.missingBrowserFeatures=[];n||a.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");K||a.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
H||a.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");D||a.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");S||a.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return R.return(a)})};
MzN=function(){var K;return!((K=d7?d7:null)==null||!K.window)};
_.gUz=function(K){if(_.m5()&&_.uXS("Chromium")>=120){var d=_.PKz().mediaSession;try{d.setActionHandler("enterpictureinpicture",function(){K()})}catch(f){}}};
OzN=function(K){for(var d=[],f=_.y(document.styleSheets),H=f.next(),D={};!H.done;D={node$jscomp$725:void 0},H=f.next())D.node$jscomp$725=H.value.ownerNode,D.node$jscomp$725&&(D.node$jscomp$725 instanceof HTMLStyleElement||D.node$jscomp$725 instanceof HTMLLinkElement)&&d.push(new Promise(function(S){return function(n){var u=S.node$jscomp$725.cloneNode(!0);u.onload=function(){n()};
u.onerror=function(){_.h3(Error("dj"));n()};
K.document.head.appendChild(u)}}(D)));
return Promise.all(d)};
lOG=function(K){var d=[_.Zw(NpO),_.Zw(YWX),_.Zw(tzB)];oUO(window.document.documentElement,K.document.documentElement,[_.Zw($4J),_.Zw(EU5),_.Zw(hVX),_.Zw(bzB),_.Zw(m4u)]);oUO(window.document.body,K.document.body,d)};
oUO=function(K,d,f){K=_.y(K.attributes);for(var H=K.next();!H.done;H=K.next())if(H=H.value)try{_.r5(f,d,H.name,H.value)}catch(D){}};
GqG=function(K,d){K=new _.fs(K.document.documentElement);K.start(WBO,d);return K};
ArS=function(K){var d=K.document.documentElement;d.addEventListener("click",function(f){$IG(d,f)});
d.addEventListener("touchstart",function(f){lgS(f)});
d.addEventListener("mousedown",function(f){lgS(f)})};
rru=function(K,d,f,H){H=H===void 0?!1:H;d=new TpS(d||K,f||K);return{x:K.x+((H===void 0?0:H)?d.lengthX*-1:d.lengthX)*.2,y:K.y+((H===void 0?0:H)?d.lengthY*-1:d.lengthY)*.2}};
qWp=function(K){if(!K)return!1;var d=K.status==="OK"||K.status==="LIVE_STREAM_OFFLINE",f,H,D,S=(D=(f=K.errorScreen)==null?void 0:f.playerLegacyDesktopYpcTrailerRenderer)!=null?D:(H=K.errorScreen)==null?void 0:H.ypcTrailerRenderer;return!!d||!!S};
_.QAp=function(K,d){if(!K)return!1;var f,H=(f=K.errorScreen)==null?void 0:f.playerLegacyDesktopYpcOfferRenderer,D;d=!!(d==null?0:(D=d.playerOverlayRenderer)==null?0:D.gatedActionsOverlayRenderer);return!!qWp(K)||!!H||!!d};
x4O=function(K){return jA5(K,0,"gclid",K.search(CKp))>=0||jA5(K,0,"gad_source",K.search(CKp))>=0};
JrY=function(K){var d=[],f=0;return{push:function(H){d[f]=H;f=(f+1)%K},
iterate:function(){return function D(){var S,n,u,a;return _.LBp(D,function(R){switch(R.nextAddress){case 1:_.Sl(R,2),S=d.length,n=0;case 4:if(!(n<S)){R.jumpTo(2);break}u=f+n;a=_.BpB;return _.I(R,d[u%S],7);case 7:a(R.yieldResult);n++;R.jumpTo(4);break;case 2:_.Vu(R),_.yu(R,0)}})}()}}};
kqG=function(){var K=_.di("web_max_tracing_events",0);_.M("web_enable_tracing")&&K>0&&sAn(K)};
sAn=function(K){var d=JrY(K);Wwn({enabledSpans:{event:!0},sample:function(f,H){return f==="event"?!wiz.has(H.type):!1},
spanProcessors:[{onSpanStart:function(f){d.push(f)}}]});
OZO.subscribe("handleError",function(f){try{Object.assign(f.params,{breadcrumbs:JSON.stringify(Array.from(d.iterate()))})}catch(H){_.$7(H,"WARNING")}})};
ZzJ=function(K){return new Promise(function(d){window.setTimeout(d,K)})};
eVp=function(K){var d={bicf:function(S){K.oQl=S},
blc:function(){return K.getLatestChallengeResponse()},
bcr:function(S){K.vSc.push(S)}},f=window.top;
f.ntpevasrs=d;if(f.ntpqfbel!==void 0)for(var H=_.y(f.ntpqfbel),D=H.next();!D.done;D=H.next())D=D.value,D(d);f.ntpqfbel=void 0};
piu=function(K){return _.c(function(d){if(d.nextAddress==1)return _.HF(d,2),_.I(d,K.pR6(),4);if(d.nextAddress!=2)return _.Ts(d,0);_.n7(d);_.iQ(d)})};
KYo=function(K){var d,f;(d=K.ytcsi)==null||(f=d.tick)==null||f.call(d,"pot_ist")};
dEz=function(K){if(K instanceof Error){var d=_.T2("yt.logging.errors.log");d&&d(K,"WARNING")}};
fNz=function(K){try{var d=JSON.parse(K);if(d.bgChallenge)return d}catch(f){}};
DEo=function(){var K=window,d={networkStatusManagerPromise:_.eq().resolve(new tWY(_.jc)),initialChallengeSli:_.M("wpo_att_sli")?new _.bx5("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};K=K===void 0?window:K;var f=K.ytAtR,H;d==null||(H=d.initialChallengeSli)==null||_.Hd(H);if(f){if(f=fNz(f)){var D;d==null||(D=d.initialChallengeSli)==null||_.Df(D,"SUCCESS");HkX(f,d)}K.ytAtR=void 0}else K.ytAtRC=function(S){if(S=fNz(S)){var n;d==null||(n=d.initialChallengeSli)==null||
_.Df(n,"SUCCESS");HkX(S,d);K.ytAtRC=void 0}}};
y1X=function(){if(VXz)return VXz;try{var K=_.RQ("IFRAME");_.$G(K,_.p7(SCp));K.sandbox.add("allow-same-origin");K.style.display="none";document.body.appendChild(K);return VXz=K}catch(d){K=new _.X4("Failed to create sandbox iframe"),_.$7(K)}};
nDO=function(K){var d,f;return(f=K==null?void 0:(d=K.contentWindow)==null?void 0:d.fetch)!=null?f:window.fetch};
iku=function(K){var d,f;return(f=K==null?void 0:(d=K.contentWindow)==null?void 0:d.JSON.parse)!=null?f:JSON.parse};
c1X=function(K){var d,f;return(f=K==null?void 0:(d=K.contentWindow)==null?void 0:d.Request)!=null?f:window.Request};
IN5=function(){if(GoG()==="hidden")var K="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else GoG()==="visible"&&(K="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",uYo=null);K&&aNu(K)};
aNu=function(K){if(K==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||K==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(UEY===K)return;UEY=K}var d=9E4+Math.random()*2E3;if(K!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.pA()>d)&&GoG()==="visible"){d=-1;uYo&&(d=Math.round((0,_.k_)()-uYo));var f=String;var H=_.T2("_fact",window);H=H==null||H==-1?-1:Math.max(Date.now()-H,0);_.t3("foregroundHeartbeat",{firstActivityMs:f(H),clientDocumentNonce:a5z,index:String(RDO),lastEventDeltaMs:String(d),trigger:K});
_.B6("_fact",-1,window);RDO++;uYo=(0,_.k_)()}};
_.FYX=function(){try{return!!self.sessionStorage}catch(K){return!1}};
zDu=function(){var K=navigator;return new Promise(function(d,f){var H;(H=K.webkitTemporaryStorage)!=null&&H.queryUsageAndQuota?K.webkitTemporaryStorage.queryUsageAndQuota(function(D,S){d({usage:D,quota:S})},function(D){f(D)}):f(Error("mj"))})};
XBY=function(K,d){var f={errorSeverity:d.errorSeverity.toString(),wizFeatureFlags:Object.entries(d.featureFlags).join("\n")};cJu(d,f);d=d.errorSeverity;d===3?_.$7(K,"ERROR",void 0,void 0,void 0,f):d===2&&_.$7(K,"WARNING",void 0,void 0,void 0,f);_.M("cow_if_errors_in_popup")&&d===3&&K.message.indexOf("<If>")!==-1&&window.alert(K.message)};
vDn=function(K,d,f){K.componentType!==On&&f instanceof HTMLElement&&d&&!_.M("cow_logging_in_component_wrapper")&&UGX(f,d,!0)};
MX5=function(K,d,f){d=d===void 0?{}:d;var H,D=(H=_.P(K.commandMetadata,_.B0))==null?void 0:H.url;H=d.form||{};!f||H.element||H.skipDefaultElement||(d.form=d.form||{},d.form.element=f);if(D&&D!=="/service_ajax")return{type:0,command:K,form:d.form};if(_.M("kevlar_service_command_check")){if(_.lh(_.eq().resolve(_.Nn),K))return Object.assign({},{type:1,command:K},d)}else{var S;if((S=_.P(K.commandMetadata,_.B0))==null?0:S.apiUrl)return Object.assign({},{type:1,command:K},d)}return{type:2,command:K,form:d.form}};
PyX=function(K){if(K.form){var d=K.form,f=Object.assign({},d);d=d.element;f=(delete f.element,f);if(d)return[_.dN(d,[K.command,f,K.commandController])]}return[]};
gDo=function(K){if(K.form){var d=K.form,f=Object.assign({},d);d=d.element;f=(delete f.element,f);d&&_.fd(d,[K.command],d,f)}};
N1S=function(K,d,f){var H=new Okp(K,d),D=new VI(K,d,f);K={"/youtubei/v1/browse":new SH(K,d,f),"/youtubei/v1/player":H,"/youtubei/v1/navigation/resolve_url":new yI,"/youtubei/v1/next":D,"/youtubei/v1/guide":new ns(f),"/youtubei/v1/search":new cd(K,d,f),"/youtubei/v1/reel/reel_item_watch":new uf(K,d,f),"/youtubei/v1/get_watch":new a1(H,D)};K["/youtubei/v1/account/account_menu"]=new I1;K["/youtubei/v1/notification/get_notification_menu"]=new Ua;return K};
Fm=function(){var K=_.eq().resolve(R1);return Promise.resolve(YCY(K,_.Hu.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
tXp=function(K){return K&&(K=_.z$(_.pVG(K)))?(new URLSearchParams(K)).get("service"):null};
Mv=function(K,d){_.pZ(_.Xm(),function(){_.YJ("adl")});
_.eq().resolve(oDS)(d);K=K.root;K.loadData&&K.loadData(d);(d==null?0:d.response)?_.Df(WoX(),"SUCCESS"):_.h3(new _.X4("Lifecycle: No response in data",_.lx("IS_SHELL_LOAD"),d?d.page:"NO_PAGE",d?d.endpoint:"NO_ENDPOINT"));K.polymerController.$["page-manager"].lazyPrepareCriticalPages((d==null?void 0:d.page)||"",d.endpoint);var f,H;((H=_.P(d==null?void 0:(f=d.endpoint)==null?void 0:f.commandMetadata,_.B0))==null?0:H.webPageType)&&_.j3().dispatch(_.vd(_.P(d.endpoint.commandMetadata,_.B0).webPageType))};
$EB=function(){var K,d;return _.c(function(f){switch(f.nextAddress){case 1:K=window;if(!K.getDataPromise){f.jumpTo(2);break}_.HF(f,3);return _.I(f,K.getDataPromise(),5);case 5:return f.return(f.yieldResult);case 3:return _.n7(f),_.I(f,Fm(),6);case 6:return f.return(f.yieldResult);case 2:if(K.getInitialData)return d=K.getInitialData(),K.getInitialData=void 0,f.return(d);throw Error("oj`"+_.Hu.location.href);}})};
hDn=function(){_.bx("CSI_SERVICE_NAME","youtube");_.Ox({loadType:"cold"});_.M("kevlar_log_lcp")&&EDO(function(K){_.YJ("lcp",K.value)})};
bkN=function(){var K=_.rG(document.location.href,"enable");K&&K.indexOf("scraper")>-1&&_.bx("ADD_SCRAPER_ATTRIBUTES",!0)};
A1n=function(K){var d=K.root;K=[mEY,lNo,_.Pd];_.M("web_feedback_endpoint_autolog_allowlist_killswitch")&&K.push(_.g7,WYX);GWS(function(f,H){return MX5(f,H,d)},function(f){if(!f.command)return[];
var H;((H=f.form)==null?0:H.element)?f.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},f.form,{endpoint:f.command})})):d.handleNavigate(f);return[]},K);
_.eq().addProvider({provide:_.pQ,useValue:_.V2.instance})};
r1z=function(){var K={},d={},f;for(f in T1u){var H=_.y(_.cC(T1u[f],void 0,"NBH2te"));K[f]=H.next().value;d[f]=H.next().value}return[K,function(D){for(var S in D){var n=void 0;(n=d[S])==null||n(D[S])}}]};
_.jhG=function(K,d){var f=_.PR.getValueByKeys(K,"contents","twoColumnWatchNextResults","results","results","contents"),H=_.PR.getValueByKeys(K,"contents","twoColumnWatchNextResults","playlist","playlist")||null,D=null,S=null;if(H)D=_.PR.getValueByKeys(H,"titleText"),S=_.PR.unsafeClone(_.PR.getValueByKeys(H,"longBylineText")),f="",S&&(f=_.qQ(S)),S=_.rB(f);else if(f){f=_.y(f);for(var n=f.next();!n.done;n=f.next())n=n.value,n.videoPrimaryInfoRenderer&&(D=_.PR.getValueByKeys.apply(_.PR,[n].concat(_.Me(qCz)))),
n.videoSecondaryInfoRenderer&&(S=_.PR.getValueByKeys.apply(_.PR,[n].concat(_.Me(QhY))))}else _.rF(Error("tj"));var u;K.currentVideoEndpoint?u=K.currentVideoEndpoint:_.rF(Error("uj"));var a;d&&(a=_.PR.getValueByKeys(d,"playabilityStatus","miniplayer","miniplayerRenderer"));K={miniplayerTitle:D,miniplayerSubtitle:S,watchEndpoint:u,playlistData:H};a&&(K.miniplayerRenderer=a);return K};
Cyu=function(K){if(K)return _.Nd(K)};
_.xEY=function(){return{isFullscreen:function(){throw Error("vj");},
toggleFullscreen:function(){throw Error("wj");},
exitFullscreen:function(){throw Error("xj");},
isAutonavEnabled:function(){throw Error("yj");},
setAutonavEnabled:function(){throw Error("zj");},
isAutoplaySetExplicitly:function(){throw Error("Aj");}}};
LYz=function(K){return K.videoDuration?K.numTaps>1&&K.tapDirection!==0?_.Oa(K.draggedTime/K.videoDuration,0,1):_.Oa((K.playedTime||0)/K.videoDuration,0,1):0};
B1z=function(K){return K.videoDuration?K.isDragging||K.numTaps>1&&K.tapDirection!==0?_.Oa(K.draggedTime/K.videoDuration,0,1):_.Oa((K.playedTime||0)/K.videoDuration,0,1):0};
shu=function(K){var d,f,H;return _.P(K==null?void 0:(d=K.markersMap)==null?void 0:(f=d.find(function(D){return D.key==="HEATSEEKER"}))==null?void 0:(H=f.value)==null?void 0:H.heatmap,J1u)};
kWn=function(K){var d,f;return(f=(d=shu(K))==null?void 0:d.heatMarkersDecorations)!=null?f:[]};
wBo=function(K){if(_.M("mweb_supported_chapters_killswitch"))return!0;var d;return!!(K==null?0:(d=K.markersMap)==null?0:d.find(function(f){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(f.key)}))};
_.ZkS=function(K){var d=Object,f=d.assign,H;K={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(H=K==null?void 0:K.getPlayerState())!=null?H:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return f.call(d,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},K,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
eDS=function(K){return function(d){var f=K(),H,D=(H=f.playerApi)==null?void 0:H.getPlayerState();d&&d!==f.playerState&&(d===1||d===2)&&f.setState({playerState:D})}};
KEX=function(K){return function(d){var f=K(),H=f.playerApi;H&&(d==null?void 0:d.type)==="newdata"&&(pBo&&(clearTimeout(pBo),pBo=void 0),_.M("web_shorts_use_progress_state_for_gapless")?(d=H==null?void 0:H.getProgressState(d==null?void 0:d.playertype),d=d.seekableEnd-d.seekableStart):d=H==null?void 0:H.getDuration(d==null?void 0:d.playertype),f.setState({playedTime:0,videoDuration:d}))}};
dRO=function(K){return function(d){var f=K(),H=f.playerApi;if(H){var D=H.getPresentingPlayerType();_.M("web_shorts_use_progress_state_for_gapless")?(H=H.getProgressState(D),H=H.seekableEnd-H.seekableStart):H=H.getDuration(D);f.setState({playedTime:d,videoDuration:H})}}};
DRu=function(K){var d=K.element;var f=K.veType;var H=K.storedVisualElement===void 0?null:K.storedVisualElement;var D=K.elementIndex===void 0?0:K.elementIndex;K=K.clientYouTubeData;var S=_.te();S!==frX&&(HqX.clear(),frX=S);if(d.visualElement&&HqX.has(d.visualElement))return null;if(H&&HqX.has(H))return d.visualElement=H,null;f=_.iz(_.cv(),{veType:f,elementIndex:D,clientYouTubeData:K});if(!f)return null;d.visualElement=f;HqX.add(f);return f};
_.Nv=function(K,d,f,H){f=f===void 0?null:f;H=H===void 0?QRG:H;var D=D===void 0?null:D;Md(function(){if(d){f instanceof Function&&(f=f());var S=DRu({element:d,veType:K,storedVisualElement:f,clientYouTubeData:void 0});S&&(xtG(d,D),H(S))}})};
SUX=function(K){_.Nv(112394,K,function(){return V6z},function(d){V6z=d})};
iqB=function(K,d){if(!K)return[];var f,H,D;K=((f=K.markersMap)==null?void 0:(H=f.find(function(S){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(S.key)}))==null?void 0:(D=H.value)==null?void 0:D.chapters)||[];
!yqn(K)||(d==null?0:d.ignoreStub)||(K=[nRB()].concat(_.Me(K)));return K};
nRB=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
yqn=function(K){if(K.length===0)return!1;var d;return((d=_.P(K[0],Yb))==null?void 0:d.timeRangeStartMillis)!==0};
tm=function(K){return K?K.timeRangeStartMillis||0:0};
uWz=function(K,d){if(K.isDragging&&d)return K=cqo(K,d),K===-1?nRB():iqB(d)[K]};
cqo=function(K,d){return K.isDragging&&d?iqB(d,{ignoreStub:!0}).findIndex(function(f,H,D){f=aro(K);return IrS(f,D,H).scrubberHovering}):-1};
aro=function(K){return Object.assign({},K,{videoDuration:K.videoDuration*1E3,playedTime:K.playedTime*1E3,draggedTime:K.draggedTime*1E3})};
IrS=function(K,d,f){var H=tm(_.P(d[f],Yb));d=tm(_.P(d[f+1],Yb))||K.videoDuration;f=K.isDragging;var D;if(D=K.isDragging)D=K.draggedTime,D=D!==null&&D>=H&&D<d;var S=K.playedTime;return S!==null&&S>=H&&S<d?{videoPosition:"active",isScrubbing:f,scrubberHovering:D}:K.playedTime<H?{videoPosition:"pending",isScrubbing:f,scrubberHovering:D}:{videoPosition:"seen",isScrubbing:f,scrubberHovering:D}};
URu=function(K,d){return K.videoPosition==="seen"||(d===void 0?0:d)>0};
Rbo=function(K,d,f){d=K/d.storyboardInterval;var H=iqB(f);if(!H.length)return-d*72;f=0;H=_.y(H);for(var D=H.next();!D.done;D=H.next())if(tm(_.P(D.value,Yb))/1E3<K)f++;else break;return-(d*72)-f*56};
FEu=function(K){return K?K.width/K.columns:0};
zbz=function(K){return K.isHovering?K.hoveredTime:K.draggedTime};
XDJ=function(K,d){K=K.draggedTime*1E3;return K>=d.visibleTimeRangeStartMillis&&K<=d.visibleTimeRangeEndMillis};
_.vRY=function(K){if(K===void 0||Number.isNaN(K))return"--:--";var d=Math.abs(Math.floor(K)),f=Math.floor(d/86400),H=Math.floor(d%86400/3600),D=Math.floor(d%3600/60);d=Math.floor(d%60);var S="";f>0&&(S+=f+":",H<10&&(S+="0"));if(f>0||H>0)S+=H+":",D<10&&(S+="0");S+=D+":";d<10&&(S+="0");S+=d;return K>=0?S:"-"+S};
M6p=function(K,d){return function(){var f=zbz(K());var H=d();var D=K().playerApi;if(D&&D.getNumberOfStoryboardLevels()!==0){var S=D.getStoryboardFrameIndex(f,1);S!==-1?H=D.getStoryboardFrame(S,1):(f=D.getStoryboardFrameIndex(f,0),D=D.getStoryboardFrame(f,0),H&&D&&(D.height*=3,D.width*=3),H=D)}else H=null;if(!H)return null;d()&&(H.width=90*H.columns,H.height=160*H.rows);return H}};
_.o1=function(K){if(!K||K.getVideoData)return K};
PPn=function(){var K;return{playerApi:(K=_.dP())!=null?K:void 0}};
_.t6X=function(K){function d(w){w!==0||z?w>50&&(z||!g)?(v(!1),N(!0)):w<=50&&(z||g)&&(v(!1),N(!1)):v(!0)}
function f(){var w;return _.c(function(yO){if(yO.nextAddress==1)return _.I(yO,_.Kt(),2);(w=yO.yieldResult)&&(w.isMuted()?v(!0):v(!1));_.iQ(yO)})}
var H=K.noSlider;var D=K.orientation;K=_.Co();var S=_.Co(),n=_.x7(),u=_.y(Si(!1)),a=u.next().value,R=u.next().value,F=_.y(Si(!1));u=F.next().value;F=F.next().value;var z=u,v=F;F=_.y(Si(!0));u=F.next().value;F=F.next().value;var g=u,N=F;u=D==="vertical_down";_.tR(function(){function w(){R(!0)}
function yO(){R(!1)}
H?(f(),d(z?0:100)):n&&n.value&&(n.value.addEventListener("focus",w),n.value.addEventListener("focusout",yO),gRS(n.value).then(function(){d(Number(Oqo(n.value)))}));
S&&S.value&&(S.value.addEventListener("focus",w),S.value.addEventListener("focusout",yO));return function(){var FX;n==null||(FX=n.value)==null||FX.removeEventListener("focus",w);var NJ;n==null||(NJ=n.value)==null||NJ.removeEventListener("focusout",yO);S.value.removeEventListener("focus",w);S.value.removeEventListener("focusout",yO)}});
var h=_.cp(function(){if(n&&n.value){var w=Number(Oqo(n.value));N_X(w);n.value.style.setProperty("--gradient-percent",w+"%");d(w)}return!1});
F={};F=(F.ytdDesktopShortsVolumeControlsHost=!0,F.ytdDesktopShortsVolumeControlsHostVertical=u,F.ytdDesktopShortsVolumeControlsHostExpanded=a,F);var m={},T=(m.ytdDesktopShortsVolumeControlsSliderContainer=!0,m.ytdDesktopShortsVolumeControlsSliderContainerExpanded=a,m.ytdDesktopShortsVolumeControlsSliderContainerVertical=u,m.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=D==="vertical_down",m.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=a&&u,m);D={};var r=(D.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,D.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=H?!1:a,D);a={};a=(a.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=u,a);D=_.cp(function(){R(!0)});
m=_.cp(function(){R(!1)});
var J=_.cp(function(){if(n&&n.value||H)YUO(n.value,z,H),v(!z);return!1}),L=_.M("web_shorts_keyboard_enable_mute_shortcut")?z?_.iB("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.iB("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):z?_.iB("UNMUTE_VOLUME",void 0,"Unmute"):_.iB("MUTE_VOLUME",void 0,"Mute"),fB={sources:[{clientResource:{imageName:z?_.M("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":g?_.M("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.M("web_shorts_modern_controls")?
"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.U("desktop-shorts-volume-controls",{"on:pointerleave":m,class:_.nK(F),el:K},sm(!u,function(){return _.U("div",{class:_.nK(r)})}),_.U("div",{class:_.nK(a)},_.U("button",{"aria-label":L,
title:L,el:S,"on:click":J,"on:pointerenter":D,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},fB?_.U(_.jV,{data:fB,alt:L,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),sm(!H,function(){return _.U("div",{class:_.nK(T)},_.U("input",{"aria-label":_.iB("VOLUME"),title:_.iB("VOLUME"),el:n,"on:input":h,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
gRS=function(K){var d,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,_.Kt(),2);d=H.yieldResult;f=50;d&&(f=d.getVolume(),d.isMuted()?oRB(K,0):oRB(K,f));_.iQ(H)})};
N_X=function(K){var d;_.c(function(f){if(f.nextAddress==1)return _.I(f,_.Kt(),2);if(d=f.yieldResult)d.unMute(!0),d.setVolume(K,!0);_.iQ(f)})};
oRB=function(K,d){K&&(K.value=""+d,K.style.setProperty("--gradient-percent",d+"%"))};
Oqo=function(K){var d;return(d=K==null?void 0:K.value)!=null?d:0};
YUO=function(K,d,f){var H;_.c(function(D){if(D.nextAddress==1)return _.I(D,_.Kt(),2);H=D.yieldResult;d&&H?(H.unMute(!0),!f&&K&&oRB(K,H.getVolume())):H&&(H.mute(!0),!f&&K&&oRB(K,0));_.iQ(D)})};
$RN=function(){var K;_.c(function(d){if(d.nextAddress==1)return _.I(d,_.Kt(),2);K=d.yieldResult;if(!K)return d.return();K.isMuted()?K.unMute(!0):K.mute(!0);_.iQ(d)})};
ER5=function(K){var d=_.eq().resolve(_.$b).getPlayerElement();d&&K&&(K===1?d.pause():d.play())};
hbO=function(K){_.p1(K,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
bqp=function(K){_.p1(K,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
lrz=function(K){return _.Ob(K.document.body,function(){return _.U(mRz,null)})};
WEJ=function(){var K=window.performance.getEntriesByType("navigation");return K?K.map(function(d){return d.type}).includes("reload"):!1};
CPY=function(){Ea(Ea(Ea(Ea(Ea(Ea(Ea(_.eq().resolve(_.hm),_.GcX),_.Aqn),_.T_X),_.rqu),_.qUo),_.QP5),_.jPX)};
xR5=function(K,d){d=d===void 0?!1:d;var f,H,D,S;return _.c(function(n){if(n.nextAddress==1)return d||!_.M("kevlar_shorts_seedless_retry_initial_load")||(f=window,H=!(!f.getDataPromise&&!f.getInitialData),H)?_.I(n,$EB(),2):(setTimeout(xR5.bind(window,K,!0),1E3),n.return());if(n.nextAddress!=3)return D=n.yieldResult,_.I(n,LEz(D),3);S=n.yieldResult;Mv(K,S);_.iQ(n)})};
LEz=function(K){var d;if((d=K.response)==null||!d.replacementEndpoint)return _.HG(K);d=_.eq().resolve(R1);K=K.response;_.P(K.replacementEndpoint,_.IM)&&K.sequenceContinuation&&(_.P(K.replacementEndpoint,_.IM).sequenceParams=K.sequenceContinuation);return bf(d,K.replacementEndpoint,{},_.Hu.location.href,"shorts",function(){},function(){return!1})};
B_X=function(K){var d=_.j3(),f,H=_.P((f=K.response)==null?void 0:f.frameworkUpdates,Tz),D;f=_.P((D=K.playerResponse)==null?void 0:D.frameworkUpdates,Tz);var S;K=_.P((S=K.reelWatchSequenceResponse)==null?void 0:S.frameworkUpdates,Tz);H&&_.iA(H,d);f&&_.iA(f,d);K&&_.iA(K,d)};
Jqu=function(K){var d;_.M("enable_redirect_linking_for_desktop_web_client")&&((d=window.location.hash)==null?0:d.includes("redirect_state"))&&K.url&&(K.url=K.url.toString()+window.location.hash)};
wDJ=function(K){var d=_.eq(),f=d.resolve(R1);d=d.resolve(_.sPz);K.endpoint&&(f=kcX(f,K.endpoint),f.content&&K.response&&_.m4(d,K.response,f.content),f.player&&K.playerResponse&&_.m4(d,K.playerResponse,f.player),f.reelSequence&&K.reelWatchSequenceResponse&&_.m4(d,K.reelWatchSequenceResponse,f.reelSequence))};
lf=function(K,d){B_X(d);var f;(d==null?0:d.url)&&((f=window.location.hash)==null?0:f.includes("redirect_state"))&&(Jqu(d),(f=tXp(d.url))&&_.ev(K.root,"yt-initialize-third-party",[f,d]));wDJ(d);f=_.eq();var H=f.resolve(Zq5);d.playerResponse&&f.resolve(ebz).handleResponse(d.playerResponse);if(d.playerResponse){f=void 0;if(_.M("ab_v_vid_sig")&&d.endpoint){var D,S=(D=_.P(d.endpoint,_.qu))!=null?D:_.P(d.endpoint,_.IM);S&&(f=S.videoId)}pDO(H,d.playerResponse,f)}d.playerResponse&&wnz(d.playerResponse)&&
_.M("web_enable_ab_rsp_cl")?BMu().then(function(){KzX(H,d.playerResponse);Mv(K,d)}):Mv(K,d)};
fZS=function(K){if(K=K.root.data){var d=_.eq().resolve(d$5);K.endpoint&&(K.response&&d.handleResponse(K.response,void 0,document.querySelector("ytd-app")),K.playerResponse&&d.handleResponse(K.playerResponse),K.reelWatchSequenceResponse&&d.handleResponse(K.reelWatchSequenceResponse))}};
HVo=function(K){var d,f,H,D,S,n;return _.c(function(u){switch(u.nextAddress){case 1:d=window;if(!d.getDataPromise){u.jumpTo(2);break}_.HF(u,3);return _.I(u,d.getDataPromise(),5);case 5:f=u.yieldResult;lf(K,f);_.Ts(u,4);break;case 3:return _.n7(u),_.I(u,Fm(),6);case 6:H=u.yieldResult,Mv(K,H);case 4:return u.return();case 2:if(!_.M("sw_nav_preload_pbj")){u.jumpTo(7);break}d.fetchInitialData=function(){var a;return _.c(function(R){if(R.nextAddress==1)return _.I(R,Fm(),2);a=R.yieldResult;Mv(K,a);_.iQ(R)})};
if(d.getInitialData){d.loadInitialData=function(a){lf(K,a)};
D=d.getInitialData();d.getInitialData=void 0;lf(K,D);u.jumpTo(8);break}d.fetchInitialData=void 0;return _.I(u,Fm(),9);case 9:S=u.yieldResult,Mv(K,S);case 8:return u.return();case 7:d.getInitialData?(n=d.getInitialData(),d.getInitialData=void 0,lf(K,n)):d.loadInitialData=function(a){lf(K,a)},_.iQ(u)}})};
D$z=function(K){var d=0;return function(){return d<K.length?{done:!1,value:K[d++]}:{done:!0}}};
VuS=typeof Object.defineProperties=="function"?Object.defineProperty:function(K,d,f){if(K==Array.prototype||K==Object.prototype)return K;K[d]=f.value;return K};
SJu=function(K){K=["object"==typeof globalThis&&globalThis,K,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var d=0;d<K.length;++d){var f=K[d];if(f&&f.Math==Math)return f}throw Error("a");};
_.x$=SJu(this);Wd=function(K,d){if(d)a:{var f=_.x$;K=K.split(".");for(var H=0;H<K.length-1;H++){var D=K[H];if(!(D in f))break a;f=f[D]}K=K[K.length-1];H=f[K];d=d(H);d!=H&&d!=null&&VuS(f,K,{configurable:!0,writable:!0,value:d})}};
Wd("Symbol",function(K){if(K)return K;var d=function(S,n){this.$jscomp$symbol$id_=S;VuS(this,"description",{configurable:!0,writable:!0,value:n})};
d.prototype.toString=function(){return this.$jscomp$symbol$id_};
var f="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",H=0,D=function(S){if(this instanceof D)throw new TypeError("b");return new d(f+(S||"")+"_"+H++,S)};
return D});
Wd("Symbol.iterator",function(K){if(K)return K;K=Symbol("c");for(var d="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f<d.length;f++){var H=_.x$[d[f]];typeof H==="function"&&typeof H.prototype[K]!="function"&&VuS(H.prototype,K,{configurable:!0,writable:!0,value:function(){return ygY(D$z(this))}})}return K});
Wd("Symbol.asyncIterator",function(K){return K?K:Symbol("d")});
var ygY=function(K){K={next:K};K[Symbol.iterator]=function(){return this};
return K},nIp=typeof Object.create=="function"?Object.create:function(K){var d=function(){};
d.prototype=K;return new d},iVz=function(){function K(){function f(){}
new f;Reflect.construct(f,[],function(){});
return new f instanceof f}
if(typeof Reflect!="undefined"&&Reflect.construct){if(K())return Reflect.construct;var d=Reflect.construct;return function(f,H,D){f=d(f,H);D&&Reflect.setPrototypeOf(f,D.prototype);return f}}return function(f,H,D){D===void 0&&(D=f);
D=nIp(D.prototype||Object.prototype);return Function.prototype.apply.call(f,D,H)||D}}(),cgX;
if(typeof Object.setPrototypeOf=="function")cgX=Object.setPrototypeOf;else{var uGS;a:{var aZo={a:!0},IZS={};try{IZS.__proto__=aZo;uGS=IZS.a;break a}catch(K){}uGS=!1}cgX=uGS?function(K,d){K.__proto__=d;if(K.__proto__!==d)throw new TypeError("e`"+K);return K}:null}G$=cgX;
_.O=function(K,d){K.prototype=nIp(d.prototype);K.prototype.constructor=K;if(G$)G$(K,d);else for(var f in d)if(f!="prototype")if(Object.defineProperties){var H=Object.getOwnPropertyDescriptor(d,f);H&&Object.defineProperty(K,f,H)}else K[f]=d[f];K.superClass_=d.prototype};
_.y=function(K){var d=typeof Symbol!="undefined"&&Symbol.iterator&&K[Symbol.iterator];if(d)return d.call(K);if(typeof K.length=="number")return{next:D$z(K)};throw Error("f`"+String(K));};
By=function(K){for(var d,f=[];!(d=K.next()).done;)f.push(d.value);return f};
_.Me=function(K){return K instanceof Array?K:By(_.y(K))};
_.Am=function(K){return U$p(K,K)};
U$p=function(K,d){K.raw=d;Object.freeze&&(Object.freeze(K),Object.freeze(d));return K};
T$=function(K,d){return Object.prototype.hasOwnProperty.call(K,d)};
RZX=typeof Object.assign=="function"?Object.assign:function(K,d){for(var f=1;f<arguments.length;f++){var H=arguments[f];if(H)for(var D in H)T$(H,D)&&(K[D]=H[D])}return K};
Wd("Object.assign",function(K){return K||RZX});
var Fzz=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},zZO=function(K){if(K.isRunning_)throw new TypeError("h");
K.isRunning_=!0};
Fzz.prototype.JSC$6740_next_=function(K){this.yieldResult=K};
var XmB=function(K,d){K.abruptCompletion_={exception:d,isException:!0};K.nextAddress=K.catchAddress_||K.finallyAddress_};
Fzz.prototype.return=function(K){this.abruptCompletion_={return:K};this.nextAddress=this.finallyAddress_};
_.I=function(K,d,f){K.nextAddress=f;return{value:d}};
Fzz.prototype.jumpTo=function(K){this.nextAddress=K};
_.iQ=function(K){K.nextAddress=0};
_.HF=function(K,d,f){K.catchAddress_=d;f!=void 0&&(K.finallyAddress_=f)};
_.Sl=function(K,d){K.catchAddress_=0;K.finallyAddress_=d||0};
_.Ts=function(K,d,f){K.nextAddress=d;K.catchAddress_=f||0};
_.n7=function(K,d){K.catchAddress_=d||0;d=K.abruptCompletion_.exception;K.abruptCompletion_=null;return d};
_.Vu=function(K,d,f,H){H?K.finallyContexts_[H]=K.abruptCompletion_:K.finallyContexts_=[K.abruptCompletion_];K.catchAddress_=d||0;K.finallyAddress_=f||0};
_.yu=function(K,d,f){f=K.finallyContexts_.splice(f||0)[0];(f=K.abruptCompletion_=K.abruptCompletion_||f)?f.isException?K.nextAddress=K.catchAddress_||K.finallyAddress_:f.jumpTo!=void 0&&K.finallyAddress_<f.jumpTo?(K.nextAddress=f.jumpTo,K.abruptCompletion_=null):K.nextAddress=K.finallyAddress_:K.nextAddress=d};
vIS=function(K){this.JSC$6745_context_=new Fzz;this.program_=K};
Pgo=function(K,d){zZO(K.JSC$6745_context_);var f=K.JSC$6745_context_.yieldAllIterator_;if(f)return MuX(K,"return"in f?f["return"]:function(H){return{value:H,done:!0}},d,K.JSC$6745_context_.return);
K.JSC$6745_context_.return(d);return r7(K)};
MuX=function(K,d,f,H){try{var D=d.call(K.JSC$6745_context_.yieldAllIterator_,f);if(!(D instanceof Object))throw new TypeError("g`"+D);if(!D.done)return K.JSC$6745_context_.isRunning_=!1,D;var S=D.value}catch(n){return K.JSC$6745_context_.yieldAllIterator_=null,XmB(K.JSC$6745_context_,n),r7(K)}K.JSC$6745_context_.yieldAllIterator_=null;H.call(K.JSC$6745_context_,S);return r7(K)};
r7=function(K){for(;K.JSC$6745_context_.nextAddress;)try{var d=K.program_(K.JSC$6745_context_);if(d)return K.JSC$6745_context_.isRunning_=!1,{value:d.value,done:!1}}catch(f){K.JSC$6745_context_.yieldResult=void 0,XmB(K.JSC$6745_context_,f)}K.JSC$6745_context_.isRunning_=!1;if(K.JSC$6745_context_.abruptCompletion_){d=K.JSC$6745_context_.abruptCompletion_;K.JSC$6745_context_.abruptCompletion_=null;if(d.isException)throw d.exception;return{value:d.return,done:!0}}return{value:void 0,done:!0}};
gIz=function(K){this.next=function(d){zZO(K.JSC$6745_context_);K.JSC$6745_context_.yieldAllIterator_?d=MuX(K,K.JSC$6745_context_.yieldAllIterator_.next,d,K.JSC$6745_context_.JSC$6740_next_):(K.JSC$6745_context_.JSC$6740_next_(d),d=r7(K));return d};
this.throw=function(d){zZO(K.JSC$6745_context_);K.JSC$6745_context_.yieldAllIterator_?d=MuX(K,K.JSC$6745_context_.yieldAllIterator_["throw"],d,K.JSC$6745_context_.JSC$6740_next_):(XmB(K.JSC$6745_context_,d),d=r7(K));return d};
this.return=function(d){return Pgo(K,d)};
this[Symbol.iterator]=function(){return this}};
_.LBp=function(K,d){d=new gIz(new vIS(d));G$&&K.prototype&&G$(d,K.prototype);return d};
OVo=function(K){function d(H){return K.next(H)}
function f(H){return K.throw(H)}
return new Promise(function(H,D){function S(n){n.done?H(n.value):Promise.resolve(n.value).then(d,f).then(S,D)}
S(K.next())})};
_.c=function(K){return OVo(new gIz(new vIS(K)))};
LbY=function(K){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return K};
this.next=function(d){return Promise.resolve(K.next(d))};
this["throw"]=function(d){return new Promise(function(f,H){var D=K["throw"];D!==void 0?f(D.call(K,d)):(f=K["return"],f!==void 0&&f.call(K),H(new TypeError("i")))})};
K["return"]!==void 0&&(this["return"]=function(d){return Promise.resolve(K["return"](d))})};
_.Pg=function(){for(var K=Number(this),d=[],f=K;f<arguments.length;f++)d[f-K]=arguments[f];return d};
_.BpB=function(K){return K};
Wd("globalThis",function(K){return K||_.x$});
Wd("Reflect",function(K){return K?K:{}});
Wd("Reflect.construct",function(){return iVz});
Wd("Reflect.setPrototypeOf",function(K){return K?K:G$?function(d,f){try{return G$(d,f),!0}catch(H){return!1}}:null});
Wd("Promise",function(K){function d(){this.batch_=null}
function f(n){return n instanceof D?n:new D(function(u){u(n)})}
if(K&&(typeof _.x$.PromiseRejectionEvent!=="undefined"||!_.x$.Promise||_.x$.Promise.toString().indexOf("[native code]")===-1))return K;d.prototype.asyncExecute=function(n){if(this.batch_==null){this.batch_=[];var u=this;this.asyncExecuteFunction(function(){u.executeBatch_()})}this.batch_.push(n)};
var H=_.x$.setTimeout;d.prototype.asyncExecuteFunction=function(n){H(n,0)};
d.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var n=this.batch_;this.batch_=[];for(var u=0;u<n.length;++u){var a=n[u];n[u]=null;try{a()}catch(R){this.asyncThrow_(R)}}}this.batch_=null};
d.prototype.asyncThrow_=function(n){this.asyncExecuteFunction(function(){throw n;})};
var D=function(n){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var u=this.createResolveAndReject_();try{n(u.resolve,u.reject)}catch(a){u.reject(a)}};
D.prototype.createResolveAndReject_=function(){function n(R){return function(F){a||(a=!0,R.call(u,F))}}
var u=this,a=!1;return{resolve:n(this.resolveTo_),reject:n(this.JSC$6761_reject_)}};
D.prototype.resolveTo_=function(n){if(n===this)this.JSC$6761_reject_(new TypeError("j"));else if(n instanceof D)this.settleSameAsPromise_(n);else{a:switch(typeof n){case "object":var u=n!=null;break a;case "function":u=!0;break a;default:u=!1}u?this.resolveToNonPromiseObj_(n):this.fulfill_(n)}};
D.prototype.resolveToNonPromiseObj_=function(n){var u=void 0;try{u=n.then}catch(a){this.JSC$6761_reject_(a);return}typeof u=="function"?this.settleSameAsThenable_(u,n):this.fulfill_(n)};
D.prototype.JSC$6761_reject_=function(n){this.settle_(2,n)};
D.prototype.fulfill_=function(n){this.settle_(1,n)};
D.prototype.settle_=function(n,u){if(this.state_!=0)throw Error("k`"+n+"`"+u+"`"+this.state_);this.state_=n;this.result_=u;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
D.prototype.scheduleUnhandledRejectionCheck_=function(){var n=this;H(function(){if(n.notifyUnhandledRejection_()){var u=_.x$.console;typeof u!=="undefined"&&u.error(n.result_)}},1)};
D.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var n=_.x$.CustomEvent,u=_.x$.Event,a=_.x$.dispatchEvent;if(typeof a==="undefined")return!0;typeof n==="function"?n=new n("unhandledrejection",{cancelable:!0}):typeof u==="function"?n=new u("unhandledrejection",{cancelable:!0}):(n=_.x$.document.createEvent("CustomEvent"),n.initCustomEvent("unhandledrejection",!1,!0,n));n.promise=this;n.reason=this.result_;return a(n)};
D.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var n=0;n<this.onSettledCallbacks_.length;++n)S.asyncExecute(this.onSettledCallbacks_[n]);this.onSettledCallbacks_=null}};
var S=new d;D.prototype.settleSameAsPromise_=function(n){var u=this.createResolveAndReject_();n.callWhenSettled_(u.resolve,u.reject)};
D.prototype.settleSameAsThenable_=function(n,u){var a=this.createResolveAndReject_();try{n.call(u,a.resolve,a.reject)}catch(R){a.reject(R)}};
D.prototype.then=function(n,u){function a(v,g){return typeof v=="function"?function(N){try{R(v(N))}catch(h){F(h)}}:g}
var R,F,z=new D(function(v,g){R=v;F=g});
this.callWhenSettled_(a(n,R),a(u,F));return z};
D.prototype.catch=function(n){return this.then(void 0,n)};
D.prototype.callWhenSettled_=function(n,u){function a(){switch(R.state_){case 1:n(R.result_);break;case 2:u(R.result_);break;default:throw Error("l`"+R.state_);}}
var R=this;this.onSettledCallbacks_==null?S.asyncExecute(a):this.onSettledCallbacks_.push(a);this.isRejectionHandled_=!0};
D.resolve=f;D.reject=function(n){return new D(function(u,a){a(n)})};
D.race=function(n){return new D(function(u,a){for(var R=_.y(n),F=R.next();!F.done;F=R.next())f(F.value).callWhenSettled_(u,a)})};
D.all=function(n){var u=_.y(n),a=u.next();return a.done?f([]):new D(function(R,F){function z(N){return function(h){v[N]=h;g--;g==0&&R(v)}}
var v=[],g=0;do v.push(void 0),g++,f(a.value).callWhenSettled_(z(v.length-1),F),a=u.next();while(!a.done)})};
return D});
var qv=function(K,d,f){if(K==null)throw new TypeError("m`"+f);if(d instanceof RegExp)throw new TypeError("n`"+f);return K+""};
Wd("String.prototype.startsWith",function(K){return K?K:function(d,f){var H=qv(this,d,"startsWith"),D=H.length,S=d.length;f=Math.max(0,Math.min(f|0,H.length));for(var n=0;n<S&&f<D;)if(H[f++]!=d[n++])return!1;return n>=S}});
Wd("Object.setPrototypeOf",function(K){return K||G$});
Wd("Symbol.dispose",function(K){return K?K:Symbol("o")});
Wd("SuppressedError",function(K){function d(f,H,D){if(!(this instanceof d))return new d(f,H,D);D=Error(D);"stack"in D&&(this.stack=D.stack);this.message=D.message;this.error=f;this.suppressed=H}
if(K)return K;_.O(d,Error);d.prototype.name="SuppressedError";return d});
var NgY=function(K,d,f){K instanceof String&&(K=String(K));for(var H=K.length,D=0;D<H;D++){var S=K[D];if(d.call(f,S,D,K))return{i:D,v:S}}return{i:-1,v:void 0}};
Wd("Array.prototype.find",function(K){return K?K:function(d,f){return NgY(this,d,f).v}});
Wd("WeakMap",function(K){function d(){}
function f(a){var R=typeof a;return R==="object"&&a!==null||R==="function"}
function H(a){if(!T$(a,S)){var R=new d;VuS(a,S,{value:R})}}
function D(a){var R=Object[a];R&&(Object[a]=function(F){if(F instanceof d)return F;Object.isExtensible(F)&&H(F);return R(F)})}
if(function(){if(!K||!Object.seal)return!1;try{var a=Object.seal({}),R=Object.seal({}),F=new K([[a,2],[R,3]]);if(F.get(a)!=2||F.get(R)!=3)return!1;F.delete(a);F.set(R,4);return!F.has(a)&&F.get(R)==4}catch(z){return!1}}())return K;
var S="$jscomp_hidden_"+Math.random();D("freeze");D("preventExtensions");D("seal");var n=0,u=function(a){this.JSC$6768_id_=(n+=Math.random()+1).toString();if(a){a=_.y(a);for(var R;!(R=a.next()).done;)R=R.value,this.set(R[0],R[1])}};
u.prototype.set=function(a,R){if(!f(a))throw Error("p");H(a);if(!T$(a,S))throw Error("q`"+a);a[S][this.JSC$6768_id_]=R;return this};
u.prototype.get=function(a){return f(a)&&T$(a,S)?a[S][this.JSC$6768_id_]:void 0};
u.prototype.has=function(a){return f(a)&&T$(a,S)&&T$(a[S],this.JSC$6768_id_)};
u.prototype.delete=function(a){return f(a)&&T$(a,S)&&T$(a[S],this.JSC$6768_id_)?delete a[S][this.JSC$6768_id_]:!1};
return u});
Wd("Map",function(K){if(function(){if(!K||typeof K!="function"||!K.prototype.entries||typeof Object.seal!="function")return!1;try{var u=Object.seal({x:4}),a=new K(_.y([[u,"s"]]));if(a.get(u)!="s"||a.size!=1||a.get({x:4})||a.set({x:4},"t")!=a||a.size!=2)return!1;var R=a.entries(),F=R.next();if(F.done||F.value[0]!=u||F.value[1]!="s")return!1;F=R.next();return F.done||F.value[0].x!=4||F.value[1]!="t"||!R.next().done?!1:!0}catch(z){return!1}}())return K;
var d=new WeakMap,f=function(u){this[0]={};this[1]=S();this.size=0;if(u){u=_.y(u);for(var a;!(a=u.next()).done;)a=a.value,this.set(a[0],a[1])}};
f.prototype.set=function(u,a){u=u===0?0:u;var R=H(this,u);R.list||(R.list=this[0][R.id]=[]);R.entry?R.entry.value=a:(R.entry={next:this[1],previous:this[1].previous,head:this[1],key:u,value:a},R.list.push(R.entry),this[1].previous.next=R.entry,this[1].previous=R.entry,this.size++);return this};
f.prototype.delete=function(u){u=H(this,u);return u.entry&&u.list?(u.list.splice(u.index,1),u.list.length||delete this[0][u.id],u.entry.previous.next=u.entry.next,u.entry.next.previous=u.entry.previous,u.entry.head=null,this.size--,!0):!1};
f.prototype.clear=function(){this[0]={};this[1]=this[1].previous=S();this.size=0};
f.prototype.has=function(u){return!!H(this,u).entry};
f.prototype.get=function(u){return(u=H(this,u).entry)&&u.value};
f.prototype.entries=function(){return D(this,function(u){return[u.key,u.value]})};
f.prototype.keys=function(){return D(this,function(u){return u.key})};
f.prototype.values=function(){return D(this,function(u){return u.value})};
f.prototype.forEach=function(u,a){for(var R=this.entries(),F;!(F=R.next()).done;)F=F.value,u.call(a,F[1],F[0],this)};
f.prototype[Symbol.iterator]=f.prototype.entries;var H=function(u,a){var R=a&&typeof a;R=="object"||R=="function"?d.has(a)?R=d.get(a):(R=""+ ++n,d.set(a,R)):R="p_"+a;var F=u[0][R];if(F&&T$(u[0],R))for(u=0;u<F.length;u++){var z=F[u];if(a!==a&&z.key!==z.key||a===z.key)return{id:R,list:F,index:u,entry:z}}return{id:R,list:F,index:-1,entry:void 0}},D=function(u,a){var R=u[1];
return ygY(function(){if(R){for(;R.head!=u[1];)R=R.previous;for(;R.next!=R.head;)return R=R.next,{done:!1,value:a(R)};R=null}return{done:!0,value:void 0}})},S=function(){var u={};
return u.previous=u.next=u.head=u},n=0;
return f});
Wd("Set",function(K){if(function(){if(!K||typeof K!="function"||!K.prototype.entries||typeof Object.seal!="function")return!1;try{var f=Object.seal({x:4}),H=new K(_.y([f]));if(!H.has(f)||H.size!=1||H.add(f)!=H||H.size!=1||H.add({x:4})!=H||H.size!=2)return!1;var D=H.entries(),S=D.next();if(S.done||S.value[0]!=f||S.value[1]!=f)return!1;S=D.next();return S.done||S.value[0]==f||S.value[0].x!=4||S.value[1]!=S.value[0]?!1:D.next().done}catch(n){return!1}}())return K;
var d=function(f){this.JSC$6782_map_=new Map;if(f){f=_.y(f);for(var H;!(H=f.next()).done;)this.add(H.value)}this.size=this.JSC$6782_map_.size};
d.prototype.add=function(f){f=f===0?0:f;this.JSC$6782_map_.set(f,f);this.size=this.JSC$6782_map_.size;return this};
d.prototype.delete=function(f){f=this.JSC$6782_map_.delete(f);this.size=this.JSC$6782_map_.size;return f};
d.prototype.clear=function(){this.JSC$6782_map_.clear();this.size=0};
d.prototype.has=function(f){return this.JSC$6782_map_.has(f)};
d.prototype.entries=function(){return this.JSC$6782_map_.entries()};
d.prototype.values=function(){return this.JSC$6782_map_.values()};
d.prototype.keys=d.prototype.values;d.prototype[Symbol.iterator]=d.prototype.values;d.prototype.forEach=function(f,H){var D=this;this.JSC$6782_map_.forEach(function(S){return f.call(H,S,S,D)})};
return d});
Wd("Math.log2",function(K){return K?K:function(d){return Math.log(d)/Math.LN2}});
Wd("Object.values",function(K){return K?K:function(d){var f=[],H;for(H in d)T$(d,H)&&f.push(d[H]);return f}});
Wd("Object.is",function(K){return K?K:function(d,f){return d===f?d!==0||1/d===1/f:d!==d&&f!==f}});
Wd("Array.prototype.includes",function(K){return K?K:function(d,f){var H=this;H instanceof String&&(H=String(H));var D=H.length;f=f||0;for(f<0&&(f=Math.max(f+D,0));f<D;f++){var S=H[f];if(S===d||Object.is(S,d))return!0}return!1}});
Wd("String.prototype.includes",function(K){return K?K:function(d,f){return qv(this,d,"includes").indexOf(d,f||0)!==-1}});
Wd("Array.from",function(K){return K?K:function(d,f,H){f=f!=null?f:function(u){return u};
var D=[],S=typeof Symbol!="undefined"&&Symbol.iterator&&d[Symbol.iterator];if(typeof S=="function"){d=S.call(d);for(var n=0;!(S=d.next()).done;)D.push(f.call(H,S.value,n++))}else for(S=d.length,n=0;n<S;n++)D.push(f.call(H,d[n],n));return D}});
Wd("Object.entries",function(K){return K?K:function(d){var f=[],H;for(H in d)T$(d,H)&&f.push([H,d[H]]);return f}});
Wd("Number.isFinite",function(K){return K?K:function(d){return typeof d!=="number"?!1:!isNaN(d)&&d!==Infinity&&d!==-Infinity}});
Wd("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Wd("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Wd("Number.isInteger",function(K){return K?K:function(d){return Number.isFinite(d)?d===Math.floor(d):!1}});
Wd("Number.isSafeInteger",function(K){return K?K:function(d){return Number.isInteger(d)&&Math.abs(d)<=Number.MAX_SAFE_INTEGER}});
Wd("String.prototype.endsWith",function(K){return K?K:function(d,f){var H=qv(this,d,"endsWith");f===void 0&&(f=H.length);f=Math.max(0,Math.min(f|0,H.length));for(var D=d.length;D>0&&f>0;)if(H[--f]!=d[--D])return!1;return D<=0}});
var YJS=function(K,d){K instanceof String&&(K+="");var f=0,H=!1,D={next:function(){if(!H&&f<K.length){var S=f++;return{value:d(S,K[S]),done:!1}}H=!0;return{done:!0,value:void 0}}};
D[Symbol.iterator]=function(){return D};
return D};
Wd("Array.prototype.entries",function(K){return K?K:function(){return YJS(this,function(d,f){return[d,f]})}});
Wd("Math.imul",function(K){return K?K:function(d,f){d=Number(d);f=Number(f);var H=d&65535,D=f&65535;return H*D+((d>>>16&65535)*D+H*(f>>>16&65535)<<16>>>0)|0}});
Wd("Math.trunc",function(K){return K?K:function(d){d=Number(d);if(isNaN(d)||d===Infinity||d===-Infinity||d===0)return d;var f=Math.floor(Math.abs(d));return d<0?-f:f}});
Wd("Number.isNaN",function(K){return K?K:function(d){return typeof d==="number"&&isNaN(d)}});
Wd("Array.prototype.keys",function(K){return K?K:function(){return YJS(this,function(d){return d})}});
Wd("Array.prototype.values",function(K){return K?K:function(){return YJS(this,function(d,f){return f})}});
Wd("Array.prototype.fill",function(K){return K?K:function(d,f,H){var D=this.length||0;f<0&&(f=Math.max(0,D+f));if(H==null||H>D)H=D;H=Number(H);H<0&&(H=Math.max(0,D+H));for(f=Number(f||0);f<H;f++)this[f]=d;return this}});
var QI=function(K){return K?K:Array.prototype.fill};
Wd("Int8Array.prototype.fill",QI);Wd("Uint8Array.prototype.fill",QI);Wd("Uint8ClampedArray.prototype.fill",QI);Wd("Int16Array.prototype.fill",QI);Wd("Uint16Array.prototype.fill",QI);Wd("Int32Array.prototype.fill",QI);Wd("Uint32Array.prototype.fill",QI);Wd("Float32Array.prototype.fill",QI);Wd("Float64Array.prototype.fill",QI);
Wd("Object.fromEntries",function(K){return K?K:function(d){var f={};if(!(Symbol.iterator in d))throw new TypeError("r`"+d);d=d[Symbol.iterator].call(d);for(var H=d.next();!H.done;H=d.next()){H=H.value;if(Object(H)!==H)throw new TypeError("s");f[H[0]]=H[1]}return f}});
Wd("String.prototype.replaceAll",function(K){return K?K:function(d,f){if(d instanceof RegExp&&!d.global)throw new TypeError("t");return d instanceof RegExp?this.replace(d,f):this.replace(new RegExp(String(d).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),f)}});
Wd("Object.getOwnPropertySymbols",function(K){return K?K:function(){return[]}});
Wd("String.prototype.repeat",function(K){return K?K:function(d){var f=qv(this,null,"repeat");if(d<0||d>1342177279)throw new RangeError("u");d|=0;for(var H="";d;)if(d&1&&(H+=f),d>>>=1)f+=f;return H}});
Wd("Array.prototype.findIndex",function(K){return K?K:function(d,f){return NgY(this,d,f).i}});
Wd("Array.prototype.flatMap",function(K){return K?K:function(d,f){var H=[];Array.prototype.forEach.call(this,function(D,S){D=d.call(f,D,S,this);Array.isArray(D)?H.push.apply(H,D):H.push(D)});
return H}});
Wd("String.prototype.codePointAt",function(K){return K?K:function(d){var f=qv(this,null,"codePointAt"),H=f.length;d=Number(d)||0;if(d>=0&&d<H){d|=0;var D=f.charCodeAt(d);if(D<55296||D>56319||d+1===H)return D;d=f.charCodeAt(d+1);return d<56320||d>57343?D:(D-55296)*1024+d+9216}}});
Wd("String.fromCodePoint",function(K){return K?K:function(d){for(var f="",H=0;H<arguments.length;H++){var D=Number(arguments[H]);if(D<0||D>1114111||D!==Math.floor(D))throw new RangeError("v`"+D);D<=65535?f+=String.fromCharCode(D):(D-=65536,f+=String.fromCharCode(D>>>10&1023|55296),f+=String.fromCharCode(D&1023|56320))}return f}});
Wd("String.prototype.padStart",function(K){return K?K:function(d,f){var H=qv(this,null,"padStart");d-=H.length;f=f!==void 0?String(f):" ";return(d>0&&f?f.repeat(Math.ceil(d/f.length)).substring(0,d):"")+H}});
Wd("Promise.prototype.finally",function(K){return K?K:function(d){return this.then(function(f){return Promise.resolve(d()).then(function(){return f})},function(f){return Promise.resolve(d()).then(function(){throw f;
})})}});
Wd("Object.hasOwn",function(K){return K?K:function(d,f){return Object.prototype.hasOwnProperty.call(d,f)}});
Wd("Math.sign",function(K){return K?K:function(d){d=Number(d);return d===0||isNaN(d)?d:d>0?1:-1}});
Wd("Array.prototype.flat",function(K){return K?K:function(d){d=d===void 0?1:d;var f=[];Array.prototype.forEach.call(this,function(H){Array.isArray(H)&&d>0?(H=Array.prototype.flat.call(H,d-1),f.push.apply(f,H)):f.push(H)});
return f}});
Wd("String.raw",function(K){return K?K:function(d,f){if(d==null)throw new TypeError("w");for(var H=d.raw,D=H.length,S="",n=0;n<D;++n)S+=H[n],n+1<D&&n+1<arguments.length&&(S+=String(arguments[n+1]));return S}});
Wd("Reflect.ownKeys",function(K){return K?K:function(d){var f=[],H=Object.getOwnPropertyNames(d);d=Object.getOwnPropertySymbols(d);for(var D=0;D<H.length;D++)(H[D].substring(0,14)=="jscomp_symbol_"?d:f).push(H[D]);return f.concat(d)}});
Wd("Object.getOwnPropertyDescriptors",function(K){return K?K:function(d){for(var f={},H=Reflect.ownKeys(d),D=0;D<H.length;D++)f[H[D]]=Object.getOwnPropertyDescriptor(d,H[D]);return f}});
Wd("WeakSet",function(K){if(function(){if(!K||!Object.seal)return!1;try{var f=Object.seal({}),H=Object.seal({}),D=new K([f]);if(!D.has(f)||D.has(H))return!1;D.delete(f);D.add(H);return!D.has(f)&&D.has(H)}catch(S){return!1}}())return K;
var d=function(f){this.JSC$6789_map_=new WeakMap;if(f){f=_.y(f);for(var H;!(H=f.next()).done;)this.add(H.value)}};
d.prototype.add=function(f){this.JSC$6789_map_.set(f,!0);return this};
d.prototype.has=function(f){return this.JSC$6789_map_.has(f)};
d.prototype.delete=function(f){return this.JSC$6789_map_.delete(f)};
return d});
Wd("Promise.allSettled",function(K){function d(H){return{status:"fulfilled",value:H}}
function f(H){return{status:"rejected",reason:H}}
return K?K:function(H){var D=this;H=Array.from(H,function(S){return D.resolve(S).then(d,f)});
return D.all(H)}});
Wd("Number.parseInt",function(K){return K||parseInt});
_._DumpException=window._DumpException||function(K){throw K;};
window._DumpException=_._DumpException;var tun,oIo,jH,Cs,$$z,EIY,hZz,bVJ,BK,m$5;tun=tun||{};_.Hu=this||self;_.B6=function(K,d,f){K=K.split(".");f=f||_.Hu;for(var H;K.length&&(H=K.shift());)K.length||d===void 0?f[H]&&f[H]!==Object.prototype[H]?f=f[H]:f=f[H]={}:f[H]=d};
oIo=function(K){var d=_.T2("WIZ_global_data.oxN3nb");K=d&&d[K];return K!=null?K:!1};
jH=_.Hu._F_toggles||[];Cs=function(){};
Cs.get=function(){return null};
_.T2=function(K,d){K=K.split(".");d=d||_.Hu;for(var f=0;f<K.length;f++)if(d=d[K[f]],d==null)return null;return d};
_.xb=function(K){K.instance_=void 0;K.getInstance=function(){return K.instance_?K.instance_:K.instance_=new K}};
_.Rz=function(K){var d=typeof K;return d!="object"?d:K?Array.isArray(K)?"array":d:"null"};
_.d2=function(K){var d=_.Rz(K);return d=="array"||d=="object"&&typeof K.length=="number"};
_.H4=function(K){var d=typeof K;return d=="object"&&K!=null||d=="function"};
_.DL=function(K){return Object.prototype.hasOwnProperty.call(K,$$z)&&K[$$z]||(K[$$z]=++EIY)};
$$z="closure_uid_"+(Math.random()*1E9>>>0);EIY=0;hZz=function(K,d,f){return K.call.apply(K.bind,arguments)};
bVJ=function(K,d,f){if(!K)throw Error();if(arguments.length>2){var H=Array.prototype.slice.call(arguments,2);return function(){var D=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(D,H);return K.apply(d,D)}}return function(){return K.apply(d,arguments)}};
_.Om=function(K,d,f){_.Om=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?hZz:bVJ;return _.Om.apply(null,arguments)};
_.uB=function(K,d){var f=Array.prototype.slice.call(arguments,1);return function(){var H=f.slice();H.push.apply(H,arguments);return K.apply(this,H)}};
_.Ls=function(){return Date.now()};
BK=function(K){return K};
_.Bd=function(K,d){function f(){}
f.prototype=d.prototype;K.superClass_=d.prototype;K.prototype=new f;K.prototype.constructor=K;K.base=function(H,D,S){for(var n=Array(arguments.length-2),u=2;u<arguments.length;u++)n[u-2]=arguments[u];return d.prototype[D].apply(H,n)}};
m$5=function(K){return K};var DCX,n3z;_.x=function(K,d,f,H){var D=arguments.length,S=D<3?d:H===null?H=Object.getOwnPropertyDescriptor(d,f):H,n;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")S=Reflect.decorate(K,d,f,H);else for(var u=K.length-1;u>=0;u--)if(n=K[u])S=(D<3?n(S):D>3?n(d,f,S):n(d,f))||S;return D>3&&S&&Object.defineProperty(d,f,S),S};
_.B=function(K,d){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(K,d)};
DCX=function(K,d){if(d!==null&&d!==void 0){if(typeof d!=="object"&&typeof d!=="function")throw new TypeError("x");if(f===void 0){if(!Symbol.dispose)throw new TypeError("z");var f=d[Symbol.dispose]}if(typeof f!=="function")throw new TypeError("A");K.stack.push({value:d,dispose:f,async:!1})}return d};
n3z=function(K){function d(S){K.error=K.hasError?new SuppressedError(S,K.error,"An error was suppressed during disposal."):S;K.hasError=!0}
function f(){for(;H=K.stack.pop();)try{if(!H.async&&D===1)return D=0,K.stack.push(H),Promise.resolve().then(f);if(H.dispose){var S=H.dispose.call(H.value);if(H.async)return D|=2,Promise.resolve(S).then(f,function(n){d(n);return f()})}else D|=1}catch(n){d(n)}if(D===1)return K.hasError?Promise.reject(K.error):Promise.resolve();
if(K.hasError)throw K.error;}
var H,D=0;f()};_.Bd(_.KB,Error);_.KB.prototype.name="CustomError";var lZN;var WzS=void 0,G6z,AgX=typeof TextDecoder!=="undefined",HBY,fnO=typeof String.prototype.isWellFormed==="function",dJp=typeof TextEncoder!=="undefined";var TgN;_.Mo=function(K){for(var d=[],f=0,H=0;H<K.length;H++){var D=K.charCodeAt(H);D<128?d[f++]=D:(D<2048?d[f++]=D>>6|192:((D&64512)==55296&&H+1<K.length&&(K.charCodeAt(H+1)&64512)==56320?(D=65536+((D&1023)<<10)+(K.charCodeAt(++H)&1023),d[f++]=D>>18|240,d[f++]=D>>12&63|128):d[f++]=D>>12|224,d[f++]=D>>6&63|128),d[f++]=D&63|128)}return d};
TgN=function(K){for(var d=[],f=0,H=0;f<K.length;){var D=K[f++];if(D<128)d[H++]=String.fromCharCode(D);else if(D>191&&D<224){var S=K[f++];d[H++]=String.fromCharCode((D&31)<<6|S&63)}else if(D>239&&D<365){S=K[f++];var n=K[f++],u=K[f++];D=((D&7)<<18|(S&63)<<12|(n&63)<<6|u&63)-65536;d[H++]=String.fromCharCode(55296+(D>>10));d[H++]=String.fromCharCode(56320+(D&1023))}else S=K[f++],n=K[f++],d[H++]=String.fromCharCode((D&15)<<12|(S&63)<<6|n&63)}return d.join("")};var UY=String.prototype.trim?function(K){return K.trim()}:function(K){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(K)[1]},rgp=/&/g,qJz=/</g,QrX=/>/g,jrz=/"/g,CgB=/'/g,x$u=/\x00/g,LzJ=/[\x00&<>"']/;var Bgz=!!(jH[0]>>16&1),JgY=!!(jH[0]>>17&1),srz=!!(jH[0]&2),k6Y=!!(jH[0]&4),wmz=!!(jH[0]&32);var vu=Bgz?JgY:oIo(610401301),ZVN=Bgz?srz:oIo(513659523),eZB=Bgz?k6Y:oIo(568333945),yw5=Bgz?wmz:oIo(1331761403);var MJ,pmX=_.Hu.navigator;MJ=pmX?pmX.userAgentData||null:null;var xK;_.CB=function(K,d){return Array.prototype.indexOf.call(K,d,void 0)};
_.QB=function(K,d,f){Array.prototype.forEach.call(K,d,f)};
_.Jm=function(K,d,f){return Array.prototype.filter.call(K,d,f)};
_.O7=function(K,d,f){return Array.prototype.map.call(K,d,f)};
xK=function(K,d,f){return Array.prototype.some.call(K,d,f)};
_.pUO=function(K,d,f){return Array.prototype.every.call(K,d,f)};var sa=function(K){sa[" "](K);return K};
sa[" "]=function(){};
var $h=function(K,d){try{return sa(K[d]),!0}catch(f){}return!1},MqG=function(K,d,f,H){H=H?H(d):d;
return Object.prototype.hasOwnProperty.call(K,H)?K[H]:K[H]=f(d)};var Kmn,x_,dBX,fYX,DBJ,Vr5,ewB,S6p,ynz,nrX,R1u,cnz,ulX,R$X,Fm5,z$5;_.PKz=function(){return _.Hu.navigator||null};
Kmn=oX();_.kb=SYY();x_=OY("Edge");dBX=x_||_.kb;_.w7=OY("Gecko")&&!(_.IX(_.zS(),"WebKit")&&!OY("Edge"))&&!(OY("Trident")||OY("MSIE"))&&!OY("Edge");_.Zf=_.IX(_.zS(),"WebKit")&&!OY("Edge");fYX=_.Zf&&OY("Mobile");_.HlX=_.UJJ();DBJ=_.RGp();Vr5=(Wu()?MJ.platform==="Linux":OY("Linux"))||_.F5N();ewB=_.anJ();S6p=InX();ynz=OY("iPad");nrX=OY("iPod");_.ilN=_.AN();R1u=_.IX(_.zS(),"KaiOS");cnz=function(){var K=_.Hu.document;return K?K.documentMode:void 0};
a:{var aYo="",IYN=function(){var K=_.zS();if(_.w7)return/rv:([^\);]+)(\)|;)/.exec(K);if(x_)return/Edge\/([\d\.]+)/.exec(K);if(_.kb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(K);if(_.Zf)return/WebKit\/(\S+)/.exec(K);if(Kmn)return/(?:Version)[ \/]?(\S+)/.exec(K)}();
IYN&&(aYo=IYN?IYN[1]:"");if(_.kb){var UBS=cnz();if(UBS!=null&&UBS>parseFloat(aYo)){ulX=String(UBS);break a}}ulX=aYo}R$X=ulX;Fm5={};_.eH=function(K){return MqG(Fm5,K,function(){return _.RX(R$X,K)>=0})};
if(_.Hu.document&&_.kb){var X75=cnz();z$5=X75?X75:parseInt(R$X,10)||void 0}else z$5=void 0;_.vr5=z$5;var Pwo,gZz,MrJ;_.ps=EY();Pwo=InX()||OY("iPod");gZz=OY("iPad");MrJ=_.nzS();_.KO=_.m5();_.bH=_.lo()&&!_.AN();var PuX,dc,soS,fIB,OlG,grX;PuX={};dc=null;soS=_.w7||_.Zf||typeof _.Hu.btoa=="function";_.eS=function(K,d){d===void 0&&(d=0);grX();d=PuX[d];for(var f=Array(Math.floor(K.length/3)),H=d[64]||"",D=0,S=0;D<K.length-2;D+=3){var n=K[D],u=K[D+1],a=K[D+2],R=d[n>>2];n=d[(n&3)<<4|u>>4];u=d[(u&15)<<2|a>>6];a=d[a&63];f[S++]=R+n+u+a}R=0;a=H;switch(K.length-D){case 2:R=K[D+1],a=d[(R&15)<<2]||H;case 1:K=K[D],f[S]=d[K>>2]+d[(K&3)<<4|R>>4]+a+H}return f.join("")};
fIB=function(K){var d="";OlG(K,function(f){d+=String.fromCharCode(f)});
return d};
_.kVX=function(K){var d=[];OlG(K,function(f){d.push(f)});
return d};
_.Us=function(K){var d=K.length,f=d*3/4;f%3?f=Math.floor(f):_.aX("=.",K[d-1])&&(f=_.aX("=.",K[d-2])?f-2:f-1);var H=new Uint8Array(f),D=0;OlG(K,function(S){H[D++]=S});
return D!==f?H.subarray(0,D):H};
OlG=function(K,d){function f(a){for(;H<K.length;){var R=K.charAt(H++),F=dc[R];if(F!=null)return F;if(!_.cu(R))throw Error("E`"+R);}return a}
grX();for(var H=0;;){var D=f(-1),S=f(0),n=f(64),u=f(64);if(u===64&&D===-1)break;d(D<<2|S>>4);n!=64&&(d(S<<4&240|n>>2),u!=64&&d(n<<6&192|u))}};
grX=function(){if(!dc){dc={};for(var K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],f=0;f<5;f++){var H=K.concat(d[f].split(""));PuX[f]=H;for(var D=0;D<H.length;D++){var S=H[D];dc[S]===void 0&&(dc[S]=D)}}}};var GSY=typeof Uint8Array!=="undefined",tpS=!_.kb&&typeof btoa==="function",ozG=/[-_.]/g,Nzz={"-":"+",_:"/",".":"="},A6={};var Gk,Y6z;Gk=function(K,d){if(d!==A6)throw Error("G");this.JSC$6820_value_=K;if(K!=null&&K.length===0)throw Error("F");};
_.Tk=function(){return NuX||(NuX=new Gk(null,A6))};
Y6z=function(K){return new Uint8Array(mb(K)||0)};
Gk.prototype.isEmpty=function(){return this.JSC$6820_value_==null};
Gk.prototype.sizeBytes=function(){var K=mb(this);return K?K.length:0};
var mb=function(K){if(A6!==A6)throw Error("G");var d=K.JSC$6820_value_;d=d==null||GSY&&d!=null&&d instanceof Uint8Array?d:typeof d==="string"?$JN(d):null;return d==null?d:K.JSC$6820_value_=d},NuX;var hGY=void 0;var Ns=typeof Symbol==="function"&&typeof Symbol()==="symbol",trX=Os("jas",void 0,!0),CE=Os(void 0,"0di"),Ej=Os(void 0,"1oa"),JP=Os(void 0,Symbol()),hB5=Os(void 0,"0ub"),msu=Os(void 0,"0ubs"),GyB=Os(void 0,"0ubsb"),J6z=Os(void 0,"0actk"),Qc=Os("m_m","messagePrototypeMarker",!0),Qfn=Os(void 0,"vps"),o8o=Os();var mJS,bBo,Xe,orz;mJS={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};bBo=Object.defineProperties;_.of=Ns?trX:"internalArrayState";orz=[];Es(orz,7);Xe=Object.freeze(orz);var jS={},mN={},$BN=function(K,d,f){this.iterable=K;this.mapper=d;this.thisArg=f};
$BN.prototype.next=function(){var K=this.iterable.next();K.done||(K.value=this.mapper.call(this.thisArg,K.value));return K};
$BN.prototype[Symbol.iterator]=function(){return this};
var ErN=Object.freeze({}),CJ={};_.h$5=J6(function(K){return K!==null&&K!==void 0});var QX5=J6(function(K){return typeof K==="number"}),qY5=J6(function(K){return typeof K==="string"}),jXX=J6(function(K){return typeof K==="boolean"}),blu=J6(function(K){return K!=null&&typeof K==="object"&&typeof K.then==="function"}),kh5=J6(function(K){return typeof K==="function"}),fn=J6(function(K){return!!K&&(typeof K==="object"||typeof K==="function")});var ss=typeof _.Hu.BigInt==="function"&&typeof _.Hu.BigInt(0)==="bigint";var WK=J6(function(K){return ss?K>=mBS&&K<=lYX:K[0]==="-"?CoN(K,Wm5):CoN(K,Grn)}),Wm5=Number.MIN_SAFE_INTEGER.toString(),mBS=ss?BigInt(Number.MIN_SAFE_INTEGER):void 0,Grn=Number.MAX_SAFE_INTEGER.toString(),lYX=ss?BigInt(Number.MAX_SAFE_INTEGER):void 0;var AnO=typeof Uint8Array.prototype.slice==="function",w2=0,ZL=0,ks;var $w,bU,Xi,mt,wuo;$w=typeof BigInt==="function"?BigInt.asIntN:void 0;_.lU=typeof BigInt==="function"?BigInt.asUintN:void 0;bU=Number.isSafeInteger;Xi=Number.isFinite;mt=Math.trunc;wuo=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var jfY={};var YsG={},Tun=function(){try{var K=function(){return iVz(Map,[],this.constructor)};
_.O(K,Map);sa(new K);return!1}catch(d){return!0}}(),fO=function(){this.JSC$6848_map_=new Map};
_.V=fO.prototype;_.V.get=function(K){return this.JSC$6848_map_.get(K)};
_.V.set=function(K,d){this.JSC$6848_map_.set(K,d);this.size=this.JSC$6848_map_.size;return this};
_.V.delete=function(K){K=this.JSC$6848_map_.delete(K);this.size=this.JSC$6848_map_.size;return K};
_.V.clear=function(){this.JSC$6848_map_.clear();this.size=this.JSC$6848_map_.size};
_.V.has=function(K){return this.JSC$6848_map_.has(K)};
_.V.entries=function(){return this.JSC$6848_map_.entries()};
_.V.keys=function(){return this.JSC$6848_map_.keys()};
_.V.values=function(){return this.JSC$6848_map_.values()};
_.V.forEach=function(K,d){return this.JSC$6848_map_.forEach(K,d)};
fO.prototype[Symbol.iterator]=function(){return this.entries()};
var pE=function(){if(Tun)return Object.setPrototypeOf(fO.prototype,Map.prototype),Object.defineProperties(fO.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),fO;var K=function(){return iVz(Map,[],this.constructor)};
_.O(K,Map);return K}(),LE=function(K,d,f,H){f=f===void 0?Mtn:f;
H=H===void 0?Mtn:H;var D=pE.call(this)||this;D.arrayState=K[_.of]|0;D.valueCtor=d;D.keyToApi=f;D.valueToApi=D.valueCtor?g8p:H;for(var S=0;S<K.length;S++){var n=K[S],u=f(n[0],!1,!0),a=n[1];d?a===void 0&&(a=null):a=H(n[1],!1,!0,void 0,void 0,D.arrayState);pE.prototype.set.call(D,u,a)}return D};
_.O(LE,pE);var rnY=function(K){if(K.arrayState&2)throw Error("K");};
_.V=LE.prototype;_.V.clear=function(){rnY(this);pE.prototype.clear.call(this)};
_.V.delete=function(K){rnY(this);return pE.prototype.delete.call(this,this.keyToApi(K,!0,!1))};
_.V.entries=function(){if(this.valueCtor){var K=pE.prototype.keys.call(this);K=new $BN(K,OJz,this)}else K=pE.prototype.entries.call(this);return K};
_.V.values=function(){if(this.valueCtor){var K=pE.prototype.keys.call(this);K=new $BN(K,LE.prototype.get,this)}else K=pE.prototype.values.call(this);return K};
_.V.forEach=function(K,d){this.valueCtor?pE.prototype.forEach.call(this,function(f,H,D){K.call(d,D.get(H),H,D)}):pE.prototype.forEach.call(this,K,d)};
_.V.set=function(K,d){rnY(this);K=this.keyToApi(K,!0,!1);return K==null?this:d==null?(pE.prototype.delete.call(this,K),this):pE.prototype.set.call(this,K,this.valueToApi(d,!0,!0,this.valueCtor,!1,this.arrayState))};
_.V.has=function(K){return pE.prototype.has.call(this,this.keyToApi(K,!1,!1))};
_.V.get=function(K){K=this.keyToApi(K,!1,!1);var d=pE.prototype.get.call(this,K);if(d!==void 0){var f=this.valueCtor;return f?(f=this.valueToApi(d,!1,!0,f,this.callToMutableOnAccess,this.arrayState),f!==d&&pE.prototype.set.call(this,K,f),f):d}};
LE.prototype[Symbol.iterator]=function(){return this.entries()};
LE.prototype.toJSON=void 0;var N25;var GkJ=function(){},kw=function(K,d){for(var f in K)!isNaN(f)&&d(K,+f,K[f])},A6O=function(K){var d=new GkJ;
kw(K,function(f,H,D){d[H]=SS(D)});
d.reviveUnknownFields=K.reviveUnknownFields;return d},$sX={reviveIntoImmutable:!0};var WNp;var C9o,xsX;var q6o,g4,ca,RB,QVX,cY,IB,jVn,CuY,Fo,xBX,z9,Mi,PY;q6o=_.k8(0);_.HY={};_.Db=function(K,d,f,H,D){d=g4(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d,f,D);if(d!==null||H&&K.noLegacyNull!==mN)return d};
g4=function(K,d,f,H){if(d===-1)return null;var D=d+(f?0:-1),S=K.length-1;if(!(S<1+(f?0:-1))){if(D>=S){var n=K[S];if(n!=null&&typeof n==="object"&&n.constructor===Object){f=n[d];var u=!0}else if(D===S)f=n;else return}else f=K[D];if(H&&f!=null){H=H(f);if(H==null)return H;if(!Object.is(H,f))return u?n[d]=H:K[D]=H,H}return f}};
_.KA=function(K,d,f,H){Uj(K);var D=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;zi(D,D[_.of]|0,d,f,H);return K};
_.V5=function(K,d,f){K=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return h4(K,K[_.of]|0,d,f)!==void 0};
_.SR=function(K,d,f,H){var D=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return h4(D,D[_.of]|0,d,RB(K,H,f))!==void 0};
_.p0=function(K){return K===ErN?2:4};
_.y5=function(K,d){K=_.Db(K,d,void 0,void 0,Kto);return K==null?_.Tk():K};
ca=function(K,d,f,H){Uj(K);var D=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=D[_.of]|0;if(H==null){var n=f7o(D);if(HEO(n,D,S,f)===d)n.set(f,0);else return K}else S=Dlp(D,S,f,d);zi(D,S,d,H);return K};
_.nO=function(K,d,f,H){var D=K[_.of]|0,S=x8(D);D=Dlp(K,D,f,d,S);zi(K,D,d,H,S)};
RB=function(K,d,f){return _.i1(K,d)===f?f:-1};
_.i1=function(K,d){K=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return HEO(f7o(K),K,void 0,d,void 0)};
QVX=function(K,d,f){var H=K[_.of]|0,D=x8(H),S=g4(K,f,D);if(S!=null&&S[Qc]===jS){if(!W4(S))return I6(S),S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var n=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(S)&&(n=S);if(n){var u=n[_.of]|0;u&2&&(n=Vx(n,u))}n=DM(n,d,!0);n!==S&&zi(K,H,f,n,D);return n};
_.eQ=function(K,d,f,H){var D=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=D[_.of]|0;d=h4(D,S,d,f,H);if(d==null)return d;S=D[_.of]|0;if(!W4(K,S)){var n=P9p(d);n!==d&&(I6(K)&&(D=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=D[_.of]|0),d=n,S=zi(D,S,f,d,H),Fe(D,S))}return d};
_.e4=function(K,d,f,H){var D=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return VSX(K,D,D[_.of]|0,d,f,H,!1,!0)};
_.fM=function(K,d,f,H){f=SZY(f);_.KA(K,d,f,H);f&&!W4(f)&&Fe(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return K};
_.Hg=function(K,d,f,H){H=SZY(H);ca(K,d,f,H);H&&!W4(H)&&Fe(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return K};
cY=function(K,d,f){Uj(K);var H=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=H[_.of]|0;if(f==null)return zi(H,D,d),K;for(var S=f===Xe?7:f[_.of]|0,n=S,u=Px(S),a=u||Object.isFrozen(f),R=!0,F=!0,z=0;z<f.length;z++){var v=f[z];u||(v=W4(v),R&&(R=!v),F&&(F=v))}u||(S=R?13:5,S=F?S&-4097:S|4096);a&&S===n||(f=SS(f),n=0,S=vx(S,D));S!==n&&Es(f,S);D=zi(H,D,d,f);2&S||!(4096&S||16&S)||Fe(H,D);return K};
IB=function(K,d,f,H){nwz(K,d,f,H);return K};
jVn=function(K,d,f){nwz(K,d,u1,void 0,f,1,!0);return K};
_.U3=function(K,d,f){K=_.Db(K,d,void 0,f);d=typeof K;K=K==null?K:d==="bigint"?_.k8((0,_.lU)(64,K)):_.vK(K)?d==="string"?_.uHG(K):_.iJX(K):void 0;return K};
_.R2=function(K,d){var f=f===void 0?!1:f;var H;return(H=_.kSO(_.Db(K,d)))!=null?H:f};
_.Km=function(K,d,f){f=f===void 0?0:f;var H;return(H=_.Nl(_.Db(K,d)))!=null?H:f};
CuY=function(K,d){var f=f===void 0?0:f;K=_.Yw(_.Db(K,d));return K!=null?K:f};
Fo=function(K,d,f){f=f===void 0?q6o:f;var H;return(H=_.Us5(_.Db(K,d)))!=null?H:f};
xBX=function(K){var d=d===void 0?q6o:d;var f;return(f=_.U3(K,23))!=null?f:d};
z9=function(K,d){var f=f===void 0?0:f;var H;return(H=_.Db(K,d,void 0,void 0,_.az))!=null?H:f};
_.Xo=function(K,d,f,H){f=f===void 0?"":f;var D;return(D=_.ql(_.Db(K,d,H)))!=null?D:f};
_.vY=function(K,d){var f=f===void 0?0:f;var H;return(H=_.gw(_.Db(K,d)))!=null?H:f};
Mi=function(K,d){var f=f===void 0?"0":f;K=ILJ(_.Db(K,d),!0);return K!=null?K:f};
PY=function(K,d,f){return _.Xo(K,RB(K,f,d))};
_.O3=function(K,d,f,H){return _.eQ(K,d,RB(K,H,f),void 0)};
_.Um=function(K,d){return _.ql(_.Db(K,d,void 0,_.HY))};
_.Dq=function(K,d,f){return _.KA(K,d,sXY(f))};
_.gL=function(K,d,f){return _.Ys(K,d,sXY(f),!1)};
_.Ni=function(K,d,f){return _.KA(K,d,_.OZ(f))};
_.zE=function(K,d,f){return _.KA(K,d,hP(f))};
_.aL=function(K,d,f){return _.KA(K,d,Ty(f))};
_.Qb=function(K,d,f,H){return _.Ys(K,d,Ty(f),"",H)};
_.py=function(K,d,f){return _.KA(K,d,f==null?f:_.Ml(f))};
_.Y2=function(K,d,f){return _.Ys(K,d,f==null?f:_.Ml(f),0)};var bN=function(K,d,f){this.buffer=K;if(f&&!d)throw Error();this.JSC$6860_isImmutable=d};var LmG=function(K,d,f,H){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6863_start_=0;this.init(K,d,f,H)},tI,Jn5,sVu,w7z,owO,BuO;
_.V=LmG.prototype;_.V.init=function(K,d,f,H){var D=H===void 0?{}:H;H=D.aliasBytesFields===void 0?!1:D.aliasBytesFields;D=D.treatNewDataAsImmutable===void 0?!1:D.treatNewDataAsImmutable;this.aliasBytesFields=H;this.treatNewDataAsImmutable=D;K&&(K=iEX(K,this.treatNewDataAsImmutable),this.bytes_=K.buffer,this.bytesAreImmutable_=K.JSC$6860_isImmutable,this.JSC$6863_start_=d||0,this.end_=f!==void 0?this.JSC$6863_start_+f:this.bytes_.length,this.cursor_=this.JSC$6863_start_)};
_.V.free=function(){this.clear();BuO.length<100&&BuO.push(this)};
_.V.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6863_start_=0;this.aliasBytesFields=!1};
_.V.reset=function(){this.cursor_=this.JSC$6863_start_};
_.V.atEnd=function(){return this.cursor_==this.end_};
_.o2=function(K,d){var f=0,H=0,D=0,S=K.bytes_,n=K.cursor_;do{var u=S[n++];f|=(u&127)<<D;D+=7}while(D<32&&u&128);D>32&&(H|=(u&127)>>4);for(D=3;D<32&&u&128;D+=7)u=S[n++],H|=(u&127)<<D;tI(K,n);if(u<128)return d(f>>>0,H>>>0);throw Error("X");};
tI=function(K,d){K.cursor_=d;if(d>K.end_)throw Error("Y`"+d+"`"+K.end_);};
_.$2=function(K){var d=K.bytes_,f=K.cursor_,H=d[f++],D=H&127;if(H&128&&(H=d[f++],D|=(H&127)<<7,H&128&&(H=d[f++],D|=(H&127)<<14,H&128&&(H=d[f++],D|=(H&127)<<21,H&128&&(H=d[f++],D|=H<<28,H&128&&d[f++]&128&&d[f++]&128&&d[f++]&128&&d[f++]&128&&d[f++]&128)))))throw Error("X");tI(K,f);return D};
_.E3=function(K){var d=K.bytes_,f=K.cursor_,H=d[f],D=d[f+1],S=d[f+2];d=d[f+3];tI(K,K.cursor_+4);return(H<<0|D<<8|S<<16|d<<24)>>>0};
Jn5=function(K){var d=_.E3(K);K=_.E3(K);return BzN(d,K)};
sVu=function(K){var d=_.E3(K),f=_.E3(K);K=(f>>31)*2+1;var H=f>>>20&2047;d=4294967296*(f&1048575)+d;return H==2047?d?NaN:K*Infinity:H==0?K*4.9E-324*d:K*Math.pow(2,H-1075)*(d+4503599627370496)};
_.kru=function(K){for(var d=0,f=K.cursor_,H=f+10,D=K.bytes_;f<H;){var S=D[f++];d|=S;if((S&128)===0)return tI(K,f),!!(d&127)}throw Error("X");};
w7z=function(K,d){if(d<0)throw Error("Z`"+d);var f=K.cursor_,H=f+d;if(H>K.end_)throw Error("Y`"+(K.end_-f)+"`"+d);K.cursor_=H;return f};
owO=function(K,d){if(d==0)return _.Tk();var f=w7z(K,d);K.aliasBytesFields&&K.bytesAreImmutable_?f=K.bytes_.subarray(f,f+d):(K=K.bytes_,d=f+d,f=f===d?new Uint8Array(0):AnO?K.slice(f,d):new Uint8Array(K.subarray(f,d)));return f.length==0?_.Tk():new Gk(f,A6)};
BuO=[];var e$o=function(K,d,f,H){if(BuO.length){var D=BuO.pop();D.init(K,d,f,H);K=D}else K=new LmG(K,d,f,H);this.decoder_=K;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;ZlN(this,H)},ZlN=function(K,d){d=d===void 0?{}:d;
K.discardUnknownFields=d.discardUnknownFields===void 0?!1:d.discardUnknownFields},h5O=function(K,d,f,H){if(p7z.length){var D=p7z.pop();
ZlN(D,H);D.decoder_.init(K,d,f,H);return D}return new e$o(K,d,f,H)},YZn,q8,KFz,p7z;
e$o.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;p7z.length<100&&p7z.push(this)};
e$o.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
YZn=function(K){if(K.decoder_.atEnd())return!1;K.fieldCursor_=K.decoder_.cursor_;var d=_.$2(K.decoder_)>>>0,f=d>>>3;d&=7;if(!(d>=0&&d<=5))throw Error("T`"+d+"`"+K.fieldCursor_);if(f<1)throw Error("U`"+f+"`"+K.fieldCursor_);K.nextField_=f;K.nextWireType_=d;return!0};
q8=function(K){switch(K.nextWireType_){case 0:K.nextWireType_!=0?q8(K):_.kru(K.decoder_);break;case 1:K=K.decoder_;tI(K,K.cursor_+8);break;case 2:if(K.nextWireType_!=2)q8(K);else{var d=_.$2(K.decoder_)>>>0;K=K.decoder_;tI(K,K.cursor_+d)}break;case 5:K=K.decoder_;tI(K,K.cursor_+4);break;case 3:d=K.nextField_;do{if(!YZn(K))throw Error("V");if(K.nextWireType_==4){if(K.nextField_!=d)throw Error("W");break}q8(K)}while(1);break;default:throw Error("T`"+K.nextWireType_+"`"+K.fieldCursor_);}};
KFz=function(K,d,f){var H=K.decoder_.end_,D=_.$2(K.decoder_)>>>0,S=K.decoder_.cursor_+D,n=S-H;n<=0&&(K.decoder_.end_=S,f(d,K,void 0,void 0,void 0),n=S-K.decoder_.cursor_);if(n)throw Error("S`"+D+"`"+(D-n));K.decoder_.cursor_=S;K.decoder_.end_=H};
_.dyJ=function(K){var d=_.$2(K.decoder_)>>>0;K=K.decoder_;var f=w7z(K,d);K=K.bytes_;if(AgX){var H=K,D;(D=G6z)||(D=G6z=new TextDecoder("utf-8",{fatal:!0}));d=f+d;H=f===0&&d===H.length?H:H.subarray(f,d);try{var S=D.decode(H)}catch(R){if(WzS===void 0){try{D.decode(new Uint8Array([128]))}catch(F){}try{D.decode(new Uint8Array([97])),WzS=!0}catch(F){WzS=!1}}!WzS&&(G6z=void 0);throw R;}}else{S=f;d=S+d;f=[];for(var n=null,u,a;S<d;)u=K[S++],u<128?f.push(u):u<224?S>=d?dz():(a=K[S++],u<194||(a&192)!==128?(S--,
dz()):f.push((u&31)<<6|a&63)):u<240?S>=d-1?dz():(a=K[S++],(a&192)!==128||u===224&&a<160||u===237&&a>=160||((D=K[S++])&192)!==128?(S--,dz()):f.push((u&15)<<12|(a&63)<<6|D&63)):u<=244?S>=d-2?dz():(a=K[S++],(a&192)!==128||(u<<28)+(a-144)>>30!==0||((D=K[S++])&192)!==128||((H=K[S++])&192)!==128?(S--,dz()):(u=(u&7)<<18|(a&63)<<12|(D&63)<<6|H&63,u-=65536,f.push((u>>10&1023)+55296,(u&1023)+56320))):dz(),f.length>=8192&&(n=K5p(n,f),f.length=0);S=K5p(n,f)}return S};
_.fCY=function(K){var d=_.$2(K.decoder_)>>>0;return owO(K.decoder_,d)};
_.HRz=function(K,d,f){var H=_.$2(K.decoder_)>>>0;for(H=K.decoder_.cursor_+H;K.decoder_.cursor_<H;)f.push(d(K.decoder_))};
p7z=[];var DyN=function(K,d){this.JSC$6870_lo=K>>>0;this.JSC$6870_hi=d>>>0},SwX=function(K){if(!K)return VTX||(VTX=new DyN(0,0));
if(!/^\d+$/.test(K))return null;Vc(K);return new DyN(w2,ZL)},VTX,jzu=function(K,d){this.JSC$6872_lo=K>>>0;
this.JSC$6872_hi=d>>>0},qZB=function(K){if(!K)return ykz||(ykz=new jzu(0,0));
if(!/^-?\d+$/.test(K))return null;Vc(K);return new jzu(w2,ZL)},ykz;var nvz=function(){this.JSC$6874_buffer_=[]},Qzn,iRu;
nvz.prototype.length=function(){return this.JSC$6874_buffer_.length};
nvz.prototype.end=function(){var K=this.JSC$6874_buffer_;this.JSC$6874_buffer_=[];return K};
Qzn=function(K,d,f){for(;f>0||d>127;)K.JSC$6874_buffer_.push(d&127|128),d=(d>>>7|f<<25)>>>0,f>>>=7;K.JSC$6874_buffer_.push(d)};
iRu=function(K,d){for(;d>127;)K.JSC$6874_buffer_.push(d&127|128),d>>>=7;K.JSC$6874_buffer_.push(d)};
_.CUz=function(K,d){if(d>=0)iRu(K,d);else{for(var f=0;f<9;f++)K.JSC$6874_buffer_.push(d&127|128),d>>=7;K.JSC$6874_buffer_.push(1)}};
_.w4=function(K,d){K.JSC$6874_buffer_.push(d>>>0&255);K.JSC$6874_buffer_.push(d>>>8&255);K.JSC$6874_buffer_.push(d>>>16&255);K.JSC$6874_buffer_.push(d>>>24&255)};var ckO,xs,BwX,kyp;ckO=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new nvz};
xs=function(K,d){d.length!==0&&(K.blocks_.push(d),K.totalLength_+=d.length)};
_.I7z=function(K,d){_.sj(K,d,2);d=K.encoder_.end();xs(K,d);d.push(K.totalLength_);return d};
_.UlX=function(K,d){var f=d.pop();for(f=K.totalLength_+K.encoder_.length()-f;f>127;)d.push(f&127|128),f>>>=7,K.totalLength_++;d.push(f);K.totalLength_++};
_.sj=function(K,d,f){iRu(K.encoder_,d*8+f)};
BwX=function(K,d,f){if(f!=null){switch(typeof f){case "string":SwX(f)}_.sj(K,d,1);switch(typeof f){case "number":K=K.encoder_;xJS(f);_.w4(K,w2);_.w4(K,ZL);break;case "bigint":f=BigInt.asUintN(64,f);f=new DyN(Number(f&BigInt(4294967295)),Number(f>>BigInt(32)));K=K.encoder_;d=f.JSC$6870_hi;_.w4(K,f.JSC$6870_lo);_.w4(K,d);break;default:f=SwX(f),K=K.encoder_,d=f.JSC$6870_hi,_.w4(K,f.JSC$6870_lo),_.w4(K,d)}}};
kyp=function(K,d,f){_.sj(K,d,2);iRu(K.encoder_,f.length);xs(K,K.encoder_.end());xs(K,f)};var cPS,ICX,UyS,zjn,X8z;cPS=Wx();_.uhX=Wx();_.aCO=Wx();ICX=Wx();UyS=Wx();_.Rjp=Wx();_.hI=Wx();_.FFJ=Wx();zjn=Wx();X8z=Wx();_.vvN=Wx();_.MTo=Wx();_.Ti=function(K,d,f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K,d,f)};
_.Ti.prototype.toJSON=function(){return fw(this)};
_.Ti.prototype.serialize=function(K){return JSON.stringify(fw(this,K))};
var HwS=function(K,d){if(d==null||d=="")return new K;d=JSON.parse(d);if(!Array.isArray(d))throw Error("$");return new K(W5n(d))};
_.Ti.prototype.getExtension=function(K){bJO(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K.fieldIndex);E8S(this,K.fieldIndex);return K.ctor?K.isRepeated?K.getExtensionFn(this,K.ctor,K.fieldIndex,_.p0(),K.JSC$6885_hasMessageId):K.getExtensionFn(this,K.ctor,K.fieldIndex,K.JSC$6885_hasMessageId):K.isRepeated?K.getExtensionFn(this,K.fieldIndex,_.p0(),K.JSC$6885_hasMessageId):K.getExtensionFn(this,K.fieldIndex,K.defaultValue,K.JSC$6885_hasMessageId)};
_.Ti.prototype.clone=function(){var K=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=K[_.of]|0;return yx(this,K,d)?Sw(this,K,!0):new this.constructor(Vx(K,d,!1))};
_.Ti.prototype[Qc]=jS;_.Ti.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Gi=function(K,d,f){this.$$binaryReaderFn=K;this.$$binaryWriterFn=d;K=BK(cPS);this.$$isMsg=!!K&&f===K||!1},XKz=uiO(function(K,d,f,H,D){if(K.nextWireType_!==2)return!1;
KFz(K,QVX(d,H,f),D);return!0},R5O),vwG=uiO(function(K,d,f,H,D){if(K.nextWireType_!==2)return!1;
KFz(K,QVX(d,H,f),D);return!0},R5O),jw=Symbol(),r4=Symbol(),NwO=Symbol(),mlJ=Symbol(),$lO=Symbol(),FtX,z5z;var KbY,Pt5,gvY,ORp,NEz,YwJ,tTY,ovB,$y5,EvX,hjB,myG,lCp,G_z,AkG;KbY=function(K,d){var f=new ckO;l7z(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f,A4(jw,Qx,Cw,d));xs(f,f.encoder_.end());K=new Uint8Array(f.totalLength_);d=f.blocks_;for(var H=d.length,D=0,S=0;S<H;S++){var n=d[S];K.set(n,D);D+=n.length}f.blocks_=[K];return K};
Pt5=_.Bx(function(K,d,f){if(K.nextWireType_!==1)return!1;_.J4(d,f,sVu(K.decoder_));return!0},rPX,X8z);
gvY=_.Bx(function(K,d,f,H){if(K.nextWireType_!==1)return!1;_.nO(d,f,H,sVu(K.decoder_));return!0},rPX,X8z);
ORp=_.Bx(function(K,d,f,H){if(K.nextWireType_!==5)return!1;var D=_.E3(K.decoder_);K=(D>>31)*2+1;var S=D>>>23&255;D&=8388607;_.nO(d,f,H,S==255?D?NaN:K*Infinity:S==0?K*1.401298464324817E-45*D:K*Math.pow(2,S-150)*(D+8388608));return!0},function(K,d,f){d=_.az(d);
d!=null&&(_.sj(K,f,5),K=K.encoder_,f=ks||(ks=new DataView(new ArrayBuffer(8))),f.setFloat32(0,+d,!0),ZL=0,w2=f.getUint32(0,!0),_.w4(K,w2))},zjn);
_.b1=_.Bx(function(K,d,f){if(K.nextWireType_!==0)return!1;_.J4(d,f,_.o2(K.decoder_,dw));return!0},_.ZM,_.hI);
NEz=_.Bx(function(K,d,f){if(K.nextWireType_!==0)return!1;K=_.o2(K.decoder_,dw);_.J4(d,f,K===0?void 0:K);return!0},_.ZM,_.hI);
YwJ=_.Bx(function(K,d,f,H){if(K.nextWireType_!==0)return!1;_.nO(d,f,H,_.o2(K.decoder_,dw));return!0},_.ZM,_.hI);
_.mQ=_.Bx(function(K,d,f){if(K.nextWireType_!==0)return!1;_.J4(d,f,_.$2(K.decoder_));return!0},xlG,ICX);
tTY=_.Bx(function(K,d,f){if(K.nextWireType_!==0)return!1;K=_.$2(K.decoder_);_.J4(d,f,K===0?void 0:K);return!0},xlG,ICX);
ovB=_.Bx(function(K,d,f,H){if(K.nextWireType_!==0)return!1;_.nO(d,f,H,_.$2(K.decoder_));return!0},xlG,ICX);
$y5=_.Bx(function(K,d,f){if(K.nextWireType_!==1)return!1;_.J4(d,f,Jn5(K.decoder_));return!0},_.JPG,_.FFJ);
EvX=_.TwJ(function(K,d,f){if(K.nextWireType_!==1&&K.nextWireType_!==2)return!1;d=_.t4(d,d[_.of]|0,f);K.nextWireType_==2?_.HRz(K,Jn5,d):d.push(Jn5(K.decoder_));return!0},function(K,d,f){d=_.APz(FNo,d,!1);
if(d!=null)for(var H=0;H<d.length;H++)BwX(K,f,d[H])},_.FFJ);
_.l1=_.Bx(function(K,d,f){if(K.nextWireType_!==0)return!1;_.J4(d,f,_.kru(K.decoder_));return!0},_.sz5,_.uhX);
hjB=_.Bx(function(K,d,f,H){if(K.nextWireType_!==0)return!1;_.nO(d,f,H,_.kru(K.decoder_));return!0},_.sz5,_.uhX);
_.G9=_.Bx(function(K,d,f){if(K.nextWireType_!==2)return!1;_.J4(d,f,_.dyJ(K));return!0},_.wKO,_.aCO);
_.bRY=_.Bx(function(K,d,f,H){if(K.nextWireType_!==2)return!1;_.nO(d,f,H,_.dyJ(K));return!0},_.wKO,_.aCO);
myG=_.TwJ(function(K,d,f){if(K.nextWireType_!==2)return!1;K=_.dyJ(K);_.t4(d,d[_.of]|0,f).push(K);return!0},function(K,d,f){d=_.APz(_.ql,d,!0);
if(d!=null)for(var H=0;H<d.length;H++){var D=K,S=f,n=d[H];n!=null&&kyp(D,S,DJY(n))}},_.aCO);
lCp=void 0;lCp=lCp===void 0?cPS:lCp;_.AI=new Gi(function(K,d,f,H,D){if(K.nextWireType_!==2)return!1;H=DM(void 0,H,!0);_.t4(d,d[_.of]|0,f).push(H);KFz(K,H,D);return!0},function(K,d,f,H,D){if(Array.isArray(d))for(var S=0;S<d.length;S++)ZEn(K,d[S],f,H,D)},lCp);
_.T9=uiO(function(K,d,f,H,D,S){if(K.nextWireType_!==2)return!1;var n=d[_.of]|0;Dlp(d,n,S,f,x8(n));d=QVX(d,H,f);KFz(K,d,D);return!0},ZEn);
_.WF5=_.Bx(function(K,d,f){if(K.nextWireType_!==2)return!1;_.J4(d,f,_.fCY(K));return!0},_.e5X,_.vvN);
G_z=_.Bx(function(K,d,f,H){if(K.nextWireType_!==2)return!1;_.nO(d,f,H,_.fCY(K));return!0},_.e5X,_.vvN);
AkG=_.Bx(function(K,d,f,H){if(K.nextWireType_!==0)return!1;_.nO(d,f,H,_.$2(K.decoder_)>>>0);return!0},function(K,d,f){d=_.Yw(d);
d!=null&&d!=null&&(_.sj(K,f,0),iRu(K.encoder_,d))},UyS);
_.rc=_.Bx(function(K,d,f){if(K.nextWireType_!==0)return!1;_.J4(d,f,_.$2(K.decoder_));return!0},_.pKz,_.MTo);var qwB=function(){var K=TEz,d=rkO;this.fieldIndex=175237375;this.ctor=d;this.isRepeated=0;this.getExtensionFn=_.eQ;this.defaultValue=void 0;this.JSC$6885_hasMessageId=K.messageId!=null?CJ:void 0};
qwB.prototype.register=function(){sa(this)};var Qyp=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Qyp,_.Ti);var jyS=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(jyS,_.Ti);var Sjp=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Sjp,_.Ti);var CtO=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(CtO,_.Ti);var xyX=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(xyX,_.Ti);var LFJ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(LFJ,_.Ti);var BES=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(BES,_.Ti);BES.prototype.getData=function(){return _.y5(this,2)};var JkX=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(JkX,_.Ti);var syz=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(syz,_.Ti);syz.prototype.getStyle=function(){return _.eQ(this,Qyp,1)};var d5=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(d5,_.Ti);d5.prototype.getPayloadCase=function(){return _.i1(this,Da)};
d5.prototype.getStyle=function(){return _.O3(this,syz,6,Da)};
var k_N=function(){var K=new d5,d=new xyX;return _.Hg(K,7,Da,d)},w8X=function(){var K=new d5,d=new LFJ;
return _.Hg(K,8,Da,d)},Da=[1,
2,3,4,5,6,7,8];var ZRo=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(ZRo,_.Ti);var ejY=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(ejY,_.Ti);var p8Y=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(p8Y,_.Ti);var Kyz=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Kyz,_.Ti);var dMB=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(dMB,_.Ti);var fAB=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(fAB,_.Ti);var HpN=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(HpN,_.Ti);var DMz=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(DMz,_.Ti);DMz.prototype.getData=function(){return _.y5(this,2)};var VBO=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(VBO,_.Ti);var VwG=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(VwG,_.Ti);VwG.prototype.getPayloadCase=function(){return _.i1(this,qi)};
var qi=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Q5=function(K,d){K=Error.call(this,K);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.code=d===void 0?2:d};
_.O(Q5,Error);var ScB=Promise;var y$O=function(K){this.channelPromise=K};
y$O.prototype.send=function(K,d,f){this.channelPromise.then(function(H){H.send(K,d,f)})};var n0o=function(K,d){this.data=K;this.channel=d};
n0o.prototype.reply=function(K,d,f){this.channel.send(K,d,f)};var ipz=function(K){this.JSC$6951_port_=K};
ipz.prototype.send=function(K,d,f){f=f===void 0?[]:f;var H=new MessageChannel;c$B(H.port1,d);this.JSC$6951_port_.postMessage(K,[H.port2].concat(f))};
var ugG=function(K,d){c$B(K,d);return new ipz(K)},c$B=function(K,d){d&&(K.onmessage=function(f){d(new n0o(f.data,ugG(f.ports[0])))})};var aAY=function(K){this.verifier_=K},IAX=function(K){var d=Object.create(null);
(typeof K==="string"?[K]:K).forEach(function(f){if(f==="null")throw Error("ba");d[f]=!0});
return function(f){return d[f]===!0}};_.UMY=function(){if(!_.Hu.addEventListener||!Object.defineProperty)return!1;var K=!1,d=Object.defineProperty({},"passive",{get:function(){K=!0}});
try{var f=function(){};
_.Hu.addEventListener("test",f,d);_.Hu.removeEventListener("test",f,d)}catch(H){}return K}();var RrN;_.jR=function(K){var d=K.destination;var f=K.iframe;var H=K.origin;var D=K.channelName===void 0?"ZNWN1d":K.channelName;var S=K.onMessage===void 0?void 0:K.onMessage;K=K.onEstablished===void 0?void 0:K.onEstablished;return RrN({destination:d,getSource:function(){return f.contentWindow},
originVerifier:H instanceof aAY?H:typeof H==="function"?new aAY(H):new aAY(IAX(H)),channelName:D,onMessage:S,onEstablished:K})};
RrN=function(K){var d=K.destination;var f=K.getSource;var H=K.originVerifier;var D=K.token===void 0?void 0:K.token;var S=K.channelName;var n=K.onMessage===void 0?void 0:K.onMessage;var u=K.onEstablished===void 0?void 0:K.onEstablished;return new y$O(new ScB(function(a,R){var F=function(z){z.source&&z.source===f()&&H.verifier_(z.origin)&&(z.data.n||z.data)===S&&(d.removeEventListener("message",F,!1),D&&z.data.t!==D?R(Error("ca`"+S+"`"+D+"`"+z.data.t)):(a(ugG(z.ports[0],n)),u&&u(z)))};
d.addEventListener("message",F,!1)}))};var FyX=function(K){try{K()}catch(d){Dn(d)}};var XNN=function(K){var d=this;var f=K.getMessageType;var H=K.onUnregisteredMessage===void 0?function(){}:K.onUnregisteredMessage;
var D=K.onBeforeRegisteredMessage===void 0?function(){}:K.onBeforeRegisteredMessage;
K=K.onAfterRegisteredMessage===void 0?function(){}:K.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=f;this.onUnregisteredMessage_=H;this.onBeforeRegisteredMessage_=D;this.onAfterRegisteredMessage_=K;this.onMessage=function(S){return zrX(d,S)}};
XNN.prototype.register=function(K,d){this.registry_.set(K,d);return this};
var zrX=function(K,d){var f=K.getMessageType_(d.data),H=K.registry_.get(f);H?(FyX(function(){return K.onBeforeRegisteredMessage_(d,f)}),FyX(function(){return H(d)}),FyX(function(){return K.onAfterRegisteredMessage_(d,f)})):FyX(function(){return K.onUnregisteredMessage_(d,f)})};var v0n=function(K){this.JSC$6968_channel_=K},Pdu,g0X;
v0n.prototype.send=function(K,d,f){this.JSC$6968_channel_.send(fw(K),d,f)};
_.MBY=function(K,d){return function(f){var H=new K(f.data);return d(new n0o(H,f.channel))}};
Pdu=function(K){return function(d){return K(new n0o(d.data,new v0n(d.channel)))}};
g0X=function(K,d){return Pdu(_.MBY(K,d))};var OpJ=function(K,d,f,H){this.registry=K;this.delegate=d;this.receiveMessageConstructor=f;this.createInitMessage=H;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},D8z=function(K){var d=new XNN({getMessageType:K.getPayloadCase});
return new OpJ(d,new v0n(_.jR({iframe:K.child,destination:window,origin:K.origin,channelName:K.channelName,onMessage:g0X(K.receiveMessageConstructor,d.onMessage)})),K.receiveMessageConstructor,K.createInitMessage)},NZN=function(K,d){K.createInitMessage=d};
OpJ.prototype.send=function(K){if(!this.initialised)throw new Q5("Attempted to send a message before initialisation.");this.delegate.send(K)};
var Ycn=function(K,d){return _.c(function(f){if(!K.initialised)throw new Q5("Attempted to send a message before initialisation.");return f.return(new Promise(function(H){K.delegate.send(d,g0X(K.receiveMessageConstructor,H))}))})};
OpJ.prototype.init=function(){var K=this;return _.c(function(d){if(K.initialised)throw new Q5("Attempted to initialise twice. The SDK can only be initialised once.");if(K.createInitMessage!==void 0){var f=K.delegate,H=f.send,D=K.createInitMessage;var S=new jyS;var n=[].concat(_.Me(K.features));S=_.N8(S,1,n,_.Ml);H.call(f,D.call(K,S))}K.initialised=!0;_.iQ(d)})};
var CO=function(K,d){if(K.initialised)throw new Q5('Attempted to set up API "'+d+'" after initialisation. All APIs must be set up before initialising the SDK.');K.features.add(d);return K.registry};
_.x$.Object.defineProperties(OpJ.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var tBz=function(K){this.channel=K;this.registered=!1};
tBz.prototype.update=function(K){if(this.channel.isInitialised){if(!this.registered)throw new Q5("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var d=new d5;var f=new CtO;f=_.Dq(f,1,K);d=_.Hg(d,2,Da,f);this.channel.send(d)}else this.register();this.JSC$6982_audioEnabled=K};
tBz.prototype.register=function(){CO(this.channel,1);this.registered=!0};
tBz.prototype.isAudioEnabled=function(){return this.JSC$6982_audioEnabled};var o0N=function(K){this.channel=K};
_.V=o0N.prototype;_.V.onFirstFrameReady=function(K){CO(this.channel,2).register(11,function(d){d=_.O3(d.data,ZRo,11,qi);if(!d)throw new Q5("Unexpectedly nonexistent GameFirstFrameReadyEvent");K(_.Xo(d,1))})};
_.V.onReady=function(K){CO(this.channel,2).register(4,function(d){d=_.O3(d.data,p8Y,4,qi);if(!d)throw new Q5("Unexpectedly nonexistent GameReadyEvent");K(_.Xo(d,1))})};
_.V.onLevelComplete=function(K){CO(this.channel,2).register(5,function(d){d=_.O3(d.data,Kyz,5,qi);if(!d)throw new Q5("Unexpectedly nonexistent LevelCompleteEvent");K(_.Xo(d,1),_.Km(d,2))})};
_.V.onGameOver=function(K){CO(this.channel,2).register(6,function(d){d=_.O3(d.data,ejY,6,qi);if(!d)throw new Q5("Unexpectedly nonexistent GameOverEvent");K(_.Xo(d,1))})};
_.V.pause=function(){var K=this;if(!this.channel.isInitialised)return CO(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Q5("Using unregistered Game Feature: pause.");var d=k_N();return new Promise(function(f){return _.c(function(H){if(H.nextAddress==1)return _.I(H,Ycn(K.channel,d),2);f();_.iQ(H)})})};
_.V.resume=function(){var K=this;if(!this.channel.isInitialised)return CO(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Q5("Using unregistered Game Feature: resume.");var d=w8X();return new Promise(function(f){return _.c(function(H){if(H.nextAddress==1)return _.I(H,Ycn(K.channel,d),2);f();_.iQ(H)})})};var $MS=function(K){this.channel=K};
$MS.prototype.onReady=function(K){CO(this.channel,5).register(8,function(d){if(!_.O3(d.data,dMB,8,qi))throw new Q5("Unexpectedly nonexistent PageReadyEvent");K()})};var E0X=function(K){this.channel=K};
E0X.prototype.onChange=function(K){CO(this.channel,3).register(7,function(d){d=_.O3(d.data,fAB,7,qi);if(!d)throw new Q5("Unexpectedly nonexistent ScoreEvent");K(_.Xo(d,1),_.Km(d,2))})};var hrz={load:function(){throw new Q5("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Q5("Storage used, but storage.onSave() listener not set!");}},bpG=function(K){this.channel=K;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},mMN=function(K){CO(K.channel,4).register(2,hrz.load).register(3,hrz.save);
K.initialSetupDone=!0};
bpG.prototype.onLoad=function(K){this.initialSetupDone||mMN(this);this.loadRegistered||(this.loadRegistered=!0,CO(this.channel,4).register(2,function(d){var f,H,D;return _.c(function(S){if(S.nextAddress==1){f=_.O3(d.data,HpN,2,qi);if(!f)throw new Q5("Unexpectedly nonexistent StorageLoad");H=_.Xo(f,1);return _.I(S,K(H),2)}D=S.yieldResult;var n=d.reply,u=new d5;var a=new BES;a=_.aL(a,1,H);a=_.KA(a,2,_.r2(D,!1));u=_.Hg(u,3,Da,a);n.call(d,u);_.iQ(S)})}))};
bpG.prototype.onSave=function(K){this.initialSetupDone||mMN(this);this.saveRegistered||(this.saveRegistered=!0,CO(this.channel,4).register(3,function(d){var f,H,D;return _.c(function(S){if(S.nextAddress==1){f=_.O3(d.data,DMz,3,qi);if(!f)throw new Q5("Unexpectedly nonexistent StorageSave");H=_.Xo(f,1);D=Y6z(f.getData());return _.I(S,K(H,D),2)}var n=d.reply,u=new d5;var a=new JkX;a=_.aL(a,1,H);u=_.Hg(u,4,Da,a);n.call(d,u);_.iQ(S)})}))};var lAB=function(K){this.channel=K};
lAB.prototype.update=function(K){if(!this.channel.features.has(6))throw new Q5("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var d=new d5,f=new syz;K=_.fM(f,1,K);d=_.Hg(d,6,Da,K);this.channel.send(d)};
lAB.prototype.register=function(){CO(this.channel,6)};var WyO=function(K){this.channel=K;this.userActivityLoggingIntervalMs=0};
WyO.prototype.onUserActivity=function(K,d){this.userActivityLoggingIntervalMs=d;CO(this.channel,7).register(9,function(f){if(!_.O3(f.data,VBO,9,qi))throw new Q5("Unexpectedly nonexistent ClickEvent");K()})};var GKB=function(K){var d=this;this.channel=K;this.init=this.channel.init.bind(this.channel);this.page=new $MS(this.channel);this.game=new o0N(this.channel);this.audio=new tBz(this.channel);this.score=new E0X(this.channel);this.storage=new bpG(this.channel);this.style=new lAB(this.channel);this.userActivity=new WyO(this.channel);NZN(this.channel,function(f){var H=new Sjp;f=_.fM(H,1,f);f=_.Ni(f,3,d.userActivity.userActivityLoggingIntervalMs);H=d.audio.isAudioEnabled();H!==void 0&&_.Dq(f,2,H);H=new d5;
return _.Hg(H,5,Da,f)})};var A$J=function(){this.timedFunctionContext=0};
A$J.prototype.timeExecution=function(K,d){var f=this;return function(){var H=_.Pg.apply(0,arguments);f.timedFunctionContext=K;return d.apply(null,_.Me(H))}};var TZO=function(){var K={};this.priorityTasks=(K[3]=[],K[2]=[],K[1]=[],K);this.isFlushing=!1},Vp=function(K,d,f){var H=r$o(K,f);
K.priorityTasks[f].push(d);H&&K.priorityTasks[f].length===1&&K.flush()},r$o=function(K,d){return Object.keys(K.priorityTasks).map(function(f){return Number(f)}).filter(function(f){return!isNaN(f)&&f>d}).every(function(f){return K.priorityTasks[f].length===0})};
TZO.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(K){return K.length>0});)qcp(this,3),qcp(this,2),qcp(this,1)}catch(K){throw Object.values(this.priorityTasks).forEach(function(d){return void d.splice(0,d.length)}),K;
}finally{this.isFlushing=!1}}};
var qcp=function(K,d){for(;r$o(K,d)&&K.priorityTasks[d].length>0;)K.priorityTasks[d][0](),K.priorityTasks[d].shift()};
_.x$.Object.defineProperties(TZO.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(K){return K.length>0})}}});var aMp={};var Qiz=globalThis.trustedTypes,nsS=Qiz,c4p;var Se=function(K){this.privateDoNotAccessOrElseWrappedResourceUrl=K};
Se.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var jip=_.Am([""]),CdO=U$p(["\x00"],["\\0"]),xMp=U$p(["\n"],["\\n"]),LyN=U$p(["\x00"],["\\u0000"]);i$(function(K){return K(jip)})||i$(function(K){return K(CdO)})||i$(function(K){return K(xMp)})||i$(function(K){return K(LyN)});var zY;_.cg=function(K,d){this.privateDoNotAccessOrElseWrappedUrl=d};
_.cg.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.BZX=u$("about:blank");zY=u$("about:invalid#zClosurez");var IMz=function(K){this.isValid=K},J$p=new IMz(function(K){return/^[^:]*([/?#]|$)/.test(K)}),siz=U2("data"),kKo=U2("http"),wNz=U2("https"),ZpB=U2("ftp"),ern=U2("mailto"),pNB=U2("intent"),KuO=U2("vnd.youtube"),U8u=[siz,
kKo,wNz,ern,ZpB,J$p],Rqz=VL(function(){return typeof URL==="function"}),dNX=["data:",
"http:","https:","mailto:","ftp:"],zqY=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var YG=function(K){this.privateDoNotAccessOrElseWrappedHtml=K};
YG.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var z8z=VL(function(){return new YG(Qiz?Qiz.emptyHTML:"")});var fsY={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"},E2=function(K,d){var f=Error.call(this,K+" cannot be used with intent "+fsY[d]);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.type=K;this.intent=d;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.O(E2,Error);_.mc=function(K){this.privateDoNotAccessOrElseWrappedScript=K};
_.mc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var PNp=function(K){this.privateDoNotAccessOrElseWrappedAttributePrefix=K};
PNp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var gs5="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var z2G=function(K){var d=_.T2("window.location.href");K==null&&(K='Unknown Error of type "null/undefined"');if(typeof K==="string")return{message:K,name:"Unknown error",lineNumber:"Not available",fileName:d,stack:"Not available"};var f=!1;try{var H=K.lineNumber||K.line||"Not available"}catch(n){H="Not available",f=!0}try{var D=K.fileName||K.filename||K.sourceURL||_.Hu.$googDebugFname||d}catch(n){D="Not available",f=!0}d=H4B(K);if(!(!f&&K.lineNumber&&K.fileName&&K.stack&&K.message&&K.name)){f=K.message;
if(f==null){if(K.constructor&&K.constructor instanceof Function){if(K.constructor.name)f=K.constructor.name;else if(f=K.constructor,x2[f])f=x2[f];else{f=String(f);if(!x2[f]){var S=/function\s+([^\(]+)/m.exec(f);x2[f]=S?S[1]:"[Anonymous]"}f=x2[f]}f='Unknown Error of type "'+f+'"'}else f="Unknown Error of unknown type";typeof K.toString==="function"&&Object.prototype.toString!==K.toString&&(f+=": "+K.toString())}return{message:f,name:K.name||"UnknownError",lineNumber:H,fileName:D,stack:d||"Not available"}}return{message:K.message,
name:K.name,lineNumber:K.lineNumber,fileName:K.fileName,stack:d}},H4B=function(K,d){d||(d={});
d[DNn(K)]=!0;var f=K.stack||"",H=K.cause;H&&!d[DNn(H)]&&(f+="\nCaused by: ",H.stack&&H.stack.indexOf(H.toString())==0||(f+=typeof H==="string"?H:H.message+"\n"),f+=H4B(H,d));K=K.errors;if(Array.isArray(K)){H=1;var D;for(D=0;D<K.length&&!(H>4);D++)d[DNn(K[D])]||(f+="\nInner error "+H++ +": ",K[D].stack&&K[D].stack.indexOf(K[D].toString())==0||(f+=typeof K[D]==="string"?K[D]:K[D].message+"\n"),f+=H4B(K[D],d));D<K.length&&(f+="\n... "+(K.length-D)+" more inner errors")}return f},DNn=function(K){var d=
"";
typeof K.toString==="function"&&(d=""+K);return d+K.stack},x2={};var Vyp,wF,pK,yFu,nCY,SM5,qo,lw,cFu;Vyp=function(K,d){for(var f=K.split("%s"),H="",D=Array.prototype.slice.call(arguments,1);D.length&&f.length>1;)H+=f.shift()+D.shift();return H+f.join("%s")};
_.qk=function(K){return encodeURIComponent(String(K))};
wF=function(K){return decodeURIComponent(K.replace(/\+/g," "))};
pK=function(K){LzJ.test(K)&&(K.indexOf("&")!=-1&&(K=K.replace(rgp,"&amp;")),K.indexOf("<")!=-1&&(K=K.replace(qJz,"&lt;")),K.indexOf(">")!=-1&&(K=K.replace(QrX,"&gt;")),K.indexOf('"')!=-1&&(K=K.replace(jrz,"&quot;")),K.indexOf("'")!=-1&&(K=K.replace(CgB,"&#39;")),K.indexOf("\x00")!=-1&&(K=K.replace(x$u,"&#0;")));return K};
yFu=function(K){var d={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var f=_.Hu.document.createElement("div");return K.replace(SM5,function(H,D){var S=d[H];if(S)return S;D.charAt(0)=="#"&&(D=Number("0"+D.slice(1)),isNaN(D)||(S=String.fromCharCode(D)));S||(_.TY(f,ta(H+" ")),S=f.firstChild.nodeValue.slice(0,-1));return d[H]=S})};
nCY=function(K){return K.replace(/&([^;]+);/g,function(d,f){switch(f){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return f.charAt(0)!="#"||(f=Number("0"+f.slice(1)),isNaN(f))?d:String.fromCharCode(f)}})};
SM5=/&([^;\s<&]+);?/g;_.rIn=function(K){return String(K).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.i4p=String.prototype.repeat?function(K,d){return K.repeat(d)}:function(K,d){return Array(d+1).join(K)};
_.LO=function(K,d){if(!Number.isFinite(K))return String(K);K=String(K);var f=K.indexOf(".");f===-1&&(f=K.length);var H=K[0]==="-"?"-":"";H&&(K=K.substring(1));return H+(0,_.i4p)("0",Math.max(0,d-f))+K};
qo=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.Ls()).toString(36)};
lw=function(K){for(var d=0,f=0;f<K.length;++f)d=31*d+K.charCodeAt(f)>>>0;return d};
_.c0=function(K){return String(K).replace(/\-([a-z])/g,function(d,f){return f.toUpperCase()})};
_.iw=function(K){return String(K).replace(/([A-Z])/g,"-$1").toLowerCase()};
cFu=function(K){return K.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(d,f,H){return f+H.toUpperCase()})};var uKN=function(){this.names=new Map};
uKN.prototype.getName=function(K){var d=this.names.get(K);if(d)return d;var f;d=(f=K.description)!=null?f:qo();this.names.set(K,d);return d};var asu=function(K){var d=Error.call(this,K?K.length+" errors occurred during unsubscription:\n"+K.map(function(f,H){return H+1+") "+f.toString()}).join("\n  "):"");
this.message=d.message;"stack"in d&&(this.stack=d.stack);this.errors=K;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.O(asu,Error);var Bg=function(K){this.initialTeardown=K;this.closed=!1;this._teardowns=this._parentage=null};
_.V=Bg.prototype;
_.V.unsubscribe=function(){if(!this.closed){this.closed=!0;var K=this._parentage;if(Array.isArray(K))for(var d=_.y(K),f=d.next();!f.done;f=d.next())f.value.remove(this);else K==null||K.remove(this);d=this.initialTeardown;if(LM(d))try{d()}catch(S){var H=S instanceof asu?S.errors:[S]}var D=this._teardowns;if(D)for(this._teardowns=null,d=_.y(D),f=d.next();!f.done;f=d.next()){f=f.value;try{LM(f)?f():f.unsubscribe()}catch(S){f=void 0,H=(f=H)!=null?f:[],S instanceof asu?H=[].concat(_.Me(H),_.Me(S.errors)):
H.push(S)}}if(H)throw new asu(H);}};
_.V.add=function(K){if(K&&K!==this)if(this.closed)LM(K)?K():K.unsubscribe();else{if(K instanceof Bg){if(K.closed||K._hasParent(this))return;K._addParent(this)}var d;(this._teardowns=(d=this._teardowns)!=null?d:[]).push(K)}};
_.V._hasParent=function(K){var d=this._parentage;return d===K||Array.isArray(d)&&d.includes(K)};
_.V._addParent=function(K){var d=this._parentage;this._parentage=Array.isArray(d)?(d.push(K),d):d?[d,K]:K};
_.V._removeParent=function(K){var d=this._parentage;d===K?this._parentage=null:Array.isArray(d)&&xG(d,K)};
_.V.remove=function(K){var d=this._teardowns;d&&xG(d,K);K instanceof Bg&&K._removeParent(this)};
var Isz=new Bg;Isz.closed=!0;Bg.JSC$7078_EMPTY=Isz;var twG=function(){setTimeout.apply(null,_.Me(_.Pg.apply(0,arguments)))};var BY=function(K){Bg.call(this);this.JSC$7083_isStopped=!1;this.destination=K instanceof BY?K:new JI(!K||LM(K)?{next:K!=null?K:void 0}:K);Yju(K)&&K.add(this)};
_.O(BY,Bg);BY.JSC$7078_EMPTY=Bg.JSC$7078_EMPTY;BY.create=function(K,d,f){return new s3(K,d,f)};
_.V=BY.prototype;_.V.next=function(K){this.JSC$7083_isStopped||this._next(K)};
_.V.error=function(K){this.JSC$7083_isStopped||(this.JSC$7083_isStopped=!0,this._error(K))};
_.V.complete=function(){this.JSC$7083_isStopped||(this.JSC$7083_isStopped=!0,this._complete())};
_.V.unsubscribe=function(){this.closed||(this.JSC$7083_isStopped=!0,Bg.prototype.unsubscribe.call(this))};
_.V._next=function(K){this.destination.next(K)};
_.V._error=function(K){this.destination.error(K);this.unsubscribe()};
_.V._complete=function(){this.destination.complete();this.unsubscribe()};
var JI=function(K){this.partialObserver=K};
JI.prototype.next=function(K){var d=this.partialObserver;if(d.next)try{d.next(K)}catch(f){s2(f)}};
JI.prototype.error=function(K){var d=this.partialObserver;if(d.error)try{d.error(K)}catch(f){s2(f)}else s2(K)};
JI.prototype.complete=function(){var K=this.partialObserver;if(K.complete)try{K.complete()}catch(d){s2(d)}};
var s3=function(K,d,f){BY.call(this);var H;LM(K)||!K?H={next:K!=null?K:void 0,error:d!=null?d:void 0,complete:f!=null?f:void 0}:H=K;this.destination=new JI(H)};
_.O(s3,BY);s3.JSC$7078_EMPTY=BY.JSC$7078_EMPTY;s3.create=BY.create;var K7=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ee=function(K){K&&(this._subscribe=K)};
_.V=ee.prototype;_.V.lift=function(K){var d=new ee;d.source=this;d.operator=K;return d};
_.V.subscribe=function(K,d,f){K=K&&K instanceof BY||K&&LM(K.next)&&LM(K.error)&&LM(K.complete)&&Yju(K)?K:new s3(K,d,f);d=this.operator;f=this.source;K.add(d?d.call(K,f):f?this._subscribe(K):this._trySubscribe(K));return K};
_.V._trySubscribe=function(K){try{return this._subscribe(K)}catch(d){K.error(d)}};
_.V.forEach=function(K,d){var f=this;d=$8o(d);return new d(function(H,D){var S=f.subscribe(function(n){try{K(n)}catch(u){D(u),S==null||S.unsubscribe()}},D,H)})};
_.V._subscribe=function(K){var d;return(d=this.source)==null?void 0:d.subscribe(K)};
ee.prototype[K7]=function(){return this};
ee.prototype.pipe=function(){var K=_.Pg.apply(0,arguments);return K.length?osN(K)(this):this};
ee.create=function(K){return new ee(K)};var UNX=function(){var K=Error.call(this,"object unsubscribed");this.message=K.message;"stack"in K&&(this.stack=K.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.O(UNX,Error);var f0=function(){this.observers=[];this.hasError=this.JSC$7099_isStopped=this.closed=!1;this.thrownError=null};
_.O(f0,ee);_.V=f0.prototype;_.V.lift=function(K){var d=new k2(this,this);d.operator=K;return d};
_.V._throwIfClosed=function(){if(this.closed)throw new UNX;};
_.V.next=function(K){this._throwIfClosed();if(!this.JSC$7099_isStopped){var d=this.observers.slice();d=_.y(d);for(var f=d.next();!f.done;f=d.next())f.value.next(K)}};
_.V.error=function(K){this._throwIfClosed();if(!this.JSC$7099_isStopped){this.hasError=this.JSC$7099_isStopped=!0;this.thrownError=K;for(var d=this.observers;d.length;)d.shift().error(K)}};
_.V.complete=function(){this._throwIfClosed();if(!this.JSC$7099_isStopped){this.JSC$7099_isStopped=!0;for(var K=this.observers;K.length;)K.shift().complete()}};
_.V.unsubscribe=function(){this.JSC$7099_isStopped=this.closed=!0;this.observers=null};
_.V._trySubscribe=function(K){this._throwIfClosed();return ee.prototype._trySubscribe.call(this,K)};
_.V._subscribe=function(K){this._throwIfClosed();this._checkFinalizedStatuses(K);return this._innerSubscribe(K)};
_.V._innerSubscribe=function(K){var d=this,f=this.JSC$7099_isStopped,H=this.observers;return this.hasError||f?Bg.JSC$7078_EMPTY:(H.push(K),new Bg(function(){return xG(d.observers,K)}))};
_.V._checkFinalizedStatuses=function(K){var d=this.thrownError,f=this.JSC$7099_isStopped;this.hasError?K.error(d):f&&K.complete()};
f0.create=function(K,d){return new k2(K,d)};
var k2=function(K,d){f0.call(this);this.destination=K;this.source=d};
_.O(k2,f0);k2.create=f0.create;k2.prototype.next=function(K){var d,f;(d=this.destination)==null||(f=d.next)==null||f.call(d,K)};
k2.prototype.error=function(K){var d,f;(d=this.destination)==null||(f=d.error)==null||f.call(d,K)};
k2.prototype.complete=function(){var K,d;(K=this.destination)==null||(d=K.complete)==null||d.call(K)};
k2.prototype._subscribe=function(K){var d,f;return(f=(d=this.source)==null?void 0:d.subscribe(K))!=null?f:Bg.JSC$7078_EMPTY};var Gj=function(K){f0.call(this);this._value=K};
_.O(Gj,f0);Gj.create=f0.create;Gj.prototype._subscribe=function(K){var d=f0.prototype._subscribe.call(this,K);!d.closed&&K.next(this._value);return d};
Gj.prototype.getValue=function(){var K=this.thrownError,d=this._value;if(this.hasError)throw K;this._throwIfClosed();return d};
Gj.prototype.next=function(K){f0.prototype.next.call(this,this._value=K)};
_.x$.Object.defineProperties(Gj.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var oE=new ee(function(K){return K.complete()});var pM=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var A4o=function(K){return K&&typeof K.length==="number"&&typeof K!=="function"};var R_G={now:function(){return(R_G.delegate||Date).now()},
delegate:void 0};var xQ=function(K,d,f){K=K===void 0?Infinity:K;d=d===void 0?Infinity:d;f=f===void 0?R_G:f;f0.call(this);this.JSC$7121_bufferSize=K;this.windowTime=d;this.timestampProvider=f;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=d===Infinity;this.JSC$7121_bufferSize=Math.max(1,K);this.windowTime=Math.max(1,d)};
_.O(xQ,f0);xQ.create=f0.create;xQ.prototype.next=function(K){var d=this.buffer,f=this.infiniteTimeWindow,H=this.timestampProvider,D=this.windowTime;this.JSC$7099_isStopped||(d.push(K),!f&&d.push(H.now()+D));FuG(this);f0.prototype.next.call(this,K)};
xQ.prototype._subscribe=function(K){this._throwIfClosed();FuG(this);for(var d=this._innerSubscribe(K),f=this.infiniteTimeWindow,H=this.buffer.slice(),D=0;D<H.length&&!K.closed;D+=f?1:2)K.next(H[D]);this._checkFinalizedStatuses(K);return d};
var FuG=function(K){var d=K.JSC$7121_bufferSize,f=K.timestampProvider,H=K.buffer;K=K.infiniteTimeWindow;var D=(K?1:2)*d;d<Infinity&&D<H.length&&H.splice(0,H.length-D);if(!K){d=f.now();f=0;for(K=1;K<H.length&&H[K]<=d;K+=2)f=K;f&&H.splice(0,f+1)}};var Xh5=function(K,d){d=d===void 0?z_B:d;this.schedulerActionCtor=K;this.now=d};
Xh5.prototype.schedule=function(K,d,f){d=d===void 0?0:d;return(new this.schedulerActionCtor(this,K)).schedule(f,d)};
var z_B=R_G.now;var oGY=function(){var K=Error.call(this,"no elements in sequence");this.message=K.message;"stack"in K&&(this.stack=K.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.O(oGY,Error);var RE=function(K,d,f,H,D){BY.call(this,K);this.onUnsubscribe=D;d&&(this._next=function(S){try{d(S)}catch(n){this.destination.error(n)}});
f&&(this._error=function(S){try{f(S)}catch(n){this.destination.error(n)}this.unsubscribe()});
H&&(this._complete=function(){try{H()}catch(S){this.destination.error(S)}this.unsubscribe()})};
_.O(RE,BY);RE.JSC$7078_EMPTY=BY.JSC$7078_EMPTY;RE.create=BY.create;RE.prototype.unsubscribe=function(){var K;this.closed||(K=this.onUnsubscribe)!=null&&K.call(this);BY.prototype.unsubscribe.call(this)};var jl=function(K,d){this.source=K;this.subjectFactory=d;this._subject=null;this._refCount=0;this._connection=null};
_.O(jl,ee);jl.create=ee.create;jl.prototype._subscribe=function(K){return vC5(this).subscribe(K)};
var vC5=function(K){var d=K._subject;if(!d||d.JSC$7099_isStopped)K._subject=K.subjectFactory();return K._subject};
jl.prototype._teardown=function(){this._refCount=0;var K=this._connection;this._subject=this._connection=null;K==null||K.unsubscribe()};
jl.prototype.connect=function(){var K=this,d=this._connection;if(!d){d=this._connection=new Bg;var f=vC5(this);d.add(this.source.subscribe(new RE(f,void 0,function(H){K._teardown();f.error(H)},function(){K._teardown();
f.complete()},function(){return K._teardown()})));
d.closed&&(this._connection=null,d=Bg.JSC$7078_EMPTY)}return d};var kiY=Array.isArray;var ZwS=Array.isArray,Myo=Object,eqn=Myo.getPrototypeOf,pxJ=Myo.prototype,KcX=Myo.keys;var gy=function(K,d,f){BY.call(this,K);this._next=d;this.shouldComplete=f};
_.O(gy,BY);gy.JSC$7078_EMPTY=BY.JSC$7078_EMPTY;gy.create=BY.create;gy.prototype._complete=function(){this.shouldComplete()?BY.prototype._complete.call(this):this.unsubscribe()};var nG5=["addListener","removeListener"],yaO=["addEventListener","removeEventListener"],caB=["on","off"];var wc=function(){Bg.call(this)};
_.O(wc,Bg);wc.JSC$7078_EMPTY=Bg.JSC$7078_EMPTY;wc.prototype.schedule=function(){return this};var PMO=function(K,d){return setInterval.apply(null,[K,d].concat(_.Me(_.Pg.apply(2,arguments))))};var Zb=function(K,d){Bg.call(this);this.scheduler=K;this.work=d;this.pending=!1};
_.O(Zb,wc);Zb.JSC$7078_EMPTY=wc.JSC$7078_EMPTY;Zb.prototype.schedule=function(K,d){d=d===void 0?0:d;if(this.closed)return this;this.state=K;K=this.id;var f=this.scheduler;K!=null&&(this.id=gCN(this,K,d));this.pending=!0;this.delay=d;this.id=this.id||this.requestAsyncId(f,this.id,d);return this};
Zb.prototype.requestAsyncId=function(K,d,f){f=f===void 0?0:f;return PMO(K.flush.bind(K,this),f)};
var gCN=function(K,d,f){f=f===void 0?0:f;if(f!=null&&K.delay===f&&K.pending===!1)return d;clearInterval(d)};
Zb.prototype.execute=function(K,d){if(this.closed)return Error("la");this.pending=!1;if(K=this._execute(K,d))return K;this.pending===!1&&this.id!=null&&(this.id=gCN(this,this.id,null))};
Zb.prototype._execute=function(K){var d=!1;try{this.work(K)}catch(H){d=!0;var f=!!H&&H||Error(H)}if(d)return this.unsubscribe(),f};
Zb.prototype.unsubscribe=function(){if(!this.closed){var K=this.id,d=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;xG(d,this);K!=null&&(this.id=gCN(this,K,null));this.delay=null;wc.prototype.unsubscribe.call(this)}};var O4X=function(K,d){d=d===void 0?z_B:d;Xh5.call(this,K,d);this.actions=[];this.active=!1;this.scheduled=void 0};
_.O(O4X,Xh5);O4X.prototype.flush=function(K){var d=this.actions;if(this.active)d.push(K);else{var f;this.active=!0;do if(f=K.execute(K.state,K.delay))break;while(K=d.shift());this.active=!1;if(f){for(;K=d.shift();)K.unsubscribe();throw f;}}};var XT=new ee(Ja);var uap=Array.isArray;var eR=function(K,d){Zb.call(this,K,d);this.scheduler=K;this.work=d};
_.O(eR,Zb);eR.JSC$7078_EMPTY=Zb.JSC$7078_EMPTY;eR.prototype.schedule=function(K,d){d=d===void 0?0:d;if(d>0)return Zb.prototype.schedule.call(this,K,d);this.delay=d;this.state=K;this.scheduler.flush(this);return this};
eR.prototype.execute=function(K,d){return d>0||this.closed?Zb.prototype.execute.call(this,K,d):this._execute(K,d)};
eR.prototype.requestAsyncId=function(K,d,f){f=f===void 0?0:f;return f!=null&&f>0||f==null&&this.delay>0?Zb.prototype.requestAsyncId.call(this,K,d,f):K.flush(this)};var NVn=function(){O4X.apply(this,arguments)};
_.O(NVn,O4X);var J4z=new NVn(eR);var YMo=function(){this.performanceMonitor=new A$J;this.queue=new TZO;this.internalSymbol=Symbol();this.debugNames=new uKN};
YMo.prototype.getOnBackgrounded=function(){return XT};
_.x$.Object.defineProperties(YMo.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var pO=function(K,d){d=Error.call(this,d?K+": "+d:String(K));this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=K;this.__proto__=pO.prototype;this.name=String(K)};
_.O(pO,Error);var vR=function(K){pO.call(this,1E3,'sfr:"'+K+'"');this.measurementStrategyFailureReason=K;this.__proto__=vR.prototype};
_.O(vR,pO);var Mm=function(){pO.call(this,1003);this.__proto__=Mm.prototype};
_.O(Mm,pO);var Kg=function(){pO.call(this,1009);this.__proto__=Kg.prototype};
_.O(Kg,pO);var tyz=function(){pO.call(this,1011);this.__proto__=tyz.prototype};
_.O(tyz,pO);var oCz=function(){pO.call(this,1007);this.__proto__=Mm.prototype};
_.O(oCz,pO);var IL=function(K){pO.call(this,1004,String(K));this.inputObservableIndex=K;this.__proto__=IL.prototype};
_.O(IL,pO);var r5o=function(K){pO.call(this,1010,K);this.__proto__=RL.prototype};
_.O(r5o,pO);var RL=function(K){pO.call(this,1005,K);this.__proto__=RL.prototype};
_.O(RL,pO);var $NO=function(K){var d=_.Pg.apply(1,arguments),f=this;this.orderedFactories=[];this.orderedFactories.push(K);d.forEach(function(H){f.orderedFactories.push(H)})};
$NO.prototype.isSupported=function(K){return this.orderedFactories.some(function(d){return d.isSupported(K)})};
$NO.prototype.makeBeacon=function(K,d){for(var f=0;f<this.orderedFactories.length;f++)if(this.orderedFactories[f].isSupported(d))return this.orderedFactories[f].makeBeacon(K,d);throw new Kg;};var O0N=Symbol("ma"),ECo=Symbol("na"),bQ=function(K,d){this.value=K;this.timeline=d},h5=function(K,d){if(d.timeline!==K.timeline)throw new oCz;
return K.value-d.value};
_.V=bQ.prototype;_.V.equals=function(K){return h5(this,K)===0};
_.V.maximum=function(K){if(K.timeline!==this.timeline)throw new oCz;return this.value>=K.value?this:K};
_.V.round=function(){return new bQ(Math.round(this.value),this.timeline)};
_.V.add=function(K){return new bQ(this.value+K,this.timeline)};
_.V.toString=function(){return String(this.value)};var d9=function(K,d){this.context=K;this.JSC$7205_pinger=d};
d9.prototype.isSupported=function(K){return this.JSC$7205_pinger.isSupported(K)};
d9.prototype.makeBeacon=function(K,d){if(!this.isSupported(d))throw new Kg;return new fg(this.context,this.JSC$7205_pinger,d!=null?d:void 0,K)};
var fg=function(K,d,f,H){var D=this;this.JSC$7211_pinger=d;this.properties=f;this.url=H;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var S;this.method=(S=f==null?void 0:f.beaconMethod)!=null?S:"GET";this.backgroundedSubscription=K.getOnBackgrounded().subscribe(function(){D.sendNow()})};
fg.prototype.deactivate=function(){this.internalIsPending=!1};
fg.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7211_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var K,d;this.JSC$7211_pinger.pingWithHeadersAndBody((K=this.properties)!=null?K:{},this.customHeaders,(d=this.body)!=null?d:"",this.url)}else this.JSC$7211_pinger.ping(this.url);this.internalIsPending=!1}catch(f){}else this.internalIsPending=!1};
fg.prototype.setHeader=function(K){this.customHeaders.set(K,void 0)};
_.x$.Object.defineProperties(fg.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var b4B=function(){for(var K=_.y(_.Pg.apply(0,arguments)),d=K.next();!d.done;d=K.next())if(d=d.value,d.available()){this.timeProvider=d;return}this.timeProvider=new h_o};
_.V=b4B.prototype;_.V.available=function(){return this.timeProvider.available()};
_.V.now=function(){return this.timeProvider.now()};
_.V.setTimeout=function(K,d){return this.timeProvider.setTimeout(K,d)};
_.V.clearTimeout=function(K){this.timeProvider.clearTimeout(K)};
_.V.interval=function(K,d){var f=this.intervalObservable(K).subscribe(d);return function(){return void f.unsubscribe()}};
_.V.intervalObservable=function(K){return this.timeProvider.intervalObservable(K)};
_.x$.Object.defineProperties(b4B.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var h_o=function(){this.timeline=Symbol()};
_.V=h_o.prototype;_.V.available=function(){return!1};
_.V.now=function(){return new bQ(0,this.timeline)};
_.V.setTimeout=function(){return 0};
_.V.clearTimeout=function(){};
_.V.interval=function(){return function(){}};
_.V.intervalObservable=function(){return XT};var Hc=function(K,d){this.intrinsicFunctionNamespace=K;this.performanceMonitor=d};
_.V=Hc.prototype;_.V.setTimeout=function(K,d){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,K),d)};
_.V.clearTimeout=function(K){this.intrinsicFunctionNamespace.clearTimeout(K)};
_.V.interval=function(K,d){var f=this.intervalObservable(K).subscribe(d);return function(){return void f.unsubscribe()}};
_.V.intervalObservable=function(K){var d=this;return new ee(function(f){var H=0,D=d.intrinsicFunctionNamespace.setInterval(function(){f.next(H++)},K);
return function(){d.intrinsicFunctionNamespace.clearInterval(D)}})};
_.V.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var mNz=function(K,d){Hc.call(this,K,d);this.timeline=ECo};
_.O(mNz,Hc);mNz.prototype.now=function(){return new bQ(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
mNz.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Hc.prototype.available.call(this)};var lsB=function(K,d){Hc.call(this,K,d);this.timeline=O0N};
_.O(lsB,Hc);lsB.prototype.now=function(){return new bQ(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
lsB.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Hc.prototype.available.call(this)};var GgG=function(K){this.context=K;if(Wuu===void 0)a:{var d,f,H=(d=K.global)==null?void 0:(f=d.document)==null?void 0:f.createElement("meta");if(H)try{H.httpEquiv="origin-trial";H.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";K.global.document.head.append(H);Wuu=H;break a}catch(D){}Wuu=void 0}},
Wuu;
GgG.prototype.isSupported=function(K){return P$X(this.context)!==void 0&&!(K==null||!K.endOfSession)&&!Dh(this.context)&&!(K==null?0:K.attributionEnabled)&&!(K==null?0:K.customHeaders)&&!(K==null?0:K.customBody)};
GgG.prototype.makeBeacon=function(K,d){if(!this.isSupported(d))throw new Kg;return new Vi(this.context,K,d)};
var Vi=function(K,d,f){this.context=K;this.properties=f;this.JSC$7238_urlWithoutToken=d;var H;this.beaconMethod=(H=f==null?void 0:f.beaconMethod)!=null?H:"GET";K=P$X(this.context);if(K===void 0)throw Error();this.fetchLater=K;AFu(this,TVX(this))},AFu=function(K,d){K.beaconResult&&K.beaconResult.activated||(K.beaconAbort=new AbortController,K.beaconResult=K.fetchLater(d,{method:K.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:K.beaconAbort.signal,activateAfter:96E4}))},TVX=function(K){K=K.JSC$7238_urlWithoutToken;
return(K.slice(-1)[0]==="&"?K:K+"&")+"flapi=1"};
Vi.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Vi.prototype.sendNow=function(){};
Vi.prototype.setHeader=function(){};
_.x$.Object.defineProperties(Vi.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7238_urlWithoutToken},
set:function(K){this.JSC$7238_urlWithoutToken=K;K=TVX(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);AFu(this,K)}},
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 rFB=function(K){this.context=K};
rFB.prototype.isSupported=function(){return!Dh(this.context)&&!!this.context.global.fetch};
rFB.prototype.ping=function(){var K=this;return $Q.apply(null,_.Me(_.Pg.apply(0,arguments).map(function(d){return f7(K.context.global.fetch(d,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(vF(function(f){return f.status===200}))}))).pipe($Dn(function(d){return d}),hXY())};
rFB.prototype.pingWithHeadersAndBody=function(K,d,f){for(var H=_.Pg.apply(3,arguments),D=this,S=new Headers,n=_.y(d.entries()),u=n.next();!u.done;u=n.next()){var a=_.y(u.value);u=a.next().value;a=a.next().value;S.set(u,a)}var R,F=(R=K.keepAlive)!=null?R:!1;$Q.apply(null,_.Me(H.map(function(z){return f7(D.context.global.fetch(z,Object.assign({},{method:String(K.beaconMethod),cache:"no-cache"},F?{keepalive:!0}:{},{mode:"no-cors",headers:S,body:f}))).pipe(vF(function(v){return v.status===200}))}))).pipe($Dn(function(z){return z}),
hXY())};var qMG,H6B;_.SO=function(){};
_.QO=function(K){return K};
qMG=function(K){var d=d||0;return function(){return K.apply(this,Array.prototype.slice.call(arguments,0,d))}};
_.yi=function(K){var d=!1,f;return function(){d||(f=K(),d=!0);return f}};
_.iR=function(K,d){var f=0;return function(H){_.Hu.clearTimeout(f);var D=arguments;f=_.Hu.setTimeout(function(){K.apply(void 0,D)},d)}};
H6B=function(K,d){var f=0,H=!1,D=[],S=function(){f=0;H&&(H=!1,n())},n=function(){f=_.Hu.setTimeout(S,d);
var u=D;D=[];K.apply(void 0,u)};
return function(u){D=arguments;f?H=!0:n()}};var jHN=function(){return vu&&MJ?MJ.mobile:!QHX()&&(OY("iPod")||OY("iPhone")||OY("Android")||OY("IEMobile"))},QHX=function(){return vu&&MJ?!MJ.mobile&&(OY("iPad")||OY("Android")||OY("Silk")):OY("iPad")||OY("Android")&&!OY("Mobile")||OY("Silk")};var CMo;_.PR={};CMo="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.PR.add=function(K,d,f){if(K!==null&&d in K)throw Error("pa`"+d);K[d]=f};
_.PR.clear=function(K){for(var d in K)delete K[d]};
_.PR.clone=function(K){var d={},f;for(f in K)d[f]=K[f];return d};
_.PR.contains=function(K,d){return la5(K,d)};
_.PR.containsKey=function(K,d){return K!==null&&d in K};
_.PR.containsValue=la5;_.PR.create=Aaz;_.PR.createImmutableView=function(K){var d=K;Object.isFrozen&&!Object.isFrozen(K)&&(d=Object.create(K),Object.freeze(d));return d};
_.PR.createSet=T5O;_.PR.equals=function(K,d){for(var f in K)if(!(f in d)||K[f]!==d[f])return!1;for(var H in d)if(!(H in K))return!1;return!0};
_.PR.every=function(K,d,f){for(var H in K)if(!d.call(f,K[H],H,K))return!1;return!0};
_.PR.extend=function(K,d){for(var f,H,D=1;D<arguments.length;D++){H=arguments[D];for(f in H)K[f]=H[f];for(var S=0;S<CMo.length;S++)f=CMo[S],Object.prototype.hasOwnProperty.call(H,f)&&(K[f]=H[f])}};
_.PR.filter=function(K,d,f){var H={},D;for(D in K)d.call(f,K[D],D,K)&&(H[D]=K[D]);return H};
_.PR.findKey=Wcz;_.PR.findValue=function(K,d,f){return(d=Wcz(K,d,f))&&K[d]};
_.PR.forEach=function(K,d,f){for(var H in K)d.call(f,K[H],H,K)};
_.PR.get=function(K,d,f){return K!==null&&d in K?K[d]:f};
_.PR.getAllPropertyNames=function(K,d,f){if(!K)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return mDX(K);for(var H={};K&&(K!==Object.prototype||d)&&(K!==Function.prototype||f);){for(var D=Object.getOwnPropertyNames(K),S=0;S<D.length;S++)H[D[S]]=!0;K=Object.getPrototypeOf(K)}return mDX(H)};
_.PR.getAnyKey=function(K){for(var d in K)return d};
_.PR.getAnyValue=function(K){for(var d in K)return K[d]};
_.PR.getCount=function(K){var d=0,f;for(f in K)d++;return d};
_.PR.getKeys=mDX;_.PR.getSuperClass=function(K){return(K=Object.getPrototypeOf(K.prototype))&&K.constructor};
_.PR.getValueByKeys=function(K,d){var f=_.d2(d),H=f?d:arguments;for(f=f?0:1;f<H.length;f++){if(K==null)return;K=K[H[f]]}return K};
_.PR.getValues=function(K){var d=[],f=0,H;for(H in K)d[f++]=K[H];return d};
_.PR.isEmpty=function(K){for(var d in K)return!1;return!0};
_.PR.isImmutableView=function(K){return!!Object.isFrozen&&Object.isFrozen(K)};
_.PR.map=function(K,d,f){var H={},D;for(D in K)H[D]=d.call(f,K[D],D,K);return H};
_.PR.remove=function(K,d){var f;(f=d in K)&&delete K[d];return f};
_.PR.set=function(K,d,f){K[d]=f};
_.PR.setIfUndefined=function(K,d,f){return d in K?K[d]:K[d]=f};
_.PR.setWithReturnValueIfNotSet=function(K,d,f){if(d in K)return K[d];f=f();return K[d]=f};
_.PR.some=function(K,d,f){for(var H in K)if(d.call(f,K[H],H,K))return!0;return!1};
_.PR.transpose=function(K){var d={},f;for(f in K)d[K[f]]=f;return d};
_.PR.unsafeClone=GYn;var cc=function(K,d,f,H,D){this.allowedElements=K;this.elementPolicies=d;this.allowedGlobalAttributes=f;this.globalAttributePolicies=H;this.globallyAllowedAttributePrefixes=D},xNB=function(K,d,f){f=K.elementPolicies.get(f);
return(f==null?0:f.has(d))?f.get(d):K.allowedGlobalAttributes.has(d)?{policyAction:1}:(f=K.globalAttributePolicies.get(d))?f:K.globallyAllowedAttributePrefixes&&[].concat(_.Me(K.globallyAllowedAttributePrefixes)).some(function(H){return d.indexOf(H)===0})?{policyAction:1}:{policyAction:0}};var Lun="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(" "),
BVp=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],JFu="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
sHX=[["dir",{policyAction:3,conditions:VL(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:VL(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:VL(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:VL(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],kgS=new cc(new Set(Lun),new Map(BVp),new Set(JFu),new Map(sHX)),whp=new cc(new Set(Lun.concat(["BUTTON",
"INPUT"])),new Map(BVp),new Set(VL(function(){return JFu.concat(["class","id","name"])})),new Map(VL(function(){return sHX.concat([["style",
{policyAction:1}]])})));var Z4o,e_Y,K5t;Z4o=function(K,d,f,H){this.JSC$7298_sanitizerTable=K;this.styleElementSanitizer=d;this.styleAttributeSanitizer=f;this.JSC$7298_resourceUrlPolicy=H;this.changes=[]};
_.phB=function(K,d){var f=document.implementation.createHTMLDocument("");K=e_Y(K,d,f);f=f.body;f.appendChild(K);f=(new XMLSerializer).serializeToString(f);f=f.slice(f.indexOf(">")+1,f.lastIndexOf("</"));return ta(f)};
e_Y=function(K,d,f){d=q2X(d,f);d=document.createTreeWalker(d,5,function(u){if(u.nodeType===3)u=1;else if(joN(u))if(u=QoG(u),u===null)u=2;else{var a=K.JSC$7298_sanitizerTable;u=u!=="FORM"&&(a.allowedElements.has(u)||a.elementPolicies.has(u))?1:2}else u=2;return u});
for(var H=d.nextNode(),D=f.createDocumentFragment(),S=D;H!==null;){var n=void 0;if(H.nodeType===3)K.styleElementSanitizer&&S.nodeName==="STYLE"?(H=K.styleElementSanitizer(H.data),n=K.createTextNode(H)):n=K.createTextNode(H.data);else if(joN(H))n=K5t(K,H,f);else throw Error("da");S.appendChild(n);if(H=d.firstChild())S=n;else for(;!(H=d.nextSibling())&&(H=d.parentNode());)S=S.parentNode}return D};
Z4o.prototype.createTextNode=function(K){return document.createTextNode(K)};
K5t=function(K,d,f){var H,D=QoG(d);f=f.createElement(D);d=d.attributes;for(var S=_.y(d),n=S.next();!n.done;n=S.next()){var u=n.value;n=u.name;u=u.value;var a=xNB(K.JSC$7298_sanitizerTable,n,D);a:{if(H=a.conditions){H=_.y(H);for(var R=H.next();!R.done;R=H.next()){var F=_.y(R.value);R=F.next().value;F=F.next().value;var z=void 0;if((R=(z=d.getNamedItem(R))==null?void 0:z.value)&&!F.has(R)){H=!1;break a}}}H=!0}if(H)switch(a.policyAction){case 1:el(f,n,u);break;case 2:a=_.FbS(u);u=a!==void 0&&dNX.indexOf(a.toLowerCase())!==
-1?u:"about:invalid#zClosurez";el(f,n,u);break;case 3:el(f,n,u.toLowerCase());break;case 4:K.styleAttributeSanitizer?(u=K.styleAttributeSanitizer(u),el(f,n,u)):el(f,n,u);break;case 5:K.JSC$7298_resourceUrlPolicy?(a={type:2,attributeName:n,elementName:D},u=rap(u),(u=K.JSC$7298_resourceUrlPolicy(u,a))&&el(f,n,u.toString())):el(f,n,u);break;case 6:if(K.JSC$7298_resourceUrlPolicy){a={type:2,attributeName:n,elementName:D};H=[];u=_.y(u.split(","));for(R=u.next();!R.done;R=u.next())F=_.y(R.value.trim().split(/\s+/,
2)),R=F.next().value,F=F.next().value,H.push({url:R,descriptor:F});u={parts:[]};H=_.y(H);for(R=H.next();!R.done;R=H.next())R=R.value,F=rap(R.url),(F=K.JSC$7298_resourceUrlPolicy(F,a))&&u.parts.push({url:F.toString(),descriptor:R.descriptor});el(f,n,C$Y(u))}else el(f,n,u)}}return f};
_.dJt=VL(function(){return new Z4o(kgS)});
_.fnv=VL(function(){return new Z4o(whp)});var HBs=function(){this.calledBuild=!1;this.JSC$7310_sanitizerTable=kgS},DJs=function(){HBs.apply(this,arguments)};
_.O(DJs,HBs);DJs.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new Z4o(this.JSC$7310_sanitizerTable,void 0,void 0,this.JSC$7310_resourceUrlPolicy)};var Vpf=/[^#]*/;var L0=function(K){try{return!!K&&K.location.href!=null&&$h(K,"foo")}catch(d){return!1}},yNt=function(K){var d=SYs;
if(d)for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&K(d[f],f,d)},nzk=function(){var K=[];
yNt(function(d){K.push(d)});
return K},SYs={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"},iBN=_.yi(function(){return nzk()}),uXk=function(){var K=cNk("IFRAME"),
d={};
_.QB(iBN(),function(f){K.sandbox&&K.sandbox.supports&&K.sandbox.supports(f)&&(d[f]=!0)});
return d},cNk=function(K,d){d=d===void 0?document:d;
return d.createElement(String(K).toLowerCase())};var uR;_.Oa=function(K,d,f){return Math.min(Math.max(K,d),f)};
uR=function(K,d,f){return K+f*(d-K)};_.Nm=function(K,d){this.x=K!==void 0?K:0;this.y=d!==void 0?d:0};
_.V=_.Nm.prototype;_.V.clone=function(){return new _.Nm(this.x,this.y)};
_.V.equals=function(K){return K instanceof _.Nm&&(this==K?!0:this&&K?this.x==K.x&&this.y==K.y:!1)};
_.V.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.V.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.V.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.V.translate=function(K,d){K instanceof _.Nm?(this.x+=K.x,this.y+=K.y):(this.x+=Number(K),typeof d==="number"&&(this.y+=d));return this};
_.V.scale=function(K,d){this.x*=K;this.y*=typeof d==="number"?d:K;return this};_.n0=function(K,d){this.width=K;this.height=d};
_.V=_.n0.prototype;_.V.clone=function(){return new _.n0(this.width,this.height)};
_.V.area=function(){return this.width*this.height};
_.V.aspectRatio=function(){return this.width/this.height};
_.V.isEmpty=function(){return!this.area()};
_.V.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.V.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.V.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.V.scale=function(K,d){this.width*=K;this.height*=typeof d==="number"?d:K;return this};var mh=function(K,d){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=K===MVX&&d||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=ans};
mh.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Inf=function(K){return K instanceof mh&&K.constructor===mh&&K.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===ans?K.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},ans={},MVX={};
new mh(MVX,"");var uW,zp,I_,UJs,zG4,F56,tA,vz9,PoH,Mpf,zl,gzB,Ez6,$J6,ozB,hGs,bB9,mJk,lnJ,rGz,W5L,ANf,Tz2,GSs,a_;uW=function(K){return K?new a_(_.oL(K)):lZN||(lZN=new a_)};
_.Bp=function(K,d){return typeof d==="string"?K.getElementById(d):d};
zp=function(K,d){return(d||document).getElementsByTagName(String(K))};
_.RGt=function(K){return UJs("yt-formatted-string","paper-input-input",K)};
I_=function(K,d,f,H){K=H||K;return(d=d&&d!="*"?String(d).toUpperCase():"")||f?K.querySelectorAll(d+(f?"."+f:"")):K.getElementsByTagName("*")};
UJs=function(K,d,f){var H=document,D=K&&K!="*"?String(K).toUpperCase():"";return D||d?(f||H).querySelector(D+(d?"."+d:"")):I_(H,K,d,f)[0]||null};
zG4=function(K,d){_.PR.forEach(d,function(f,H){H=="style"?K.style.cssText=f:H=="class"?K.className=f:H=="for"?K.htmlFor=f:F56.hasOwnProperty(H)?K.setAttribute(F56[H],f):_.Sp(H,"aria-")||_.Sp(H,"data-")?K.setAttribute(H,f):K[H]=f})};
F56={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"};_.iW=function(K){K=(K||window).document;K=K.compatMode=="CSS1Compat"?K.documentElement:K.body;return new _.n0(K.clientWidth,K.clientHeight)};
_.Xuv=function(K){var d=_.UG(K);K=K.defaultView;return new _.Nm(K.pageXOffset||d.scrollLeft,K.pageYOffset||d.scrollTop)};
_.UG=function(K){return K.scrollingElement?K.scrollingElement:_.Zf||K.compatMode!="CSS1Compat"?K.body||K.documentElement:K.documentElement};
tA=function(K){return K?K.defaultView:window};
_.R_=function(K,d,f){return vz9(document,arguments)};
vz9=function(K,d){var f=d[1],H=Mpf(K,String(d[0]));f&&(typeof f==="string"?H.className=f:Array.isArray(f)?H.className=f.join(" "):zG4(H,f));d.length>2&&PoH(K,H,d,2);return H};
PoH=function(K,d,f,H){function D(u){u&&d.appendChild(typeof u==="string"?K.createTextNode(u):u)}
for(;H<f.length;H++){var S=f[H];if(!_.d2(S)||_.H4(S)&&S.nodeType>0)D(S);else{a:{if(S&&typeof S.length=="number"){if(_.H4(S)){var n=typeof S.item=="function"||typeof S.item=="string";break a}if(typeof S==="function"){n=typeof S.item=="function";break a}}n=!1}_.QB(n?_.ep(S):S,D)}}};
_.RQ=function(K){return Mpf(document,K)};
Mpf=function(K,d){d=String(d);K.contentType==="application/xhtml+xml"&&(d=d.toLowerCase());return K.createElement(d)};
_.F_=function(){return document.createTextNode("\n")};
zl=function(K){if(K.nodeType!=1)return!1;switch(K.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};
gzB=function(K,d){PoH(_.oL(K),K,arguments,1)};
_.X_=function(K){for(var d;d=K.firstChild;)K.removeChild(d)};
_.vc=function(K,d){d.parentNode&&d.parentNode.insertBefore(K,d)};
_.MO=function(K,d){d.parentNode&&d.parentNode.insertBefore(K,d.nextSibling)};
_.FE=function(K){return K&&K.parentNode?K.parentNode.removeChild(K):null};
_.OBB=function(K,d){var f=d.parentNode;f&&f.replaceChild(K,d)};
_.Nz2=function(K){var d,f=K.parentNode;if(f&&f.nodeType!=11)if(K.removeNode)K.removeNode(!1);else{for(;d=K.firstChild;)f.insertBefore(d,K);_.FE(K)}};
_.Pc=function(K){return K.children!=void 0?K.children:Array.prototype.filter.call(K.childNodes,function(d){return d.nodeType==1})};
_.tpk=function(K){return K.nextElementSibling!==void 0?K.nextElementSibling:_.YY2(K.nextSibling,!0)};
_.YY2=function(K,d){for(;K&&K.nodeType!=1;)K=d?K.nextSibling:K.previousSibling;return K};
_.JL=function(K){return _.H4(K)&&K.nodeType==1};
_.Tp=function(K,d){if(!K||!d)return!1;if(K.contains&&d.nodeType==1)return K==d||K.contains(d);if(typeof K.compareDocumentPosition!="undefined")return K==d||!!(K.compareDocumentPosition(d)&16);for(;d&&K!=d;)d=d.parentNode;return d==K};
Ez6=function(K,d){if(K==d)return 0;if(K.compareDocumentPosition)return K.compareDocumentPosition(d)&2?1:-1;if("sourceIndex"in K||K.parentNode&&"sourceIndex"in K.parentNode){var f=K.nodeType==1,H=d.nodeType==1;if(f&&H)return K.sourceIndex-d.sourceIndex;var D=K.parentNode,S=d.parentNode;return D==S?ozB(K,d):!f&&_.Tp(D,d)?-1*$J6(K,d):!H&&_.Tp(S,K)?$J6(d,K):(f?K.sourceIndex:D.sourceIndex)-(H?d.sourceIndex:S.sourceIndex)}H=_.oL(K);f=H.createRange();f.selectNode(K);f.collapse(!0);K=H.createRange();K.selectNode(d);
K.collapse(!0);return f.compareBoundaryPoints(_.Hu.Range.START_TO_END,K)};
$J6=function(K,d){var f=K.parentNode;if(f==d)return-1;for(;d.parentNode!=f;)d=d.parentNode;return ozB(d,K)};
ozB=function(K,d){for(;d=d.previousSibling;)if(d==K)return-1;return 1};
hGs=function(K){var d,f=arguments.length;if(!f)return null;if(f==1)return arguments[0];var H=[],D=Infinity;for(d=0;d<f;d++){for(var S=[],n=arguments[d];n;)S.unshift(n),n=n.parentNode;H.push(S);D=Math.min(D,S.length)}S=null;for(d=0;d<D;d++){n=H[0][d];for(var u=1;u<f;u++)if(n!=H[u][d])return S;S=n}return S};
_.oL=function(K){return K.nodeType==9?K:K.ownerDocument||K.document};
bB9=function(K){return K.contentDocument||K.contentWindow.document};
_.g9=function(K,d){if("textContent"in K)K.textContent=d;else if(K.nodeType==3)K.data=String(d);else if(K.firstChild&&K.firstChild.nodeType==3){for(;K.lastChild!=K.firstChild;)K.removeChild(K.lastChild);K.firstChild.data=String(d)}else _.X_(K),K.appendChild(_.oL(K).createTextNode(String(d)))};
mJk={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};lnJ={IMG:" ",BR:"\n"};rGz=function(K){var d;K.tagName=="A"&&K.hasAttribute("href")||K.tagName=="INPUT"||K.tagName=="TEXTAREA"||K.tagName=="SELECT"||K.tagName=="BUTTON"?d=!K.disabled&&(!K.hasAttribute("tabindex")||W5L(K)):d=K.hasAttribute("tabindex")&&W5L(K);return d};
W5L=function(K){K=K.tabIndex;return typeof K==="number"&&K>=0&&K<32768};
ANf=function(K){var d=[];GSs(K,d,!0);K=d.join("");K=K.replace(/ \xAD /g," ").replace(/\xAD/g,"");K=K.replace(/\u200B/g,"");K=K.replace(/ +/g," ");K!=" "&&(K=K.replace(/^\s*/,""));return K};
Tz2=function(K){var d=[];GSs(K,d,!1);return d.join("")};
GSs=function(K,d,f){if(!(K.nodeName in mJk))if(K.nodeType==3)f?d.push(String(K.nodeValue).replace(/(\r\n|\r|\n)/g,"")):d.push(K.nodeValue);else if(K.nodeName in lnJ)d.push(lnJ[K.nodeName]);else for(K=K.firstChild;K;)GSs(K,d,f),K=K.nextSibling};
_.rN9=function(K,d,f){if(!d&&!f)return null;var H=d?String(d).toUpperCase():null;return _.bW(K,function(D){return(!H||D.nodeName==H)&&(!f||typeof D.className==="string"&&_.Bu(D.className.split(/\s+/),f))},!0)};
_.bW=function(K,d,f){K&&!f&&(K=K.parentNode);for(f=0;K;){if(d(K))return K;K=K.parentNode;f++}return null};
a_=function(K){this.JSC$7335_document_=K||_.Hu.document||document};
_.V=a_.prototype;_.V.getElement=function(K){return _.Bp(this.JSC$7335_document_,K)};
_.V.$=a_.prototype.getElement;_.V.getElementsByTagName=function(K,d){return(d||this.JSC$7335_document_).getElementsByTagName(String(K))};
_.V.getElementsByTagNameAndClass=function(K,d,f){return I_(this.JSC$7335_document_,K,d,f)};
_.V.$$=a_.prototype.getElementsByTagNameAndClass;_.V.setProperties=zG4;_.V.JSC$7337_createDom=function(K,d,f){return vz9(this.JSC$7335_document_,arguments)};
_.V.createElement=function(K){return Mpf(this.JSC$7335_document_,K)};
_.V.createTextNode=function(K){return this.JSC$7335_document_.createTextNode(String(K))};
_.V.getWindow=function(){return this.JSC$7335_document_.defaultView};
var cR=function(K){return _.Xuv(K.JSC$7335_document_)};
_.V=a_.prototype;_.V.appendChild=function(K,d){K.appendChild(d)};
_.V.append=gzB;_.V.canHaveChildren=zl;_.V.removeNode=_.FE;_.V.getChildren=_.Pc;_.V.contains=_.Tp;_.V=d0.prototype;_.V.getWidth=function(){return this.right-this.left};
_.V.getHeight=function(){return this.bottom-this.top};
_.V.clone=function(){return new d0(this.top,this.right,this.bottom,this.left)};
_.V.contains=function(K){return this&&K?K instanceof d0?K.left>=this.left&&K.right<=this.right&&K.top>=this.top&&K.bottom<=this.bottom:K.x>=this.left&&K.x<=this.right&&K.y>=this.top&&K.y<=this.bottom:!1};
_.V.expand=function(K,d,f,H){_.H4(K)?(this.top-=K.top,this.right+=K.right,this.bottom+=K.bottom,this.left-=K.left):(this.top-=K,this.right+=Number(d),this.bottom+=Number(f),this.left-=Number(H));return this};
_.V.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};
_.V.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};
_.V.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};
_.V.translate=function(K,d){K instanceof _.Nm?(this.left+=K.x,this.right+=K.x,this.top+=K.y,this.bottom+=K.y):(this.left+=K,this.right+=K,typeof d==="number"&&(this.top+=d,this.bottom+=d));return this};
_.V.scale=function(K,d){d=typeof d==="number"?d:K;this.left*=K;this.right*=K;this.top*=d;this.bottom*=d;return this};var OG=function(K,d,f,H){this.left=K;this.top=d;this.width=f;this.height=H};
_.V=OG.prototype;_.V.clone=function(){return new OG(this.left,this.top,this.width,this.height)};
_.V.boundingRect=function(K){var d=Math.max(this.left+this.width,K.left+K.width),f=Math.max(this.top+this.height,K.top+K.height);this.left=Math.min(this.left,K.left);this.top=Math.min(this.top,K.top);this.width=d-this.left;this.height=f-this.top};
_.V.contains=function(K){return K instanceof _.Nm?K.x>=this.left&&K.x<=this.left+this.width&&K.y>=this.top&&K.y<=this.top+this.height:this.left<=K.left&&this.left+this.width>=K.left+K.width&&this.top<=K.top&&this.top+this.height>=K.top+K.height};
_.V.distance=function(K){var d=K.x<this.left?this.left-K.x:Math.max(K.x-(this.left+this.width),0);K=K.y<this.top?this.top-K.y:Math.max(K.y-(this.top+this.height),0);return Math.sqrt(d*d+K*K)};
_.V.getSize=function(){return new _.n0(this.width,this.height)};
_.V.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};
_.V.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};
_.V.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};
_.V.translate=function(K,d){K instanceof _.Nm?(this.left+=K.x,this.top+=K.y):(this.left+=K,typeof d==="number"&&(this.top+=d));return this};
_.V.scale=function(K,d){d=typeof d==="number"?d:K;this.left*=K;this.width*=K;this.top*=d;this.height*=d;return this};var QXN,tB,a4O,YW,L5N,xJk,Bz6,hCo,JN9,kSv;_.NO=function(K,d,f){if(typeof d==="string")(d=_.qYN(K,d))&&(K.style[d]=f);else for(var H in d){f=K;var D=d[H],S=_.qYN(f,H);S&&(f.style[S]=D)}};
QXN={};_.qYN=function(K,d){var f=QXN[d];if(!f){var H=_.c0(d);f=H;K.style[H]===void 0&&(H=(_.Zf?"Webkit":_.w7?"Moz":null)+cFu(H),K.style[H]!==void 0&&(f=H));QXN[d]=f}return f};
_.c$=function(K,d){var f=_.oL(K);return f.defaultView&&f.defaultView.getComputedStyle&&(K=f.defaultView.getComputedStyle(K,null))?K[d]||K.getPropertyValue(d)||"":""};
_.As=function(K,d){return _.c$(K,d)||(K.currentStyle?K.currentStyle[d]:null)||K.style&&K.style[d]};
_.jXf=function(K){return _.As(K,"position")};
tB=function(K,d,f){if(d instanceof _.Nm){var H=d.x;d=d.y}else H=d,d=f;K.style.left=YW(H,!1);K.style.top=YW(d,!1)};
a4O=function(K){try{return K.getBoundingClientRect()}catch(d){return{left:0,top:0,right:0,bottom:0}}};
_.E7=function(K){var d=_.oL(K),f=new _.Nm(0,0);if(K==(d?_.oL(d):document).documentElement)return f;K=a4O(K);d=cR(uW(d));f.x=K.left+d.x;f.y=K.top+d.y;return f};
_.Co6=function(K,d,f){if(d instanceof _.n0)f=d.height,d=d.width;else if(f==void 0)throw Error("sa");K.style.width=YW(d,!0);K.style.height=YW(f,!0)};
YW=function(K,d){typeof K=="number"&&(K=(d?Math.round(K):K)+"px");return K};
L5N=function(K){return xJk(K)};
xJk=function(K){var d=Bz6;if(_.As(K,"display")!="none")return d(K);var f=K.style,H=f.display,D=f.visibility,S=f.position;f.visibility="hidden";f.position="absolute";f.display="inline";K=d(K);f.display=H;f.position=S;f.visibility=D;return K};
Bz6=function(K){var d=K.offsetWidth,f=K.offsetHeight,H=_.Zf&&!d&&!f;return(d===void 0||H)&&K.getBoundingClientRect?(K=a4O(K),new _.n0(K.right-K.left,K.bottom-K.top)):new _.n0(d,f)};
hCo=function(K){var d=_.E7(K);K=xJk(K);return new OG(d.x,d.y,K.width,K.height)};
JN9=function(K,d){K=K.style;"opacity"in K?K.opacity=d:"MozOpacity"in K?K.MozOpacity=d:"filter"in K&&(K.filter=d===""?"":"alpha(opacity="+Number(d)*100+")")};
_.xl=function(K,d){K.style.display=d?"":"none"};
_.sXs=function(K){return"rtl"==_.As(K,"direction")};
kSv=function(K){var d=_.c$(K,"marginLeft"),f=_.c$(K,"marginRight"),H=_.c$(K,"marginTop");K=_.c$(K,"marginBottom");return new d0(parseFloat(H),parseFloat(f),parseFloat(K),parseFloat(d))};
_.wu9=function(K){var d=_.c$(K,"borderLeftWidth"),f=_.c$(K,"borderRightWidth"),H=_.c$(K,"borderTopWidth");K=_.c$(K,"borderBottomWidth");return new d0(parseFloat(H),parseFloat(f),parseFloat(K),parseFloat(d))};var o_=function(K){this.context=K};
o_.prototype.isSupported=function(K){return(K==null?0:K.attributionEnabled)||(K==null?void 0:K.beaconMethod)==="POST"||(K==null?0:K.customHeaders)||(K==null?0:K.customBody)||(K==null?0:K.keepAlive)?!1:!Dh(this.context)};
o_.prototype.ping=function(){var K=this;return aE(_.Pg.apply(0,arguments).map(function(d){try{var f=K.context.global,H=!1;H=H===void 0?!1:H;f.google_image_requests||(f.google_image_requests=[]);var D=cNk("IMG",f.document);H&&(D.attributionSrc="");D.src=d;f.google_image_requests.push(D);return!0}catch(S){return!1}}).every(function(d){return d}))};
o_.prototype.pingWithHeadersAndBody=function(K,d,f){this.ping.apply(this,_.Me(_.Pg.apply(3,arguments)))};var ZBv=function(K){this.context=K};
ZBv.prototype.isSupported=function(K){return eG9&&!Dh(this.context)&&LcB(this.context)!==void 0&&!(K==null?0:K.attributionEnabled)&&(K==null?void 0:K.beaconMethod)!=="POST"&&!(K==null?0:K.customHeaders)&&!(K==null?0:K.customBody)};
ZBv.prototype.makeBeacon=function(K,d){if(!this.isSupported(d))throw new Kg;return new $W(this.context,K)};
var eG9=!1,$W=function(K,d){this.context=K;this.JSC$7356_urlWithoutToken=d;K=LcB(this.context);if(K===void 0)throw Error();this.wrappedBeacon=new K(puv(this),{})},puv=function(K){K=K.JSC$7356_urlWithoutToken;
return(K.slice(-1)[0]==="&"?K:K+"&")+"pbapi=1"};
$W.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
$W.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
$W.prototype.setHeader=function(){};
_.x$.Object.defineProperties($W.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7356_urlWithoutToken},
set:function(K){this.JSC$7356_urlWithoutToken=K;this.wrappedBeacon.setURL(puv(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(K){if(K!=="GET")throw new Kg;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var KNJ=function(K){this.context=K};
KNJ.prototype.isSupported=function(K){if((K==null?0:K.attributionEnabled)||(K==null?void 0:K.beaconMethod)==="GET"||(K==null?0:K.customHeaders)||(K==null?0:K.customBody)||(K==null?0:K.keepAlive))return!1;var d;return!Dh(this.context)&&((d=this.context.global.navigator)==null?void 0:d.sendBeacon)!==void 0};
KNJ.prototype.ping=function(){var K=this;return aE(_.Pg.apply(0,arguments).map(function(d){var f;return(f=K.context.global.navigator)==null?void 0:f.sendBeacon(d)}).every(function(d){return d}))};
KNJ.prototype.pingWithHeadersAndBody=function(K,d,f){this.ping.apply(this,_.Me(_.Pg.apply(3,arguments)))};var S4=function(K){this.value=K},j4=function(K,d){return aE(K.value).pipe(D4(d))},JA=new S4(!1),PlS=new S4(!0);var m2=function(K){this.value=K;this.releasedSubject=new f0};
m2.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.x$.Object.defineProperties(m2.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7369_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var DeS=["FRAME","IMG","IFRAME"],eXu=/^[01](px)?$/,H7O=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},fwO=function(){var K=new H7O;
K.crossDomainLoadedDefault=!0;K.pendingImagesBlockLoad=!0;return K};var dsv=function(K,d){var f=uyJ(K);if(f)if(f.onCreativeLoad)f.onCreativeLoad(d);else{var H=d?[d]:[],D=function(S){for(var n=0;n<H.length;++n)try{H[n](1,S)}catch(u){}H={push:function(u){u(1,S)}}};
f.onCreativeLoad=function(S){H.push(S)};
f.setAttribute("data-creative-load-listener","");f.addEventListener("creativeLoad",function(S){D(S.detail)});
_.Hu.addEventListener("message",function(S){c5u(f,D,S)})}};var EG=function(K,d){var f=this;this.global=K;this.parentContext=d;this.JSC$7380_onVisibilityChange=this.document?$Q(aE(!0),t5(this.document,"visibilitychange")).pipe(mH(this.parentContext.performanceMonitor,748),vF(function(){return f.getVisibilityState()}),Tf()):aE("visible");
this.document?t5(this.document,"DOMContentLoaded").pipe(mH(this.parentContext.performanceMonitor,739),A5(1)):aE(wgG("DOMContentLoaded"))},MhX=function(K){return K.document!==null&&K.document.visibilityState!==void 0};
EG.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
EG.prototype.querySelector=function(K){return this.document?this.document.querySelector(K):null};
EG.prototype.querySelectorAll=function(K){return this.document?_.ep(this.document.querySelectorAll(K)):[]};
EG.prototype.elementFromPoint=function(K,d){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;K=this.document.elementFromPoint(K,d);return K===null?null:new m2(K)};
var imz=function(K,d,f){f=f===void 0?!1:f;if(d.ref===void 0||!K.document)return aE(d).pipe(mH(K.parentContext.performanceMonitor,749));var H=new xQ(1),D=function(){H.next(d)};
f||dsv(d.ref,D);Vlp(d.ref,D);return H.pipe(mH(K.parentContext.performanceMonitor,749),A5(1))};
_.x$.Object.defineProperties(EG.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return $h(this.global,"document")?this.global.document||null:null}}});var aw5=_.Am(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Iwo=_.Am(["./reach_worklet.js"]),UeO=_.Am(["./reach_worklet.js"]),fLB=_.Am(["./reach_worklet.html"]),HJ4=_.Am(["./reach_worklet.js"]),Dsv=_.Am(["./reach_worklet.js"]);_.p7(fLB);_.p7(HJ4);_.p7(Dsv);var AA={left:0,top:0,width:0,height:0};var Vts,Ss4,y64,n88,sb,c64,uHB,aLN,jA5,CKp,RBk,FN9;Vts=function(K,d,f,H,D,S,n){var u="";K&&(u+=K+":");f&&(u+="//",d&&(u+=d+"@"),u+=f,H&&(u+=":"+H));D&&(u+=D);S&&(u+="?"+S);n&&(u+="#"+n);return u};
Ss4=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.B_=function(K){return K.match(Ss4)};
_.z$=function(K,d){return K?d?decodeURI(K):decodeURIComponent(K):K};
y64=function(K){K=_.B_(K)[1]||null;!K&&_.Hu.self&&_.Hu.self.location&&(K=_.Hu.self.location.protocol.slice(0,-1));return K?K.toLowerCase():""};
_.JR=function(K){return _.z$(_.B_(K)[3]||null,!0)};
_.ny=function(K){return _.z$(_.B_(K)[5]||null,!0)};
_.pVG=function(K){var d=K.indexOf("#");return d<0?null:K.slice(d+1)};
n88=function(K){K=_.B_(K);return Vts(K[1],K[2],K[3],K[4])};
_.iJf=function(K){K=_.B_(K);return Vts(K[1],null,K[3],K[4])};
_.W0=function(K){K=_.B_(K);return Vts(null,null,null,null,K[5],K[6],K[7])};
_.C1=function(K){var d=K.indexOf("#");return d<0?K:K.slice(0,d)};
sb=function(K,d){K=_.B_(K);d=_.B_(d);return K[3]==d[3]&&K[1]==d[1]&&K[4]==d[4]};
c64=function(K,d){if(K){K=K.split("&");for(var f=0;f<K.length;f++){var H=K[f].indexOf("="),D=null;if(H>=0){var S=K[f].substring(0,H);D=K[f].substring(H+1)}else S=K[f];d(S,D?wF(D):"")}}};
uHB=function(K){var d=K.indexOf("#");d<0&&(d=K.length);var f=K.indexOf("?");if(f<0||f>d){f=d;var H=""}else H=K.substring(f+1,d);return[K.slice(0,f),H,K.slice(d)]};
aLN=function(K,d){return d?K?K+"&"+d:d:K};
_.ILs=function(K,d){if(!d)return K;K=uHB(K);K[1]=aLN(K[1],d);return K[0]+(K[1]?"?"+K[1]:"")+K[2]};
_.UsN=function(K,d,f){if(Array.isArray(d))for(var H=0;H<d.length;H++)_.UsN(K,String(d[H]),f);else d!=null&&f.push(K+(d===""?"":"="+_.qk(d)))};
_.c6=function(K){var d=[],f;for(f in K)_.UsN(f,K[f],d);return d.join("&")};
_.LQ=function(K,d){d=_.c6(d);return _.ILs(K,d)};
_.hB=function(K,d,f){f=f!=null?"="+_.qk(f):"";return _.ILs(K,d+f)};
jA5=function(K,d,f,H){for(var D=f.length;(d=K.indexOf(f,d))>=0&&d<H;){var S=K.charCodeAt(d-1);if(S==38||S==63)if(S=K.charCodeAt(d+D),!S||S==61||S==38||S==35)return d;d+=D+1}return-1};
CKp=/#|$/;_.rG=function(K,d){var f=K.search(CKp),H=jA5(K,0,d,f);if(H<0)return null;var D=K.indexOf("&",H);if(D<0||D>f)D=f;H+=d.length+1;return wF(K.slice(H,D!==-1?D:0))};
RBk=/[?&]($|#)/;_.L1=function(K,d){for(var f=K.search(CKp),H=0,D,S=[];(D=jA5(K,H,d,f))>=0;)S.push(K.substring(H,D)),H=Math.min(K.indexOf("&",D)+1||f,f);S.push(K.slice(H));return S.join("").replace(RBk,"$1")};
_.lp=function(K,d,f){return _.hB(_.L1(K,d),d,f)};
FN9=function(K){var d=uHB(window.location.href),f=d[1],H=[];f&&f.split("&").forEach(function(D){var S=D.indexOf("=");S=S>=0?D.slice(0,S):D;K.hasOwnProperty(S)||H.push(D)});
d[1]=aLN(H.join("&"),_.c6(K));return d[0]+(d[1]?"?"+d[1]:"")+d[2]};var WH5=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(WH5,_.Ti);WH5.prototype.getVersion=function(){return _.Xo(this,2)};var lwu=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(lwu,_.Ti);var oQz=function(K,d){return _.aL(K,2,d)},mep=function(K,d){return _.aL(K,3,d)};
lwu.prototype.getModel=function(){return _.Xo(this,4)};
var EQG=function(K,d){return _.aL(K,4,d)},tln=function(K,d){return _.aL(K,5,d)},b7J=function(K,d){return _.aL(K,9,d)},YoX=function(K,d){return cY(K,10,d)},Nyn=function(K,d){return _.Dq(K,11,d)},$ep=function(K,d){return _.aL(K,1,d)},hcS=function(K,d){return _.Dq(K,7,d)};var gQY="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var BR=function(K,d,f,H){K=K===void 0?window:K;d=d===void 0?null:d;f=f===void 0?new A$J:f;H=H===void 0?RcN():H;YMo.call(this);var D=this;this.global=K;this.debugChannel=d;this.performanceMonitor=f;this.onPageHide=YQ(function(){return t5(D.global,"pagehide")}).pipe(mH(this.performanceMonitor,941));
this.onLoad=YQ(function(){return t5(D.global,"load")}).pipe(mH(this.performanceMonitor,738),A5(1));
this.onResize=YQ(function(){return t5(D.global,"resize")}).pipe(mH(this.performanceMonitor,741));
this.onMessage=YQ(function(){return t5(D.global,"message")}).pipe(mH(this.performanceMonitor,740));
this.document=new EG(this.global,this);this.timeProvider=new b4B(new lsB(this.intrinsicFunctionNamespace,this.performanceMonitor),new mNz(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new $NO(new GgG(this),new ZBv(this),new d9(this,new rFB(this)),new d9(this,new KNJ(this)),new d9(this,new o_(this)))};
_.O(BR,YMo);var Dh=function(K){var d=K.global;return!!K.global.HTMLFencedFrameElement&&!!d.fence&&typeof d.fence.reportEvent==="function"};
_.V=BR.prototype;_.V.reportFencedFrameEvent=function(K){Dh(this)&&this.global.fence.reportEvent(K)};
_.V.getOnBackgrounded=function(){return this.onPageHide.pipe(mH(this.performanceMonitor,942),D4(this.queue),vF(function(){}))};
_.V.postMessage=function(K,d,f){f=f===void 0?[]:f;this.global.postMessage(K,d,f)};
_.V.getWidth=function(){return L0(this.global)?this.global.width:0};
_.V.getHeight=function(){return L0(this.global)?this.global.height:0};
_.V.isMobile=function(){return QHX()||jHN()};
var lW=function(K,d){try{var f=vQX(d,K.global,K.isMobile());return{left:f.left,top:f.top,width:f.getWidth(),height:f.getHeight()}}catch(H){return AA}};
BR.prototype.validate=function(){var K=this.beaconFactory.isSupported()||Dh(this);return this.global&&this.timeProvider.available()&&K};
var JaN=function(K){return(K=A5o(K.global))?f7(K):null};
_.x$.Object.defineProperties(BR.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(K){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!L0(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}}});_.zBJ=!_.kb&&!_.lo();var glX=function(K){return K};var NGY=function(K){return K.pipe(Eo(function(d){var f=d.endOfSessionReason;var H;return((H=d.viewable)==null?void 0:H.extrapolateToNow().value)||f!=void 0}),A5(1),WF())};var CQX=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},xez=function(K){var d=K.sequenceNumber.toString(10).padStart(2,"0");
d=""+K.startTime+d;K.sequenceNumber<99&&K.sequenceNumber++;return d};var vlz=Za(kQ(function(K){return K.endOfSessionReason===void 0}),vF(function(K){return Object.assign({},K,{timestamps:FT(K)})}),Eo(function(K){var d=K.viewable;
K=K.timestamps;var f;return(f=d==null?void 0:d.extrapolateUsingTimestampMap(K).value)!=null?f:!1}),vF(function(K){var d=K.beaconFactory;
var f=K.timestampedExposureHistory;var H=K.timeOnScreen;var D=K.binaryContext;K=K.timestamps;if(d===void 0||f===void 0||H===void 0||D===void 0)return!1;if(H.extrapolateUsingTimestampMap(K).value.every(function(S){return S>=0}))return!0;
f=f.map(function(S){return S.timestamp+":"+S.value}).join(",");
H=zj({bin:D,tos:H},K);d.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+H+("&eh="+f)).sendNow();return!0}),kQ(function(K){return!K}),WF());var ByN=function(K){return{id:K.pingId,mcvt:K.maxConsecutiveViewTime,p:K.creativePosition,asp:K.adSpeedPosition,tm:K.totalMeasurementTime,tu:K.totalUnviewedTime,mtos:K.maxTimeOnScreen,tos:K.timeOnScreen,v:K.binaryVersion,bin:K.binaryContext,avms:K.measurementStrategy,bs:K.browserSize,mc:K.maximumExposure,"if":K.crossDomainIframeState,vu:K.delayedImpressionJsState,app:K.inApp,mse:K.mraidError,mtop:K.mraidSituation,itpl:K.injectedTemplateId,adk:K.adKey,exk:K.awbidKey,rs:K.requestSource,la:K.isLargeAd,
cr:K.isContentRecommendationAd,uach:K.userAgentClientHints,vs:K.viewState,r:K.reasonCode,pay:K.hasCpmavUrl,co:K.clientPingOrderCounter,rst:K.adRenderStartTime,rpt:K.adRenderPeriodTime,isd:K.initialScrollDepth,lsd:K.loadedScrollDepth,context:K.errorContext,msg:K.errorMessage,stack:K.errorStack,name:K.errorName,ec:K.hasElementChanged,sfr:K.strategyFailureReasons,met:K.creativeSearchResult,wmsd:K.webMeasurementStartDiagnostic,pv:K.pageVisible,epv:K.eosPageVisible,pbe:K.inStatefulBeaconExperiment,fle:K.inFetchLaterBeaconExperiment,
vae:K.inViewableAttributionExperiment,spb:K.supportsPendingBeacon,sfl:K.supportsFetchLater,ffslot:K.isFencedFrameSlotTurtlex,reach:K.sharedStorageReachMode,io2:K.v2VisibilityBitVector,rxdbg:K.rxDebugger,omida:K.omidAppId,omidp:K.omidPartner,omidpv:K.omidPartnerVersion,omidor:K.omidOcclusionReasons,omidv:K.omidVersion,omids:K.omidSessionType,omidam:K.omidAccessMode,omidct:K.omidCreativeType,omidia:K.omidInApp,omiddc:K.omidDeviceCategory,omidlat:K.omidLastActivity,omiddit:K.omidDeviceIdleTime,qid:K.errorEscapedQueryId}};var Omz=function(K){var d=[];return K.pipe(vF(function(f){var H=f.beaconFactory,D=f.fetchBeaconFactory,S=f.timeOnScreen,n=f.timeOnScreenUrlPrefixes,u=f.payloadMapper,a=f.timeOnScreenPingId,R=f.timeOnScreenReason,F=f.urlSerializer,z=f.viewable,v=f.hasImpressionFired,g=f.inStatefulBeaconExperiment,N=f.supportsPendingBeacon,h=f.supportsFetchLater,m=f.turtlexReportEventData;if(!f.geometryMeasurable||!v||f.maxTimeOnScreen===void 0||S===void 0||n===void 0||u===void 0||a===void 0||F===void 0||H===void 0)return!1;
if(f.isTurtlex){if(R===void 0)return!1;n=f.reportFencedFrameEvent;if(!n)return!1;n({eventType:"active-view-time-on-screen",eventData:m!=null?m:"",destination:["buyer"]});return!0}if(!(g||h||R))return!1;m=FT(f);var T;z=(T=z==null?void 0:z.extrapolateUsingTimestampMap(m).value)!=null?T:!1;T=F(Object.assign({},f,{pingId:a,viewState:z?4:3,reasonCode:R!=null?R:"u",payloadMapper:u,urlPrefixes:n}),m);if(g){for(;d.length>n.length;)f=void 0,(f=d.shift())==null||f.deactivate();T.forEach(function(J,L){L>=d.length?
d.push(H.makeBeacon(J)):d[L].url=J});
return N&&D&&R!==void 0?(T.forEach(function(J){D.makeBeacon(J).sendNow()}),!0):R!==void 0}if(N&&D&&R!==void 0)return T.forEach(function(J){D.makeBeacon(J).sendNow()}),!0;
if(h&&D){for(;d.length>n.length;)N=void 0,(N=d.shift())==null||N.deactivate();var r=F(Object.assign({},f,{pingId:a,viewState:z?4:3,reasonCode:R!=null?R:"u",payloadMapper:u,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),m)[0];T.forEach(function(J,L){L>=d.length?d.push(H.makeBeacon(r,{endOfSession:!0})):d[L].url=r});
return R!==void 0?(T.forEach(function(J){D.makeBeacon(J).sendNow()}),!0):R!==void 0}return R!==void 0?(T.forEach(function(J){H.makeBeacon(J).sendNow()}),!0):!1}),kQ(function(f){return!f}),WF())};var YmX=Za(Eo(function(K){return K.immediateUrlPrefixes!==void 0&&K.payloadMapper!==void 0&&K.urlSerializer!==void 0&&K.inferredPingId!==void 0&&K.beaconFactory!==void 0}),Eo(function(K){return K2p(K)!==null}),ecO(function(K){return K.activeViewUnmeasurableEvent},function(K){return K.emit}),vF(function(K){if(K.isTurtlex){var d=K.reportFencedFrameEvent;
if(d){var f;d({eventType:"active-view-unmeasurable",eventData:(f=K.turtlexReportEventData)!=null?f:"",destination:["buyer"]})}}else{f=void 0;var H=K2p(K);if(H==="x"){var D,S=(D=K.geometricMeasurementErrors)!=null?D:K.contextValidationErrors;S&&(d=S.stack,f=S.message)}K.urlSerializer(Object.assign({},K,{urlPrefixes:K.immediateUrlPrefixes,payloadMapper:K.payloadMapper,pingId:K.inferredPingId,viewState:2,reasonCode:H,errorMessage:f,errorStack:d}),FT(K)).forEach(function(n){K.beaconFactory.makeBeacon(n).sendNow()})}}),
A5(1),WF());var dmX=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Xyp=Za(Eo(function(K){return K.payloadMapper!==void 0&&K.immediateUrlPrefixes!==void 0&&K.urlSerializer!==void 0&&K.inferredPingId!==void 0&&K.beaconFactory!==void 0}),vF(function(K){return Object.assign({},K,{timestamps:FT(K)})}),Eo(function(K){var d=K.viewable;
var f=K.hasImpressionFired;K=K.timestamps;var H;return!!f&&((H=d==null?void 0:d.extrapolateUsingTimestampMap(K).value)!=null?H:!1)}),ecO(function(K){return K.activeViewViewableEvent},function(K){return K.emit}),vF(function(K){var d=K.beaconFactory,f=K.turtlexReportEventData;
if(K.isTurtlex){var H=K.reportFencedFrameEvent;if(!H)return!1;H({eventType:"active-view-viewable",eventData:f!=null?f:"",destination:["buyer"]});return!0}f=K.urlSerializer(Object.assign({},K,{urlPrefixes:K.immediateUrlPrefixes,payloadMapper:K.payloadMapper,pingId:K.inferredPingId,viewState:4,reasonCode:"v"}),K.timestamps);(H=K.cpmavUrls)&&H.length>0&&K.viewUrlSerializer&&K.viewUrlSerializer(H,K).forEach(function(D){d.makeBeacon(D).sendNow()});
(H=K.viewableRelayUrls)&&H.length>0&&K.viewUrlSerializer&&K.viewUrlSerializer(H,K).forEach(function(D){d.makeBeacon(D).sendNow()});
f.forEach(function(D){d.makeBeacon(D,{attributionEnabled:K.isViewableAttributionEnabled}).sendNow()});
return!0}),kQ(function(K){return!K}),WF());var xmz=vF(function(K){return[K.value.topWindowViewportExternalGeometry.width,K.value.topWindowViewportExternalGeometry.height]});var WR=function(K,d){this.callback=K;this.options=d;this.intersectionObserverV2=this.intersectionObserverV1=null},Y7J=function(K,d){d?K.intersectionObserverV2||(d=Object.assign({},K.options,{delay:100,
trackVisibility:!0}),K.intersectionObserverV2=new IntersectionObserver(K.callback,d)):K.intersectionObserverV1||(K.intersectionObserverV1=new IntersectionObserver(K.callback,K.options))},X44=function(K,d){K=d?K.intersectionObserverV2:K.intersectionObserverV1;
if(!K)throw new tyz;return K};
WR.prototype.observe=function(K,d){X44(this,K).observe(d)};
WR.prototype.unobserve=function(K,d){X44(this,K).unobserve(d)};
WR.prototype.disconnect=function(K){X44(this,K).disconnect()};
WR.prototype.takeRecords=function(K){return X44(this,K).takeRecords()};var hA={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:AA,topWindowViewportExternalGeometry:AA,measurementRequests:new f0,elementGeometrySourceName:"ns",elementGeometry:AA,intersectionGeometry:AA,viewportLocalAppOffset:{x:0,y:0}};var mmp=Tj(Za(vF(function(K){var d;return(d=K.exposureOverride)!=null?d:ohS(K)}),vF(function(K){return isFinite(K)?K:0}))),q7S=Tj(Za(vF(function(K){var d;
return(d=K.exposureOverride)!=null?d:ohS(K)}),vF(function(K){return isFinite(K)?K:-1})));var bR=function(K,d){this.a=K;this.b=d;if(K.clock.timeline!==d.clock.timeline)throw Error();};
bR.prototype.equivalentTo=function(K){return K instanceof bR?this.a.equivalentTo(K.a)&&this.b.equivalentTo(K.b):!1};
bR.prototype.extrapolateToTime=function(K){var d=this.a.extrapolateToTime(K).value,f=this.b.extrapolateToTime(K).value;return{timestamp:K,value:[d,f]}};
_.x$.Object.defineProperties(bR.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 K=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),d=this.a.lastMeasurement.timestamp.equals(K)?this.a.lastMeasurement.value:this.a.extrapolateToTime(K).value,f=this.b.lastMeasurement.timestamp.equals(K)?this.b.lastMeasurement.value:this.b.extrapolateToTime(K).value;return{timestamp:K,value:[d,f]}}}});var m9=function(K,d){this.input=K;this.mapFunction=d;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
m9.prototype.equivalentTo=function(K){return K instanceof m9?this.input.equivalentTo(K.input)&&this.mapFunction===K.mapFunction:!1};
m9.prototype.extrapolateToTime=function(K){K=this.input.extrapolateToTime(K);return{timestamp:K.timestamp,value:this.mapFunction(K.value)}};
_.x$.Object.defineProperties(m9.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var lR=function(){};
lR.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
lR.prototype.extrapolateUsingTimestampMap=function(K){var d=this.clock.timeline,f,H=(f=K.get(d))!=null?f:this.clock.now();K.set(d,H);return this.extrapolateToTime(H)};
lR.prototype.map=function(K){return new v84(this,K)};
lR.prototype.joinWith=function(K){return new MtL(this,K)};
var MtL=function(){bR.apply(this,arguments);this.map=lR.prototype.map;this.joinWith=lR.prototype.joinWith;this.extrapolateToNow=lR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=lR.prototype.extrapolateUsingTimestampMap};
_.O(MtL,bR);var v84=function(){m9.apply(this,arguments);this.map=lR.prototype.map;this.joinWith=lR.prototype.joinWith;this.extrapolateToNow=lR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=lR.prototype.extrapolateUsingTimestampMap};
_.O(v84,m9);var qm=function(K,d){this.lastMeasurement=d;this.extrapolateToNow=lR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=lR.prototype.extrapolateUsingTimestampMap;this.map=lR.prototype.map;this.joinWith=lR.prototype.joinWith;this.clock=K};
qm.prototype.equivalentTo=function(K){return K.active};
qm.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.x$.Object.defineProperties(qm.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var CWN=vF(function(K){if(K.value.viewportGeometrySourceName==="omid"){if(K.value.elementGeometrySourceName==="nio")return"omio";if(K.value.elementGeometrySourceName==="geo")return"omgeo"}return K.value.elementGeometrySourceName==="geo"||K.value.elementGeometrySourceName==="nio"?K.value.viewportGeometrySourceName:K.value.elementGeometrySourceName});var EhG=Za(Eo(function(K){return!isNaN(K)}),BF(function(K,d){return isNaN(K)?d:Math.min(K,d)},NaN),Tf());var l4O=Tj(Za(vF(function(K){return K.intersectionGeometry.width*K.intersectionGeometry.height/(K.exposedViewportLocalGeometry.width*K.exposedViewportLocalGeometry.height)}),vF(function(K){return isFinite(K)?Math.min(1,K):0})));var jLO=Za(Tj(vF(function(K){K=K.exposureOverride?K.elementGeometry.width*K.elementGeometry.height*K.exposureOverride/(K.topWindowViewportExternalGeometry.width*K.topWindowViewportExternalGeometry.height):K.intersectionGeometry.width*K.intersectionGeometry.height/(K.topWindowViewportExternalGeometry.width*K.topWindowViewportExternalGeometry.height);return isFinite(K)?K:0})));var B0O=function(K,d){var f=this;this.timeProvider=K;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=d.pipe(Tf()).subscribe(function(H){xh(f);f.measurementRequestObserver=H})},sLS=function(K,d){xh(K);
K.lastMeasurementRequest=K.timeProvider.setTimeout(function(){var f;return void((f=K.measurementRequestObserver)==null?void 0:f.next())},d)},xh=function(K){K.lastMeasurementRequest!==null&&K.timeProvider.clearTimeout(K.lastMeasurementRequest);
K.lastMeasurementRequest=null};
B0O.prototype.dispose=function(){xh(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var P9t=function(){};var RQp=function(K,d){this.context=K;this.strategies=d};
_.O(RQp,P9t);RQp.prototype.buildGeometrySource=function(K,d){var f=this.strategies.map(function(S){return S.buildGeometrySource(K,d)}),H=pRB(f.map(function(S){return S.geometrySource})),D=H.capturedErrors.pipe(g8t());
return{geometrySource:H.chain.pipe(D4(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:D,strategyErrors:H.capturedErrors}].concat(_.Me(f.map(function(S){return S.additionalOutputs}))))}};
var g8t=function(){return BF(function(K,d){d instanceof vR?K.push(d.measurementStrategyFailureReason):K.push(-1);return K},[])};var zQ5=function(K,d){this.context=K;this.poller=d};
_.O(zQ5,P9t);zQ5.prototype.buildGeometrySource=function(K,d){var f=K$O(fqY(this.context,this.poller),Umo(this.context,d.requestSource));return{geometrySource:eTX(K.measurableCreative.pipe(f),d.inApp),additionalOutputs:{}}};var F$o=function(K,d,f){f=f===void 0?M45(K,d):f;this.context=K;this.intersectionObserverStrategy=f};
_.O(F$o,P9t);F$o.prototype.buildGeometrySource=function(K,d){var f=this.intersectionObserverStrategy(d.useV2);return{geometrySource:eTX(K.measurableCreative.pipe(f,PWn(this.context)),d.inApp),additionalOutputs:{}}};var OJ8=function(K,d,f){var H=H===void 0?Symbol():H;this.element=K;this.immediateUrls=d;this.timeOnScreenUrls=f;this.symbol=H};var C0=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),yso=Object.freeze([1,.75,C0.exposureThreshold,C0.largeAdExposureThreshold,0]);var UAX=function(K,d){d=d===void 0?36E5:d;var f=f===void 0?!0:f;this.creatives=new f0;this.elementsToUnregister=new f0;this.elementMap=new Map;var H=new BR(window,null);H.beaconFactory=new d9(H,new o_(H));UoJ(H,this.creatives,this.elementsToUnregister,K,d,f).subscribe()},zOY=function(K,d,f,H){if(!K.elementMap.has(d)){var D=new m2(d);
K.elementMap.set(d,D);K.creatives.next(new OJ8(D,f,H))}},FGo=function(K,d){K.elementsToUnregister.next(d);
var f=K.elementMap.get(d);f!==void 0&&(f.release(),K.elementMap.delete(d))};var UnX=function(K){var d=K.url;K=K.uaDataValues;this.JSC$7485_url_=d;this.uaDataValues_=K;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var f=/[?&]([^&=]+)=([^&]*)/g;K=f.exec(d);)this.urlParamValues_[K[1]]=K[2]},R3S=function(K){K=K.uaDataValues_;
if(!K)return"";var d=s7("uap",K.platform)+s7("uapv",K.platformVersion)+s7("uafv",K.uaFullVersion)+s7("uaa",K.architecture)+s7("uam",K.model)+s7("uab",K.bitness);K.fullVersionList&&(d+="&uafvl="+encodeURIComponent(K.fullVersionList.map(function(f){return encodeURIComponent(f.brand)+";"+encodeURIComponent(f.version)}).join("|")));
K.wow64!=null&&(d+="&uaw="+Number(K.wow64));return d.slice(1)};var Wc=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Wc,_.Ti);Wc.prototype.getId=function(){return _.Xo(this,1)};
Wc.prototype.setId=function(K){return _.Qb(this,1,K)};var Gl=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Gl,_.Ti);Gl.prototype.getSeconds=function(){return Fo(this,1)};
Gl.prototype.setSeconds=function(K){return _.Ys(this,1,hP(K),"0")};_.o9=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(_.o9,_.Ti);_.o9.prototype.getSeconds=function(){return Fo(this,1)};
_.o9.prototype.setSeconds=function(K){return _.Ys(this,1,hP(K),"0")};
_.N2N=function(K){var d=Number(Mi(K,1));K=_.Km(K,2);return new Date(d*1E3+K/1E6)};var AB=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(AB,_.Ti);AB.prototype.getUrl=function(){return _.Xo(this,1)};
AB.prototype.setUrl=function(K){return _.Qb(this,1,K)};
AB.prototype.getHeight=function(){return _.Km(this,2)};
AB.prototype.getWidth=function(){return _.Km(this,3)};var Tl=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Tl,_.Ti);Tl.prototype.getAspectRatio=function(){return z9(this,1)};
Tl.prototype.setAspectRatio=function(K){return _.Ys(this,1,_.iU(K),0)};
Tl.prototype.getDuration=function(){return _.eQ(this,Gl,2)};var YsB=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(YsB,_.Ti);var tts=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(tts,_.Ti);var o89=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(o89,_.Ti);var $sf=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O($sf,_.Ti);var E8k=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(E8k,_.Ti);var hBN=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(hBN,_.Ti);var bJv=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(bJv,_.Ti);var ms4=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(ms4,_.Ti);var lLH=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(lLH,_.Ti);var r9=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(r9,_.Ti);var qO=[2,4,5,6,7];var WNt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(WNt,_.Ti);var u1=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(u1,_.Ti);_.V=u1.prototype;_.V.getId=function(){return _.eQ(this,Wc,1)};
_.V.setId=function(K){return _.fM(this,1,K)};
_.V.getName=function(){return _.Xo(this,2)};
_.V.setDescription=function(K){return _.Qb(this,3,K)};
_.V.getUrl=function(){return _.Xo(this,8)};
_.V.setUrl=function(K){return _.Qb(this,8,K)};
var Qi=function(K){return _.e4(K,AB,10,_.p0())};
u1.prototype.getOwner=function(K){var d=_.M8(this,40,_.ql,3,!0);jt(d,K);return d[K]};
u1.prototype.getVersion=function(){return Fo(this,45)};
var jO=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(jO,_.Ti);_.Gks=[0,NEz,tTY];_.A6v=[0,NEz,tTY];var T22=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(T22,_.Ti);var Cg=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Cg,_.Ti);Cg.prototype.getStatus=function(){return _.vY(this,1)};
Cg.prototype.removeItem=function(K){return jVn(this,2,K)};var r6s=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(r6s,_.Ti);r6s.prototype.getName=function(){return _.Xo(this,8)};var xW=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(xW,_.Ti);xW.prototype.getCommand=function(){return _.vY(this,1)};
xW.prototype.getSource=function(){return _.eQ(this,r6s,2)};
xW.prototype.setVisible=function(K){return _.gL(this,5,K)};
xW.prototype.removeItem=function(K){return jVn(this,7,K)};var qst=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(qst,_.Ti);qst.prototype.getCommand=function(){return _.vY(this,1)};
qst.prototype.removeItem=function(K){return jVn(this,4,K)};
var QfL=_.KM(qst);var Lg=function(K,d,f){f=f===void 0?Error():f;var H=Error.call(this);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=K;d+=":";f instanceof Error?(this.message=d+f.message,this.stack=f.stack||""):(this.message=d+String(f),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(Lg,Error);_.gG=function(){this.JSC$7543_disposed_=this.JSC$7543_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.gG.prototype.JSC$7543_disposed_=!1;_.gG.prototype.isDisposed=function(){return this.JSC$7543_disposed_};
_.gG.prototype.dispose=function(){this.JSC$7543_disposed_||(this.JSC$7543_disposed_=!0,this.disposeInternal())};
_.gG.prototype[Symbol.dispose]=function(){this.dispose()};
_.cy=function(K,d){K.addOnDisposeCallback(_.uB(_.kh,d))};
_.gG.prototype.addOnDisposeCallback=function(K,d){this.JSC$7543_disposed_?d!==void 0?K.call(d):K():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),d&&(K=K.bind(d)),this.onDisposeCallbacks_.push(K))};
_.gG.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Bc=function(K){_.gG.call(this);this.wpc=K};
_.O(Bc,_.gG);Bc.prototype.pR6=function(){return this.wpc.f()};
Bc.prototype.eRG=function(K){return this.wpc.c(K)};
Bc.prototype.nR=function(K){return this.wpc.m(hQo(K))};
Bc.prototype.l9=function(K){return this.wpc.mws(hQo(K))};
var Z4=function(K){_.gG.call(this);var d=this;this.bV=K;this.r6a="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.xy0=void 0;this.gQO=this.bV.p;this.fEH=this.h5Z.bind(this);this.addOnDisposeCallback(function(){return void jfs(d)})};
_.O(Z4,_.gG);var C99=function(K){var d;return _.c(function(f){if(f.nextAddress==1){if(!K.bV.wpc)throw new Lg(30,"NWA");return K.wSM?f.return(K.wSM):_.I(f,K.bV.wpc(),2)}d=f.yieldResult;K.wSM=new Bc(d);return f.return(K.wSM)})};
Z4.prototype.snapshot=function(K){return this.bV.s(Object.assign({},K.uv&&{c:K.uv},K.xpO&&{s:K.xpO},K.lx0!==void 0&&{p:K.lx0}))};
Z4.prototype.h5Z=function(K){this.bV.e(K)};
Z4.prototype.p0V=function(K,d){return this.bV.c(K,d,!1)};
var jfs=function(K){K.xy0!==void 0&&(K.r6a.forEach(function(d){var f;(f=K.xy0)==null||f.removeEventListener(d,K.fEH)}),K.xy0=void 0)};
Z4.prototype.oun=function(){return this.bV.l()};var xsH,JB=function(){_.gG.apply(this,arguments);this.wtZ=1;this[xsH]=this.dispose};
_.O(JB,_.gG);JB.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.wtZ++;return this};
JB.prototype.dispose=function(){--this.wtZ||_.gG.prototype.dispose.call(this)};
xsH=Symbol.dispose;var ZmX=function(K){this.mfH=K;K.addNewEventMetric("/client_streamz/bg/frs",_.Hy("mk"))};
ZmX.prototype.record=function(K,d){this.mfH.record("/client_streamz/bg/frs",K,d)};
var dqB=function(K){this.oLO=K;K.addNewEventMetric("/client_streamz/bg/wrl",_.Hy("mn"),fm("ac"),fm("sc"),_.Hy("rk"),_.Hy("mk"))};
dqB.prototype.record=function(K,d,f,H,D,S){this.oLO.record("/client_streamz/bg/wrl",K,d,f,H,D,S)};
var pyB=function(K){this.xfH=K;K.addNewCounter("/client_streamz/bg/ec",_.Hy("en"),_.Hy("mk"))};
pyB.prototype.increment=function(K,d){this.xfH.JSC$7796_incrementCounter("/client_streamz/bg/ec",K,d)};
var KUX=function(K){this.e5O=K;K.addNewEventMetric("/client_streamz/bg/el",_.Hy("en"),_.Hy("mk"))};
KUX.prototype.record=function(K,d,f){this.e5O.record("/client_streamz/bg/el",K,d,f)};
var eQO=function(K){this.p3F=K;K.addNewCounter("/client_streamz/bg/cec",fm("ec"),_.Hy("mk"))};
eQO.prototype.increment=function(K,d){this.p3F.JSC$7796_incrementCounter("/client_streamz/bg/cec",K,d)};
var fKJ=function(K){this.gBK=K;K.addNewCounter("/client_streamz/bg/po/csc",fm("cs"),_.Hy("mk"))};
fKJ.prototype.increment=function(K,d){this.gBK.JSC$7796_incrementCounter("/client_streamz/bg/po/csc",K,d)};
var Hnz=function(K){this.kW6=K;K.addNewCounter("/client_streamz/bg/po/ctav",_.Hy("av"),_.Hy("mk"))};
Hnz.prototype.increment=function(K,d){this.kW6.JSC$7796_incrementCounter("/client_streamz/bg/po/ctav",K,d)};
var DqX=function(K){this.fxm=K;K.addNewCounter("/client_streamz/bg/po/cwsc",_.Hy("su"),_.Hy("mk"))};
DqX.prototype.increment=function(K,d){this.fxm.JSC$7796_incrementCounter("/client_streamz/bg/po/cwsc",K,d)};var EFS=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(EFS,_.Ti);var $qp=function(K,d){return _.N8(K,3,d,ZBO)};var LNf=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(LNf,_.Ti);var B2v=[1,2,3];var J62=[0,B2v,_.bRY,ovB,hjB];var sf8=[0,_.AI,[0,Pt5,_.b1]];var kks=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(kks,_.Ti);var w42=[1,2,3];var ZJs=[0,w42,YwJ,gvY,_.T9,sf8];var eBJ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(eBJ,_.Ti);var p46=[0,_.AI,J62,ZJs];var Kt9=[0,_.G9];var dl4=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(dl4,_.Ti);var f79=[0,_.G9,-1,_.l1];var HEv=[0,_.G9,-1,_.mQ,_.l1];var Dlt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Dlt,_.Ti);var VSH=[1,2,3];var SZs=[0,VSH,_.T9,f79,_.T9,HEv,_.T9,Kt9];var yPv=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(yPv,_.Ti);yPv.prototype.JSC$7616_serializeBinary=d8N([0,_.G9,SZs,myG,_.AI,p46,$y5,EvX]);var nw2=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(nw2,_.Ti);var uiv=function(K){var d=new yPv;d=_.aL(d,1,K.JSC$7732_metricName);var f=iEf(K);d=_.N8(d,3,f,_.Gy);f=[];for(var H=[],D=_.y(K.cellMap.keys()),S=D.next();!S.done;S=D.next())H.push(S.value.split(","));for(D=0;D<H.length;D++){S=H[D];for(var n=K.cellType,u=K.getCells(S)||[],a=[],R=0;R<u.length;R++){var F=u[R],z=F&&F.cellValue;F=new kks;switch(n){case 3:z=Number(z);Number.isFinite(z)&&ca(F,1,w42,hP(z));break;case 2:ca(F,2,w42,_.iU(Number(z)))}a.push(F)}n=a;for(u=0;u<n.length;u++){a=n[u];R=new eBJ;a=_.fM(R,
2,a);R=[];F=cPk(K);for(z=0;z<F.length;z++){var v=F[z],g=S[z],N=new LNf;switch(v){case 3:ca(N,1,B2v,Ty(String(g)));break;case 2:v=Number(g);Number.isFinite(v)&&ca(N,2,B2v,_.OZ(v));break;case 1:ca(N,3,B2v,sXY(g==="true"))}R.push(N)}cY(a,1,R);f.push(a)}}cY(d,4,f);return d};var a7J=function(K){if(!K)return"";if(/^about:(?:blank|srcdoc)$/.test(K))return window.origin||"";K.indexOf("blob:")===0&&(K=K.substring(5));K=K.split("#")[0].split("?")[0];K=K.toLowerCase();K.indexOf("//")==0&&(K=window.location.protocol+K);/^[\w\-]*:\/\//.test(K)||(K=window.location.href);var d=K.substring(K.indexOf("://")+3),f=d.indexOf("/");f!=-1&&(d=d.substring(0,f));f=K.substring(0,K.indexOf("://"));if(!f)throw Error("ua`"+K);if(f!=="http"&&f!=="https"&&f!=="chrome-extension"&&f!=="moz-extension"&&
f!=="file"&&f!=="android-app"&&f!=="chrome-search"&&f!=="chrome-untrusted"&&f!=="chrome"&&f!=="app"&&f!=="devtools")throw Error("va`"+f);K="";var H=d.indexOf(":");if(H!=-1){var D=d.substring(H+1);d=d.substring(0,H);if(f==="http"&&D!=="80"||f==="https"&&D!=="443")K=":"+D}return f+"://"+d+K};var Ulf=function(K,d,f){var H=String(_.Hu.location.href);return H&&K&&d?[d,I78(a7J(H),K,f||null)].join(" "):null},I78=function(K,d,f){var H=[],D=[];
if((Array.isArray(f)?2:1)==1)return D=[d,K],_.QB(H,function(u){D.push(u)}),R5v(D.join(" "));
var S=[],n=[];_.QB(f,function(u){n.push(u.key);S.push(u.value)});
f=Math.floor((new Date).getTime()/1E3);D=S.length==0?[f,d,K]:[S.join(":"),f,d,K];_.QB(H,function(u){D.push(u)});
K=R5v(D.join(" "));K=[f,K];n.length==0||K.push(n.join(""));return K.join("_")},R5v=function(K){var d=rsY();
d.update(K);return d.digestString().toLowerCase()};var sG=function(K){this.JSC$7627_document_=K||{cookie:""}},FtH;
_.V=sG.prototype;_.V.isEnabled=function(){if(!_.Hu.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};
_.V.set=function(K,d,f){var H=!1;if(typeof f==="object"){var D=f.sameSite;H=f.secure||!1;var S=f.domain||void 0;var n=f.path||void 0;var u=f.maxAge}if(/[;=\s]/.test(K))throw Error("wa`"+K);if(/[;\r\n]/.test(d))throw Error("xa`"+d);u===void 0&&(u=-1);f=S?";domain="+S:"";n=n?";path="+n:"";H=H?";secure":"";u=u<0?"":u==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+u*1E3)).toUTCString();this.JSC$7627_document_.cookie=K+"="+d+f+n+u+H+(D!=null?";samesite="+D:"")};
_.V.get=function(K,d){for(var f=K+"=",H=(this.JSC$7627_document_.cookie||"").split(";"),D=0,S;D<H.length;D++){S=UY(H[D]);if(S.lastIndexOf(f,0)==0)return S.slice(f.length);if(S==K)return""}return d};
_.V.remove=function(K,d,f){var H=this.containsKey(K);this.set(K,"",{maxAge:0,path:d,domain:f});return H};
_.V.getKeys=function(){return FtH(this).keys};
_.V.getValues=function(){return FtH(this).values};
_.V.isEmpty=function(){return!this.JSC$7627_document_.cookie};
_.V.getCount=function(){return this.JSC$7627_document_.cookie?(this.JSC$7627_document_.cookie||"").split(";").length:0};
_.V.containsKey=function(K){return this.get(K)!==void 0};
_.V.containsValue=function(K){for(var d=FtH(this).values,f=0;f<d.length;f++)if(d[f]==K)return!0;return!1};
_.V.clear=function(){for(var K=FtH(this).keys,d=K.length-1;d>=0;d--)this.remove(K[d])};
FtH=function(K){K=(K.JSC$7627_document_.cookie||"").split(";");for(var d=[],f=[],H,D,S=0;S<K.length;S++)D=UY(K[S]),H=D.indexOf("="),H==-1?(d.push(""),f.push(D)):(d.push(D.substring(0,H)),f.push(D.substring(H+1)));return{keys:d,values:f}};
_.I0=new sG(typeof document=="undefined"?null:document);var ZxO=function(){var K=_.Hu.__SAPISID||_.Hu.__APISID||_.Hu.__3PSAPISID||_.Hu.__1PSAPISID||_.Hu.__OVERRIDE_SID;if(K)return!0;typeof document!=="undefined"&&(K=new sG(document),K=K.get("SAPISID")||K.get("APISID")||K.get("__Secure-3PAPISID")||K.get("__Secure-1PAPISID"));return!!K},z58=function(K,d,f,H){(K=_.Hu[K])||typeof document==="undefined"||(K=(new sG(document)).get(d));
return K?Ulf(K,f,H):null},xQY=function(K){var d=a7J(_.Hu==null?void 0:_.Hu.location.href),f=[];
if(ZxO()){d=d.indexOf("https:")==0||d.indexOf("chrome-extension:")==0||d.indexOf("chrome-untrusted://new-tab-page")==0||d.indexOf("moz-extension:")==0;var H=d?_.Hu.__SAPISID:_.Hu.__APISID;H||typeof document==="undefined"||(H=new sG(document),H=H.get(d?"SAPISID":"APISID")||H.get("__Secure-3PAPISID"));(H=H?Ulf(H,d?"SAPISIDHASH":"APISIDHASH",K):null)&&f.push(H);d&&((d=z58("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",K))&&f.push(d),(K=z58("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",K))&&f.push(K))}return f.length==
0?null:f.join(" ")};var XK8=function(){this.minSize=1024};
XK8.prototype.compress=function(K){var d,f,H,D;return _.c(function(S){switch(S.nextAddress){case 1:return d=new CompressionStream("gzip"),f=(new Response(d.readable)).arrayBuffer(),H=d.writable.getWriter(),_.I(S,H.write((new TextEncoder).encode(K)),2);case 2:return _.I(S,H.close(),3);case 3:return D=Uint8Array,_.I(S,f,4);case 4:return S.return(new D(S.yieldResult))}})};
XK8.prototype.isSupported=function(K){return K<this.minSize?!1:typeof CompressionStream!=="undefined"};var vwB=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(vwB,_.Ti);var kW=function(K,d){this.intervalMs=K;this.callback=d;this.enabled=!1;this.nowFn=function(){return _.Ls()};
this.lastTimeMs=this.nowFn()};
kW.prototype.setInterval=function(K){this.intervalMs=K;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
kW.prototype.start=function(){var K=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){K.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
kW.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
kW.prototype.tick=function(){var K=this;if(this.enabled){var d=Math.max(this.nowFn()-this.lastTimeMs,0);d<this.intervalMs*.8?this.timer=setTimeout(function(){K.tick()},this.intervalMs-d):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var MSB=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(MSB,_.Ti);var PU6=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(PU6,_.Ti);var gwt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(gwt,_.Ti);gwt.prototype.getTransmissionType=function(){return _.vY(this,1)};var Cln=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Cln,_.Ti);Cln.prototype.getVersion=function(){return _.Xo(this,2)};var w9=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(w9,_.Ti);var jQS=function(K){cY(VX,1,K)};
w9.prototype.getModel=function(){return _.Xo(this,6)};
var OE2=_.KM(w9);var Nwv=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Nwv,_.Ti);var qmO=["platform","platformVersion","architecture","model","uaFullVersion"],VX=new w9,QQN=null;var YZL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(YZL,_.Ti);var tS8=function(K){return _.py(K,1,1)};var owv=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K,4)};
_.O(owv,_.Ti);_.Zh=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K,36)};
_.O(_.Zh,_.Ti);_.Zh.prototype.getExperimentIds=function(){return _.eQ(this,vwB,16)};var $lv=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K,19)};
_.O($lv,_.Ti);$lv.prototype.setLogSource=function(K){return _.py(this,2,K)};
$lv.prototype.setScheduler=function(K){return _.py(this,10,K)};var h5v=function(K,d){this.isServiceWorkerScope=d=d===void 0?!1:d;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new $lv;Number.isInteger(K)&&this.logRequest.setLogSource(K);d||(this.locale=document.documentElement.getAttribute("lang"));Ewk(this,new YZL)};
h5v.prototype.setLogSource=function(K){this.logRequest.setLogSource(K);return this};
var Ewk=function(K,d){_.fM(K.logRequest,1,d);_.vY(d,1)||tS8(d);K.isServiceWorkerScope||(d=eO(K),_.Xo(d,5)||_.aL(d,5,K.locale));K.uach&&(d=eO(K),_.eQ(d,w9,9)||_.fM(d,9,K.uach))},bEL=function(K,d){K.transmissionType=d},mls=function(K){var d=d===void 0?qmO:d;
var f=K.isServiceWorkerScope?void 0:tA();f?xo5(f,d).then(function(H){K.uach=OE2(H!=null?H:"[]");H=eO(K);_.fM(H,9,K.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},eO=function(K){K=_.eQ(K.logRequest,YZL,1);
var d=_.eQ(K,Nwv,11);d||(d=new Nwv,_.fM(K,11,d));return d};
h5v.prototype.build=function(K,d,f,H,D,S){d=d===void 0?0:d;f=f===void 0?0:f;H=H===void 0?null:H;D=D===void 0?0:D;S=S===void 0?0:S;if(!this.isServiceWorkerScope){var n=eO(this);var u=new gwt;u=_.py(u,1,this.transmissionType);u=_.Dq(u,2,this.isFinal);f=_.Ni(u,3,f>0?f:void 0);f=_.Ni(f,4,D>0?D:void 0);f=_.Ni(f,5,S>0?S:void 0);D=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;S=D[_.of]|0;f=W4(f,S)?f:yx(f,D,S)?Sw(f,D):new f.constructor(Vx(D,S,!0));_.fM(n,10,f)}n=this.logRequest.clone();f=Date.now().toString();
n=_.KA(n,4,hP(f));K=K.slice();K=cY(n,3,K);H&&(n=new MSB,H=_.Ni(n,13,H),n=new PU6,H=_.fM(n,2,H),n=new owv,H=_.fM(n,1,H),H=_.py(H,2,9),_.fM(K,18,H));d&&_.zE(K,14,d);return K};Sh.prototype.currBackoffCount_=0;Sh.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Sh.prototype.getValue=function(){return this.currValue_};
var l72=function(K){K.currBaseValue_=Math.min(K.maxValue_,K.currBaseValue_*K.backoffFactor_);K.currValue_=Math.min(K.maxValue_,K.currBaseValue_+(K.randomFactor_?Math.round(K.randomFactor_*(Math.random()-.5)*2*K.currBaseValue_):0));K.currBackoffCount_++};var TEz=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K,8)};
_.O(TEz,_.Ti);var Wt2=_.KM(TEz);var rkO=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(rkO,_.Ti);var pg;pg=new qwB;var Kx=function(K){_.gG.call(this);var d=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7705_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$7705_sendBeaconApiEnabled=!1;this.logSource=K.logSource;this.getAuthHeaderValue=
K.getAuthHeaderValue||function(){};
this.logRequestBuilder=new h5v(K.logSource,K.isServiceWorkerScope);this.network=K.network||null;this.productID=K.productID||null;this.clearcutUrl=K.urlOverride||null;this.sessionIndex=K.sessionIndex||null;this.disableAutomaticFlush=K.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!K.disableWithCredentials;this.isServiceWorkerScope=K.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!tA()&&!!tA().navigator&&tA().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(GyJ())).searchParams&&!!(new URL(GyJ())).searchParams.set;var f=tS8(new YZL);Ewk(this.logRequestBuilder,f);this.flushBackoff=new Sh(1E4,3E5,.1);K=AP8(this,K.backgroundJobDeferrer);this.JSC$7705_flushTimer=new kW(this.flushBackoff.getValue(),K);this.backupTimer=new kW(6E5,K);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Tws(d);
var H;(H=d.metalogService)==null||H.flush()}}),document.addEventListener("pagehide",function(){Tws(d);
var H;(H=d.metalogService)==null||H.flush()}))};
_.O(Kx,_.gG);var AP8=function(K,d){return K.isBrowserSupported?d?function(){d().then(function(){K.flush()})}:function(){K.flush()}:function(){}};
Kx.prototype.disposeInternal=function(){Tws(this);this.JSC$7705_flushTimer.stop();this.backupTimer.stop();_.gG.prototype.disposeInternal.call(this)};
var rPH=function(K){K.clearcutUrl||(K.clearcutUrl=GyJ());try{return(new URL(K.clearcutUrl)).toString()}catch(d){return(new URL(K.clearcutUrl,tA().location.origin)).toString()}};
Kx.prototype.dispatch=function(K){if(K instanceof _.Zh)this.log(K);else try{var d=new _.Zh,f=K.serialize();var H=_.aL(d,8,f);this.log(H)}catch(D){dv(this,4,1)}};
var dv=function(K,d,f){K.metalogService&&K.metalogService.increment(d,f)};
Kx.prototype.log=function(K){dv(this,2,1);if(this.isBrowserSupported){K=K.clone();var d=this.sequencePosition++;K=_.zE(K,21,d);this.componentId&&_.aL(K,26,this.componentId);d=K;if(ILJ(_.Db(d,1))==null){var f=Date.now();f=Number.isFinite(f)?f.toString():"0";_.KA(d,1,hP(f))}_.aL5(_.Db(d,15))!=null||_.zE(d,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(f=this.experimentIds.clone(),_.fM(d,16,f));dv(this,1,1);d=this.pendingEvents.length-1E3+1;d>0&&(this.pendingEvents.splice(0,d),this.numLogsDroppedSinceLastFlush+=
d,dv(this,3,d));this.pendingEvents.push(K);this.disableAutomaticFlush||this.JSC$7705_flushTimer.enabled||this.JSC$7705_flushTimer.start()}};
Kx.prototype.flush=function(K,d){var f=this;if(this.pendingEvents.length===0)K&&K();else if(this.JSC$7705_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,qZJ(this);else{var H=Date.now();if(this.noFlushUntilMs>H&&this.startWaitingMs<H)d&&d("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?bEL(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var D=this.pendingEvents.length,
S=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),n=this.getAuthHeaderValue();if(n&&this.lastFailedAuth===n)d&&d("stale-auth-token");else{this.pendingEvents=[];this.JSC$7705_flushTimer.enabled&&this.JSC$7705_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;H=S.serialize();var u;this.JSC$7705_compressor&&this.JSC$7705_compressor.isSupported(H.length)&&
(u=this.JSC$7705_compressor.compress(H));var a=QzL(this,H,n),R=function(v){f.flushBackoff.reset();f.JSC$7705_flushTimer.setInterval(f.flushBackoff.getValue());if(v){var g=null;try{var N=JSON.stringify(JSON.parse(v.replace(")]}'\n","")));g=Wt2(N)}catch(h){}g&&(v=Number(Fo(g,1,_.k8("-1"))),v>0&&(f.startWaitingMs=Date.now(),f.noFlushUntilMs=f.startWaitingMs+v),bJO(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,pg.fieldIndex),E8S(g,pg.fieldIndex),g=pg.ctor?pg.getExtensionFn(g,pg.ctor,pg.fieldIndex,
pg.JSC$6885_hasMessageId):pg.getExtensionFn(g,pg.fieldIndex,null,pg.JSC$6885_hasMessageId),g=g===null?void 0:g)&&(g=_.Km(g,1,-1),g!==-1&&(f.flushBackoff=new Sh(g<1?1:g,3E5,.1),f.JSC$7705_flushTimer.setInterval(f.flushBackoff.getValue())))}K&&K();f.numRetriesSinceLastSuccessfulFlush=0},F=function(v,g){var N=_.e4(S,_.Zh,3,_.p0());
var h=Number(Fo(S,14));l72(f.flushBackoff);f.JSC$7705_flushTimer.setInterval(f.flushBackoff.getValue());v===401&&n&&(f.lastFailedAuth=n);h&&(f.numLogsDroppedSinceLastFlush+=h);g===void 0&&(g=f.isRetryable(v));g&&(f.pendingEvents=N.concat(f.pendingEvents),f.disableAutomaticFlush||f.JSC$7705_flushTimer.enabled||f.JSC$7705_flushTimer.start());dv(f,7,1);d&&d("net-send-failed",v);++f.numRetriesSinceLastSuccessfulFlush},z=function(){f.network&&f.network.send(a,R,F)};
u?u.then(function(v){dv(f,5,D);a.requestHeaders["Content-Encoding"]="gzip";a.requestHeaders["Content-Type"]="application/binary";a.body=v;a.bodyType=2;z()},function(){dv(f,6,D);
z()}):z()}}}};
var QzL=function(K,d,f){f=f===void 0?null:f;var H=H===void 0?K.withCredentials:H;var D={},S=new URL(rPH(K));f&&(D.Authorization=f);K.sessionIndex&&(D["X-Goog-AuthUser"]=K.sessionIndex,S.searchParams.set("authuser",K.sessionIndex));K.pageId&&(Object.defineProperty(D,"X-Goog-PageId",{value:K.pageId}),S.searchParams.set("pageId",K.pageId));return{url:S.toString(),body:d,bodyType:1,requestHeaders:D,requestType:"POST",withCredentials:H,timeoutMillis:K.timeoutMillis}},Tws=function(K){K.logRequestBuilder.isFinal=
!0;
K.flush();K.logRequestBuilder.isFinal=!1},qZJ=function(K){jz4(K,function(d,f){d=new URL(d);
d.searchParams.set("format","json");var H=!1;try{H=tA().navigator.sendBeacon(d.toString(),f.serialize())}catch(D){}H||(K.isSendBeaconSupported=!1);return H})},jz4=function(K,d){if(K.pendingEvents.length!==0){var f=new URL(rPH(K));
f.searchParams.delete("format");var H=K.getAuthHeaderValue();H&&f.searchParams.set("auth",H);f.searchParams.set("authuser",K.sessionIndex||"0");for(H=0;H<10&&K.pendingEvents.length;++H){var D=K.pendingEvents.slice(0,32),S=K.logRequestBuilder.build(D,K.numLogsDroppedSinceLastFlush,K.numRetriesSinceLastSuccessfulFlush,K.productID,K.persistedLogRecoveredCount,K.persistedLogExpiredCount);if(!d(f.toString(),S)){++K.numRetriesSinceLastSuccessfulFlush;break}K.numLogsDroppedSinceLastFlush=0;K.numRetriesSinceLastSuccessfulFlush=
0;K.persistedLogRecoveredCount=0;K.persistedLogExpiredCount=0;K.pendingEvents=K.pendingEvents.slice(D.length)}K.JSC$7705_flushTimer.enabled&&K.JSC$7705_flushTimer.stop()}};
Kx.prototype.isRetryable=function(K){return 500<=K&&K<600||K===401||K===0};
var GyJ=function(){return"https://play.google.com/log?format=json&hasfast=true"};var CU8=function(){this.abortSupported=typeof AbortController!=="undefined"};
CU8.prototype.send=function(K,d,f){var H=this,D,S,n,u,a,R,F,z,v,g;return _.c(function(N){switch(N.nextAddress){case 1:return S=(D=H.abortSupported?new AbortController:void 0)?setTimeout(function(){D.abort()},K.timeoutMillis):void 0,_.HF(N,2,3),n=Object.assign({},{method:K.requestType,
headers:Object.assign({},K.requestHeaders)},K.body&&{body:K.body},K.withCredentials&&{credentials:"include"},{signal:K.timeoutMillis&&D?D.signal:null}),_.I(N,fetch(K.url,n),5);case 5:u=N.yieldResult;if(u.status!==200){(a=f)==null||a(u.status);N.jumpTo(3);break}if((R=d)==null){N.jumpTo(7);break}return _.I(N,u.text(),8);case 8:R(N.yieldResult);case 7:case 3:_.Vu(N);clearTimeout(S);_.yu(N,0);break;case 2:F=_.n7(N);switch((z=F)==null?void 0:z.name){case "AbortError":(v=f)==null||v(408);break;default:(g=
f)==null||g(400)}N.jumpTo(3)}})};
CU8.prototype.getTransmissionType=function(){return 4};_.il=function(K,d){d=d===void 0?"0":d;_.gG.call(this);this.logSource=K;this.sessionIndex=d;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7723_clearExperimentIds=this.productID=null;this.JSC$7723_sendBeaconApiEnabled=!1;this.pageId=null};
_.O(_.il,_.gG);var nF5=function(K,d){K.buildLabel=d;return K},ycz=function(K,d){K.network=d;
return K},ccu=function(K,d){K.JSC$7723_clearExperimentIds=d},SnO=function(K){K.JSC$7723_sendBeaconApiEnabled=!0;
return K};
_.il.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.il.prototype.build=function(){this.network||(this.network=new CU8);var K=new Kx({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:xQY,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.cy(this,K);if(this.buildLabel){var d=this.buildLabel,f=eO(K.logRequestBuilder);
_.aL(f,7,d)}K.JSC$7705_compressor=new XK8;this.componentId&&(K.componentId=this.componentId);this.productID&&(K.productID=this.productID);this.pageId&&(K.pageId=this.pageId);this.JSC$7723_clearExperimentIds&&((f=this.JSC$7723_clearExperimentIds)?(K.experimentIds||(K.experimentIds=new vwB),d=K.experimentIds,f=f.serialize(),_.aL(d,4,f)):K.experimentIds&&_.KA(K.experimentIds,4));this.JSC$7723_sendBeaconApiEnabled&&(K.JSC$7705_sendBeaconApiEnabled=K.isSendBeaconSupported);mls(K.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(K);return K};var h7z=function(K,d,f,H,D,S,n){K=K===void 0?-1:K;d=d===void 0?"":d;f=f===void 0?"":f;H=H===void 0?!1:H;D=D===void 0?"":D;_.gG.call(this);this.logSource=K;this.componentId=d;S?d=S:(K=new _.il(K,"0"),K.componentId=d,_.cy(this,K),f!==""&&(K.destinationUrl=f),H&&(K.serviceWorkerScopeEnabled=!0),D&&nF5(K,D),n&&ycz(K,n),d=K.build());this.JSC$7727_transport=d};
_.O(h7z,_.gG);h7z.prototype.flush=function(K){K=K||[];if(K.length){for(var d=new nw2,f=[],H=0;H<K.length;H++){var D=K[H],S=uiv(D);f.push(S);D.clear()}cY(d,1,f);this.JSC$7727_transport.dispatch(d);this.JSC$7727_transport.flush()}};var xlB=function(K){this.cellValue=K};var fx=function(K,d,f){this.JSC$7732_metricName=K;this.cellType=d;this.fields=f||[];this.cellMap=new Map},cPk=function(K){return K.fields.map(function(d){return d.fieldType})},iEf=function(K){return K.fields.map(function(d){return d.fieldName})};
_.V=fx.prototype;_.V.addCell=function(K){var d=_.Pg.apply(1,arguments),f=this.getCells(d);f?f.push(new xlB(K)):this.JSC$7732_setCell(K,d)};
_.V.JSC$7732_setCell=function(K){var d=this.JSC$7732_getKey(_.Pg.apply(1,arguments));this.cellMap.set(d,[new xlB(K)])};
_.V.getCells=function(){var K=this.JSC$7732_getKey(_.Pg.apply(0,arguments));return this.cellMap.has(K)?this.cellMap.get(K):void 0};
_.V.getCell=function(){var K=this.getCells(_.Pg.apply(0,arguments));return K&&K.length?K[0]:void 0};
_.V.clear=function(){this.cellMap.clear()};
_.V.JSC$7732_getKey=function(){var K=_.Pg.apply(0,arguments);return K?K.join(","):"key"};var Lts=function(K,d){fx.call(this,K,3,d)};
_.O(Lts,fx);Lts.prototype.JSC$7735_incrementCounterBy=function(K){var d=_.Pg.apply(1,arguments),f=0,H=this.getCell(d);H&&(f=H.cellValue);this.JSC$7732_setCell(f+K,d)};var Bwf=function(K,d){fx.call(this,K,2,d)};
_.O(Bwf,fx);Bwf.prototype.record=function(K){this.addCell(K,_.Pg.apply(1,arguments))};_.Hk=function(K){this.id=K};
_.Hk.prototype.toString=function(){return this.id};_.D5=function(K,d){this.type=K instanceof _.Hk?String(K):K;this.currentTarget=this.target=d;this.defaultPrevented=this.propagationStopped_=!1};
_.D5.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.D5.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Vh=function(K,d){_.D5.call(this,K?K.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;K&&this.init(K,d)};
_.Bd(_.Vh,_.D5);
_.Vh.prototype.init=function(K,d){var f=this.type=K.type,H=K.changedTouches&&K.changedTouches.length?K.changedTouches[0]:null;this.target=K.target||K.srcElement;this.currentTarget=d;d=K.relatedTarget;d||(f=="mouseover"?d=K.fromElement:f=="mouseout"&&(d=K.toElement));this.relatedTarget=d;H?(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.offsetX=_.Zf||K.offsetX!==void 0?K.offsetX:K.layerX,
this.offsetY=_.Zf||K.offsetY!==void 0?K.offsetY:K.layerY,this.clientX=K.clientX!==void 0?K.clientX:K.pageX,this.clientY=K.clientY!==void 0?K.clientY:K.pageY,this.screenX=K.screenX||0,this.screenY=K.screenY||0);this.button=K.button;this.keyCode=K.keyCode||0;this.key=K.key||"";this.charCode=K.charCode||(f=="keypress"?K.keyCode:0);this.ctrlKey=K.ctrlKey;this.altKey=K.altKey;this.shiftKey=K.shiftKey;this.metaKey=K.metaKey;this.pointerId=K.pointerId||0;this.pointerType=K.pointerType;this.state=K.state;
this.timeStamp=K.timeStamp;this.event_=K;K.defaultPrevented&&_.Vh.superClass_.preventDefault.call(this)};
_.Vh.prototype.stopPropagation=function(){_.Vh.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Vh.prototype.preventDefault=function(){_.Vh.superClass_.preventDefault.call(this);var K=this.event_;K.preventDefault?K.preventDefault():K.returnValue=!1};var JPB="closure_listenable_"+(Math.random()*1E6|0),SU=function(K){return!(!K||!K[JPB])};var szN=0;var kyt=function(K,d,f,H,D){this.listener=K;this.proxy=null;this.src=d;this.type=f;this.capture=!!H;this.handler=D;this.key=++szN;this.removed=this.callOnce=!1},wKv=function(K){K.removed=!0;
K.listener=null;K.proxy=null;K.src=null;K.handler=null};yX.prototype.add=function(K,d,f,H,D){var S=K.toString();K=this.listeners[S];K||(K=this.listeners[S]=[],this.typeCount_++);var n=ZEL(K,d,H,D);n>-1?(d=K[n],f||(d.callOnce=!1)):(d=new kyt(d,this.src,S,!!H,D),d.callOnce=f,K.push(d));return d};
yX.prototype.remove=function(K,d,f,H){K=K.toString();if(!(K in this.listeners))return!1;var D=this.listeners[K];d=ZEL(D,d,f,H);return d>-1?(wKv(D[d]),_.sY(D,d),D.length==0&&(delete this.listeners[K],this.typeCount_--),!0):!1};
var e5f=function(K,d){var f=d.type;if(!(f in K.listeners))return!1;var H=_.Zn(K.listeners[f],d);H&&(wKv(d),K.listeners[f].length==0&&(delete K.listeners[f],K.typeCount_--));return H};
yX.prototype.removeAll=function(K){K=K&&K.toString();var d=0,f;for(f in this.listeners)if(!K||f==K){for(var H=this.listeners[f],D=0;D<H.length;D++)++d,wKv(H[D]);delete this.listeners[f];this.typeCount_--}return d};
yX.prototype.getListener=function(K,d,f,H){K=this.listeners[K.toString()];var D=-1;K&&(D=ZEL(K,d,f,H));return D>-1?K[D]:null};
yX.prototype.hasListener=function(K,d){var f=K!==void 0,H=f?K.toString():"",D=d!==void 0;return _.PR.some(this.listeners,function(S){for(var n=0;n<S.length;++n)if(!(f&&S[n].type!=H||D&&S[n].capture!=d))return!0;return!1})};
var ZEL=function(K,d,f,H){for(var D=0;D<K.length;++D){var S=K[D];if(!S.removed&&S.listener==d&&S.capture==!!f&&S.handler==H)return D}return-1};var pK2,Kbs,d86,Hwk,D88,IG,UP,y48,VwB,Sjt,yh,nsk,fML;pK2="closure_lm_"+(Math.random()*1E6|0);Kbs={};d86=0;_.zG=function(K,d,f,H,D){if(H&&H.once)return IG(K,d,f,H,D);if(Array.isArray(d)){for(var S=0;S<d.length;S++)_.zG(K,d[S],f,H,D);return null}f=fML(f);return SU(K)?K.listen(d,f,_.H4(H)?!!H.capture:!!H,D):Hwk(K,d,f,!1,H,D)};
Hwk=function(K,d,f,H,D,S){if(!d)throw Error("za");var n=_.H4(D)?!!D.capture:!!D,u=yh(K);u||(K[pK2]=u=new yX(K));f=u.add(d,f,H,n,S);if(f.proxy)return f;H=D88();f.proxy=H;H.src=K;H.listener=f;if(K.addEventListener)_.UMY||(D=n),D===void 0&&(D=!1),K.addEventListener(d.toString(),H,D);else if(K.attachEvent)K.attachEvent(VwB(d.toString()),H);else if(K.addListener&&K.removeListener)K.addListener(H);else throw Error("Aa");d86++;return f};
D88=function(){var K=Sjt,d=function(f){return K.call(d.src,d.listener,f)};
return d};
IG=function(K,d,f,H,D){if(Array.isArray(d)){for(var S=0;S<d.length;S++)IG(K,d[S],f,H,D);return null}f=fML(f);return SU(K)?K.listenOnce(d,f,_.H4(H)?!!H.capture:!!H,D):Hwk(K,d,f,!0,H,D)};
_.nx=function(K,d,f,H,D){if(Array.isArray(d))for(var S=0;S<d.length;S++)_.nx(K,d[S],f,H,D);else H=_.H4(H)?!!H.capture:!!H,f=fML(f),SU(K)?K.unlisten(d,f,H,D):K&&(K=yh(K))&&(d=K.getListener(d,f,H,D))&&UP(d)};
UP=function(K){if(typeof K==="number"||!K||K.removed)return!1;var d=K.src;if(SU(d))return e5f(d.eventTargetListeners_,K);var f=K.type,H=K.proxy;d.removeEventListener?d.removeEventListener(f,H,K.capture):d.detachEvent?d.detachEvent(VwB(f),H):d.addListener&&d.removeListener&&d.removeListener(H);d86--;(f=yh(d))?(e5f(f,K),f.typeCount_==0&&(f.src=null,d[pK2]=null)):wKv(K);return!0};
y48=function(K,d,f,H,D){f=fML(f);H=!!H;return SU(K)?K.getListener(d,f,H,D):K?(K=yh(K))?K.getListener(d,f,H,D):null:null};
VwB=function(K){return K in Kbs?Kbs[K]:Kbs[K]="on"+K};
Sjt=function(K,d){if(K.removed)K=!0;else{d=new _.Vh(d,this);var f=K.listener,H=K.handler||K.src;K.callOnce&&UP(K);K=f.call(H,d)}return K};
yh=function(K){K=K[pK2];return K instanceof yX?K:null};
nsk="__closure_events_fn_"+(Math.random()*1E9>>>0);fML=function(K){if(typeof K==="function")return K;K[nsk]||(K[nsk]=function(d){return K.handleEvent(d)});
return K[nsk]};_.iJ=function(){_.gG.call(this);this.eventTargetListeners_=new yX(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Bd(_.iJ,_.gG);_.iJ.prototype[JPB]=!0;_.V=_.iJ.prototype;_.V.setParentEventTarget=function(K){this.parentEventTarget_=K};
_.V.addEventListener=function(K,d,f,H){_.zG(this,K,d,f,H)};
_.V.removeEventListener=function(K,d,f,H){_.nx(this,K,d,f,H)};
_.V.dispatchEvent=function(K){var d,f=this.parentEventTarget_;if(f)for(d=[];f;f=f.parentEventTarget_)d.push(f);f=this.actualEventTarget_;var H=K.type||K;if(typeof K==="string")K=new _.D5(K,f);else if(K instanceof _.D5)K.target=K.target||f;else{var D=K;K=new _.D5(H,f);_.PR.extend(K,D)}D=!0;var S;if(d)for(S=d.length-1;!K.propagationStopped_&&S>=0;S--){var n=K.currentTarget=d[S];D=iwN(n,H,!0,K)&&D}K.propagationStopped_||(n=K.currentTarget=f,D=iwN(n,H,!0,K)&&D,K.propagationStopped_||(D=iwN(n,H,!1,K)&&
D));if(d)for(S=0;!K.propagationStopped_&&S<d.length;S++)n=K.currentTarget=d[S],D=iwN(n,H,!1,K)&&D;return D};
_.V.disposeInternal=function(){_.iJ.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.V.listen=function(K,d,f,H){return this.eventTargetListeners_.add(String(K),d,!1,f,H)};
_.V.listenOnce=function(K,d,f,H){return this.eventTargetListeners_.add(String(K),d,!0,f,H)};
_.V.unlisten=function(K,d,f,H){return this.eventTargetListeners_.remove(String(K),d,f,H)};
_.V.removeAllListeners=function(K){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(K):0};
var iwN=function(K,d,f,H){d=K.eventTargetListeners_.listeners[String(d)];if(!d)return!0;d=d.concat();for(var D=!0,S=0;S<d.length;++S){var n=d[S];if(n&&!n.removed&&n.capture==f){var u=n.listener,a=n.handler||n.src;n.callOnce&&e5f(K.eventTargetListeners_,n);D=u.call(a,H)!==!1&&D}}return D&&!H.defaultPrevented};
_.iJ.prototype.getListener=function(K,d,f,H){return this.eventTargetListeners_.getListener(String(K),d,f,H)};
_.iJ.prototype.hasListener=function(K,d){return this.eventTargetListeners_.hasListener(K!==void 0?String(K):void 0,d)};var ck=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(K){return K&&AsyncContext.Snapshot.wrap(K)}:function(K){return K};var c4t=function(K,d){this.create_=K;this.reset_=d;this.occupants_=0;this.JSC$7767_head_=null};
c4t.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var K=this.JSC$7767_head_;this.JSC$7767_head_=K.next;K.next=null}else K=this.create_();return K};
c4t.prototype.put=function(K){this.reset_(K);this.occupants_<100&&(this.occupants_++,K.next=this.JSC$7767_head_,this.JSC$7767_head_=K)};var uef=function(){this.workTail_=this.workHead_=null};
uef.prototype.add=function(K,d){var f=BGG.get();f.set(K,d);this.workTail_?this.workTail_.next=f:this.workHead_=f;this.workTail_=f};
uef.prototype.remove=function(){var K=null;this.workHead_&&(K=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),K.next=null);return K};
var BGG=new c4t(function(){return new aMt},function(K){return K.reset()}),aMt=function(){this.next=this.scope=this.fn=null};
aMt.prototype.set=function(K,d){this.fn=K;this.scope=d;this.next=null};
aMt.prototype.reset=function(){this.next=this.scope=this.fn=null};var IM8,JsO,L$z,U84;JsO=!1;L$z=new uef;_.uJ=function(K,d){IM8||U84();JsO||(IM8(),JsO=!0);L$z.add(K,d)};
U84=function(){var K=Promise.resolve(void 0);IM8=function(){K.then(sQG)}};var Rq8=function(K){K.prototype.$goog_Thenable=!0},Fbk=function(K){if(!K)return!1;
try{return!!K.$goog_Thenable}catch(d){return!1}};var zqs,XxJ,vsv,PNt,gsN,Ow2,os6,hqH,WbB,m8J,u65;_.ip=function(K,d){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(K!=_.SO)try{var f=this;K.call(d,function(H){f.resolve_(2,H)},function(H){f.resolve_(3,H)})}catch(H){this.resolve_(3,H)}};
zqs=function(){this.next=this.context=this.JSC$7778_onRejected=this.JSC$7778_onFulfilled=this.child=null;this.always=!1};
zqs.prototype.reset=function(){this.context=this.JSC$7778_onRejected=this.JSC$7778_onFulfilled=this.child=null;this.always=!1};
XxJ=new c4t(function(){return new zqs},function(K){K.reset()});
vsv=function(K,d,f){var H=XxJ.get();H.JSC$7778_onFulfilled=K;H.JSC$7778_onRejected=d;H.context=f;return H};
_.HG=function(K){if(K instanceof _.ip)return K;var d=new _.ip(_.SO);d.resolve_(2,K);return d};
_.vv=function(K){return new _.ip(function(d,f){f(K)})};
PNt=function(K,d,f){MwH(K,d,f,null)||_.uJ(_.uB(d,K))};
_.at=function(K){return new _.ip(function(d,f){var H=K.length,D=[];if(H)for(var S=function(R,F){H--;D[R]=F;H==0&&d(D)},n=function(R){f(R)},u,a=0;a<K.length;a++)u=K[a],PNt(u,_.uB(S,a),n);
else d(D)})};
gsN=function(K){return new _.ip(function(d){var f=K.length,H=[];if(f)for(var D=function(u,a,R){f--;H[u]=a?{fulfilled:!0,value:R}:{fulfilled:!1,reason:R};f==0&&d(H)},S,n=0;n<K.length;n++)S=K[n],PNt(S,_.uB(D,n,!0),_.uB(D,n,!1));
else d(H)})};
Ow2=function(K){return new _.ip(function(d,f){var H=K.length,D=[];if(H)for(var S=function(R){d(R)},n=function(R,F){H--;
D[R]=F;H==0&&f(D)},u,a=0;a<K.length;a++)u=K[a],PNt(u,S,_.uB(n,a));
else d(void 0)})};
_.Gz=function(){var K,d,f=new _.ip(function(H,D){K=H;d=D});
return new N4H(f,K,d)};
_.ip.prototype.then=function(K,d,f){return Yj4(this,ck(typeof K==="function"?K:null),ck(typeof d==="function"?d:null),f)};
Rq8(_.ip);os6=function(K,d,f,H){twB(K,vsv(d||_.SO,f||null,H))};
_.It=function(K,d){d=ck(d);d=vsv(d,d);d.always=!0;twB(K,d);return K};
_.ip.prototype.finally=function(K){var d=this;K=ck(K);return new Promise(function(f,H){os6(d,function(D){K();f(D)},function(D){K();
H(D)})})};
_.ip.prototype.thenCatch=function(K,d){return Yj4(this,null,ck(K),d)};
_.ip.prototype.catch=_.ip.prototype.thenCatch;_.ip.prototype.cancel=function(K){if(this.state_==0){var d=new _.mf(K);_.uJ(function(){$89(this,d)},this)}};
var $89=function(K,d){if(K.state_==0)if(K.parent_){var f=K.parent_;if(f.callbackEntries_){for(var H=0,D=null,S=null,n=f.callbackEntries_;n&&(n.always||(H++,n.child==K&&(D=n),!(D&&H>1)));n=n.next)D||(S=n);D&&(f.state_==0&&H==1?$89(f,d):(S?(H=S,H.next==f.callbackEntriesTail_&&(f.callbackEntriesTail_=H),H.next=H.next.next):Es4(f),hqH(f,D,3,d)))}K.parent_=null}else K.resolve_(3,d)},twB=function(K,d){K.callbackEntries_||K.state_!=2&&K.state_!=3||bwf(K);
K.callbackEntriesTail_?K.callbackEntriesTail_.next=d:K.callbackEntries_=d;K.callbackEntriesTail_=d},Yj4=function(K,d,f,H){var D=vsv(null,null,null);
D.child=new _.ip(function(S,n){D.JSC$7778_onFulfilled=d?function(u){try{var a=d.call(H,u);S(a)}catch(R){n(R)}}:S;
D.JSC$7778_onRejected=f?function(u){try{var a=f.call(H,u);a===void 0&&u instanceof _.mf?n(u):S(a)}catch(R){n(R)}}:n});
D.child.parent_=K;twB(K,D);return D.child};
_.ip.prototype.unblockAndFulfill_=function(K){this.state_=0;this.resolve_(2,K)};
_.ip.prototype.unblockAndReject_=function(K){this.state_=0;this.resolve_(3,K)};
_.ip.prototype.resolve_=function(K,d){this.state_==0&&(this===d&&(K=3,d=new TypeError("Ba")),this.state_=1,MwH(d,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=d,this.state_=K,this.parent_=null,bwf(this),K!=3||d instanceof _.mf||m8J(this,d)))};
var MwH=function(K,d,f,H){if(K instanceof _.ip)return os6(K,d,f,H),!0;if(Fbk(K))return K.then(d,f,H),!0;if(_.H4(K))try{var D=K.then;if(typeof D==="function")return lMt(K,D,d,f,H),!0}catch(S){return f.call(H,S),!0}return!1},lMt=function(K,d,f,H,D){var S=!1,n=function(a){S||(S=!0,f.call(D,a))},u=function(a){S||(S=!0,H.call(D,a))};
try{d.call(K,n,u)}catch(a){u(a)}},bwf=function(K){K.executing_||(K.executing_=!0,_.uJ(K.executeCallbacks_,K))},Es4=function(K){var d=null;
K.callbackEntries_&&(d=K.callbackEntries_,K.callbackEntries_=d.next,d.next=null);K.callbackEntries_||(K.callbackEntriesTail_=null);return d};
_.ip.prototype.executeCallbacks_=function(){for(var K;K=Es4(this);)hqH(this,K,this.state_,this.result_);this.executing_=!1};
hqH=function(K,d,f,H){if(f==3&&d.JSC$7778_onRejected&&!d.always)for(;K&&K.hadUnhandledRejection_;K=K.parent_)K.hadUnhandledRejection_=!1;if(d.child)d.child.parent_=null,WbB(d,f,H);else try{d.always?d.JSC$7778_onFulfilled.call(d.context):WbB(d,f,H)}catch(D){u65.call(null,D)}XxJ.put(d)};
WbB=function(K,d,f){d==2?K.JSC$7778_onFulfilled.call(K.context,f):K.JSC$7778_onRejected&&K.JSC$7778_onRejected.call(K.context,f)};
m8J=function(K,d){K.hadUnhandledRejection_=!0;_.uJ(function(){K.hadUnhandledRejection_&&u65.call(null,d)})};
u65=Dn;_.mf=function(K){_.KB.call(this,K)};
_.Bd(_.mf,_.KB);_.mf.prototype.name="cancel";var N4H=function(K,d,f){this.promise=K;this.resolve=d;this.reject=f};var Uv;_.wX=function(K,d){_.iJ.call(this);this.JSC$7790_interval_=K||1;this.timerObject_=d||_.Hu;this.boundTick_=(0,_.Om)(this.tick_,this);this.last_=_.Ls()};
_.Bd(_.wX,_.iJ);_.V=_.wX.prototype;_.V.enabled=!1;_.V.JSC$7792_timer_=null;_.V.setInterval=function(K){this.JSC$7790_interval_=K;this.JSC$7792_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7792_timer_&&this.stop()};
_.V.tick_=function(){if(this.enabled){var K=_.Ls()-this.last_;K>0&&K<this.JSC$7790_interval_*.8?this.JSC$7792_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7790_interval_-K):(this.JSC$7792_timer_&&(this.timerObject_.clearTimeout(this.JSC$7792_timer_),this.JSC$7792_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.V.start=function(){this.enabled=!0;this.JSC$7792_timer_||(this.JSC$7792_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7790_interval_),this.last_=_.Ls())};
_.V.stop=function(){this.enabled=!1;this.JSC$7792_timer_&&(this.timerObject_.clearTimeout(this.JSC$7792_timer_),this.JSC$7792_timer_=null)};
_.V.disposeInternal=function(){_.wX.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Uv=function(K,d,f){if(typeof K==="function")f&&(K=(0,_.Om)(K,f));else if(K&&typeof K.handleEvent=="function")K=(0,_.Om)(K.handleEvent,K);else throw Error("Ca");return Number(d)>2147483647?-1:_.Hu.setTimeout(K,d||0)};
_.GiB=function(K){var d=null;return(new _.ip(function(f,H){d=Uv(function(){f(void 0)},K);
d==-1&&H(Error("Da"))})).thenCatch(function(f){_.Hu.clearTimeout(d);
throw f;})};var ul=function(K){_.gG.call(this);this.streamzLogger=K;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7796_flushTimer=new _.wX(this.flushInterval);this.JSC$7796_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.cy(this,this.JSC$7796_flushTimer)};
_.O(ul,_.gG);ul.prototype.sendIsolatedPayload=function(K){this.shouldSendIsolatedPayload=K;this.invocationLimit=1};
var A49=function(K){K.JSC$7796_flushTimer.enabled||K.JSC$7796_flushTimer.start();K.invocationCount++;K.invocationCount>=K.invocationLimit&&K.snapshotAndFlush()};
ul.prototype.snapshotAndFlush=function(){var K=this.metricMap.values();K=[].concat(_.Me(K)).filter(function(d){return d.cellMap.size});
K.length&&this.streamzLogger.flush(K,this.shouldSendIsolatedPayload);T48(K);this.invocationCount=0;this.JSC$7796_flushTimer.enabled&&this.JSC$7796_flushTimer.stop()};
ul.prototype.addNewCounter=function(K){var d=_.Pg.apply(1,arguments);this.metricMap.has(K)||this.metricMap.set(K,new Lts(K,d))};
ul.prototype.addNewEventMetric=function(K){var d=_.Pg.apply(1,arguments);this.metricMap.has(K)||this.metricMap.set(K,new Bwf(K,d))};
var r48=function(K,d){return K.disabledMetrics.has(d)?void 0:K.metricMap.get(d)};
ul.prototype.JSC$7796_incrementCounter=function(K){this.JSC$7796_incrementCounterBy(K,1,_.Pg.apply(1,arguments))};
ul.prototype.JSC$7796_incrementCounterBy=function(K,d){var f=_.Pg.apply(2,arguments),H=r48(this,K);H&&H instanceof Lts&&(H.JSC$7735_incrementCounterBy(d,f),A49(this))};
ul.prototype.record=function(K,d){var f=_.Pg.apply(2,arguments),H=r48(this,K);H&&H instanceof Bwf&&(H.record(d,f),A49(this))};
var T48=function(K){for(var d=0;d<K.length;d++)K[d].clear()};_.Rt=function(K,d,f){f=f===void 0?{}:f;d=Error.call(this,d);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=K;this.metadata=f;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(_.Rt,Error);_.Rt.prototype.toString=function(){var K="RpcError("+(kpJ(this.code)||String(this.code))+")";this.message&&(K+=": "+this.message);return K};_.qjH=_.Hu.JSON.parse;_.FJ=_.Hu.JSON.stringify;_.P0=_.Hu.JSON.parse;_.Q6N=function(K){switch(K){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 j69=function(K){switch(K){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var CN9,x8v=function(){};
_.Bd(x8v,_.wyX);x8v.prototype.createInstance=function(){return new XMLHttpRequest};
CN9=new x8v;_.zM=function(K){_.iJ.call(this);this.headers=new Map;this.JSC$7805_xmlHttpFactory_=K||null;this.JSC$7805_active_=!1;this.JSC$7805_xhr_=null;this.JSC$7805_lastUri_="";this.JSC$7805_lastErrorCode_=0;this.JSC$7805_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7805_timeoutId_=null;this.responseType_="";this.JSC$7805_withCredentials_=!1};
_.Bd(_.zM,_.iJ);var Lbs=/^https?$/i,B4t=["POST","PUT"],J42=[],dfz=function(K,d,f,H,D,S,n){var u=new _.zM;J42.push(u);d&&u.listen("complete",d);u.listenOnce("ready",u.cleanupSend_);S&&(u.timeoutInterval_=Math.max(0,S));n&&(u.JSC$7805_withCredentials_=n);u.send(K,f,H,D)};
_.zM.prototype.cleanupSend_=function(){this.dispose();_.Zn(J42,this)};
_.zM.prototype.send=function(K,d,f,H){if(this.JSC$7805_xhr_)throw Error("Ea`"+this.JSC$7805_lastUri_+"`"+K);d=d?d.toUpperCase():"GET";this.JSC$7805_lastUri_=K;this.JSC$7805_lastError_="";this.JSC$7805_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7805_active_=!0;this.JSC$7805_xhr_=this.createXhr();this.JSC$7805_xhr_.onreadystatechange=ck((0,_.Om)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7805_xhr_.open(d,String(K),!0),this.inOpen_=!1}catch(n){s68(this,n);return}K=f||"";f=new Map(this.headers);
if(H)if(Object.getPrototypeOf(H)===Object.prototype)for(var D in H)f.set(D,H[D]);else if(typeof H.keys==="function"&&typeof H.get==="function"){D=_.y(H.keys());for(var S=D.next();!S.done;S=D.next())S=S.value,f.set(S,H.get(S))}else throw Error("Fa`"+String(H));H=Array.from(f.keys()).find(function(n){return"content-type"==n.toLowerCase()});
D=_.Hu.FormData&&K instanceof _.Hu.FormData;!_.Bu(B4t,d)||H||D||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");d=_.y(f);for(H=d.next();!H.done;H=d.next())f=_.y(H.value),H=f.next().value,f=f.next().value,this.JSC$7805_xhr_.setRequestHeader(H,f);this.responseType_&&(this.JSC$7805_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7805_xhr_&&this.JSC$7805_xhr_.withCredentials!==this.JSC$7805_withCredentials_&&(this.JSC$7805_xhr_.withCredentials=this.JSC$7805_withCredentials_);
try{this.JSC$7805_timeoutId_&&(clearTimeout(this.JSC$7805_timeoutId_),this.JSC$7805_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7805_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7805_xhr_.send(K),this.inSend_=!1}catch(n){s68(this,n)}};
_.zM.prototype.createXhr=function(){return this.JSC$7805_xmlHttpFactory_?this.JSC$7805_xmlHttpFactory_.createInstance():CN9.createInstance()};
_.zM.prototype.timeout_=function(){typeof tun!="undefined"&&this.JSC$7805_xhr_&&(this.JSC$7805_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7805_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var s68=function(K,d){K.JSC$7805_active_=!1;K.JSC$7805_xhr_&&(K.inAbort_=!0,K.JSC$7805_xhr_.abort(),K.inAbort_=!1);K.JSC$7805_lastError_=d;K.JSC$7805_lastErrorCode_=5;kis(K);wx4(K)},kis=function(K){K.errorDispatched_||(K.errorDispatched_=!0,K.dispatchEvent("complete"),K.dispatchEvent("error"))};
_.zM.prototype.abort=function(K){this.JSC$7805_xhr_&&this.JSC$7805_active_&&(this.JSC$7805_active_=!1,this.inAbort_=!0,this.JSC$7805_xhr_.abort(),this.inAbort_=!1,this.JSC$7805_lastErrorCode_=K||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),wx4(this))};
_.zM.prototype.disposeInternal=function(){this.JSC$7805_xhr_&&(this.JSC$7805_active_&&(this.JSC$7805_active_=!1,this.inAbort_=!0,this.JSC$7805_xhr_.abort(),this.inAbort_=!1),wx4(this,!0));_.zM.superClass_.disposeInternal.call(this)};
_.zM.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Zwk(this);else this.onReadyStateChangeEntryPoint_()};
_.zM.prototype.onReadyStateChangeEntryPoint_=function(){Zwk(this)};
var Zwk=function(K){if(K.JSC$7805_active_&&typeof tun!="undefined")if(K.inSend_&&_.XJ(K)==4)setTimeout(K.onReadyStateChange_.bind(K),0);else if(K.dispatchEvent("readystatechange"),K.isComplete()){K.JSC$7805_active_=!1;try{if(K.isSuccess())K.dispatchEvent("complete"),K.dispatchEvent("success");else{K.JSC$7805_lastErrorCode_=6;try{var d=_.XJ(K)>2?K.JSC$7805_xhr_.statusText:""}catch(f){d=""}K.JSC$7805_lastError_=d+" ["+K.getStatus()+"]";kis(K)}}finally{wx4(K)}}},wx4=function(K,d){if(K.JSC$7805_xhr_){K.JSC$7805_timeoutId_&&
(clearTimeout(K.JSC$7805_timeoutId_),K.JSC$7805_timeoutId_=null);
var f=K.JSC$7805_xhr_;K.JSC$7805_xhr_=null;d||K.dispatchEvent("ready");try{f.onreadystatechange=null}catch(H){}}};
_.zM.prototype.isActive=function(){return!!this.JSC$7805_xhr_};
_.zM.prototype.isComplete=function(){return _.XJ(this)==4};
_.zM.prototype.isSuccess=function(){var K=this.getStatus(),d;if(!(d=j69(K))){if(K=K===0)K=y64(String(this.JSC$7805_lastUri_)),K=!Lbs.test(K);d=K}return d};
_.XJ=function(K){return K.JSC$7805_xhr_?K.JSC$7805_xhr_.readyState:0};
_.V=_.zM.prototype;_.V.getStatus=function(){try{return _.XJ(this)>2?this.JSC$7805_xhr_.status:-1}catch(K){return-1}};
_.V.getResponseText=function(){try{return this.JSC$7805_xhr_?this.JSC$7805_xhr_.responseText:""}catch(K){return""}};
_.V.getResponse=function(){try{if(!this.JSC$7805_xhr_)return null;if("response"in this.JSC$7805_xhr_)return this.JSC$7805_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7805_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7805_xhr_)return this.JSC$7805_xhr_.mozResponseArrayBuffer}return null}catch(K){return null}};
_.V.getAllResponseHeaders=function(){return this.JSC$7805_xhr_&&_.XJ(this)>=2?this.JSC$7805_xhr_.getAllResponseHeaders()||"":""};
_.V.getLastError=function(){return typeof this.JSC$7805_lastError_==="string"?this.JSC$7805_lastError_:String(this.JSC$7805_lastError_)};var inY=function(){};
inY.prototype.send=function(K,d,f){d=d===void 0?function(){}:d;
f=f===void 0?function(){}:f;
dfz(K.url,function(H){H=H.target;H.isSuccess()?d(H.getResponseText()):f(H.getStatus())},K.requestType,K.body,K.requestHeaders,K.timeoutMillis,K.withCredentials)};
inY.prototype.getTransmissionType=function(){return 1};var eqL=function(K,d){this.logger=K;this.event=d;this.startTime=aQ()};
eqL.prototype.done=function(){this.logger.yu(this.event,aQ()-this.startTime)};
var vk=function(){JB.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.O(vk,JB);var Mf=function(K,d,f){var H=aQ();d=d();K.yu(f,aQ()-H);return d},mqz=function(){vk.apply(this,arguments)};
_.O(mqz,vk);_.V=mqz.prototype;_.V.d0V=function(){};
_.V.jJ=function(){};
_.V.yu=function(){};
_.V.logError=function(){};
_.V.k8=function(){};
_.V.iC2=function(){};
_.V.t8k=function(){};
_.V.jSQ=function(){};
_.V.re3=function(){};
var pxs=function(K){vk.call(this);var d=this;this.logger=K;this.TEST_ONLY={qsq:function(){return d.logger},
getExperimentIds:function(){return d.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void d.logger.dispose()})};
_.O(pxs,vk);_.V=pxs.prototype;_.V.update=function(K){this.logger.dispose();this.logger=K};
_.V.jJ=function(K){this.logger.jJ(K)};
_.V.yu=function(K,d){this.logger.yu(K,d)};
_.V.logError=function(K){this.logger.logError(K)};
_.V.k8=function(){this.logger.k8()};
_.V.iC2=function(K){this.logger.iC2(K)};
_.V.t8k=function(K){this.logger.t8k(K)};
_.V.jSQ=function(K){this.logger.jSQ(K)};
_.V.re3=function(K){this.logger.re3(K)};
_.V.d0V=function(K){this.logger.d0V(K)};
var KcH=function(K,d){_.gG.call(this);var f=this;this.callback=K;this.kgh=d;this.rdS=-d;this.addOnDisposeCallback(function(){return void clearTimeout(f.timer)})};
_.O(KcH,_.gG);var dDk=function(K){if(K.timer===void 0){var d=Math.max(0,K.rdS+K.kgh-aQ());K.timer=setTimeout(function(){try{K.callback()}finally{K.rdS=aQ(),K.timer=void 0}},d)}},fa6=function(K,d){vk.call(this);
this.metrics=K;this.mX=d};
_.O(fa6,vk);_.V=fa6.prototype;_.V.d0V=function(K){this.metrics.gZy.record(K,this.mX)};
_.V.jJ=function(K){this.metrics.eventCount.increment(K,this.mX)};
_.V.yu=function(K,d){this.metrics.kJd.record(d,K,this.mX)};
_.V.logError=function(K){this.metrics.errorCount.increment(K,this.mX)};
_.V.iC2=function(K){this.metrics.yA5.increment(K,this.mX)};
_.V.t8k=function(K){this.metrics.v2O.increment(K,this.mX)};
_.V.jSQ=function(K){this.metrics.wd5.increment(K,this.mX)};
var IQ=function(K,d){d=d===void 0?[]:d;var f={mX:K.mX||"_",fDO:K.fDO||[],zNV:K.zNV|0,destinationUrl:K.destinationUrl,okn:K.okn||function(){},
ih:K.ih||function(S,n){return bnz(S,n,f.okn,f.destinationUrl)}},H=f.ih("49",f.fDO.concat(d));
fa6.call(this,VDG(H),f.mX);var D=this;this.TEST_ONLY={getExperimentIds:function(){return D.options.fDO.concat(D.gr0).sort(function(S,n){return S-n})}};
this.options=f;this.service=H;this.jRG=!K.ih;this.flushDebouncer=new KcH(function(){return void D.service.snapshotAndFlush()},f.zNV);
this.addOnDisposeCallback(function(){D.flushDebouncer.dispose();D.jRG&&D.service.dispose()});
(this.gr0=d.slice()).sort(_.yv)};
_.O(IQ,fa6);IQ.prototype.re3=function(K){var d=this;K=K.slice();K.sort(_.yv);_.If(K,this.gr0)||(this.flushDebouncer.dispose(),this.jRG&&this.service.dispose(),this.service=this.options.ih("49",this.options.fDO.concat(K)),this.flushDebouncer=new KcH(function(){return void d.service.snapshotAndFlush()},this.options.zNV),this.metrics=VDG(this.service),this.gr0=K)};
IQ.prototype.k8=function(){dDk(this.flushDebouncer)};var pqB=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(pqB,_.Ti);_.KpN=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(_.KpN,_.Ti);var qj=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K,0,qj.messageId)};
_.O(qj,_.Ti);var HMJ=_.fMn(qj);qj.messageId="bfkj";var W$O=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(W$O,_.Ti);var DD4=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(DD4,_.Ti);var Ves=_.KM(DD4);_.fU=function(){var K=this;this.promise=new Promise(function(d,f){K.resolve=d;K.reject=f})};_.Pk=function(K){_.gG.call(this);var d=this;this.nDZ=Math.floor(Math.random()*200);this.kxk=new DD4;if("challenge"in K&&HMJ(K.challenge)){var f=_.Xo(K.challenge,4,void 0,CJ);var H=_.Xo(K.challenge,5,void 0,CJ);_.Xo(K.challenge,7,void 0,CJ)&&(this.kxk=Ves(_.Xo(K.challenge,7,void 0,CJ)))}else f=K.program,H=K.globalName;this.addOnDisposeCallback(function(){var N,h,m;return _.c(function(T){if(T.nextAddress==1)return _.I(T,d.vVn,2);N=T.yieldResult;h=N.tUh;(m=h)==null||m();_.iQ(T)})});
this.logger=lKz(K.n7||{},this.kxk,K.zDD);_.cy(this,this.logger);var D=new _.fU;this.vVn=D.promise;this.logger.jJ("t");var S=this.logger.share(),n=new eqL(S,"t"),u=function(N,h,m,T){if(!d.logger.isDisposed()){var r="k";h?r="h":m&&(r="u");r!=="k"?T!==0&&(d.logger.jJ(r),d.logger.yu(r,N)):d.nDZ<=0?(d.logger.jJ(r),d.logger.yu(r,N),d.nDZ=Math.floor(Math.random()*200)):d.nDZ--}},a=function(N,h,m,T){Promise.resolve().then(function(){n.done();
S.k8();S.dispose();D.resolve({z9m:N,tUh:h,vMH:m,uxO:T})})};
if(!_.Hu[H])throw this.logger.logError(25),Error("Ga");if(!_.Hu[H].a)throw this.logger.logError(26),Error("Ha");try{var R=_.Hu[H].a;H=[];for(var F=[],z=GpS(this.kxk),v=0;v<z.length;v++)H.push(z[v]),F.push(1);var g=Asp(this.kxk);for(z=0;z<g.length;z++)H.push(g[z]),F.push(2);this.daT=_.y(R(f,a,!0,K.wKr,u,[H,F],_.Xo(this.kxk,5))).next().value;this.gQO=D.promise.then(function(){})}catch(N){throw this.logger.logError(28),N;
}};
_.O(_.Pk,_.gG);_.Pk.prototype.snapshot=function(K){if(this.isDisposed())throw Error("Ia");this.logger.jJ("n");var d=this.logger.share();return this.vVn.then(function(f){var H=f.z9m;return new Promise(function(D){var S=new eqL(d,"n");H(function(n){S.done();d.d0V(n.length);d.k8();d.dispose();D(n)},[K.uv,
K.xpO,K.bMK,K.lx0])})})};
_.S2k=function(K,d){if(K.isDisposed())throw Error("Ia");K.logger.jJ("n");var f=Mf(K.logger,function(){return K.daT([d.uv,d.xpO,d.bMK,d.lx0])},"n");
K.logger.d0V(f.length);K.logger.k8();return f};
_.Pk.prototype.h5Z=function(K){this.vVn.then(function(d){var f;(f=d.vMH)==null||f(K)})};
_.Pk.prototype.p0V=function(K,d){return this.vVn.then(function(f){var H;return(H=f.uxO)==null?void 0:H(K,d,!1)})};
_.Pk.prototype.oun=function(){return this.logger.share()};var yav=function(){this.ogl={};this.abn=null},nGN=function(){yav.instance||(yav.instance=new yav);
return yav.instance},caJ=function(K,d){return iM9(K,_.eQ(d,pqB,1,CJ),_.eQ(d,_.KpN,2,CJ),_.Xo(d,3,void 0,CJ))},iM9=function(K,d,f,H){if(!d&&!f)return Promise.resolve();
if(!H)return TQG(d,f);var D;(D=K.ogl)[H]||(D[H]=new Promise(function(S,n){TQG(d,f).then(function(){K.abn=H;S()},function(u){delete K.ogl[H];
n(u)})}));
return K.ogl[H]};var uat=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(uat,_.Ti);var aa9=function(K,d){return _.Qb(K,1,d)},Ia8=function(K,d){return _.Qb(K,2,d)};var gv=function(K){_.gG.call(this);var d=this;this.options=K;this.wm2=new _.fU;this.gQO=this.wm2.promise;this.qQZ=new _.fU;this.gal=1;this.a3O=new _.fU;this.p3x=[];this.bko=K.bko||function(){};
this.logger=new pxs(lKz(K.n7||{}));UD8(this,K.yR,K.tph,K.aO5,K.pol,Object.assign({},RX2,K.gU2||{}));this.addOnDisposeCallback(function(){return void Fck(d)})};
_.O(gv,_.gG);gv.prototype.snapshot=function(K){var d=this;return _.c(function(f){switch(f.nextAddress){case 1:if(d.isDisposed())throw Error("Ia");if(d.dV||d.hYG){f.jumpTo(2);break}return _.I(f,d.qQZ.promise,2);case 2:if(!d.dV){f.jumpTo(4);break}return _.I(f,d.dV.snapshot(K),5);case 5:return f.return(f.yieldResult);case 4:throw d.hYG;}})};
var zXH=function(K){var d;return _.c(function(f){if(K.isDisposed())throw Error("Ia");(d=K.r7)!=null&&(d.endTimeMs=0,d.resolver(1));return _.I(f,K.a3O.promise,0)})},Fck=function(K){K.hYG=Error("Ka");
K.qQZ.resolve();TGX(K.wm2.promise);K.wm2.reject(Error("Ka"));K.logger.dispose();Promise.all(K.p3x).then(function(){var f;return _.c(function(H){(f=K.dV)==null||f.dispose();K.dV=void 0;_.iQ(H)})});
K.p3x=[];var d;(d=K.r7)!=null&&(d.endTimeMs=0,d.resolver(1));TGX(K.a3O.promise);K.a3O.reject(Error("Ka"))};
gv.prototype.h5Z=function(K){var d,f;(d=this.dV)==null||(f=d.h5Z)==null||f.call(d,K)};
gv.prototype.p0V=function(K,d){var f,H,D;return(D=(f=this.dV)==null?void 0:(H=f.p0V)==null?void 0:H.call(f,K,d))!=null?D:Promise.resolve()};
var XgH=function(K,d){var f=K.bko;K.bko=function(){f();d()}},vGt=function(K,d){K.isDisposed()||(K.dV=d,K.logger.update(d.oun()),K.qQZ.resolve(),K.wm2.resolve(void 0),K.bko())};
gv.prototype.handleError=function(K){if(!this.isDisposed()){this.hYG=K;this.qQZ.resolve();var d,f;(f=(d=this.options).ljm)==null||f.call(d,K)}};
var Met=function(K,d){d&&(Promise.all(K.p3x).then(function(){return void d.dispose()}),K.p3x=[])},Ov=function(K,d){K.gal=d;
var f,H;(H=(f=K.options).pCb)==null||H.call(f,d)},P$f=function(K){K.isDisposed()||(K.a3O.resolve(),K.a3O=new _.fU)},UD8=function(K,d,f,H,D,S){H=H===void 0?nGN():H;
D=D===void 0?Promise.resolve(void 0):D;var n,u,a,R,F,z,v,g,N,h,m,T;_.c(function(r){switch(r.nextAddress){case 1:return _.I(r,0,3);case 3:u=null;if(!n){r.jumpTo(6);break}Ov(K,7);_.HF(r,7);return _.I(r,XE(n.snapshot({}),S.xxr,function(){return Promise.resolve("E:CTO")}),9);
case 9:u=r.yieldResult;_.Ts(r,6);break;case 7:_.n7(r),u="E:UCE";case 6:a=void 0,R=n?S.iCK:S.mRK,F=new Sh(R,S.oCQ,S.xRH,S.jSO),z=1;case 10:if(!(z<=S.maxAttempts)){r.jumpTo(12);break}if(z===1){r.jumpTo(13);break}Ov(K,0);K.r7=new gG2(F.getValue(),S.nZm,S.j5d);return _.I(r,K.r7.promise,14);case 14:v=r.yieldResult,K.r7=void 0,v===1?(z=1,F.reset()):l72(F);case 13:_.HF(r,15);g=void 0;if(f){g=f;r.jumpTo(17);break}Ov(K,5);N=H.abn;return _.I(r,XE(OMv(d,N,u),S.ovh,function(){return Promise.reject(Error("La"))}),
18);
case 18:g=r.yieldResult;case 17:return Ov(K,3),_.I(r,XE(caJ(H,g),S.omF,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return Ov(K,8),_.I(r,D,20);case 20:return h=new _.Pk({challenge:g,n7:K.options.n7,wKr:K.options.wKr}),_.I(r,XE(h.gQO,S.vr7,function(){return Promise.reject(Error("Na"))}),21);
case 21:a=h;r.jumpTo(12);break;case 15:m=_.n7(r),K.handleError(m),P$f(K);case 11:z++;r.jumpTo(10);break;case 12:if(K.isDisposed()){r.jumpTo(5);break}a&&(f=void 0,Met(K,n),n=a,vGt(K,a),P$f(K));Ov(K,2);K.r7=new gG2(S.y0j,S.nZm,S.j5d);return _.I(r,K.r7.promise,22);case 22:K.r7=void 0;if(K.isDisposed()){r.jumpTo(5);break}r.jumpTo(3);break;case 5:(T=n)==null||T.dispose(),_.iQ(r)}})};
gv.prototype.oun=function(){return this.logger.share()};
var RX2={y0j:432E5,nZm:3E5,j5d:10,xxr:1E4,ovh:3E4,omF:3E4,vr7:6E4,mRK:1E3,iCK:6E4,oCQ:6E5,xRH:.25,jSO:2,maxAttempts:10},gG2=function(K,d,f){var H=this;this.endTimeMs=Date.now()+K;this.promise=new Promise(function(S){H.resolver=S});
var D=function(){var S=H.endTimeMs-Date.now();S<=f?H.resolver(0):setTimeout(D,Math.min(S,d))};
D()};var N5f,QlY=(N5f=Math.imul)!=null?N5f:function(K,d){return K*d|0},vy=[196,
200,224,18],Nf=function(K,d,f){f=f===void 0?[]:f;this.maxItems=K;this.gG=d===void 0?0:d;this.uW=f},Y2N=function(K){var d=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!d)return new Nf(K);var f=d.split(",");if(f.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Nf(K);d=f.slice(1);d.length===1&&d[0]===""&&(d=[]);f=Number(f[0]);return isNaN(f)||f<0||f>d.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Nf(K)):new Nf(K,f,d)};
Nf.prototype.serialize=function(){return String(this.gG)+","+this.uW.join()};
Nf.prototype.insert=function(K,d){var f=void 0;if(this.uW[this.gG]!==K){var H=this.uW.indexOf(K);H!==-1?(this.uW.splice(H,1),H<this.gG&&this.gG--,this.uW.splice(this.gG,0,K)):(f=this.uW[this.gG],this.uW[this.gG]=K)}this.gG=(this.gG+1)%this.maxItems;K=rcz("iU5q-!O9@$",this.serialize());f&&K&&d(f);return K};
var te4=function(K,d){this.logger=d;try{var f=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(H){f=!1}f&&(this.index=Y2N(K))},oGs=function(K,d,f,H,D){var S=K.index?Mf(K.logger,function(){return LUz(K.index,C8S(d),f,H,D)},"W"):"u";
K.logger.jSQ(S)},$DL=function(K,d,f){var H=_.y(K.index?Mf(K.logger,function(){return BQY(C8S(d),f)},"R"):["u"]),D=H.next().value;
H=H.next().value;K.logger.t8k(D);return H};var EGf={toString:function(K){var d=[],f=0;K-=-2147483648;d[f++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(K%52);for(K=Math.floor(K/52);K>0;)d[f++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(K%62),K=Math.floor(K/62);return d.join("")}};var mDH=function(K){K=hXs(K);for(var d=2654435769,f=2654435769,H=314159265,D=K.length,S=D,n=0,u=function(){d-=f;d-=H;d^=H>>>13;f-=H;f-=d;f^=d<<8;H-=d;H-=f;H^=f>>>13;d-=f;d-=H;d^=H>>>12;f-=H;f-=d;f^=d<<16;H-=d;H-=f;H^=f>>>5;d-=f;d-=H;d^=H>>>3;f-=H;f-=d;f^=d<<10;H-=d;H-=f;H^=f>>>15};S>=12;S-=12,n+=12)d+=bM2(K,n),f+=bM2(K,n+4),H+=bM2(K,n+8),u();
H+=D;switch(S){case 11:H+=K[n+10]<<24;case 10:H+=K[n+9]<<16;case 9:H+=K[n+8]<<8;case 8:f+=K[n+7]<<24;case 7:f+=K[n+6]<<16;case 6:f+=K[n+5]<<8;case 5:f+=K[n+4];case 4:d+=K[n+3]<<24;case 3:d+=K[n+2]<<16;case 2:d+=K[n+1]<<8;case 1:d+=K[n]}u();return EGf.toString(H)},hXs=function(K){for(var d=[],f=0;f<K.length;f++)d.push(K.charCodeAt(f));
return d},bM2=function(K,d){return K[d]+(K[d+1]<<8)+(K[d+2]<<16)+(K[d+3]<<24)};var laN,Yk=function(K){_.gG.call(this);this.logger=K;this.eag=new _.fU;this[laN]=this.dispose};
_.O(Yk,_.gG);var Wc2=function(K,d){var f=setTimeout(function(){K.eag.resolve()},d);
K.addOnDisposeCallback(function(){return void clearTimeout(f)})};
Yk.prototype.l9=function(K,d){var f=this.nR(K);d==null||d(f);return Mf(this.logger,function(){return _.eS(f,2)},this.jDn)};
var GYL=function(K,d,f,H){return Mf(K.logger,function(){return f?K.l9(d,H):K.nR(d,H)},K.wh)};
laN=Symbol.dispose;var Aa8=function(K,d,f,H){Yk.call(this,K);this.hAd=d;this.ubZ=f;this.wh="m";this.jDn="x";this.aKA=0;Wc2(this,H)};
_.O(Aa8,Yk);Aa8.prototype.nR=function(K,d){var f=this;this.logger.jJ(this.wh);++this.aKA>=this.ubZ&&this.eag.resolve();var H=K();K=Mf(this.logger,function(){return f.hAd(H)},"C");
if(K===void 0)throw new Lg(17,"YNJ:Undefined");if(!(K instanceof Uint8Array))throw new Lg(18,"ODM:Invalid");d==null||d(K);return K};
var T5v=function(K,d,f){Yk.call(this,K);this.jdV=d;this.wh="f";this.jDn="z";Wc2(this,f)};
_.O(T5v,Yk);T5v.prototype.nR=function(){return this.jdV};
var rat=function(K,d,f){Yk.call(this,K);this.hHH=d;this.wh="w";this.jDn="z";Wc2(this,f)};
_.O(rat,Yk);rat.prototype.nR=function(){var K=this;return Mf(this.logger,function(){return _.Us(K.hHH)},"d")};
rat.prototype.l9=function(){return this.hHH};
var q2f=function(K,d){Yk.call(this,K);this.error=d;this.wh="e";this.jDn="y"};
_.O(q2f,Yk);var QoB=function(K,d){var f=(d(K.error.message)+":"+d(K.error.stack)).substring(0,2048);d=f.length+1;f=JcS(f);var H=new Uint8Array(4+f.length);H.set([42,d&127|128,d>>7,K.error.code]);H.set(f,4);return H};
q2f.prototype.nR=function(){if(this.zuj)return this.zuj;this.zuj=QoB(this,function(K){return"_"+mDH(K)});
return QoB(this,function(K){return K})};
var jo6=function(K,d,f){Yk.call(this,K);this.opA=d;this.clientState=f;this.wh="S";this.jDn="q"};
_.O(jo6,Yk);jo6.prototype.nR=function(){var K=Math.floor(Date.now()/1E3),d=[Math.random()*255,Math.random()*255],f=d.concat([this.opA&255,this.clientState],[K>>24&255,K>>16&255,K>>8&255,K&255]);K=new Uint8Array(2+f.length);K[0]=34;K[1]=f.length;K.set(f,2);f=K.subarray(2);for(var H=d=d.length;H<f.length;++H)f[H]^=f[H%d];this.logger.iC2(this.clientState);return K};var C$s={ecr:3E4,kwP:2E4},ot=function(K){_.gG.call(this);var d=this;this.cJQ=new _.fU;this.uvx=0;this.v5=void 0;this.state=2;this.bV=K.bV;this.yR=K.yR;this.gU2=Object.assign({},C$s,K.gU2||{});this.logger=K.bV.oun();var f;this.onError=(f=K.onError)!=null?f:function(){};
this.xEb=K.xEb||!1;if(xD4(K)){var H=this.bV;this.vA0=function(){return zXH(H).catch(function(n){n=d.reportError(new Lg(d.wk?20:32,"TRG:Disposed",n));d.v5=n;var u;(u=d.wk)==null||u.dispose();d.wk=void 0;d.cJQ.reject(n)})};
XgH(H,function(){return void LcJ(d)});
H.gal===2&&LcJ(this)}else this.vA0=K.iw7,LcJ(this);var D=this.logger.share();D.jJ("o");var S=new eqL(D,"o");this.cJQ.promise.then(function(){S.done();D.k8();D.dispose()},function(){return void D.dispose()});
this.addOnDisposeCallback(function(){d.wk?(d.wk.dispose(),d.wk=void 0):d.v5?d.logger.k8():(d.v5=d.reportError(new Lg(32,"TNP:Disposed")),d.logger.k8(),d.cJQ.reject(d.v5))});
_.cy(this,this.logger)};
_.O(ot,_.gG);ot.prototype.pR6=function(){return this.cJQ.promise};
var B5N=function(K,d){if(!(d instanceof Lg))if(d instanceof _.Rt){var f=Error(d.toString());f.stack=d.stack;d=new Lg(11,"EBH:Error",f)}else d=new Lg(12,"BSO:Unknown",d);return K.reportError(d)},LcJ=function(K){var d,f,H,D,S,n,u,a,R,F,z,v,g,N,h;
return _.c(function(m){switch(m.nextAddress){case 1:d=void 0;K.uvx++;f=new _.fU;K.bV instanceof gv&&K.bV.p3x.push(f.promise);if(!K.xEb){m.jumpTo(2);break}H=new _.fU;setTimeout(function(){return void H.resolve()});
return _.I(m,H.promise,2);case 2:return D=K.logger.share(),_.HF(m,4,5),K.state=5,S={},n=[],_.I(m,XE(K.bV.snapshot({uv:S,bMK:n}),K.gU2.kwP,function(){return Promise.reject(new Lg(15,"MDA:Timeout"))}),7);
case 7:u=m.yieldResult;if(K.isDisposed())throw new Lg(K.wk?20:32,"MDA:Disposed");a=n[0];K.state=6;return _.I(m,XE(Ja6(K.yR,u),K.gU2.ecr,function(){return Promise.reject(new Lg(10,"BWB:Timeout"))}),8);
case 8:R=m.yieldResult;if(K.isDisposed())throw new Lg(K.wk?20:32,"BWB:Disposed");K.state=7;d=Mf(D,function(){var r=sok(K,R,f,a);r.eag.promise.then(function(){return void K.vA0()});
return r},"i");
case 5:_.Vu(m);D.dispose();_.yu(m,6);break;case 4:F=_.n7(m);(z=d)==null||z.dispose();if(!K.v5){v=B5N(K,F);f.resolve();var T;if(T=K.bV instanceof gv&&K.uvx<2)a:if(F instanceof Lg)T=F.code!==32&&F.code!==20&&F.code!==10;else{if(F instanceof _.Rt)switch(F.code){case 2:case 13:case 14:case 4:break;default:T=!1;break a}T=!0}if(T)return g=(1+Math.random()*.25)*(K.wk?6E4:1E3),N=setTimeout(function(){return void K.vA0()},g),K.addOnDisposeCallback(function(){return void clearTimeout(N)}),m.return();
K.v5=v}D.logError(K.wk?13:14);K.cJQ.reject(K.v5);return m.return();case 6:K.state=8,K.uvx=0,(h=K.wk)==null||h.dispose(),K.wk=d,K.cJQ.resolve(),_.iQ(m)}})},sok=function(K,d,f,H){var D=CuY(d,2)*1E3;
if(D<=0)throw new Lg(31,"TTM:Invalid");if(_.Xo(d,4))return new rat(K.logger,_.Xo(d,4),D);if(!CuY(d,3))return new T5v(K.logger,Y6z(_.y5(d,1)),D);if(!H)throw new Lg(4,"PMD:Undefined");H=H(Y6z(_.y5(d,1)));if(!(H instanceof Function))throw new Lg(16,"APF:Failed");K.sUH=Math.floor((Date.now()+D)/1E3);K=new Aa8(K.logger,H,CuY(d,3),D);K.addOnDisposeCallback(function(){return void f.resolve()});
return K};
ot.prototype.nR=function(K){return kYv(this,Object.assign({},K),!1)};
ot.prototype.l9=function(K){return kYv(this,Object.assign({},K),!0)};
ot.prototype.eRG=function(K){if(K>150)return!1;try{return this.cache=new te4(K,this.logger),!0}catch(d){return this.reportError(new Lg(22,"GBJ:init",d)),!1}};
ot.prototype.reportError=function(K){this.logger.logError(K.code);this.onError(K);return K};
var wgB=function(K,d){d=d instanceof Lg?d:new Lg(5,"TVD:error",d);return K.reportError(d)},kYv=function(K,d,f){try{if(K.isDisposed())throw new Lg(21,"BNT:disposed");
if(!K.wk&&K.v5)throw K.v5;var H,D;return(D=(H=ZMv(K,d,f))!=null?H:eX4(K,d,f))!=null?D:pgf(K,d,f)}catch(S){if(!d.n1G)throw wgB(K,S);return KHN(K,f,S)}},ZMv=function(K,d,f){var H;
return(H=K.wk)==null?void 0:GYL(H,function(){return de9(K,d)},f,function(D){var S;
if(K.wk instanceof Aa8&&((S=d.au)==null?0:S.bHZ))try{var n;(n=K.cache)==null||oGs(n,de9(K,d),D,d.au.iX3,K.sUH-120)}catch(u){K.reportError(new Lg(24,"ELX:write",u))}})},eX4=function(K,d,f){var H;
if((H=d.au)!=null&&H.lZJ)try{var D,S=(D=K.cache)==null?void 0:$DL(D,de9(K,d),d.au.iX3);return S?f?Mf(K.logger,function(){return _.eS(S,2)},"a"):S:void 0}catch(n){K.reportError(new Lg(23,"RXO:read",n))}},pgf=function(K,d,f){var H={stack:[],
error:void 0,hasError:!1};try{if(!d.dmj)throw new Lg(29,"SDF:notready");return GYL(DCX(H,new jo6(K.logger,0,K.state)),function(){return de9(K,d)},f)}catch(D){H.error=D,H.hasError=!0}finally{n3z(H)}},KHN=function(K,d,f){var H={stack:[],
error:void 0,hasError:!1};try{var D=wgB(K,f);return GYL(DCX(H,new q2f(K.logger,D)),function(){return[]},d)}catch(S){H.error=S,H.hasError=!0}finally{n3z(H)}},de9=function(K,d){return d.pq6?d.pq6:d.uv?Mf(K.logger,function(){return d.pq6=JcS(d.uv)},"c"):[]},xD4=function(K){return J6(function(d){if(!fn(d))return!1;
for(var f=_.y(Object.entries(K)),H=f.next();!H.done;H=f.next()){var D=_.y(H.value);H=D.next().value;D=D.next().value;if(!(H in d)){if(D.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!D(d[H]))return!1}return!0})}({bV:function(K){return J6(function(d){return d instanceof K})}(gv)},"");var fwv=function(){var K=_.e3();this.JSC$7920_streamzService=K;K.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",dG("cookie_enabled"),dG("cookie_3p_enabled"),_.Hy("browser"))};
fwv.prototype.increment=function(K,d,f){this.JSC$7920_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",K,d,f)};
var U3B=function(){var K=_.e3();this.JSC$7944_streamzService=K;K.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",fm("tick"),dG("from_st_cookie"))};
U3B.prototype.increment=function(K,d){this.JSC$7944_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",K,d)};
var H7v=function(){var K=_.e3();this.JSC$7950_streamzService=K;K.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Hy("status"))};
H7v.prototype.increment=function(K){this.JSC$7950_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",K)};
var Dek=function(){var K=_.e3();this.JSC$7953_streamzService=K;K.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Hy("stage"),dG("is_using_ytd_player"),dG("has_expandable_tiles"))};
Dek.prototype.increment=function(K,d,f){this.JSC$7953_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",K,d,f)};
var Vlt=function(){var K=_.e3();this.JSC$7956_streamzService=K;K.addNewCounter("/client_streamz/youtube/web/response_signature",_.Hy("check_status"))};
Vlt.prototype.increment=function(K){this.JSC$7956_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/web/response_signature",K)};
var SoN=function(){var K=_.e3();this.JSC$7959_streamzService=K;K.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Hy("sig"),fm("de"))};
SoN.prototype.increment=function(K,d){this.JSC$7959_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/web/e_sig_log",K,d)};
var y5J=function(){var K=_.e3();this.JSC$7962_streamzService=K;K.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Hy("sig"),fm("de"))};
y5J.prototype.increment=function(K,d){this.JSC$7962_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/web/e_sig_en",K,d)};
_.nQs=function(){var K=_.e3();this.JSC$7965_streamzService=K;K.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Hy("action"))};
_.nQs.prototype.increment=function(K){this.JSC$7965_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/web/enforcement_intent",K)};var $k=window;var i7f=(new Date).getTime();var c54=function(K){this.servicePromise_=K;K.then((0,_.Om)(function(){},this),function(){},this)},uys=function(K,d,f){K.servicePromise_.then(function(H){var D=H[d];
if(!D)throw Error("Oa`"+d);return D.apply(H,f)})},Uev=function(K,d,f){for(var H=Array(arguments.length-2),D=2;D<arguments.length;D++)H[D-2]=arguments[D];
D=awN(K,d).then(function(S){return S.apply(null,H)},function(S){S=Error("Pa`"+d+"`"+K,{cause:S});
delete Iw9[d];return _.vv(S)});
return new c54(D)},Iw9={},awN=function(K,d){var f=Iw9[d];
if(f)return f;f=(f=_.T2(d))?_.HG(f):(new _.ip(function(H,D){var S=(new a_(document)).createElement("SCRIPT");S.async=!0;_.Aa(S,_.yL(Inf(K)));S.onload=S.onreadystatechange=function(){S.readyState&&S.readyState!="loaded"&&S.readyState!="complete"||H()};
S.onerror=function(n){D(Error("Qa`"+d+"`"+K,{cause:n}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(S)})).then(function(){var H=_.T2(d);
if(!H)throw Error("Ra`"+d+"`"+K);return H});
return Iw9[d]=f};var Rc6={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},zcB=function(){var K=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=slz(function(){return _.c(function(d){if(d.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?d.return(Promise.resolve()):_.I(d,FHs(K),2);K.rsaForList.length>
0&&document.addEventListener("click",K.requestAccessForHelpPanel);_.iQ(d)})});
this.requestAccessForHelpPanel=function(){if(!(K.rsaForPromises.length>0)){for(var d=_.y(K.rsaForList),f=d.next();!f.done;f=d.next()){f=f.value;try{K.rsaForPromises.push(document.requestStorageAccessFor(f))}catch(H){}}Promise.all(K.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){K.reset()})}}};
zcB.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var FHs=function(K){var d,f,H,D;return _.c(function(S){switch(S.nextAddress){case 1:d=_.y(Object.values(Rc6)),f=d.next();case 2:if(f.done){S.jumpTo(0);break}H=f.value;_.HF(S,5);return _.I(S,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:H}),7);case 7:D=S.yieldResult;D.state!=="granted"&&K.rsaForList.push(H);_.Ts(S,3);break;case 5:_.n7(S);S.jumpTo(0);break;case 3:f=d.next(),S.jumpTo(2)}})};(new zcB).initialize();var XFJ=function(K){this.JSC$7979_loader_=K};
XFJ.prototype.startHelp=function(K){uys(this.JSC$7979_loader_,"startHelp",arguments)};
XFJ.prototype.JSC$7981_loadChatSupport=function(K){uys(this.JSC$7979_loader_,"loadChatSupport",arguments)};
var MlH=function(K,d){d=d||{};K=Uev(vQf,"help.service.Lazy.create",K,{apiKey:d.apiKey||d.apiKey,asxUiUri:d.asxUiUri||d.asxUiUri,environment:d.environment||d.environment,flow:d.flow||d.flow,frdProductData:d.frdProductData||d.frdProductData,frdProductDataSerializedJspb:d.frdProductDataSerializedJspb||d.frdProductDataSerializedJspb,helpCenterPath:d.helpCenterPath||d.helpCenterPath,locale:d.locale||d.locale||"en-US".replace(/-/g,"_"),nonce:d.nonce||d.nonce,productData:d.productData||d.productData,receiverUri:d.receiverUri||
d.receiverUri,renderApiUri:d.renderApiUri||d.renderApiUri,theme:d.theme||d.theme,window:d.window||d.window});return new XFJ(K)},vQf=new mh(MVX,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var PQ2=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(PQ2,_.Ti);var gQs=_.KM(PQ2);_.O7L=new function(K,d,f,H){this.configType=K;this.flagName=f;this.defaultValue=H;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 Yof=function(){this.retriever=_.eq().resolve(NyL)};Py(Node);Py(Element);var tlL=Py(HTMLElement);Py(SVGElement);var oQ8,$et,bJ,EQB;oQ8=function(K){return typeof K.className=="string"?K.className:K.getAttribute&&K.getAttribute("class")||""};
$et=function(K){return K.classList?K.classList:oQ8(K).match(/\S+/g)||[]};
_.Ev=function(K,d){typeof K.className=="string"?K.className=d:K.setAttribute&&K.setAttribute("class",d)};
_.hD=function(K,d){return K.classList?K.classList.contains(d):_.Bu($et(K),d)};
_.CZ=function(K,d){if(K.classList)K.classList.add(d);else if(!_.hD(K,d)){var f=oQ8(K);_.Ev(K,f+(f.length>0?" "+d:d))}};
bJ=function(K,d){if(K.classList)Array.prototype.forEach.call(d,function(D){_.CZ(K,D)});
else{var f={};Array.prototype.forEach.call($et(K),function(D){f[D]=!0});
Array.prototype.forEach.call(d,function(D){f[D]=!0});
d="";for(var H in f)d+=d.length>0?" "+H:H;_.Ev(K,d)}};
_.Q2=function(K,d){K.classList?K.classList.remove(d):_.hD(K,d)&&_.Ev(K,Array.prototype.filter.call($et(K),function(f){return f!=d}).join(" "))};
EQB=function(K,d){K.classList?Array.prototype.forEach.call(d,function(f){_.Q2(K,f)}):_.Ev(K,Array.prototype.filter.call($et(K),function(f){return!_.Bu(d,f)}).join(" "))};var hck=function(K){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=K.document},lw4=function(K,d){b7s(K);
var f=document.createElement("div"),H;(H=d.parentNode)==null||H.insertBefore(f,d);f.tabIndex=0;f.id="fc-focus-trap-pre-div";f=document.createElement("div");var D;(D=d.parentNode)==null||D.insertBefore(f,d.nextSibling);f.tabIndex=0;f.id="fc-focus-trap-post-div";var S=met(K,d),n=met(K,d,!0);S&&n&&(K.focusChangeHandler=function(){var u=K.document.activeElement;if(u)if(_.Tp(d,u))K.previouslyFocusedElement=u;else if(u===K.document.activeElement)switch(K.previouslyFocusedElement){case S:n.focus();K.previouslyFocusedElement=
n;break;default:S.focus(),K.previouslyFocusedElement=S}},K.document.addEventListener("focus",K.focusChangeHandler,!0),K.document.addEventListener("focusin",K.focusChangeHandler))},b7s=function(K){K.focusChangeHandler&&(document.removeEventListener("focus",K.focusChangeHandler,!0),document.removeEventListener("focusin",K.focusChangeHandler),K.focusChangeHandler=null);
var d;(d=document.getElementById("fc-focus-trap-pre-div"))==null||d.remove();var f;(f=document.getElementById("fc-focus-trap-post-div"))==null||f.remove()},WHN=function(K,d,f,H,D){f=f===void 0?!0:f;
var S;D=(S=D===void 0?null:D)!=null?S:met(K,d,H===void 0?!1:H);D!==null&&(D.focus(),f&&lw4(K,d))};
hck.prototype.disableButton=function(K,d){d=d===void 0?null:d;K.disabled=!0;d&&_.CZ(K,d)};
var met=function(K,d,f){f=f===void 0?!1:f;if(rGz(d)&&!f)return d;var H=f?[].slice.call(d.children,0).reverse():d.children;H=_.y(H);for(var D=H.next();!D.done;D=H.next())if(D=D.value,tlL(D)&&(D=met(K,D,f)))return D;return rGz(d)&&f?d:null};var Gft=function(K){this.originalBodyOverflow="";this.JSC$8005_domHelper=uW(K)};_.Bd(_.No,_.gG);_.V=_.No.prototype;_.V.JSC$8008_id_=0;_.V.disposeInternal=function(){_.No.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8006_listener_;delete this.handler_};
_.V.start=function(K){this.stop();this.JSC$8008_id_=Uv(this.callback_,K!==void 0?K:this.JSC$8006_interval_)};
_.V.stop=function(){this.isActive()&&_.Hu.clearTimeout(this.JSC$8008_id_);this.JSC$8008_id_=0};
_.V.fire=function(){this.stop();this.JSC$8008_doAction_()};
_.V.isActive=function(){return this.JSC$8008_id_!=0};
_.V.JSC$8008_doAction_=function(){this.JSC$8008_id_=0;this.JSC$8006_listener_&&this.JSC$8006_listener_.call(this.handler_)};_.Zt=function(K){_.gG.call(this);this.handler_=K;this.JSC$8009_keys_={}};
_.Bd(_.Zt,_.gG);var A59=[];_.Zt.prototype.listen=function(K,d,f,H){Array.isArray(d)||(d&&(A59[0]=d.toString()),d=A59);for(var D=0;D<d.length;D++){var S=_.zG(K,d[D],f||this.handleEvent,H||!1,this.handler_||this);if(!S)break;this.JSC$8009_keys_[S.key]=S}return this};
_.Zt.prototype.listenOnce=function(K,d,f,H){return Tys(this,K,d,f,H)};
var Tys=function(K,d,f,H,D,S){if(Array.isArray(f))for(var n=0;n<f.length;n++)Tys(K,d,f[n],H,D,S);else{d=IG(d,f,H||K.handleEvent,D,S||K.handler_||K);if(!d)return K;K.JSC$8009_keys_[d.key]=d}return K};
_.Zt.prototype.unlisten=function(K,d,f,H,D){if(Array.isArray(d))for(var S=0;S<d.length;S++)this.unlisten(K,d[S],f,H,D);else if(K=y48(K,d,f||this.handleEvent,_.H4(H)?!!H.capture:!!H,D||this.handler_||this))UP(K),delete this.JSC$8009_keys_[K.key];return this};
_.Zt.prototype.removeAll=function(){_.PR.forEach(this.JSC$8009_keys_,function(K,d){this.JSC$8009_keys_.hasOwnProperty(d)&&UP(K)},this);
this.JSC$8009_keys_={}};
_.Zt.prototype.disposeInternal=function(){_.Zt.superClass_.disposeInternal.call(this);this.removeAll()};
_.Zt.prototype.handleEvent=function(){throw Error("Sa");};var mo=function(){_.gG.call(this);this.services_={}};
_.Bd(mo,_.gG);_.V=mo.prototype;_.V.logger=null;_.V.connect=function(K){K&&K()};
_.V.isConnected=function(){return!0};
_.V.registerService=function(K,d,f){this.services_[K]={callback:d,objectPayload:!!f}};
_.V.getService=function(K,d){var f=this.services_[K];return f?f:this.defaultService_?{callback:_.uB(this.defaultService_,K),objectPayload:_.H4(d)}:null};
var r59=function(K,d){if(d&&typeof K==="string")try{return JSON.parse(K)}catch(f){return null}else if(!d&&typeof K!=="string")return(0,_.FJ)(K);return K};
mo.prototype.disposeInternal=function(){mo.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 lJ=function(K,d){this.sequence_=[];this.onCancelFunction_=K;this.defaultScope_=d||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};
lJ.prototype.cancel=function(K){if(this.fired_)this.result_ instanceof lJ&&this.result_.cancel();else{if(this.parent_){var d=this.parent_;delete this.parent_;K?d.cancel(K):(d.branches_--,d.branches_<=0&&d.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Wk(this))}};
lJ.prototype.continue_=function(K,d){this.blocked_=!1;qo8(this,K,d)};
var qo8=function(K,d,f){K.fired_=!0;K.result_=f;K.hadError_=!d;QEs(K)},CQf=function(K){if(K.fired_){if(!K.silentlyCanceled_)throw new jEJ(K);
K.silentlyCanceled_=!1}};
lJ.prototype.callback=function(K){CQf(this);qo8(this,!0,K)};
lJ.prototype.errback=function(K){CQf(this);qo8(this,!1,K)};
var xe2=function(K,d,f){GM(K,d,null,f)};
lJ.prototype.finally=function(K){var d=this;return new Promise(function(f,H){GM(d,function(D){K();f(D)},function(D){K();
H(D)})})};
var GM=function(K,d,f,H){var D=K.fired_;D||(d===f?d=f=ck(d):(d=ck(d),f=ck(f)));K.sequence_.push([d,f,H]);D&&QEs(K)};
lJ.prototype.then=function(K,d,f){var H,D,S=new _.ip(function(n,u){D=n;H=u});
GM(this,D,function(n){n instanceof Wk?S.cancel():H(n);return LH2},this);
return S.then(K,d,f)};
Rq8(lJ);var By6=function(K,d){d instanceof lJ?xe2(K,(0,_.Om)(d.branch,d)):xe2(K,function(){return d})};
lJ.prototype.branch=function(K){var d=new lJ;GM(this,d.callback,d.errback,d);K&&(d.parent_=this,this.branches_++);return d};
lJ.prototype.isError=function(K){return K instanceof Error};
var J5k=function(K){return xK(K.sequence_,function(d){return typeof d[1]==="function"})},LH2={},QEs=function(K){if(K.unhandledErrorId_&&K.fired_&&J5k(K)){var d=K.unhandledErrorId_,f=sE4[d];
f&&(_.Hu.clearTimeout(f.JSC$8026_id_),delete sE4[d]);K.unhandledErrorId_=0}K.parent_&&(K.parent_.branches_--,delete K.parent_);d=K.result_;for(var H=f=!1;K.sequence_.length&&!K.blocked_;){var D=K.sequence_.shift(),S=D[0],n=D[1];D=D[2];if(S=K.hadError_?n:S)try{var u=S.call(D||K.defaultScope_,d);u===LH2&&(u=void 0);u!==void 0&&(K.hadError_=K.hadError_&&(u==d||K.isError(u)),K.result_=d=u);if(Fbk(d)||typeof _.Hu.Promise==="function"&&d instanceof _.Hu.Promise)H=!0,K.blocked_=!0}catch(a){d=a,K.hadError_=
!0,J5k(K)||(f=!0)}}K.result_=d;H&&(u=(0,_.Om)(K.continue_,K,!0),H=(0,_.Om)(K.continue_,K,!1),d instanceof lJ?(GM(d,u,H),d.blocking_=!0):d.then(u,H));f&&(d=new kfs(d),sE4[d.JSC$8026_id_]=d,K.unhandledErrorId_=d.JSC$8026_id_)},jEJ=function(){_.KB.call(this)};
_.Bd(jEJ,_.KB);jEJ.prototype.message="Deferred has already fired";jEJ.prototype.name="AlreadyCalledError";var Wk=function(){_.KB.call(this)};
_.Bd(Wk,_.KB);Wk.prototype.message="Deferred was canceled";Wk.prototype.name="CanceledError";var kfs=function(K){this.JSC$8026_id_=_.Hu.setTimeout((0,_.Om)(this.throwError,this),0);this.JSC$8026_error_=K};
kfs.prototype.throwError=function(){delete sE4[this.JSC$8026_id_];throw this.JSC$8026_error_;};
var sE4={};var wF4={1:"NativeMessagingTransport"},Z7t=["pu","lru","pru","lpu","ppu"],pF6=function(){for(var K=10,d=ecv,f=d.length,H="";K-- >0;)H+=d.charAt(Math.floor(Math.random()*f));return H},ecv="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var AD=function(K){_.gG.call(this);this.JSC$8029_domHelper_=K||uW()};
_.Bd(AD,_.gG);AD.prototype.transportType=0;AD.prototype.getWindow=function(){return this.JSC$8029_domHelper_.getWindow()};
AD.prototype.getName=function(){return wF4[String(this.transportType)]||""};var TM=function(K,d,f,H,D){AD.call(this,f);this.JSC$8032_channel_=K;this.protocolVersion_=D||2;this.peerHostname_=d||"*";this.JSC$8032_eventHandler_=new _.Zt(this);this.maybeAttemptToConnectTimer_=new _.wX(100,this.getWindow());this.oneSidedHandshake_=!!H;this.setupAckReceived_=new lJ;this.setupAckSent_=new lJ;this.JSC$8032_connected_=new lJ;this.endpointId_=pF6();this.peerEndpointId_=null;this.oneSidedHandshake_?K2t(this.JSC$8032_channel_)==1?By6(this.JSC$8032_connected_,this.setupAckReceived_):
By6(this.JSC$8032_connected_,this.setupAckSent_):(By6(this.JSC$8032_connected_,this.setupAckReceived_),this.protocolVersion_==2&&By6(this.JSC$8032_connected_,this.setupAckSent_));xe2(this.JSC$8032_connected_,this.notifyConnected_,this);this.JSC$8032_connected_.callback(!0);this.JSC$8032_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Bd(TM,AD);TM.prototype.peerProtocolVersion_=null;TM.prototype.initialized_=!1;TM.prototype.transportType=1;var dmH={};TM.prototype.sendTimerId_=0;
var Dmf=function(K){var d=K.event_.data;if(typeof d!=="string")return!1;var f=d.indexOf("|"),H=d.indexOf(":");if(f==-1||H==-1)return!1;var D=d.substring(0,f);f=d.substring(f+1,H);d=d.substring(H+1);if(H=rv[D])return H.xpcDeliver(f,d,K.event_.origin),!0;H=f48(d)[0];for(var S in rv){var n=rv[S];if(K2t(n)==1&&!n.isConnected()&&f=="tp"&&(H=="SETUP"||H=="SETUP_NTPV2")&&H06(n,K.event_.origin))return delete rv[n.name],n.name=D,rv[D]=n,n.xpcDeliver(f,d),!0}return!1},V4s=function(K){K.protocolVersion_!=2||
K.peerProtocolVersion_!=null&&K.peerProtocolVersion_!=2||K.send("tp","SETUP_NTPV2,"+K.endpointId_);
K.peerProtocolVersion_!=null&&K.peerProtocolVersion_!=1||K.send("tp","SETUP")},S7v=function(K,d){if(K.protocolVersion_!=2||K.peerProtocolVersion_!=null&&K.peerProtocolVersion_!=2||d!=2){if(K.peerProtocolVersion_!=null&&K.peerProtocolVersion_!=1||d!=1)return;
K.send("tp","SETUP_ACK")}else K.send("tp","SETUP_ACK_NTPV2");K.setupAckSent_.fired_||K.setupAckSent_.callback(!0)},yAL=function(K,d){d>K.peerProtocolVersion_&&(K.peerProtocolVersion_=d);
K.peerProtocolVersion_==1&&(K.setupAckSent_.fired_||K.oneSidedHandshake_||K.setupAckSent_.callback(!0),K.peerEndpointId_=null)};
_.V=TM.prototype;_.V.connect=function(){var K=this.getWindow(),d=_.DL(K),f=dmH[d];typeof f!=="number"&&(f=0);f==0&&_.zG(K.postMessage?K:K.document,"message",Dmf,!1,TM);dmH[d]=f+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.V.maybeAttemptToConnect_=function(){var K=K2t(this.JSC$8032_channel_)==0;this.oneSidedHandshake_&&K||this.JSC$8032_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),V4s(this))};
_.V.send=function(K,d){var f=this.JSC$8032_channel_.peerWindowObject_;f&&(this.send=function(H,D){var S=this,n=this.JSC$8032_channel_.name;this.sendTimerId_=Uv(function(){S.sendTimerId_=0;try{var u=f.postMessage?f:f.document;u.postMessage&&u.postMessage(n+"|"+H+":"+D,S.peerHostname_)}catch(a){}},0)},this.send(K,d))};
_.V.notifyConnected_=function(){var K=this.JSC$8032_channel_,d=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;K.isConnected()||K.connectionDelay_&&K.connectionDelay_.isActive()||(K.state_=2,_.kh(K.connectionDelay_),d!==void 0?(K.connectionDelay_=new _.No(K.connectCb_,d),K.connectionDelay_.start()):(K.connectionDelay_=null,K.connectCb_()))};
_.V.disposeInternal=function(){if(this.initialized_){var K=this.getWindow(),d=_.DL(K),f=dmH[d];dmH[d]=f-1;f==1&&_.nx(K.postMessage?K:K.document,"message",Dmf,!1,TM)}this.sendTimerId_&&(_.Hu.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.kh(this.JSC$8032_eventHandler_);delete this.JSC$8032_eventHandler_;_.kh(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8032_connected_.cancel();delete this.JSC$8032_connected_;delete this.send;TM.superClass_.disposeInternal.call(this)};
var f48=function(K){K=K.split(",");K[1]=K[1]||null;return K};_.qf=function(K){if(K.getValues&&typeof K.getValues=="function")return K.getValues();if(typeof Map!=="undefined"&&K instanceof Map||typeof Set!=="undefined"&&K instanceof Set)return Array.from(K.values());if(typeof K==="string")return K.split("");if(_.d2(K)){for(var d=[],f=K.length,H=0;H<f;H++)d.push(K[H]);return d}return _.PR.getValues(K)};
_.nht=function(K){if(K.getKeys&&typeof K.getKeys=="function")return K.getKeys();if(!K.getValues||typeof K.getValues!="function"){if(typeof Map!=="undefined"&&K instanceof Map)return Array.from(K.keys());if(!(typeof Set!=="undefined"&&K instanceof Set)){if(_.d2(K)||typeof K==="string"){var d=[];K=K.length;for(var f=0;f<K;f++)d.push(f);return d}return _.PR.getKeys(K)}}};
_.i0k=function(K,d,f){if(K.forEach&&typeof K.forEach=="function")K.forEach(d,f);else if(_.d2(K)||typeof K==="string")Array.prototype.forEach.call(K,d,f);else for(var H=_.nht(K),D=_.qf(K),S=D.length,n=0;n<S;n++)d.call(f,D[n],H&&H[n],K)};var XU5,JD,kk,F24,cAt,a4v,uT6,RTH,I4N;
_.Q8=function(K,d){this.JSC$8037_domain_=this.userInfo_=this.scheme_="";this.JSC$8037_port_=null;this.fragment_=this.JSC$8037_path_="";this.JSC$8037_ignoreCase_=!1;var f;K instanceof _.Q8?(this.JSC$8037_ignoreCase_=d!==void 0?d:K.JSC$8037_ignoreCase_,_.Qh(this,K.scheme_),this.userInfo_=K.userInfo_,_.jU(this,K.JSC$8037_domain_),_.Cx(this,K.JSC$8037_port_),_.xk(this,K.getPath()),_.Lx(this,K.JSC$8037_queryData_.clone()),_.Bk(this,K.fragment_)):K&&(f=_.B_(String(K)))?(this.JSC$8037_ignoreCase_=!!d,_.Qh(this,
f[1]||"",!0),this.userInfo_=JD(f[2]||""),_.jU(this,f[3]||"",!0),_.Cx(this,f[4]),_.xk(this,f[5]||"",!0),_.Lx(this,f[6]||"",!0),_.Bk(this,f[7]||"",!0)):(this.JSC$8037_ignoreCase_=!!d,this.JSC$8037_queryData_=new _.sv(null,this.JSC$8037_ignoreCase_))};
_.Q8.prototype.toString=function(){var K=[],d=this.scheme_;d&&K.push(kk(d,cAt,!0),":");var f=this.JSC$8037_domain_;if(f||d=="file")K.push("//"),(d=this.userInfo_)&&K.push(kk(d,cAt,!0),"@"),K.push(_.qk(f).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f=this.JSC$8037_port_,f!=null&&K.push(":",String(f));if(f=this.getPath())this.JSC$8037_domain_&&f.charAt(0)!="/"&&K.push("/"),K.push(kk(f,f.charAt(0)=="/"?uT6:a4v,!0));(f=this.JSC$8037_queryData_.toString())&&K.push("?",f);(f=this.fragment_)&&K.push("#",kk(f,
I4N));return K.join("")};
_.Q8.prototype.resolve=function(K){var d=this.clone(),f=!!K.scheme_;f?_.Qh(d,K.scheme_):f=!!K.userInfo_;f?d.userInfo_=K.userInfo_:f=!!K.JSC$8037_domain_;f?_.jU(d,K.JSC$8037_domain_):f=K.JSC$8037_port_!=null;var H=K.getPath();if(f)_.Cx(d,K.JSC$8037_port_);else if(f=!!K.JSC$8037_path_){if(H.charAt(0)!="/")if(this.JSC$8037_domain_&&!this.JSC$8037_path_)H="/"+H;else{var D=d.getPath().lastIndexOf("/");D!=-1&&(H=d.getPath().slice(0,D+1)+H)}D=H;if(D==".."||D==".")H="";else if(_.aX(D,"./")||_.aX(D,"/.")){H=
_.Sp(D,"/");D=D.split("/");for(var S=[],n=0;n<D.length;){var u=D[n++];u=="."?H&&n==D.length&&S.push(""):u==".."?((S.length>1||S.length==1&&S[0]!="")&&S.pop(),H&&n==D.length&&S.push("")):(S.push(u),H=!0)}H=S.join("/")}else H=D}f?_.xk(d,H):f=K.JSC$8037_queryData_.toString()!=="";f?_.Lx(d,K.JSC$8037_queryData_.clone()):f=!!K.fragment_;f&&_.Bk(d,K.fragment_);return d};
_.Q8.prototype.clone=function(){return new _.Q8(this)};
_.Qh=function(K,d,f){K.scheme_=f?JD(d,!0):d;K.scheme_&&(K.scheme_=K.scheme_.replace(/:$/,""));return K};
_.jU=function(K,d,f){K.JSC$8037_domain_=f?JD(d,!0):d;return K};
_.Cx=function(K,d){if(d){d=Number(d);if(isNaN(d)||d<0)throw Error("Ta`"+d);K.JSC$8037_port_=d}else K.JSC$8037_port_=null;return K};
_.Q8.prototype.getPath=function(){return this.JSC$8037_path_};
_.xk=function(K,d,f){K.JSC$8037_path_=f?JD(d,!0):d;return K};
_.Lx=function(K,d,f){d instanceof _.sv?(K.JSC$8037_queryData_=d,Um9(K.JSC$8037_queryData_,K.JSC$8037_ignoreCase_)):(f||(d=kk(d,RTH)),K.JSC$8037_queryData_=new _.sv(d,K.JSC$8037_ignoreCase_));return K};
_.Cm=function(K,d,f){K.JSC$8037_queryData_.set(d,f);return K};
_.jh=function(K,d){return K.JSC$8037_queryData_.get(d)};
_.Bk=function(K,d,f){K.fragment_=f?JD(d):d;return K};
_.wv=function(K){_.Cm(K,"zx",qo());return K};
_.QX=function(K,d){return K instanceof _.Q8?K.clone():new _.Q8(K,d)};
XU5=function(K,d){K instanceof _.Q8||(K=_.QX(K));d instanceof _.Q8||(d=_.QX(d));return K.resolve(d)};
JD=function(K,d){return K?d?decodeURI(K.replace(/%25/g,"%2525")):decodeURIComponent(K):""};
kk=function(K,d,f){return typeof K==="string"?(K=encodeURI(K).replace(d,F24),f&&(K=K.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),K):null};
F24=function(K){K=K.charCodeAt(0);return"%"+(K>>4&15).toString(16)+(K&15).toString(16)};
cAt=/[#\/\?@]/g;a4v=/[#\?:]/g;uT6=/[#\?]/g;RTH=/[#\?@]/g;I4N=/#/g;_.sv=function(K,d){this.count_=this.keyMap_=null;this.encodedQuery_=K||null;this.JSC$8038_ignoreCase_=!!d};
_.Z5=function(K){K.keyMap_||(K.keyMap_=new Map,K.count_=0,K.encodedQuery_&&c64(K.encodedQuery_,function(d,f){K.add(wF(d),f)}))};
_.V=_.sv.prototype;_.V.getCount=function(){_.Z5(this);return this.count_};
_.V.add=function(K,d){_.Z5(this);this.encodedQuery_=null;K=eU(this,K);var f=this.keyMap_.get(K);f||this.keyMap_.set(K,f=[]);f.push(d);this.count_+=1;return this};
_.V.remove=function(K){_.Z5(this);K=eU(this,K);return this.keyMap_.has(K)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(K).length,this.keyMap_.delete(K)):!1};
_.V.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.V.isEmpty=function(){_.Z5(this);return this.count_==0};
_.V.containsKey=function(K){_.Z5(this);K=eU(this,K);return this.keyMap_.has(K)};
_.V.containsValue=function(K){var d=this.getValues();return _.Bu(d,K)};
_.V.forEach=function(K,d){_.Z5(this);this.keyMap_.forEach(function(f,H){f.forEach(function(D){K.call(d,D,H,this)},this)},this)};
_.V.getKeys=function(){_.Z5(this);for(var K=Array.from(this.keyMap_.values()),d=Array.from(this.keyMap_.keys()),f=[],H=0;H<d.length;H++)for(var D=K[H],S=0;S<D.length;S++)f.push(d[H]);return f};
_.V.getValues=function(K){_.Z5(this);var d=[];if(typeof K==="string")this.containsKey(K)&&(d=d.concat(this.keyMap_.get(eU(this,K))));else{K=Array.from(this.keyMap_.values());for(var f=0;f<K.length;f++)d=d.concat(K[f])}return d};
_.V.set=function(K,d){_.Z5(this);this.encodedQuery_=null;K=eU(this,K);this.containsKey(K)&&(this.count_-=this.keyMap_.get(K).length);this.keyMap_.set(K,[d]);this.count_+=1;return this};
_.V.get=function(K,d){if(!K)return d;K=this.getValues(K);return K.length>0?String(K[0]):d};
_.zTv=function(K,d,f){K.remove(d);f.length>0&&(K.encodedQuery_=null,K.keyMap_.set(eU(K,d),_.ep(f)),K.count_+=f.length)};
_.sv.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var K=[],d=Array.from(this.keyMap_.keys()),f=0;f<d.length;f++){var H=d[f],D=_.qk(H);H=this.getValues(H);for(var S=0;S<H.length;S++){var n=D;H[S]!==""&&(n+="="+_.qk(H[S]));K.push(n)}}return this.encodedQuery_=K.join("&")};
_.sv.prototype.clone=function(){var K=new _.sv;K.encodedQuery_=this.encodedQuery_;this.keyMap_&&(K.keyMap_=new Map(this.keyMap_),K.count_=this.count_);return K};
var eU=function(K,d){d=String(d);K.JSC$8038_ignoreCase_&&(d=d.toLowerCase());return d},Um9=function(K,d){d&&!K.JSC$8038_ignoreCase_&&(_.Z5(K),K.encodedQuery_=null,K.keyMap_.forEach(function(f,H){var D=H.toLowerCase();
H!=D&&(this.remove(H),_.zTv(this,D,f))},K));
K.JSC$8038_ignoreCase_=d};
_.sv.prototype.extend=function(K){for(var d=0;d<arguments.length;d++)_.i0k(arguments[d],function(f,H){this.add(H,f)},this)};var px=function(K,d){mo.call(this);for(var f=0,H;H=Z7t[f];f++)if(H in K&&!/^https?:\/\//.test(K[H]))throw Error("Va`"+K[H]+"`"+H);this.cfg_=K;this.name=this.cfg_.cn||pF6();this.JSC$8033_domHelper_=d||uW();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Zt(this);K.lpu=K.lpu||n88(this.JSC$8033_domHelper_.getWindow().location.href)+"/robots.txt";K.ppu=K.ppu||n88(K.pu||"")+"/robots.txt";rv[this.name]=this;y48(window,"unload",XRN)||IG(window,"unload",XRN)};
_.Bd(px,mo);var vhk=RegExp("^%*tp$"),M4N=RegExp("^%+tp$");_.V=px.prototype;_.V.connectionDelay_=null;_.V.peerWindowDeferred_=null;_.V.transport_=null;_.V.state_=1;_.V.isConnected=function(){return this.state_==2};
_.V.peerWindowObject_=null;_.V.iframeElement_=null;_.V.connect=function(K){this.connectCb_=K||_.SO;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?xe2(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.V.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8033_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var K=this.iframeElement_.contentWindow;K||(K=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=K}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");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$8033_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new TM(this,this.cfg_.ph,this.JSC$8033_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.V.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.kh(this.transport_);this.connectCb_=this.transport_=null;_.kh(this.connectionDelay_);this.connectionDelay_=null};
_.V.send=function(K,d){if(this.isConnected()){try{var f=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(D){f=!1}if(f){_.H4(d)&&(d=(0,_.FJ)(d));f=this.transport_;var H=f.send;vhk.test(K)&&(K="%"+K);K=K.replace(/[%:|]/g,encodeURIComponent);H.call(f,K,d)}else this.close()}};
_.V.xpcDeliver=function(K,d,f){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Om)(this.xpcDeliver,this,K,d,f));else if(H06(this,f)&&!this.isDisposed()&&this.state_!=3)if(K&&K!="tp")this.isConnected()&&(K=K.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),K=M4N.test(K)?K.substring(1):K,K=this.getService(K,d))&&(d=r59(d,K.objectPayload),d!=null&&K.callback(d));else switch(K=this.transport_,f=f48(d),d=f[1],f[0]){case "SETUP_ACK":yAL(K,1);K.setupAckReceived_.fired_||K.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":K.protocolVersion_==2&&(yAL(K,2),K.setupAckReceived_.fired_||K.setupAckReceived_.callback(!0));break;case "SETUP":yAL(K,1);S7v(K,1);break;case "SETUP_NTPV2":K.protocolVersion_==2&&(f=K.peerProtocolVersion_,yAL(K,2),S7v(K,2),f!=1&&K.peerEndpointId_==null||K.peerEndpointId_==d||V4s(K),K.peerEndpointId_=d)}};
var K2t=function(K){var d=K.cfg_.role;return typeof d==="number"?d:window.parent==K.peerWindowObject_?1:0},H06=function(K,d){var f=K.cfg_.ph;
return _.cu(d==null?"":String(d))||_.cu(f==null?"":String(f))||d==K.cfg_.ph};
px.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete rv[this.name];_.kh(this.peerLoadHandler_);delete this.peerLoadHandler_;px.superClass_.disposeInternal.call(this)};
var XRN=function(){for(var K in rv)_.kh(rv[K])},rv={};var gh4=function(K,d){this.JSC$8047_win=K;this.allowAdsHttpEndpoint=d;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8047_domHelper=uW(K);this.scrollManager=new Gft(K);this.accessibilityManager=new hck(K);PWL(this)},PWL=function(K){var d=function(){K.allowAdsPopup&&K.allowAdsPopup.style.setProperty("display","none","important");
K.wallElement.style.setProperty("display","","important");b7s(K.accessibilityManager);WHN(K.accessibilityManager,K.wallElement.querySelector(".fc-dialog-container"),!1,!1,K.wallElement.querySelector(".fc-button-whitelist"));var D=K.scrollManager;D.JSC$8005_domHelper.JSC$7335_document_.body.style.overflow=D.originalBodyOverflow};
K.allowAdsPopup=K.JSC$8047_domHelper.JSC$7337_createDom("DIV",{"class":"fc-whitelist-root"});K.allowAdsPopup.style.setProperty("display","none","important");K.JSC$8047_domHelper.appendChild(K.JSC$8047_domHelper.JSC$7335_document_.body,K.allowAdsPopup);var f=K.JSC$8047_domHelper.JSC$7337_createDom("DIV",{"class":"fc-dialog-overlay"});K.JSC$8047_domHelper.appendChild(K.allowAdsPopup,f);var H=K.JSC$8047_domHelper.JSC$7337_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:d});K.JSC$8047_domHelper.appendChild(K.allowAdsPopup,
H);f=K.JSC$8047_domHelper.JSC$7337_createDom("IFRAME");f.className="fc-whitelist-dialog";f.frameBorder="0";f.id="fc-whitelist-iframe";f.tabIndex="0";_.$G(f,K.allowAdsHttpEndpoint);K.JSC$8047_domHelper.appendChild(H,f);H={};H.pu=_.nM(K.allowAdsHttpEndpoint).toString();H.tp=1;H.cn="fc-whitelist-channel";H.ifrid=f.id;H.osh=!0;K.allowAdsCrossPageChannel=new px(H);K.allowAdsCrossPageChannel.registerService("close",d);K.allowAdsCrossPageChannel.registerService("refresh",function(){K.JSC$8047_win.location.reload()});
K.allowAdsCrossPageChannel.registerService("resize",function(D){if(D){var S=K.allowAdsPopup.querySelector(".fc-whitelist-dialog");D.width&&S.style.setProperty("width",D.width,"important");D.height&&S.style.setProperty("height",D.height,"important")}},!0);
K.allowAdsCrossPageChannel.connect()};
gh4.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8047_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var KG=window,dT=document,O06=KG.location,N0N=function(){},Y7s=/\[native code\]/,fG=function(K,d,f){return K[d]=K[d]||f},t4B=function(K){K=K.sort();
for(var d=[],f=void 0,H=0;H<K.length;H++){var D=K[H];D!=f&&d.push(D);f=D}return d},D9=function(){var K;
if((K=Object.create)&&Y7s.test(K))K=K(null);else{K={};for(var d in K)K[d]=void 0}return K},Vt=fG(KG,"gapi",{});var SI={};SI=fG(KG,"___jsl",D9());fG(SI,"I",0);fG(SI,"hel",10);var ohk=function(){var K=O06.href;if(SI.dpo)var d=SI.h;else{d=SI.h;var f=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),H=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(K=K&&(f.exec(K)||H.exec(K)))try{d=decodeURIComponent(K[2])}catch(D){}}return d},$mL=function(K){var d=fG(SI,"PQ",[]);
SI.PQ=[];var f=d.length;if(f===0)K();else for(var H=0,D=function(){++H===f&&K()},S=0;S<f;S++)d[S](D)},EhB=function(K){return fG(fG(SI,"H",D9()),K,D9())};var nG=function(K){this.JSC$8049_obj_=K};
nG.prototype.value=function(){return this.JSC$8049_obj_};
nG.prototype.getWidth=function(){return this.JSC$8049_obj_.width};
nG.prototype.getHeight=function(){return this.JSC$8049_obj_.height};
nG.prototype.getStyle=function(){return this.JSC$8049_obj_.style};var hTN=function(K){this.JSC$8052_obj_=K||{}};
_.V=hTN.prototype;_.V.value=function(){return this.JSC$8052_obj_};
_.V.setUrl=function(K){this.JSC$8052_obj_.url=K;return this};
_.V.getUrl=function(){return this.JSC$8052_obj_.url};
_.V.getStyle=function(){return this.JSC$8052_obj_.style};
_.V.setId=function(K){this.JSC$8052_obj_.id=K;return this};
_.V.getId=function(){return this.JSC$8052_obj_.id};
_.V.getContext=function(){return this.JSC$8052_obj_.context};
var b09=function(K){K.JSC$8052_obj_.attributes=K.JSC$8052_obj_.attributes||{};return new nG(K.JSC$8052_obj_.attributes)};var mmt=function(){hTN.apply(this,arguments)};
_.O(mmt,hTN);var l4v=fG(SI,"perf",D9());fG(l4v,"g",D9());var W2s=fG(l4v,"i",D9());fG(l4v,"r",[]);D9();D9();var AAN=function(K,d,f){d&&d.length>0&&(d=GjL(d),f&&f.length>0&&(d+="___"+GjL(f)),d.length>28&&(d=d.substr(0,28)+(d.length-28)),f=d,d=fG(W2s,"_p",D9()),fG(d,f,D9())[K]=(new Date).getTime(),d=l4v.r,typeof d==="function"?d(K,"_p",f):d.push([K,"_p",f]))},GjL=function(K){return K.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var T0t=D9(),rAk=[],iS=function(K){throw Error("Ya`"+K);};
rAk.push(["jsl",function(K){for(var d in K)if(Object.prototype.hasOwnProperty.call(K,d)){var f=K[d];typeof f=="object"?SI[d]=fG(SI,d,[]).concat(f):fG(SI,d,f)}if(d=K.u)K=fG(SI,"us",[]),K.push(d),(d=/^https:(.*)$/.exec(d))&&K.push("http:"+d[1])}]);
var q7k=/^(\/[a-zA-Z0-9_\-]+)+$/,QL6=[/\/amp\//,/\/amp$/,/^\/amp$/],jLv=/^[a-zA-Z0-9\-_\.,!]+$/,CW6=/^gapi\.loaded_[0-9]+$/,xm8=/^[a-zA-Z0-9,._-]+$/,sLk=function(K,d,f,H,D){var S=K.split(";"),n=S.shift(),u=T0t[n],a=null;u?a=u(S,d,f,H):iS("no hint processor for: "+n);a||iS("failed to generate load url");d=a;f=d.match(L2B);(H=d.match(B0v))&&H.length===1&&JAs.test(d)&&f&&f.length===1||iS("failed sanity: "+K);try{K="?";if(D&&D.length>0){Vv(D);var R=D.join(",");a=a+"?le="+R;K="&"}if(SI.rol){var F=SI.ol;
F&&F.length&&(a=""+a+K+"ol="+F.length)}}catch(z){}return a},Z0s=function(K,d,f,H){K=kjB(K);
CW6.test(f)||iS("invalid_callback");d=wRB(d);H=H&&H.length?wRB(H):null;var D=function(S){return encodeURIComponent(S).replace(/%2C/g,",")};
return[encodeURIComponent(K.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",D(K.version),"/m=",D(d),H?"/exm="+D(H):"","/rt=j/sv=1/d=1/ed=1",K.activeMods?"/am="+D(K.activeMods):"",K.resourceSig?"/rs="+D(K.resourceSig):"",K.zcms?"/t="+D(K.zcms):"","/cb=",D(f)].join("")},kjB=function(K){K.charAt(0)!=="/"&&iS("relative path");
for(var d=K.substring(1).split("/"),f=[];d.length;){K=d.shift();if(!K.length||K.indexOf(".")==0)iS("empty/relative directory");else if(K.indexOf("=")>0){d.unshift(K);break}f.push(K)}K={};for(var H=0,D=d.length;H<D;++H){var S=d[H].split("="),n=decodeURIComponent(S[0]),u=decodeURIComponent(S[1]);S.length==2&&n&&u&&(K[n]=K[n]||u)}d="/"+f.join("/");q7k.test(d)||iS("invalid_prefix");f=0;for(H=QL6.length;f<H;++f)QL6[f].test(d)&&iS("invalid_prefix");f=eTH(K,"k",!0);H=eTH(K,"am");D=eTH(K,"rs");K=eTH(K,"t");
return{pathPrefix:d,version:f,activeMods:H,resourceSig:D,zcms:K}},wRB=function(K){for(var d=[],f=0,H=K.length;f<H;++f){var D=K[f].replace(/\./g,"_").replace(/-/g,"_");
xm8.test(D)&&d.push(D)}return d.join(",")},eTH=function(K,d,f){K=K[d];
!K&&f&&iS("missing: "+d);if(K){if(jLv.test(K))return K;iS("invalid: "+d)}return null},JAs=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,B0v=/\/cb=/g,L2B=/\/\//g;
T0t.m=function(K,d,f,H){(K=K[0])||iS("missing_hint");return"https://apis.google.com"+Z0s(K,d,f,H)};
var pRJ=decodeURI("%73cript"),K$v=/^[-+_0-9\/A-Za-z]+={0,2}$/,dok=function(K,d){for(var f=[],H=0;H<K.length;++H){var D=K[H],S;if(S=D){a:{for(S=0;S<d.length;S++)if(d[S]===D)break a;S=-1}S=S<0}S&&f.push(D)}return f},fqs=function(){var K=SI.nonce;
return K!==void 0?K&&K===String(K)&&K.match(K$v)?K:SI.nonce=null:dT.querySelector?(K=dT.querySelector("script[nonce]"))?(K=K.nonce||K.getAttribute("nonce")||"",K&&K===String(K)&&K.match(K$v)?SI.nonce=K:SI.nonce=null):null:null},Vht=function(K){if(dT.readyState!="loading")HmN(K);
else{var d=fqs(),f="";d!==null&&(f=' nonce="'+d+'"');K="<"+pRJ+' src="'+encodeURI(K)+'"'+f+"></"+pRJ+">";dT.write(Do8?Do8.createHTML(K):K)}},HmN=function(K){var d=dT.createElement(pRJ);
d.setAttribute("src",Do8?Do8.createScriptURL(K):K);K=fqs();K!==null&&d.setAttribute("nonce",K);d.async="true";(K=dT.getElementsByTagName(pRJ)[0])?K.parentNode.insertBefore(d,K):(dT.head||dT.body||dT.documentElement).appendChild(d)},ys9=function(K,d,f){SmB(function(){var H=d===ohk()?fG(Vt,"_",D9()):D9();
H=fG(EhB(d),"_",H);K(H)},f)},unp=function(K,d){var f=d||{};
typeof d=="function"&&(f={},f.callback=d);var H=(d=f)&&d._c;if(H)for(var D=0;D<rAk.length;D++){var S=rAk[D][0],n=rAk[D][1];n&&Object.prototype.hasOwnProperty.call(H,S)&&n(H[S],K,d)}d=[];K?d=K.split(":"):f.features&&(d=f.features);if(!(K=f.h)&&(K=ohk(),!K))throw Error("Za");nlL(d||[],f,K)},nlL=function(K,d,f){K=t4B(K)||[];
var H=d.callback,D=d.config,S=d.timeout,n=d.ontimeout,u=d.onerror,a=void 0;typeof u=="function"&&(a=u);var R=null,F=!1;if(S&&!n||!S&&n)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";u=fG(EhB(f),"r",[]).sort();var z=fG(EhB(f),"L",[]).sort(),v=SI.le||[],g=[].concat(u),N=function(J,L){if(F)return 0;KG.clearTimeout(R);z.push.apply(z,h);var fB=((Vt||{}).config||{}).update;fB?fB(D):D&&fG(SI,"cu",[]).push(D);if(L){AAN("me0",J,g);try{ys9(L,f,a)}finally{AAN("me1",J,g)}}return 1};
S>0&&(R=KG.setTimeout(function(){F=!0;n()},S));
var h=dok(K,z);if(h.length){h=dok(K,u);var m=fG(SI,"CP",[]),T=m.length;m[T]=function(J){if(!J)return 0;AAN("ml1",h,g);var L=function(w){m[T]=null;N(h,J)&&$mL(function(){H&&H();w()})},fB=function(){var w=m[T+1];
w&&w()};
T>0&&m[T-1]?m[T]=function(){L(fB)}:L(fB)};
if(h.length){var r="loaded_"+SI.I++;Vt[r]=function(J){m[T](J);Vt[r]=null};
K=sLk(f,h,"gapi."+r,u,v);u.push.apply(u,h);AAN("ml0",h,g);d.sync||KG.___gapisync?Vht(K):HmN(K)}else m[T](N0N)}else N(h)&&H&&H()},im2;
var cs2=null,uEs=_.Hu.trustedTypes;if(uEs&&uEs.createPolicy){try{cs2=uEs.createPolicy("goog#gapi",{createHTML:m$5,createScript:m$5,createScriptURL:m$5})}catch(K){_.Hu.console&&_.Hu.console.error(K.message)}im2=cs2}else im2=cs2;var Do8=im2,SmB=function(K,d){if(SI.hee&&SI.hel>0)try{return K()}catch(f){d&&d(f),SI.hel--,unp("debug_error",function(){try{window.___jsl.hefn(f)}catch(H){throw f;}})}else try{return K()}catch(f){throw d&&d(f),f;
}},aq8=Vt.load;
aq8&&fG(SI,"ol",[]).push(aq8);Vt.load=function(K,d){return SmB(function(){return unp(K,d)})};var KDn;var Iqv=function(K,d){this.serviceId_=K;this.moduleId_=d||null};
Iqv.prototype.toString=function(){return this.serviceId_};
Iqv.prototype.getModuleId=function(){return this.moduleId_};var SNo=new Iqv("MpJwZc","MpJwZc");var n75=new _.Hk("a"),y3z=function(K,d,f){_.D5.call(this,K,d);this.node=d;this.kind=f};
_.O(y3z,_.D5);var Uos=function(){this.JSC$8065_keys_={};this.urlPrefix_="";this.JSC$8065_queryData_={}};
Uos.prototype.toString=function(){var K=this.urlPrefix_+RQt(this),d=_.c6(this.JSC$8065_queryData_),f="";d!=""&&(f="?"+d);return K+f};
var F$9=function(K){K=ct(K,"md");return!!K&&K!=="0"},RQt=function(K){var d=[],f=(0,_.Om)(function(H){this.JSC$8065_keys_[H]!==void 0&&d.push(H+"="+this.JSC$8065_keys_[H])},K);
F$9(K)?(f("md"),f("k"),f("ck"),f("am"),f("rs"),f("gssmodulesetproto"),f("slk"),f("dti")):(f("sdch"),f("k"),f("ck"),f("am"),f("rt"),"d"in K.JSC$8065_keys_||uS(K,"d","0"),f("d"),f("exm"),f("excm"),(K.JSC$8065_keys_.excm||K.JSC$8065_keys_.exm)&&d.push("ed=1"),f("im"),f("dg"),f("sm"),ct(K,"br")!="1"&&ct(K,"br")!="0"||f("br"),f("br-d"),ct(K,"rb")=="1"&&f("rb"),ct(K,"zs")!=="0"&&f("zs"),zQN(K)!==""&&f("wt"),f("gssmodulesetproto"),f("ujg"),f("sp"),f("rs"),f("cb"),f("ee"),f("slk"),f("dti"),f("m"));return d.join("/")},
ct=function(K,d){return K.JSC$8065_keys_[d]?K.JSC$8065_keys_[d]:null},uS=function(K,d,f){f?K.JSC$8065_keys_[d]=f:delete K.JSC$8065_keys_[d]},Xyt=function(K,d){K.urlPrefix_=d},vl2=function(K,d){d&&d.length>0?(d.sort(),uS(K,"exm",d.join(","))):uS(K,"exm",null)},Mhf=function(K,d){d&&d.length>0?(d.sort(),uS(K,"excm",d.join(","))):uS(K,"excm",null)},Plk=function(K){return(K=ct(K,"m"))?K.split(","):[]},zQN=function(K){switch(ct(K,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},glH=function(K,d){var f=Object.keys(d).filter(function(H){return!!Object.keys(d[H]).length}).map(function(H){var D=Object.keys(d[H]);
D.length>1&&D.sort();return H+":"+D.join(",")});
f.sort();uS(K,"ee",f.join(";"))},BFB=function(K){var d=ct(K,"ee");
if(!d)return{};K={};d=_.y(d.split(";"));for(var f=d.next();!f.done;f=d.next()){var H=_.y(f.value.split(":"));f=H.next().value;H=H.next().value;K[f]={};H=_.y(H.split(","));for(var D=H.next();!D.done;D=H.next())K[f][D.value]=!0}return K},Om8=function(K){delete K.JSC$8065_keys_.m;
delete K.JSC$8065_keys_.exm;delete K.JSC$8065_keys_.ed};
Uos.prototype.clone=function(){var K=new Uos;K.JSC$8065_keys_=Object.assign({},this.JSC$8065_keys_);K.urlPrefix_=this.urlPrefix_;K.JSC$8065_queryData_=Object.assign({},this.JSC$8065_queryData_);return K};
var JRn=function(K,d){d=d===void 0?!0:d;var f=NGs(K),H=new Uos,D=_.B_(f)[5];_.PR.forEach(Ymf,function(n){var u=D.match("/"+n+"=([^/]+)");u&&uS(H,n,u[1])});
var S="";S=K.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Xyt(H,K.substr(0,K.indexOf(S)+S.length));if(!d)return H;(K=_.B_(f)[6]||null)&&c64(K,function(n,u){H.JSC$8065_queryData_[n]=u});
return H},CxG=function(K){K=_.ny(NGs(K));
return K===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(K)?/\/k=/.test(K):!1},NGs=function(K){return K.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?K.substr(65):K},Ymf={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},thB=RegExp("^loaded_(g|h)?[_\\d]+$");_.aZ=function(K){this.JSC$8077_id_=K;this.opts={}};
_.aZ.prototype.JSC$8079_setLabel=function(K){this.label_=K||void 0;return this};
_.aZ.prototype.addUploadMetadata=function(K,d){var f=this.opts.data||{};f[K]=d;this.opts.data=f;return this};
var ols=function(K){var d=_.PR.filter(K.opts,function(f){return f!==null});
d=_.PR.isEmpty(d)?null:d;K=[K.JSC$8077_id_,K.label_,d];d=XuO(K);return K=K.slice(0,d+1)};
_.aZ.prototype.toString=function(){var K=ols(this);return"("+_.O7(K,function(d){return JSON.stringify(d)}).join(",")+")"};
_.aZ.prototype.getId=function(){return this.JSC$8077_id_};
_.aZ.prototype.getOptions=function(){return _.PR.clone(this.opts)};var IZ=function(){_.aZ.call(this,"image-search")};
_.O(IZ,_.aZ);IZ.prototype.setSize=function(K){this.opts.imgsz=K;return this};
IZ.prototype.JSC$8079_setLabel=function(K){_.aZ.prototype.JSC$8079_setLabel.call(this,K);return this};
IZ.prototype.addUploadMetadata=function(K,d){_.aZ.prototype.addUploadMetadata.call(this,K,d);return this};var Ut=function(){_.aZ.call(this,"maps")};
_.O(Ut,_.aZ);Ut.prototype.setZoom=function(K){this.opts.zoom=K;return this};
Ut.prototype.JSC$8079_setLabel=function(K){_.aZ.prototype.JSC$8079_setLabel.call(this,K);return this};
Ut.prototype.addUploadMetadata=function(K,d){_.aZ.prototype.addUploadMetadata.call(this,K,d);return this};_.RZ=function(){_.aZ.call(this,"photos")};
_.O(_.RZ,_.aZ);_.RZ.prototype.JSC$8079_setLabel=function(K){_.aZ.prototype.JSC$8079_setLabel.call(this,K);return this};
_.RZ.prototype.addUploadMetadata=function(K,d){_.aZ.prototype.addUploadMetadata.call(this,K,d);return this};var Fn=function(){_.aZ.call(this,"url")};
_.O(Fn,_.aZ);var $oJ=function(){var K=new Fn;K.opts.type="video";K.opts.site="youtube.com";return K};
Fn.prototype.JSC$8079_setLabel=function(K){_.aZ.prototype.JSC$8079_setLabel.call(this,K);return this};
Fn.prototype.addUploadMetadata=function(K,d){_.aZ.prototype.addUploadMetadata.call(this,K,d);return this};var zd=function(){_.aZ.call(this,"video-search")};
_.O(zd,_.aZ);var El6=function(){var K=new zd;K.opts.site="youtube.com";return K};
zd.prototype.JSC$8079_setLabel=function(K){_.aZ.prototype.JSC$8079_setLabel.call(this,K);return this};
zd.prototype.addUploadMetadata=function(K,d){_.aZ.prototype.addUploadMetadata.call(this,K,d);return this};var hQ9=function(){_.aZ.call(this,"web")};
_.O(hQ9,_.aZ);hQ9.prototype.JSC$8079_setLabel=function(K){_.aZ.prototype.JSC$8079_setLabel.call(this,K);return this};
hQ9.prototype.addUploadMetadata=function(K,d){_.aZ.prototype.addUploadMetadata.call(this,K,d);return this};var Xn=function(){this.items_=[];this.opts={}},bmH=function(K){switch(K){case "image-search":return new IZ;
case "maps":return new Ut;case "photos":return new _.RZ;case "url":return new Fn;case "video-search":return new zd;case "web":return new hQ9}return new _.aZ(K)};
Xn.prototype.addView=function(K){this.items_.push(typeof K==="string"?bmH(K):K);return this};
var mof=function(K){return"("+_.O7(K.items_,function(d){return d.toString()}).join(",")+")"};
Xn.prototype.toString=function(){return mof(this)};
Xn.prototype.getViews=function(K,d){d=d===void 0?[]:d;for(var f=this.items_,H=0;H<f.length;H++){var D=f[H];D instanceof Xn?D.getViews(K,d):D.getId()==K&&d.push(D)}return d};
Xn.prototype.getOptions=function(){return _.PR.clone(this.opts)};var Wy=function(K){this.basePickerUrl_=K||"https://docs.google.com/picker";this.nav_=new Xn};
Wy.prototype.nav_=null;Wy.prototype.addView=function(K){this.nav_.addView(K);return this};
Wy.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Wy.prototype.getViews=function(K){return this.nav_.getViews(K)};
_.lqJ=function(K,d){K.callback_=d;return K};var W$v=new Map;W$v.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");W$v.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");W$v.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Gpk=new Set;Gpk.add("application/vnd.google-apps.kix");Gpk.add("application/vnd.google-apps.ritz");Gpk.add("application/vnd.google-apps.punch");var sQB=function(K,d,f){var H=f&&_.Xo(f,1);f=Ast(f);var D=K[0].getId();switch(_.vY(D,2)){case 13:return TGH(K,d,H,f);case 3:return rss(K,d,H,f);case 10:return qmv(K,d,H,f);case 27:return qmv(K,d,H,f);case 12:return QQ6(K,d);case 2:return jQk(K,d,H,f);case 5:return ClL(K,d,H,f);case 9:return xoN(K,d,H,f);case 6:return L$8(K,d,H,f);case 25:return BGB(K,d,H,f);case 1:return _.V5(K[0],YsB,26)?Jsv(K,d,H,f):qmv(K,d,H,f);default:return{}}},L$8=function(K,d,f,H){K=K.map(function(D){return{id:D.getId().getId(),
serviceId:"youtube",name:D.getName(),description:_.Xo(D,3),type:vt(D),lastEditedUtc:_.N2N(_.eQ(D,_.o9,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:D.getUrl(),embedUrl:_.Xo(D,13),thumbnails:M0(Qi(D))}});
return{action:d,docs:K,viewToken:H,view:f||"youtube",v2Translated:!0}},jQk=function(K,d,f,H){var D=K.map(function(S){var n=S.getId().getId(),u=_.Xo(S,7),a=S.getName(),R=vt(S),F=_.N2N(_.eQ(S,_.o9,12)).getTime(),z=S.getUrl(),v=Number(xBX(S)),g=_.Xo(S,3),N=_.Xo(S,11),h=M0(Qi(S));
var m=_.eQ(S,jO,21);m=_.R2(m,1);var T=_.eQ(S,jO,21);T=_.Xo(T,10);var r=_.Xo(S,13);var J=_.eQ(S,jO,21);J=_.R2(J,9);var L=_.eQ(S,jO,21);L=_.Xo(L,11);n={id:n,serviceId:"docs",mimeType:u,name:a,type:R,lastEditedUtc:F,url:z,sizeBytes:v,description:g,iconUrl:N,thumbnails:h,isShared:m,downloadUrl:T,embedUrl:r,copyable:J,resourceKey:L};u=_.eQ(S,jO,21);_.R2(u,12)&&(n.uploadState="success",n.isNew=!0);u=_.eQ(S,jO,21);_.V5(u,Tl,3)&&(S=_.eQ(S,jO,21),S=_.eQ(S,Tl,3),_.V5(S,Gl,2)&&(u=m$(S.getDuration().getSeconds()),
a=S.getDuration(),a=_.Km(a,2),n.duration=u+a/1E9),n.aspectRatio=S.getAspectRatio());return n});
return{action:d,docs:D,viewToken:H,view:f||"all",extraUserInputs:kps(K),v2Translated:!0}},ClL=function(K,d,f,H){K=K.map(function(D){var S=_.eQ(D,WNt,15);
S=_.eQ(S,AB,1);IB(D,10,AB,S);return{id:D.getId().getId(),serviceId:"web",mimeType:_.Xo(D,7),name:D.getName(),type:vt(D),url:D.getUrl(),description:_.Xo(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:M0(Qi(D))}});
return{action:d,docs:K,viewToken:H,view:f||"image-search",v2Translated:!0}},xoN=function(K,d,f,H){K=K.map(function(D){return{serviceId:"url",
name:Qi(D)[0].getUrl().split("/").pop(),type:vt(D),mimeType:_.Xo(D,7),url:D.getUrl(),description:_.Xo(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:M0(Qi(D))}});
return{action:d,docs:K,viewToken:H,view:f||"url",v2Translated:!0}},Jsv=function(K,d,f,H){K=K.map(function(D){return{id:D.getId().getId(),
serviceId:"picasa",name:D.getName(),type:vt(D),description:_.Xo(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:M0(Qi(D))}});
return{action:d,docs:K,viewToken:H,view:f||"webcam",v2Translated:!0}},qmv=function(K,d,f,H){return{action:d,
docs:K.map(wyH),viewToken:H,view:ZmH(f||"upload",K),extraUserInputs:kps(K),v2Translated:!0}},ZmH=function(K,d){return d.some(function(f){var H;
return((H=_.eQ(f,r9,30))==null?void 0:_.vY(H,3))===9})?K+"/gmailphotos":K},rss=function(K,d,f,H){var D=K.map(function(S){var n={id:S.getId().getId(),
serviceId:"picasa",mimeType:_.Xo(S,7),name:S.getName(),type:vt(S),lastEditedUtc:_.N2N(_.eQ(S,_.o9,12)).getTime(),url:S.getUrl(),sizeBytes:Number(xBX(S)),description:_.Xo(S,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:M0(Qi(S)),mediaKey:S.getId().getId(),parentId:_.Xo(S,4)},u,a=(u=_.eQ(S,$sf,18))==null?void 0:_.eQ(u,o89,3);a&&(n.latitude=z9(a,1),n.longitude=z9(a,2));var R;S=(R=_.eQ(S,$sf,18))==null?void 0:Fo(R,6);R=S!=null?m$(S):void 0;R&&(n.version=
R);return n});
return{action:d,docs:D,viewToken:H,view:f||"photos",extraUserInputs:kps(K),v2Translated:!0}},TGH=function(K,d,f,H){K=K.map(function(D){return{id:D.getId().getId(),
serviceId:"et",name:Qi(D)[0].getUrl().split("/").pop(),description:_.Xo(D,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:M0(Qi(D),"etjpg")}});
return{action:d,docs:K,viewToken:H,view:f||"et",v2Translated:!0}},BGB=function(K,d,f,H){K=K.map(function(D){var S=D.getId().getId(),n=H["2"];
return{id:S,serviceId:n.type!=="gmail_themes"&&n.parent==="6226252643674576769"?"picasa":"static_themes",name:D.getName(),mimeType:_.Xo(D,7),type:vt(D),description:_.Xo(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:D.getUrl(),embedUrl:D.getUrl(),thumbnails:M0(Qi(D))}});
return{action:d,docs:K,viewToken:H,view:f||"photos",v2Translated:!0}},QQ6=function(K,d){K=K.map(function(f){var H=_.eQ(f,tts,27);
H=_.M8(H,1,_.ql,_.p0())[0];return{id:f.getId().getId(),serviceId:"contacts",mimeType:_.Xo(f,7),name:f.getName(),description:_.Xo(f,3),url:"mailto:"+H,thumbnail:[{url:_.Xo(f,11)}],email:H}});
return{action:d,docs:K,view:"contacts",v2Translated:!0}},Ast=function(K){if(!K)return{};
var d=_.Xo(K,3);d=d&&JSON.parse(d)||{};return{0:_.Xo(K,1),1:_.Xo(K,2),2:d}},M0=function(K,d){d=d===void 0?"":d;
if(!K.length)return null;d=="etjpg"&&(K=K.filter(function(f){return f.getUrl().includes("w1200-h300")}));
return K.map(function(f){return{url:f.getUrl(),height:f.getHeight(),width:f.getWidth(),type:d}})},kps=function(K){return{isAttachment:K.some(function(d){return _.R2(d,31)})}},wyH=function(K){var d,f={id:(d=K.getId())==null?void 0:d.getId(),
serviceId:eQv(K),mimeType:_.Xo(K,7),name:K.getName(),type:vt(K),sizeBytes:Number(xBX(K)),description:_.Xo(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:M0(Qi(K)),isNew:!0};if(d=_.eQ(K,r9,30)){f.dataUrl=_.Xo(d,1)||null;a:{var H=_.eQ(K,r9,30);switch(_.vY(H,3)){case 9:H=_.O3(H,ms4,2,qO);H={remoteRefs:H&&_.Xo(H,1)};break a;case 10:case 15:H=_.O3(H,bJv,4,qO);var D=Qi(K);H={photo_id:H&&_.Xo(H,1),media_key:K.getId().getId(),media_type:_.vY(K,6)===1?1:2,image_url:D&&
D[0].getUrl(),width:D&&String(D[0].getWidth()),height:D&&String(D[0].getHeight())};break a}H=null}f.uploadMetadata=H;f.uploadId=_.Xo(d,9)||null;f.uploadState=pyJ(d)||null}(H=d&&_.O3(d,bJv,4,qO))&&(f.id=_.Xo(H,1));(H=d&&_.O3(d,lLH,5,qO))&&(f.contentId=_.Xo(H,1));(H=d&&_.O3(d,E8k,7,qO))&&(f.contentId=_.Xo(H,1));(H=d&&_.O3(d,hBN,6,qO))&&(f.contentId=_.Xo(H,1));(d==null?void 0:_.vY(d,3))===1&&(f.mediaKey=K.getId().getId());return f},eQv=function(K){var d;
switch(((d=_.eQ(K,r9,30))==null?void 0:_.vY(d,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},vt=function(K){switch(_.vY(K,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 _.Xo(K,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},pyJ=function(K){switch(K==null?void 0:_.vY(K,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 Hn2,KUf,dqJ,fKs;_.Pt=function(K,d){var f=d||{};d=f.document||document;var H=_.nM(K).toString(),D=(new a_(d)).createElement("SCRIPT"),S={script_:D,timeout_:void 0},n=new lJ(KUf,S),u=null,a=f.timeout!=null?f.timeout:5E3;a>0&&(u=window.setTimeout(function(){dqJ(D,!0);n.errback(new fKs(1,"Timeout reached for loading script "+H))},a),S.timeout_=u);
D.onload=D.onreadystatechange=function(){D.readyState&&D.readyState!="loaded"&&D.readyState!="complete"||(dqJ(D,f.cleanupWhenDone||!1,u),n.callback(null))};
D.onerror=function(){dqJ(D,!0,u);n.errback(new fKs(0,"Error while loading script "+H))};
S=f.attributes||{};_.PR.extend(S,{type:"text/javascript",charset:"UTF-8"});zG4(D,S);_.Aa(D,K);Hn2(d).appendChild(D);return n};
Hn2=function(K){var d=zp("HEAD",K);return d&&d.length!==0?d[0]:K.documentElement};
KUf=function(){if(this&&this.script_){var K=this.script_;K&&K.tagName=="SCRIPT"&&dqJ(K,!0,this.timeout_)}};
dqJ=function(K,d,f){f!=null&&_.Hu.clearTimeout(f);K.onload=function(){};
K.onerror=function(){};
K.onreadystatechange=function(){};
d&&window.setTimeout(function(){_.FE(K)},0)};
fKs=function(K,d){var f="Jsloader error (code #"+K+")";d&&(f+=": "+d);_.KB.call(this,f);this.code=K};
_.Bd(fKs,_.KB);var Dqf=_.Am(["https://apis.google.com/js/api.js"]),VDB=_.p7(Dqf),ins=function(K,d){var f=!1,H=Snv(K,d).then(function(S){f=!0;return S}),D=_.GiB(5E3).then(function(){return f?Snv(K,d):yc8(d).then(function(S){return nFN(S,K)})});
return Ow2([H,D])},Snv=function(K,d){return cc4(d).then(function(f){return nFN(f,K)})},nFN=function(K,d){var f=_.Sp(d,"gapi.")?d.slice(5):d;
return K[f]?_.HG(K[f]):new _.ip(function(H,D){var S=Uv(function(){D(Error("bb"))},3E4);
K.load(d,{callback:function(){_.Hu.clearTimeout(S);H(K[f])},
onerror:function(n){_.Hu.clearTimeout(S);D(n)}})})},cc4=function(K){return K.gapi&&K.gapi.load?_.HG(K.gapi):yc8(K)},yc8=function(K){return _.Pt(VDB,{document:K.document}).then(function(){return K.gapi})},uR2=function(){};
uR2.prototype.load=function(K,d){d=d===void 0?window:d;var f=Date.now();return ins(K,d).then(function(H){var D=Date.now();return{library:H,loadStartMs:f,loadEndMs:D}},function(H){throw H instanceof Error?H:Error(String(H));
})};var Idz=function(){_.gG.call(this);this.gapiLoader_=new uR2;this.origin_=null;this.gapiPickerIframeResolver_=_.Gz();this.gapiIframesResolver_=_.Gz();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.O(Idz,_.gG);var aKt=function(K,d){var f=_.T2("gapi.iframes",d);return f?(K=Date.now(),_.HG({library:f,loadStartMs:K,loadEndMs:K})):K.gapiLoader_.load("gapi.iframes",d)},IK8=function(K,d,f,H,D,S){var n=!1;
n=n===void 0?!1:n;aKt(K,tA(d.ownerDocument)).then(function(u){var a=u.library;K.gapiIframesResolver_.resolve(a);u=K.gapiPickerIframeResolver_;var R=u.resolve,F=n;F=F===void 0?!1:F;var z={};z["host-message-handler"]=f;K.hostMessageHandlerInternal_=z;var v=_.QX(H);v=_.QX(v);v=_.Cx(_.jU(_.Qh(new _.Q8,v.scheme_),v.JSC$8037_domain_),v.JSC$8037_port_).toString();K.origin_=v;v=(new mmt).setUrl(H);v.JSC$8052_obj_.where=d;v.JSC$8052_obj_.allowPost=F;v.JSC$8052_obj_.messageHandlers=z;F=_.T2("makeWhiteListIframesFilter",
a)([K.origin_]);v.JSC$8052_obj_.messageHandlersFilter=F;D!=null&&v.setId(D);S!=null&&(v.JSC$8052_obj_.rpctoken=S);F=b09(v);F.JSC$8049_obj_.style={display:"block","min-width":"100%",width:"1px"};F.JSC$8049_obj_.height="100%";b09(v).value().allow="camera 'src' "+K.origin_;a=a.getContext().openChild(v.value());R.call(u,a)},function(u){K.gapiIframesResolver_.reject(u);
K.gapiPickerIframeResolver_.reject(u)});
return K.gapiPickerIframeResolver_.promise},Uq6=function(K,d){return _.at([K.gapiIframesResolver_.promise,
K.gapiPickerIframeResolver_.promise]).then(function(f){var H=_.y(f);f=H.next().value;return(H=H.next().value)?H.send("picker-message-handler",d,void 0,_.T2("makeWhiteListIframesFilter",f)([K.origin_])):_.vv(Error("cb"))})};
Idz.prototype.disposeInternal=function(){R7t(this);_.gG.prototype.disposeInternal.call(this)};
var R7t=function(K){K.gapiPickerIframeResolver_.promise.then(function(d){d&&(d.unregister("host-message-handler"),delete K.hostMessageHandlerInternal_["host-message-handler"])})};var FUv=function(){this.nextId=0};var XCN=function(K,d){switch(K.action){case "select-contacts":K=z7t(K.contacts);break;case "visibility":K=K.visible;var f=new xW;K=_.Y2(f,1,7).setVisible(K);f={};f["iframe-command"]=K.serialize();K=f;break;default:K=null}return K?Uq6(d,K):_.HG()},z7t=function(K){if(!K||K.length==0)return null;
var d=new xW;_.Y2(d,1,11);var f=new FUv;K.forEach(function(H){if(H.email){var D=new u1;D=_.Qb(D,2,H.name?H.name:H.email);var S=new tts;H=_.yPO(S,1,_.Gy,H.email,_.ql);H=_.fM(D,27,H);D=H.setId;S=(new Wc).setId(":"+(f.nextId++).toString(36));S=_.Y2(S,2,12);H=D.call(H,S)}else H=null;H&&IB(d,7,u1,H)});
K={};K["iframe-command"]=d.serialize();return K};_.vFB=function(){if(DBJ){var K=/Windows NT ([0-9.]+)/;return(K=K.exec(_.zS()))?K[1]:"0"}return _.HlX?(K=/1[0|1][_.][0-9_.]+/,(K=K.exec(_.zS()))?K[0].replace(/_/g,"."):"10"):ewB?(K=/Android\s+([^\);]+)(\)|;)/,(K=K.exec(_.zS()))?K[1]:""):S6p||ynz||nrX?(K=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(K=K.exec(_.zS()))?K[1].replace(/_/g,"."):""):""}();var gT;gT=function(K){return(K=K.exec(_.zS()))?K[1]:""};
_.MDv=function(){if(_.ps)return gT(/Firefox\/([0-9.]+)/);if(_.kb||x_||Kmn)return R$X;if(_.KO){if(_.AN()||_.UJJ()){var K=gT(/CriOS\/([0-9.]+)/);if(K)return K}return gT(/Chrome\/([0-9.]+)/)}if(_.bH&&!_.AN())return gT(/Version\/([0-9.]+)/);if(Pwo||gZz){if(K=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.zS()))return K[1]+"."+K[2]}else if(MrJ)return(K=gT(/Android\s+([0-9.]+)/))?K:gT(/Version\/([0-9.]+)/);return""}();var P8s=function(){};
_.xb(P8s);P8s.prototype.nextId_=0;_.Ot=function(K){return":"+(K.nextId_++).toString(36)};var N0=function(K){_.iJ.call(this);this.JSC$8147_dom_=K||uW();this.JSC$8147_id_=null;this.inDocument_=!1;this.JSC$8147_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Bd(N0,_.iJ);N0.prototype.idGenerator_=P8s.getInstance();N0.prototype.getId=function(){return this.JSC$8147_id_||(this.JSC$8147_id_=_.Ot(this.idGenerator_))};
N0.prototype.setId=function(K){this.parent_&&this.parent_.childIndex_&&(_.PR.remove(this.parent_.childIndex_,this.JSC$8147_id_),_.PR.add(this.parent_.childIndex_,K,this));this.JSC$8147_id_=K};
N0.prototype.getElement=function(){return this.JSC$8147_element_};
var Yn=function(K){K.googUiComponentHandler_||(K.googUiComponentHandler_=new _.Zt(K));return K.googUiComponentHandler_},gFL=function(K,d){if(K==d)throw Error("db");
var f;if(f=d&&K.parent_&&K.JSC$8147_id_){f=K.parent_;var H=K.JSC$8147_id_;f=f.childIndex_&&H?_.PR.get(f.childIndex_,H)||null:null}if(f&&K.parent_!=d)throw Error("db");K.parent_=d;N0.superClass_.setParentEventTarget.call(K,d)};
N0.prototype.setParentEventTarget=function(K){if(this.parent_&&this.parent_!=K)throw Error("eb");N0.superClass_.setParentEventTarget.call(this,K)};
N0.prototype.JSC$8149_createDom=function(){this.JSC$8147_element_=this.JSC$8147_dom_.createElement("DIV")};
N0.prototype.render=function(K){OnJ(this,K)};
var OnJ=function(K,d,f){if(K.inDocument_)throw Error("fb");K.JSC$8147_element_||K.JSC$8149_createDom();d?d.insertBefore(K.JSC$8147_element_,f||null):K.JSC$8147_dom_.JSC$7335_document_.body.appendChild(K.JSC$8147_element_);K.parent_&&!K.parent_.inDocument_||K.enterDocument()};
_.V=N0.prototype;_.V.decorate=function(K){if(this.inDocument_)throw Error("fb");if(K&&this.canDecorate(K)){this.wasDecorated_=!0;var d=_.oL(K);this.JSC$8147_dom_&&this.JSC$8147_dom_.JSC$7335_document_==d||(this.JSC$8147_dom_=uW(K));this.decorateInternal(K);this.enterDocument()}else throw Error("gb");};
_.V.canDecorate=function(){return!0};
_.V.decorateInternal=function(K){this.JSC$8147_element_=K};
_.V.enterDocument=function(){this.inDocument_=!0;NQ6(this,function(K){!K.inDocument_&&K.getElement()&&K.enterDocument()})};
_.V.exitDocument=function(){NQ6(this,function(K){K.inDocument_&&K.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.V.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);NQ6(this,function(K){K.dispose()});
!this.wasDecorated_&&this.JSC$8147_element_&&_.FE(this.JSC$8147_element_);this.parent_=this.model_=this.JSC$8147_element_=this.childIndex_=this.children_=null;N0.superClass_.disposeInternal.call(this)};
_.V.getModel=function(){return this.model_};
_.V.addChild=function(K,d){var f=this.children_?this.children_.length:0;if(K.inDocument_&&(d||!this.inDocument_))throw Error("fb");if(f<0||f>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);K.parent_==this?(_.PR.set(this.childIndex_,K.getId(),K),_.Zn(this.children_,K)):_.PR.add(this.childIndex_,K.getId(),K);gFL(K,this);_.MpX(this.children_,f,0,K);K.inDocument_&&this.inDocument_&&K.parent_==this?(d=this.getContentElement(),
(d.childNodes[f]||null)!=K.getElement()&&(K.getElement().parentElement==d&&d.removeChild(K.getElement()),f=d.childNodes[f]||null,d.insertBefore(K.getElement(),f))):d?(this.JSC$8147_element_||this.JSC$8149_createDom(),f=this.children_?this.children_[f+1]||null:null,OnJ(K,this.getContentElement(),f?f.JSC$8147_element_:null)):this.inDocument_&&!K.inDocument_&&K.JSC$8147_element_&&K.JSC$8147_element_.parentNode&&K.JSC$8147_element_.parentNode.nodeType==1&&K.enterDocument()};
_.V.getContentElement=function(){return this.JSC$8147_element_};
var NQ6=function(K,d){K.children_&&K.children_.forEach(d,void 0)};
N0.prototype.removeChild=function(K,d){if(K){var f=typeof K==="string"?K:K.getId();K=this.childIndex_&&f?_.PR.get(this.childIndex_,f)||null:null;f&&K&&(_.PR.remove(this.childIndex_,f),_.Zn(this.children_,K),d&&(K.exitDocument(),K.JSC$8147_element_&&_.FE(K.JSC$8147_element_)),gFL(K,null))}if(!K)throw Error("ib");return K};_.Bd(Dku,HQY);_.Bd(VqG,HQY);var YnB;var tDB=function(K,d){d?K.setAttribute("role",d):K.removeAttribute("role")},tz=function(K,d,f){Array.isArray(f)&&(f=f.join(" "));
var H="aria-"+d;f===""||f==void 0?(YnB||(f={},YnB=(f.atomic=!1,f.autocomplete="none",f.dropeffect="none",f.haspopup=!1,f.live="off",f.multiline=!1,f.multiselectable=!1,f.orientation="vertical",f.readonly=!1,f.relevant="additions text",f.required=!1,f.sort="none",f.busy=!1,f.disabled=!1,f.hidden=!1,f.invalid="false",f)),f=YnB,d in f?K.setAttribute(H,f[d]):K.removeAttribute(H)):K.setAttribute(H,f)};var oF4;_.oZ=function(K,d,f){_.iJ.call(this);this.target=K;this.handle=d||K;this.limits=f||new OG(NaN,NaN,NaN,NaN);this.JSC$8152_document_=_.oL(K);this.JSC$8152_eventHandler_=new _.Zt(this);_.cy(this,this.JSC$8152_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;_.zG(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=oF4};
_.Bd(_.oZ,_.iJ);oF4=_.Hu.document&&_.Hu.document.documentElement&&!!_.Hu.document.documentElement.setCapture&&!!_.Hu.document.releaseCapture;_.$qt=function(K,d){K.hysteresisDistanceSquared_=Math.pow(d,2)};
_.V=_.oZ.prototype;_.V.setEnabled=function(K){this.enabled_=K};
_.V.disposeInternal=function(){_.oZ.superClass_.disposeInternal.call(this);_.nx(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8152_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8152_document_.releaseCapture();this.handle=this.target=null};
_.V.startDrag=function(K){var d=K.type=="mousedown";if(!this.enabled_||this.dragging_||d&&(K.event_.button!=0||_.HlX&&K.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new $n("start",this,K.clientX,K.clientY,K)))this.dragging_=!0,d&&K.preventDefault();else return;else d&&K.preventDefault();d=this.JSC$8152_document_;var f=d.documentElement,H=!this.useSetCapture_;this.JSC$8152_eventHandler_.listen(d,["touchmove","mousemove"],this.handleMove_,
{capture:H,passive:!1});this.JSC$8152_eventHandler_.listen(d,["touchend","mouseup"],this.endDrag,H);this.useSetCapture_?(f.setCapture(!1),this.JSC$8152_eventHandler_.listen(f,"losecapture",this.endDrag)):this.JSC$8152_eventHandler_.listen(tA(d),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8152_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,H);this.clientX=this.startX=K.clientX;this.clientY=this.startY=K.clientY;this.screenX=K.screenX;this.screenY=K.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=cR(uW(this.JSC$8152_document_))}};
_.V.endDrag=function(K,d){this.JSC$8152_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8152_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new $n("end",this,K.clientX,K.clientY,K,EFk(this,this.deltaX),h78(this,this.deltaY),d||K.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.V.handleMove_=function(K){if(this.enabled_){var d=K.clientX-this.clientX,f=K.clientY-this.clientY;this.clientX=K.clientX;this.clientY=K.clientY;this.screenX=K.screenX;this.screenY=K.screenY;if(!this.dragging_){var H=this.startX-this.clientX,D=this.startY-this.clientY;if(H*H+D*D>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new $n("start",this,K.clientX,K.clientY,K)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(K);return}}f=bn8(this,d,f);d=f.x;f=f.y;this.dragging_&&this.dispatchEvent(new $n("beforedrag",
this,K.clientX,K.clientY,K,d,f))&&(mq8(this,K,d,f),K.preventDefault())}};
var bn8=function(K,d,f){var H=cR(uW(K.JSC$8152_document_));d+=H.x-K.pageScroll.x;f+=H.y-K.pageScroll.y;K.pageScroll=H;K.deltaX+=d;K.deltaY+=f;return new _.Nm(EFk(K,K.deltaX),h78(K,K.deltaY))};
_.oZ.prototype.onScroll_=function(K){var d=bn8(this,0,0);K.clientX=this.clientX;K.clientY=this.clientY;mq8(this,K,d.x,d.y)};
var mq8=function(K,d,f,H){K.target.style.left=f+"px";K.target.style.top=H+"px";K.dispatchEvent(new $n("drag",K,d.clientX,d.clientY,d,f,H))},EFk=function(K,d){var f=K.limits;
K=isNaN(f.left)?null:f.left;f=isNaN(f.width)?0:f.width;return Math.min(K!=null?K+f:Infinity,Math.max(K!=null?K:-Infinity,d))},h78=function(K,d){var f=K.limits;
K=isNaN(f.top)?null:f.top;f=isNaN(f.height)?0:f.height;return Math.min(K!=null?K+f:Infinity,Math.max(K!=null?K:-Infinity,d))};
_.oZ.prototype.isDragging=function(){return this.dragging_};
var $n=function(K,d,f,H,D,S,n){_.D5.call(this,K);this.clientX=f;this.clientY=H;this.browserEvent=D;this.left=S!==void 0?S:d.deltaX;this.top=n!==void 0?n:d.deltaY};
_.Bd($n,_.D5);var Et=function(K){this.JSC$8159_map_=new Map;var d=arguments.length;if(d>1){if(d%2)throw Error("oa");for(var f=0;f<d;f+=2)this.set(arguments[f],arguments[f+1])}else K&&this.addAll(K)};
_.V=Et.prototype;_.V.getCount=function(){return this.JSC$8159_map_.size};
_.V.getValues=function(){return Array.from(this.JSC$8159_map_.values())};
_.V.getKeys=function(){return Array.from(this.JSC$8159_map_.keys())};
_.V.containsKey=function(K){return this.JSC$8159_map_.has(K)};
_.V.containsValue=function(K){return this.getValues().some(function(d){return d==K})};
_.V.equals=function(K,d){var f=this;d=d===void 0?function(H,D){return H===D}:d;
return this===K?!0:this.JSC$8159_map_.size!=K.getCount()?!1:this.getKeys().every(function(H){return d(f.JSC$8159_map_.get(H),K.get(H))})};
_.V.isEmpty=function(){return this.JSC$8159_map_.size==0};
_.V.clear=function(){this.JSC$8159_map_.clear()};
_.V.remove=function(K){return this.JSC$8159_map_.delete(K)};
_.V.get=function(K,d){return this.JSC$8159_map_.has(K)?this.JSC$8159_map_.get(K):d};
_.V.set=function(K,d){this.JSC$8159_map_.set(K,d);return this};
_.V.addAll=function(K){if(K instanceof Et){K=_.y(K.JSC$8159_map_);for(var d=K.next();!d.done;d=K.next()){var f=_.y(d.value);d=f.next().value;f=f.next().value;this.JSC$8159_map_.set(d,f)}}else if(K)for(K=_.y(Object.entries(K)),d=K.next();!d.done;d=K.next())f=_.y(d.value),d=f.next().value,f=f.next().value,this.JSC$8159_map_.set(d,f)};
_.V.forEach=function(K,d){var f=this;d=d===void 0?this:d;this.JSC$8159_map_.forEach(function(H,D){return K.call(d,H,D,f)})};
_.V.clone=function(){return new Et(this)};(function(){for(var K=["ms","moz","webkit","o"],d,f=0;d=K[f]&&!_.Hu.requestAnimationFrame;++f)_.Hu.requestAnimationFrame=_.Hu[d+"RequestAnimationFrame"],_.Hu.cancelAnimationFrame=_.Hu[d+"CancelAnimationFrame"]||_.Hu[d+"CancelRequestAnimationFrame"];if(!_.Hu.requestAnimationFrame){var H=0;_.Hu.requestAnimationFrame=function(D){var S=(new Date).getTime(),n=Math.max(0,16-(S-H));H=S+n;return _.Hu.setTimeout(function(){D(S+n)},n)};
_.Hu.cancelAnimationFrame||(_.Hu.cancelAnimationFrame=function(D){clearTimeout(D)})}})();
var lK2=[[],[]],WU4=0,Ghs=!1,Ac4=0,rc8=function(K,d){var f=Ac4++,H={measureTask:{id:f,fn:K.measure,context:d},mutateTask:{id:f,fn:K.mutate,context:d},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(H.args||(H.args=[]),H.args.length=0,H.args.push.apply(H.args,arguments),H.args.push(H.state)):H.args&&H.args.length!=0?(H.args[0]=H.state,H.args.length=1):H.args=[H.state];H.isScheduled||(H.isScheduled=!0,lK2[WU4].push(H));Ghs||(Ghs=!0,window.requestAnimationFrame(TQB))}},TQB=
function(){Ghs=!1;
var K=lK2[WU4],d=K.length;WU4=(WU4+1)%2;for(var f,H=0;H<d;++H){f=K[H];var D=f.measureTask;f.isScheduled=!1;D.fn&&D.fn.apply(D.context,f.args)}for(H=0;H<d;++H)f=K[H],D=f.mutateTask,f.isScheduled=!1,D.fn&&D.fn.apply(D.context,f.args),f.state={};K.length=0};var qn6=_.Am(["about:blank"]),Qls=_.Am(["javascript:undefined"]),jlJ=_.p7(qn6);_.nM(jlJ);var C8k=_.p7(Qls);_.nM(C8k);var hz=function(K){_.iJ.call(this);this.JSC$8165_element_=K;this.listenKeyIn_=_.zG(this.JSC$8165_element_,"focus",this,!0);this.listenKeyOut_=_.zG(this.JSC$8165_element_,"blur",this,!0)};
_.Bd(hz,_.iJ);hz.prototype.handleEvent=function(K){var d=new _.Vh(K.event_);d.type=K.type=="focusin"||K.type=="focus"?"focusin":"focusout";this.dispatchEvent(d)};
hz.prototype.disposeInternal=function(){hz.superClass_.disposeInternal.call(this);UP(this.listenKeyIn_);UP(this.listenKeyOut_);delete this.JSC$8165_element_};var xq6=function(K,d){this.JSC$8168_element_=K;this.JSC$8168_dom_=d};var bS=function(K,d){N0.call(this,d);this.useIframeMask_=!!K;this.lastFocus_=null;this.resizeBackgroundTask_=rc8({mutate:this.resizeBackground_},this);rc8({mutate:this.updateModalAndBackground_},this)};
_.Bd(bS,N0);_.V=bS.prototype;_.V.focusHandler_=null;_.V.visible_=!1;_.V.bgEl_=null;_.V.bgIframeEl_=null;_.V.tabCatcherElement_=null;_.V.backwardTabWrapInProgress_=!1;_.V.getCssClass=function(){return"goog-modalpopup"};
_.V.getBackgroundElement=function(){return this.bgEl_};
_.V.JSC$8149_createDom=function(){bS.superClass_.JSC$8149_createDom.call(this);var K=this.getElement(),d=UY(this.getCssClass()).split(" ");bJ(K,d);K.tabIndex=0;_.xl(K,!1);LU2(this);BQs(this)};
var LU2=function(K){if(K.useIframeMask_&&!K.bgIframeEl_){var d=K.JSC$8147_dom_.JSC$7337_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.$G(d,jlJ);K.bgIframeEl_=d;K.bgIframeEl_.className=K.getCssClass()+"-bg";_.xl(K.bgIframeEl_,!1);JN9(K.bgIframeEl_,0)}K.bgEl_||(K.bgEl_=K.JSC$8147_dom_.JSC$7337_createDom("DIV",K.getCssClass()+"-bg"),_.xl(K.bgEl_,!1))},BQs=function(K){K.tabCatcherElement_||(K.tabCatcherElement_=K.JSC$8147_dom_.createElement("SPAN"),_.xl(K.tabCatcherElement_,
!1),K.tabCatcherElement_.tabIndex=0,K.tabCatcherElement_.style.position="absolute")};
_.V=bS.prototype;_.V.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.V.canDecorate=function(K){return!!K&&K.tagName=="DIV"};
_.V.decorateInternal=function(K){bS.superClass_.decorateInternal.call(this,K);K=UY(this.getCssClass()).split(" ");bJ(this.getElement(),K);LU2(this);BQs(this);this.getElement().tabIndex=0;_.xl(this.getElement(),!1)};
_.V.enterDocument=function(){this.bgIframeEl_&&_.vc(this.bgIframeEl_,this.getElement());_.vc(this.bgEl_,this.getElement());bS.superClass_.enterDocument.call(this);_.MO(this.tabCatcherElement_,this.getElement());this.focusHandler_=new hz(this.JSC$8147_dom_.JSC$7335_document_);Yn(this).listen(this.focusHandler_,"focusin",this.onFocus);Jck(this,!1)};
_.V.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.kh(this.focusHandler_);bS.superClass_.exitDocument.call(this);_.FE(this.bgIframeEl_);_.FE(this.bgEl_);_.FE(this.tabCatcherElement_)};
_.V.setVisible=function(K){if(K!=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_&&Jck(this,K),K){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8147_dom_.JSC$7335_document_.activeElement}catch(D){}this.updateModalAndBackground_();Yn(this).listen(this.JSC$8147_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8147_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);sl8(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)IG(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Yn(this).unlisten(this.JSC$8147_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8147_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)IG(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var d=this.JSC$8147_dom_,f=d.JSC$7335_document_.body,H=d.JSC$7335_document_.activeElement||f;if(!this.lastFocus_||this.lastFocus_==f){this.lastFocus_=null;break a}(H==f||d.contains(this.getElement(),H))&&this.lastFocus_.focus()}catch(D){}this.lastFocus_=
null}}};
var Jck=function(K,d){K.modalAriaVisibilityHelper_||(K.modalAriaVisibilityHelper_=new xq6(K.JSC$8147_element_,K.JSC$8147_dom_));K=K.modalAriaVisibilityHelper_;if(d){K.hiddenElements_||(K.hiddenElements_=[]);d=K.JSC$8168_dom_.getChildren(K.JSC$8168_dom_.JSC$7335_document_.body);for(var f=0;f<d.length;f++){var H=d[f],D;if(D=H!=K.JSC$8168_element_)D=H.getAttribute("aria-hidden"),D=!(D==null||D==void 0?0:String(D));D&&(tz(H,"hidden",!0),K.hiddenElements_.push(H))}}else if(K.hiddenElements_){for(d=0;d<
K.hiddenElements_.length;d++)K.hiddenElements_[d].removeAttribute("aria-hidden");K.hiddenElements_=null}};
bS.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var sl8=function(K,d){K.bgIframeEl_&&_.xl(K.bgIframeEl_,d);K.bgEl_&&_.xl(K.bgEl_,d);_.xl(K.getElement(),d);_.xl(K.tabCatcherElement_,d)};
_.V=bS.prototype;_.V.onShow=function(){this.dispatchEvent("show")};
_.V.onHide=function(){sl8(this,!1);this.dispatchEvent("hide")};
_.V.isVisible=function(){return this.visible_};
_.V.focus=function(){this.focusElement_()};
_.V.resizeBackground_=function(){this.bgIframeEl_&&_.xl(this.bgIframeEl_,!1);this.bgEl_&&_.xl(this.bgEl_,!1);var K=this.JSC$8147_dom_.JSC$7335_document_;var d=_.iW(tA(this.JSC$8147_dom_.JSC$7335_document_)||window);var f=Math.max(d.width,Math.max(K.body.scrollWidth,K.documentElement.scrollWidth));K=Math.max(d.height,Math.max(K.body.scrollHeight,K.documentElement.scrollHeight));this.bgIframeEl_&&(_.xl(this.bgIframeEl_,!0),_.Co6(this.bgIframeEl_,f,K));this.bgEl_&&(_.xl(this.bgEl_,!0),_.Co6(this.bgEl_,
f,K))};
_.V.reposition=function(){var K;if(_.jXf(this.getElement())=="fixed")var d=K=0;else d=cR(this.JSC$8147_dom_),K=d.x,d=d.y;var f=L5N(this.getElement());var H=_.iW(tA(this.JSC$8147_dom_.JSC$7335_document_)||window);K=Math.max(K+H.width/2-f.width/2,0);d=Math.max(d+H.height/2-f.height/2,0);tB(this.getElement(),K,d);tB(this.tabCatcherElement_,K,d)};
_.V.onFocus=function(K){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():K.target==this.tabCatcherElement_&&Uv(this.focusElement_,0,this)};
_.V.focusElement_=function(){try{this.getElement().focus()}catch(K){}};
_.V.disposeInternal=function(){_.kh(this.popupShowTransition_);this.popupShowTransition_=null;_.kh(this.popupHideTransition_);this.popupHideTransition_=null;_.kh(this.bgShowTransition_);this.bgShowTransition_=null;_.kh(this.bgHideTransition_);this.bgHideTransition_=null;bS.superClass_.disposeInternal.call(this)};var ll=function(K,d,f){bS.call(this,d,f);this.JSC$8178_class_=K||"modal-dialog";this.buttons_=(new m8).addButton(khN,!0).addButton(wC6,!1,!0)};
_.Bd(ll,bS);_.V=ll.prototype;_.V.escapeToCancel_=!0;_.V.hasTitleCloseButton_=!0;_.V.modal_=!0;_.V.draggable_=!0;_.V.backgroundElementOpacity_=.5;_.V.title_="";_.V.JSC$8180_dragger_=null;_.V.JSC$8180_disposeOnHide_=!1;_.V.titleEl_=null;_.V.titleTextEl_=null;_.V.titleTextId_=null;_.V.titleCloseEl_=null;_.V.contentEl_=null;_.V.buttonEl_=null;_.V.getCssClass=function(){return this.JSC$8178_class_};
_.V.setTitle=function(K){this.title_=K;this.titleTextEl_&&_.g9(this.titleTextEl_,K)};
_.V.getTitle=function(){return this.title_};
_.V.getContent=function(){return""};
_.V.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Zns=function(K){K.getElement()||K.render();return K.getElement()};
ll.prototype.getBackgroundElement=function(){this.getElement()||this.render();return ll.superClass_.getBackgroundElement.call(this)};
var e7k=function(K,d){K.backgroundElementOpacity_=d;K.getElement()&&(d=K.getBackgroundElement())&&JN9(d,K.backgroundElementOpacity_)};
ll.prototype.setDraggable=function(K){this.draggable_=K;pCk(this,K&&this.inDocument_)};
ll.prototype.JSC$8180_handleDrag=function(){};
var pCk=function(K,d){var f=UY(K.JSC$8178_class_+"-title-draggable").split(" ");K.getElement()&&(d?bJ(K.titleEl_,f):EQB(K.titleEl_,f));d&&!K.JSC$8180_dragger_?(d=new _.oZ(K.getElement(),K.titleEl_),K.JSC$8180_dragger_=d,bJ(K.titleEl_,f),_.zG(K.JSC$8180_dragger_,"start",K.setDraggerLimits_,!1,K),_.zG(K.JSC$8180_dragger_,"drag",K.JSC$8180_handleDrag,!1,K)):!d&&K.JSC$8180_dragger_&&(K.JSC$8180_dragger_.dispose(),K.JSC$8180_dragger_=null)};
_.V=ll.prototype;
_.V.JSC$8149_createDom=function(){ll.superClass_.JSC$8149_createDom.call(this);var K=this.getElement(),d=this.JSC$8147_dom_;this.titleTextId_=this.getId();var f=this.getId()+".contentEl";this.titleEl_=d.JSC$7337_createDom("DIV",this.JSC$8178_class_+"-title",this.titleTextEl_=d.JSC$7337_createDom("SPAN",{className:this.JSC$8178_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=d.JSC$7337_createDom("SPAN",this.JSC$8178_class_+"-title-close"));gzB(K,this.titleEl_,this.contentEl_=
d.JSC$7337_createDom("DIV",{className:this.JSC$8178_class_+"-content",id:f}),this.buttonEl_=d.JSC$7337_createDom("DIV",this.JSC$8178_class_+"-buttons"));tDB(this.titleTextEl_,"heading");tDB(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;tz(this.titleCloseEl_,"label","Close");tDB(K,"dialog");tz(K,"labelledby",this.titleTextId_||"");_.xl(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(K=this.buttons_,K.JSC$8181_element_=this.buttonEl_,K.render());_.xl(this.buttonEl_,!!this.buttons_);
e7k(this,this.backgroundElementOpacity_)};
_.V.decorateInternal=function(K){ll.superClass_.decorateInternal.call(this,K);K=this.getElement();var d=this.JSC$8178_class_+"-content";this.contentEl_=I_(document,null,d,K)[0];this.contentEl_||(this.contentEl_=this.JSC$8147_dom_.JSC$7337_createDom("DIV",d),K.appendChild(this.contentEl_));d=this.JSC$8178_class_+"-title";var f=this.JSC$8178_class_+"-title-text",H=this.JSC$8178_class_+"-title-close";(this.titleEl_=I_(document,null,d,K)[0])?(this.titleTextEl_=I_(document,null,f,this.titleEl_)[0],this.titleCloseEl_=
I_(document,null,H,this.titleEl_)[0]):(this.titleEl_=this.JSC$8147_dom_.JSC$7337_createDom("DIV",d),K.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=ANf(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.R_("SPAN",{className:f,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;tz(K,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8147_dom_.JSC$7337_createDom("SPAN",
H),this.titleEl_.appendChild(this.titleCloseEl_));_.xl(this.titleCloseEl_,this.hasTitleCloseButton_);d=this.JSC$8178_class_+"-buttons";(this.buttonEl_=I_(document,null,d,K)[0])?(this.buttons_=new m8(this.JSC$8147_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8147_dom_.JSC$7337_createDom("DIV",d),K.appendChild(this.buttonEl_),this.buttons_&&(K=this.buttons_,K.JSC$8181_element_=this.buttonEl_,K.render()),_.xl(this.buttonEl_,!!this.buttons_));e7k(this,this.backgroundElementOpacity_)};
_.V.enterDocument=function(){ll.superClass_.enterDocument.call(this);Yn(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Yn(this).listen(this.buttonEl_,"click",this.onButtonClick_);pCk(this,this.draggable_);Yn(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var K=this.getElement();tDB(K,"dialog");this.titleTextEl_.id!==""&&tz(K,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){K=this.JSC$8147_dom_;
var d=this.getBackgroundElement();K.removeNode(this.bgIframeEl_);K.removeNode(d)}this.isVisible()&&Jck(this,!1)}};
_.V.exitDocument=function(){this.isVisible()&&this.setVisible(!1);pCk(this,!1);ll.superClass_.exitDocument.call(this)};
_.V.setVisible=function(K){K!=this.isVisible()&&(this.inDocument_||this.render(),ll.superClass_.setVisible.call(this,K))};
_.V.onShow=function(){ll.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.V.onHide=function(){ll.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8180_disposeOnHide_&&this.dispose()};
_.V.setDraggerLimits_=function(){var K=this.JSC$8147_dom_.JSC$7335_document_,d=_.iW(tA(K)||window),f=Math.max(K.body.scrollWidth,d.width);K=Math.max(K.body.scrollHeight,d.height);var H=L5N(this.getElement());_.jXf(this.getElement())=="fixed"?this.JSC$8180_dragger_.limits=new OG(0,0,Math.max(0,d.width-H.width),Math.max(0,d.height-H.height)):this.JSC$8180_dragger_.limits=new OG(0,0,f-H.width,K-H.height)};
_.V.onTitleCloseClick_=function(){KDL(this)};
var KDL=function(K){if(K.hasTitleCloseButton_){var d=K.buttons_,f=d&&d.cancelButton_;f?(d=d.get(f),K.dispatchEvent(new lS(f,d))&&K.setVisible(!1)):K.setVisible(!1)}},dkJ=function(K){K.hasTitleCloseButton_=!1;
K.titleCloseEl_&&_.xl(K.titleCloseEl_,K.hasTitleCloseButton_)};
ll.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;ll.superClass_.disposeInternal.call(this)};
ll.prototype.onButtonClick_=function(K){a:{for(K=K.target;K!=null&&K!=this.buttonEl_;){if(K.tagName=="BUTTON")break a;K=K.parentNode}K=null}if(K&&!K.disabled){K=K.name;var d=this.buttons_.get(K);this.dispatchEvent(new lS(K,d))&&this.setVisible(!1)}};
ll.prototype.onKey_=function(K){var d=!1,f=!1,H=this.buttons_,D=K.target;if(K.type=="keydown")if(this.escapeToCancel_&&K.keyCode==27){var S=H&&H.cancelButton_;D=D.tagName=="SELECT"&&!D.disabled;S&&!D?(f=!0,d=H.get(S),d=this.dispatchEvent(new lS(S,d))):D||(d=!0)}else{if(K.keyCode==9&&K.shiftKey&&D==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(F){}Uv(this.resetBackwardTabWrap_,0,this)}}else if(K.keyCode==13){if(D.tagName=="BUTTON"&&!D.disabled)S=D.name;
else if(D==this.titleCloseEl_)KDL(this);else if(H){var n=H.defaultButton_,u;if(u=n)a:{u=zp("BUTTON",H.JSC$8181_element_);for(var a,R=0;a=u[R];R++)if(a.name==n||a.id==n){u=a;break a}u=null}D=(D.tagName=="TEXTAREA"||D.tagName=="SELECT"||D.tagName=="A")&&!D.disabled;!u||u.disabled||D||(S=n)}S&&H&&(f=!0,d=this.dispatchEvent(new lS(S,String(H.get(S)))))}else D!=this.titleCloseEl_||K.keyCode!=32&&K.key!=" "||KDL(this);if(d||f)K.stopPropagation(),K.preventDefault();d&&this.setVisible(!1)};
var lS=function(K,d){this.type="dialogselect";this.key=K;this.caption=d};
_.Bd(lS,_.D5);var m8=function(K){Et.call(this);K||uW();this.cancelButton_=this.JSC$8181_element_=this.defaultButton_=null};
_.Bd(m8,Et);_.V=m8.prototype;_.V.clear=function(){Et.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.V.set=function(K,d,f,H){Et.prototype.set.call(this,K,d);f&&(this.defaultButton_=K);H&&(this.cancelButton_=K);return this};
_.V.addButton=function(K,d,f){return this.set(K.key,K.caption,d,f)};
_.V.render=function(){if(this.JSC$8181_element_){_.TY(this.JSC$8181_element_,z8z);var K=uW(this.JSC$8181_element_);this.forEach(function(d,f){d=K.JSC$7337_createDom("BUTTON",{name:f},d);f==this.defaultButton_&&(d.className="goog-buttonset-default");this.JSC$8181_element_.appendChild(d)},this)}};
_.V.decorate=function(K){if(K&&K.nodeType==1){this.JSC$8181_element_=K;K=zp("BUTTON",this.JSC$8181_element_);for(var d,f,H,D=0;d=K[D];D++)if(f=d.name||d.id,H=ANf(d)||d.value,f){var S=D==0;this.set(f,H,S,d.name=="cancel");S&&_.CZ(d,"goog-buttonset-default")}}};
_.V.getElement=function(){return this.JSC$8181_element_};
var khN={key:"ok",caption:"OK"},wC6={key:"cancel",caption:"Cancel"},fdk={key:"yes",caption:"Yes"},HQs={key:"no",caption:"No"},Dk4={key:"save",caption:"Save"},VqB={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new m8).addButton(khN,!0,!0),(new m8).addButton(khN,!0).addButton(wC6,!1,!0),(new m8).addButton(fdk,!0).addButton(HQs,!1,!0),(new m8).addButton(fdk).addButton(HQs,!0).addButton(wC6,!1,!0),(new m8).addButton(VqB).addButton(Dk4).addButton(wC6,!0,!0));_.Bd(Sbn,ll);_.Bd(yRn,Wy);var SbL=_.Am(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),yRL=_.Am(["//apis.google.com/js/rpc.js"]),FDS=_.p7(SbL),R8X=_.p7(yRL),iQz=null;var Gp=function(K,d){_.iJ.call(this);this.JSC$8190_element_=K;K=_.JL(this.JSC$8190_element_)?this.JSC$8190_element_:this.JSC$8190_element_?this.JSC$8190_element_.body:null;this.isRtl_=!!K&&_.sXs(K);this.listenKey_=_.zG(this.JSC$8190_element_,_.w7?"DOMMouseScroll":"mousewheel",this,d)};
_.Bd(Gp,_.iJ);Gp.prototype.handleEvent=function(K){var d=0,f=0,H=K.event_;H.type=="mousewheel"?(K=nMs(-H.wheelDelta),H.wheelDeltaX!==void 0?(d=nMs(-H.wheelDeltaX),f=nMs(-H.wheelDeltaY)):f=K):(K=H.detail,K>100?K=3:K<-100&&(K=-3),H.axis!==void 0&&H.axis===H.HORIZONTAL_AXIS?d=K:f=K);typeof this.maxDeltaX_==="number"&&(d=_.Oa(d,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(f=_.Oa(f,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(d=-d);d=new iQ8(K,H,d,f);this.dispatchEvent(d)};
var nMs=function(K){return _.Zf&&(_.HlX||Vr5)&&K%40!=0?K:K/40};
Gp.prototype.disposeInternal=function(){Gp.superClass_.disposeInternal.call(this);UP(this.listenKey_);this.listenKey_=null};
var iQ8=function(K,d,f,H){_.Vh.call(this,d);this.type="mousewheel";this.detail=K;this.deltaX=f;this.deltaY=H};
_.Bd(iQ8,_.Vh);_.w3=function(K){var d="instance_";if(K.instance_&&K.hasOwnProperty(d))return K.instance_;d=new K;return K.instance_=d};var Ukz;var cRk=_.Am(["https://about:blank"]),u0J=_.Am(['javascript:""']),adL=_.Am(["about:blank"]);_.Bd(Lm,Sbn);_.V=Lm.prototype;_.V.JSC$8198_url_="";_.V.JSC$8198_iframe_=null;_.V.iframeLoaded_=!1;_.V.loadedFired_=!1;_.V.callback_=function(){};
_.V.enterDocument=function(){Lm.superClass_.enterDocument.call(this);adn(this.getBackgroundElement(),Yn(this))};
_.V.render=function(K){var d=this;Lm.superClass_.render.call(this,K);this.useGapi_?aKt(this.iframeManager_,window).then(function(){return Id8(d)}).then(null,function(){d.callback_({action:"error"})}):Uk2(this)};
var Id8=function(K){var d=K.JSC$8147_dom_.JSC$7337_createDom("div",["picker-dialog-content","picker-frame"]);_.xl(d,!1);K.getContentElement().appendChild(d);return IK8(K.iframeManager_,d,function(f){var H=QfL(f["iframe-command"]);switch(H.getCommand()){case 1:f=K.callback_;H=_.eQ(H,Cg,2);var D="";switch(H.getStatus()){case 2:D="cancel";break;case 1:D="picked";break;case 3:D="error"}var S=_.e4(H,u1,2,_.p0(ErN));H=S.length===0?{action:D}:sQB(S,D,_.eQ(H,T22,7));f.call(K,H);K.setVisible(!1);break;case 4:dkJ(K);
K.callback_({action:"loaded"});break;case 7:case 8:f=K.callback_;a:{D=H.getCommand();S=_.eQ(H,Cg,2);switch(D){case 7:D="uploadScheduled";break;case 8:D="uploadStateChange";break;default:H={};break a}H=_.e4(S,u1,2,_.p0(ErN));if(H.length===0)H={action:D};else{var n=_.eQ(S,T22,7);S=n&&_.Xo(n,1);n=Ast(n);H=qmv(H,D,S,n)}}f.call(K,H)}},K.JSC$8198_url_,K.targetId_,K.rpcToken_).then(function(f){K.JSC$8198_iframe_=f.getIframeEl();
R8f(K);_.xl(K.JSC$8198_iframe_.parentElement,!0);_.CZ(K.getElement(),"picker-dialog");FDk(K);return f})},Uk2=function(K){K.JSC$8198_iframe_=K.JSC$8147_dom_.JSC$7337_createDom("IFRAME",{id:K.targetId_,
name:K.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.$G(K.JSC$8198_iframe_,z88(K));_.CZ(K.getElement(),"picker-dialog");K.getContentElement().appendChild(K.JSC$8198_iframe_);Yn(K).listen(K.JSC$8198_iframe_,"load",function(){return void R8f(K)});
K.JSC$8198_iframe_.src=K.JSC$8198_url_;FDk(K)},vMN=function(K){X_N(K,(0,_.Om)(function(d){d.setAuthToken(this.targetId_,this.rpcToken_)},K))},FDk=function(K){var d=_.jh(_.QX(K.JSC$8198_url_),"title");
d&&K.setTitle(d)},z88=function(K){return _.uXS("Internet Explorer")>=7&&_.Sp(K.JSC$8198_url_,"https")?_.p7(cRk):_.kb?_.p7(u0J):_.p7(adL)},R8f=function(K){vMN(K);
K.iframeLoaded_=!0;K.JSC$8198_iframe_.tabIndex=0;K.isVisible()&&K.focus()};
Lm.prototype.handleKeydown_=function(K){K.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),K.stopPropagation(),K.preventDefault())};
var X_N=function(K,d){var f=K.JSC$8196_gadgetsDomHelper_;cRS(function(){d(f.getWindow().gadgets.rpc)},f)};
Lm.prototype.setUrl=function(K){K=_.Cm(new _.Q8(K),"rpcService",this.targetId_);_.Cm(K,"rpctoken",this.rpcToken_);_.Bk(K,"rpctoken="+this.rpcToken_);_.Qh(K,"https");this.JSC$8198_url_=K.toString();this.JSC$8198_iframe_&&(this.JSC$8198_iframe_.src=this.JSC$8198_url_)};
var MqB=function(K,d){K.callback_=d;X_N(K,(0,_.Om)(function(f){f.register(this.targetId_,(0,_.Om)(this.handlePickerAction_,this))},K))};
Lm.prototype.handlePickerAction_=function(K){var d=K.action;d=="loaded"&&(this.loadedFired_=!0,PxN(this,new VqG(this.isVisible())),gM9(this),dkJ(this),Yn(this).unlisten(this.JSC$8147_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8198_iframe_.tabIndex=0);d!="picked"&&d!="cancel"||this.setVisible(!1);this.callback_(K)};
var gM9=function(K){K.JSC$8198_appId_&&PxN(K,new Dku(K.JSC$8198_appId_,window.location.protocol+"//"+window.location.host))};
Lm.prototype.setRelayUrl=function(K){X_N(this,(0,_.Om)(function(d){d.setRelayUrl(this.targetId_,K)},this))};
var PxN=function(K,d){K.useGapi_&&XCN(d,K.iframeManager_).then(null,function(){K.callback_({action:"error"})});
X_N(K,(0,_.Om)(function(f){f.call(this.targetId_,"picker",null,d)},K))};
Lm.prototype.resizePicker_=function(){var K=tA(this.JSC$8147_dom_.JSC$7335_document_)||window;if(_.jh(_.QX(this.JSC$8198_url_),"ignoreLimits")=="true")K=new _.n0(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.jh(_.QX(this.JSC$8198_url_),"shadeDialog")=="true"){var d=Zns(this);d=kSv(d);var f=_.iW(K);K=f.width-80;f=f.height-40;d&&(K-=d.left?d.left:0,K-=d.right?d.right:0,f-=d.top?d.top:0,f-=d.bottom?d.bottom:0);K=new _.n0(K>0?K:0,f>0?f:0)}else(d=this.preferredDialogWidth_)?(d=Math.max(320,
Math.min(1051,d)),(f=this.preferredDialogHeight_)||(f=_.iW(K).height*.85),f=Math.max(480,Math.min(650,f))):(d=_.iW(K),f=d.width*.618,f=f<d.height?Math.round(Math.max(480,Math.min(650,f*.85))):Math.round(Math.max(480,Math.min(650,d.height*.85))),d=Math.round(f/.618)),K=_.iW(K),d=Math.min(d,Math.max(K.width,320)),f=Math.min(f,Math.max(K.height,480)),K=new _.n0(d,f);_.Co6(this.getContentElement(),K);this.reposition()};
Lm.prototype.reposition=function(){if(_.jh(_.QX(this.JSC$8198_url_),"shadeDialog")=="true"){var K=L5N(this.getElement()),d=_.iW(this.JSC$8147_dom_.getWindow());K=Math.floor(d.width/2-K.width/2);d=Zns(this);if(d=kSv(d)){var f=d.left?d.left:0;f+=d.right?d.right:0;K=Math.floor(K-f/2)}K=K>0?K:0;d=cR(this.JSC$8147_dom_).y;tB(this.getElement(),K,d)}else Lm.superClass_.reposition.call(this)};
Lm.prototype.setVisible=function(K){if(K!=this.isVisible()&&this.autoSizeDialog_){var d=this.JSC$8147_dom_.getWindow();K?(this.resizePicker_(),Yn(this).listen(d,"resize",this.resizePicker_),this.iframeLoaded_||Yn(this).listen(d,"keydown",this.handleKeydown_)):(Yn(this).unlisten(d,"resize",this.resizePicker_),this.iframeLoaded_||Yn(this).unlisten(d,"keydown",this.handleKeydown_))}Lm.superClass_.setVisible.call(this,K);PxN(this,new VqG(K))};
Lm.prototype.focus=function(){Lm.superClass_.focus.call(this);if(this.JSC$8198_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8198_iframe_.focus()}catch(K){}};var gm=function(K,d){d=d===void 0?Lm:d;Wy.call(this,K);this.pickerConstructor=d;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(K=window.location.origin)||(K=window.location.protocol+"//"+window.location.host);K&&this.urlParamMap_.set("origin",K);this.postProcessors_=[]};
_.O(gm,yRn);gm.prototype.JSC$8203_disposeOnHide_=!1;
gm.prototype.build=function(){this.JSC$8104_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8104_appId_);this.getRelayUrl()||this.setRelayUrl(_.xk(_.Bk(_.Lx(_.QX(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var K=new this.pickerConstructor(OQf(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);K.JSC$8180_disposeOnHide_=this.JSC$8203_disposeOnHide_;
K.JSC$8198_appId_=this.JSC$8104_appId_;K.loadedFired_&&gM9(K);MqB(K,this.callback_);return K};
var NFt=function(K){K.urlParamMap_.set("multiselectEnabled","true");return K};
gm.prototype.getHeight=function(){return this.dialogHeight_};
gm.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
gm.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
gm.prototype.getWidth=function(){return this.dialogWidth_};
var Yb8=function(K){K.JSC$8203_disposeOnHide_=void 0;return K};
gm.prototype.setRelayUrl=function(K){this.urlParamMap_.set("parent",K);return this};
var tqJ=function(K,d){K.urlParamMap_.set("selectButtonLabel",d);return K};
gm.prototype.setSize=function(K,d){this.dialogWidth_=K;this.dialogHeight_=d;return this};
gm.prototype.setTitle=function(K){this.urlParamMap_.set("title",K);return this};
var OQf=function(K){K.postProcessors_.length&&K.urlParamMap_.set("pp",JSON.stringify(K.postProcessors_));K.urlParamMap_.set("nav",mof(K.nav_));var d=new _.Q8(K.getBaseUrl());K.urlParamMap_.forEach(function(f,H){_.Cm(d,H,f)});
return d};var EMB=function(K,d){K.name!==void 0?(this.name=K.name,this.code=oMH[K.name]):(this.code=K=K.code,this.name=$kk(K));_.KB.call(this,Vyp("%s %s",this.name,d))};
_.Bd(EMB,_.KB);var $kk=function(K){var d=_.PR.findKey(oMH,function(f){return K==f});
if(d===void 0)throw Error("lb`"+K);return d},Wt={},oMH=(Wt.AbortError=3,Wt.EncodingError=5,Wt.InvalidModificationError=9,Wt.InvalidStateError=7,Wt.NotFoundError=1,Wt.NotReadableError=4,Wt.NoModificationAllowedError=6,Wt.PathExistsError=12,Wt.QuotaExceededError=10,Wt.SecurityError=2,Wt.SyntaxError=8,Wt.TypeMismatchError=11,Wt);var h8B=function(K,d){_.D5.call(this,K.type,d);this.event_=K};
_.Bd(h8B,_.D5);var bQs=function(K,d,f){f===void 0&&(f=K.size);return K.slice?K.slice(d,f):null};var vM5=new WeakMap,X_5=function(K,d){K=[K];for(var f=d.length-1;f>=0;--f)K.push(typeof d[f],d[f]);return K.join("\v")};_.Px5(function(){if(!_.Hu.Blob)return!1;var K=new Uint8Array(100);try{var d=new Blob([K])}catch(f){return!1}return d.size!=100?!1:!0});
var mkH=_.Px5(function(){if(!_.Hu.Blob)return!1;var K=new Uint8Array(100);try{var d=new Blob([K])}catch(f){return!1}return bQs(d,0,1)===null?!1:!0});_.Hu.U3bHHf!=null||(_.Hu.U3bHHf=0);_.Hu.U3bHHf++;var gMo={};var kl=void 0;var NFp=Symbol("tb");var TFz=pm("WizInjectionContext_Dispatcher");var mkX=pm("WizInjectionContext_RootElement");var WDX=pm("WizInjectionContext_AppContext"),ldS=pm("WizInjectionContext_ModelRootElement"),G2n=pm("WizInjectionContext_RendererData"),ARG=pm("WizInjectionContext_InjectingConstructor"),bQJ=pm("WizInjectionContext_AsyncDeps"),rRN={};var LDu=!1;var ldk=Symbol("xb"),Tiz=Symbol("yb"),j0o=Symbol("zb"),qFJ=Symbol("Ab"),ksJ=J6(function(K){return fn(K)&&ldk in K});var w_G={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:ZVN,enableLazyTsx:eZB,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1,legacyTriggerSoyRendererEvents:!1};var dQ=Object.assign({},{attributes:{},handleError:function(K){throw K;}},w_G);var fUS=Symbol("Bb"),Gd={},Kgo=(Gd[fUS]=!0,Gd.debugName="[component]",Gd.getComponentStack=function(){for(var K=[],d=this;d;)Hyp(d)&&K.push(d.debugName),d=d.parent;return K},Gd.registerSignal=function(){},Gd.registerEffect=function(){},Gd);var HC=null,VD=!1,iyJ=1,nn=Symbol("Cb"),FR={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var Az=Symbol("Db"),Td=Symbol("Eb"),yD=Symbol("Fb"),zAz=Object.assign({},FR,{value:Az,dirty:!0,error:null,equal:DXz,kind:"computed",producerMustRecompute:function(K){return K.value===Az||K.value===Td},
producerRecomputeValue:function(K){if(K.value===Td)throw Error("da");var d=K.value;K.value=Td;var f=UXu(K),H=!1;try{var D=K.computation();DK(null);H=d!==Az&&d!==yD&&D!==yD&&K.equal(d,D)}catch(S){D=yD,K.error=S}finally{RA5(K,f)}H?K.value=d:(K.value=D,K.version++)}});var PHO=function(){throw Error();};var Oyu=null,v_n=Object.assign({},FR,{equal:DXz,value:void 0,kind:"signal"});Object.assign({},FR,{value:Az,dirty:!0,error:null,equal:DXz,kind:"linkedSignal",producerMustRecompute:function(K){return K.value===Az||K.value===Td},
producerRecomputeValue:function(K){if(K.value===Td)throw Error("da");var d=K.value;K.value=Td;var f=UXu(K);try{var H=K.source();var D=K.computation(H,d===Az||d===yD?void 0:{source:K.sourceValue,value:d});K.sourceValue=H}catch(S){D=yD,K.error=S}finally{RA5(K,f)}d!==Az&&D!==yD&&K.equal(d,D)?K.value=d:(K.value=D,K.version++)}});Object.assign({},FR,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(K){K.schedule!==null&&K.schedule(K.ref)},
hasRun:!1,cleanupFn:function(){}});var YFp=Symbol("Gb"),u8=Symbol("Hb");var al=Array.isArray;var Wgz;var WDf={},A95=lUz(Object.assign({},{consumerAllowSignalWrites:!0},WDf)),Ub=lUz(Object.assign({},{consumerAllowSignalWrites:!0},WDf));var PC=0,rT=function(){this.queue=new Set};
rT.prototype.remove=function(K){this.queue.delete(K)};
rT.prototype.clear=function(){this.queue.clear()};
var G2L=function(){rT.apply(this,arguments)};
_.O(G2L,rT);G2L.prototype.schedule=function(K){this.queue.add(K)};
G2L.prototype.flush=function(){if(this.queue.size)for(var K=_.y(this.queue),d=K.next();!d.done;d=K.next()){d=d.value;this.queue.delete(d);try{d.run()}catch(f){ARB(f)}}};
var TF2=new G2L,q0=function(){rT.apply(this,arguments)};
_.O(q0,rT);var rR6=function(){q0.apply(this,arguments)};
_.O(rR6,q0);rR6.prototype.schedule=function(K){K.hasRun?this.queue.add(K):K.run()};
rR6.prototype.flush=function(){if(this.queue.size){var K=this.queue;this.queue=new Set;w6B(K)}};
var r95=new rR6,qbf=function(){q0.apply(this,arguments)};
_.O(qbf,q0);qbf.prototype.schedule=function(K){var d=this;return _.c(function(f){if(f.nextAddress==1)return K.hasRun?f.jumpTo(2):_.I(f,Promise.resolve(),3);if(f.nextAddress!=2)return K.run(),f.return();d.queue.add(K);_.iQ(f)})};
qbf.prototype.flush=function(){var K=this;return _.c(function(d){if(d.nextAddress==1)return K.queue.size?_.I(d,Promise.resolve(),2):d.return();w6B(K.queue);_.iQ(d)})};
var CHX=new qbf,QdN=function(){q0.apply(this,arguments)};
_.O(QdN,q0);QdN.prototype.schedule=function(K){this.queue.add(K)};
QdN.prototype.flush=function(){this.queue.size&&w6B(this.queue)};
var Q05=new QdN,J9S=[r95,TF2,Q05,CHX],jd9=[r95,Q05,CHX],LgY=[];Oyu=function(){s0z();for(var K=_.y(LgY),d=K.next();!d.done;d=K.next())d=d.value,d()};
var ARB=Dn;var On=Symbol("Mb");var gQ=null,KnB,dHO=null,fkY;var Qt={},CxB=Object.assign({},FR,(Qt[ldk]=!0,Qt.effectType=Tiz,Qt.isResettableContext=!0,Qt.producerNode=void 0,Qt.hasRun=!1,Qt.effectFn=null,Qt.consumerIsAlwaysLive=!0,Qt.consumerAllowSignalWrites=!0,Qt.consumerMarkedDirty=xXX,Qt.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(VD)throw Error("Nb");this.dirty=!1;if(!this.hasRun||c9G(this)){this.hasRun=!0;h8G(this);var K=eh(this),d=UXu(this);e8Y("effectRun",this.debugName);try{tc(this.effectFn,this.componentStack)}catch(f){throw dQ.enableContextBasedComponentStacks&&
YF(f),f;}finally{p_z("effectRun",this.debugName),RA5(this,d),eh(K)}}}},Qt.componentStack=void 0,Qt.debugName="[effect]",Qt[Symbol.dispose]=function(){VQu(this);
if(SD(this))for(var K=0;K<this.producerNode.length;K++)SFn(this.producerNode[K],this.producerIndexOfThis[K]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);K=_.y(jd9);for(var d=K.next();!d.done;d=K.next())d.value.remove(this);EMG(this)},Qt));var Vcn=Object.assign({},CxB,{effectType:j0o});var SXY=Symbol("Ob");var yLn=Object.assign({},CxB,{effectType:Tiz});var C3z=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 KQ=Symbol("Pb");var ux=function(){},X0=function(K){this.props=K;
this.__unmounted=!1};
X0.prototype.didPatch=function(){};
X0.prototype.didMount=function(){};
X0.prototype.didUnmount=function(){};
X0.prototype.didUpdate=function(){};var cLJ={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,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,valign:1,value:1,width:1,wrap:1},iAY={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}]}},hH5={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},Ikz=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],akz={"*":{async:1,dir:0,loading:2,target:3}};var xkJ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,jI={},RnN=(jI[1]=null,jI[2]=function(K,d){return d instanceof YG?oo(d):zY.toString()},jI[3]=function(K,d){return ao(d)?_.Io(d):xkJ.test(String(d))?String(d):zY.toString()},jI[4]=function(K,d){return d instanceof Se?_.nM(d):zY.toString()},jI[5]=function(K,d){return String(d)},jI[7]=null,jI[8]=null,jI[10]=null,jI);var pvJ=Symbol("Rb");var mUY=function(K){var d=LD4,f=K,H="",D="",S=1;K<0&&(K=-K);if(K===Infinity)K=(Infinity*Math.sign(f)).toString();else{for(var n=0;n<BFJ.length;n++){var u=BFJ[n];S=d[u];if(K>=S||S<=1&&K>.1*S){H=u;break}}H?(H+="B",D=" "):S=1;K=Math.round(f/S*10)/10+D+H}return K},BFJ="Y Z E P T G M K  m u n".split(" "),LD4={"":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};_.JRL=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 Sq={};RegExp.prototype.hasOwnProperty("sticky");var BRJ=function(K){K=String(K);for(var d=function(H,D,S){for(var n=Math.min(D.length-S,H.length),u=0;u<n;u++){var a=D[S+u];if(H[u]!==("A"<=a&&a<="Z"?a.toLowerCase():a))return!1}return!0},f=0;(f=K.indexOf("<",f))!=-1;){if(d("\x3c/script",K,f)||d("\x3c!--",K,f))return"zSoyz";
f+=1}return K};var Gh={default:"__default"};var gKB=Object.prototype.hasOwnProperty;XAG.prototype=Object.create(null);var J3=YXG();var kF=null;var ALX=function(K){this.created=[];this.deleted=[];this.node=K};var TRB=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var K=this,d=K;K;)d=K,K=K.parentNode;return d};var oKJ=function(K,d){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=K;this.key=d;this.text=void 0};var qq=null,QD=null,Th=null,Cn=null,mHn=[],bAX=EKX,Jc=[],sn=[],e2o=function(K){return rLY(function(d,f,H){Th=QD=d;QD=null;f(H);hnp(null);QD=Th;Th=Th.parentNode;return d},K)}(),ZZz=function(K){return rLY(function(d,f,H){var D={nextSibling:d};
QD=D;f(H);Th&&hnp(d.nextSibling);return D===QD?null:QD},K)}();var wQ=[],QcS=0;var ZK=new XAG;var Pv=new XAG;var sd6=YXG(),LnJ=sd6[Gh.default],JLY=sd6.style,xHG=["focusin","focusout"];var boX=function(){},M7B=function(){},A3O=function(){},lxO=function(){};var pn=Symbol("Xb");var Khz,pAB=enN;var nQ=Symbol("Yb");var RdS={};var GEz=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(" ")),
Whu=new Set(["a","font","script","style","title"]);var Rd={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var F0=null,z2=function(K,d){X0.call(this,K);var f=this;this.functionComponent=d;this.hooks=[];this.hookCounter=0;this.disposeEffects=En(function(H){f.effectContext=H;_.$F(function(){NUp(f,f.el)})},dQ.alwaysTrackContexts||!!kl)};
_.O(z2,X0);z2.prototype.render=function(K){var d=F0;F0=this;this.hookCounter=0;var f=DK(Ub),H=eh(this.effectContext);try{return e8Y("render",this.componentName),this.functionComponent(K)}finally{p_z("render",this.componentName),eh(H),DK(f),F0=d}};
_.x$.Object.defineProperties(z2.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return eAu(this.functionComponent)}}});var TUp=Symbol("lc"),E7X=function(K,d,f){this.kind=K;this.props=d;this.children=f};
_.O(E7X,ux);E7X.prototype.render=function(){return $Fz(this.kind,this.props,this.children)};
E7X.prototype.getChildren=function(){return this.children};var qNu=[];PHO=function(K){throw Error("sb`"+K.debugName);};
(function(){var K=kF;kF=function(d){K==null||K(d);QBz(d)}})();var k2s=void 0,w_B={},ZQJ=new WeakMap,jBN={getComponent:function(K){if(K.hasAttribute("ng-version"))return w_B;if(!K.__wizComponent)return null;K=K.__wizComponent;ZQJ.set(K.propsAndState,K);return K.propsAndState},
getDirectiveMetadata:function(K){if(K===w_B)return{framework:"wiz",name:"<Root>",props:{}};K=ZQJ.get(K);if(!K)throw Error("mc");return{framework:"wiz",name:K.name,props:Object.fromEntries(Object.keys(K.props).map(function(d){return[d,d]}))}},
"\u0275setProfiler":function(K){var d;(d=k2s)==null||d();k2s=Biz(function(){K(2)})},
isSignal:function(K){return typeof K==="function"&&K[nn]!==void 0}};_.X.debugName="RlDudd";var xFo={nonNullableCondIsNull:function(){return Error("qc")}};var wa5=function(){this.map=new Map};
wa5.prototype.push=function(K,d){var f=this.map;f.has(K)&&(this.multi||(this.multi=new Map),this.multi.set(d,f.get(K)));f.set(K,d)};
wa5.prototype.pop=function(K){var d=this.map,f=d.get(K),H;f!==void 0&&((H=this.multi)==null?0:H.has(f))?(d.set(K,this.multi.get(f)),this.multi.delete(f)):d.delete(K);return f};_.v_.debugName="nsTGHd";_.Mk.debugName="tbhMcf";_.P_.debugName="zyMFzb";_.gF.debugName="vI1rtf";var d5Y={LOG_NULL_EL_REF_VALUE:function(){return Error("rc")},
OUT_OF_ORDER_HOOK_CALL:function(K){return Error("sc`"+K)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("tc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("uc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("vc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(K,d){return Error("wc`"+K+"`"+d)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(K){return Error("xc`"+K)},
USE_ELEMENT_NOT_ASSIGNED:function(K){return Error("yc`"+String(K))}};Khz=hdn;var VWo=Symbol("zc");g7o({beforeRender:function(K){var d=eh(K.effectContext);try{var f;((f=K.__syncEffects)==null?0:f.length)&&ydS(K.__syncEffects)}finally{eh(d)}},
didPatch:function(K){var d=eh(K.effectContext);try{var f;((f=K.__syncEffects)==null?0:f.length)&&ydS(K.__syncEffects)}finally{eh(d)}},
didUnmount:function(K){var d;((d=K.hooks)==null?0:d.length)&&K.hooks.forEach(SSX)}});var e8s,p_2,Kg9;e8s=_.Hu.window;_.hR=(e8s==null?void 0:(p_2=e8s.yt)==null?void 0:p_2.config_)||(e8s==null?void 0:(Kg9=e8s.ytcfg)==null?void 0:Kg9.data_)||{};_.B6("yt.config_",_.hR);var dXB={},utz=[];_.X4=function(K){var d=_.Pg.apply(1,arguments);var f=Error.call(this,K);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.args=[].concat(_.Me(d));Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(_.X4,Error);var czo=function(K,d,f){this.actionName=K;this.optionalAction=d===void 0?!1:d;this.args=f===void 0?null:f;this.returnValue=[]};_.Z=function(K){this.name=K};_.GE=new _.Z("signalAction");var g$5=/^[\w.]*$/,FkO={q:!0,search_query:!0},RtX=String(U5u);var CG;CG=Symbol("Ac");_.xn=function(K){this.name=K};
_.xn.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var O3G=function(K){this.key=K},tWY=function(K){this.deferredKey=K},YSS=function(){var K=this;
this.providers=new Map;this.JSC$8411_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(K.providers)}}};
YSS.prototype.addProvider=function(K){this.providers.set(K.provide,K);var d=this.JSC$8411_deferred.get(K.provide);if(d)try{d.resolver(this.resolve(K.provide))}catch(f){d.rejector(f)}};
YSS.prototype.resolve=function(K){return K instanceof tWY?fUk(this,K):K instanceof O3G?Hyt(this,K.key,[],!0):Hyt(this,K,[])};
var fUk=function(K,d){d=d.deferredKey;if(K.JSC$8411_deferred.has(d))return K.JSC$8411_deferred.get(d).promise;var f={};f.promise=new Promise(function(H,D){f.resolver=H;f.rejector=D});
K.JSC$8411_deferred.set(d,f);return f.promise},Hyt=function(K,d,f,H){H=H===void 0?!1:H;
if(f.indexOf(d)>-1)throw Error("Bc`"+d);if(K.cachedValues.has(d))return K.cachedValues.get(d);if(!K.providers.has(d)){if(H)return;throw Error("Cc`"+d);}H=K.providers.get(d);f.push(d);if(H.useValue!==void 0)var D=H.useValue;else if(H.useFactory)D=H[CG]?DX8(K,H[CG],f):[],D=H.useFactory.apply(H,_.Me(D));else if(H.useClass){D=H.useClass;var S=D[CG]?DX8(K,D[CG],f):[];D=new (Function.prototype.bind.apply(D,[null].concat(_.Me(S))))}else throw Error("Dc`"+d);f.pop();H.skipCache||K.cachedValues.set(d,D);return D},
DX8=function(K,d,f){return d?d.map(function(H){return H instanceof O3G?Hyt(K,H.key,f,!0):Hyt(K,H,f)}):[]};var NXX;var A3=new _.xn("ENDPOINT_HANDLER_TOKEN");_.TE=new _.Z("urlEndpoint");var VQ4=function(){this.data=[];this.cachedPackedInt52=-1};
VQ4.prototype.set=function(K,d){d=d===void 0?!0:d;0<=K&&K<52&&Number.isInteger(K)&&this.data[K]!==d&&(this.data[K]=d,this.cachedPackedInt52=-1)};
VQ4.prototype.get=function(K){return!!this.data[K]};
var SFL=function(K){K.cachedPackedInt52===-1&&(K.cachedPackedInt52=K.data.reduce(function(d,f,H){return d+(f?Math.pow(2,H):0)},0));
return K.cachedPackedInt52};var Q4z=function(K){var d=y9J;K=K===void 0?_.T2("yt.ads.biscotti.lastId_")||"":K;var f=Object,H=f.assign,D={};D.dt=i7f;D.flash="0";a:{try{var S=d.JSC$8417_win_.top.location.href}catch(FX){S=2;break a}S=S?S===d.doc_.location.href?0:1:2}D=(D.frm=S,D);try{D.u_tz=-(new Date).getTimezoneOffset();var n=n===void 0?$k:n;try{var u=n.history.length}catch(FX){u=0}D.u_his=u;var a;D.u_h=(a=$k.screen)==null?void 0:a.height;var R;D.u_w=(R=$k.screen)==null?void 0:R.width;var F;D.u_ah=(F=$k.screen)==null?void 0:F.availHeight;
var z;D.u_aw=(z=$k.screen)==null?void 0:z.availWidth;var v;D.u_cd=(v=$k.screen)==null?void 0:v.colorDepth}catch(FX){}u=d.JSC$8417_win_;try{var g=u.screenX;var N=u.screenY}catch(FX){}try{var h=u.outerWidth;var m=u.outerHeight}catch(FX){}try{var T=u.innerWidth;var r=u.innerHeight}catch(FX){}try{var J=u.screenLeft;var L=u.screenTop}catch(FX){}try{T=u.innerWidth,r=u.innerHeight}catch(FX){}try{var fB=u.screen.availWidth;var w=u.screen.availTop}catch(FX){}g=[J,L,g,N,fB,w,h,m,T,r];N=XFB(!1,d.JSC$8417_win_.top);
h={};var yO=yO===void 0?_.Hu:yO;m=new VQ4;"SVGElement"in yO&&"createElementNS"in yO.document&&m.set(0);T=uXk();T["allow-top-navigation-by-user-activation"]&&m.set(1);T["allow-popups-to-escape-sandbox"]&&m.set(2);yO.crypto&&yO.crypto.subtle&&m.set(3);"TextDecoder"in yO&&"TextEncoder"in yO&&m.set(4);yO=SFL(m);d=(h.bc=yO,h.bih=N.height,h.biw=N.width,h.brdim=g.join(),h.vis=Hm5(d.doc_),h.wgl=!!$k.WebGLRenderingContext,h);f=H.call(f,D,d);f.ca_type="image";K&&(f.bid=K);return f},y9J=new function(){var K=
window.document;
this.JSC$8417_win_=window;this.doc_=K};
_.B6("yt.ads_.signals_.getAdSignalsString",function(K){return zto(Q4z(K))});_.Ls();navigator.userAgent.indexOf(" (CrKey ");var b3G="XMLHttpRequest"in _.Hu?function(){return new XMLHttpRequest}:null;var n_v="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),iys=[].concat(_.Me(n_v),["client_dev_set_cookie"]);var qSY={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"},WkB="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(_.Me(n_v)),wep=!1,Adp=_.j4u,JdS=rdz;var vAO=[{messageFn:function(K){return"Cannot read property '"+K.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(K){return"Cannot call '"+K.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(K){return K.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var c9B={messageWeights:[],callbackWeights:[{callback:KVO,weight:500},{callback:duo,weight:500}]};var u4k=function(){this.callbackWeights=[];this.messageWeights=[]},aUB,XvG=function(){if(!aUB){var K=aUB=new u4k;
K.messageWeights.length=0;K.callbackWeights.length=0;crX(K,c9B)}return aUB},crX=function(K,d){d.messageWeights&&K.messageWeights.push.apply(K.messageWeights,d.messageWeights);
d.callbackWeights&&K.callbackWeights.push.apply(K.callbackWeights,d.callbackWeights)};_.Bd(_.uH,_.gG);_.uH.prototype.subscribe=function(K,d,f){var H=this.topics_[K];H||(H=this.topics_[K]=[]);var D=this.JSC$8441_key_;this.subscriptions_[D]=K;this.subscriptions_[D+1]=d;this.subscriptions_[D+2]=f;this.JSC$8441_key_=D+3;H.push(D);return D};
var IUs=function(K){var d=OZO,f=!1,H=d.subscribe("handleError",function(D){f||(f=!0,this.unsubscribeByKey(H),K.apply(void 0,arguments))},d)};
_.uH.prototype.unsubscribe=function(K,d,f){if(K=this.topics_[K]){var H=this.subscriptions_;if(K=K.find(function(D){return H[D+1]==d&&H[D+2]==f}))return this.unsubscribeByKey(K)}return!1};
_.uH.prototype.unsubscribeByKey=function(K){var d=this.subscriptions_[K];if(d){var f=this.topics_[d];this.publishDepth_!=0?(this.pendingKeys_.push(K),this.subscriptions_[K+1]=function(){}):(f&&_.Zn(f,K),delete this.subscriptions_[K],delete this.subscriptions_[K+1],delete this.subscriptions_[K+2])}return!!d};
_.uH.prototype.publish=function(K,d){var f=this.topics_[K];if(f){var H=Array(arguments.length-1),D=arguments.length,S;for(S=1;S<D;S++)H[S-1]=arguments[S];if(this.async_)for(S=0;S<f.length;S++)D=f[S],UX4(this.subscriptions_[D+1],this.subscriptions_[D+2],H);else{this.publishDepth_++;try{for(S=0,D=f.length;S<D&&!this.isDisposed();S++){var n=f[S];this.subscriptions_[n+1].apply(this.subscriptions_[n+2],H)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;f=this.pendingKeys_.pop();)this.unsubscribeByKey(f)}}return S!=
0}return!1};
var UX4=function(K,d,f){_.uJ(function(){K.apply(d,f)})};
_.uH.prototype.clear=function(K){if(K){var d=this.topics_[K];d&&(d.forEach(this.unsubscribeByKey,this),delete this.topics_[K])}else this.subscriptions_.length=0,this.topics_={}};
_.uH.prototype.getCount=function(K){if(K){var d=this.topics_[K];return d?d.length:0}K=0;for(d in this.topics_)K+=this.getCount(d);return K};
_.uH.prototype.disposeInternal=function(){_.uH.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var OZO=new _.uH;var dR=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(dR,_.Ti);dR.prototype.getColdHashData=function(){return _.Xo(this,3)};
dR.prototype.getHotHashData=function(){return _.Xo(this,5)};
dR.prototype.setHotHashData=function(K){return _.aL(this,5,K)};var R0J=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(R0J,_.Ti);var CLJ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(CLJ,_.Ti);_.V=CLJ.prototype;_.V.getDeviceId=function(){return _.Xo(this,6)};
_.V.getExperimentIds=function(K){var d=_.M8(this,9,_.Nl,3,!0);jt(d,K);return d[K]};
_.V.getPlayerType=function(){return _.vY(this,36)};
_.V.setHomeGroupInfo=function(K){return _.fM(this,81,K)};
_.V.clearLocationPlayabilityToken=function(){return _.KA(this,89)};var aB=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(aB,_.Ti);aB.prototype.setKey=function(K){return _.aL(this,1,K)};
aB.prototype.getValue=function(){return PY(this,2,LxJ)};
var LxJ=[2,3,4,5,6];var RAN=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(RAN,_.Ti);RAN.prototype.setTrackingParams=function(K){return _.KA(this,1,_.r2(K,!1))};var x7B=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(x7B,_.Ti);var XGp=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(XGp,_.Ti);XGp.prototype.getExperimentIds=function(K){var d=_.M8(this,5,_.Yw,3,!0);jt(d,K);return d[K]};var Fb=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Fb,_.Ti);Fb.prototype.getToken=function(){return _.Um(this,2)};
Fb.prototype.setToken=function(K){return _.aL(this,2,K)};var UN=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(UN,_.Ti);UN.prototype.setSafetyMode=function(K){return _.py(this,5,K)};var up=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(up,_.Ti);up.prototype.setClient=function(K){return _.fM(this,1,K)};var z0J={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 FqG;_.Mn=function(){var K=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Hu.addEventListener("beforeinstallprompt",function(d){d.preventDefault();K.deferredInstallPrompt=d});
_.Hu.addEventListener("appinstalled",function(){K.appInstalledEventFired=!0},{once:!0})};
FqG=function(){if(!_.Hu.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Hu.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Hu.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Hu.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Hu.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(K){return"WEB_DISPLAY_MODE_UNKNOWN"}};var PB5=function(){this.syncHeaders=!0},gJn=function(K){var d={},f=[];
"USER_SESSION_ID"in _.hR&&f.push({key:"u",value:_.mD("USER_SESSION_ID")});if(f=xQY(f))d.Authorization=f,f=K=K==null?void 0:K.sessionIndex,f===void 0&&(f=Number(_.mD("SESSION_INDEX",0)),f=isNaN(f)?0:f),_.M("voice_search_auth_header_removal")||(d["X-Goog-AuthUser"]=f.toString()),"INNERTUBE_HOST_OVERRIDE"in _.hR||(d["X-Origin"]=window.location.origin),K===void 0&&"DELEGATED_SESSION_ID"in _.hR&&(d["X-Goog-PageId"]=_.mD("DELEGATED_SESSION_ID"));return d};var Fgk={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var LG=_.T2("ytglobal.prefsUserPrefsPrefs_")||{},zA8;_.B6("ytglobal.prefsUserPrefsPrefs_",LG);_.Bt=function(){this.cookieName=_.mD("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.mD("ALT_PREF_COOKIE_DOMAIN","youtube.com");var K=_.I0.get(this.cookieName,void 0);K&&this.parse(K)};
_.aS=function(){zA8||(zA8=new _.Bt);return zA8};
_.Bt.prototype.get=function(K,d){X6B(K);v_L(K);K=LG[K]!==void 0?LG[K].toString():null;return K!=null?K:d?d:""};
_.Bt.prototype.set=function(K,d){X6B(K);v_L(K);if(d==null)throw Error("Gc");LG[K]=d.toString()};
_.Bt.prototype.getFlag=function(K){return!!((MQs("f"+(Math.floor(K/31)+1))||0)&1<<K%31)};
_.IS=function(K,d,f){K="f"+(Math.floor(d/31)+1);d=1<<d%31;var H=MQs(K)||0;H=f?H|d:H&~d;H===0?delete LG[K]:(f=H.toString(16),LG[K]=f.toString())};
_.Bt.prototype.remove=function(K){X6B(K);v_L(K);delete LG[K]};
_.Bt.prototype.save=function(){var K=!0;_.M("web_secure_pref_cookie_killswitch")&&(K=!1);_.UF(this.cookieName,this.dump(),63072E3,this.cookieDomain,K)};
_.Bt.prototype.clear=function(){_.PR.clear(LG)};
_.Bt.prototype.dump=function(){var K=[],d;for(d in LG)LG.hasOwnProperty(d)&&K.push(d+"="+encodeURIComponent(String(LG[d])));return K.join("&")};
var v_L=function(K){if(/^f([1-9][0-9]*)$/.test(K))throw Error("Hc`"+K);},X6B=function(K){if(!/^\w+$/.test(K))throw Error("Ic`"+K);
},MQs=function(K){K=LG[K]!==void 0?LG[K].toString():null;
return K!=null&&/^[A-Fa-f0-9]+$/.test(K)?parseInt(K,16):null};
_.Bt.prototype.parse=function(K){K=decodeURIComponent(K).split("&");for(var d=0;d<K.length;d++){var f=K[d].split("="),H=f[0];(f=f[1])&&(LG[H]=f.toString())}};var ceS={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"},vJX={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},MsX={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},apo={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var eV;_.Jz=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.va=function(K,d,f){return K.addJob(d,0,f)};
_.Jz.prototype.addLowPriorityJob=function(K,d){return this.addJob(K,1,d)};
_.uX=function(K,d,f){return K.addJob(d,2,f)};
_.FN=function(K,d,f){return K.addJob(d,3,f)};
_.pZ=function(K,d,f){return K.addJob(d,4,f)};
eV=function(K){var d=_.T2("yt.scheduler.instance.addImmediateJob");d?d(K):K()};
_.Jz.prototype.debounce=function(K,d,f){var H=this,D=0,S=function(){D&&H.cancelJob(D);D=H.addJob(K,d,f);H.cancelDebouncedJobMap.set(S,D)};
return S};
_.Jz.prototype.cancelThrottle=function(K){(K=this.cancelThrottledJobMap.get(K))&&K()};var st=function(){_.Jz.apply(this,arguments)};
_.O(st,_.Jz);_.Xm=function(){st.instance||(st.instance=new st);return st.instance};
st.prototype.addJob=function(K,d,f){f!==void 0&&Number.isNaN(Number(f))&&(f=void 0);var H=_.T2("yt.scheduler.instance.addJob");return H?H(K,d,f):f===void 0?(K(),NaN):_.VK(K,f||0)};
st.prototype.cancelJob=function(K){if(K===void 0||!Number.isNaN(Number(K))){var d=_.T2("yt.scheduler.instance.cancelJob");d?d(K):_.yK(K)}};
st.prototype.start=function(){var K=_.T2("yt.scheduler.instance.start");K&&K()};
st.prototype.pause=function(){var K=_.T2("yt.scheduler.instance.pause");K&&K()};
_.oc=_.Xm();_.v6.prototype.set=function(K,d){d===void 0?this.mechanism.remove(K):this.mechanism.set(K,(0,_.FJ)(d))};
_.v6.prototype.get=function(K){try{var d=this.mechanism.get(K)}catch(f){return}if(d!==null)try{return JSON.parse(d)}catch(f){throw"Storage: Invalid value was encountered";}};
_.v6.prototype.remove=function(K){this.mechanism.remove(K)};var kn=function(K){this.mechanism=K};
_.Bd(kn,_.v6);var PHv=function(K){this.data=K},g_H=function(K){return K===void 0||K instanceof PHv?K:new PHv(K)};
kn.prototype.set=function(K,d){kn.superClass_.set.call(this,K,g_H(d))};
kn.prototype.getWrapper=function(K){K=kn.superClass_.get.call(this,K);if(K===void 0||K instanceof Object)return K;throw"Storage: Invalid value was encountered";};
kn.prototype.get=function(K){if(K=this.getWrapper(K)){if(K=K.data,K===void 0)throw"Storage: Invalid value was encountered";}else K=void 0;return K};_.Bd(MX,kn);_.Oy4=function(K){var d=K.creation;K=K.expiration;return!!K&&K<_.Ls()||!!d&&d>_.Ls()};
MX.prototype.set=function(K,d,f){if(d=g_H(d)){if(f){if(f<_.Ls()){MX.prototype.remove.call(this,K);return}d.expiration=f}d.creation=_.Ls()}MX.superClass_.set.call(this,K,d)};
MX.prototype.getWrapper=function(K,d){var f=MX.superClass_.getWrapper.call(this,K);if(f)if(!d&&_.Oy4(f))MX.prototype.remove.call(this,K);else return f};var wT=function(){};
wT.prototype.next=function(){return Z9};
var Z9={done:!0,value:void 0},eI=function(K){return{value:K,done:!1}};
wT.prototype.__iterator__=function(){return this};
_.NiN=function(K){if(K instanceof wT)return K;if(typeof K.__iterator__=="function")return K.__iterator__(!1);if(_.d2(K)){var d=0,f=new wT;f.next=function(){for(;;){if(d>=K.length)return Z9;if(d in K)return eI(K[d++]);d++}};
return f}throw Error("Jc");};var YFt=function(K){if(K instanceof pG||K instanceof Kf||K instanceof dh)return K;if(typeof K.next=="function")return new pG(function(){return K});
if(typeof K[Symbol.iterator]=="function")return new pG(function(){return K[Symbol.iterator]()});
if(typeof K.__iterator__=="function")return new pG(function(){return K.__iterator__()});
throw Error("Kc");},pG=function(K){this.func_=K};
pG.prototype.__iterator__=function(){return new Kf(this.func_())};
pG.prototype[Symbol.iterator]=function(){return new dh(this.func_())};
pG.prototype.toEs6=function(){return new dh(this.func_())};
var Kf=function(K){this.JSC$8525_iter_=K};
_.O(Kf,wT);Kf.prototype.next=function(){return this.JSC$8525_iter_.next()};
Kf.prototype[Symbol.iterator]=function(){return new dh(this.JSC$8525_iter_)};
Kf.prototype.toEs6=function(){return new dh(this.JSC$8525_iter_)};
var dh=function(K){pG.call(this,function(){return K});
this.JSC$8528_iter_=K};
_.O(dh,pG);dh.prototype.next=function(){return this.JSC$8528_iter_.next()};var tQ6=function(){};var ff=function(){};
_.Bd(ff,tQ6);ff.prototype.getCount=function(){for(var K=0,d=_.y(this),f=d.next();!f.done;f=d.next())K++;return K};
ff.prototype[Symbol.iterator]=function(){return YFt(this.__iterator__(!0)).toEs6()};
ff.prototype.clear=function(){var K=Array.from(this);K=_.y(K);for(var d=K.next();!d.done;d=K.next())this.remove(d.value)};_.Bd(P6,ff);_.V=P6.prototype;_.V.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var K=this.storage_;if(K)try{K.setItem("__sak","1");K.removeItem("__sak");var d=!0}catch(f){d=f instanceof DOMException&&(f.name==="QuotaExceededError"||f.code===22||f.code===1014||f.name==="NS_ERROR_DOM_QUOTA_REACHED")&&K&&K.length!==0}else d=!1;this.cachedIsStorageAvailable_=d}return this.cachedIsStorageAvailable_};
_.V.set=function(K,d){HL(this);try{this.storage_.setItem(K,d)}catch(f){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.V.get=function(K){HL(this);K=this.storage_.getItem(K);if(typeof K!=="string"&&K!==null)throw"Storage mechanism: Invalid value was encountered";return K};
_.V.remove=function(K){HL(this);this.storage_.removeItem(K)};
_.V.getCount=function(){HL(this);return this.storage_.length};
_.V.__iterator__=function(K){HL(this);var d=0,f=this.storage_,H=new wT;H.next=function(){if(d>=f.length)return Z9;var D=f.key(d++);if(K)return eI(D);D=f.getItem(D);if(typeof D!=="string")throw"Storage mechanism: Invalid value was encountered";return eI(D)};
return H};
_.V.clear=function(){HL(this);this.storage_.clear()};
_.V.key=function(K){HL(this);return this.storage_.key(K)};
var HL=function(K){if(K.storage_==null)throw Error("Lc");K.isAvailable()||Dn(Error("Lc"))};_.Bd(UuX,P6);_.Bd(RJX,P6);_.Bd(gi,ff);gi.prototype.set=function(K,d){this.mechanism_.set(this.JSC$8543_prefix_+K,d)};
gi.prototype.get=function(K){return this.mechanism_.get(this.JSC$8543_prefix_+K)};
gi.prototype.remove=function(K){this.mechanism_.remove(this.JSC$8543_prefix_+K)};
gi.prototype.__iterator__=function(K){var d=this.mechanism_[Symbol.iterator](),f=this,H=new wT;H.next=function(){var D=d.next();if(D.done)return D;for(D=D.value;D.slice(0,f.JSC$8543_prefix_.length)!=f.JSC$8543_prefix_;){D=d.next();if(D.done)return D;D=D.value}return eI(K?D.slice(f.JSC$8543_prefix_.length):f.mechanism_.get(D))};
return H};_.mn=function(K){this.expiringStorage_=(K=_.FVp(K))?new MX(K):null;this.JSC$8547_domain_=document.domain||window.location.hostname};
_.mn.prototype.set=function(K,d,f,H){f=f||31104E3;this.remove(K);if(this.expiringStorage_)try{this.expiringStorage_.set(K,d,Date.now()+f*1E3);return}catch(S){}var D="";if(H)try{D=escape((0,_.FJ)(d))}catch(S){return}else D=escape(d);_.UF(K,D,f,this.JSC$8547_domain_)};
_.mn.prototype.get=function(K,d){var f=void 0,H=!this.expiringStorage_;if(!H)try{f=this.expiringStorage_.get(K)}catch(D){H=!0}if(H&&(f=_.I0.get(K,void 0))&&(f=unescape(f),d))try{f=JSON.parse(f)}catch(D){this.remove(K),f=void 0}return f};
_.mn.prototype.remove=function(K){this.expiringStorage_&&this.expiringStorage_.remove(K);_.yeN(K,"/",this.JSC$8547_domain_)};
_.mn.prototype.getCreationTime=function(K){return this.expiringStorage_&&(K=(this.expiringStorage_.getWrapper(K)||{}).creation,typeof K==="number")?K:null};var X0B=function(){var K;return function(){K||(K=new _.mn("ytidb"));return K}}();var Mv5;_.NX=[];Mv5=!1;var qyO=Pwo||gZz;var DT={},o_H=(DT.AUTH_INVALID="No user identifier specified.",DT.EXPLICIT_ABORT="Transaction was explicitly aborted.",DT.IDB_NOT_SUPPORTED="IndexedDB is not supported.",DT.MISSING_INDEX="Index not created.",DT.MISSING_OBJECT_STORES="Object stores not created.",DT.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",DT.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",DT.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",DT.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",DT.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",DT.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",DT.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",DT),Vd={},$XL=(Vd.AUTH_INVALID="ERROR",Vd.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Vd.EXPLICIT_ABORT="IGNORED",
Vd.IDB_NOT_SUPPORTED="ERROR",Vd.MISSING_INDEX="WARNING",Vd.MISSING_OBJECT_STORES="ERROR",Vd.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Vd.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Vd.QUOTA_EXCEEDED="WARNING",Vd.QUOTA_MAYBE_EXCEEDED="WARNING",Vd.UNKNOWN_ABORT="WARNING",Vd.INCOMPATIBLE_DB_VERSION="WARNING",Vd),S$={},E_t=(S$.AUTH_INVALID=!1,S$.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,S$.EXPLICIT_ABORT=!1,S$.IDB_NOT_SUPPORTED=!1,S$.MISSING_INDEX=!1,S$.MISSING_OBJECT_STORES=!1,S$.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,S$.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,S$.QUOTA_EXCEEDED=!1,S$.QUOTA_MAYBE_EXCEEDED=!0,S$.UNKNOWN_ABORT=!0,S$.INCOMPATIBLE_DB_VERSION=!1,S$),h9=function(K,d,f,H,D){d=d===void 0?{}:d;f=f===void 0?o_H[K]:f;H=H===void 0?$XL[K]:H;D=D===void 0?E_t[K]:D;_.X4.call(this,f,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:K},d));this.type=K;this.message=f;this.level=H;this.retryable=D;Object.setPrototypeOf(this,h9.prototype)};
_.O(h9,_.X4);var hAs=function(K,d){h9.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:d,foundObjectStores:K},o_H.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,hAs.prototype)};
_.O(hAs,h9);var NLB=function(K,d){var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.index=K;this.objectStore=d;Object.setPrototypeOf(this,NLB.prototype)};
_.O(NLB,Error);var YyJ=["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 W6=function(K){this.executor=K},lH=function(K){var d=this;
this.state={status:"PENDING"};this.JSC$8575_onFulfilled=[];this.JSC$8575_onRejected=[];K=K.executor;var f=function(D){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:D};D=_.y(d.JSC$8575_onFulfilled);for(var S=D.next();!S.done;S=D.next())S=S.value,S()}},H=function(D){if(d.state.status==="PENDING"){d.state={status:"REJECTED",
reason:D};D=_.y(d.JSC$8575_onRejected);for(var S=D.next();!S.done;S=D.next())S=S.value,S()}};
try{K(f,H)}catch(D){H(D)}};
lH.all=function(K){return new lH(new W6(function(d,f){var H=[],D=K.length;D===0&&d(H);for(var S={i$jscomp$505:0};S.i$jscomp$505<K.length;S={i$jscomp$505:S.i$jscomp$505},++S.i$jscomp$505)lH.resolve(K[S.i$jscomp$505]).then(function(n){return function(u){H[n.i$jscomp$505]=u;D--;D===0&&d(H)}}(S)).catch(function(n){f(n)})}))};
lH.resolve=function(K){return new lH(new W6(function(d,f){K instanceof lH?K.then(d,f):d(K)}))};
lH.reject=function(K){return new lH(new W6(function(d,f){f(K)}))};
lH.prototype.then=function(K,d){var f=this,H=K!=null?K:$uX,D=d!=null?d:oZX;return new lH(new W6(function(S,n){f.state.status==="PENDING"?(f.JSC$8575_onFulfilled.push(function(){by4(f,f,H,S,n)}),f.JSC$8575_onRejected.push(function(){mXk(f,f,D,S,n)})):f.state.status==="FULFILLED"?by4(f,f,H,S,n):f.state.status==="REJECTED"&&mXk(f,f,D,S,n)}))};
lH.prototype.catch=function(K){return this.then(void 0,K)};
var by4=function(K,d,f,H,D){try{if(K.state.status!=="FULFILLED")throw Error("Oc");var S=f(K.state.value);S instanceof lH?lU2(K,d,S,H,D):H(S)}catch(n){D(n)}},mXk=function(K,d,f,H,D){try{if(K.state.status!=="REJECTED")throw Error("Pc");
var S=f(K.state.reason);S instanceof lH?lU2(K,d,S,H,D):H(S)}catch(n){D(n)}},lU2=function(K,d,f,H,D){d===f?D(new TypeError("Qc")):f.then(function(S){S instanceof lH?lU2(K,d,S,H,D):H(S)},function(S){D(S)})};var yd;yd=window;_.k_=yd.ytcsi&&yd.ytcsi.now?yd.ytcsi.now:yd.performance&&yd.performance.timing&&yd.performance.now&&yd.performance.timing.navigationStart?function(){return yd.performance.timing.navigationStart+yd.performance.now()}:function(){return(new Date).getTime()};var A9=function(K,d){this.JSC$8587_wrapped=K;this.options=d;this.transactionCount=0;this.startedMs=Math.round((0,_.k_)());this.hasUnknownAbortedTransaction=!1},A9N,Ti8,cL,Q0N;
A9.prototype.add=function(K,d,f){return _.QK(this,[K],{mode:"readwrite",enableRetries:!0},function(H){return H.objectStore(K).add(d,f)})};
A9.prototype.clear=function(K){return _.QK(this,[K],{mode:"readwrite",enableRetries:!0},function(d){return d.objectStore(K).clear()})};
A9.prototype.close=function(){this.JSC$8587_wrapped.close();var K;((K=this.options)==null?0:K.closed)&&this.options.closed()};
A9.prototype.count=function(K,d){return _.QK(this,[K],{mode:"readonly",enableRetries:!0},function(f){return f.objectStore(K).count(d)})};
var WA=function(K,d,f){K=K.JSC$8587_wrapped.createObjectStore(d,f);return new nf(K)};
A9.prototype.delete=function(K,d){return _.QK(this,[K],{mode:"readwrite",enableRetries:!0},function(f){return f.objectStore(K).delete(d)})};
var Wg8=function(K,d){return _.QK(K,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(f){return f.objectStore("ResponseStore").index("byInterface").delete(d)})};
A9.prototype.get=function(K,d){return _.QK(this,[K],{mode:"readonly",enableRetries:!0},function(f){return f.objectStore(K).get(d)})};
A9.prototype.getAll=function(K,d,f){return _.QK(this,[K],{mode:"readonly",enableRetries:!0},function(H){return H.objectStore(K).getAll(d,f)})};
A9.prototype.put=function(K,d,f){return _.QK(this,[K],{mode:"readwrite",enableRetries:!0},function(H){return H.objectStore(K).put(d,f)})};
A9.prototype.objectStoreNames=function(){return Array.from(this.JSC$8587_wrapped.objectStoreNames)};
_.QK=function(K,d,f,H){var D,S,n,u,a,R,F,z,v,g,N,h;return _.c(function(m){switch(m.nextAddress){case 1:var T={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof f==="string"?T.mode=f:Object.assign(T,f);D=T;K.transactionCount++;S=D.enableRetries?3:1;n=0;case 2:if(u){m.jumpTo(4);break}n++;a=Math.round((0,_.k_)());_.HF(m,5);R=K.JSC$8587_wrapped.transaction(d,D.mode);T=new muX(R);T=Gst(T,H);return _.I(m,T,7);case 7:return F=m.yieldResult,z=Math.round((0,_.k_)()),A9N(K,a,z,n,void 0,
d.join(),D),m.return(F);case 5:v=_.n7(m);g=Math.round((0,_.k_)());N=tvN(v,K.JSC$8587_wrapped.name,d.join(),K.JSC$8587_wrapped.version);if((h=N instanceof h9&&!N.retryable)||n>=S)A9N(K,a,g,n,N,d.join(),D),u=N;m.jumpTo(2);break;case 4:return m.return(Promise.reject(u))}})};
A9N=function(K,d,f,H,D,S,n){d=f-d;D?(D instanceof h9&&(D.type==="QUOTA_EXCEEDED"||D.type==="QUOTA_MAYBE_EXCEEDED")&&t9("QUOTA_EXCEEDED",{dbName:$_(K.JSC$8587_wrapped.name),objectStoreNames:S,transactionCount:K.transactionCount,transactionMode:n.mode}),D instanceof h9&&D.type==="UNKNOWN_ABORT"&&(f-=K.startedMs,f<0&&f>=2147483648&&(f=0),t9("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:S,transactionDuration:d,transactionCount:K.transactionCount,dbDuration:f}),K.hasUnknownAbortedTransaction=!0),
Ti8(K,!1,H,S,d,n.tag),_.Y_(D)):Ti8(K,!0,H,S,d,n.tag)};
Ti8=function(K,d,f,H,D,S){t9("TRANSACTION_ENDED",{objectStoreNames:H,connectionHasUnknownAbortedTransaction:K.hasUnknownAbortedTransaction,duration:D,isSuccessful:d,tryCount:f,tag:S===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":S})};
A9.prototype.getVersion=function(){return this.JSC$8587_wrapped.version};
A9.prototype.getName=function(){return this.JSC$8587_wrapped.name};
var nf=function(K){this.JSC$8602_wrapped=K};
nf.prototype.add=function(K,d){return Gs(this.JSC$8602_wrapped.add(K,d))};
nf.prototype.autoIncrement=function(){return this.JSC$8602_wrapped.autoIncrement};
nf.prototype.clear=function(){return Gs(this.JSC$8602_wrapped.clear()).then(function(){})};
var G7=function(K,d,f){K.JSC$8602_wrapped.createIndex(d,f,{unique:!1})};
nf.prototype.count=function(K){return Gs(this.JSC$8602_wrapped.count(K))};
var r9N=function(K,d){return Cy(K,{query:d},function(f){return f.delete().then(function(){return f.continue()})}).then(function(){})};
nf.prototype.delete=function(K){return K instanceof IDBKeyRange?r9N(this,K):Gs(this.JSC$8602_wrapped.delete(K))};
nf.prototype.get=function(K){return Gs(this.JSC$8602_wrapped.get(K))};
nf.prototype.getAll=function(K,d){return"getAll"in IDBObjectStore.prototype?Gs(this.JSC$8602_wrapped.getAll(K,d)):qFs(this,K,d)};
var qFs=function(K,d,f){var H=[];return Cy(K,{query:d},function(D){if(!(f!==void 0&&H.length>=f))return H.push(D.getValue()),D.continue()}).then(function(){return H})};
nf.prototype.index=function(K){try{return new ie(this.JSC$8602_wrapped.index(K))}catch(d){if(d instanceof Error&&d.name==="NotFoundError")throw new NLB(K,this.JSC$8602_wrapped.name);throw d;}};
nf.prototype.getName=function(){return this.JSC$8602_wrapped.name};
nf.prototype.keyPath=function(){return this.JSC$8602_wrapped.keyPath};
nf.prototype.put=function(K,d){return Gs(this.JSC$8602_wrapped.put(K,d))};
var Cy=function(K,d,f){K=K.JSC$8602_wrapped.openCursor(d.query,d.direction);return Q0N(K).then(function(H){return b1S(H,f)})},muX=function(K){var d=this;
this.JSC$8610_wrapped=K;this.objectStoreCache=new Map;this.JSC$8610_aborted=!1;this.done=new Promise(function(f,H){d.JSC$8610_wrapped.addEventListener("complete",function(){f()});
d.JSC$8610_wrapped.addEventListener("error",function(D){D.currentTarget===D.target&&H(d.JSC$8610_wrapped.error)});
d.JSC$8610_wrapped.addEventListener("abort",function(){var D=d.JSC$8610_wrapped.error;if(D)H(D);else if(!d.JSC$8610_aborted){D=h9;for(var S=d.JSC$8610_wrapped.objectStoreNames,n=[],u=0;u<S.length;u++){var a=S.item(u);if(a===null)throw Error("Rc");n.push(a)}D=new D("UNKNOWN_ABORT",{objectStoreNames:n.join(),dbName:d.JSC$8610_wrapped.db.name,mode:d.JSC$8610_wrapped.mode});H(D)}})})},Gst=function(K,d){var f=new Promise(function(H,D){try{d(K).then(function(S){H(S)}).catch(D)}catch(S){D(S),K.abort()}});
return Promise.all([f,K.done]).then(function(H){return _.y(H).next().value})};
muX.prototype.abort=function(){this.JSC$8610_wrapped.abort();this.JSC$8610_aborted=!0;throw new h9("EXPLICIT_ABORT");};
muX.prototype.objectStore=function(K){K=this.JSC$8610_wrapped.objectStore(K);var d=this.objectStoreCache.get(K);d||(d=new nf(K),this.objectStoreCache.set(K,d));return d};
var ie=function(K){this.JSC$8612_wrapped=K};
ie.prototype.count=function(K){return Gs(this.JSC$8612_wrapped.count(K))};
ie.prototype.delete=function(K){return _.wi(this,{query:K},function(d){return d.delete().then(function(){return d.continue()})})};
ie.prototype.get=function(K){return Gs(this.JSC$8612_wrapped.get(K))};
ie.prototype.getAll=function(K,d){return"getAll"in IDBIndex.prototype?Gs(this.JSC$8612_wrapped.getAll(K,d)):j09(this,K,d)};
var j09=function(K,d,f){var H=[];return _.wi(K,{query:d},function(D){if(!(f!==void 0&&H.length>=f))return H.push(D.getValue()),D.continue()}).then(function(){return H})};
ie.prototype.keyPath=function(){return this.JSC$8612_wrapped.keyPath};
ie.prototype.unique=function(){return this.JSC$8612_wrapped.unique};
_.wi=function(K,d,f){K=K.JSC$8612_wrapped.openCursor(d.query===void 0?null:d.query,d.direction===void 0?"next":d.direction);return Q0N(K).then(function(H){return b1S(H,f)})};
cL=function(K,d){this.request=K;this.cursor=d};
Q0N=function(K){return Gs(K).then(function(d){return d?new cL(K,d):null})};
cL.prototype.continue=function(K){this.cursor.continue(K);return Q0N(this.request)};
cL.prototype.delete=function(){return Gs(this.cursor.delete()).then(function(){})};
cL.prototype.getValue=function(){return this.cursor.value};
cL.prototype.update=function(K){return Gs(this.cursor.update(K))};var ue=function(K,d){this.name=K;this.options=d;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},CHH;
ue.prototype.openDb=function(K,d,f){f=f===void 0?{}:f;return WVz(K,d,f)};
ue.prototype.delete=function(K){K=K===void 0?{}:K;return _.ri(this.name,K)};
CHH=function(K,d){return new h9("INCOMPATIBLE_DB_VERSION",{dbName:K.name,oldVersion:K.options.version,newVersion:d})};
_.qX=function(K,d){if(!d)throw mg("openWithToken",$_(K.name));return K.open()};
ue.prototype.open=function(){var K=this;if(!this.isCompatible)throw CHH(this);if(this.connectionPromise)return this.connectionPromise;var d,f=function(){K.connectionPromise===d&&(K.connectionPromise=void 0)},H={blocking:function(S){S.close()},
closed:f,terminated:f,upgrade:this.options.upgrade},D=function(){var S,n,u,a,R,F,z,v,g,N;return _.c(function(h){switch(h.nextAddress){case 1:return n=(S=Error().stack)!=null?S:"",_.HF(h,2),_.I(h,K.openDb(K.name,K.options.version,H),4);case 4:for(var m=u=h.yieldResult,T=K.options,r=[],J=_.y(Object.keys(T.objectStores)),L=J.next();!L.done;L=J.next()){L=L.value;var fB=T.objectStores[L],w=fB.removedAtVersion===void 0?Number.MAX_VALUE:fB.removedAtVersion;!(m.JSC$8587_wrapped.version>=fB.addedAtVersion)||
m.JSC$8587_wrapped.version>=w||m.JSC$8587_wrapped.objectStoreNames.contains(L)||r.push(L)}a=r;if(a.length===0){h.jumpTo(5);break}R=Object.keys(K.options.objectStores);F=u.objectStoreNames();if(K.timesReopenedToFixMissingObjectStore<_.di("ytidb_reopen_db_retries",0))return K.timesReopenedToFixMissingObjectStore++,u.close(),_.Y_(new h9("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:K.name,expectedObjectStores:R,foundObjectStores:F})),h.return(D());if(!(K.timesDeletedToFixMissingObjectStore<_.di("ytidb_remake_db_retries",
1))){h.jumpTo(6);break}K.timesDeletedToFixMissingObjectStore++;return _.I(h,K.delete(),7);case 7:return _.Y_(new h9("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:K.name,expectedObjectStores:R,foundObjectStores:F})),h.return(D());case 6:throw new hAs(F,R);case 5:return h.return(u);case 2:z=_.n7(h);if(z instanceof DOMException?z.name!=="VersionError":"DOMError"in self&&z instanceof DOMError?z.name!=="VersionError":!(z instanceof Object&&"message"in z)||z.message!=="An attempt was made to open a database using a lower version than the existing version."){h.jumpTo(8);
break}return _.I(h,K.openDb(K.name,void 0,Object.assign({},H,{upgrade:void 0})),9);case 9:v=h.yieldResult;g=v.getVersion();if(K.options.version!==void 0&&g>K.options.version+1)throw v.close(),K.isCompatible=!1,CHH(K,g);return h.return(v);case 8:throw f(),z instanceof Error&&!_.M("ytidb_async_stack_killswitch")&&(z.stack=z.stack+"\n"+n.substring(n.indexOf("\n")+1)),tvN(z,K.name,"",(N=K.options.version)!=null?N:-1);}})};
return this.connectionPromise=d=D()};var Gwp=new ue("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(K,d){d(1)&&WA(K,"databases",{keyPath:"actualName"})}});var Cwp,QwJ=new function(){}(new function(){});new _.fU;var xXf=function(K,d){ue.call(this,K,d);this.options=d;o0(K)};
_.O(xXf,ue);var p0S=function(K,d){var f;return function(){f||(f=new xXf(K,d));return f}};
xXf.prototype.openDb=function(K,d,f){f=f===void 0?{}:f;return(this.options.shared?swJ:Jen)(K,d,Object.assign({},f))};
xXf.prototype.delete=function(K){K=K===void 0?{}:K;return(this.options.shared?eJX:kwY)(this.name,K)};var Lgs={},Kqz=sF("ytGcfConfig",{objectStores:(Lgs.coldConfigStore={addedAtVersion:1},Lgs.hotConfigStore={addedAtVersion:1},Lgs),shared:!1,upgrade:function(K,d){d(1)&&(G7(WA(K,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),G7(WA(K,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Bi2=function(){_.gG.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var K=_.T2("yt.gcf.config.hotUpdateCallbacks");K?(this.localHotConfigJobQueue=[].concat(_.Me(K)),this.sharedHotConfigJobQueue=K):(this.sharedHotConfigJobQueue=[],_.B6("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.O(Bi2,_.gG);Bi2.prototype.disposeInternal=function(){for(var K=_.y(this.localHotConfigJobQueue),d=K.next();!d.done;d=K.next()){var f=this.sharedHotConfigJobQueue;d=f.indexOf(d.value);d>=0&&f.splice(d,1)}this.localHotConfigJobQueue.length=0;_.gG.prototype.disposeInternal.call(this)};var MF=function(){var K=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Bi2;this.TEST_ONLY={initializeConfigDb:function(){K.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return K.coldGlobalConfigGroup},
setHotConfigGroup:function(d){J9k(K,d)},
setHotHashData:function(d){K.setHotHashData(d)},
setColdConfigGroup:function(d){s02(K,d)},
getColdHashData:function(){return K.coldHashData},
getHotHashData:function(){return K.hotHashData},
getHotConfigGroup:function(){return K.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return kss()},
getExportedHotConfigGroup:function(){return as()},
getExportedColdHashData:function(){return _.T2("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.T2("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){w6J(K)},
resetInstance:function(){K.setHotHashData(void 0);ZyN(K);delete MF.instance},
setDebounceTimer:function(d){K.debounceTimer=d},
getDebounceTimer:function(){return K.debounceTimer}}},eA4=function(){if(!MF.instance){var K=new MF;
MF.instance=K}return MF.instance},dHv=function(K){var d;
_.c(function(f){if(f.nextAddress==1)return _.M("start_client_gcf")||_.M("delete_gcf_config_db")?_.M("start_client_gcf")?_.I(f,_.J9(),3):f.jumpTo(2):f.return();f.nextAddress!=2&&((d=f.yieldResult)&&_.zs()&&!_.M("delete_gcf_config_db")?(K.isConfigDbInitialized=!0,w6J(K)):(p6B(K),KnJ(K)));return _.M("delete_gcf_config_db")?_.I(f,SxJ(),0):f.jumpTo(0)})},yJ5=function(){var K;
return(K=as())!=null?K:_.mD("RAW_HOT_CONFIG_GROUP")},fks=function(K){var d,f,H,D,S,n;
return _.c(function(u){switch(u.nextAddress){case 1:if(K.hotGlobalConfigGroup)return u.return(as());if(!K.isConfigDbInitialized)return d=mg("getHotConfig IDB not initialized"),_.rF(d),u.return(Promise.reject(d));f=Ly();H=_.mD("TIME_CREATED_MS");if(!f){D=mg("getHotConfig token error");_.rF(D);u.jumpTo(2);break}return _.I(u,VsX(f),3);case 3:if((S=u.yieldResult)&&S.timestamp>H)return J9k(K,S.config),K.setHotHashData(S.hashData),u.return(as());case 2:KnJ(K);if(!(f&&K.hotGlobalConfigGroup&&K.hotHashData)){u.jumpTo(4);
break}return _.I(u,fE5(K.hotGlobalConfigGroup,K.hotHashData,f,H),4);case 4:return K.hotGlobalConfigGroup?u.return(as()):(n=new _.X4("Config not available in ytConfig"),_.rF(n),u.return(Promise.reject(n)))}})},DHJ=function(K){var d,f,H,D,S,n;
return _.c(function(u){switch(u.nextAddress){case 1:if(K.coldGlobalConfigGroup)return u.return(kss());if(!K.isConfigDbInitialized)return d=mg("getColdConfig IDB not initialized"),_.rF(d),u.return(Promise.reject(d));f=Ly();H=_.mD("TIME_CREATED_MS");if(!f){D=mg("getColdConfig");_.rF(D);u.jumpTo(2);break}return _.I(u,DYz(f),3);case 3:if((S=u.yieldResult)&&S.timestamp>H)return s02(K,S.config),HAJ(K,S.configData),ZyN(K,S.hashData),u.return(kss());case 2:p6B(K);if(!(f&&K.coldGlobalConfigGroup&&K.coldHashData&&
K.configData)){u.jumpTo(4);break}return _.I(u,Hdo(K.coldGlobalConfigGroup,K.coldHashData,K.configData,f,H),4);case 4:return K.coldGlobalConfigGroup?u.return(kss()):(n=new _.X4("Config not available in ytConfig"),_.rF(n),u.return(Promise.reject(n)))}})},w6J=function(K){if(!K.hotGlobalConfigGroup||!K.coldGlobalConfigGroup){if(!Ly()){var d=mg("scheduleGetConfigs");
_.rF(d)}K.initJob||(K.initJob=_.oc.addLowPriorityJob(function(){return _.c(function(f){switch(f.nextAddress){case 1:return _.HF(f,2),_.I(f,fks(K),4);case 4:_.Ts(f,3);break;case 2:_.n7(f);case 3:return _.HF(f,5),_.I(f,DHJ(K),7);case 7:_.Ts(f,6);break;case 5:_.n7(f);case 6:K.initJob&&(K.initJob=0),_.iQ(f)}})},100))}},fFJ=function(K,d,f){var H,D,S;
return _.c(function(n){switch(n.nextAddress){case 1:if(!_.M("start_client_gcf")){n.jumpTo(0);break}f&&J9k(K,f);K.setHotHashData(d);H=Ly();if(!H){n.jumpTo(3);break}if(f){n.jumpTo(4);break}return _.I(n,VsX(H),5);case 5:D=n.yieldResult,f=(S=D)==null?void 0:S.config;case 4:return _.I(n,fE5(f,d,H),3);case 3:if(f)for(var u=f,a=_.y(K.configUpdateService.sharedHotConfigJobQueue),R=a.next();!R.done;R=a.next())R=R.value,R(u);_.iQ(n)}})},HZX=function(K,d,f){var H,D,S,n;
return _.c(function(u){if(u.nextAddress==1){if(!_.M("start_client_gcf"))return u.jumpTo(0);ZyN(K,d);return(H=Ly())?f?u.jumpTo(4):_.I(u,DYz(H),5):u.jumpTo(0)}u.nextAddress!=4&&(D=u.yieldResult,f=(S=D)==null?void 0:S.config);if(!f)return u.jumpTo(0);n=f.configData;return _.I(u,Hdo(f,d,n,H),0)})},NNY=function(){var K=eA4(),d=(0,_.k_)()-K.debounceTimer;
if(!(K.debounceTimer!==0&&d<_.di("send_config_hash_timer"))){d=_.T2("yt.gcf.config.coldConfigData");var f=_.T2("yt.gcf.config.hotHashData"),H=_.T2("yt.gcf.config.coldHashData");d&&f&&H&&(K.debounceTimer=(0,_.k_)());return{coldConfigData:d,hotHashData:f,coldHashData:H}}},p6B=function(K){s02(K,_.mD("RAW_COLD_CONFIG_GROUP"));
ZyN(K,_.mD("SERIALIZED_COLD_HASH_DATA"));var d;HAJ(K,(d=K.coldGlobalConfigGroup)==null?void 0:d.configData)},KnJ=function(K){J9k(K,_.mD("RAW_HOT_CONFIG_GROUP"));
K.setHotHashData(_.mD("SERIALIZED_HOT_HASH_DATA"))},J9k=function(K,d){K.hotGlobalConfigGroup=d;
_.B6("yt.gcf.config.hotConfigGroup",K.hotGlobalConfigGroup||null)},s02=function(K,d){K.coldGlobalConfigGroup=d;
_.B6("yt.gcf.config.coldConfigGroup",K.coldGlobalConfigGroup||null)};
MF.prototype.setHotHashData=function(K){this.hotHashData=K;_.B6("yt.gcf.config.hotHashData",this.hotHashData||null)};
var ZyN=function(K,d){K.coldHashData=d;_.B6("yt.gcf.config.coldHashData",K.coldHashData||null)},HAJ=function(K,d){K.configData=d;
_.B6("yt.gcf.config.coldConfigData",K.configData||null)},as=function(){return _.T2("yt.gcf.config.hotConfigGroup")},kss=function(){return _.T2("yt.gcf.config.coldConfigGroup")};var nA={},VcL=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";nA.assign=function(K){for(var d=Array.prototype.slice.call(arguments,1);d.length;){var f=d.shift();if(f){if(typeof f!=="object")throw new TypeError("Uc`"+f);for(var H in f)Object.prototype.hasOwnProperty.call(f,H)&&(K[H]=f[H])}}return K};
nA.shrinkBuf=function(K,d){if(K.length===d)return K;if(K.subarray)return K.subarray(0,d);K.length=d;return K};
var SXs={arraySet:function(K,d,f,H,D){if(d.subarray&&K.subarray)K.set(d.subarray(f,f+H),D);else for(var S=0;S<H;S++)K[D+S]=d[f+S]},
flattenChunks:function(K){var d,f;var H=f=0;for(d=K.length;H<d;H++)f+=K[H].length;var D=new Uint8Array(f);H=f=0;for(d=K.length;H<d;H++){var S=K[H];D.set(S,f);f+=S.length}return D}},yLL={arraySet:function(K,d,f,H,D){for(var S=0;S<H;S++)K[D+S]=d[f+S]},
flattenChunks:function(K){return[].concat.apply([],K)}};
nA.setTyped=function(){VcL?(nA.Buf8=Uint8Array,nA.Buf16=Uint16Array,nA.Buf32=Int32Array,nA.assign(nA,SXs)):(nA.Buf8=Array,nA.Buf16=Array,nA.Buf32=Array,nA.assign(nA,yLL))};
nA.setTyped();var nKs=!0;try{new Uint8Array(1)}catch(K){nKs=!1}
var V3O=function(K){var d,f,H=K.length,D=0;for(d=0;d<H;d++){var S=K.charCodeAt(d);if((S&64512)===55296&&d+1<H){var n=K.charCodeAt(d+1);(n&64512)===56320&&(S=65536+(S-55296<<10)+(n-56320),d++)}D+=S<128?1:S<2048?2:S<65536?3:4}var u=new nA.Buf8(D);for(d=f=0;f<D;d++)S=K.charCodeAt(d),(S&64512)===55296&&d+1<H&&(n=K.charCodeAt(d+1),(n&64512)===56320&&(S=65536+(S-55296<<10)+(n-56320),d++)),S<128?u[f++]=S:(S<2048?u[f++]=192|S>>>6:(S<65536?u[f++]=224|S>>>12:(u[f++]=240|S>>>18,u[f++]=128|S>>>12&63),u[f++]=
128|S>>>6&63),u[f++]=128|S&63);return u};var BNS={};BNS=function(K,d,f,H){var D=K&65535|0;K=K>>>16&65535|0;for(var S;f!==0;){S=f>2E3?2E3:f;f-=S;do D=D+d[H++]|0,K=K+D|0;while(--S);D%=65521;K%=65521}return D|K<<16|0};for(var gR={},Is,iAs=[],cLs=0;cLs<256;cLs++){Is=cLs;for(var uj9=0;uj9<8;uj9++)Is=Is&1?3988292384^Is>>>1:Is>>>1;iAs[cLs]=Is}gR=function(K,d,f,H){f=H+f;for(K^=-1;H<f;H++)K=K>>>8^iAs[(K^d[H])&255];return K^-1};var Ic={};Ic={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 Wqo=[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],Ayu=[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],DQG=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],xYS=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z7=Array(576);fA(z7);var Xj=Array(60);fA(Xj);var u3=Array(512);fA(u3);var cA=Array(256);fA(cA);var Guu=Array(29);fA(Guu);var TNX=Array(30);fA(TNX);var dQu,fRz,HFu,KSn=!1;var tL;
tL=[new YK(0,0,0,0,function(K,d){var f=65535;for(f>K.pending_buf_size-5&&(f=K.pending_buf_size-5);;){if(K.lookahead<=1){OX(K);if(K.lookahead===0&&d===0)return 1;if(K.lookahead===0)break}K.strstart+=K.lookahead;K.lookahead=0;var H=K.block_start+f;if(K.strstart===0||K.strstart>=H)if(K.lookahead=K.strstart-H,K.strstart=H,vA(K,!1),K.strm.avail_out===0)return 1;if(K.strstart-K.block_start>=K.w_size-262&&(vA(K,!1),K.strm.avail_out===0))return 1}K.insert=0;if(d===4)return vA(K,!0),K.strm.avail_out===0?3:
4;K.strstart>K.block_start&&vA(K,!1);return 1}),
new YK(4,4,8,4,JyJ),new YK(4,5,16,8,JyJ),new YK(4,6,32,32,JyJ),new YK(4,4,16,16,NH),new YK(8,16,32,32,NH),new YK(8,16,128,128,NH),new YK(8,32,128,256,NH),new YK(32,128,258,1024,NH),new YK(32,258,258,4096,NH)];var pGn={};pGn=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 SVn=Object.prototype.toString;
e0X.prototype.push=function(K,d){var f=this.strm,H=this.options.chunkSize;if(this.ended)return!1;var D=d===~~d?d:d===!0?4:0;typeof K==="string"?f.input=V3O(K):SVn.call(K)==="[object ArrayBuffer]"?f.input=new Uint8Array(K):f.input=K;f.next_in=0;f.avail_in=f.input.length;do{f.avail_out===0&&(f.output=new nA.Buf8(H),f.next_out=0,f.avail_out=H);K=Zdz(f,D);if(K!==1&&K!==0)return ak2(this,K),this.ended=!0,!1;if(f.avail_out===0||f.avail_in===0&&(D===4||D===2))if(this.options.to==="string"){var S=nA.shrinkBuf(f.output,
f.next_out);d=S;S=S.length;if(S<65537&&(d.subarray&&nKs||!d.subarray))d=String.fromCharCode.apply(null,nA.shrinkBuf(d,S));else{for(var n="",u=0;u<S;u++)n+=String.fromCharCode(d[u]);d=n}this.chunks.push(d)}else d=nA.shrinkBuf(f.output,f.next_out),this.chunks.push(d)}while((f.avail_in>0||f.avail_out===0)&&K!==1);if(D===4)return(f=this.strm)&&f.state?(H=f.state.status,H!==42&&H!==69&&H!==73&&H!==91&&H!==103&&H!==113&&H!==666?K=UX(f,-2):(f.state=null,K=H===113?UX(f,-3):0)):K=-2,ak2(this,K),this.ended=
!0,K===0;D===2&&(ak2(this,0),f.avail_out=0);return!0};
var ak2=function(K,d){d===0&&(K.result=K.options.to==="string"?K.chunks.join(""):nA.flattenChunks(K.chunks));K.chunks=[];K.err=d;K.msg=K.strm.msg};var Ik8=typeof TextEncoder!=="undefined"?new TextEncoder:null,G0O=Ik8?function(K){return Ik8.encode(K)}:function(K){K=_.Mo(K);
for(var d=new Uint8Array(K.length),f=0;f<d.length;f++)d[f]=K[f];return d};var V$O={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},yoB={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var UA=function(K,d){this.version=K;this.args=d};
UA.prototype.serialize=function(){return{version:this.version,args:this.args}};var us5=function(K,d){this.topic=K;this.dataClass=d};
us5.prototype.toString=function(){return this.topic};var UHB=_.T2("ytPubsub2Pubsub2Instance")||new _.uH;_.uH.prototype.subscribe=_.uH.prototype.subscribe;_.uH.prototype.unsubscribeByKey=_.uH.prototype.unsubscribeByKey;_.uH.prototype.publish=_.uH.prototype.publish;_.uH.prototype.clear=_.uH.prototype.clear;_.B6("ytPubsub2Pubsub2Instance",UHB);var cpB=_.T2("ytPubsub2Pubsub2SubscribedKeys")||{};_.B6("ytPubsub2Pubsub2SubscribedKeys",cpB);var IRn=_.T2("ytPubsub2Pubsub2TopicToKeys")||{};_.B6("ytPubsub2Pubsub2TopicToKeys",IRn);
var aR5=_.T2("ytPubsub2Pubsub2IsAsync")||{};_.B6("ytPubsub2Pubsub2IsAsync",aR5);_.B6("ytPubsub2Pubsub2SkipSubKey",null);var OFX=void 0,PAG=void 0;var bFO=_.di("max_body_size_to_compress",5E5),mQ5=_.di("min_body_size_to_compress",500),EX=!0,rpB=0,hL=0,TBo=_.di("compression_performance_threshold_lr",250),qVu=_.di("slow_compressions_before_abandon_count",4),t3X=!1,ooo=new Map,WSX=1,lRX=!0;_.Bd(b3,CAS);b3.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 Rn6=function(K,d,f){f||(f=0);var H=K.W_;if(typeof d==="string")for(var D=0;D<16;D++)H[D]=d.charCodeAt(f)<<24|d.charCodeAt(f+1)<<16|d.charCodeAt(f+2)<<8|d.charCodeAt(f+3),f+=4;else for(D=0;D<16;D++)H[D]=d[f]<<24|d[f+1]<<16|d[f+2]<<8|d[f+3],f+=4;for(d=16;d<80;d++)f=H[d-3]^H[d-8]^H[d-14]^H[d-16],H[d]=(f<<1|f>>>31)&4294967295;d=K.chain_[0];f=K.chain_[1];D=K.chain_[2];for(var S=K.chain_[3],n=K.chain_[4],u,a,R=0;R<80;R++)R<40?R<20?(u=S^f&(D^S),a=1518500249):(u=f^D^S,a=1859775393):R<60?(u=f&D|S&(f|D),
a=2400959708):(u=f^D^S,a=3395469782),u=(d<<5|d>>>27)+u+n+a+H[R]&4294967295,n=S,S=D,D=(f<<30|f>>>2)&4294967295,f=d,d=u;K.chain_[0]=K.chain_[0]+d&4294967295;K.chain_[1]=K.chain_[1]+f&4294967295;K.chain_[2]=K.chain_[2]+D&4294967295;K.chain_[3]=K.chain_[3]+S&4294967295;K.chain_[4]=K.chain_[4]+n&4294967295};
b3.prototype.update=function(K,d){if(K!=null){d===void 0&&(d=K.length);for(var f=d-this.blockSize,H=0,D=this.buf_,S=this.inbuf_;H<d;){if(S==0)for(;H<=f;)Rn6(this,K,H),H+=this.blockSize;if(typeof K==="string")for(;H<d;){if(D[S]=K.charCodeAt(H),++S,++H,S==this.blockSize){Rn6(this,D);S=0;break}}else for(;H<d;)if(D[S]=K[H],++S,++H,S==this.blockSize){Rn6(this,D);S=0;break}}this.inbuf_=S;this.total_+=d}};
b3.prototype.digest=function(){var K=[],d=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var f=this.blockSize-1;f>=56;f--)this.buf_[f]=d&255,d/=256;Rn6(this,this.buf_);for(f=d=0;f<5;f++)for(var H=24;H>=0;H-=8)K[d]=this.chain_[f]>>H&255,++d;return K};var BBB;var F2=function(K){var d=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){d.databaseToken=F},
triggerThrottle:function(){d.throttledSend()},
cancelThrottle:function(){d.cancelThrottledSend()},
immediateSend:function(F){return _.c(function(z){return _.I(z,d.immediateSend(F),0)})},
requestWithinAgeLimit:function(F,z){return d.requestWithinAgeLimit(F,z)},
retryQueuedRequests:function(){d.retryQueuedRequests()}};
var f;this.throttleTimeout=(f=K.throttleTimeout)!=null?f:100;var H;this.retryMaxAttempts=(H=K.retryMaxAttempts)!=null?H:1;var D;this.requestAgeLimitMs=(D=K.requestAgeLimitMs)!=null?D:2592E6;var S;this.queuedRequestAgeLimitMs=(S=K.queuedRequestAgeLimitMs)!=null?S:12E4;var n;this.retryDelayMs=(n=K.retryDelayMs)!=null?n:5E3;var u;this.databaseToken=(u=K.databaseToken)!=null?u:void 0;this.enableCleaning=!!K.enableCleaning;var a;this.cleaningRate=(a=K.cleaningRate)!=null?a:.1;var R;this.potentialEsfErrorLimit=
(R=K.potentialEsfErrorLimit)!=null?R:10;K.handleError&&(this.handleError=K.handleError);K.handleWarning&&(this.handleWarning=K.handleWarning);K.disableYtIdbTransactions&&(this.disableYtIdbTransactions=K.disableYtIdbTransactions);K.bypassDbTokenDependency&&(this.bypassDbTokenDependency=K.bypassDbTokenDependency);this.getBooleanFlag=K.getBooleanFlag;this.jobManager=K.jobManager;this.logsStore=K.logsStore;this.networkManager=K.networkManager;this.sendFn=K.sendFn;this.onlineEvent=K.onlineEvent;this.offlineEvent=
K.offlineEvent;Rs(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Fn4(this)},Fn4=function(K){Rs(K)&&!K.disableYtIdbTransactions&&(K.initialized=!0,K.enableCleaning&&Math.random()<=K.cleaningRate&&K.logsStore.cleanLogsStore(K.databaseToken),K.retryQueuedRequests(),K.networkManager.isNetworkAvailable()&&K.throttledSend(),K.networkManager.listen(K.onlineEvent,K.throttledSend.bind(K)),K.networkManager.listen(K.offlineEvent,K.cancelThrottledSend.bind(K)))};
_.V=F2.prototype;_.V.writeThenSend=function(K,d){var f=this;d=d===void 0?{}:d;if(Rs(this)&&this.initialized){var H={url:K,options:d,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(H,this.databaseToken).then(function(D){H.id=D;f.networkManager.isNetworkAvailable()&&f.immediateSend(H)}).catch(function(D){f.immediateSend(H);
znJ(f,D)})}else this.sendFn(K,d)};
_.V.sendThenWrite=function(K,d,f){var H=this;d=d===void 0?{}:d;if(Rs(this)&&this.initialized){var D={url:K,options:d,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(D.skipRetry=f);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!D.skipRetry){if(!D.skipRetry){var S=d.onError?d.onError:function(){};
d.onError=function(n,u){return _.c(function(a){if(a.nextAddress==1)return _.I(a,H.logsStore.set(D,H.databaseToken).catch(function(R){znJ(H,R)}),2);
S(n,u);_.iQ(a)})}}this.sendFn(K,d,D.skipRetry)}else this.logsStore.set(D,this.databaseToken).catch(function(n){H.sendFn(K,d,D.skipRetry);
znJ(H,n)})}else this.sendFn(K,d,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&f)};
_.V.sendAndWrite=function(K,d){var f=this;d=d===void 0?{}:d;if(Rs(this)&&this.initialized){var H={url:K,options:d,timestamp:this.now(),status:"NEW",sendCount:0},D=!1,S=d.onSuccess?d.onSuccess:function(){};
H.options.onSuccess=function(n,u){H.id!==void 0?f.logsStore.deleteRequest(H.id,f.databaseToken):D=!0;f.networkManager.networkStatusHint&&f.getBooleanFlag&&f.getBooleanFlag("vss_network_hint")&&f.networkManager.networkStatusHint(!0);S(n,u)};
this.sendFn(H.url,H.options,void 0,!0);this.logsStore.set(H,this.databaseToken).then(function(n){H.id=n;D&&f.logsStore.deleteRequest(H.id,f.databaseToken)}).catch(function(n){znJ(f,n)})}else this.sendFn(K,d,void 0,!0)};
_.V.throttledSend=function(){var K=this;if(!Rs(this))throw Error("Xc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,K.logsStore.getMostRecentByStatus("NEW",K.databaseToken),2);if(f.nextAddress!=3)return d=f.yieldResult,d?_.I(f,K.immediateSend(d),3):(K.cancelThrottledSend(),f.return());K.intervalJob&&(K.intervalJob=0,K.throttledSend());_.iQ(f)})},this.throttleTimeout))};
_.V.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.V.immediateSend=function(K){var d=this,f;return _.c(function(H){switch(H.nextAddress){case 1:if(!Rs(d))throw Error("Yc");if(K.id===void 0){H.jumpTo(2);break}return _.I(H,d.logsStore.markAsQueued(K.id,d.databaseToken),3);case 3:(f=H.yieldResult)||d.handleWarning(Error("Zc"));case 2:if(d.requestWithinAgeLimit(K,d.requestAgeLimitMs)){H.jumpTo(4);break}d.handleWarning(Error("$c"));if(K.id===void 0){H.jumpTo(5);break}return _.I(H,d.logsStore.deleteRequest(K.id,d.databaseToken),5);case 5:return H.return();
case 4:K.skipRetry||(K=XAB(d,K));if(!K){H.jumpTo(0);break}if(!K.skipRetry||K.id===void 0){H.jumpTo(8);break}return _.I(H,d.logsStore.deleteRequest(K.id,d.databaseToken),8);case 8:d.sendFn(K.url,K.options,!!K.skipRetry),_.iQ(H)}})};
var XAB=function(K,d){if(!Rs(K))throw Error("ad");var f=d.options.onError?d.options.onError:function(){};
d.options.onError=function(D,S){var n,u,a,R;return _.c(function(F){switch(F.nextAddress){case 1:n=ZFB(S);(u=eMz(S))&&K.getBooleanFlag&&K.getBooleanFlag("web_enable_error_204")&&K.handleError(Error("bd"),d.url,S);if(!(K.getBooleanFlag&&K.getBooleanFlag("nwl_consider_error_code")&&n||K.getBooleanFlag&&!K.getBooleanFlag("nwl_consider_error_code")&&K.potentialEsfErrorCounter<=K.potentialEsfErrorLimit)){F.jumpTo(2);break}if(!K.networkManager.sendNetworkCheckRequest){F.jumpTo(3);break}return _.I(F,K.networkManager.sendNetworkCheckRequest(),
3);case 3:if(K.networkManager.isNetworkAvailable()){F.jumpTo(2);break}f(D,S);if(!K.getBooleanFlag||!K.getBooleanFlag("nwl_consider_error_code")||((a=d)==null?void 0:a.id)===void 0){F.jumpTo(6);break}return _.I(F,K.logsStore.resetRequest(d.id,K.databaseToken,!1),6);case 6:return F.return();case 2:if(K.getBooleanFlag&&K.getBooleanFlag("nwl_consider_error_code")&&!n&&K.potentialEsfErrorCounter>K.potentialEsfErrorLimit)return F.return();K.potentialEsfErrorCounter++;if(((R=d)==null?void 0:R.id)===void 0){F.jumpTo(8);
break}return d.sendCount<K.retryMaxAttempts?_.I(F,K.logsStore.resetRequest(d.id,K.databaseToken,!0,u?!1:void 0),12):_.I(F,K.logsStore.deleteRequest(d.id,K.databaseToken),8);case 12:K.jobManager.addLowPriorityJob(function(){K.networkManager.isNetworkAvailable()&&K.throttledSend()},K.retryDelayMs);
case 8:f(D,S),_.iQ(F)}})};
var H=d.options.onSuccess?d.options.onSuccess:function(){};
d.options.onSuccess=function(D,S){var n;return _.c(function(u){if(u.nextAddress==1)return((n=d)==null?void 0:n.id)===void 0?u.jumpTo(2):_.I(u,K.logsStore.deleteRequest(d.id,K.databaseToken),2);K.networkManager.networkStatusHint&&K.getBooleanFlag&&K.getBooleanFlag("vss_network_hint")&&K.networkManager.networkStatusHint(!0);H(D,S);_.iQ(u)})};
return d};
F2.prototype.requestWithinAgeLimit=function(K,d){K=K.timestamp;return this.now()-K>=d?!1:!0};
F2.prototype.retryQueuedRequests=function(){var K=this;if(!Rs(this))throw Error("cd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(d){d&&!K.requestWithinAgeLimit(d,K.queuedRequestAgeLimitMs)?K.jobManager.addLowPriorityJob(function(){return _.c(function(f){if(f.nextAddress==1)return d.id===void 0?f.jumpTo(2):_.I(f,K.logsStore.resetRequest(d.id,K.databaseToken),2);K.retryQueuedRequests();_.iQ(f)})}):K.networkManager.isNetworkAvailable()&&K.throttledSend()})};
var znJ=function(K,d){K.writeError&&!K.networkManager.isNetworkAvailable()?K.writeError(d):K.handleError(d)},Rs=function(K){return!!K.databaseToken||K.bypassDbTokenDependency};var pJS;var SPG={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var vKk={},iUB=sF("ServiceWorkerLogsDatabase",{objectStores:(vKk.SWHealthLog={addedAtVersion:1},vKk),shared:!0,upgrade:function(K,d){d(1)&&G7(WA(K,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var z3B={},FWu=0;var PsG;var zA=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},CA=function(){if(!zA.instance){var K=_.T2("yt.networkRequestMonitor.instance")||new zA;
_.B6("yt.networkRequestMonitor.instance",K);zA.instance=K}return zA.instance};
zA.prototype.requestComplete=function(K,d){d&&(this.anyRequestHasSucceeded=!0);K=this.removeParams(K);this.requestMap.get(K)||this.requestMap.set(K,d)};
zA.prototype.isEndpointCFR=function(K){K=this.removeParams(K);return(K=this.requestMap.get(K))?!1:K===!1&&this.anyRequestHasSucceeded?!0:null};
zA.prototype.removeParams=function(K){return K.split("?")[0]};
zA.prototype.removeParams=zA.prototype.removeParams;zA.prototype.isEndpointCFR=zA.prototype.isEndpointCFR;zA.prototype.requestComplete=zA.prototype.requestComplete;zA.getInstance=CA;var X2=function(K){_.iJ.call(this);var d=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=K!=null?K:{addLowPriorityJob:function(D,S){return setTimeout(D,S)},
cancelJob:function(D){clearTimeout(D)}};
var f,H;this.isOnline=(H=(f=window.navigator)==null?void 0:f.onLine)!=null?H:!0;this.onNavigatorChange=function(){return _.c(function(D){return _.I(D,Mcf(d),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||P3L(this)};
_.O(X2,_.iJ);X2.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete X2.instance};
X2.prototype.isNetworkAvailable=function(){return this.isOnline};
var P3L=function(K){K.pollingJob=K.jobManager.addLowPriorityJob(function(){var d;return _.c(function(f){if(f.nextAddress==1)return K.isOnline?((d=window.navigator)==null?0:d.onLine)?f.jumpTo(3):_.I(f,Mcf(K),3):_.I(f,Mcf(K),3);P3L(K);_.iQ(f)})},3E4)},Mcf=function(K,d){return K.networkRequestPromise?K.networkRequestPromise:K.networkRequestPromise=new Promise(function(f){var H,D,S,n;
return _.c(function(u){switch(u.nextAddress){case 1:return H=window.AbortController?new window.AbortController:void 0,S=(D=H)==null?void 0:D.signal,n=!1,_.HF(u,2,3),H&&(K.abortTimeoutKey=K.jobManager.addLowPriorityJob(function(){H.abort()},d||2E4)),_.I(u,fetch("/generate_204",{method:"HEAD",
signal:S}),5);case 5:n=!0;case 3:_.Vu(u);K.networkRequestPromise=void 0;K.abortTimeoutKey&&(K.jobManager.cancelJob(K.abortTimeoutKey),K.abortTimeoutKey=0);n!==K.isOnline&&(K.isOnline=n,K.isOnline?K.dispatchEvent("networkstatus-online"):K.dispatchEvent("networkstatus-offline"));f(n);_.yu(u,0);break;case 2:_.n7(u),n=!1,u.jumpTo(3)}})})};var vL=function(){_.iJ.call(this);var K=this;this.shouldFlushErrors=!1;X2.instance||(X2.instance=new X2(_.oc));this.sharedNetworkStatusManager=X2.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(K.shouldFlushErrors&&_.M("offline_error_handling")){var d=gmz().get("errors",!0);if(d){for(var f in d)if(d[f]){var H=new _.X4(f,"sent via offline_errors");H.name=d[f].name;H.stack=d[f].stack;H.level=d[f].level;_.G2(H)}gmz().set("errors",{},2592E3,!0)}}})};
_.O(vL,_.iJ);var gKJ=function(){if(!vL.instance){var K=_.T2("yt.networkStatusManager.instance")||new vL;_.B6("yt.networkStatusManager.instance",K);vL.instance=K}return vL.instance};
_.V=vL.prototype;_.V.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.V.networkStatusHint=function(K){this.sharedNetworkStatusManager.isOnline=K};
_.V.getWindowStatus=function(){var K=window.navigator.onLine;return K===void 0?!0:K};
_.V.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.V.listen=function(K,d){return this.sharedNetworkStatusManager.listen(K,d)};
_.V.sendNetworkCheckRequest=function(K){K=Mcf(this.sharedNetworkStatusManager,K);K.then(function(d){_.M("use_cfr_monitor")&&CA().requestComplete("generate_204",d)});
return K};
vL.prototype.sendNetworkCheckRequest=vL.prototype.sendNetworkCheckRequest;vL.prototype.listen=vL.prototype.listen;vL.prototype.enableErrorFlushing=vL.prototype.enableErrorFlushing;vL.prototype.getWindowStatus=vL.prototype.getWindowStatus;vL.prototype.networkStatusHint=vL.prototype.networkStatusHint;vL.prototype.isNetworkAvailable=vL.prototype.isNetworkAvailable;vL.getInstance=gKJ;_.jc=function(K){K=K===void 0?{}:K;_.iJ.call(this);var d=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=gKJ();var f=_.T2("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);f&&(K.rateLimit?(this.rateLimit=K.rateLimit,f("networkstatus-online",function(){OAv(d,"publicytnetworkstatus-online")}),f("networkstatus-offline",function(){OAv(d,"publicytnetworkstatus-offline")})):(f("networkstatus-online",function(){d.dispatchEvent("publicytnetworkstatus-online")}),f("networkstatus-offline",
function(){d.dispatchEvent("publicytnetworkstatus-offline")})))};
_.O(_.jc,_.iJ);_.jc.prototype.isNetworkAvailable=function(){var K=_.T2("yt.networkStatusManager.instance.isNetworkAvailable");return K?K.bind(this.nsmInstance)():!0};
_.jc.prototype.networkStatusHint=function(K){var d=_.T2("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);d&&d(K)};
_.jc.prototype.sendNetworkCheckRequest=function(K){var d=this,f;return _.c(function(H){f=_.T2("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(d.nsmInstance);return _.M("skip_network_check_if_cfr")&&CA().isEndpointCFR("generate_204")?H.return(new Promise(function(D){var S;d.networkStatusHint(((S=window.navigator)==null?void 0:S.onLine)||!0);D(d.isNetworkAvailable())})):f?H.return(f(K)):H.return(!0)})};
var OAv=function(K,d){K.rateLimit?K.lastJobTime?(_.oc.cancelJob(K.schedulerJob),K.schedulerJob=_.oc.addLowPriorityJob(function(){K.lastPublicSignalSent!==d&&(K.dispatchEvent(d),K.lastPublicSignalSent=d,K.lastJobTime=(0,_.k_)())},K.rateLimit-((0,_.k_)()-K.lastJobTime))):(K.dispatchEvent(d),K.lastPublicSignalSent=d,K.lastJobTime=(0,_.k_)()):K.dispatchEvent(d)};var omG,Mh=function(){F2.call(this,{logsStore:{cleanLogsStore:yGX,deleteRequest:S1G,getMostRecentByStatus:HUN,markAsQueued:DnG,resetRequest:VZN,set:feS},networkManager:_.$nS(),handleError:function(K,d,f){var H,D=f==null?void 0:(H=f.error)==null?void 0:H.code;if(D===400||D===415){var S;K=new _.X4(K.message,d,f==null?void 0:(S=f.error)==null?void 0:S.code);_.rF(K,void 0,void 0,void 0,!0)}else _.G2(K)},
handleWarning:_.rF,sendFn:Y1p,now:_.k_,writeError:OUX,jobManager:_.Xm(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.di("potential_esf_error_limit",10),getBooleanFlag:_.M,disableYtIdbTransactions:!(_.zs()&&_.Emo())});this.initializationPromise=new _.fU;_.M("networkless_immediately_drop_all_requests")&&nmX();eJX("LogsDatabaseV2")};
_.O(Mh,F2);_.YXB=function(){var K=_.T2("yt.networklessRequestController.instance");K||(K=new Mh,_.B6("yt.networklessRequestController.instance",K),_.M("networkless_logging")&&_.J9().then(function(d){K.databaseToken=d;Fn4(K);K.initializationPromise.resolve();K.enableCleaning&&Math.random()<=K.cleaningRate&&K.databaseToken&&u7B(K.databaseToken);_.M("networkless_immediately_drop_sw_health_store")&&NRL(K)}));
return K};
Mh.prototype.writeThenSend=function(K,d){d||(d={});d=tZG(K,d);_.zs()||(this.initialized=!1);F2.prototype.writeThenSend.call(this,K,d)};
Mh.prototype.sendThenWrite=function(K,d,f){d||(d={});d=tZG(K,d);_.zs()||(this.initialized=!1);F2.prototype.sendThenWrite.call(this,K,d,f)};
Mh.prototype.sendAndWrite=function(K,d){d||(d={});d=tZG(K,d);_.zs()||(this.initialized=!1);F2.prototype.sendAndWrite.call(this,K,d)};
Mh.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var NRL=function(K){var d;_.c(function(f){if(!K.databaseToken)throw d=mg("clearSWHealthLogsDb"),d;return f.return(aeX(K.databaseToken).catch(function(H){K.handleError(H)}))})};_.bUp=!1;_.h3O=_.Hu.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.bUp};_.B6("ytNetworklessLoggingInitializationOptions",_.h3O);var Y7=function(K){var d=this;this.config_=null;K?this.config_=K:yyo()&&(this.config_=_.ZU());_.va(_.oc,function(){wJo(d)},5E3)};
Y7.prototype.isReady=function(){!this.config_&&yyo()&&(this.config_=_.ZU());return!!this.config_};
var k0O=function(K,d,f,H){!_.mD("VISITOR_DATA")&&d!=="visitor_id"&&Math.random()<.01&&_.rF(new _.X4("Missing VISITOR_DATA when sending innertube request.",d,f,H));if(!K.isReady()){var D=new _.X4("innertube xhrclient not ready",d,f,H);_.G2(D);throw D;}var S={headers:H.headers||{},method:"POST",postParams:f,postBody:H.postBody,postBodyFormat:H.postBodyFormat||"JSON",onTimeout:function(){H.onTimeout()},
onFetchTimeout:H.onTimeout,onSuccess:function(z,v){if(H.onSuccess)H.onSuccess(v)},
onFetchSuccess:function(z){if(H.onSuccess)H.onSuccess(z)},
onError:function(z,v){if(H.onError)H.onError(v)},
onFetchError:function(z){if(H.onError)H.onError(z)},
timeout:H.timeout,withCredentials:!0,compress:H.compress};S.headers["Content-Type"]||(S.headers["Content-Type"]="application/json");var n="";(D=K.config_.innertubeHostOverride)&&(n=D);var u=K.config_.innertubeUseThirdPartyAuth||!1,a=_.Odn(u,n,H);Object.assign(S.headers,a);S.headers.Authorization&&!n&&u&&(S.headers["x-origin"]=window.location.origin);var R=_.xM(n+("/youtubei/"+K.config_.innertubeApiVersion+"/"+d),{alt:"json"}),F=function(z){z=z===void 0?!1:z;var v;if(H.retry&&n!="www.youtube-nocookie.com"&&
(z||_.M("skip_ls_gel_retry")||S.headers["Content-Type"]!=="application/json"||(v=Jpp(d,f,a,u)),v)){var g=S.onSuccess,N=S.onFetchSuccess;S.onSuccess=function(T,r){sOG(v);g(T,r)};
f.onFetchSuccess=function(T,r){sOG(v);N(T,r)}}try{if(z&&H.retry&&!H.networklessOptions.bypassNetworkless)S.method="POST",H.networklessOptions.writeThenSend?_.YXB().writeThenSend(R,S):_.YXB().sendAndWrite(R,S);
else if(H.compress){var h=!H.networklessOptions.writeThenSend;if(S.postBody){var m=S.postBody;typeof m!=="string"&&(m=JSON.stringify(S.postBody));ApO(R,m,S,_.iH,h)}else ApO(R,JSON.stringify(S.postParams),S,CTY,h)}else _.M("web_all_payloads_via_jspb")?_.iH(R,S):CTY(R,S)}catch(T){if(T.name==="InvalidAccessError")v&&(sOG(v),v=0),_.rF(Error("dd"));else throw T;}v&&_.va(_.oc,function(){wJo(K)},5E3)};
_.mnX()?xuJ().then(function(z){F(z)}):F(!1)};var W8z=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(W8z,_.Ti);var tc6=0,WWz=_.Zf?"webkit":_.w7?"moz":_.kb?"ms":Kmn?"o":"";_.B6("ytDomDomGetNextId",_.T2("ytDomDomGetNextId")||function(){return++tc6});var oKs={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},kK=function(K){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(K=
K||window.event){this.event=K;for(var d in K)d in oKs||(this[d]=K[d]);this.scale=K.scale;this.rotation=K.rotation;var f=K.target||K.srcElement;f&&f.nodeType==3&&(f=f.parentNode);this.target=f;var H=K.relatedTarget;if(H)try{H=H.nodeName?H:null}catch(D){H=null}else this.type=="mouseover"?H=K.fromElement:this.type=="mouseout"&&(H=K.toElement);this.relatedTarget=H;this.clientX=K.clientX!=void 0?K.clientX:K.pageX;this.clientY=K.clientY!=void 0?K.clientY:K.pageY;this.keyCode=K.keyCode?K.keyCode:K.which;
this.charCode=K.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=K.altKey;this.ctrlKey=K.ctrlKey;this.shiftKey=K.shiftKey;this.metaKey=K.metaKey;this.pageX_=K.pageX;this.pageY_=K.pageY}}catch(D){}},$HJ=function(K){if(document.body&&document.documentElement){var d=document.body.scrollTop+document.documentElement.scrollTop;
K.pageX_=K.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);K.pageY_=K.clientY+d}};
kK.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
kK.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
kK.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var sX=_.Hu.ytEventsEventsListeners||{};_.B6("ytEventsEventsListeners",sX);var QMp=_.Hu.ytEventsEventsCounter||{count:0};_.B6("ytEventsEventsCounter",QMp);var jMX=_.yi(function(){var K=!1;try{var d=Object.defineProperty({},"capture",{get:function(){K=!0}});
window.addEventListener("test",null,d)}catch(f){}return K});_.Bd(Zk,_.gG);Zk.prototype.onMouseMove_=function(K){K.pageX_===void 0&&$HJ(K);var d=K.pageX_;K.pageY_===void 0&&$HJ(K);this.position_=new _.Nm(d,K.pageY_)};
Zk.prototype.checkPosition_=function(){if(this.position_){var K=(0,_.k_)();if(this.previousTime_!=0){var d=this.previousPosition_,f=this.position_,H=d.x-f.x;d=d.y-f.y;H=Math.sqrt(H*H+d*d)/(K-this.previousTime_);this.cycles_[this.index_]=Math.abs((H-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(f=d=0;f<4;f++)d+=this.cycles_[f]||0;d>=3&&this.callback_();this.previousVelocity_=H}this.previousTime_=K;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Zk.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.CsX(this.mouseListenerKey_)};var JGo={};var dd5=new _.Z("rawColdConfigGroup");var KeX=new _.Z("rawHotConfigGroup");var EKf=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(EKf,_.Ti);var l9J=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(l9J,_.Ti);var Xb=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K,500)};
_.O(Xb,_.Ti);Xb.prototype.getPayloadCase=function(){return _.i1(this,hnt)};
Xb.prototype.getContext=function(){return _.eQ(this,l9J,33)};
var hnt=[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];var snX=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(snX,_.Ti);var O8G=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(O8G,_.Ti);O8G.prototype.setVideoId=function(K){return ca(this,1,NjB,Ty(K))};
O8G.prototype.getPlaylistId=function(){return _.Um(this,RB(this,NjB,2))};
var NjB=[1,2];var jnz=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(jnz,_.Ti);jnz.prototype.getContext=function(){return _.eQ(this,up,1)};
jnz.prototype.getTier=function(){return _.vY(this,7)};var bAf,dU,fo;bAf=_.Hu.ytPubsubPubsubInstance||new _.uH;dU=_.Hu.ytPubsubPubsubSubscribedKeys||{};fo=_.Hu.ytPubsubPubsubTopicToKeys||{};_.sMz=_.Hu.ytPubsubPubsubIsSynchronous||{};_.uH.prototype.subscribe=_.uH.prototype.subscribe;_.uH.prototype.unsubscribeByKey=_.uH.prototype.unsubscribeByKey;_.uH.prototype.publish=_.uH.prototype.publish;_.uH.prototype.clear=_.uH.prototype.clear;_.B6("ytPubsubPubsubInstance",bAf);_.B6("ytPubsubPubsubTopicToKeys",fo);_.B6("ytPubsubPubsubIsSynchronous",_.sMz);
_.B6("ytPubsubPubsubSubscribedKeys",dU);var Dx=window;var PL=_.M("web_enable_lifecycle_monitoring")&&pWG()!==0,mHL=_.M("web_enable_lifecycle_monitoring");var Wns=function(K){var d=this;var f=f===void 0?0:f;var H=H===void 0?_.Xm():H;this.JSC$8809_defaultPriority=f;this.scheduler=H;this.completedResolver=new _.fU;this.scheduledPayloads=K;for(K={i$jscomp$529:0};K.i$jscomp$529<this.scheduledPayloads.length;K={payload$jscomp$18:void 0,i$jscomp$529:K.i$jscomp$529},K.i$jscomp$529++)K.payload$jscomp$18=this.scheduledPayloads[K.i$jscomp$529],f=function(D){return function(){D.payload$jscomp$18.job();d.scheduledPayloads[D.i$jscomp$529].processed=!0;d.scheduledPayloads.every(function(S){return S.processed===
!0})&&d.completedResolver.resolve()}}(K),H=this.scheduler.addJob(f,lk8(this,K.payload$jscomp$18)),this.scheduledPayloads[K.i$jscomp$529]=Object.assign({},K.payload$jscomp$18,{job:f,
jobId:H})};
Wns.prototype.flushJobs=function(){var K=this,d=Array.from(this.scheduledPayloads.keys()).sort(function(H,D){return lk8(K,K.scheduledPayloads[D])-lk8(K,K.scheduledPayloads[H])});
d=_.y(d);for(var f=d.next();!f.done;f=d.next())f=this.scheduledPayloads[f.value],f.jobId===void 0||f.processed||(this.scheduler.cancelJob(f.jobId),this.scheduler.addJob(f.job,10))};
Wns.prototype.cancel=function(){for(var K=_.y(this.scheduledPayloads),d=K.next();!d.done;d=K.next())d=d.value,d.jobId===void 0||d.processed||this.scheduler.cancelJob(d.jobId),d.processed=!0;this.completedResolver.resolve()};
var lk8=function(K,d){var f;return(f=d.priority)!=null?f:K.JSC$8809_defaultPriority};var gh=function(K){this.state=K;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};PL&&Kxp(this.state)};
gh.prototype.install=function(K){this.plugins.push(K);return this};
gh.prototype.uninstall=function(){var K=this;_.Pg.apply(0,arguments).forEach(function(d){d=K.plugins.indexOf(d);d>-1&&K.plugins.splice(d,1)})};
gh.prototype.transition=function(K,d){var f=this;PL&&d7o(this.state);var H=this.transitions.find(function(S){return Array.isArray(S.from)?S.from.find(function(n){return n===f.state&&S.to===K}):S.from===f.state&&S.to===K});
if(H){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);G7t(this,K,d);this.state=K;PL&&Kxp(this.state);H=H.action.bind(this);var D=this.plugins.filter(function(S){return S[K]}).map(function(S){return S[K]});
H(ALf(this,D),d)}else throw Error("ed`"+this.state+"`"+K);};
var ALf=function(K,d){var f=d.filter(function(D){return TRJ(K,D)===10}),H=d.filter(function(D){return TRJ(K,D)!==10});
return K.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var D=_.Pg.apply(0,arguments);return _.c(function(S){if(S.nextAddress==1)return _.I(S,K.runImmediateJobsAsync.apply(K,[f].concat(_.Me(D))),2);K.setJobSetWithScheduledJobs.apply(K,[H].concat(_.Me(D)));_.iQ(S)})}:function(){var D=_.Pg.apply(0,arguments);
K.runImmediateJobsSync.apply(K,[f].concat(_.Me(D)));K.setJobSetWithScheduledJobs.apply(K,[H].concat(_.Me(D)))}};
gh.prototype.runImmediateJobsSync=function(K){var d=_.Pg.apply(1,arguments);_.Xm();for(var f=_.y(K),H=f.next(),D={};!H.done;D={lifecycle$jscomp$2:void 0},H=f.next())D.lifecycle$jscomp$2=H.value,eV(function(S){return function(){rLs(S.lifecycle$jscomp$2.name);H8z(function(){return S.lifecycle$jscomp$2.callback.apply(S.lifecycle$jscomp$2,_.Me(d))});
OA(S.lifecycle$jscomp$2.name)}}(D))};
gh.prototype.runImmediateJobsAsync=function(K){var d=_.Pg.apply(1,arguments),f,H,D,S;return _.c(function(n){n.nextAddress==1&&(_.Xm(),f=_.y(K),H=f.next(),D={});if(n.nextAddress!=3){if(H.done)return n.jumpTo(0);D.lifecycle$jscomp$3=H.value;D.asyncJobCompletion=void 0;S=function(u){return function(){rLs(u.lifecycle$jscomp$3.name);var a=H8z(function(){return u.lifecycle$jscomp$3.callback.apply(u.lifecycle$jscomp$3,_.Me(d))});
blu(a)?u.asyncJobCompletion=_.M("web_lifecycle_error_handling_killswitch")?a.then(function(){OA(u.lifecycle$jscomp$3.name)}):a.then(function(){OA(u.lifecycle$jscomp$3.name)},function(R){fmo(R);
OA(u.lifecycle$jscomp$3.name)}):OA(u.lifecycle$jscomp$3.name)}}(D);
eV(S);return D.asyncJobCompletion?_.I(n,D.asyncJobCompletion,3):n.jumpTo(3)}D={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};H=f.next();return n.jumpTo(2)})};
gh.prototype.setJobSetWithScheduledJobs=function(K){var d=_.Pg.apply(1,arguments),f=this,H=K.map(function(D){return{job:function(){rLs(D.name);H8z(function(){return D.callback.apply(D,_.Me(d))});
OA(D.name)},
priority:TRJ(f,D)}});
H.length&&(this.jobSet=new Wns(H))};
var TRJ=function(K,d){var f,H;return(H=(f=K.overridePriority)!=null?f:d.priority)!=null?H:0},rLs=function(K){PL&&K&&Kxp(K)},OA=function(K){PL&&K&&d7o(K)},G7t=function(K,d,f){mHL&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+K.constructor.name+"] '"+K.state+"' to '"+d+"'"),console.log("with message: ",f),console.groupEnd())};
_.x$.Object.defineProperties(gh.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var qXN=function(K){gh.call(this,K===void 0?"none":K);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(){}}]},Qck;
_.O(qXN,gh);qXN.prototype.runApplicationNavigationBegin=function(K,d){var f=this;this.navigationTimer=_.va(_.oc,function(){f.currentState==="application_navigating"&&f.transition("none")},5E3);
K(d==null?void 0:d.event)};
qXN.prototype.runApplicationNavigationEnd=function(K,d){this.navigationTimer&&(_.oc.cancelJob(this.navigationTimer),this.navigationTimer=null);K(d==null?void 0:d.event)};
_.pPO=function(){Qck||(Qck=new qXN);return Qck};var em5=[];_.B6("yt.logging.transport.getScrapedGelPayloads",function(){return em5});var VU=function(){var K=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return K.totalEntries}}};
VU.prototype.storePayload=function(K,d){K=D7J(K);this.store[K]?this.store[K].push(d):(this.memoizedKeySequences={},this.store[K]=[d]);this.totalEntries++;_.M("more_accurate_gel_parser")&&(d=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(d));return K};
VU.prototype.smartExtractMatchingEntries=function(K){if(!K.keys.length)return[];for(var d=jc6(this,K.keys.splice(0,1)[0]),f=[],H=0;H<d.length;H++)this.store[d[H]]&&K.sizeLimit&&(this.store[d[H]].length<=K.sizeLimit?(f.push.apply(f,_.Me(this.store[d[H]])),delete this.store[d[H]]):f.push.apply(f,_.Me(this.store[d[H]].splice(0,K.sizeLimit))));this.totalEntries-=f.length;(K==null?0:K.sizeLimit)&&f.length<(K==null?void 0:K.sizeLimit)&&(K.sizeLimit-=f.length,f.push.apply(f,_.Me(this.smartExtractMatchingEntries(K))));
return f};
VU.prototype.extractMatchingEntries=function(K){K=jc6(this,K);for(var d=[],f=0;f<K.length;f++)this.store[K[f]]&&(d.push.apply(d,_.Me(this.store[K[f]])),delete this.store[K[f]]);this.totalEntries-=d.length;return d};
VU.prototype.getSequenceCount=function(K){K=jc6(this,K);for(var d=0,f=0;f<K.length;f++){var H=void 0;d+=((H=this.store[K[f]])==null?void 0:H.length)||0}return d};
var jc6=function(K,d){var f=D7J(d);if(K.memoizedKeySequences[f])return K.memoizedKeySequences[f];var H=Object.keys(K.store)||[];if(H.length<=1&&D7J(d)===H[0])return H;for(var D=[],S=0;S<H.length;S++){var n=H[S].split("/");if(C32(d.auth,n[0])){var u=d.isJspb;C32(u===void 0?"undefined":u?"true":"false",n[1])&&C32(d.cttAuthInfo,n[2])&&(u=d.tier,u=u===void 0?"undefined":JSON.stringify(u),C32(u,n[3])&&D.push(H[S]))}}return K.memoizedKeySequences[f]=D},C32=function(K,d){return K===void 0||K==="undefined"?
!0:K===d};
VU.prototype.getSequenceCount=VU.prototype.getSequenceCount;VU.prototype.extractMatchingEntries=VU.prototype.extractMatchingEntries;VU.prototype.smartExtractMatchingEntries=VU.prototype.smartExtractMatchingEntries;VU.prototype.storePayload=VU.prototype.storePayload;var lmp,b8S,WxX,no,xHB,VVX,Dd5,hm5,EpG,XPN,m7X,wPn,tPp;lmp=_.di("initial_gel_batch_timeout",2E3);b8S=_.di("gel_queue_timeout_max_ms",6E4);WxX=_.di("gel_min_batch_size",5);no=void 0;xHB=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
VVX=new xHB;Dd5=new xHB;hm5=new xHB;EpG=new xHB;m7X=!0;wPn=1;_.kCo=new Map;tPp=_.Hu.ytLoggingTransportTokensToCttTargetIds_||{};_.B6("ytLoggingTransportTokensToCttTargetIds_",tPp);var YzJ=_.Hu.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.B6("ytLoggingTransportTokensToJspbCttTargetIds_",YzJ);var yU={};var Pa=_.Hu.ytLoggingGelSequenceIdObj_||{};_.B6("ytLoggingGelSequenceIdObj_",Pa);var iZo=[];var Pz5=new Set,UdX=0,YPG=0,NlX=0,Feo=[],R2Y=[],tVG=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var qPJ=function(){};
qPJ.prototype.getUrl=function(K,d){d=d===void 0?!1:d;return K.hasOwnProperty("shareEndpoint")?null:_.h25(K,null,d)};
var hvz=function(K,d,f){K={endpoint:d,actions:[]};f=(f.path?f.path[0]:f.target).icon||"";d=f.indexOf(":");d>0&&(f=f.substr(d+1));f&&K.actions.push(f);return K};var AJN=/Command$/,GGo=/Endpoint$/,mdY=new Map;var Lns,BRs;Lns=1;_.rU=function(){this.actionRoutingMap=new Map};
_.rU.prototype.triggerAction=function(K){var d=new czo(K,!1,_.Pg.apply(1,arguments));this.handleAction(d);return d.returnValue};
_.rU.prototype.triggerOptionalAction=function(K){var d=new czo(K,!0,_.Pg.apply(1,arguments));this.handleAction(d);return d.returnValue};
_.Nh=function(K,d,f){d.forEach(function(H){var D=Wen(H);D&&K.triggerOptionalAction(D,H,f,void 0)})};
_.rU.prototype.handleAction=function(K){var d=this.actionRoutingMap.get(K.actionName);d&&BRs(K,d);K.optionalAction||K.returnValue.length!==0||(K=new _.X4("Unhandled action",K.actionName),_.rF(K))};
BRs=function(K,d){d.forEach(function(f){var H=null;f?H=f.apply(null,K.args):(f=Error("fd"),f.params=K.actionName,_.G2(f));K.returnValue.push(H)})};
_.qF=function(K,d,f){f||(f=Lns++);for(var H=_.y(Object.keys(d)),D=H.next();!D.done;D=H.next()){D=D.value;var S=K.actionRoutingMap.get(D);S||(S=new Map,K.actionRoutingMap.set(D,S));K.registerActionHandler(f,D,d[D],S)}return f};
_.rU.prototype.registerActionHandler=function(K,d,f,H){H.set(K,_.AR(f))};
_.QU=function(K,d,f){d=_.y(Object.keys(d));for(var H=d.next();!H.done;H=d.next())(H=K.actionRoutingMap.get(H.value))&&H.delete(f)};
_.xb(_.rU);var Czu=function(K,d){var f=_.rU.getInstance();_.tR(function(){var H={},D=_.qF(f,(H[K]=d,H));_.$F(function(){var S={};_.QU(f,(S[K]="",S),D)})})};Khz=hdn;var Daz=new Set(["For","If","Match","Watch"]),JLs={},scv=(JLs[Gh.default]=function(){return scO},JLs.style=function(){return scO},JLs),k72;
for(k72 in scv)dQ.attributes[k72]=scv[k72](dQ.attributes[k72]);var k7=new _.xn("VISIBILITY_OBSERVER");var UaX={retrieve:function(K){return this.id.\u0275prov.token===K.\u0275prov.token?this.contextValue:this?tqB(this,this.id):NFp}};var wAs=function(K,d,f){if(K!==Lo)return!1;K=e2o(document.createElement("div"),function(){var H=fQ(!1);try{f[0]()}finally{fQ(H)}});
K=Array.from(K.childNodes);K.length===1&&(K=K[0]);return K};var ZAH=function(K){K=K.clone();Om8(K);uS(K,"dg",null);uS(K,"d","0");vl2(K,null);Mhf(K,null);return K},en6=!0,pAJ=function(K,d,f){var H=f===void 0?{}:f;
f=H.cssRowKey===void 0?void 0:H.cssRowKey;var D=H.combinedSignature===void 0?void 0:H.combinedSignature;var S=H.extraEdges===void 0?void 0:H.extraEdges;H=H.callback===void 0?void 0:H.callback;uS(K,"m",d.join(","));S&&glH(K,S);f&&(uS(K,"ck",f),D?uS(K,"rs",D):en6&&(en6=!1));if(H){if(H!=null&&!thB.test(H))throw Error("ab`"+H);uS(K,"cb",H)}K=K.toString();_.Sp(K,"/")&&(K=n88(document.location.href)+K);return _.yL(K)};var dFv=function(K){return Kh8(K).then(function(d){return JSON.parse(d.responseText)})},Kh8=function(K){var d={},f=d.xmlHttpFactory?d.xmlHttpFactory.createInstance():CN9.createInstance();
return(new _.ip(function(H,D){var S;try{f.open("GET",K,!0)}catch(a){D(new YS("Error opening XHR: "+a.message,K,f))}f.onreadystatechange=function(){if(f.readyState==4){_.Hu.clearTimeout(S);var a;!(a=j69(f.status))&&(a=f.status===0)&&(a=y64(K),a=!(a=="http"||a=="https"||a==""));a?H(f):D(new fxH(f.status,K,f))}};
f.onerror=function(){D(new YS("Network error",K,f))};
if(d.headers)for(var n in d.headers){var u=d.headers[n];u!=null&&f.setRequestHeader(n,u)}d.withCredentials&&(f.withCredentials=d.withCredentials);d.responseType&&(f.responseType=d.responseType);d.mimeType&&f.overrideMimeType(d.mimeType);d.timeoutMs>0&&(S=_.Hu.setTimeout(function(){f.onreadystatechange=function(){};
f.abort();D(new HoN(K,f))},d.timeoutMs));
try{f.send(null)}catch(a){f.onreadystatechange=function(){},_.Hu.clearTimeout(S),D(new YS("Error sending XHR: "+a.message,K,f))}})).thenCatch(function(H){H instanceof _.mf&&f.abort();
throw H;})},YS=function(K,d,f){_.KB.call(this,K+", url="+d);
this.url=d;this.xhr=f};
_.Bd(YS,_.KB);YS.prototype.name="XhrError";var fxH=function(K,d,f){YS.call(this,"Request Failed, status="+K,d,f);this.status=K};
_.Bd(fxH,YS);fxH.prototype.name="XhrHttpError";var HoN=function(K,d){YS.call(this,"Request timed out",K,d)};
_.Bd(HoN,YS);HoN.prototype.name="XhrTimeoutError";Cs=Cs||{};var to=function(){_.gG.call(this)};
_.Bd(to,_.gG);to.prototype.initialize=function(){};var DF9=function(K,d){this.fn_=K;this.handler_=d};
DF9.prototype.execute=function(K){this.fn_&&(this.fn_.call(this.handler_||null,K),this.fn_=this.handler_=null)};
DF9.prototype.abort=function(){this.handler_=this.fn_=null};var os=function(K,d){_.gG.call(this);this.deps_=K;this.JSC$8936_id_=d;this.onloadCallbacks_=[];this.JSC$8936_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Bd(os,_.gG);os.prototype.moduleConstructor_=to;os.prototype.module_=null;os.prototype.getId=function(){return this.JSC$8936_id_};
os.prototype.registerCallback=function(K,d){return V7N(this.onloadCallbacks_,K,d)};
var SN9=function(K,d){V7N(K.JSC$8936_onErrorCallbacks_,d)},V7N=function(K,d,f){d=new DF9(d,f);
K.push(d);return d};
os.prototype.isLoaded=function(){return!!this.module_};
os.prototype.onLoad=function(K){var d=new this.moduleConstructor_;d.initialize(K());this.module_=d;d=(d=y32(this.earlyOnloadCallbacks_,K()))||y32(this.onloadCallbacks_,K());d||(this.JSC$8936_onErrorCallbacks_.length=0);return d};
os.prototype.onError=function(K){(K=y32(this.JSC$8936_onErrorCallbacks_,K))&&Dn(Error("ld`"+K));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var y32=function(K,d){for(var f=[],H=0;H<K.length;H++)try{K[H].execute(d)}catch(D){Dn(D),f.push(D)}K.length=0;return f.length?f:null};
os.prototype.disposeInternal=function(){os.superClass_.disposeInternal.call(this);_.kh(this.module_)};var n7N,UFH,axv,Ix8,c3H,ub6,v7t,zdt,XaN;
_.EA=function(K,d,f,H,D){H=H===void 0?!1:H;D=D===void 0?!1:D;var S=S===void 0?!0:S;this.scsReferenceUrl_=JRn(_.nM(K).toString(),S);this.cssRowKey_=d;this.combinedSignature_=f;this.useNegativeLoading_=H;this.requestedModuleMap_={};this.JSC$8939_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(K=ct(this.scsReferenceUrl_,"excm"))?K.split(","):[];this.shouldScanForCss_=D;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;sdN();this.logger=null;_.$S(this,Plk(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
n7N=function(K,d){if(d.href||d.getAttribute("data-href"))if(d=d.href||d.getAttribute("data-href"),CxG(d)&&!JRn(d).urlPrefix_.endsWith("_/js/")){d=Plk(JRn(d));d=_.y(d);for(var f=d.next();!f.done;f=d.next())f=f.value,K.loadedCssModuleList_.includes(f)||K.loadedCssModuleList_.push(f)}};
_.EA.prototype.JSC$8941_loadModules=function(K,d,f){var H=f===void 0?{}:f;f=H.extraEdges;var D=H.onError;var S=H.onSuccess;H=H.forceReload;this.JSC$8939_moduleInfoMap_=d;if(!K)throw Error("md");if(this.shouldScanForCss_){d=_.y(document.getElementsByTagName("style"));for(var n=d.next();!n.done;n=d.next())n7N(this,n.value);d=_.y(document.getElementsByTagName("link"));for(n=d.next();!n.done;n=d.next())n7N(this,n.value)}ioB(this,c3H(this,K),f,D,S,H)};
var ioB=function(K,d,f,H,D,S){H=H===void 0?function(){}:H;
D=D===void 0?function(){}:D;
S=S===void 0?!1:S;ub6(K,d,function(n,u,a){a=a===void 0?u:a;K.enableFallbackFetch&&S?K.loadWithFetch(n,u,H,D,a):K.load(n,u,H,D,a,f)},f)||H(-1)};
_.EA.prototype.loadWithFetch=function(){_.c(function(){throw Error("nd");})};
_.EA.prototype.maybeSetAdditionalFields=function(){};
UFH=function(K,d,f){if(K.useNegativeLoading_){var H=K.scsReferenceUrl_;K={cssRowKey:K.cssRowKey_,combinedSignature:K.combinedSignature_,extraEdges:f,requestedModuleIds:axv(K),requestedCssModuleIds:Ix8(K)};var D=K===void 0?{}:K;K=D.requestedModuleIds===void 0?[]:D.requestedModuleIds;f=D.requestedCssModuleIds===void 0?[]:D.requestedCssModuleIds;var S=D.cssRowKey===void 0?void 0:D.cssRowKey;var n=D.combinedSignature===void 0?void 0:D.combinedSignature;var u=D.extraEdges===void 0?void 0:D.extraEdges;
D=D.callback===void 0?void 0:D.callback;H=ZAH(H);uS(H,"d","1");vl2(H,K);Mhf(H,f);d=pAJ(H,d,{cssRowKey:S,combinedSignature:n,extraEdges:u,callback:D})}else H=K.scsReferenceUrl_,K={cssRowKey:K.cssRowKey_,combinedSignature:K.combinedSignature_,requestedModuleIds:axv(K),requestedCssModuleIds:Ix8(K)},u=K===void 0?{}:K,K=u.requestedCssModuleIds===void 0?[]:u.requestedCssModuleIds,f=u.cssRowKey===void 0?void 0:u.cssRowKey,S=u.combinedSignature===void 0?void 0:u.combinedSignature,n=u.extraEdges===void 0?
void 0:u.extraEdges,u=u.callback===void 0?void 0:u.callback,H=ZAH(H),Mhf(H,K),d=pAJ(H,d,{cssRowKey:f,combinedSignature:S,extraEdges:n,callback:u});return d};
_.$S=function(K,d){for(var f=!1,H=[],D=0;D<d.length;++D){var S=d[D];K.requestedModuleMap_[S]||(K.requestedModuleMap_[S]=!0,K.requestedModuleList_.push(S),f=!0,H.push(S))}f&&(K.requestedModuleListSorted_=!1)};
_.ho=function(K,d){for(var f=[],H=0;H<d.length;++H){var D=d[H];K.requestedModuleMap_[D]&&(delete K.requestedModuleMap_[D],_.Zn(K.requestedModuleList_,D),f.push(D))}};
_.EA.prototype.load=function(K,d,f,H,D){D=D===void 0?d:D;_.nM(K);var S=this.useCors_,n=this.corsMode_,u=this.fetchPriority,a=_.RQ("SCRIPT");_.Aa(a,K);S&&(a.crossOrigin=n);a.async=!1;u&&a.setAttribute("fetchpriority",u);_.$S(this,d);_.Rdk(this,K,a,d,f,H,D)};
_.Rdk=function(K,d,f,H,D,S,n){n=n===void 0?H:n;K.lastScript_=f;K.insertPos.insertBefore(f,K.insertPos.firstChild);_.Fhs(f,H,function(){f.parentElement.removeChild(f);K.lastScript_==f&&(K.lastScript_=null);var u=new Set;H.map(function(R){return u.add(R)});
for(var a in K.JSC$8939_moduleInfoMap_)K.JSC$8939_moduleInfoMap_[a].isLoaded()&&u.add(a);Array.from(u);S()},function(u){f.parentElement.removeChild(f);
K.lastScript_==f&&(K.lastScript_=null);_.ho(K,u);K.pendingModuleGraphUpdate_?K.pendingModuleGraphUpdate_.then(function(){D(-1,d)}):D(-1,d)},n)};
_.Fhs=function(K,d,f,H,D){D=D===void 0?d:D;var S=d.length,n=function(){S=0;K.onload=null;K.onerror=null;u=function(){}},u=function(){n();
var R=D.filter(function(F){return!Em().getModuleInfo(F).isLoaded()});
R.length!==0?H(R,"Response was successful but was missing module(s) "+R+"."):f()},a=function(){S--;
S==0&&u()};
d.forEach(function(R){R=Em().getModuleInfo(R);R.isLoaded()?a():(V7N(R.earlyOnloadCallbacks_,a),SN9(R,a))});
K.onload=function(){return u()};
K.onerror=function(){n();H(d)}};
axv=function(K){K.requestedModuleListSorted_||(K.requestedModuleListSorted_=!0,K.requestedModuleList_.sort());return K.requestedModuleList_};
Ix8=function(K){K=K.loadedCssModuleList_;K.sort();return K};
c3H=function(K,d){return d.filter(function(f){return!K.requestedModuleMap_[f]})};
ub6=function(K,d,f,H){if(K.pendingModuleGraphUpdate_)return K.pendingModuleGraphUpdate_.then(function(){ub6(K,d,f,H)}),!0;
if(!K.useNegativeLoading_){var D=[],S=Object.assign({},K.requestedModuleMap_);zdt(K,d,function(F){D.push(F.getId())},H,function(F){return!F.isLoaded()},S);
d=D}for(S=0;S<d.length;){for(var n=d.length-S,u=S==0?d:d.slice(S,d.length),a=UFH(K,u,H),R=_.nM(a).toString();R.length>K.urlMaxLength;)if(n>1)n-=Math.ceil((R.length-K.urlMaxLength)/6),n=Math.max(n,1),u=d.slice(S,S+n),a=UFH(K,u,H),R=_.nM(a).toString();else return K.useNegativeLoading_?(K.useNegativeLoading_=!1,K.pendingModuleGraphUpdate_=XaN(K).then(function(F){v7t(K,F,H)}),ub6(K,d.slice(S),f,H)):!1;
S+=n;K.useNegativeLoading_?f(a,u):f(a,u,S===d.length?d:[])}return!0};
v7t=function(K,d,f){Em().setAllModuleInfoString((d||{}).moduleGraph);zdt(K,axv(K),function(H){_.$S(K,[H.getId()])},f);
K.pendingModuleGraphUpdate_=null};
zdt=function(K,d,f,H,D,S){S=S===void 0?{}:S;var n=Em();d=_.y(d);for(var u=d.next();!u.done;u=d.next()){u=u.value;var a=n.getModuleInfo(u);if(!(S[u]||D&&!D(a))){S[u]=!0;var R=a.deps_||[];if(H){var F=[];H[u]&&(F=Object.keys(H[u]));R=R.concat(F)}zdt(K,R,f,H,D,S);f(a)}}};
XaN=function(K){K=K.scsReferenceUrl_.clone();Om8(K);uS(K,"dg",null);uS(K,"md","1");return dFv(K.toString())};var zop=new Uint8Array(123);var M7J=[];var PpL=function(){this.JSC$8059_loader_=null};
_.V=PpL.prototype;_.V.setBatchModeEnabled=function(){};
_.V.setAllModuleInfoString=function(){};
_.V.addExtraEdge=function(){throw Error("od");};
_.V.removeExtraEdge=function(){throw Error("pd");};
_.V.getModuleContext=function(){return null};
_.V.isActive=function(){return!1};
_.V.isUserActive=function(){return!1};
_.V.registerCallback=function(){};var be=function(K,d,f,H,D){var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.name="ModuleLoadFailure";this.type=K;this.status=d;this.requestedModuleIds=f;this.url=H;this.cause=D;this.message=this.toString()};
_.O(be,Error);be.prototype.toString=function(){return g79(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var g79=function(K){switch(K.type){case be.JSC$8951_Type.UNAUTHORIZED:return"Unauthorized";case be.JSC$8951_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case be.JSC$8951_Type.TIMEOUT:return"Timed out";case be.JSC$8951_Type.OLD_CODE_GONE:return"Out of date module id";case be.JSC$8951_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+K.type}};
Cs.ModuleLoadFailure=be;Cs.ModuleLoadFailure.JSC$8951_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var mw=function(){this.moduleIds_=this.JSC$8059_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8954_extraEdges_={};this.JSC$8954_callbackMap_={};this.JSC$8954_currentlyLoadingModule_=this.baseModuleInfo_=new os([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new lJ;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Bd(mw,PpL);var Oof=function(K,d){_.KB.call(this,"Error loading "+K+": "+d)};
_.Bd(Oof,_.KB);mw.prototype.setBatchModeEnabled=function(K){this.batchModeEnabled_=K};
mw.prototype.setAllModuleInfoString=function(K,d){if(!(this instanceof mw))this.setAllModuleInfoString(K,d);else if(typeof K==="string"){if(K.startsWith("d$")){K=K.substring(2);for(var f=[],H=0,D=K.indexOf("/"),S=0,n=!1,u=0;;){var a=n?K.substring(S):K.substring(S,D);if(a.length===0)H++,S="sy"+H.toString(36),a=[];else{var R=a.indexOf(":");if(R<0)S=a,a=[];else if(R===a.length-1)S=a.substring(0,R),a=Array(f[u-1]);else{S=a.substring(0,R);a=a.substring(R+1).split(",");R=u;for(var F=0;F<a.length;F++)R-=
a[F].length===0?1:Number(a[F]),a[F]=f[R]}R=0;if(S.length===0)R=1;else if(S.charAt(0)==="+"||S.charAt(0)==="-")R=Number(S);R!==0&&(H+=R,S="sy"+H.toString(36))}f.push(S);NUt(this,S,a);if(n)break;S=D+1;D=K.indexOf("/",S);D===-1&&(n=!0);u++}this.moduleIds_=f}else if(K.startsWith("p$"))YN4(this,K);else{K=K.split("/");f=[];for(H=0;H<K.length;H++){u=K[H].split(":");D=u[0];n=[];if(u[1])for(n=u[1].split(","),u=0;u<n.length;u++)n[u]=f[parseInt(n[u],36)];f.push(D);NUt(this,D,n)}this.moduleIds_=f}d&&d.length?
(_.fJ(this.loadingModuleIds_,d),this.lastInitialModuleId_=_.TS(d)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8954_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8954_currentlyLoadingModule_=null,(d=this.baseModuleInfo_.onLoad((0,_.Om)(this.getModuleContext,this)))&&d.length&&t7N(this,new Cs.ModuleLoadFailure(Cs.ModuleLoadFailure.JSC$8951_Type.INIT_ERROR,void 0,void 0,void 0,d[0])),le(this))}};
var YN4=function(K,d){var f=d.substring(2);for(d=0;d<64;d++)zop["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(d)]=d;var H={buf:f,pos:0};e7(H);var D=e7(H),S=e7(H)+1;d=Array(D);var n=Array(D),u=Array(D);S=Array(S);var a=0,R=0,F=H.pos,z=H.buf.indexOf("|",H.pos);H.pos=z+1;for(z=0;z<D;z++){var v=e7(H),g=v&2,N=v&1;v>>>=2;N?(a+=v>>>1^-(v&1),v="sy"+a.toString(36)):(N=F,F+=v,v=f.substring(N,F));d[z]=v;g&&(S[R++]=v)}S[R]="";H.pos++;R=D&-2;f=D&1;for(a=0;a<R;a+=2)F=XpX(H),u[a]=
F&7,u[a+1]=F>>>3&7;f&&(f=XpX(H),u[R]=f&7);H.pos++;for(R=0;R<D;R++)u[R]===7&&(u[R]=e7(H));H.pos++;for(f=R=0;f<D;f++){a=u[f];F=a===0?M7J:Array(a);n[f]=F;z=R;for(g=0;g<a;g++)z-=e7(H),F[g]=S[z];S[R]===d[f]&&R++}for(H=0;H<d.length;H++)NUt(K,d[H],n[H]);K.moduleIds_=d};
_.V=mw.prototype;_.V.getModuleInfo=function(K){return this.moduleInfoMap[K]};
_.V.addExtraEdge=function(K,d){var f=this.getModuleInfo(K);f&&f.isLoaded()?this.load(d):(this.JSC$8954_extraEdges_[K]||(this.JSC$8954_extraEdges_[K]={}),this.JSC$8954_extraEdges_[K][d]=!0)};
_.V.removeExtraEdge=function(K,d){if(this.JSC$8954_extraEdges_[K]){delete this.JSC$8954_extraEdges_[K][d];for(var f in this.JSC$8954_extraEdges_[K])return;delete this.JSC$8954_extraEdges_[K]}};
_.V.isActive=function(){return this.loadingModuleIds_.length>0};
_.V.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var le=function(K){var d=K.lastActive_,f=K.isActive();f!=d&&(K.executeCallbacks_(f?"active":"idle"),K.lastActive_=f);d=K.isUserActive();d!=K.userLastActive_&&(K.executeCallbacks_(d?"userActive":"userIdle"),K.userLastActive_=d)},NUt=function(K,d,f){K.moduleInfoMap[d]?(K=K.moduleInfoMap[d].deps_,K!=f&&K.splice.apply(K,[0,
K.length].concat(_.Me(f)))):K.moduleInfoMap[d]=new os(f,d)},$F8=function(K,d,f){var H=[];
Vv(d,H);d=[];for(var D={},S=0;S<H.length;S++){var n=H[S],u=K.getModuleInfo(n);if(!u)throw Error("qd`"+n);var a=new lJ;D[n]=a;u.isLoaded()?a.callback(null):(o7H(K,n,u,!!f,a),K.isModuleLoading(n)||d.push(n))}d.length>0&&(K.loadingModuleIds_.length===0?K.loadModules_(d):(K.requestedModuleIdsQueue_.push(d),le(K)));return D},o7H=function(K,d,f,H,D){f.registerCallback(D.callback,D);
SN9(f,function(S){D.errback(new Oof(d,S))});
K.isModuleLoading(d)?H&&(E7f(K,d),le(K)):H&&E7f(K,d)};
mw.prototype.loadModules_=function(K,d,f){var H=this;d||(this.consecutiveFailures_=0);var D=hdL(this,K);this.loadingModuleIds_=D;this.requestedLoadingModuleIds_=this.batchModeEnabled_?K:_.ep(D);le(this);if(D.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,D);if(Object.keys(this.JSC$8954_extraEdges_).length>0&&!this.JSC$8059_loader_.supportsExtraEdges)throw Error("rd");K=(0,_.Om)(this.JSC$8059_loader_.JSC$8941_loadModules,this.JSC$8059_loader_,_.ep(D),this.moduleInfoMap,{extraEdges:this.JSC$8954_extraEdges_,
forceReload:!!f,onError:function(S,n){var u=H.requestedLoadingModuleIds_;S=S!=null?S:void 0;H.consecutiveFailures_++;var a=_.ep(D);H.requestedLoadingModuleIds_=u;D.forEach(_.uB(_.Zn,H.requestedModuleIds_),H);S==401?(t7N(H,new Cs.ModuleLoadFailure(Cs.ModuleLoadFailure.JSC$8951_Type.UNAUTHORIZED,S)),H.requestedModuleIdsQueue_.length=0):S==410?(boH(H,new Cs.ModuleLoadFailure(Cs.ModuleLoadFailure.JSC$8951_Type.OLD_CODE_GONE,S)),mF2(H)):H.consecutiveFailures_>=3?(boH(H,new Cs.ModuleLoadFailure(Cs.ModuleLoadFailure.JSC$8951_Type.CONSECUTIVE_FAILURES,
S,a,n)),mF2(H)):H.loadModules_(H.requestedLoadingModuleIds_,!0,S==8001||!1)},
onTimeout:(0,_.Om)(this.handleLoadTimeout_,this)});(d=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Hu.setTimeout(K,d):K()}};
var hdL=function(K,d){d=d.filter(function(D){return K.moduleInfoMap[D].isLoaded()?(_.Hu.setTimeout(function(){return Error("sd`"+D)},0),!1):!0});
for(var f=[],H=0;H<d.length;H++)f=f.concat(lxv(K,d[H]));Vv(f);return!K.batchModeEnabled_&&f.length>1?(d=f.shift(),K.requestedModuleIdsQueue_=f.map(function(D){return[D]}).concat(K.requestedModuleIdsQueue_),[d]):f},lxv=function(K,d){var f=_.PR.createSet(K.requestedModuleIds_),H=[];
f[d]||H.push(d);d=[d];for(var D=0;D<d.length;D++)for(var S=K.getModuleInfo(d[D]).deps_,n=S.length-1;n>=0;n--){var u=S[n];K.getModuleInfo(u).isLoaded()||f[u]||(H.push(u),d.push(u))}H.reverse();Vv(H);return H};
mw.prototype.JSC$8949_setLoaded=function(){if(this.JSC$8954_currentlyLoadingModule_){var K=this.JSC$8954_currentlyLoadingModule_.getId(),d=[];if(this.JSC$8954_extraEdges_[K]){for(var f=_.y(Object.keys(this.JSC$8954_extraEdges_[K])),H=f.next();!H.done;H=f.next()){H=H.value;var D=this.getModuleInfo(H);D&&!D.isLoaded()&&(this.removeExtraEdge(K,H),d.push(H))}this.loadMultiple(d)}this.isDisposed()||((d=this.moduleInfoMap[K].onLoad((0,_.Om)(this.getModuleContext,this)))&&d.length&&t7N(this,new Cs.ModuleLoadFailure(Cs.ModuleLoadFailure.JSC$8951_Type.INIT_ERROR,
void 0,void 0,void 0,d[0])),_.Zn(this.userInitiatedLoadingModuleIds_,K),_.Zn(this.loadingModuleIds_,K),this.loadingModuleIds_.length===0&&mF2(this),this.lastInitialModuleId_&&K==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),le(this),this.JSC$8954_currentlyLoadingModule_=null)}};
mw.prototype.isModuleLoading=function(K){if(_.Bu(this.loadingModuleIds_,K))return!0;for(var d=0;d<this.requestedModuleIdsQueue_.length;d++)if(_.Bu(this.requestedModuleIdsQueue_[d],K))return!0;return!1};
mw.prototype.load=function(K,d){return $F8(this,[K],d)[K]};
mw.prototype.loadMultiple=function(K){return $F8(this,K)};
var E7f=function(K,d){_.Bu(K.userInitiatedLoadingModuleIds_,d)||K.userInitiatedLoadingModuleIds_.push(d)};
mw.prototype.beforeLoadModuleCode=function(K){var d=this;this.JSC$8954_currentlyLoadingModule_&&this.JSC$8954_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8949_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[K]&&Wh4(this,this.moduleInfoMap[K].deps_||[],function(f){f.module_=new to;_.Zn(d.loadingModuleIds_,f.getId())},function(f){return!f.isLoaded()});
this.JSC$8954_currentlyLoadingModule_=this.getModuleInfo(K)};
mw.prototype.handleLoadTimeout_=function(){boH(this,new Cs.ModuleLoadFailure(Cs.ModuleLoadFailure.JSC$8951_Type.TIMEOUT));mF2(this)};
var boH=function(K,d){K.requestedLoadingModuleIds_.length>1?K.requestedModuleIdsQueue_=K.requestedLoadingModuleIds_.map(function(f){return[f]}).concat(K.requestedModuleIdsQueue_):t7N(K,d)},t7N=function(K,d){var f=K.requestedLoadingModuleIds_;
K.loadingModuleIds_.length=0;for(var H=[],D=0;D<K.requestedModuleIdsQueue_.length;D++){var S=K.requestedModuleIdsQueue_[D].filter(function(a){var R=lxv(this,a);return xK(f,function(F){return _.Bu(R,F)})},K);
_.fJ(H,S)}for(D=0;D<f.length;D++)_.JN(H,f[D]);for(D=0;D<H.length;D++){for(S=0;S<K.requestedModuleIdsQueue_.length;S++)_.Zn(K.requestedModuleIdsQueue_[S],H[D]);_.Zn(K.userInitiatedLoadingModuleIds_,H[D])}if(D=K.JSC$8954_callbackMap_.error)for(S=0;S<D.length;S++)for(var n=D[S],u=0;u<H.length;u++)n("error",H[u],d);for(H=0;H<f.length;H++)if(K.moduleInfoMap[f[H]])K.moduleInfoMap[f[H]].onError(d);K.requestedLoadingModuleIds_.length=0;le(K)},mF2=function(K){for(;K.requestedModuleIdsQueue_.length;){var d=
K.requestedModuleIdsQueue_.shift().filter(function(f){return!this.getModuleInfo(f).isLoaded()},K);
if(d.length>0){K.loadModules_(d);return}}le(K)};
mw.prototype.registerCallback=function(K,d){Array.isArray(K)||(K=[K]);for(var f=0;f<K.length;f++){var H=K[f],D=d,S=this.JSC$8954_callbackMap_;S[H]||(S[H]=[]);S[H].push(D)}};
mw.prototype.executeCallbacks_=function(K){for(var d=this.JSC$8954_callbackMap_[K],f=0;d&&f<d.length;f++)d[f](K)};
var Wh4=function(K,d,f,H,D){H=H===void 0?function(){return!0}:H;
D=D===void 0?{}:D;d=_.y(d);for(var S=d.next();!S.done;S=d.next()){S=S.value;var n=K.getModuleInfo(S);!D[S]&&H(n)&&(D[S]=!0,Wh4(K,n.deps_||[],f,H,D),f(n))}};
mw.prototype.dispose=function(){_.w0(_.PR.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8954_callbackMap_={};this.isDisposed_=!0};
mw.prototype.isDisposed=function(){return this.isDisposed_};
_.$l=function(){return new mw};var GE8=[5E3,2E4],A3v=function(){this.JSC$8059_loader_=null;this.JSC$8962_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8962_queue_=[];this.JSC$8962_extraEdges_=Object.create(null);this.JSC$8962_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.O(A3v,PpL);_.V=A3v.prototype;_.V.setAllModuleInfoString=function(){this.JSC$8962_currentlyLoadingModule_&&this.JSC$8962_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8949_setLoaded()};
_.V.getModuleInfo=function(K){var d=this.JSC$8962_moduleInfoMap_[K];d||(d=new os([],K),this.JSC$8962_moduleInfoMap_[K]=d);return d};
_.V.addExtraEdge=function(K,d){this.getModuleInfo(K).isLoaded()?this.load(d):(this.JSC$8962_extraEdges_[K]||(this.JSC$8962_extraEdges_[K]={}),this.JSC$8962_extraEdges_[K][d]=!0)};
_.V.removeExtraEdge=function(K,d){if(this.JSC$8962_extraEdges_[K]){delete this.JSC$8962_extraEdges_[K][d];for(var f in this.JSC$8962_extraEdges_[K])return;delete this.JSC$8962_extraEdges_[K]}};
_.V.isModuleLoading=function(K){return!!this.loadingModules_[K]};
_.V.load=function(K){TUt(this,[K]);return r34(this,K)};
_.V.loadMultiple=function(K){var d=this,f=Object.create(null),H=[];K.forEach(function(D){f[D]||(f[D]=r34(d,D),H.push(D))});
TUt(this,H);return f};
_.V.beforeLoadModuleCode=function(K){var d;((d=this.JSC$8962_currentlyLoadingModule_)==null?void 0:d.getId())==="synthetic_module_overhead"&&this.JSC$8949_setLoaded();var f,H;qN4(this,(H=(f=this.JSC$8962_moduleInfoMap_[K])==null?void 0:f.deps_)!=null?H:[],function(D){D.module_=new to},function(D){return!D.isLoaded()});
this.JSC$8962_currentlyLoadingModule_=this.getModuleInfo(K)};
_.V.JSC$8949_setLoaded=function(){if(this.JSC$8962_currentlyLoadingModule_){var K=this.JSC$8962_currentlyLoadingModule_.getId(),d=[];if(this.JSC$8962_extraEdges_[K]){for(var f=_.y(Object.keys(this.JSC$8962_extraEdges_[K])),H=f.next();!H.done;H=f.next())H=H.value,this.getModuleInfo(H).isLoaded()||(this.removeExtraEdge(K,H),d.push(H));this.loadMultiple(d)}this.JSC$8962_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8962_currentlyLoadingModule_=null;(!this.isModuleLoading(K)&&/^sy[0-9a-z]{0,4}$/.test(K)||K==="synthetic_module_overhead")&&delete this.JSC$8962_moduleInfoMap_[K];this.unsetModulesAsLoading(K)}};
_.V.setModulesAsLoading=function(){var K=this;_.Pg.apply(0,arguments).forEach(function(d){K.loadingModules_[d]=!0})};
_.V.unsetModulesAsLoading=function(){var K=this;_.Pg.apply(0,arguments).forEach(function(d){delete K.loadingModules_[d]})};
var r34=function(K,d){return new _.ip(function(f,H){var D=K.getModuleInfo(d);D.isLoaded()?f(null):(D.registerCallback(function(){f(null)}),SN9(D,function(S){var n="Error loading "+d+": "+S;
S instanceof Cs.ModuleLoadFailure&&S.url&&(n=n+", requested url: "+S.url.toString());H(Error(n))}))})},TUt=function(K,d){d=d.filter(function(f){return!K.isModuleLoading(f)&&!K.getModuleInfo(f).isLoaded()});
d.length>0&&(K.setModulesAsLoading.apply(K,_.Me(d)),K.JSC$8962_queue_.push(d),QB2(K))},QB2=function(K){for(var d={};K.activeLoads_<Infinity&&K.JSC$8962_queue_.length>0;d={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})d.ids$jscomp$36=K.JSC$8962_queue_.shift().filter(function(f){return!K.getModuleInfo(f).isLoaded()}),d.ids$jscomp$36.length>0&&(K.activeLoads_++,d.finishLoad=function(f){return function(){K.activeLoads_--;
QB2(K);f.finishLoad=function(){}}}(d),_.at(d.ids$jscomp$36.map(function(f){return r34(K,f)})).then(function(f){return function(){(0,f.finishLoad)()}}(d)),d.attempt$jscomp$6=0,d.load$jscomp$1=function(f){return function(){if(Object.keys(K.JSC$8962_extraEdges_).length>0&&!K.JSC$8059_loader_.supportsExtraEdges)throw Error("rd");
K.JSC$8059_loader_.JSC$8941_loadModules(f.ids$jscomp$36,K.JSC$8962_moduleInfoMap_,{extraEdges:K.JSC$8962_extraEdges_,onError:function(H,D){var S=GE8[f.attempt$jscomp$6++];S!==void 0?setTimeout(function(){(0,f.load$jscomp$1)()},S):(K.unsetModulesAsLoading.apply(K,_.Me(f.ids$jscomp$36)),(0,f.finishLoad)(),f.ids$jscomp$36.forEach(function(n){n=K.getModuleInfo(n);
if(!n.isLoaded())n.onError(new Cs.ModuleLoadFailure(Cs.ModuleLoadFailure.JSC$8951_Type.CONSECUTIVE_FAILURES,H,f.ids$jscomp$36,D))}))}})}}(d),(0,d.load$jscomp$1)())},qN4=function(K,d,f,H,D){H=H===void 0?function(){return!0}:H;
D=D===void 0?{}:D;d=_.y(d);for(var S=d.next();!S.done;S=d.next()){S=S.value;var n=K.getModuleInfo(S);!D[S]&&H(n)&&(D[S]=!0,qN4(K,n.deps_||[],f,H,D),f(n))}};var jB6=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var MCS=Symbol("ud");window.JSCompiler_renameProperty=function(K){return K};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var CpB=!jB6||HTMLElement.es5Shimmed||_.Hu.Reflect===void 0||_.Hu.customElements===void 0||_.Hu.customElements.polyfillWrapFlushCallback||!1,xF9,jDz=function(){var K=HTMLElement;if(CpB)return K;if(xF9!==void 0)return xF9;var d=_.Hu.Reflect,f=function(){return d.construct(K,[],this.constructor)};
f.prototype=K.prototype;f.prototype.constructor=f;f.es5Shimmed=!0;Object.setPrototypeOf(f,K);return xF9=f},LhJ=!1;CpB||LhJ||(LhJ=!0,_.Hu.HTMLElement=jDz());/*

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 Y5u=/(url\()([^)]*)(\))/g,OKB=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,NHX,po;var hd=!window.ShadyDOM||!window.ShadyDOM.inUse,BU2=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),J36=!window.customElements.polyfillWrapFlushCallback,sB9;if(sB9=hd&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var kE6=new CSSStyleSheet;kE6.replaceSync("");var waN=document.createElement("div");waN.attachShadow({mode:"open"});waN.shadowRoot.adoptedStyleSheets=[kE6];sB9=waN.shadowRoot.adoptedStyleSheets[0]===kE6}catch(K){sB9=!1}
var ZoH=sB9,edN=window.Polymer&&window.Polymer.rootPath||oPO(document.baseURI||window.location.href),I4=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,AvO=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,We=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,paB=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ES=window.Polymer&&window.Polymer.legacyOptimizations||!1,lT=window.Polymer&&window.Polymer.legacyWarnings||!1,Kk6=window.Polymer&&window.Polymer.syncInitialRender||
!1,R4=window.Polymer&&window.Polymer.legacyUndefined||!1,d5s=window.Polymer&&window.Polymer.orderedComputed||!1,WL=window.Polymer&&window.Polymer.removeNestedTemplates||!1,GA=window.Polymer&&window.Polymer.fastDomIf||!1,Ao=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,ft4=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,H3f=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var TA={},D5t={},zF=function(){return HTMLElement.apply(this,arguments)||this};
_.O(zF,HTMLElement);zF.import=function(K,d){return K?(K=TA[K]||D5t[K.toLowerCase()])&&d?K.querySelector(d):K:null};
zF.prototype.attributeChangedCallback=function(K,d,f){d!==f&&this.register()};
zF.prototype.register=function(K){if(K=K||this.id){if(We&&(TA[K]||D5t[K.toLowerCase()])!==void 0)throw TA[K]=D5t[K.toLowerCase()]=null,Error("vd`"+K);this.id=K;TA[K]=D5t[K.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.x$.Object.defineProperties(zF.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var K=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;K=_.K3(this.getAttribute("assetpath")||"",K.baseURI);this.__assetpath=oPO(K)}return this.__assetpath}}});
_.x$.Object.defineProperties(zF,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
zF["import"]=zF.import;zF.prototype.modules=TA;customElements.define("dom-module",zF);var VW9=0,EPX=0,dX=[],SSH=0,$az=!1,ydk=document.createTextNode(""),n$B,o4;(new window.MutationObserver(hoS)).observe(ydk,{characterData:!0});_.rh={after:function(K){return{run:function(d){return window.setTimeout(d,K)},
cancel:function(d){window.clearTimeout(d)}}},
run:function(K,d){return window.setTimeout(K,d)},
cancel:function(K){window.clearTimeout(K)}};
_.Xq={run:function(K){return window.requestAnimationFrame(K)},
cancel:function(K){window.cancelAnimationFrame(K)}};
n$B={run:function(K){return window.requestIdleCallback?window.requestIdleCallback(K):window.setTimeout(K,16)},
cancel:function(K){window.cancelIdleCallback?window.cancelIdleCallback(K):window.clearTimeout(K)}};
o4={run:function(K){$az||($az=!0,ydk.textContent=SSH++);dX.push(K);return VW9++},
cancel:function(K){var d=K-EPX;if(d>=0){if(!dX[d])throw Error("wd`"+K);dX[d]=null}}};var i34=0,qh=function(K){var d=K.__mixinApplications;d||(d=new WeakMap,K.__mixinApplications=d);var f=i34++;return function(H){var D=H.__mixinSet;if(D&&D[f])return H;var S=d,n=S.get(H);n||(n=K(H),S.set(H,n),H=Object.create(n.__mixinSet||D||null),H[f]=!0,n.__mixinSet=H);return n}};_.a4=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(K){return ShadyDOM.patch(K)}:function(K){return K};var cd9=qh(function(K){var d=function(){var f=K.call(this)||this;f.__dataEnabled=!1;f.__dataReady=!1;f.__dataInvalid=!1;f.__data={};f.__dataPending=null;f.__dataOld=null;f.__dataInstanceProps=null;f.__dataCounter=0;f.__serializing=!1;f._initializeProperties();return f};
_.O(d,K);d.createProperties=function(f){var H=this.prototype,D;for(D in f)D in H||H._createPropertyAccessor(D)};
d.attributeNameForProperty=function(f){return f.toLowerCase()};
d.typeForProperty=function(){};
d.prototype._createPropertyAccessor=function(f,H){this._addPropertyToAttributeMap(f);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[f]||(this.__dataHasAccessor[f]=!0,this._definePropertyAccessor(f,H))};
d.prototype._addPropertyToAttributeMap=function(f){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var H=this.__dataAttributes[f];H||(H=this.constructor.attributeNameForProperty(f),this.__dataAttributes[H]=f);return H};
d.prototype._definePropertyAccessor=function(f,H){Object.defineProperty(this,f,{get:function(){return this.__data[f]},
set:H?function(){}:function(D){this._setPendingProperty(f,D,!0)&&this._invalidateProperties()}})};
d.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
d.prototype._initializeProperties=function(){for(var f in this.__dataHasAccessor)this.hasOwnProperty(f)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[f]=this[f],delete this[f])};
d.prototype._initializeInstanceProperties=function(f){Object.assign(this,f)};
d.prototype._setProperty=function(f,H){this._setPendingProperty(f,H)&&this._invalidateProperties()};
d.prototype._getProperty=function(f){return this.__data[f]};
d.prototype._setPendingProperty=function(f,H){var D=this.__data[f],S=this._shouldPropertyChange(f,H,D);S&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||f in this.__dataOld||(this.__dataOld[f]=D),this.__data[f]=H,this.__dataPending[f]=H);return S};
d.prototype._isPropertyPending=function(f){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(f))};
d.prototype._invalidateProperties=function(){var f=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,o4.run(function(){f.__dataInvalid&&(f.__dataInvalid=!1,f._flushProperties())}))};
d.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
d.prototype._flushProperties=function(){this.__dataCounter++;var f=this.__data,H=this.__dataPending,D=this.__dataOld;this._shouldPropertiesChange(f,H,D)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(f,H,D));this.__dataCounter--};
d.prototype._shouldPropertiesChange=function(f,H){return!!H};
d.prototype._propertiesChanged=function(){};
d.prototype._shouldPropertyChange=function(f,H,D){return D!==H&&(D===D||H===H)};
d.prototype.attributeChangedCallback=function(f,H,D,S){H!==D&&this._attributeToProperty(f,D);K.prototype.attributeChangedCallback&&K.prototype.attributeChangedCallback.call(this,f,H,D,S)};
d.prototype._attributeToProperty=function(f,H,D){if(!this.__serializing){var S=this.__dataAttributes;f=S&&S[f]||f;this[f]=this._deserializeValue(H,D||this.constructor.typeForProperty(f))}};
d.prototype._propertyToAttribute=function(f,H,D){this.__serializing=!0;D=arguments.length<3?this[f]:D;this._valueToNodeAttribute(this,D,H||this.constructor.attributeNameForProperty(f));this.__serializing=!1};
d.prototype._valueToNodeAttribute=function(f,H,D){H=this._serializeValue(H);if(D==="class"||D==="name"||D==="slot")f=(0,_.a4)(f);H===void 0?f.removeAttribute(D):f.setAttribute(D,H===""&&window.trustedTypes?window.trustedTypes.emptyScript:H)};
d.prototype._serializeValue=function(f){switch(typeof f){case "boolean":return f?"":void 0;default:return f!=null?f.toString():void 0}};
d.prototype._deserializeValue=function(f,H){switch(H){case Boolean:return f!==null;case Number:return Number(f);default:return f}};
return d});var ut8=0,bKu=[];var atJ=qh(function(K){function d(S){S=Object.getPrototypeOf(S);return S.prototype instanceof D?S:null}
function f(S){if(!S.hasOwnProperty("__ownProperties")){var n=null;if(S.hasOwnProperty("properties")){var u=S.properties;if(u){n={};for(var a in u){var R=u[a];n[a]=typeof R==="function"?{type:R}:R}}}S.__ownProperties=n}return S.__ownProperties}
var H=cd9(K),D=function(){return H.apply(this,arguments)||this};
_.O(D,H);D.finalize=function(){if(!this.hasOwnProperty("__finalized")){var S=d(this);S&&S.finalize();this.__finalized=!0;this._finalizeClass()}};
D._finalizeClass=function(){var S=f(this);S&&this.createProperties(S)};
D.typeForProperty=function(S){return(S=this._properties[S])&&S.type};
D.prototype._initializeProperties=function(){ut8++;this.constructor.finalize();H.prototype._initializeProperties.call(this)};
D.prototype.connectedCallback=function(){H.prototype.connectedCallback&&H.prototype.connectedCallback.call(this);this._enableProperties()};
D.prototype.disconnectedCallback=function(){H.prototype.disconnectedCallback&&H.prototype.disconnectedCallback.call(this)};
_.x$.Object.defineProperties(D,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var S=this;if(!this.hasOwnProperty("__observedAttributes")){map(this.prototype);var n=this._properties;this.__observedAttributes=n?Object.keys(n).map(function(u){return S.prototype._addPropertyToAttributeMap(u)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var S=d(this);this.__properties=Object.assign({},S&&S._properties,f(this))}return this.__properties}}});
return D});var lWB={},WdN=/-[a-z]/g,GzX=/([A-Z])/g;for(var Its={},U54=HTMLElement.prototype;U54;){for(var RtH=Object.getOwnPropertyNames(U54),Fkv=0;Fkv<RtH.length;Fkv++)Its[RtH[Fkv]]=!0;U54=Object.getPrototypeOf(U54)}var zt9=window.trustedTypes?function(K){return trustedTypes.isHTML(K)||trustedTypes.isScript(K)||trustedTypes.isScriptURL(K)}:function(){return!1},Xev=qh(function(K){var d=cd9(K);
K=function(){return d.apply(this,arguments)||this};
_.O(K,d);K.createPropertiesForAttributes=function(){for(var f=this.observedAttributes,H=0;H<f.length;H++)this.prototype._createPropertyAccessor(f3(f[H]))};
K.attributeNameForProperty=function(f){return He(f)};
K.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);d.prototype._initializeProperties.call(this)};
K.prototype._initializeProtoProperties=function(f){for(var H in f)this._setProperty(H,f[H])};
K.prototype._ensureAttribute=function(f,H){this.hasAttribute(f)||this._valueToNodeAttribute(this,H,f)};
K.prototype._serializeValue=function(f){switch(typeof f){case "object":if(f instanceof Date)return f.toString();if(f){if(zt9(f))return f;try{return JSON.stringify(f)}catch(H){return""}}default:return d.prototype._serializeValue.call(this,f)}};
K.prototype._deserializeValue=function(f,H){switch(H){case Object:try{var D=JSON.parse(f)}catch(S){D=f}break;case Array:try{D=JSON.parse(f)}catch(S){D=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+f)}break;case Date:D=isNaN(f)?String(f):Number(f);D=new Date(D);break;default:D=d.prototype._deserializeValue.call(this,f,H)}return D};
K.prototype._definePropertyAccessor=function(f,H){if(!Its[f]){var D=this[f];D!==void 0&&(this.__data?this._setPendingProperty(f,D):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[f]=D))}d.prototype._definePropertyAccessor.call(this,f,H)};
K.prototype._hasAccessor=function(f){return this.__dataHasAccessor&&this.__dataHasAccessor[f]};
K.prototype._isPropertyPending=function(f){return!!(this.__dataPending&&f in this.__dataPending)};
return K});var v$H={"dom-if":!0,"dom-repeat":!0},MWs=!1,PT9=!1,g$N=function(){var K=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(d){return d}});
return function(d,f,H){f=f.getAttribute(H);K&&H.startsWith("on-")?d.setAttribute(H,K.createScript(f,H)):d.setAttribute(H,f)}}(),O3B=qh(function(K){var d=function(){return K.apply(this,arguments)||this};
_.O(d,K);d._parseTemplate=function(f,H){if(!f._templateInfo){var D=f._templateInfo={};D.nodeInfoList=[];D.nestedTemplate=!!H;D.stripWhiteSpace=H&&H.stripWhiteSpace||f.hasAttribute&&f.hasAttribute("strip-whitespace");this._parseTemplateContent(f,D,{parent:null})}return f._templateInfo};
d._parseTemplateContent=function(f,H,D){return this._parseTemplateNode(f.content,H,D)};
d._parseTemplateNode=function(f,H,D){var S=!1;f.localName!="template"||f.hasAttribute("preserve-content")?f.localName==="slot"&&(H.hasInsertionPoint=!0):S=this._parseTemplateNestedTemplate(f,H,D)||S;if(!MWs){MWs=!0;var n=document.createElement("textarea");n.placeholder="a";PT9=n.placeholder===n.textContent}PT9&&f.localName==="textarea"&&f.placeholder&&f.placeholder===f.textContent&&(f.textContent=null);f.firstChild&&this._parseTemplateChildNodes(f,H,D);f.hasAttributes&&f.hasAttributes()&&(S=this._parseTemplateNodeAttributes(f,
H,D)||S);return S||D.noted};
d._parseTemplateChildNodes=function(f,H,D){if(f.localName!=="script"&&f.localName!=="style")for(var S=f.firstChild,n=0,u;S;S=u){if(S.localName=="template"){var a=S.getAttribute("is");if(a&&v$H[a])for(u=S,u.removeAttribute("is"),S=u.ownerDocument.createElement(a),u.parentNode.replaceChild(S,u),S.appendChild(u);u.attributes.length;)a=u.attributes[0].name,g$N(S,u,a),u.removeAttribute(a)}u=S.nextSibling;if(S.nodeType===Node.TEXT_NODE){for(a=u;a&&a.nodeType===Node.TEXT_NODE;)S.textContent+=a.textContent,
u=a.nextSibling,f.removeChild(a),a=u;if(H.stripWhiteSpace&&!S.textContent.trim()){f.removeChild(S);continue}}a={parentIndex:n,parentInfo:D};this._parseTemplateNode(S,H,a)&&(a.infoIndex=H.nodeInfoList.push(a)-1);S.parentNode&&n++}};
d._parseTemplateNestedTemplate=function(f,H,D){H=this._parseTemplate(f,H);(H.content=f.content.ownerDocument.createDocumentFragment()).appendChild(f.content);D.templateInfo=H;return!0};
d._parseTemplateNodeAttributes=function(f,H,D){for(var S=!1,n=Array.from(f.attributes),u=n.length-1,a;a=n[u];u--)S=this._parseTemplateNodeAttribute(f,H,D,a.name,a.value)||S;return S};
d._parseTemplateNodeAttribute=function(f,H,D,S,n){return S.slice(0,3)==="on-"?(f.removeAttribute(S),D.events=D.events||[],D.events.push({name:S.slice(3),value:n}),!0):S==="id"?(D.id=n,!0):!1};
d._contentForTemplate=function(f){var H=f._templateInfo;return H&&H.content||f.content};
d.prototype._stampTemplate=function(f,H){f&&!f.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(f);H=H||this.constructor._parseTemplate(f);var D=H.nodeInfoList;f=document.importNode(H.content||f.content,!0);f.__noInsertionPoint=!H.hasInsertionPoint;var S=f.nodeList=Array(D.length);f.$={};for(var n=0,u=D.length,a=void 0;n<u&&(a=D[n]);n++){var R=S[n]=AhO(f,a);a.id&&(f.$[a.id]=R);var F=R,z=a,v=H;z.templateInfo&&(F._templateInfo=z.templateInfo,F._parentTemplateInfo=
v);if(a.events&&a.events.length)for(F=0,z=a.events,v=void 0;F<z.length&&(v=z[F]);F++)this._addMethodEventListenerToNode(R,v.name,v.value,this)}return f};
d.prototype._addMethodEventListenerToNode=function(f,H,D,S){D=THn(S||f,D);this._addEventListenerToNode(f,H,D);return D};
d.prototype._addEventListenerToNode=function(f,H,D){f.addEventListener(H,D)};
d.prototype._removeEventListenerFromNode=function(f,H,D){f.removeEventListener(H,D)};
return d});var ce=0,US=[],NXH={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},YSk=/[A-Z]/,tWs=function(K,d,f,H,D){var S=D?VQ(K):K;if(d=d[S])for(S=0;S<d.length;S++){var n=d[S];if(n.info.lastRun!==ce&&(!D||xaN(K,n.trigger))){n.info.lastRun=ce;n=n.info;for(var u=f,a=H,R=0,F=u.length-1,z=-1;R<=F;){var v=R+F>>1,g=a.get(u[v].methodInfo)-a.get(n.methodInfo);if(g<0)R=v+1;else if(g>0)F=v-1;else{z=v;break}}z<
0&&(z=F+1);u.splice(z,0,n)}}},ViS=[],o$t=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"),j$=qh(function(K){var d=O3B(Xev(K));
K=function(){var f=d.call(this)||this;f.__isPropertyEffectsClient=!0;return f};
_.O(K,d);K.prototype._initializeProperties=function(){d.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};
K.prototype._registerHost=function(){if(Qd.length){var f=Qd[Qd.length-1];f._enqueueClient(this);this.__dataHost=f}};
K.prototype._initializeProtoProperties=function(f){this.__data=Object.create(f);this.__dataPending=Object.create(f);this.__dataOld={}};
K.prototype._initializeInstanceProperties=function(f){var H=this.__readOnly,D;for(D in f)H&&H[D]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[D]=this.__dataPending[D]=f[D])};
K.prototype._addPropertyEffect=function(f,H,D){this._createPropertyAccessor(f,H=="__readOnly");var S=Chn(this,H,!0)[f];S||(S=this[H][f]=[]);S.push(D)};
K.prototype._removePropertyEffect=function(f,H,D){f=Chn(this,H,!0)[f];D=f.indexOf(D);D>=0&&f.splice(D,1)};
K.prototype._hasPropertyEffect=function(f,H){H=this[H];return!(!H||!H[f])};
K.prototype._hasReadOnlyEffect=function(f){return this._hasPropertyEffect(f,"__readOnly")};
K.prototype._hasNotifyEffect=function(f){return this._hasPropertyEffect(f,"__notifyEffects")};
K.prototype._hasReflectEffect=function(f){return this._hasPropertyEffect(f,"__reflectEffects")};
K.prototype._hasComputedEffect=function(f){return this._hasPropertyEffect(f,"__computeEffects")};
K.prototype._setPendingPropertyOrPath=function(f,H,D,S){if(S||VQ(Array.isArray(f)?f[0]:f)!==f){if(!S&&(S=iT(this,f),f=jmX(this,f,H),!f||!d.prototype._shouldPropertyChange.call(this,f,H,S)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(f,H,D)){if(D=this.__dataLinkedPaths)for(var n in D)S=D[n],SW(n,f)?(S=yQ(n,S,f),this._setPendingPropertyOrPath(S,H,!0,!0)):SW(S,f)&&(S=yQ(S,n,f),this._setPendingPropertyOrPath(S,H,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[f])return this._setPendingProperty(f,
H,D);this[f]=H}return!1};
K.prototype._setUnmanagedPropertyToNode=function(f,H,D){if(D!==f[H]||typeof D=="object")H==="className"&&(f=(0,_.a4)(f)),f[H]=D};
K.prototype._setPendingProperty=function(f,H,D){var S=this.__dataHasPaths&&Dt(f);if(this._shouldPropertyChange(f,H,(S?this.__dataTemp:this.__data)[f])){this.__dataPending||(this.__dataPending={},this.__dataOld={});f in this.__dataOld||(this.__dataOld[f]=this.__data[f]);S?this.__dataTemp[f]=H:this.__data[f]=H;this.__dataPending[f]=H;if(S||this.__notifyEffects&&this.__notifyEffects[f])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[f]=D;return!0}return!1};
K.prototype._setProperty=function(f,H){this._setPendingProperty(f,H,!0)&&this._invalidateProperties()};
K.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
K.prototype._enqueueClient=function(f){this.__dataPendingClients=this.__dataPendingClients||[];f!==this&&this.__dataPendingClients.push(f)};
K.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
K.prototype.__enableOrFlushClients=function(){var f=this.__dataPendingClients;if(f){this.__dataPendingClients=null;for(var H=0;H<f.length;H++){var D=f[H];D.__dataEnabled?D.__dataPending&&D._flushProperties():D._enableProperties()}}};
K.prototype._readyClients=function(){this.__enableOrFlushClients()};
K.prototype.setProperties=function(f,H){for(var D in f)!H&&this.__readOnly&&this.__readOnly[D]||this._setPendingPropertyOrPath(D,f[D],!0);this._invalidateProperties()};
K.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
K.prototype._propertiesChanged=function(f,H,D){f=this.__dataHasPaths;this.__dataHasPaths=!1;var S;if(S=this.__computeEffects)if(d5s){ce++;var n=wpn(this),u=[],a;for(a in H)tWs(a,S,u,n,f);for(;a=u.shift();)eon(this,"",H,D,a)&&tWs(a.methodInfo,S,u,n,f);Object.assign(D,this.__dataOld);Object.assign(H,this.__dataPending);this.__dataPending=null}else for(n=H;uT(this,S,n,D,f);)Object.assign(D,this.__dataOld),Object.assign(H,this.__dataPending),n=this.__dataPending,this.__dataPending=null;S=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(H,D,f);this._flushClients();uT(this,this.__reflectEffects,H,D,f);uT(this,this.__observeEffects,H,D,f);if(S){n=this.__notifyEffects;u=ce++;for(var R in S)if(S[R]){if(a=n){var F=n;a=u;var z=R,v=H,g=D,N=f,h=!1,m=N?VQ(z):z;if(F=F[m]){m=0;for(var T=F.length,r=void 0;m<T&&(r=F[m]);m++)r.info&&r.info.lastRun===a||N&&!xaN(z,r.trigger)||(r.info&&(r.info.lastRun=a),r.fn(this,z,v,g,r.info,N,void 0),h=!0)}a=h}if(a)var J=!0;else{if(a=f)a=R,z=H,v=VQ(a),v!==
a?(v=He(v)+"-changed",BHX(this,v,z[a],a),a=!0):a=!1;a&&(J=!0)}}var L;J&&(L=this.__dataHost)&&L._invalidateProperties&&L._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
K.prototype._propagatePropertyChanges=function(f,H,D){this.__propagateEffects&&uT(this,this.__propagateEffects,f,H,D);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,f,H,D)};
K.prototype._runEffectsForTemplate=function(f,H,D,S){var n=this,u=function(a,R){uT(n,f.propertyEffects,a,D,R,f.nodeList);for(var F=f.firstChild;F;F=F.nextSibling)n._runEffectsForTemplate(F,a,D,R)};
f.runEffects?f.runEffects(u,H,S):u(H,S)};
K.prototype.linkPaths=function(f,H){f=n3(f);H=n3(H);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[f]=H};
K.prototype.unlinkPaths=function(f){f=n3(f);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[f]};
K.prototype.notifySplices=function(f,H){var D={path:""};f=iT(this,f,D);ito(this,f,D.path,H)};
K.prototype.get=function(f,H){return iT(H||this,f)};
K.prototype.set=function(f,H,D){D?jmX(D,f,H):this.__readOnly&&this.__readOnly[f]||this._setPendingPropertyOrPath(f,H,!0)&&this._invalidateProperties()};
K.prototype.push=function(f){var H=_.Pg.apply(1,arguments),D={path:""},S=iT(this,f,D),n=S.length,u=S.push.apply(S,_.Me(H));H.length&&Ft(this,S,D.path,n,H.length,[]);return u};
K.prototype.pop=function(f){var H={path:""};f=iT(this,f,H);var D=!!f.length,S=f.pop();D&&Ft(this,f,H.path,f.length,0,[S]);return S};
K.prototype.splice=function(f,H,D){var S=_.Pg.apply(3,arguments),n={path:""},u=iT(this,f,n);H<0?H=u.length-Math.floor(-H):H&&(H=Math.floor(H));var a=arguments.length===2?u.splice(H):u.splice.apply(u,[H,D].concat(_.Me(S)));(S.length||a.length)&&Ft(this,u,n.path,H,S.length,a);return a};
K.prototype.shift=function(f){var H={path:""};f=iT(this,f,H);var D=!!f.length,S=f.shift();D&&Ft(this,f,H.path,0,0,[S]);return S};
K.prototype.unshift=function(f){var H=_.Pg.apply(1,arguments),D={path:""},S=iT(this,f,D),n=S.unshift.apply(S,_.Me(H));H.length&&Ft(this,S,D.path,0,H.length,[]);return n};
K.prototype.notifyPath=function(f,H){if(arguments.length==1){var D={path:""};H=iT(this,f,D);D=D.path}else D=Array.isArray(f)?n3(f):f;this._setPendingPropertyOrPath(D,H,!0,!0)&&this._invalidateProperties()};
K.prototype._createReadOnlyProperty=function(f,H){this._addPropertyEffect(f,"__readOnly");H&&(this["_set"+(f[0].toUpperCase()+f.substring(1))]=function(D){this._setProperty(f,D)})};
K.prototype._createPropertyObserver=function(f,H,D){var S={property:f,method:H,dynamicFn:!!D};this._addPropertyEffect(f,"__observeEffects",{fn:Ldo,info:S,trigger:{name:f}});D&&this._addPropertyEffect(H,"__observeEffects",{fn:Ldo,info:S,trigger:{name:H}})};
K.prototype._createMethodObserver=function(f,H){var D=yv5(f);if(!D)throw Error("xd`"+f);Htp(this,D,"__observeEffects",ZKu,null,H)};
K.prototype._createNotifyingProperty=function(f){this._addPropertyEffect(f,"__notifyEffects",{fn:Jhz,info:{eventName:He(f)+"-changed",property:f}})};
K.prototype._createReflectedProperty=function(f){var H=this.constructor.attributeNameForProperty(f);H[0]==="-"?console.warn("Property "+f+" cannot be reflected to attribute "+H+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(f,"__reflectEffects",{fn:smo,info:{attrName:H}})};
K.prototype._createComputedProperty=function(f,H,D){var S=yv5(H);if(!S)throw Error("yd`"+H);H=Htp(this,S,"__computeEffects",eon,f,D);Chn(this,"__computeInfo")[f]=H};
K.prototype._marshalArgs=function(f,H,D){for(var S=this.__data,n=[],u=0,a=f.length;u<a;u++){var R=f[u],F=R.name,z=R.structured,v=R.wildcard,g=R.value;R.literal||(v?(R=SW(F,H),z=nBX(S,D,R?H:F),g={path:R?H:F,value:z,base:R?iT(S,F):z}):g=z?nBX(S,D,F):S[F]);if(R4&&!this._overrideLegacyUndefined&&g===void 0&&f.length>1)return US;n[u]=g}return n};
K.addPropertyEffect=function(f,H,D){this.prototype._addPropertyEffect(f,H,D)};
K.createPropertyObserver=function(f,H,D){this.prototype._createPropertyObserver(f,H,D)};
K.createMethodObserver=function(f,H){this.prototype._createMethodObserver(f,H)};
K.createNotifyingProperty=function(f){this.prototype._createNotifyingProperty(f)};
K.createReadOnlyProperty=function(f,H){this.prototype._createReadOnlyProperty(f,H)};
K.createReflectedProperty=function(f){this.prototype._createReflectedProperty(f)};
K.createComputedProperty=function(f,H,D){this.prototype._createComputedProperty(f,H,D)};
K.bindTemplate=function(f){return this.prototype._bindTemplate(f)};
K.prototype._bindTemplate=function(f,H){var D=this.constructor._parseTemplate(f),S=this.__preBoundTemplateInfo==D;if(!S)for(var n in D.propertyEffects)this._createPropertyAccessor(n);H?(D=Object.create(D),D.wasPreBound=S,this.__templateInfo?(f=f._parentTemplateInfo||this.__templateInfo,H=f.lastChild,D.parent=f,f.lastChild=D,(D.previousSibling=H)?H.nextSibling=D:f.firstChild=D):this.__templateInfo=D):this.__preBoundTemplateInfo=D;return D};
K._addTemplatePropertyEffect=function(f,H,D){(f.hostProps=f.hostProps||{})[H]=!0;f=f.propertyEffects=f.propertyEffects||{};(f[H]=f[H]||[]).push(D)};
K.prototype._stampTemplate=function(f,H){H=H||this._bindTemplate(f,!0);Qd.push(this);f=d.prototype._stampTemplate.call(this,f,H);Qd.pop();H.nodeList=f.nodeList;if(!H.wasPreBound)for(var D=H.childNodes=[],S=f.firstChild;S;S=S.nextSibling)D.push(S);f.templateInfo=H;D=H.nodeList;S=H.nodeInfoList;if(S.length)for(var n=0;n<S.length;n++){var u=D[n],a=S[n].bindings;if(a)for(var R=0;R<a.length;R++){var F=a[R],z=u,v=F;if(v.isCompound){for(var g=z.__dataCompoundStorage||(z.__dataCompoundStorage={}),N=v.parts,
h=Array(N.length),m=0;m<N.length;m++)h[m]=N[m].literal;N=v.target;g[N]=h;v.literal&&v.kind=="property"&&(N==="className"&&(z=(0,_.a4)(z)),z[N]=v.literal)}fSn(u,this,F)}u.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(H,this.__data,null,!1),this._flushClients());return f};
K.prototype._removeBoundDom=function(f){f=f.templateInfo;var H=f.previousSibling,D=f.nextSibling,S=f.parent;H?H.nextSibling=D:S&&(S.firstChild=D);D?D.previousSibling=H:S&&(S.lastChild=H);f.nextSibling=f.previousSibling=null;f=f.childNodes;for(H=0;H<f.length;H++)D=f[H],(0,_.a4)((0,_.a4)(D).parentNode).removeChild(D)};
K._parseTemplateNode=function(f,H,D){var S=d._parseTemplateNode.call(this,f,H,D);if(f.nodeType===Node.TEXT_NODE){var n=this._parseBindings(f.textContent,H);n&&(f.textContent=DTz(n)||" ",dTo(this,H,D,"text","textContent",n),S=!0)}return S};
K._parseTemplateNodeAttribute=function(f,H,D,S,n){var u=this._parseBindings(n,H);if(u){n=S;var a="property";YSk.test(S)?a="attribute":S[S.length-1]=="$"&&(S=S.slice(0,-1),a="attribute");var R=DTz(u);R&&a=="attribute"&&(S=="class"&&f.hasAttribute("class")&&(R+=" "+f.getAttribute(S)),f.setAttribute(S,R));a=="attribute"&&n=="disable-upgrade$"&&f.setAttribute(S,"");f.localName==="input"&&n==="value"&&f.setAttribute(n,"");f.removeAttribute(n);a==="property"&&(S=f3(S));dTo(this,H,D,a,S,u,R);return!0}return d._parseTemplateNodeAttribute.call(this,
f,H,D,S,n)};
K._parseTemplateNestedTemplate=function(f,H,D){var S=d._parseTemplateNestedTemplate.call(this,f,H,D),n=f.parentNode,u=D.templateInfo,a=n.localName==="dom-if",R=n.localName==="dom-repeat";WL&&(a||R)&&(n.removeChild(f),D=D.parentInfo,D.templateInfo=u,D.noted=!0,S=!1);f=u.hostProps;if(GA&&a)f&&(H.hostProps=Object.assign(H.hostProps||{},f),WL||(D.parentInfo.noted=!0));else for(var F in f)dTo(this,H,D,"property","_host_"+F,[{mode:"{",source:F,dependencies:[F],hostProp:!0}]);return S};
K._parseBindings=function(f,H){for(var D=[],S=0,n;(n=o$t.exec(f))!==null;){n.index>S&&D.push({literal:f.slice(S,n.index)});S=n[1][0];var u=!!n[2];n=n[3].trim();var a=!1,R="",F=-1;S=="{"&&(F=n.indexOf("::"))>0&&(R=n.substring(F+2),n=n.substring(0,F),a=!0);F=yv5(n);var z=[];if(F){var v=F,g=v.args;v=v.methodName;for(var N=0;N<g.length;N++){var h=g[N];h.literal||z.push(h)}if((g=H.dynamicFns)&&g[v]||F.static)z.push(v),F.dynamicFn=!0}else z.push(n);D.push({source:n,mode:S,negate:u,customEvent:a,signature:F,
dependencies:z,event:R});S=o$t.lastIndex}S&&S<f.length&&(f=f.substring(S))&&D.push({literal:f});return D.length?D:null};
K._evaluateBinding=function(f,H,D,S,n,u){f=H.signature?ZKu(f,D,S,n,H.signature):D!=H.source?iT(f,H.source):u&&Dt(D)?iT(f,D):f.__data[D];H.negate&&(f=!f);return f};
_.x$.Object.defineProperties(K.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return NXH}}});
return K}),Qd=[];var $52=window.ShadyCSS&&window.ShadyCSS.cssBuild,Cf=qh(function(K){function d(H,D,S,n){if(!$52){for(var u=D.content.querySelectorAll("style"),a=UTY(D),R=RyN(S),F=D.content.firstElementChild,z=0;z<R.length;z++){var v=R[z];v.textContent=H._processStyleText(v.textContent,n);D.content.insertBefore(v,F)}for(F=R=0;F<a.length;F++)z=a[F],v=u[R],v!==z?(z=z.cloneNode(!0),v.parentNode.insertBefore(z,v)):R++,z.textContent=H._processStyleText(z.textContent,n)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(D,
S);if(H3f&&$52&&ZoH&&(D=D.content.querySelectorAll("style"))){var g="";Array.from(D).forEach(function(N){g+=N.textContent;N.parentNode.removeChild(N)});
H._styleSheet=new CSSStyleSheet;H._styleSheet.replaceSync(g)}}
var f=atJ(j$(K));K=function(){return f.call(this)||this};
_.O(K,f);K._finalizeClass=function(){f._finalizeClass.call(this);var H;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(H=this.__ownObservers)&&this.createObservers(H,this._properties);this._prepareTemplate()};
K._prepareTemplate=function(){var H=this.template;H&&(typeof H==="string"?(console.error("template getter must return HTMLTemplateElement"),H=null):ES||(H=H.cloneNode(!0)));this.prototype._template=H};
K.createProperties=function(H){for(var D in H){var S=this.prototype,n=D,u=H[D],a=H;u.computed&&(u.readOnly=!0);u.computed&&(S._hasReadOnlyEffect(n)?console.warn("Cannot redefine computed property '"+n+"'."):S._createComputedProperty(n,u.computed,a));u.readOnly&&!S._hasReadOnlyEffect(n)?S._createReadOnlyProperty(n,!u.computed):u.readOnly===!1&&S._hasReadOnlyEffect(n)&&console.warn("Cannot make readOnly property '"+n+"' non-readOnly.");u.reflectToAttribute&&!S._hasReflectEffect(n)?S._createReflectedProperty(n):
u.reflectToAttribute===!1&&S._hasReflectEffect(n)&&console.warn("Cannot make reflected property '"+n+"' non-reflected.");u.notify&&!S._hasNotifyEffect(n)?S._createNotifyingProperty(n):u.notify===!1&&S._hasNotifyEffect(n)&&console.warn("Cannot make notify property '"+n+"' non-notify.");u.observer&&S._createPropertyObserver(n,u.observer,a[u.observer]);S._addPropertyToAttributeMap(n)}};
K.createObservers=function(H,D){for(var S=this.prototype,n=0;n<H.length;n++)S._createMethodObserver(H[n],D)};
K.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);f.prototype._initializeProperties.call(this);this.rootPath=edN;this.importPath=this.constructor.importPath;var H=this.constructor;if(!H.hasOwnProperty("__propertyDefaults")){H.__propertyDefaults=null;var D=H._properties,S;for(S in D){var n=D[S];"value"in n&&(H.__propertyDefaults=H.__propertyDefaults||{},H.__propertyDefaults[S]=n)}}if(H=H.__propertyDefaults)for(var u in H)D=H[u],
this._canApplyPropertyDefault(u)&&(D=typeof D.value=="function"?D.value.call(this):D.value,this._hasAccessor(u)?this._setPendingProperty(u,D,!0):this[u]=D)};
K.prototype._canApplyPropertyDefault=function(H){return!this.hasOwnProperty(H)};
K._processStyleText=function(H,D){return tCX(H,D)};
K._finalizeTemplate=function(H){var D=this.prototype._template;if(D&&!D.__polymerFinalized){D.__polymerFinalized=!0;var S=this.importPath;S=S?_.K3(S):"";d(this,D,H,S);this.prototype._bindTemplate(D)}};
K.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);f.prototype.connectedCallback.call(this)};
K.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);f.prototype.ready.call(this)};
K.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));f.prototype._readyClients.call(this)};
K.prototype._attachDom=function(H){var D=(0,_.a4)(this);if(D.attachShadow)return H?(D.shadowRoot||(D.attachShadow({mode:"open",shadyUpgradeFragment:H}),D.shadowRoot.appendChild(H),this.constructor._styleSheet&&(D.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Kk6&&window.ShadyDOM&&window.ShadyDOM.flushInitial(D.shadowRoot),D.shadowRoot):null;throw Error("Ad");};
K.prototype.updateStyles=function(H){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,H)};
K.prototype.resolveUrl=function(H,D){!D&&this.importPath&&(D=_.K3(this.importPath));return _.K3(H,D)};
K._parseTemplateContent=function(H,D,S){D.dynamicFns=D.dynamicFns||this._properties;return f._parseTemplateContent.call(this,H,D,S)};
K._addTemplatePropertyEffect=function(H,D,S){!lT||D in this._properties||S.info.part.signature&&S.info.part.signature.static||S.info.part.hostProp||H.nestedTemplate||console.warn("Property '"+D+"' used in template but not declared in 'properties'; attribute will not be observed.");return f._addTemplatePropertyEffect.call(this,H,D,S)};
_.x$.Object.defineProperties(K,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var H=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof H==="function"&&(H=H());if(H===void 0){if(H=this.hasOwnProperty("is")){H=this.is;var D=null;if(H&&(!We||paB)&&(D=zF.import(H,"template"),We&&!D))throw Error("zd`"+H);H=D}H=H||Object.getPrototypeOf(this.prototype).constructor.template}this._template=H}return this._template},
set:function(H){this._template=H}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var H=this.importMeta;H?this._importPath=oPO(H.url):this._importPath=(H=zF.import(this.is))&&H.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return K});var E$B=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(K){return K}}),gBz=function(K,d){ht6(K,d);
this.value=d.reduce(function(f,H,D){return f+OtJ(H)+K[D+1]},K[0]).toString()},ht6;
gBz.prototype.toString=function(){return this.value};
_.b3B=function(K){var d=_.Pg.apply(1,arguments);ht6(K,d);var f=document.createElement("template");d=d.reduce(function(H,D,S){if(D instanceof HTMLTemplateElement)D=D.innerHTML;else if(D instanceof gBz)D=OtJ(D);else throw Error("Cd`"+D);return H+D+K[S+1]},K[0]);
E$B&&(d=E$B.createHTML(d));f.innerHTML=d;return f};
ht6=function(K,d){if(!Array.isArray(K)||!Array.isArray(K.raw)||d.length!==K.length-1)throw new TypeError("Dd");};var xS=Cf(HTMLElement);var m5v=qh(function(K){var d=Cf(K);K=function(){var f=d.call(this)||this;f.__lastItems=null;f.__lastMulti=null;f.__selectedMap=null;return f};
_.O(K,d);K.prototype.__updateSelection=function(f,H){var D=H.path;D=="items"?(H=H.base||[],D=this.__lastItems,f!==this.__lastMulti&&this.clearSelection(),D&&(D=PXY(H,D),this.__applySplices(D)),this.__lastItems=H,this.__lastMulti=f):H.path=="items.splices"?this.__applySplices(H.value.indexSplices):(f=D.slice(6),H=parseInt(f,10),f.indexOf(".")<0&&f==H&&this.__deselectChangedIdx(H))};
K.prototype.__applySplices=function(f){for(var H=this,D=this.__selectedMap,S={},n=0;n<f.length;S={s$jscomp$108:void 0},n++){S.s$jscomp$108=f[n];D.forEach(function(F){return function(z,v){z<F.s$jscomp$108.index||(z>=F.s$jscomp$108.index+F.s$jscomp$108.removed.length?D.set(v,z+F.s$jscomp$108.addedCount-F.s$jscomp$108.removed.length):D.set(v,-1))}}(S));
for(var u=0;u<S.s$jscomp$108.addedCount;u++){var a=S.s$jscomp$108.index+u;D.has(this.items[a])&&D.set(this.items[a],a)}}this.__updateLinks();var R=0;D.forEach(function(F,z){F<0?(H.multi?H.splice("selected",R,1):H.selected=H.selectedItem=null,D.delete(z)):R++})};
K.prototype.__updateLinks=function(){var f=this;this.__dataLinkedPaths={};if(this.multi){var H=0;this.__selectedMap.forEach(function(D){D>=0&&f.linkPaths("items."+D,"selected."+H++)})}else this.__selectedMap.forEach(function(D){f.linkPaths("selected","items."+D);
f.linkPaths("selectedItem","items."+D)})};
K.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
K.prototype.isSelected=function(f){return this.__selectedMap.has(f)};
K.prototype.isIndexSelected=function(f){return this.isSelected(this.items[f])};
K.prototype.__deselectChangedIdx=function(f){var H=this,D=this.__selectedIndexForItemIndex(f);if(D>=0){var S=0;this.__selectedMap.forEach(function(n,u){D==S++&&H.deselect(u)})}};
K.prototype.__selectedIndexForItemIndex=function(f){if(f=this.__dataLinkedPaths["items."+f])return parseInt(f.slice(9),10)};
K.prototype.deselect=function(f){var H=this.__selectedMap.get(f);if(H>=0){this.__selectedMap.delete(f);var D;this.multi&&(D=this.__selectedIndexForItemIndex(H));this.__updateLinks();this.multi?this.splice("selected",D,1):this.selected=this.selectedItem=null}};
K.prototype.deselectIndex=function(f){this.deselect(this.items[f])};
K.prototype.select=function(f){this.selectIndex(this.items.indexOf(f))};
K.prototype.selectIndex=function(f){var H=this.items[f];this.isSelected(H)?this.toggle&&this.deselectIndex(f):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(H,f),this.__updateLinks(),this.multi?this.push("selected",H):this.selected=this.selectedItem=H)};
_.x$.Object.defineProperties(K,{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 K}),ltk=m5v(xS),Lf=function(){return ltk.apply(this,arguments)||this};
_.O(Lf,ltk);_.x$.Object.defineProperties(Lf,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Lf.is,Lf);var WkJ=window.Polymer;window.Polymer=function(K){return window.Polymer._polymerFn(K)};
WkJ&&Object.assign(Polymer,WkJ);Polymer._polymerFn=function(){throw Error("Ed");};/*

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:tCX,resolveUrl:_.K3,pathFromUrl:oPO};Polymer.DomModule=zF;Polymer.Async={timeOut:_.rh,animationFrame:_.Xq,idlePeriod:n$B,microTask:o4};Polymer.dedupingMixin=qh;Polymer.wrap=_.a4;Polymer.PropertiesChanged=cd9;Polymer.telemetry={instanceCount:ut8,incrementInstanceCount:function(){ut8++},
registrations:bKu,register:map,dumpRegistrations:function(){bKu.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=atJ;Polymer.CaseMap={dashToCamelCase:f3,camelToDashCase:He};Polymer.PropertyAccessors=Xev;Polymer.TemplateStamp=O3B;Polymer.Path={isPath:Dt,root:VQ,isAncestor:rhG,isDescendant:SW,translate:yQ,matches:q5n,normalize:n3,split:QmG,get:iT,set:jmX,isDeep:Dt};Polymer.Settings={useShadow:hd,useNativeCSSProperties:BU2,useNativeCustomElements:J36,get rootPath(){return edN},setRootPath:function(K){edN=K},
get sanitizeDOMValue(){return I4},setSanitizeDOMValue:function(K){I4=K},
get passiveTouchGestures(){return AvO},setPassiveTouchGestures:function(K){AvO=K},
get strictTemplatePolicy(){return We},setStrictTemplatePolicy:function(K){We=K},
get allowTemplateFromDomModule(){return paB},setAllowTemplateFromDomModule:function(K){paB=K},
get legacyOptimizations(){return ES},setLegacyOptimizations:function(K){ES=K},
get syncInitialRender(){return Kk6},setSyncInitialRender:function(K){Kk6=K},
get legacyUndefined(){return R4},setLegacyUndefined:function(K){R4=K},
get legacyWarnings(){return lT},setLegacyWarnings:function(K){lT=K},
get orderedComputed(){return d5s},setOrderedComputed:function(K){d5s=K},
get fastDomIf(){return GA},setFastDomIf:function(K){GA=K},
get removeNestedTemplates(){return WL},setRemoveNestedTemplates:function(K){WL=K},
get suppressTemplateNotifications(){return Ao},setSuppressTemplateNotifications:Ao};Polymer.rootPath!==void 0&&(edN=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(I4=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(AvO=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(We=Polymer.strictTemplatePolicy);paB=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(ES=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(Kk6=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(R4=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(lT=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(d5s=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(GA=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(WL=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Ao=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return I4},
set:function(K){I4=K}});Polymer.PropertyEffects=j$;Polymer.StyleGather={stylesFromModules:ISz,stylesFromModule:aSG,stylesFromTemplate:UTY,stylesFromModuleImports:RyN,cssFromModules:zyn,cssFromModule:FRJ,cssFromTemplate:X9p,cssFromModuleImports:function(K){return(K=zF.import(K))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(K):""}};Polymer.ElementMixin=Cf;Polymer.updateStyles=function(K){window.ShadyCSS&&window.ShadyCSS.styleDocument(K)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:PXY};Polymer.html=_.b3B;Polymer.htmlLiteral=function(K){return new gBz(K,_.Pg.apply(1,arguments))};Polymer.Element=xS;Polymer.ArraySelectorMixin=m5v;Polymer.ArraySelector=Lf;var GFf=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Adt=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,HsX=/@media\s(.*)/;var oBz=null,ti5=window.HTMLImports&&window.HTMLImports.whenReady||null,$TS;var TXB=null,BL=null,Jo=function(){this.customStyles=[];this.enqueued=!1;EBX(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},rd2=function(K){!K.enqueued&&BL&&(K.enqueued=!0,EBX(BL))};
Jo.prototype.addCustomStyle=function(K){K.__seenByShadyCSS||(K.__seenByShadyCSS=!0,this.customStyles.push(K),rd2(this))};
Jo.prototype.getStyleForCustomStyle=function(K){if(K.__shadyCSSCachedStyle)return K.__shadyCSSCachedStyle;var d;K.getStyle?d=K.getStyle():d=K;return d};
Jo.prototype.processStyles=function(){for(var K=this.customStyles,d=0;d<K.length;d++){var f=K[d];if(!f.__shadyCSSCachedStyle){var H=this.getStyleForCustomStyle(f);H&&(H=H.__appliedElement||H,TXB&&TXB(H),f.__shadyCSSCachedStyle=H)}}return K};
Jo.prototype.addCustomStyle=Jo.prototype.addCustomStyle;Jo.prototype.getStyleForCustomStyle=Jo.prototype.getStyleForCustomStyle;Jo.prototype.processStyles=Jo.prototype.processStyles;Object.defineProperties(Jo.prototype,{transformCallback:{get:function(){return TXB},
set:function(K){TXB=K}},
validateCallback:{get:function(){return BL},
set:function(K){var d=!1;BL||(d=!0);BL=K;d&&rd2(this)}}});var bt5=!(window.ShadyDOM&&window.ShadyDOM.inUse),hyN,C3;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(C3=window.ShadyCSS.cssBuild);var qSs=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?hyN=window.ShadyCSS.nativeCss:window.ShadyCSS?(mTX(window.ShadyCSS),window.ShadyCSS=void 0):mTX(window.WebComponents&&window.WebComponents.flags);var K4N=hyN;var Q42=new Jo;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(K,d){Q42.processStyles();NPz(K,d)},
styleElement:function(){Q42.processStyles()},
styleDocument:function(K){Q42.processStyles();NPz(document.body,K)},
getComputedStyleValue:function(K,d){return Yk5(K,d)},
flushCustomStyles:function(){},
nativeCss:K4N,nativeShadow:bt5,cssBuild:C3,disableRuntime:qSs});window.ShadyCSS.CustomStyleInterface=Q42;var j44=window.ShadyCSS.CustomStyleInterface,sA=function(){var K=HTMLElement.call(this)||this;K._style=null;j44.addCustomStyle(K);return K};
_.O(sA,HTMLElement);sA.prototype.getStyle=function(){if(this._style)return this._style;var K=this.querySelector("style");if(!K)return null;this._style=K;var d=K.getAttribute("include");d&&(K.removeAttribute("include"),K.textContent=zyn(d)+K.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
sA.prototype.getStyle=sA.prototype.getStyle;window.customElements.define("custom-style",sA);Polymer.CustomStyle=sA;var kS=function(){this._timer=this._callback=this._asyncModule=null},wh,x52;
kS.prototype.setConfig=function(K,d){var f=this;this._asyncModule=K;this._callback=d;this._timer=this._asyncModule.run(function(){f._timer=null;wh.delete(f);f._callback()})};
kS.prototype.cancel=function(){this.isActive()&&(CTs(this),wh.delete(this))};
var CTs=function(K){K.isActive()&&(K._asyncModule.cancel(K._timer),K._timer=null)};
kS.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
kS.prototype.isActive=function(){return this._timer!=null};
_.ZT=function(K,d,f){K instanceof kS?CTs(K):K=new kS;K.setConfig(d,f);return K};
wh=new Set;_.e$=function(K){wh.add(K)};
x52=function(){var K=!!wh.size;wh.forEach(function(d){try{d.flush()}catch(f){setTimeout(function(){throw f;})}});
return K};var WRo=typeof document.head.style.touchAction==="string",lSN=["mousedown","mousemove","mouseup","click"],xTz=[0,1,4,2],Lkf;try{Lkf=(new MouseEvent("test",{buttons:1})).buttons===1}catch(K){Lkf=!1}var CXX=Lkf,G15=!1;(function(){try{var K=Object.defineProperty({},"passive",{get:function(){G15=!0}});
window.addEventListener("test",null,K);window.removeEventListener("test",null,K)}catch(d){}})();
var rvX=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),qkz=[],BXJ={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},flO={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},QYG=function(K){var d=K.sourceCapabilities;if(!d||d.firesTouchEvents)if(K.__polymerGesturesHandled={skip:!0},K.type==="click"){d=!1;for(var f=sYp(K),H=0;H<f.length;H++){if(f[H].nodeType===Node.ELEMENT_NODE)if(f[H].localName==="label")qkz.push(f[H]);
else if(BXJ[f[H].localName]){var D=f[H];var S=Array.prototype.slice.call(D.labels||[]);if(!S.length){S=[];try{var n=D.getRootNode();if(D.id){var u=n.querySelectorAll("label[for = '"+D.id+"']");for(D=0;D<u.length;D++)S.push(u[D])}}catch(a){}}for(D=0;D<S.length;D++)d=d||qkz.indexOf(S[D])>-1}if(f[H]===Jdk)return}d||(K.preventDefault(),K.stopPropagation())}},Jdk=null,pf=null,w9O=0,Ztu=0,k1N=-1,eyO=!1;
document.addEventListener("touchend",function(K){pf||jYn(!0);Jdk=sYp(K)[0];pf=_.ZT(pf,_.rh.after(2500),function(){jYn();pf=Jdk=null})},G15?{passive:!0}:!1);
var sYp=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(K){return K.composedPath&&K.composedPath()||[]},OS={},Pe=[];
p9o({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){M5(this.info)},
mousedown:function(K){if(ve(K)){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K),f=this;BP5(this.info,function(H){ve(H)||($$("up",d,H),M5(f.info))},function(H){ve(H)&&$$("up",d,H);
M5(f.info)});
$$("down",d,K)}},
touchstart:function(K){$$("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K),K.changedTouches[0],K)},
touchend:function(K){$$("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K),K.changedTouches[0],K)}});
p9o({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(K){this.moves.length>2&&this.moves.shift();this.moves.push(K)},
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;M5(this.info)},
mousedown:function(K){if(ve(K)){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K),f=this,H=function(D){var S=D.clientX,n=D.clientY;KfG(f.info,S,n)&&(f.info.state=f.info.started?D.type==="mouseup"?"end":"track":"start",f.info.state==="start"&&gX("tap"),f.info.addMove({x:S,y:n}),ve(D)||(f.info.state="end",M5(f.info)),d&&djz(f.info,d,D),f.info.started=!0)};
BP5(this.info,H,function(D){f.info.started&&H(D);M5(f.info)});
this.info.x=K.clientX;this.info.y=K.clientY}},
touchstart:function(K){K=K.changedTouches[0];this.info.x=K.clientX;this.info.y=K.clientY},
touchmove:function(K){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K);K=K.changedTouches[0];var f=K.clientX,H=K.clientY;KfG(this.info,f,H)&&(this.info.state==="start"&&gX("tap"),this.info.addMove({x:f,y:H}),djz(this.info,d,K),this.info.state="track",this.info.started=!0)},
touchend:function(K){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K);K=K.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:K.clientX,y:K.clientY}),djz(this.info,d,K))}});
p9o({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(K){ve(K)&&(this.info.x=K.clientX,this.info.y=K.clientY)},
click:function(K){ve(K)&&HYo(this.info,K)},
touchstart:function(K){K=K.changedTouches[0];this.info.x=K.clientX;this.info.y=K.clientY},
touchend:function(K){HYo(this.info,K.changedTouches[0],K)}});var s4J=qh(function(K){var d=function(){return K.apply(this,arguments)||this};
_.O(d,K);d.prototype._addEventListenerToNode=function(f,H,D){N5(f,H,D)||K.prototype._addEventListenerToNode.call(this,f,H,D)};
d.prototype._removeEventListenerFromNode=function(f,H,D){Y$(f,H,D)||K.prototype._removeEventListenerFromNode.call(this,f,H,D)};
return d});var KT=qh(function(K){var d=function(){return K.apply(this,arguments)||this};
_.O(d,K);d.prototype._shouldPropertyChange=function(f,H,D){return Djz(this,f,H,D,!0)};
return d}),kFs=qh(function(K){var d=function(){return K.apply(this,arguments)||this};
_.O(d,K);d.prototype._shouldPropertyChange=function(f,H,D){return Djz(this,f,H,D,this.mutableData)};
_.x$.Object.defineProperties(d,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return d});
KT._mutablePropertyChange=Djz;var VdB=!1;var wet=s4J(kFs(j$(HTMLElement))),dk=function(){var K=wet.call(this)||this;if(We)throw Error("Fd");K.root=null;K.$=null;K.__children=null;return K};
_.O(dk,wet);_.V=dk.prototype;_.V.attributeChangedCallback=function(){this.mutableData=!0};
_.V.connectedCallback=function(){S8J()||(this.style.display="none");this.render()};
_.V.disconnectedCallback=function(){this.__removeChildren()};
_.V.__insertChildren=function(){(0,_.a4)((0,_.a4)(this).parentNode).insertBefore(this.root,this)};
_.V.__removeChildren=function(){if(this.__children)for(var K=0;K<this.__children.length;K++)this.root.appendChild(this.__children[K])};
_.V.render=function(){var K=this;if(!this.__children){var d=d||this.querySelector("template");if(!d){var f=new MutationObserver(function(){if(d=K.querySelector("template"))f.disconnect(),K.render();else throw Error("Gd");});
f.observe(this,{childList:!0});return}this.root=this._stampTemplate(d);this.$=this.root.$;this.__children=[];for(var H=this.root.firstChild;H;H=H.nextSibling)this.__children[this.__children.length]=H;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.x$.Object.defineProperties(dk,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",dk);Polymer.Debouncer=kS;Polymer.Gestures={gestures:OS,recognizers:Pe,deepTargetFind:Jvu,addListener:N5,removeListener:Y$,register:p9o,setTouchAction:_.td,prevent:gX,resetMouseCanceller:function(){pf&&pf.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:N5,remove:Y$};Polymer.GestureEventListeners=s4J;Polymer.MutableData=KT;Polymer.OptionalMutableData=kFs;Polymer.DomBind=dk;_.fT=function(){do{var K=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var d=x52()}while(K||d)};var ybY=null;n6X.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:n6X,writable:!0}});var FfX=j$(n6X),RRz=KT(FfX),Z36=j$(function(){}),bT=function(K){var d=Z36.call(this)||this;
d._configureProperties(K);d.root=d._stampTemplate(d.__dataHost);var f=[];d.children=f;for(var H=d.root.firstChild;H;H=H.nextSibling)f.push(H),H.__templatizeInstance=d;d.__templatizeOwner&&d.__templatizeOwner.__hideTemplateChildren__&&d._showHideChildren(!0);f=d.__templatizeOptions;(K&&f.instanceProps||!f.instanceProps)&&d._enableProperties();return d};
_.O(bT,Z36);_.V=bT.prototype;_.V._configureProperties=function(K){if(this.__templatizeOptions.forwardHostProp)for(var d in this.__hostProps)this._setPendingProperty(d,this.__dataHost["_host_"+d]);for(var f in K)this._setPendingProperty(f,K[f])};
_.V.forwardHostProp=function(K,d){this._setPendingPropertyOrPath(K,d,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.V._addEventListenerToNode=function(K,d,f){var H=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(K,d,function(S){S.model=H;f(S)});
else{var D=this.__dataHost.__dataHost;D&&D._addEventListenerToNode(K,d,f)}};
_.V._showHideChildren=function(K){cbu(K,this.children)};
_.V._setUnmanagedPropertyToNode=function(K,d,f){K.__hideTemplateChildren__&&K.nodeType==Node.TEXT_NODE&&d=="textContent"?K.__polymerTextContent__=f:Z36.prototype._setUnmanagedPropertyToNode.call(this,K,d,f)};
_.V.dispatchEvent=function(){return!0};
_.x$.Object.defineProperties(bT.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var K=this.__parentModel;if(!K){var d;K=this;do K=K.__dataHost.__dataHost;while((d=K.__templatizeOptions)&&!d.parentModel);this.__parentModel=K}return K}}});
var alo=KT(bT);var HE=function(){var K=xS.call(this)||this;K.__renderDebouncer=null;K._lastIf=!1;K.__hideTemplateChildren__=!1;return K};
_.O(HE,xS);_.V=HE.prototype;_.V.__debounceRender=function(){var K=this;this.__renderDebouncer=_.ZT(this.__renderDebouncer,o4,function(){return K.__render()});
_.e$(this.__renderDebouncer)};
_.V.disconnectedCallback=function(){xS.prototype.disconnectedCallback.call(this);var K=(0,_.a4)(this).parentNode;K&&(K.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.a4)(K).host)||this.__teardownInstance()};
_.V.connectedCallback=function(){xS.prototype.connectedCallback.call(this);S8J()||(this.style.display="none");this.if&&this.__debounceRender()};
_.V.__ensureTemplate=function(){var K=this;if(!this.__template){var d=this._templateInfo?this:(0,_.a4)(this).querySelector("template");if(!d){var f=new MutationObserver(function(){if((0,_.a4)(K).querySelector("template"))f.disconnect(),K.__render();else throw Error("Jd");});
f.observe(this,{childList:!0});return!1}this.__template=d}return!0};
_.V.__ensureInstance=function(){var K=(0,_.a4)(this).parentNode;if(this.__hasInstance()){var d=this.__getInstanceNodes();if(d&&d.length&&(0,_.a4)(this).previousSibling!==d[d.length-1])for(var f=0,H=void 0;f<d.length&&(H=d[f]);f++)(0,_.a4)(K).insertBefore(H,this)}else{if(!K||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(K)}return!0};
_.V.render=function(){_.fT()};
_.V.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Ao&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.V.__hasInstance=function(){};
_.V.__getInstanceNodes=function(){};
_.V.__createAndInsertInstance=function(){};
_.V.__teardownInstance=function(){};
_.V._showHideChildren=function(){};
_.x$.Object.defineProperties(HE,{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:HE.prototype.__debounceRender},restamp:{type:Boolean,observer:HE.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var et8=function(){var K=HE.call(this)||this;K.__instance=null;K.__syncInfo=null;return K};
_.O(et8,HE);_.V=et8.prototype;_.V.__hasInstance=function(){return!!this.__instance};
_.V.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.V.__createAndInsertInstance=function(K){var d=this,f=this.__dataHost||this;if(We&&!this.__dataHost)throw Error("Hd");var H=f._bindTemplate(this.__template,!0);H.runEffects=function(D,S,n){var u=d.__syncInfo;if(d.if)u&&(d.__syncInfo=null,d._showHideChildren(),S=Object.assign(u.changedProps,S)),D(S,n);else if(d.__instance)if(u||(u=d.__syncInfo={runEffects:D,changedProps:{}}),n)for(var a in S)D=VQ(a),u.changedProps[D]=d.__dataHost[D];else Object.assign(u.changedProps,S)};
this.__instance=f._stampTemplate(this.__template,H);(0,_.a4)(K).insertBefore(this.__instance,this)};
_.V.__syncHostProperties=function(){var K=this.__syncInfo;K&&(this.__syncInfo=null,K.runEffects(K.changedProps,!1))};
_.V.__teardownInstance=function(){var K=this.__dataHost||this;this.__instance&&(K._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.V._showHideChildren=function(){var K=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==K&&(this.__instance.__hidden=K,cbu(K,this.__instance.templateInfo.childNodes));K||this.__syncHostProperties()};
var pet=function(){var K=HE.call(this)||this;K.__ctor=null;K.__instance=null;K.__invalidProps=null;return K};
_.O(pet,HE);_.V=pet.prototype;_.V.__hasInstance=function(){return!!this.__instance};
_.V.__getInstanceNodes=function(){return this.__instance.children};
_.V.__createAndInsertInstance=function(K){this.__ctor||(this.__ctor=mk(this.__template,this,{mutableData:!0,forwardHostProp:function(d,f){this.__instance&&(this.if?this.__instance.forwardHostProp(d,f):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[VQ(d)]=!0))}}));
this.__instance=new this.__ctor;(0,_.a4)(K).insertBefore(this.__instance.root,this)};
_.V.__teardownInstance=function(){if(this.__instance){var K=this.__instance.children;if(K&&K.length){var d=(0,_.a4)(K[0]).parentNode;if(d){d=(0,_.a4)(d);for(var f=0,H=void 0;f<K.length&&(H=K[f]);f++)d.removeChild(H)}}this.__instance=this.__invalidProps=null}};
_.V.__syncHostProperties=function(){var K=this.__invalidProps;if(K){this.__invalidProps=null;for(var d in K)this.__instance._setPendingProperty(d,this.__dataHost[d]);this.__instance._flushProperties()}};
_.V._showHideChildren=function(){var K=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==K&&(this.__instance.__hidden=K,this.__instance._showHideChildren(K));K||this.__syncHostProperties()};
_.PP=GA?et8:pet;customElements.define(_.PP.is,_.PP);Polymer.enqueueDebouncer=_.e$;Polymer.flush=_.fT;Polymer.Templatize={templatize:mk,modelForElement:g6p};Polymer.TemplateInstanceBase=bT;Polymer.DomIf=_.PP;var KVv=kFs(xS),M7=function(){var K=KVv.call(this)||this;K.__instances=[];K.__renderDebouncer=null;K.__itemsIdxToInstIdx={};K.__chunkCount=null;K.__renderStartTime=null;K.__itemsArrayChanged=!1;K.__shouldMeasureChunk=!1;K.__shouldContinueChunking=!1;K.__chunkingId=0;K.__sortFn=null;K.__filterFn=null;K.__observePaths=null;K.__ctor=null;K.__isDetached=!0;K.template=null;return K};
_.O(M7,KVv);_.V=M7.prototype;_.V.disconnectedCallback=function(){KVv.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var K=0;K<this.__instances.length;K++)this.__detachInstance(K);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.V.connectedCallback=function(){KVv.prototype.connectedCallback.call(this);S8J()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var K=(0,_.a4)((0,_.a4)(this).parentNode),d=0;d<this.__instances.length;d++)this.__attachInstance(d,K);this.__chunkingId&&this.__render()}};
_.V.__ensureTemplatized=function(){var K=this;if(!this.__ctor){var d=this.template=this._templateInfo?this:this.querySelector("template");if(!d){var f=new MutationObserver(function(){if(K.querySelector("template"))f.disconnect(),K.__render();else throw Error("Kd");});
f.observe(this,{childList:!0});return!1}var H={};H[this.as]=!0;H[this.indexAs]=!0;H[this.itemsIndexAs]=!0;this.__ctor=mk(d,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:H,forwardHostProp:function(D,S){for(var n=this.__instances,u=0,a=void 0;u<n.length&&(a=n[u]);u++)a.forwardHostProp(D,S)},
notifyInstanceProp:function(D,S,n){q5n(this.as,S)&&(D=D[this.itemsIndexAs],S==this.as&&(this.items[D]=n),S=yQ(this.as,"items."+D,S),this.notifyPath(S,n))}})}return!0};
_.V.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.V.__functionFromPropertyValue=function(K){if(typeof K==="string"){var d=this.__getMethodHost();return function(){return d[K].apply(d,arguments)}}return K};
_.V.__sortChanged=function(K){this.__sortFn=this.__functionFromPropertyValue(K);this.items&&this.__debounceRender(this.__render)};
_.V.__filterChanged=function(K){this.__filterFn=this.__functionFromPropertyValue(K);this.items&&this.__debounceRender(this.__render)};
_.V.__computeFrameTime=function(K){return Math.ceil(1E3/K)};
_.V.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.V.__handleObservedPaths=function(K){if(this.__sortFn||this.__filterFn)if(!K)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var d=this.__observePaths,f=0;f<d.length;f++)K.indexOf(d[f])===0&&this.__debounceRender(this.__render,this.delay)};
_.V.__itemsChanged=function(K){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(K.path,K.value)||(K.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.V.__debounceRender=function(K,d){d=d===void 0?0:d;this.__renderDebouncer=_.ZT(this.__renderDebouncer,d>0?_.rh.after(d):o4,K.bind(this));_.e$(this.__renderDebouncer)};
_.V.render=function(){this.__debounceRender(this.__render);_.fT()};
_.V.__render=function(){var K=this;if(this.__ensureTemplatized()){var d=this.items||[],f=this.__sortAndFilterItems(d),H=this.__calculateLimit(f.length);this.__updateInstances(d,H,f);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){K.__chunkingId=null;K.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Ao&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.V.__sortAndFilterItems=function(K){for(var d=this,f=Array(K.length),H=0;H<K.length;H++)f[H]=H;this.__filterFn&&(f=f.filter(function(D,S,n){return d.__filterFn(K[D],S,n)}));
this.__sortFn&&f.sort(function(D,S){return d.__sortFn(K[D],K[S])});
return f};
_.V.__calculateLimit=function(K){var d=K,f=this.__instances.length;if(this.initialCount){var H;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(d=Math.min(K,this.initialCount),this.__chunkCount=(H=Math.max(d-f,0))||1):(H=Math.min(Math.max(K-f,0),this.__chunkCount),d=Math.min(f+H,K));this.__shouldMeasureChunk=H===this.__chunkCount;this.__shouldContinueChunking=d<K;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return d};
_.V.__continueChunking=function(){if(this.__shouldMeasureChunk){var K=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/K*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.V.__updateInstances=function(K,d,f){var H=this.__itemsIdxToInstIdx={},D;for(D=0;D<d;D++){var S=this.__instances[D],n=f[D],u=K[n];H[n]=D;S?(S._setPendingProperty(this.as,u),S._setPendingProperty(this.indexAs,D),S._setPendingProperty(this.itemsIndexAs,n),S._flushProperties()):this.__insertInstance(u,D,n)}for(K=this.__instances.length-1;K>=D;K--)this.__detachAndRemoveInstance(K)};
_.V.__detachInstance=function(K){K=this.__instances[K];for(var d=(0,_.a4)(K.root),f=0;f<K.children.length;f++)d.appendChild(K.children[f]);return K};
_.V.__attachInstance=function(K,d){d.insertBefore(this.__instances[K].root,this)};
_.V.__detachAndRemoveInstance=function(K){this.__detachInstance(K);this.__instances.splice(K,1)};
_.V.__stampInstance=function(K,d,f){var H={};H[this.as]=K;H[this.indexAs]=d;H[this.itemsIndexAs]=f;return new this.__ctor(H)};
_.V.__insertInstance=function(K,d,f){K=this.__stampInstance(K,d,f);f=(f=this.__instances[d+1])?f.children[0]:this;(0,_.a4)((0,_.a4)(this).parentNode).insertBefore(K.root,f);return this.__instances[d]=K};
_.V._showHideChildren=function(K){for(var d=0;d<this.__instances.length;d++)this.__instances[d]._showHideChildren(K)};
_.V.__handleItemPath=function(K,d){var f=K.slice(6),H=f.indexOf(".");K=H<0?f:f.substring(0,H);if(K==parseInt(K,10)){f=H<0?"":f.substring(H+1);this.__handleObservedPaths(f);if(K=this.__instances[this.__itemsIdxToInstIdx[K]])K._setPendingPropertyOrPath(this.as+(f?"."+f:""),d,!1,!0),K._flushProperties();return!0}};
_.V.itemForElement=function(K){return(K=this.modelForElement(K))&&K[this.as]};
_.V.indexForElement=function(K){return(K=this.modelForElement(K))&&K[this.indexAs]};
_.V.modelForElement=function(K){return g6p(this.template,K)};
_.x$.Object.defineProperties(M7,{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:M7.prototype.__sortChanged},filter:{type:Function,observer:M7.prototype.__filterChanged},observe:{type:String,observer:M7.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Ao,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.*)"]}}});
M7.prototype._setRenderedItemCount=function(){};
customElements.define(M7.is,M7);Polymer.DomRepeat=M7;var du9=function(K,d){var f=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=K;this.callback=d;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){f._schedule()};
this.connect();this._schedule()},fp6=function(K){var d=(0,_.a4)(K);
if(GF(K))return d.assignedNodes({flatten:!0});K=[];for(var f=0;f<d.childNodes.length;f++){var H=d.childNodes[f];GF(H)?K.push.apply(K,_.Me((0,_.a4)(H).assignedNodes({flatten:!0}))):K.push(H)}return K};
_.V=du9.prototype;_.V.connect=function(){var K=this;GF(this._target)?this._listenSlots([this._target]):(0,_.a4)(this._target).children&&(this._listenSlots((0,_.a4)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(d){K._processMutations(d)}):(this._nativeChildrenObserver=new MutationObserver(function(d){K._processMutations(d)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.V.disconnect=function(){GF(this._target)?this._unlistenSlots([this._target]):(0,_.a4)(this._target).children&&(this._unlistenSlots((0,_.a4)(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};
_.V._schedule=function(){var K=this;this._scheduled||(this._scheduled=!0,o4.run(function(){return K.flush()}))};
_.V._processMutations=function(K){this._processSlotMutations(K);this.flush()};
_.V._processSlotMutations=function(K){if(K)for(var d=0;d<K.length;d++){var f=K[d];f.addedNodes&&this._listenSlots(f.addedNodes);f.removedNodes&&this._unlistenSlots(f.removedNodes)}};
_.V.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 K={target:this._target,addedNodes:[],removedNodes:[]},d=fp6(this._target),f=PXY(d,this._effectiveNodes),H=0,D=void 0;H<f.length&&(D=f[H]);H++)for(var S=0,n=void 0;S<D.removed.length&&(n=D.removed[S]);S++)K.removedNodes.push(n);
H=0;for(D=void 0;H<f.length&&(D=f[H]);H++)for(S=D.index;S<D.index+D.addedCount;S++)K.addedNodes.push(d[S]);this._effectiveNodes=d;d=!1;if(K.addedNodes.length||K.removedNodes.length)d=!0,this.callback.call(this._target,K);return d};
_.V._listenSlots=function(K){for(var d=0;d<K.length;d++){var f=K[d];GF(f)&&f.addEventListener("slotchange",this._boundSchedule)}};
_.V._unlistenSlots=function(K){for(var d=0;d<K.length;d++){var f=K[d];GF(f)&&f.removeEventListener("slotchange",this._boundSchedule)}};var Dz=Element.prototype,H1f=Dz.matches||Dz.matchesSelector||Dz.mozMatchesSelector||Dz.msMatchesSelector||Dz.oMatchesSelector||Dz.webkitMatchesSelector,DuH=function(K,d){return H1f.call(K,d)},Ad=function(K){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(K);
this.node=K},nZH;
_.V=Ad.prototype;_.V.observeNodes=function(K){return new du9(this.node,K)};
_.V.unobserveNodes=function(K){K.disconnect()};
_.V.notifyObserver=function(){};
_.V.deepContains=function(K){if((0,_.a4)(this.node).contains(K))return!0;var d=K;for(K=K.ownerDocument;d&&d!==K&&d!==this.node;)d=(0,_.a4)(d).parentNode||(0,_.a4)(d).host;return d===this.node};
_.V.getOwnerRoot=function(){return(0,_.a4)(this.node).getRootNode()};
_.V.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.a4)(this.node).assignedNodes({flatten:!0}):[]};
_.V.getDestinationInsertionPoints=function(){for(var K=[],d=(0,_.a4)(this.node).assignedSlot;d;)K.push(d),d=(0,_.a4)(d).assignedSlot;return K};
_.V.importNode=function(K,d){return(0,_.a4)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(K,d)};
_.V.getEffectiveChildNodes=function(){return fp6(this.node)};
_.V.queryDistributedElements=function(K){for(var d=this.getEffectiveChildNodes(),f=[],H=0,D=d.length,S=void 0;H<D&&(S=d[H]);H++)S.nodeType===Node.ELEMENT_NODE&&DuH(S,K)&&f.push(S);return f};
_.x$.Object.defineProperties(Ad.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var K=this.node;return K._activeElement!==void 0?K._activeElement:K.activeElement}}});
var Vw=function(K){this.event=K};
_.x$.Object.defineProperties(Vw.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 VvJ=Ad;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var Sy2=window.ShadyDOM.Wrapper,ye6=function(){return Sy2.apply(this,arguments)||this};
_.O(ye6,Sy2);Object.getOwnPropertyNames(Ad.prototype).forEach(function(K){K!="activeElement"&&K!="constructor"&&(ye6.prototype[K]=Ad.prototype[K])});
N3X(ye6.prototype,["classList"]);VvJ=ye6;Object.defineProperties(Vw.prototype,{localTarget:{get:function(){var K=this.event.currentTarget;K=K&&_.Xd(K).getOwnerRoot();for(var d=this.path,f=0;f<d.length;f++){var H=d[f];if(_.Xd(H).getOwnerRoot()===K)return H}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else OYO(),N3X(Ad.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),Y8z();nZH=VvJ;_.Xd=function(K){K=K||document;if(K instanceof VvJ)return K;if(K instanceof Vw)return K;var d=K.__domApi;d||(K instanceof Event?d=new Vw(K):d=new VvJ(K),K.__domApi=d);return d};var i16=/:host\(:dir\((ltr|rtl)\)\)/g,cek=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,ud4=/:dir\((?:ltr|rtl)\)/,ap9=!(!window.ShadyDOM||!window.ShadyDOM.inUse),rX=[],S2=null,TF="",Ipf=qh(function(K){ap9||S2||(TF=document.documentElement.getAttribute("dir"),S2=new MutationObserver(tdO),S2.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var d=Xev(K);K=function(){var f=d.call(this)||this;f.__autoDirOptOut=!1;return f};
_.O(K,d);K._processStyleText=function(f,H){f=d._processStyleText.call(this,f,H);!ap9&&ud4.test(f)&&(f=this._replaceDirInCssText(f),this.__activateDir=!0);return f};
K._replaceDirInCssText=function(f){f=f.replace(i16,':host([dir="$1"])');return f=f.replace(cek,':host([dir="$2"]) $1')};
K.prototype.ready=function(){d.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
K.prototype.connectedCallback=function(){d.prototype.connectedCallback&&d.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(S2&&S2.takeRecords().length&&tdO(),rX.push(this),this.__autoDirOptOut||this.setAttribute("dir",TF))};
K.prototype.disconnectedCallback=function(){d.prototype.disconnectedCallback&&d.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var f=rX.indexOf(this);f>-1&&rX.splice(f,1)}};
K.__activateDir=!1;return K});var UuH=function(K){for(;K;){var d=Object.getOwnPropertyDescriptor(K,"observedAttributes");if(d)return d.get;K=Object.getPrototypeOf(K.prototype).constructor}return function(){return[]}};
qh(function(K){var d=Cf(K),f=UuH(d);K=function(){return d.call(this)||this};
_.O(K,d);K.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:d.prototype._initializeProperties.call(this)};
K.prototype._enableProperties=function(){this.__isUpgradeDisabled||d.prototype._enableProperties.call(this)};
K.prototype._canApplyPropertyDefault=function(H){return d.prototype._canApplyPropertyDefault.call(this,H)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(H))};
K.prototype.attributeChangedCallback=function(H,D,S,n){H=="disable-upgrade"?this.__isUpgradeDisabled&&S==null&&(d.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.a4)(this).isConnected&&d.prototype.connectedCallback.call(this)):d.prototype.attributeChangedCallback.call(this,H,D,S,n)};
K.prototype.connectedCallback=function(){this.__isUpgradeDisabled||d.prototype.connectedCallback.call(this)};
K.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||d.prototype.disconnectedCallback.call(this)};
_.x$.Object.defineProperties(K,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return f.call(this).concat("disable-upgrade")}}});
return K});var q5=!1,$ju=[],QQ=[];var mjB=window.ShadyDOM,llz=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",GDS):document.readyState==="interactive"||document.readyState==="complete"?GDS():window.addEventListener("DOMContentLoaded",GDS);var rbJ=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=""},Ab5=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,T3X=/@import[^;]*;/gim,Lfo=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,B3o=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Jbo=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,s9X=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,CcX=/^@[^\s]*keyframes/,
j9X=/\s+/g;var kDJ={};var eRu=Promise.resolve();var RJf=new Set;var FVt=/;\s*/m,zJk=/^\s*(initial)|(inherit)\s*$/,X0J=/\s*!important/,vZB=function(){this._map={}};
vZB.prototype.set=function(K,d){K=K.trim();this._map[K]={properties:d,dependants:{}}};
vZB.prototype.get=function(K){K=K.trim();return this._map[K]||null};
var MvN=null,yw=function(){this._measureElement=this._currentElement=null;this._map=new vZB};
_.V=yw.prototype;_.V.detectMixin=function(K){K=Adt.test(K)||GFf.test(K);Adt.lastIndex=0;GFf.lastIndex=0;return K};
_.V.transformTemplate=function(K,d){if(K._gatheredStyle===void 0){var f=[];for(var H=K.content.querySelectorAll("style"),D=0;D<H.length;D++){var S=H[D];if(S.hasAttribute("shady-unscoped")){if(!bt5){var n=S.textContent;if(!RJf.has(n)){RJf.add(n);var u=document.createElement("style");u.setAttribute("shady-unscoped","");u.textContent=n;document.head.appendChild(u)}S.parentNode.removeChild(S)}}else f.push(S.textContent),S.parentNode.removeChild(S)}(f=f.join("").trim())?(H=document.createElement("style"),
H.textContent=f,K.content.insertBefore(H,K.content.firstChild),f=H):f=null;K._gatheredStyle=f}return(K=K._gatheredStyle)?this.JSC$9172_transformStyle(K,d):null};
_.V.JSC$9172_transformStyle=function(K,d){d=d===void 0?"":d;var f=ffp(K);this.transformRules(f,d);K.textContent=dvJ(f);return f};
_.V.transformCustomStyle=function(K){var d=this,f=ffp(K);DvN(f,function(H){H.selector===":root"&&(H.selector="html");d.transformRule(H)});
K.textContent=dvJ(f);return f};
_.V.transformRules=function(K,d){var f=this;this._currentElement=d;DvN(K,function(H){f.transformRule(H)});
this._currentElement=null};
_.V.transformRule=function(K){K.cssText=Pw9(this,K.parsedCssText,K);K.selector===":root"&&(K.selector=":host > *")};
var Pw9=function(K,d,f){d=d.replace(GFf,function(H,D,S,n){return K._produceCssProperties(H,D,S,n,f)});
return K._consumeCssProperties(d,f)};
_.V=yw.prototype;_.V._getInitialValueForProperty=function(K){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(K)};
_.V._fallbacksFromPreviousRules=function(K){for(var d=this,f=K;f.parent;)f=f.parent;var H={},D=!1;DvN(f,function(S){(D=D||S===K)||S.selector===K.selector&&Object.assign(H,d._cssTextToMap(S.parsedCssText))});
return H};
_.V._consumeCssProperties=function(K,d){for(var f;f=Adt.exec(K);){var H=f[0],D=f[1];f=f.index;var S=f+H.indexOf("@apply"),n=f+H.length;H=K.slice(0,S);K=K.slice(n);S=d?this._fallbacksFromPreviousRules(d):{};Object.assign(S,this._cssTextToMap(H));D=this._atApplyToCssProperties(D,S);K=H+D+K;Adt.lastIndex=f+D.length}return K};
_.V._atApplyToCssProperties=function(K,d){K=K.replace(FVt,"");var f=[],H=this._map.get(K);H||(this._map.set(K,{}),H=this._map.get(K));if(H){this._currentElement&&(H.dependants[this._currentElement]=!0);var D,S=H.properties;for(D in S){var n=d&&d[D];H=[D,": var(",K,"_-_",D];n&&H.push(",",n.replace(X0J,""));H.push(")");X0J.test(S[D])&&H.push(" !important");f.push(H.join(""))}}return f.join("; ")};
_.V._replaceInitialOrInherit=function(K,d){var f=zJk.exec(d);f&&(d=f[1]?this._getInitialValueForProperty(K):"apply-shim-inherit");return d};
_.V._cssTextToMap=function(K,d){d=d===void 0?!1:d;K=K.split(";");for(var f,H,D={},S=0;S<K.length;S++)if(f=K[S])H=f.split(":"),H.length>1&&(f=H[0].trim(),H=H.slice(1).join(":"),d&&(H=this._replaceInitialOrInherit(f,H)),D[f]=H);return D};
_.V._invalidateMixinEntry=function(K){if(MvN)for(var d in K.dependants)d!==this._currentElement&&MvN(d)};
_.V._produceCssProperties=function(K,d,f,H,D){var S=this;f&&VHo(f,function(N,h){h&&S._map.get(h)&&(H="@apply "+h+";")});
if(!H)return K;var n=this._consumeCssProperties(""+H,D);D=K.slice(0,K.indexOf("--"));var u=n=this._cssTextToMap(n,!0),a=this._map.get(d),R=a&&a.properties;R?u=Object.assign(Object.create(R),n):this._map.set(d,u);var F=[],z,v=!1;for(z in u){var g=n[z];g===void 0&&(g="initial");!R||z in R||(v=!0);F.push(d+"_-_"+z+": "+g)}v&&this._invalidateMixinEntry(a);a&&(a.properties=u);f&&(D=K+";"+D);return D+F.join("; ")+";"};
yw.prototype.detectMixin=yw.prototype.detectMixin;yw.prototype.transformStyle=yw.prototype.JSC$9172_transformStyle;yw.prototype.transformCustomStyle=yw.prototype.transformCustomStyle;yw.prototype.transformRules=yw.prototype.transformRules;yw.prototype.transformRule=yw.prototype.transformRule;yw.prototype.transformTemplate=yw.prototype.transformTemplate;yw.prototype._separator="_-_";Object.defineProperty(yw.prototype,"invalidCallback",{get:function(){return MvN},
set:function(K){MvN=K}});var nT=new yw,gZ2=function(){this.customStyleInterface=null;nT.invalidCallback=w$S},iV=function(K){!K.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(K.customStyleInterface=window.ShadyCSS.CustomStyleInterface,K.customStyleInterface.transformCallback=function(d){nT.transformCustomStyle(d)},K.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){K.customStyleInterface.enqueued&&K.flushCustomStyles()})})};
_.V=gZ2.prototype;_.V.prepareTemplate=function(K,d){iV(this);SaG(K)===""&&(kDJ[d]=K,d=nT.transformTemplate(K,d),K._styleAst=d)};
_.V.flushCustomStyles=function(){iV(this);if(this.customStyleInterface){var K=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var d=0;d<K.length;d++){var f=this.customStyleInterface.getStyleForCustomStyle(K[d]);f&&nT.transformCustomStyle(f)}this.customStyleInterface.enqueued=!1}}};
_.V.styleSubtree=function(K,d){iV(this);d&&NPz(K,d);if(K.shadowRoot)for(this.styleElement(K),K=K.shadowRoot.children||K.shadowRoot.childNodes,d=0;d<K.length;d++)this.styleSubtree(K[d]);else for(K=K.children||K.childNodes,d=0;d<K.length;d++)this.styleSubtree(K[d])};
_.V.styleElement=function(K){iV(this);var d=K.localName,f;d?d.indexOf("-")>-1?f=d:f=K.getAttribute&&K.getAttribute("is")||"":f=K.is;d=kDJ[f];if(!(d&&SaG(d)!==""||!d||ZYX(d))){if(ZYX(d)||d._applyShimValidatingVersion!==d._applyShimNextVersion)this.prepareTemplate(d,f),p$p(d);if(K=K.shadowRoot)if(K=K.querySelector("style"))K.__cssRules=d._styleAst,K.textContent=dvJ(d._styleAst)}};
_.V.styleDocument=function(K){iV(this);this.styleSubtree(document.body,K)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var cE=new gZ2,O16=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(K,d){cE.flushCustomStyles();cE.prepareTemplate(K,d)},
prepareTemplateStyles:function(K,d,f){window.ShadyCSS.prepareTemplate(K,d,f)},
prepareTemplateDom:function(){},
styleSubtree:function(K,d){cE.flushCustomStyles();cE.styleSubtree(K,d)},
styleElement:function(K){cE.flushCustomStyles();cE.styleElement(K)},
styleDocument:function(K){cE.flushCustomStyles();cE.styleDocument(K)},
getComputedStyleValue:function(K,d){return Yk5(K,d)},
flushCustomStyles:function(){cE.flushCustomStyles()},
nativeCss:K4N,nativeShadow:bt5,cssBuild:C3,disableRuntime:qSs};O16&&(window.ShadyCSS.CustomStyleInterface=O16)}window.ShadyCSS.ApplyShim=nT;var NLJ;NLJ=window.ShadyCSS;_.uV=qh(function(K){K=s4J(Cf(K));var d=$52?K:Ipf(K),f=UuH(d),H={x:"pan-x",y:"pan-y",none:"none",all:"auto"};K=function(){return d.call(this)||this};
_.O(K,d);K.prototype.created=function(){};
K.prototype.__attributeReaction=function(D,S,n){(this.__dataAttributes&&this.__dataAttributes[D]||D==="disable-upgrade")&&this.attributeChangedCallback(D,S,n,null)};
K.prototype.setAttribute=function(D,S){if(ft4&&!this._legacyForceObservedAttributes){var n=this.getAttribute(D);d.prototype.setAttribute.call(this,D,S);this.__attributeReaction(D,n,String(S))}else d.prototype.setAttribute.call(this,D,S)};
K.prototype.removeAttribute=function(D){if(ft4&&!this._legacyForceObservedAttributes){var S=this.getAttribute(D);d.prototype.removeAttribute.call(this,D);this.__attributeReaction(D,S,null)}else d.prototype.removeAttribute.call(this,D)};
K.prototype._enableProperties=function(){this.__isUpgradeDisabled||d.prototype._enableProperties.call(this)};
K.prototype._canApplyPropertyDefault=function(D){return d.prototype._canApplyPropertyDefault.call(this,D)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(D))};
K.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(d.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
K.prototype.attached=function(){};
K.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(d.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
K.prototype.detached=function(){};
K.prototype.attributeChangedCallback=function(D,S,n,u){S!==n&&(D=="disable-upgrade"?this.__isUpgradeDisabled&&n==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.a4)(this).isConnected&&this.connectedCallback()):(d.prototype.attributeChangedCallback.call(this,D,S,n,u),this.attributeChanged(D,S,n)))};
K.prototype.attributeChanged=function(){};
K.prototype._initializeProperties=function(){if(ES&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var D=Object.getPrototypeOf(this);D.hasOwnProperty("__hasRegisterFinished")||(this._registered(),D.__hasRegisterFinished=!0);d.prototype._initializeProperties.call(this);this.root=this;this.created();ft4&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
K.prototype._takeAttributes=function(){for(var D=this.attributes,S=0,n=D.length;S<n;S++){var u=D[S];this.__attributeReaction(u.name,null,u.value)}};
K.prototype._registered=function(){};
K.prototype.ready=function(){this._ensureAttributes();d.prototype.ready.call(this)};
K.prototype._ensureAttributes=function(){};
K.prototype._applyListeners=function(){};
K.prototype.serialize=function(D){return this._serializeValue(D)};
K.prototype.deserialize=function(D,S){return this._deserializeValue(D,S)};
K.prototype.reflectPropertyToAttribute=function(D,S,n){this._propertyToAttribute(D,S,n)};
K.prototype.serializeValueToAttribute=function(D,S,n){this._valueToNodeAttribute(n||this,D,S)};
K.prototype.extend=function(D,S){if(!D||!S)return D||S;for(var n=Object.getOwnPropertyNames(S),u=0,a=void 0;u<n.length&&(a=n[u]);u++){var R=Object.getOwnPropertyDescriptor(S,a);R&&Object.defineProperty(D,a,R)}return D};
K.prototype.mixin=function(D,S){for(var n in S)D[n]=S[n];return D};
K.prototype.chainObject=function(D,S){D&&S&&D!==S&&(D.__proto__=S);return D};
K.prototype.instanceTemplate=function(D){D=this.constructor._contentForTemplate(D);return document.importNode(D,!0)};
K.prototype.fire=function(D,S,n){n=n||{};S=S===null||S===void 0?{}:S;D=new Event(D,{bubbles:n.bubbles===void 0?!0:n.bubbles,cancelable:!!n.cancelable,composed:n.composed===void 0?!0:n.composed});D.detail=S;(0,_.a4)(n.node||this).dispatchEvent(D);return D};
K.prototype.listen=function(D,S,n){D=D||this;var u=this.__boundListeners||(this.__boundListeners=new WeakMap),a=u.get(D);a||(a={},u.set(D,a));u=S+n;a[u]||(a[u]=this._addMethodEventListenerToNode(D,S,n,this))};
K.prototype.unlisten=function(D,S,n){D=D||this;var u=this.__boundListeners&&this.__boundListeners.get(D);n=S+n;var a=u&&u[n];a&&(this._removeEventListenerFromNode(D,S,a),u[n]=null)};
K.prototype.setScrollDirection=function(D,S){_.td(S||this,H[D]||"auto")};
K.prototype.$$=function(D){return this.root.querySelector(D)};
K.prototype.distributeContent=function(){var D=_.Xd(this);window.ShadyDOM&&D.shadowRoot&&ShadyDOM.flush()};
K.prototype.getEffectiveChildNodes=function(){return _.Xd(this).getEffectiveChildNodes()};
K.prototype.queryDistributedElements=function(D){return _.Xd(this).queryDistributedElements(D)};
K.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(D){return D.nodeType===Node.ELEMENT_NODE})};
K.prototype.getEffectiveTextContent=function(){for(var D=this.getEffectiveChildNodes(),S=[],n=0,u;u=D[n];n++)u.nodeType!==Node.COMMENT_NODE&&S.push(u.textContent);return S.join("")};
K.prototype.queryEffectiveChildren=function(D){return(D=this.queryDistributedElements(D))&&D[0]};
K.prototype.queryAllEffectiveChildren=function(D){return this.queryDistributedElements(D)};
K.prototype.getContentChildNodes=function(D){return(D=this.root.querySelector(D||"slot"))?_.Xd(D).getDistributedNodes():[]};
K.prototype.getContentChildren=function(D){return this.getContentChildNodes(D).filter(function(S){return S.nodeType===Node.ELEMENT_NODE})};
K.prototype.isLightDescendant=function(D){return this!==D&&(0,_.a4)(this).contains(D)&&(0,_.a4)(this).getRootNode()===(0,_.a4)(D).getRootNode()};
K.prototype.isLocalDescendant=function(D){return this.root===(0,_.a4)(D).getRootNode()};
K.prototype.scopeSubtree=function(D,S){return Wf5(D,S===void 0?!1:S)};
K.prototype.getComputedStyleValue=function(D){return NLJ.getComputedStyleValue(this,D)};
K.prototype.debounce=function(D,S,n){this._debouncers=this._debouncers||{};return this._debouncers[D]=_.ZT(this._debouncers[D],n>0?_.rh.after(n):o4,S.bind(this))};
K.prototype.isDebouncerActive=function(D){this._debouncers=this._debouncers||{};D=this._debouncers[D];return!(!D||!D.isActive())};
K.prototype.flushDebouncer=function(D){this._debouncers=this._debouncers||{};(D=this._debouncers[D])&&D.flush()};
K.prototype.cancelDebouncer=function(D){this._debouncers=this._debouncers||{};(D=this._debouncers[D])&&D.cancel()};
K.prototype.async=function(D,S){return S>0?_.rh.run(D.bind(this),S):~o4.run(D.bind(this))};
K.prototype.cancelAsync=function(D){D<0?o4.cancel(~D):_.rh.cancel(D)};
K.prototype.create=function(D,S){D=document.createElement(D);if(S)if(D.setProperties)D.setProperties(S);else for(var n in S)D[n]=S[n];return D};
K.prototype.elementMatches=function(D,S){return DuH(S||this,D)};
K.prototype.toggleAttribute=function(D,S){var n=this;arguments.length===3&&(n=arguments[2]);arguments.length==1&&(S=!n.hasAttribute(D));if(S)return(0,_.a4)(n).setAttribute(D,""),!0;(0,_.a4)(n).removeAttribute(D);return!1};
K.prototype.toggleClass=function(D,S,n){n=n||this;arguments.length==1&&(S=!n.classList.contains(D));S?n.classList.add(D):n.classList.remove(D)};
K.prototype.transform=function(D,S){S=S||this;S.style.webkitTransform=D;S.style.transform=D};
K.prototype.translate3d=function(D,S,n,u){this.transform("translate3d("+D+","+S+","+n+")",u||this)};
K.prototype.arrayDelete=function(D,S){if(Array.isArray(D)){if(S=D.indexOf(S),S>=0)return D.splice(S,1)}else if(S=iT(this,D).indexOf(S),S>=0)return this.splice(D,S,1);return null};
K.prototype._logger=function(D,S){Array.isArray(S)&&S.length===1&&Array.isArray(S[0])&&(S=S[0]);switch(D){case "log":case "warn":case "error":console[D].apply(console,_.Me(S))}};
K.prototype._log=function(){this._logger("log",_.Pg.apply(0,arguments))};
K.prototype._warn=function(){this._logger("warn",_.Pg.apply(0,arguments))};
K.prototype._error=function(){this._logger("error",_.Pg.apply(0,arguments))};
K.prototype._logf=function(D){return["[%s::%s]",this.is,D].concat(_.Me(_.Pg.apply(1,arguments)))};
_.x$.Object.defineProperties(K.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var D=(0,_.a4)(this).getRootNode();return D instanceof DocumentFragment?D.host:D}}});
_.x$.Object.defineProperties(K,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return ft4&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],map(this.prototype)),this.__observedAttributes):f.call(this).concat("disable-upgrade")}}});
K.prototype.is="";return K});Polymer.FlattenedNodesObserver=du9;Polymer.DomApi=nZH;Polymer.EventApi=Vw;Polymer.dom=_.Xd;Polymer.dom.matchesSelector=DuH;Polymer.dom.flush=_.fT;Polymer.dom.addDebouncer=_.e$;Polymer.DirMixin=Ipf;Polymer.RenderStatus={beforeNextRender:_.bYz,afterNextRender:_.jW,flush:function(){for(;$ju.length||QQ.length;)o6Y($ju),o6Y(QQ);q5=!1}};Polymer.LegacyElementMixin=_.uV;var Yys;Yys=KT._mutablePropertyChange;var tv6={properties:{mutableData:Boolean},_shouldPropertyChange:function(K,d,f){return Yys(this,K,d,f,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(K,d,f){return Yys(this,K,d,f,!0)}};
Polymer.OptionalMutableDataBehavior=tv6;var ymJ={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},afB={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},umB=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},afB),oZH=(0,_.uV)(HTMLElement),sTS=function(K,d){K||console.warn("Polymer.Class requires `info` argument");d=d?d(oZH):oZH;d=Ifp(K,d,K.behaviors);d.is=d.prototype.is=
K.is;return d};Polymer.Class=sTS;Polymer.mixinBehaviors=function(K,d){return Ifp({},(0,_.uV)(d),K)};
Polymer.GenerateClassFromInfo=Ifp;_.vP=function(K){var d=typeof K==="function"?K:_.vP.Class(K);K._legacyForceObservedAttributes&&(d.prototype._legacyForceObservedAttributes=K._legacyForceObservedAttributes);customElements.define(d.is,d);return d};
_.vP.Class=sTS;Polymer._polymerFn=_.vP;var $uH=window.onLegacyPolymerFunctionDefinedCallback;$uH&&$uH();var wIn={templatize:function(K,d){this._templatizerTemplate=K;this.ctor=mk(K,this,{mutableData:!!d,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(K){return new this.ctor(K)},
modelForElement:function(K){return g6p(this._templatizerTemplate,K)}};Polymer.Templatizer=wIn;_.aU=(0,_.uV)(HTMLElement).prototype;Polymer.Base=_.aU;var RCp=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.L3=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.O(_.L3,PolymerFakeBaseClass);var Be=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.O(Be,PolymerFakeBaseClass);var F4S=Symbol("Ld"),N75=[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 EZv=EZv||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},hJJ;(function(K){function d(L,fB,w){var yO=J.get(L);if(!yO){if(!w)return;yO=new T;J.set(L,yO)}L=yO.get(fB);if(!L){if(!w)return;L=new T;yO.set(fB,L)}return L}
function f(L,fB,w){if(H(L,fB,w))return!0;fB=v(fB);return fB!==null?f(L,fB,w):!1}
function H(L,fB,w){fB=d(fB,w,!1);return fB===void 0?!1:!!fB.has(L)}
function D(L,fB,w){if(H(L,fB,w))return S(L,fB,w);fB=v(fB);if(fB!==null)return D(L,fB,w)}
function S(L,fB,w){fB=d(fB,w,!1);if(fB!==void 0)return fB.get(L)}
function n(L,fB){var w=u(L,fB);L=v(L);if(L===null)return w;var yO=n(L,fB);if(yO.length<=0)return w;if(w.length<=0)return yO;fB=new r;L=[];w=_.y(w);for(var FX=w.next();!FX.done;FX=w.next())FX=FX.value,fB.has(FX)||(fB.add(FX),L.push(FX));w=_.y(yO);for(yO=w.next();!yO.done;yO=w.next())yO=yO.value,fB.has(yO)||(fB.add(yO),L.push(yO));return L}
function u(L,fB){L=d(L,fB,!1);var w=[];L&&L.forEach(function(yO,FX){return w.push(FX)});
return w}
function a(L){return L===void 0}
function R(L){return typeof L==="object"?L!==null:typeof L==="function"}
function F(L){return typeof L==="function"}
function z(L){return typeof L==="symbol"?L:String(L)}
function v(L){var fB=Object.getPrototypeOf(L);if(typeof L!=="function"||L===m||fB!==m)return fB;var w=Object.getPrototypeOf(L.prototype);if(w==null||w===Object.prototype)return fB;w=w.constructor;return typeof w!=="function"||w===L?fB:w}
function g(){function L(){this._keys=[];this._values=[];this._cache=fB}
var fB={};L.prototype={get size(){return this._keys.length},has:function(w){return w===this._cache?!0:this._find(w)>=0?(this._cache=w,!0):!1},
get:function(w){var yO=this._find(w);if(yO>=0)return this._cache=w,this._values[yO]},
set:function(w,yO){this.delete(w);this._keys.push(w);this._values.push(yO);this._cache=w;return this},
delete:function(w){w=this._find(w);return w>=0?(this._keys.splice(w,1),this._values.splice(w,1),this._cache=fB,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=fB},
forEach:function(w){for(var yO=this.size,FX=0;FX<yO;++FX){var NJ=this._keys[FX],$z=this._values[FX];this._cache=NJ;w.call(this,$z,NJ,this)}},
_find:function(w){for(var yO=this._keys,FX=yO.length,NJ=0;NJ<FX;++NJ)if(yO[NJ]===w)return NJ;return-1}};
return L}
function N(){function L(){this._map=new T}
L.prototype={get size(){return this._map.length},has:function(fB){return this._map.has(fB)},
add:function(fB){this._map.set(fB,fB);return this},
delete:function(fB){return this._map.delete(fB)},
clear:function(){this._map.clear()},
forEach:function(fB,w){this._map.forEach(fB,w)}};
return L}
function h(){function L(){this._key=w()}
function fB(bo,xz){for(var qJ=0;qJ<xz;++qJ)bo[qJ]=Math.random()*255|0}
function w(){do{if(FX)var bo=FX.randomBytes(16);else typeof Uint8Array==="function"?(bo=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(bo):fB(bo,16)):(bo=Array(16),fB(bo,16));bo[6]=bo[6]&79|64;bo[8]=bo[8]&191|128;for(var xz="",qJ=0;qJ<16;++qJ){var Y8=bo[qJ];if(qJ===4||qJ===6||qJ===8)xz+="-";Y8<16&&(xz+="0");xz+=Y8.toString(16).toLowerCase()}bo="@@WeakMap@@"+xz}while(NJ.call($z,bo));$z[bo]=!0;return bo}
function yO(bo,xz){if(!NJ.call(bo,hN)){if(!xz)return;Object.defineProperty(bo,hN,{value:Object.create(null)})}return bo[hN]}
var FX=typeof global!=="undefined"&&typeof EZv==="object"&&typeof require==="function"&&require("crypto"),NJ=Object.prototype.hasOwnProperty,$z={},hN=w();L.prototype={has:function(bo){return(bo=yO(bo,!1))?this._key in bo:!1},
get:function(bo){if(bo=yO(bo,!1))return bo[this._key]},
set:function(bo,xz){yO(bo,!0)[this._key]=xz;return this},
delete:function(bo){return(bo=yO(bo,!1))&&this._key in bo?delete bo[this._key]:!1},
clear:function(){this._key=w()}};
return L}
var m=Object.getPrototypeOf(Function),T=typeof Map==="function"?Map:g(),r=typeof Set==="function"?Set:N(),J=new (typeof WeakMap==="function"?WeakMap:h());K.decorate=function(L,fB,w,yO){if(a(yO)){if(a(w)){if(!Array.isArray(L))throw new TypeError;if(!F(fB))throw new TypeError;for(w=L.length-1;w>=0;--w)if(yO=(0,L[w])(fB),!a(yO)){if(!F(yO))throw new TypeError;fB=yO}return fB}if(!Array.isArray(L))throw new TypeError;if(!R(fB))throw new TypeError;w=z(w);for(yO=L.length-1;yO>=0;--yO)(0,L[yO])(fB,w)}else{if(Array.isArray(L))if(R(fB)){if(a(w))throw new TypeError;
if(!R(yO))throw new TypeError;}else throw new TypeError;else throw new TypeError;w=z(w);for(var FX=L.length-1;FX>=0;--FX){var NJ=(0,L[FX])(fB,w,yO);if(!a(NJ)){if(!R(NJ))throw new TypeError;yO=NJ}}return yO}};
K.metadata=function(L,fB){return function(w,yO){if(a(yO)){if(!F(w))throw new TypeError;d(w,void 0,!0).set(L,fB)}else{if(!R(w))throw new TypeError;yO=z(yO);d(w,yO,!0).set(L,fB)}}};
K.defineMetadata=function(L,fB){var w;if(R(fB))a(w)||(w=z(w));else throw new TypeError;d(fB,w,!0).set("parameters",L)};
K.hasMetadata=function(L,fB,w){if(R(fB))a(w)||(w=z(w));else throw new TypeError;return f(L,fB,w)};
K.hasOwnMetadata=function(L,fB,w){if(R(fB))a(w)||(w=z(w));else throw new TypeError;return H(L,fB,w)};
K.getMetadata=function(L,fB,w){if(R(fB))a(w)||(w=z(w));else throw new TypeError;return D(L,fB,w)};
K.getOwnMetadata=function(L,fB,w){if(R(fB))a(w)||(w=z(w));else throw new TypeError;return S(L,fB,w)};
K.getMetadataKeys=function(L,fB){if(R(L))a(fB)||(fB=z(fB));else throw new TypeError;return n(L,fB)};
K.getOwnMetadataKeys=function(L,fB){if(R(L))a(fB)||(fB=z(fB));else throw new TypeError;return u(L,fB)};
K.deleteMetadata=function(L,fB,w){if(R(fB))a(w)||(w=z(w));else throw new TypeError;var yO=d(fB,w,!1);if(!a(yO)){if(!yO.delete(L))return!1;if(yO.size>0)return!0;L=J.get(fB);L.delete(w);if(L.size>0)return!0;J.delete(fB);return!0}};
(function(L){if(typeof L.Reflect!=="undefined"){if(L.Reflect!==K)for(var fB in K)L.Reflect[fB]=K[fB]}else L.Reflect=K})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(hJJ||(hJJ={}));var WZG=self;var b1k=[0,_.mQ,_.G9,_.mQ];var muf=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(muf,_.Ti);var lp8=_.ew(muf,[0,_.WF5,_.AI,b1k,_.G9,_.rc]);_.Bd(_.Jd,_.gG);_.V=_.Jd.prototype;_.V.start=function(){this.stop();this.usingListeners_=!1;var K=WV2(this),d=Gwt(this);K&&!d&&this.JSC$9215_win_.mozRequestAnimationFrame?(this.JSC$9215_id_=_.zG(this.JSC$9215_win_,"MozBeforePaint",this.callback_),this.JSC$9215_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9215_id_=K&&d?K.call(this.JSC$9215_win_,this.callback_):this.JSC$9215_win_.setTimeout(qMG(this.callback_),20)};
_.V.stop=function(){if(this.isActive()){var K=WV2(this),d=Gwt(this);K&&!d&&this.JSC$9215_win_.mozRequestAnimationFrame?UP(this.JSC$9215_id_):K&&d?d.call(this.JSC$9215_win_,this.JSC$9215_id_):this.JSC$9215_win_.clearTimeout(this.JSC$9215_id_)}this.JSC$9215_id_=null};
_.V.fire=function(){this.stop();this.JSC$9217_doAction_()};
_.V.isActive=function(){return this.JSC$9215_id_!=null};
_.V.JSC$9217_doAction_=function(){this.usingListeners_&&this.JSC$9215_id_&&UP(this.JSC$9215_id_);this.JSC$9215_id_=null;this.JSC$9215_listener_.call(this.handler_,_.Ls())};
_.V.disposeInternal=function(){this.stop();_.Jd.superClass_.disposeInternal.call(this)};
var WV2=function(K){K=K.JSC$9215_win_;return K.requestAnimationFrame||K.webkitRequestAnimationFrame||K.mozRequestAnimationFrame||K.oRequestAnimationFrame||K.msRequestAnimationFrame||null},Gwt=function(K){K=K.JSC$9215_win_;
return K.cancelAnimationFrame||K.cancelRequestAnimationFrame||K.webkitCancelRequestAnimationFrame||K.mozCancelRequestAnimationFrame||K.oCancelRequestAnimationFrame||K.msCancelRequestAnimationFrame||null};_.Ct=function(K,d,f){_.gG.call(this);this.JSC$9218_listener_=f!=null?K.bind(f):K;this.JSC$9218_interval_=d;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9218_timer_=null};
_.O(_.Ct,_.gG);_.V=_.Ct.prototype;_.V.fire=function(K){this.args_=arguments;this.JSC$9218_timer_||this.pauseCount_?this.shouldFire_=!0:AeJ(this)};
_.V.stop=function(){this.JSC$9218_timer_&&(_.Hu.clearTimeout(this.JSC$9218_timer_),this.JSC$9218_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.V.pause=function(){this.pauseCount_++};
_.V.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9218_timer_||(this.shouldFire_=!1,AeJ(this))};
_.V.disposeInternal=function(){_.gG.prototype.disposeInternal.call(this);this.stop()};
var AeJ=function(K){K.JSC$9218_timer_=Uv(function(){K.JSC$9218_timer_=null;K.shouldFire_&&!K.pauseCount_&&(K.shouldFire_=!1,AeJ(K))},K.JSC$9218_interval_);
var d=K.args_;K.args_=null;K.JSC$9218_listener_.apply(null,d)};var TLs=function(K,d){this.childIterator_=K[_.Hu.Symbol.iterator]();this.mapFn_=d};
TLs.prototype[Symbol.iterator]=function(){return this};
TLs.prototype.next=function(){var K=this.childIterator_.next();return{value:K.done?void 0:this.mapFn_.call(void 0,K.value),done:K.done}};
var reN=function(K,d){return new TLs(K,d)};var qyv={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 ctu=function(K){var d=Qws(K);if(!d)throw Error("Pd`"+K);return d},Qws=function(K){var d={};
K=String(K);var f=K.charAt(0)=="#"?K:"#"+K;if(jwv.test(f))return d.hex=DtX(f),d.type="hex",d;f=UxO(K);return f.length?(d.hex=e4Y(f[0],f[1],f[2]),d.type="rgb",d):qyv&&(K=qyv[K.toLowerCase()])?(d.hex=K,d.type="named",d):null},Cwt=/#(.)(.)(.)/,DtX=function(K){if(!jwv.test(K))throw Error("Rd`"+K);
K.length==4&&(K=K.replace(Cwt,"#$1$1$2$2$3$3"));return K.toLowerCase()},uBN=function(K){K=DtX(K);
K=parseInt(K.slice(1),16);return[K>>16,K>>8&255,K&255]},e4Y=function(K,d,f){K=Number(K);
d=Number(d);f=Number(f);if(K!=(K&255)||d!=(d&255)||f!=(f&255))throw Error("Sd`"+K+"`"+d+"`"+f);d=K<<16|d<<8|f;return K<16?"#"+(16777216|d).toString(16).slice(1):"#"+d.toString(16)},jwv=/^#(?:[0-9a-f]{3}){1,2}$/i,xus=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,UxO=function(K){var d=K.match(xus);
if(d){K=Number(d[1]);var f=Number(d[2]);d=Number(d[3]);if(K>=0&&K<=255&&f>=0&&f<=255&&d>=0&&d<=255)return[K,f,d]}return[]};var LVH={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},U8=LVH;U8=LVH;var $AB,BL4,JeL;$AB=function(K,d){switch(d){case 1:return K%4!=0||K%100==0&&K%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
BL4=function(K,d,f,H,D){K=new Date(K,d,f);D=D||0;return K.valueOf()+(((H!==void 0?H:3)-D+7)%7-((K.getDay()+6)%7-D+7)%7)*864E5};
_.IU=function(K,d,f){typeof K==="number"?(this.date=JeL(K,d||0,f||1),sws(this,f||1)):_.H4(K)?(this.date=JeL(K.getFullYear(),K.getMonth(),K.getDate()),sws(this,K.getDate())):(this.date=new Date(_.Ls()),K=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),sws(this,K))};
JeL=function(K,d,f){d=new Date(K,d,f);K>=0&&K<100&&d.setFullYear(d.getFullYear()-1900);return d};
_.V=_.IU.prototype;_.V.firstDayOfWeek_=U8.FIRSTDAYOFWEEK;_.V.firstWeekCutOffDay_=U8.FIRSTWEEKCUTOFFDAY;_.V.clone=function(){var K=new _.IU(this.date);K.firstDayOfWeek_=this.firstDayOfWeek_;K.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return K};
_.V.getFullYear=function(){return this.date.getFullYear()};
_.V.getYear=function(){return this.getFullYear()};
_.V.getMonth=function(){return this.date.getMonth()};
_.V.getDate=function(){return this.date.getDate()};
_.V.getTime=function(){return this.date.getTime()};
_.V.getDay=function(){return this.date.getDay()};
_.V.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.V.getUTCMonth=function(){return this.date.getUTCMonth()};
_.V.getUTCDate=function(){return this.date.getUTCDate()};
_.V.getUTCDay=function(){return this.date.getDay()};
_.V.getUTCHours=function(){return this.date.getUTCHours()};
_.V.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.V.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.V.set=function(K){this.date=new Date(K.getFullYear(),K.getMonth(),K.getDate())};
_.V.setFullYear=function(K){this.date.setFullYear(K)};
_.V.setYear=function(K){this.setFullYear(K)};
_.V.setMonth=function(K){this.date.setMonth(K)};
_.V.setDate=function(K){this.date.setDate(K)};
_.V.setTime=function(K){this.date.setTime(K)};
_.V.setUTCFullYear=function(K){this.date.setUTCFullYear(K)};
_.V.setUTCMonth=function(K){this.date.setUTCMonth(K)};
_.V.setUTCDate=function(K){this.date.setUTCDate(K)};
_.V.add=function(K){if(K.years||K.months){var d=this.getMonth()+K.months+K.years*12,f=this.getYear()+Math.floor(d/12);d%=12;d<0&&(d+=12);var H=Math.min($AB(f,d),this.getDate());this.setDate(1);this.setFullYear(f);this.setMonth(d);this.setDate(H)}K.days&&(f=this.getYear(),d=f>=0&&f<=99?-1900:0,K=new Date((new Date(f,this.getMonth(),this.getDate(),12)).getTime()+K.days*864E5),this.setDate(1),this.setFullYear(K.getFullYear()+d),this.setMonth(K.getMonth()),this.setDate(K.getDate()),sws(this,K.getDate()))};
_.V.JSC$9231_toIsoString=function(K){var d=this.getFullYear(),f=d<0?"-":d>=1E4?"+":"";return[f+_.LO(Math.abs(d),f?6:4),_.LO(this.getMonth()+1,2),_.LO(this.getDate(),2)].join(K?"-":"")};
_.V.equals=function(K){return!(!K||this.getYear()!=K.getYear()||this.getMonth()!=K.getMonth()||this.getDate()!=K.getDate())};
_.V.toString=function(){return this.JSC$9231_toIsoString()};
var sws=function(K,d){K.getDate()!=d&&K.date.setUTCHours(K.date.getUTCHours()+(K.getDate()<d?1:-1))};
_.IU.prototype.valueOf=function(){return this.date.valueOf()};var RU=function(K,d,f,H,D){this.reversed=!!d;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!f;K&&Uh(this,K,H);this.depth=D!=void 0?D:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Bd(RU,wT);var Uh=function(K,d,f,H){if(K.node=d)K.tagType=typeof f==="number"?f:K.node.nodeType!=1?0:K.reversed?-1:1;typeof H==="number"&&(K.depth=H)};
_.V=RU.prototype;_.V.JSC$9246_copyFrom=function(K){this.node=K.node;this.tagType=K.tagType;this.depth=K.depth;this.reversed=K.reversed;this.constrained=K.constrained};
_.V.clone=function(){return new RU(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.V.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Z9;var K=this.node;var d=this.reversed?-1:1;if(this.tagType==d){var f=this.reversed?K.lastChild:K.firstChild;f?Uh(this,f):Uh(this,K,d*-1)}else(f=this.reversed?K.previousSibling:K.nextSibling)?Uh(this,f):Uh(this,K.parentNode,d*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(K=this.node)?eI(K):Z9};
_.V.equals=function(K){return K.node==this.node&&(!this.node||K.tagType==this.tagType)};
_.V.splice=function(K){var d=this.node,f=this.reversed?1:-1;this.tagType==f&&(this.tagType=f*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;RU.prototype.next.call(this);this.reversed=!this.reversed;f=_.d2(arguments[0])?arguments[0]:arguments;for(var H=f.length-1;H>=0;H--)_.MO(f[H],d);_.FE(d)};var kws=function(){},Fc=function(K){for(var d=[],f=K.getTextRangeCount(),H=0;H<f;H++)d.push(K.getTextRange(H));
return d};
kws.prototype.isReversed=function(){return!1};
kws.prototype.getWindow=function(){return tA(_.oL(this.JSC$9248_getStartNode()))};
var w0k=function(K,d){RU.call(this,K,d,!0)};
_.Bd(w0k,RU);var z3=function(K,d,f,H,D){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!D;if(K){this.startNode_=K;this.startOffset_=d;this.endNode_=f;this.endOffset_=H;if(K.nodeType==1&&K.tagName!="BR")if(K=K.childNodes,d=K[d])this.startNode_=d,this.startOffset_=0;else{K.length&&(this.startNode_=_.TS(K));var S=!0}f.nodeType==1&&((this.endNode_=f.childNodes[H])?this.endOffset_=0:this.endNode_=f)}RU.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);S&&this.next()};
_.Bd(z3,w0k);_.V=z3.prototype;_.V.JSC$9254_getStartNode=function(){return this.startNode_};
_.V.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)};
_.V.next=function(){return this.isLast()?Z9:z3.superClass_.next.call(this)};
_.V.JSC$9246_copyFrom=function(K){this.startNode_=K.startNode_;this.endNode_=K.endNode_;this.startOffset_=K.startOffset_;this.endOffset_=K.endOffset_;this.isReversed_=K.isReversed_;z3.superClass_.JSC$9246_copyFrom.call(this,K)};
_.V.clone=function(){var K=new z3(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);K.JSC$9246_copyFrom(this);return K};var Z1v=function(){};
Z1v.prototype.__iterator__=function(){return new z3(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Xc=function(K){this.range_=K};
_.Bd(Xc,Z1v);var eJH=function(K){var d=_.oL(K).createRange();if(K.nodeType==3)d.setStart(K,0),d.setEnd(K,K.length);else if(zl(K)||K.nodeType==3){for(var f,H=K;(f=H.firstChild)&&(zl(f)||f.nodeType==3);)H=f;d.setStart(H,0);for(H=K;(f=H.lastChild)&&(zl(f)||f.nodeType==3);)H=f;d.setEnd(H,H.nodeType==1?H.childNodes.length:H.length)}else f=K.parentNode,K=Array.prototype.indexOf.call(f.childNodes,K),d.setStart(f,K),d.setEnd(f,K+1);return d},p0k=function(K,d,f,H){var D=_.oL(K).createRange();
D.setStart(K,d);D.setEnd(f,H);return D};
_.V=Xc.prototype;_.V.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.V.getContainer=function(){return this.range_.commonAncestorContainer};
_.V.compareBrowserRangeEndpoints=function(K,d,f){return this.range_.compareBoundaryPoints(f==1?d==1?_.Hu.Range.START_TO_START:_.Hu.Range.START_TO_END:d==1?_.Hu.Range.END_TO_START:_.Hu.Range.END_TO_END,K)};
_.V.isCollapsed=function(){return this.range_.collapsed};
_.V.select=function(K){this.selectInternal(tA(_.oL(this.range_.startContainer)).getSelection(),K)};
_.V.selectInternal=function(K){K.removeAllRanges();K.addRange(this.range_)};
_.V.insertNode=function(K,d){var f=this.range_.cloneRange();f.collapse(d);f.insertNode(K);f.detach();return K};
_.V.collapse=function(K){this.range_.collapse(K)};_.Bd(sS,Xc);sS.prototype.selectInternal=function(K,d){!d||this.isCollapsed()?sS.superClass_.selectInternal.call(this,K,d):(K.collapse(this.range_.endContainer,this.range_.endOffset),K.extend(this.range_.startContainer,this.range_.startOffset))};_.Bd(k$,Xc);k$.prototype.compareBrowserRangeEndpoints=function(K,d,f){return k$.superClass_.compareBrowserRangeEndpoints.call(this,K,d,f)};
k$.prototype.selectInternal=function(K,d){d?K.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):K.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Kq2=function(K){return _.Zf?new k$(K):_.w7?new sS(K):new Xc(K)};var vE=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},dYB;
_.Bd(vE,kws);dYB=function(K,d){var f=new vE;f.browserRangeWrapper_=K;f.isReversed_=!!d;return f};
_.fEN=function(K){K=_.Zf?new k$(eJH(K)):_.w7?new sS(eJH(K)):new Xc(eJH(K));return dYB(K)};
_.M_=function(K,d,f,H){var D=new vE;D.isReversed_=Hd9(K,d,f,H);if(_.JL(K)&&!zl(K)){var S=K.parentNode;d=Array.prototype.indexOf.call(S.childNodes,K);K=S}_.JL(f)&&!zl(f)&&(S=f.parentNode,H=Array.prototype.indexOf.call(S.childNodes,f),f=S);D.isReversed_?(D.startNode_=f,D.startOffset_=H,D.endNode_=K,D.endOffset_=d):(D.startNode_=K,D.startOffset_=d,D.endNode_=f,D.endOffset_=H);return D};
_.V=vE.prototype;_.V.clone=function(){var K=new vE;K.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();K.startNode_=this.startNode_;K.startOffset_=this.startOffset_;K.endNode_=this.endNode_;K.endOffset_=this.endOffset_;K.isReversed_=this.isReversed_;return K};
_.V.JSC$9248_getType=function(){return"text"};
_.V.getBrowserRangeObject=function(){return PE(this).range_};
_.V.getTextRangeCount=function(){return 1};
_.V.getTextRange=function(){return this};
var PE=function(K){var d;if(!(d=K.browserRangeWrapper_)){d=K.JSC$9248_getStartNode();var f=K.JSC$9248_getStartOffset(),H=K.JSC$9248_getEndNode(),D=K.JSC$9248_getEndOffset();d=_.Zf?new k$(p0k(d,f,H,D)):_.w7?new sS(p0k(d,f,H,D)):new Xc(p0k(d,f,H,D));d=K.browserRangeWrapper_=d}return d};
_.V=vE.prototype;_.V.getContainer=function(){return PE(this).getContainer()};
_.V.JSC$9248_getStartNode=function(){return this.startNode_||(this.startNode_=PE(this).range_.startContainer)};
_.V.JSC$9248_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=PE(this).range_.startOffset};
_.V.JSC$9248_getEndNode=function(){return this.endNode_||(this.endNode_=PE(this).range_.endContainer)};
_.V.JSC$9248_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=PE(this).range_.endOffset};
_.V.isReversed=function(){return this.isReversed_};
_.V.JSC$9248_containsRange=function(K,d){if(K.JSC$9248_getType()=="text"){var f=PE(this);K=PE(K);d=d&&!K.isCollapsed();K=K.range_;f=d?f.compareBrowserRangeEndpoints(K,0,1)>=0&&f.compareBrowserRangeEndpoints(K,1,0)<=0:f.compareBrowserRangeEndpoints(K,0,0)>=0&&f.compareBrowserRangeEndpoints(K,1,1)<=0}else f=!1;return f};
_.V.isCollapsed=function(){return PE(this).isCollapsed()};
_.V.JSC$9248_getText=function(){return PE(this).range_.toString()};
_.V.__iterator__=function(){return new z3(this.JSC$9248_getStartNode(),this.JSC$9248_getStartOffset(),this.JSC$9248_getEndNode(),this.JSC$9248_getEndOffset())};
_.V.select=function(){PE(this).select(this.isReversed_)};
_.V.JSC$9248_removeContents=function(){var K=PE(this).range_;K.extractContents();if(K.startContainer.hasChildNodes()&&(K=K.startContainer.childNodes[K.startOffset])){var d=K.previousSibling;Tz2(K)==""&&_.FE(K);d&&Tz2(d)==""&&_.FE(d)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.V.insertNode=function(K,d){K=PE(this).insertNode(K,d);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return K};
_.V.collapse=function(K){K=this.isReversed()?!K:K;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(K);K?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var DY2=function(){};
_.Bd(DY2,kws);DY2.prototype.JSC$9248_containsRange=function(K,d){var f=Fc(this);K=Fc(K);return(d?xK:_.pUO)(K,function(H){return xK(f,function(D){return D.JSC$9248_containsRange(H,d)})})};
DY2.prototype.insertNode=function(K,d){d?_.vc(K,this.JSC$9248_getStartNode()):_.MO(K,this.JSC$9248_getEndNode());return K};var Vsf,Sxs=uW().JSC$7335_document_.documentElement;Vsf=Sxs.requestFullscreen?"fullscreenchange":Sxs.webkitRequestFullscreen?"webkitfullscreenchange":Sxs.mozRequestFullScreen?"mozfullscreenchange":Sxs.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var yy9=function(){var K=uW().JSC$7335_document_;return!!(K.webkitIsFullScreen||K.mozFullScreen||K.msFullscreenElement||K.fullscreenElement)};var gk=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Bd(gk,DY2);_.V=gk.prototype;_.V.clone=function(){var K=new gk;K.browserRanges_=_.ep(this.browserRanges_);return K};
_.V.JSC$9248_getType=function(){return"mutli"};
_.V.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.V.getTextRangeCount=function(){return this.browserRanges_.length};
_.V.getTextRange=function(K){this.ranges_[K]||(this.ranges_[K]=dYB(Kq2(this.browserRanges_[K])));return this.ranges_[K]};
_.V.getContainer=function(){if(!this.container_){for(var K=[],d=this.getTextRangeCount(),f=0;f<d;f++)K.push(this.getTextRange(f).getContainer());this.container_=hGs.apply(null,K)}return this.container_};
var Oh=function(K){K.sortedRanges_||(K.sortedRanges_=Fc(K),K.sortedRanges_.sort(function(d,f){var H=d.JSC$9248_getStartNode();d=d.JSC$9248_getStartOffset();var D=f.JSC$9248_getStartNode();f=f.JSC$9248_getStartOffset();return H==D&&d==f?0:Hd9(H,d,D,f)?1:-1}));
return K.sortedRanges_};
_.V=gk.prototype;_.V.JSC$9248_getStartNode=function(){return Oh(this)[0].JSC$9248_getStartNode()};
_.V.JSC$9248_getStartOffset=function(){return Oh(this)[0].JSC$9248_getStartOffset()};
_.V.JSC$9248_getEndNode=function(){return _.TS(Oh(this)).JSC$9248_getEndNode()};
_.V.JSC$9248_getEndOffset=function(){return _.TS(Oh(this)).JSC$9248_getEndOffset()};
_.V.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.V.JSC$9248_getText=function(){return Fc(this).map(function(K){return K.JSC$9248_getText()}).join("")};
_.V.__iterator__=function(){return new N_(this)};
_.V.select=function(){var K=this.getWindow().getSelection();K.removeAllRanges();for(var d=this.getTextRangeCount(),f=0;f<d;f++)K.addRange(this.getTextRange(f).getBrowserRangeObject())};
_.V.JSC$9248_removeContents=function(){Fc(this).forEach(function(K){K.JSC$9248_removeContents()})};
_.V.collapse=function(K){if(!this.isCollapsed()){var d=K?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;d.collapse(K);this.ranges_=[d];this.sortedRanges_=[d];this.browserRanges_=[d.getBrowserRangeObject()]}};
var N_=function(K){this.iterators_=null;this.currentIdx_=0;K&&(this.iterators_=Oh(K).map(function(d){return _.NiN(d)}));
RU.call(this,K?this.JSC$9254_getStartNode():null,!1,!0)};
_.Bd(N_,w0k);_.V=N_.prototype;_.V.JSC$9254_getStartNode=function(){return this.iterators_[0].JSC$9254_getStartNode()};
_.V.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.V.next=function(){for(;this.currentIdx_<this.iterators_.length;){var K=this.iterators_[this.currentIdx_],d=K.next();if(d.done)this.currentIdx_++;else return Uh(this,K.node,K.tagType,K.depth),d}return Z9};
_.V.JSC$9246_copyFrom=function(K){this.iterators_=_.ep(K.iterators_);N_.superClass_.JSC$9246_copyFrom.call(this,K)};
_.V.clone=function(){var K=new N_(null);K.JSC$9246_copyFrom(this);return K};var nJ6,Hd9;_.ic=function(){var K=window.getSelection();return K&&nJ6(K)};
nJ6=function(K){var d=!1;if(K.createRange)try{var f=K.createRange()}catch(D){return null}else if(K.rangeCount){if(K.rangeCount>1){f=new gk;d=K.rangeCount;for(var H=0;H<d;H++)f.browserRanges_.push(K.getRangeAt(H));return f}f=K.getRangeAt(0);d=Hd9(K.anchorNode,K.anchorOffset,K.focusNode,K.focusOffset)}else return null;return dYB(Kq2(f),d)};
_.Y1=function(K,d){return _.M_(K,d,K,d)};
_.tl=function(K,d,f,H){return _.M_(K,d,f,H)};
Hd9=function(K,d,f,H){if(K==f)return H<d;var D;if(K.nodeType==1&&d)if(D=K.childNodes[d])K=D,d=0;else if(_.Tp(K,f))return!0;if(f.nodeType==1&&H)if(D=f.childNodes[H])f=D,H=0;else if(_.Tp(f,K))return!1;return(Ez6(K,f)||d-H)>0};var oU=function(){_.iJ.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Om)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Om)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Om)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Om)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Om)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Om)(this.dispatchProgressEvent_,this)};
_.Bd(oU,_.iJ);oU.prototype.abort=function(){try{this.reader_.abort()}catch(K){throw new EMB(K,"aborting read");}};
oU.prototype.getError=function(){return this.reader_.error&&new EMB(this.reader_.error,"reading file")};
oU.prototype.dispatchProgressEvent_=function(K){this.dispatchEvent(new h8B(K,this))};
oU.prototype.disposeInternal=function(){oU.superClass_.disposeInternal.call(this);delete this.reader_};
var cy4=function(K){var d=new oU,f=idJ(d);d.reader_.readAsArrayBuffer(K);return f},ufB=function(K){var d=new oU,f=idJ(d);
d.reader_.readAsDataURL(K);return f},idJ=function(K){var d=new lJ;
K.listen("loadend",_.uB(function(f,H){var D=H.reader_.result,S=H.getError();D==null||S?f.errback(S):f.callback(D);H.dispose()},d,K));
return d};var $1=function(){_.iJ.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9288_eventHandler_=new _.Zt(this);this.JSC$9288_isInitialized_=!1};
_.Bd($1,_.iJ);var aEs=new _.Hk("d"),IEB=new _.Hk("beforedragstart"),UYH=new _.Hk("dragstart"),R0s=new _.Hk("beforedragmove"),FqB=new _.Hk("dragmove"),z0s=new _.Hk("beforedragend"),XGt=new _.Hk("dragend"),vJf=new _.Hk("e");$1.prototype.isDragging=function(){return!!this.JSC$9288_dragger_};
var Msf=function(K,d){d.dlgGrowthDirection_=0;d.dlgDragHoverClass_=void 0;d.dlgDragPermission=0;K.dragLists_.push(d)},PBN=function(K,d){K.getHandleForDragItem_=d};
$1.prototype.init=function(){if(!this.JSC$9288_isInitialized_){for(var K=this.dragLists_.length,d=0;d<K;d++)for(var f=_.Pc(this.dragLists_[d]),H=f.length,D=0;D<H;++D){var S=f[D],n=this.getHandleForDragItem_(S),u=_.DL(n);this.dragItemForHandle_[u]=S;this.dragItemHoverClasses_&&(this.JSC$9288_eventHandler_.listen(S,"mouseover",this.handleDragItemMouseover_),this.JSC$9288_eventHandler_.listen(S,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9288_eventHandler_.listen(n,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9288_eventHandler_.listen(n,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(S);this.JSC$9288_eventHandler_.listen(n,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9288_isInitialized_=!0}};
$1.prototype.disposeInternal=function(){this.JSC$9288_eventHandler_.dispose();for(var K=this.dragLists_.length,d=0;d<K;d++){var f=this.dragLists_[d];f.dlgGrowthDirection_=void 0;f.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;gJL(this);$1.superClass_.disposeInternal.call(this)};
var OdL=function(K,d){for(var f=K.dragLists_.length,H=0;H<f;H++){var D=K.dragLists_[H];D.dlgBounds_=hCo(D)}f=K.dragItems_.length;for(H=0;H<f;H++)D=K.dragItems_[H],D!=d&&(D.dlgBounds_=hCo(D))};
_.V=$1.prototype;
_.V.handlePotentialDragStart_=function(K){var d=_.DL(K.currentTarget);d=this.dragItemForHandle_[d];if(d.parentElement.dlgDragPermission!=2){this.currDragItem_=d;a:{d=this.currDragItem_;for(var f=d.cloneNode(!0),H=zp("TEXTAREA",d),D=zp("TEXTAREA",f),S=0;S<H.length;S++)D[S].value=H[S].value;switch(d.tagName){case "TR":d=_.R_("TABLE",null,_.R_("TBODY",null,f));break a;case "TD":case "TH":d=_.R_("TABLE",null,_.R_("TBODY",null,_.R_("TR",null,f)));break a;case "TEXTAREA":f.value=d.value;default:d=f;break a}d=
void 0}this.draggerEl_=d;this.draggerElClasses_&&bJ(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.oL(this.currDragItem_).body.appendChild(this.draggerEl_);f=_.E7(this.currDragItem_);d=this.draggerEl_;H=_.E7(d);if(f instanceof _.Nm){var n=f.y;f=f.x}tB(d,d.offsetLeft+(f-H.x),d.offsetTop+(Number(n)-H.y));this.JSC$9288_dragger_=new _.oZ(this.draggerEl_);_.$qt(this.JSC$9288_dragger_,this.hysteresisDistance_);
_.zG(this.JSC$9288_dragger_,"start",this.handleDragStart_,!1,this);_.zG(this.JSC$9288_dragger_,"end",this.handleDragEnd_,!1,this);_.zG(this.JSC$9288_dragger_,"earlycancel",this.JSC$9290_cleanup_,!1,this);this.dispatchEvent(new Eh(aEs,this,K,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_));this.JSC$9288_dragger_.startDrag(K)}};
_.V.handleDragStart_=function(K){if(this.dispatchEvent(new Eh(IEB,this,K.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.tpk(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?bJ(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var d=xJk(this.draggerEl_);this.draggerEl_.halfWidth=d.width/2;this.draggerEl_.halfHeight=d.height/2;d=this.draggerEl_.getBoundingClientRect();
var f=K.clientY,H=EFk(this.JSC$9288_dragger_,K.clientX);if(H>d.right){var D=this.currDragItem_.getBoundingClientRect();this.JSC$9288_dragger_.deltaX=H-(H-D.left)/D.width*d.width}f=h78(this.JSC$9288_dragger_,f);f>d.bottom&&(this.JSC$9288_dragger_.deltaY+=f-d.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";OdL(this,this.currDragItem_);this.currDragItem_.style.display="";_.zG(this.JSC$9288_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Eh(UYH,
this,K.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_))}else K.preventDefault(),this.JSC$9290_cleanup_()};
_.V.handleDragMove_=function(K){var d=_.E7(this.draggerEl_);d=new _.Nm(d.x+this.draggerEl_.halfWidth,d.y+this.draggerEl_.halfHeight);a:{var f=null;if(this.currDragItem_.style.display!="none"){f=this.currDragItem_.parentNode;var H=hCo(f);if(NNs(d,H))break a}H=this.dragLists_.length;for(var D=0;D<H;D++){var S=this.dragLists_[D];if(S!=f&&NNs(d,S.dlgBounds_)){f=S;break a}}f=null}if(f){if(f==null)throw Error("Td");H=0;D=!1;S=void 0;switch(f.dlgGrowthDirection_){case 0:H=d.y;var n=Yx2;var u=tsB;break;case 4:D=
!0;case 2:H=d.x;n=oJt;u=tsB;break;case 5:D=!0;case 3:H=d.x,n=$Yv,u=EJB}for(var a=null,R,F=_.Pc(f),z=F.length,v=0;v<z;v++){var g=F[v];if(g!=this.currDragItem_){var N=n(g.dlgBounds_);if(D){var h=h04(g,d);S===void 0&&(S=h);u(H,N)&&(R==void 0||h<S||h==S&&(u(N,R)||N==R))&&(a=g,R=N);h<S&&(S=h)}else u(H,N)&&(R==void 0||u(N,R))&&(a=g,R=N)}}n=a!==null&&h04(a,d)>S?null:a}else n=null;if(!this.dispatchEvent(new Eh(R0s,this,K,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_,d,f,n)))return!1;if(f&&f.dlgDragPermission!=
1)this.currDragItem_.parentNode==f&&_.tpk(this.currDragItem_)==n||f.insertBefore(this.currDragItem_,n),this.currDragItem_.style.display="",f.dlgDragHoverClass_&&_.CZ(f,f.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",u=this.dragLists_.length,R=0;R<u;R++)H=this.dragLists_[R],H.dlgDragHoverClass_&&_.Q2(H,H.dlgDragHoverClass_);f!=this.currHoverList_&&(this.currHoverList_=f,OdL(this,this.currDragItem_));this.dispatchEvent(new Eh(FqB,this,K,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_,
d,f,n));return!1};
_.V.JSC$9290_cleanup_=function(){gJL(this);this.JSC$9288_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var K=this.dragLists_.length,d=0;d<K;d++)this.dragLists_[d].dlgBounds_=null;K=this.dragItems_.length;for(d=0;d<K;d++)this.dragItems_[d].dlgBounds_=null};
_.V.handleDragEnd_=function(K){if(!this.dispatchEvent(new Eh(z0s,this,K,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_)))return!1;gJL(this);this.dispatchEvent(new Eh(XGt,this,K,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_));this.JSC$9290_cleanup_();return!0};
var gJL=function(K){_.kh(K.JSC$9288_dragger_);var d=K.draggerEl_&&K.draggerEl_.parentElement;K.draggerEl_&&_.FE(K.draggerEl_);K.currDragItem_&&K.currDragItem_.style.display=="none"&&(K.origList_.insertBefore(K.currDragItem_,K.origNextItem_),K.currDragItem_.style.display="");K.currDragItemClasses_&&K.currDragItem_?EQB(K.currDragItem_,K.currDragItemClasses_||[]):K.currDragItem_&&(K.currDragItem_.style.visibility="");for(var f=K.dragLists_.length,H=0;H<f;H++){var D=K.dragLists_[H];D.dlgDragHoverClass_&&
_.Q2(D,D.dlgDragHoverClass_)}d&&K.dispatchEvent(new Eh(vJf,K,null,K.currDragItem_,K.draggerEl_,K.JSC$9288_dragger_))};
_.V=$1.prototype;_.V.getHandleForDragItem_=function(K){return K};
_.V.handleDragItemMouseover_=function(K){bJ(K.currentTarget,this.dragItemHoverClasses_||[])};
_.V.handleDragItemMouseout_=function(K){EQB(K.currentTarget,this.dragItemHoverClasses_||[])};
_.V.handleDragItemHandleMouseover_=function(K){bJ(K.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.V.handleDragItemHandleMouseout_=function(K){EQB(K.currentTarget,this.dragItemHandleHoverClasses_||[])};
var NNs=function(K,d){return K.x>d.left&&K.x<d.left+d.width&&K.y>d.top&&K.y<d.top+d.height},h04=function(K,d){K=K.dlgBounds_;
return Math.abs(d.y-(K.top+(K.height-1)/2))},Yx2=function(K){return K.top+K.height-1},oJt=function(K){return K.left+K.width-1},$Yv=function(K){return K.left||0},tsB=function(K,d){return K<d},EJB=function(K,d){return K>d},Eh=function(K,d,f,H,D,S){_.D5.call(this,K);
this.event=f;this.currDragItem=H;this.draggerEl=D;this.JSC$9292_dragger=S};
_.Bd(Eh,_.D5);_.Bd(eW,_.gG);var bdv=new _.Nm(0,0);eW.prototype.JSC$9296_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
eW.prototype.JSC$9296_onMouseMove=function(K){var d=this.containerIsActuallyContent_?bdv:cR(uW(this.containerNode_)),f=this.horizontalScrolling_?this.calculateScrollDelta(K.clientX+d.x,this.scrollBounds_.left,this.scrollBounds_.width):0,H=this.calculateScrollDelta(K.clientY+d.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=f;this.scrollDelta_.y=H;!(f=!f&&!H)&&(f=this.constrainScroll_)&&(f=K.clientX+d.x,K=K.clientY+d.y,d=this.containerBounds_,f=!(d.left<=f&&d.left+d.width>=
f&&d.top<=K&&d.top+d.height>=K));f?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
eW.prototype.calculateScrollDelta=function(K,d,f){var H=0;K<d?H=-8:K>d+f&&(H=8);return H};
eW.prototype.disposeInternal=function(){eW.superClass_.disposeInternal.call(this);this.JSC$9294_eventHandler_.dispose();this.scrollTimer_.dispose()};var mYs={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"}}},hl=mYs;hl=mYs;var bV={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 lEk=function(){},G0=function(K){if(typeof K=="number"){var d=new lEk;
d.standardOffset_=K;var f=K;if(f==0)f="Etc/GMT";else{var H=["Etc/GMT",f<0?"-":"+"];f=Math.abs(f);H.push(Math.floor(f/60)%100);f%=60;f!=0&&H.push(":",_.LO(f,2));f=H.join("")}d.timeZoneId_=f;f=K;f==0?f="UTC":(H=["UTC",f<0?"+":"-"],f=Math.abs(f),H.push(Math.floor(f/60)%100),f%=60,f!=0&&H.push(":",f),f=H.join(""));K=Wq9(K);d.tzNames_=[f,f];d.tzNamesExt_={STD_LONG_NAME_GMT:K,STD_GENERIC_LOCATION:K};d.transitions_=[];return d}d=new lEk;d.timeZoneId_=K.id;d.standardOffset_=-K.std_offset;d.tzNames_=K.names;
d.tzNamesExt_=K.names_ext;d.transitions_=K.transitions;return d},Wq9=function(K){var d=["GMT"];
d.push(K<=0?"+":"-");K=Math.abs(K);d.push(_.LO(Math.floor(K/60)%100,2),":",_.LO(K%60,2));return d.join("")},Gu4=function(K,d){d=Date.UTC(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate(),d.getUTCHours(),d.getUTCMinutes())/36E5;
for(var f=0;f<K.transitions_.length&&d>=K.transitions_[f];)f+=2;return f==0?0:K.transitions_[f-1]},Ay4=function(K,d){K=K.standardOffset_-Gu4(K,d);
return K===-1440?0:K};var Ap=function(K,d){this.patternParts_=[];this.JSC$9307_dateTimeSymbols_=d||U8;typeof K=="number"?TNf(this,K):ryf(this,K)},qxH=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],m1=function(K){return K.getHours?K.getHours():0},ryf=function(K,d){for(prp&&(d=d.replace(/\u200f/g,""));d;){for(var f=d,H=0;H<qxH.length;++H){var D=d.match(qxH[H]);
if(D){var S=D[0];d=d.substring(S.length);H==0&&(S=="''"?S="'":(S=S.substring(1,D[1]=="'"?S.length-1:S.length),S=S.replace(/''/g,"'")));K.patternParts_.push({text:S,type:H});break}}if(f===d)throw Error("Ud`"+d);}};
Ap.prototype.format=function(K,d){if(!K)throw Error("Vd");var f=d?(K.getTimezoneOffset()-Ay4(d,K))*6E4:0,H=f?new Date(K.getTime()+f):K,D=H;d&&H.getTimezoneOffset()!=K.getTimezoneOffset()&&(H=new Date(H.getTime()+(H.getTimezoneOffset()-K.getTimezoneOffset())*6E4),D=new Date(K.getTime()+(f+(f>0?-864E5:864E5))));f=[];for(var S=0;S<this.patternParts_.length;++S){var n=this.patternParts_[S].text;1==this.patternParts_[S].type?f.push(QS9(this,n,K,H,D,d)):f.push(n)}return f.join("")};
var TNf=function(K,d){if(d<4)var f=K.JSC$9307_dateTimeSymbols_.DATEFORMATS[d];else if(d<8)f=K.JSC$9307_dateTimeSymbols_.TIMEFORMATS[d-4];else if(d<12)f=K.JSC$9307_dateTimeSymbols_.DATETIMEFORMATS[d-8],f=f.replace("{1}",K.JSC$9307_dateTimeSymbols_.DATEFORMATS[d-8]),f=f.replace("{0}",K.JSC$9307_dateTimeSymbols_.TIMEFORMATS[d-8]);else if(d===12)f=K.JSC$9307_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(d===13)f=K.JSC$9307_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{TNf(K,10);return}ryf(K,f)},lV=function(K,d){d=String(d);
K=K.JSC$9307_dateTimeSymbols_||U8;if(K.ZERODIGIT!==void 0&&!exo){for(var f=[],H=0;H<d.length;H++){var D=d.charCodeAt(H);f.push(48<=D&&D<=57?String.fromCharCode(K.ZERODIGIT+D-48):d.charAt(H))}d=f.join("")}return d},exo=!1,prp=!1,CBN=function(K,d,f,H){f=f.getFullYear();
f<=0&&H&&(f=1-f);return lV(K,jS4(f,d))},jS4=function(K,d){d==2&&(K%=100);
K<0&&d++;return _.LO(K,d)},WE=function(K){if(!(K.getHours&&K.getSeconds&&K.getMinutes))throw Error("Wd");
},xYk=function(K,d){WE(d);
d=m1(d);return K.JSC$9307_dateTimeSymbols_.AMPMS[d>=12&&d<24?1:0]},QS9=function(K,d,f,H,D,S){var n=d.length;
switch(d.charAt(0)){case "G":return f=H.getFullYear()>0?1:0,n>=4?K.JSC$9307_dateTimeSymbols_.ERANAMES[f]:K.JSC$9307_dateTimeSymbols_.ERAS[f];case "y":return CBN(K,n,H,!0);case "Y":return f=(new Date(BL4(H.getFullYear(),H.getMonth(),H.getDate(),K.JSC$9307_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,K.JSC$9307_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),n==2&&(f%=100),lV(K,jS4(f,n));case "u":return CBN(K,n,H,!1);case "M":a:switch(f=H.getMonth(),n){case 5:n=K.JSC$9307_dateTimeSymbols_.NARROWMONTHS[f];break a;
case 4:n=K.JSC$9307_dateTimeSymbols_.MONTHS[f];break a;case 3:n=K.JSC$9307_dateTimeSymbols_.SHORTMONTHS[f];break a;default:n=lV(K,_.LO(f+1,n))}return n;case "k":return WE(D),lV(K,_.LO(m1(D)||24,n));case "S":return lV(K,(D.getMilliseconds()/1E3).toFixed(Math.min(3,n)).slice(2)+(n>3?_.LO(0,n-3):""));case "E":return f=H.getDay(),n>=4?K.JSC$9307_dateTimeSymbols_.WEEKDAYS[f]:K.JSC$9307_dateTimeSymbols_.SHORTWEEKDAYS[f];case "a":return xYk(K,D);case "b":return xYk(K,D);case "B":return xYk(K,D);case "h":return WE(D),
lV(K,_.LO(m1(D)%12||12,n));case "K":return WE(D),lV(K,_.LO(m1(D)%12,n));case "H":return WE(D),lV(K,_.LO(m1(D),n));case "c":a:switch(f=H.getDay(),n){case 5:n=K.JSC$9307_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[f];break a;case 4:n=K.JSC$9307_dateTimeSymbols_.STANDALONEWEEKDAYS[f];break a;case 3:n=K.JSC$9307_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[f];break a;default:n=lV(K,_.LO(f,1))}return n;case "L":a:switch(f=H.getMonth(),n){case 5:n=K.JSC$9307_dateTimeSymbols_.STANDALONENARROWMONTHS[f];break a;
case 4:n=K.JSC$9307_dateTimeSymbols_.STANDALONEMONTHS[f];break a;case 3:n=K.JSC$9307_dateTimeSymbols_.STANDALONESHORTMONTHS[f];break a;default:n=lV(K,_.LO(f+1,n))}return n;case "Q":return f=Math.floor(H.getMonth()/3),n<4?K.JSC$9307_dateTimeSymbols_.SHORTQUARTERS[f]:K.JSC$9307_dateTimeSymbols_.QUARTERS[f];case "d":return lV(K,_.LO(H.getDate(),n));case "m":return WE(D),lV(K,_.LO(D.getMinutes?D.getMinutes():0,n));case "s":return WE(D),lV(K,_.LO(D.getSeconds(),n));case "v":return(S||G0(f.getTimezoneOffset())).timeZoneId_;
case "V":return K=S||G0(f.getTimezoneOffset()),n<=2?K.timeZoneId_:Gu4(K,f)>0?K.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?K.tzNamesExt_.DST_GENERIC_LOCATION:K.tzNamesExt_.DST_GENERIC_LOCATION:K.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?K.tzNamesExt_.STD_GENERIC_LOCATION:K.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return f=BL4(D.getFullYear(),D.getMonth(),D.getDate(),K.JSC$9307_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,K.JSC$9307_dateTimeSymbols_.FIRSTDAYOFWEEK),lV(K,_.LO(Math.floor(Math.round((f-(new Date((new Date(f)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,n));case "z":return K=S||G0(f.getTimezoneOffset()),n<4?K.tzNames_[Gu4(K,f)>0?2:0]:K.tzNames_[Gu4(K,f)>0?3:1];case "Z":return d=S||G0(f.getTimezoneOffset()),n<4?(n=-Ay4(d,f),K=[n<0?"-":"+"],n=Math.abs(n),K.push(_.LO(Math.floor(n/60)%100,2),_.LO(n%60,2)),n=K.join("")):n=lV(K,Wq9(Ay4(d,f))),n;default:return""}};var Lqf=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,BNk=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,KOu=function(K){this.patternParts_=[];this.JSC$9316_dateTimeSymbols_=U8;if(typeof K=="number"){K>11&&(K=10);if(K<4)var d=this.JSC$9316_dateTimeSymbols_.DATEFORMATS[K];else K<8?d=this.JSC$9316_dateTimeSymbols_.TIMEFORMATS[K-4]:(d=this.JSC$9316_dateTimeSymbols_.DATETIMEFORMATS[K-8],d=d.replace("{1}",this.JSC$9316_dateTimeSymbols_.DATEFORMATS[K-8]),d=d.replace("{0}",this.JSC$9316_dateTimeSymbols_.TIMEFORMATS[K-
8]));Jys(this,d)}else Jys(this,K)},Jys=function(K,d){for(var f=!1,H="",D=0;D<d.length;D++){var S=d.charAt(D);
if(Lqf.test(S))for(H.length>0&&(K.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1}),H=""),K.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});D<d.length-1&&d.charAt(D+1)==" ";)D++;else if(f)S=="'"?D+1<d.length&&d.charAt(D+1)=="'"?(H+="'",D++):f=!1:H+=S;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(S)>=0){H.length>0&&(K.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1}),H="");for(var n=d.charAt(D),u=D+1;u<d.length&&d.charAt(u)==n;)u++;n=u-D;n<=0?u=!1:(u="MydhHmsSDkK".indexOf(S),
u=u>0||u==0&&n<3);K.patternParts_.push({text:S,count:n,abutStart:!1,numeric:u});D+=n-1}else S=="'"?D+1<d.length&&d.charAt(D+1)=="'"?(H+="'",D++):f=!0:H+=S}H.length>0&&K.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1});d=!1;for(f=0;f<K.patternParts_.length;f++)K.patternParts_[f].numeric?!d&&f+1<K.patternParts_.length&&K.patternParts_[f+1].numeric&&(d=!0,K.patternParts_[f].abutStart=!0):d=!1};
KOu.prototype.parse=function(K,d,f){var H=!1,D=!1;f&&(H=f.predictive||!1,D=f.validate||!1);if(H)for(f=0;f<this.patternParts_.length;f++){var S=this.patternParts_[f];if(S.count>0&&("abBhHkKm".indexOf(S.text.charAt(0))<0||S.count>2||S.abutStart))throw Error("Xd`"+S.text.charAt(0));}S=new sSs;f=[0];S.dayPeriodIndex=-1;for(var n=0;n<this.patternParts_.length&&!(H&&f[0]>=K.length);n++){if(this.patternParts_[n].count==0){a:{var u=K;var a=f,R=this.patternParts_[n],F=H;if(R.text.match(Lqf)!=null){if(R=a[0],
ku9(u,a),a[0]>R){u=!0;break a}}else{if(u.indexOf(R.text,a[0])==a[0]){a[0]+=R.text.length;u=!0;break a}if(F&&R.text.indexOf(u.substring(a[0]))==0){a[0]+=u.length-a[0];u=!0;break a}}u=!1}if(u)continue;return 0}if(this.patternParts_[n].abutStart){a:{a=K;R=f;F=n;var z=R[0],v=0;for(u=F;u<this.patternParts_.length;u++){var g=this.patternParts_[u],N=g.count;if(N===0)break;if(u==F&&(N-=v,v++,N==0)){u=0;break a}var h=u>F&&g.numeric,m=R[0];if(!wGL(this,a,R,g,N,S,!1)||h&&R[0]-m<N)u=F-1,R[0]=z}u-=F}if(u<=0)return 0;
n+=u-1}else if(!wGL(this,K,f,this.patternParts_[n],0,S,H))return 0}a:{K=D;if(d==null)throw Error("Yd");S.era!=void 0&&S.year!=void 0&&S.era==0&&S.year>0&&(S.year=-(S.year-1));S.year!=void 0&&d.setFullYear(S.year);H=d.getDate();d.setDate(1);S.month!=void 0&&d.setMonth(S.month);S.day!=void 0?d.setDate(S.day):(D=$AB(d.getFullYear(),d.getMonth()),d.setDate(H>D?D:H));typeof d.setHours==="function"&&(S.hours==void 0&&(S.hours=d.getHours()),S.hours<12&&(S.ampm!=void 0&&S.ampm>0?S.hours+=12:S.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(S.dayPeriodName)||["night1","night2"].includes(S.dayPeriodName)&&S.hours>=6)&&(S.hours+=12)),d.setHours(S.hours));typeof d.setMinutes==="function"&&S.minutes!=void 0&&d.setMinutes(S.minutes);typeof d.setSeconds==="function"&&S.seconds!=void 0&&d.setSeconds(S.seconds);typeof d.setMilliseconds==="function"&&S.milliseconds!=void 0&&d.setMilliseconds(S.milliseconds);if(K&&(S.year&&S.year!=d.getFullYear()||S.month&&S.month!=
d.getMonth()||S.day&&S.day!=d.getDate()||S.hours&&S.hours>=24||S.minutes&&S.minutes>=60||S.seconds&&S.seconds>=60||S.milliseconds&&S.milliseconds>=1E3))d=!1;else{S.tzOffset!=void 0&&d.setTime(d.getTime()+(S.tzOffset-d.getTimezoneOffset())*60*1E3);S.ambiguousYear&&(K=new Date,K.setFullYear(K.getFullYear()-80),d.getTime()<K.getTime()&&d.setFullYear(K.getFullYear()+100));if(S.dayOfWeek!=void 0)if(S.day==void 0)S=(7+S.dayOfWeek-d.getDay())%7,S>3&&(S-=7),K=d.getMonth(),d.setDate(d.getDate()+S),d.getMonth()!=
K&&d.setDate(d.getDate()+(S>0?-7:7));else if(S.dayOfWeek!=d.getDay()){d=!1;break a}d=!0}}return d?f[0]:0};
var wGL=function(K,d,f,H,D,S,n){ku9(d,f);if(H.numeric&&D>0&&f[0]+D>d.length)return!1;switch(H.text.charAt(0)){case "G":return G3(d,f,[K.JSC$9316_dateTimeSymbols_.ERAS],function(u){return S.era=u}),!0;
case "M":case "L":return Zd2(K,d,f,D,H,S);case "E":return G3(d,f,[K.JSC$9316_dateTimeSymbols_.WEEKDAYS,K.JSC$9316_dateTimeSymbols_.SHORTWEEKDAYS],function(u){return S.dayOfWeek=u});
case "B":case "b":return D=[],K=[[].concat(K.JSC$9316_dateTimeSymbols_.AMPMS)],D.push("isAm"),D.push("isPm"),d=G3(d,f,K,function(u){return S.dayPeriodIndex=u},n),S.dayPeriodName=D[S.dayPeriodIndex],n?d:!0;
case "a":return d=G3(d,f,[K.JSC$9316_dateTimeSymbols_.AMPMS],function(u){return S.ampm=u},n),n?d:!0;
case "y":return e0f(K,d,f,H,D,S);case "Q":return G3(d,f,[K.JSC$9316_dateTimeSymbols_.QUARTERS,K.JSC$9316_dateTimeSymbols_.SHORTQUARTERS],function(u){S.month=u*3;S.day=1});
case "d":return Al(K,d,f,H,D,function(u){S.day=u}),!0;
case "S":return pGL(K,d,f,D,S);case "h":case "K":case "H":case "k":return d=Al(K,d,f,H,D,function(u){S.hours=H.text.charAt(0)==="h"&&u===12?0:u},n),n?d:!0;
case "m":return d=Al(K,d,f,H,D,function(u){S.minutes=u},n),n?d:!0;
case "s":return Al(K,d,f,H,D,function(u){S.seconds=u}),!0;
case "z":case "Z":case "v":return KSL(K,d,f,S);default:return!1}},e0f=function(K,d,f,H,D,S){var n=f[0];
D=T3(K,d,f,D);D===null&&(D=T3(K,d,f,0,!0));if(D===null)return!1;D>=0&&f[0]-n==2&&H.count==2?(K=D,d=(new Date).getFullYear()-80,f=d%100,S.ambiguousYear=K==f,K+=Math.floor(d/100)*100+(K<f?100:0),S.year=K):S.year=D;return!0},Zd2=function(K,d,f,H,D,S){return D.numeric&&Al(K,d,f,D,H,function(n){S.month=n-1})?!0:G3(d,f,[K.JSC$9316_dateTimeSymbols_.MONTHS,
K.JSC$9316_dateTimeSymbols_.STANDALONEMONTHS,K.JSC$9316_dateTimeSymbols_.SHORTMONTHS,K.JSC$9316_dateTimeSymbols_.STANDALONESHORTMONTHS],function(n){S.month=n})},pGL=function(K,d,f,H,D){var S=f[0];
K=T3(K,d,f,H);if(K===null)return!1;f=f[0]-S;D.milliseconds=f<3?K*Math.pow(10,3-f):Math.round(K/Math.pow(10,f-3));return!0},KSL=function(K,d,f,H){d.indexOf("GMT",f[0])==f[0]&&(f[0]+=3);
if(f[0]>=d.length)return H.tzOffset=0,!0;var D=f[0],S=T3(K,d,f,0,!0);if(S===null)return!1;if(f[0]<d.length&&d.charAt(f[0])==":"){var n=S*60;f[0]++;S=T3(K,d,f,0);if(S===null)return!1;n+=S}else n=S,n=n<24&&f[0]-D<=3?n*60:n%100+n/100*60;H.tzOffset=-n;return!0},Al=function(K,d,f,H,D,S,n){n=n||!1;
var u=f[0];K=T3(K,d,f,D);if(K===null)return!1;if(n&&f[0]-u<H.count){if(f[0]<d.length)return!1;K*=Math.pow(10,H.count-(f[0]-u))}S(K);return!0},G3=function(K,d,f,H,D){D=D||!1;
for(var S,n=0;n<f.length;n++){S=d;for(var u=f[n],a=D,R=0,F=null,z=K.substring(S[0]).toLowerCase(),v=0;v<u.length;v++){var g=u[v].toLowerCase();if(a&&g.indexOf(z)==0){R=z.length;F=v;break}u[v].length>R&&z.indexOf(g)==0&&(R=u[v].length,F=v)}F!==null&&(S[0]+=R);S=F;if(S!==null)return H(S),!0}return!1},ku9=function(K,d){(K=K.substring(d[0]).match(BNk))&&(d[0]+=K[0].length)},T3=function(K,d,f,H,D){d=H>0?d.substring(0,f[0]+H):d;
D=D||!1;if(K.JSC$9316_dateTimeSymbols_.ZERODIGIT){H=[];for(var S=f[0];S<d.length;S++){var n=d.charCodeAt(S)-K.JSC$9316_dateTimeSymbols_.ZERODIGIT;H.push(0<=n&&n<=9?String.fromCharCode(n+48):d.charAt(S))}d=H.join("")}else d=d.substring(f[0]);K=d.match(new RegExp("^"+(D?"[+-]?":"")+"\\d+"));if(!K)return null;f[0]+=K[0].length;return parseInt(K[0],10)},sSs=function(){};
sSs.prototype.ambiguousYear=!1;_.dQ4={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 fR8={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"},HF4=fR8,DQB=fR8;DQB=HF4=fR8;var SVL,rk,Qw,Xqz,q_,V3v;
_.mS=function(K,d,f,H){var D;if(D=d){a:if(d&&d.length===3){for(D=0;D<3;D++){var S=d[D];if(S<"A"||S>"Z"&&S<"a"||S>"z"){D=!1;break a}}D=!0}else D=!1;D=!D}if(D)throw new TypeError("Zd");this.intlCurrencyCode_=d?d.toUpperCase():null;this.currencyStyle_=f||0;this.overrideNumberFormatSymbols_=H||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_=rk(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof K==="number")switch(K){case 1:q_(this,rk(this).DECIMAL_PATTERN);break;case 2:q_(this,rk(this).SCIENTIFIC_PATTERN);break;case 3:q_(this,rk(this).PERCENT_PATTERN);break;case 4:K=rk(this).CURRENCY_PATTERN;d=["0"];if(f=
bV[Qw(this)]){f=f[0]&7;if(f>0)for(d.push("."),H=0;H<f;H++)d.push("0");K=K.replace(/0.00/g,d.join(""))}q_(this,K);break;case 5:V3v(this,1);break;case 6:V3v(this,2);break;default:throw Error("be");}else q_(this,K)};
SVL=!1;rk=function(K){return K.overrideNumberFormatSymbols_||(SVL?DQB:HF4)};
Qw=function(K){return K.intlCurrencyCode_||rk(K).DEF_CURRENCY_CODE};
Xqz=function(K,d){if(d>308)throw Error("ae`"+d);K.maximumFractionDigits_=d;return K};
q_=function(K,d){var f=[0];K.positivePrefix_=ypk(K,d,f);for(var H=f[0],D=-1,S=0,n=0,u=0,a=-1,R=d.length,F=!0;f[0]<R&&F;f[0]++)switch(d.charAt(f[0])){case "#":n>0?u++:S++;a>=0&&D<0&&a++;break;case "0":if(u>0)throw Error("he`"+d);n++;a>=0&&D<0&&a++;break;case ",":a>0&&K.groupingArray_.push(a);a=0;break;case ".":if(D>=0)throw Error("ie`"+d);D=S+n+u;break;case "E":if(K.useExponentialNotation_)throw Error("je`"+d);K.useExponentialNotation_=!0;K.minExponentDigits_=0;f[0]+1<R&&d.charAt(f[0]+1)=="+"&&(f[0]++,
K.useSignForPositiveExponent_=!0);for(;f[0]+1<R&&d.charAt(f[0]+1)=="0";)f[0]++,K.minExponentDigits_++;if(S+n<1||K.minExponentDigits_<1)throw Error("ke`"+d);F=!1;break;default:f[0]--,F=!1}n==0&&S>0&&D>=0&&(n=D,n==0&&n++,u=S-n,S=n-1,n=1);if(D<0&&u>0||D>=0&&(D<S||D>S+n)||a==0)throw Error("le`"+d);u=S+n+u;K.maximumFractionDigits_=D>=0?u-D:0;D>=0&&(K.minimumFractionDigits_=S+n-D,K.minimumFractionDigits_<0&&(K.minimumFractionDigits_=0));K.minimumIntegerDigits_=(D>=0?D:u)-S;K.useExponentialNotation_&&(K.maximumIntegerDigits_=
S+K.minimumIntegerDigits_,K.maximumFractionDigits_==0&&K.minimumIntegerDigits_==0&&(K.minimumIntegerDigits_=1));K.groupingArray_.push(Math.max(0,a));K.decimalSeparatorAlwaysShown_=D==0||D==u;H=f[0]-H;K.positiveSuffix_=ypk(K,d,f);f[0]<d.length&&d.charAt(f[0])==";"?(f[0]++,K.multiplier_!=1&&(K.negativePercentSignExpected_=!0),K.negativePrefix_=ypk(K,d,f),f[0]+=H,K.negativeSuffix_=ypk(K,d,f)):(K.negativePrefix_+=K.positivePrefix_,K.negativeSuffix_+=K.positiveSuffix_)};
V3v=function(K,d){K.compactStyle_=d;q_(K,rk(K).DECIMAL_PATTERN);K.minimumFractionDigits_=0;Xqz(K,2);if(K.minimumFractionDigits_>0)throw Error("$d");K.significantDigits_=2};
_.mS.prototype.parse=function(K,d){d=d||[0];if(this.compactStyle_!==0)throw Error("ce");K=K.replace(/ |\u202f/g,"\u00a0");var f=K.indexOf(this.positivePrefix_,d[0])==d[0],H=K.indexOf(this.negativePrefix_,d[0])==d[0];f&&H&&(this.positivePrefix_.length>this.negativePrefix_.length?H=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(f=!1));f?d[0]+=this.positivePrefix_.length:H&&(d[0]+=this.negativePrefix_.length);if(K.indexOf(rk(this).INFINITY,d[0])==d[0]){d[0]+=rk(this).INFINITY.length;var D=
Infinity}else{D=K;var S=!1,n=!1,u=!1,a=-1,R=1,F=rk(this).DECIMAL_SEP,z=rk(this).GROUP_SEP,v=rk(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("de");z=z.replace(/\u202f/g,"\u00a0");for(var g="";d[0]<D.length;d[0]++){var N=D.charAt(d[0]),h=no2(this,N);if(h>=0&&h<=9)g+=h,u=!0;else if(N==F.charAt(0)){if(S||n)break;g+=".";S=!0}else if(N==z.charAt(0)&&("\u00a0"!=z.charAt(0)||d[0]+1<D.length&&no2(this,D.charAt(d[0]+1))>=0)){if(S||n)break}else if(N==v.charAt(0)){if(n)break;g+="E";n=!0;a=d[0]}else if(N==
"+"||N=="-"){if(u&&a!=d[0]-1)break;g+=N}else if(this.multiplier_==1&&N==rk(this).PERCENT.charAt(0)){if(R!=1)break;R=100;if(u){d[0]++;break}}else if(this.multiplier_==1&&N==rk(this).PERMILL.charAt(0)){if(R!=1)break;R=1E3;if(u){d[0]++;break}}else break}this.multiplier_!=1&&(R=this.multiplier_);D=parseFloat(g)/R}if(f){if(K.indexOf(this.positiveSuffix_,d[0])!=d[0])return NaN;d[0]+=this.positiveSuffix_.length}else if(H){if(K.indexOf(this.negativeSuffix_,d[0])!=d[0])return NaN;d[0]+=this.negativeSuffix_.length}return H?
-D:D};
_.mS.prototype.format=function(K){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ee");if(isNaN(K))return rk(this).NAN;var d=[];var f=K;if(this.compactStyle_==0)f=j2;else{f=Math.abs(f);var H=iFt(this,f<=1?0:cpJ(f)).divisorBase;f=iFt(this,H+cpJ(usN(this,CT(f,-H)).intValue))}K=CT(K,-f.divisorBase);(H=K<0||K==0&&1/K<0)?f.negative_prefix?d.push(f.negative_prefix):(d.push(f.prefix),d.push(this.negativePrefix_)):(d.push(f.prefix),d.push(this.positivePrefix_));if(isFinite(K))if(K*=
H?-1:1,K*=this.multiplier_,this.useExponentialNotation_){var D=K;if(D==0)aRN(this,D,this.minimumIntegerDigits_,d),IRL(this,0,d);else{var S=Math.floor(Math.log(D)/Math.log(10)+2E-15);D=CT(D,-S);var n=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(n=S%this.maximumIntegerDigits_,n<0&&(n=this.maximumIntegerDigits_+n),D=CT(D,n),S-=n,n=1):this.minimumIntegerDigits_<1?(S++,D=CT(D,-1)):(S-=this.minimumIntegerDigits_-1,D=CT(D,this.minimumIntegerDigits_-
1));aRN(this,D,n,d);IRL(this,S,d)}}else aRN(this,K,this.minimumIntegerDigits_,d);else d.push(rk(this).INFINITY);H?f.negative_suffix?d.push(f.negative_suffix):(isFinite(K)&&d.push(f.suffix),d.push(this.negativeSuffix_)):(isFinite(K)&&d.push(f.suffix),d.push(this.positiveSuffix_));return d.join("")};
var usN=function(K,d){var f=CT(d,K.maximumFractionDigits_);K.significantDigits_>0&&(f=UQs(f,K.significantDigits_,K.maximumFractionDigits_));f=Math.round(f);if(isFinite(f)){var H=Math.floor(CT(f,-K.maximumFractionDigits_));f=Math.floor(f-CT(H,K.maximumFractionDigits_));if(f<0||f>=CT(1,K.maximumFractionDigits_))H=Math.round(d),f=0}else H=d,f=0;return{intValue:H,fracValue:f}},aRN=function(K,d,f,H){if(K.minimumFractionDigits_>K.maximumFractionDigits_)throw Error("ee");
H||(H=[]);d=usN(K,d);var D=d.intValue,S=d.fracValue,n=K.minimumFractionDigits_>0||S>0||!1;d=K.minimumFractionDigits_;n&&(d=K.minimumFractionDigits_);for(var u="",a=D;a>1E20;)u="0"+u,a=Math.round(CT(a,-1));u=a+u;var R=rk(K).DECIMAL_SEP;a=rk(K).ZERO_DIGIT.codePointAt(0);var F=u.length,z=0;if(D>0||f>0){for(D=F;D<f;D++)H.push(String.fromCodePoint(a));if(K.groupingArray_.length>=2)for(f=1;f<K.groupingArray_.length;f++)z+=K.groupingArray_[f];f=F-z;if(f>0){D=K.groupingArray_;z=F=0;for(var v,g=rk(K).GROUP_SEP,
N=u.length,h=0;h<N;h++)if(H.push(String.fromCodePoint(a+Number(u.charAt(h)))),N-h>1)if(v=D[z],h<f){var m=f-h;(v===1||v>0&&m%v===1)&&H.push(g)}else z<D.length&&(h===f?z+=1:v===h-f-F+1&&(H.push(g),F+=v,z+=1))}else{f=u;u=K.groupingArray_;D=rk(K).GROUP_SEP;v=f.length;g=[];for(F=u.length-1;F>=0&&v>0;F--){z=u[F];for(N=0;N<z&&v-N-1>=0;N++)g.push(String.fromCodePoint(a+Number(f.charAt(v-N-1))));v-=z;v>0&&g.push(D)}H.push.apply(H,g.reverse())}}else n||H.push(String.fromCodePoint(a));(K.decimalSeparatorAlwaysShown_||
n)&&H.push(R);S=String(S);n=S.split("e+");n.length==2&&(S=String(UQs(parseFloat(n[0]),K.significantDigits_,1)),S=S.replace(".",""),S+=(0,_.i4p)("0",parseInt(n[1],10)-S.length+1));K.maximumFractionDigits_+1>S.length&&(S="1"+(0,_.i4p)("0",K.maximumFractionDigits_-S.length)+S);for(K=S.length;S.charAt(K-1)=="0"&&K>d+1;)K--;for(d=1;d<K;d++)H.push(String.fromCodePoint(a+Number(S.charAt(d))))},IRL=function(K,d,f){f.push(rk(K).EXP_SYMBOL);
d<0?(d=-d,f.push(rk(K).MINUS_SIGN)):K.useSignForPositiveExponent_&&f.push(rk(K).PLUS_SIGN);d=""+d;for(var H=rk(K).ZERO_DIGIT,D=d.length;D<K.minExponentDigits_;D++)f.push(H);K=H.codePointAt(0)-RMk;for(H=0;H<d.length;H++)f.push(String.fromCodePoint(K+d.codePointAt(H)))},no2=function(K,d){d=d.codePointAt(0);
if(48<=d&&d<58)return d-48;K=rk(K).ZERO_DIGIT.codePointAt(0);return K<=d&&d<K+10?d-K:-1},RMk="0".codePointAt(0),ypk=function(K,d,f){for(var H="",D=!1,S=d.length;f[0]<S;f[0]++){var n=d.charAt(f[0]);
if(n=="'")f[0]+1<S&&d.charAt(f[0]+1)=="'"?(f[0]++,H+="'"):D=!D;else if(D)H+=n;else switch(n){case "#":case "0":case ",":case ".":case ";":return H;case "\u00a4":if(f[0]+1<S&&d.charAt(f[0]+1)=="\u00a4")f[0]++,H+=Qw(K);else switch(K.currencyStyle_){case 0:n=Qw(K);H+=n in bV?bV[n][1]:n;break;case 2:n=Qw(K);var u=bV[n];H+=u?n==u[1]?n:n+" "+u[1]:n;break;case 1:n=Qw(K),H+=n in bV?bV[n][2]:n}break;case "%":if(!K.negativePercentSignExpected_&&K.multiplier_!=1)throw Error("fe");if(K.negativePercentSignExpected_&&
K.multiplier_!=100)throw Error("ge");K.multiplier_=100;K.negativePercentSignExpected_=!1;H+=rk(K).PERCENT;break;case "\u2030":if(!K.negativePercentSignExpected_&&K.multiplier_!=1)throw Error("fe");if(K.negativePercentSignExpected_&&K.multiplier_!=1E3)throw Error("ge");K.multiplier_=1E3;K.negativePercentSignExpected_=!1;H+=rk(K).PERMILL;break;default:H+=n}}return H},j2={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},iFt=function(K,d){K=K.compactStyle_==1?hl.COMPACT_DECIMAL_SHORT_PATTERN:hl.COMPACT_DECIMAL_LONG_PATTERN;K==null&&(K=hl.COMPACT_DECIMAL_SHORT_PATTERN);if(d<3)return j2;d=Math.min(14,d);var f=K[CT(1,d)];for(--d;!f&&d>=3;)f=K[CT(1,d)],d--;if(!f)return j2;f=f.other;var H=K="",D=f.indexOf(";");D>=0&&(f=f.substring(0,D),D=f.substring(D+1))&&(H=/([^0]*)(0+)(.*)/.exec(D),K=H[1],H=H[3]);return f&&f!="0"?(f=/([^0]*)(0+)(.*)/.exec(f))?{divisorBase:d+
1-(f[2].length-1),negative_prefix:K,negative_suffix:H,prefix:f[1],suffix:f[3]}:j2:j2},cpJ=function(K){if(!isFinite(K))return K>0?K:0;
for(var d=0;(K/=10)>=1;)d++;return d},CT=function(K,d){if(!K||!isFinite(K)||d==0)return K;
K=String(K).split("e");return parseFloat(K[0]+"e"+(parseInt(K[1]||0,10)+d))},FS8=function(K,d){return K&&isFinite(K)?CT(Math.round(CT(K,d)),-d):K},UQs=function(K,d,f){if(!K)return K;
d=d-cpJ(K)-1;return d<-f?FS8(K,-f):FS8(K,d)};var zM8=function(K){return K%10==1&&K%100!=11?"one":K%10==2&&K%100!=12?"two":K%10==3&&K%100!=13?"few":"other"},XJ6=zM8;
XJ6=zM8;var vov;vov=function(K,d){var f=K|0;if(void 0===d){d=Math;var H=d.min,D=K+"",S=D.indexOf(".");d=H.call(d,S===-1?0:D.length-S-1,3)}H=Math.pow(10,d);K={v:d,f:(K*H|0)%H};return f==1&&K.v==0?"one":"other"};
_.T0=vov;_.T0=vov;var M39,PAB,goH,NBH,YVN;_.OFf=function(K){this.JSC$9359_pattern_=K;this.parsedPattern_=this.literals_=this.initialLiterals_=null;K=HF4;var d=hl;if(M39!==K||PAB!==d)M39=K,PAB=d,goH=new _.mS(1);this.numberFormatter_=goH};
M39=null;PAB=null;goH=null;NBH=RegExp("'([{}#].*?)'","g");YVN=RegExp("''","g");
_.OFf.prototype.format=function(K){if(this.JSC$9359_pattern_){this.initialLiterals_=[];var d=t3f(this,this.JSC$9359_pattern_);this.parsedPattern_=oo9(this,d);this.JSC$9359_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.ep(this.initialLiterals_),d=[],$Q9(this,this.parsedPattern_,K,!1,d),K=d.join("");this.literals_.length>0;)K=K.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else K="";return K};
var $Q9=function(K,d,f,H,D){for(var S=0;S<d.length;S++)switch(d[S].type){case 4:D.push(d[S].value);break;case 3:var n=d[S].value;var u=K,a=D,R=f[n];R===void 0?a.push("Undefined parameter - "+n):(u.literals_.push(R),a.push(u.buildPlaceholder_(u.literals_)));break;case 2:n=d[S].value;u=K;a=f;R=H;var F=D,z=n.argumentIndex;a[z]===void 0?F.push("Undefined parameter - "+z):(z=n[a[z]],z===void 0&&(z=n.other),$Q9(u,z,a,R,F));break;case 0:n=d[S].value;Eos(K,n,f,_.T0,H,D);break;case 1:n=d[S].value,Eos(K,n,
f,XJ6,H,D)}},Eos=function(K,d,f,H,D,S){var n=d.argumentIndex,u=d.argumentOffset,a=+f[n];
isNaN(a)?S.push("Undefined or invalid parameter - "+n):(u=a-u,n=d[f[n]],n===void 0&&(H=H(Math.abs(u)),n=d[H],n===void 0&&(n=d.other)),d=[],$Q9(K,n,f,D,d),f=d.join(""),D?S.push(f):(K=K.numberFormatter_.format(u),S.push(f.replace(/#/g,K))))},t3f=function(K,d){var f=K.initialLiterals_,H=K.buildPlaceholder_.bind(K);
d=d.replace(YVN,function(){f.push("'");return H(f)});
return d=d.replace(NBH,function(D,S){f.push(S);return H(f)})},hMs=function(K){var d=0,f=[],H=[],D=/[{}]/g;
D.lastIndex=0;for(var S;S=D.exec(K);){var n=S.index;S[0]=="}"?(f.pop(),f.length==0&&(S={type:1},S.value=K.substring(d,n),H.push(S),d=n+1)):(f.length==0&&(d=K.substring(d,n),d!=""&&H.push({type:0,value:d}),d=n+1),f.push("{"))}K=K.substring(d);K!=""&&H.push({type:0,value:K});return H},bFv=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,mQN=/^\s*(\w+)\s*,\s*selectordinal\s*,/,lRf=/^\s*(\w+)\s*,\s*select\s*,/,oo9=function(K,d){var f=[];
d=hMs(d);for(var H=0;H<d.length;H++){var D={};if(0==d[H].type)D.type=4,D.value=d[H].value;else if(1==d[H].type){var S=d[H].value;switch(bFv.test(S)?0:mQN.test(S)?1:lRf.test(S)?2:/^\s*\w+\s*/.test(S)?3:5){case 2:D.type=2;D.value=WSf(K,d[H].value);break;case 0:D.type=0;D.value=G0v(K,d[H].value);break;case 1:D.type=1;D.value=Apv(K,d[H].value);break;case 3:D.type=3,D.value=d[H].value}}f.push(D)}return f},WSf=function(K,d){var f="";
d=d.replace(lRf,function(u,a){f=a;return""});
var H={};H.argumentIndex=f;d=hMs(d);for(var D=0;D<d.length;){var S=d[D].value;D++;var n=void 0;1==d[D].type&&(n=oo9(K,d[D].value));H[S.replace(/\s/g,"")]=n;D++}return H},G0v=function(K,d){var f="",H=0;
d=d.replace(bFv,function(a,R,F){f=R;F&&(H=parseInt(F,10));return""});
var D={};D.argumentIndex=f;D.argumentOffset=H;d=hMs(d);for(var S=0;S<d.length;){var n=d[S].value;S++;var u=void 0;1==d[S].type&&(u=oo9(K,d[S].value));D[n.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=u;S++}return D},Apv=function(K,d){var f="";
d=d.replace(mQN,function(u,a){f=a;return""});
var H={};H.argumentIndex=f;H.argumentOffset=0;d=hMs(d);for(var D=0;D<d.length;){var S=d[D].value;D++;var n=void 0;1==d[D].type&&(n=oo9(K,d[D].value));H[S.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=n;D++}return H};
_.OFf.prototype.buildPlaceholder_=function(K){return"\ufddf_"+(K.length-1).toString(10)+"_"};var TB9;
TB9={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 fBp=function(){this.rdtfSymbols_=rpJ||TB9;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
fBp.prototype.format=function(K,d){a:{d=qV4(this,d);switch(this.style_){case 2:if(d.NARROW!=void 0){d=d.NARROW;break a}case 1:if(d.SHORT!=void 0){d=d.SHORT;break a}default:d=d.LONG;break a}d=void 0}if(!this.alwaysNumeric_&&d&&d.R&&d.R[""+K])K=d.R[""+K];else if(d){var f=Math.abs(K);K=(new _.OFf("{N,plural,"+(K>0||K==0&&1/K==Infinity?d.F:d.P)+"}")).format({N:f})}else K="";return K};
var qV4=function(K,d){switch(d){default:case 0:return K.rdtfSymbols_.YEAR;case 1:return K.rdtfSymbols_.QUARTER;case 2:return K.rdtfSymbols_.MONTH;case 3:return K.rdtfSymbols_.WEEK;case 4:return K.rdtfSymbols_.DAY;case 5:return K.rdtfSymbols_.HOUR;case 6:return K.rdtfSymbols_.MINUTE;case 7:return K.rdtfSymbols_.SECOND}};var QO9=function(K,d,f,H,D,S,n,u){this.x0=K;this.y0=d;this.x1=f;this.y1=H;this.x2=D;this.y2=S;this.x3=n;this.y3=u};
QO9.prototype.clone=function(){return new QO9(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
QO9.prototype.equals=function(K){return this.x0==K.x0&&this.y0==K.y0&&this.x1==K.x1&&this.y1==K.y1&&this.x2==K.x2&&this.y2==K.y2&&this.x3==K.x3&&this.y3==K.y3};
var jO6=function(K,d){if(d==0)return K.x0;if(d==1)return K.x3;var f=uR(K.x0,K.x1,d),H=uR(K.x1,K.x2,d);K=uR(K.x2,K.x3,d);f=uR(f,H,d);H=uR(H,K,d);return uR(f,H,d)},CAk=function(K,d){var f=(d-K.x0)/(K.x3-K.x0);
if(f<=0)return 0;if(f>=1)return 1;for(var H=0,D=1,S=0,n=0;n<8;n++){S=jO6(K,f);var u=(jO6(K,f+1E-6)-S)/1E-6;if(Math.abs(S-d)<1E-6)return f;if(Math.abs(u)<1E-6)break;else S<d?H=f:D=f,f-=(S-d)/u}for(n=0;Math.abs(S-d)>1E-6&&n<8;n++)S<d?(H=f,f=(f+D)/2):(D=f,f=(f+H)/2),S=jO6(K,f);return f};var x1=function(){_.iJ.call(this);this.JSC$9380_name_="closure_frame"+xQs++;this.iframesForDisposal_=[];LSL[this.JSC$9380_name_]=this},LT;
_.Bd(x1,_.iJ);var LSL={},xQs=0,BBJ=function(K,d){var f=uW(K);_.i0k(d,function(H,D){Array.isArray(H)||(H=[H]);_.QB(H,function(S){S=f.JSC$7337_createDom("INPUT",{type:"hidden",name:D,value:S});K.appendChild(S)})})};
_.V=x1.prototype;_.V.JSC$9382_form_=null;_.V.JSC$9382_iframe_=null;_.V.iframeName_=null;_.V.nextIframeId_=0;_.V.JSC$9382_active_=!1;_.V.complete_=!1;_.V.success_=!1;_.V.lastContent_=null;_.V.JSC$9382_lastErrorCode_=0;_.V.iframeDisposalTimer_=null;
_.V.send=function(K,d,f,H){if(this.JSC$9382_active_)throw Error("me");K=new _.Q8(K);d=d?d.toUpperCase():"GET";f&&_.wv(K);LT||(LT=_.R_("FORM"),LT.acceptCharset="utf-8",f=LT.style,f.position="absolute",f.visibility="hidden",f.top=f.left="-10px",f.width=f.height="10px",f.overflow="hidden",document.body.appendChild(LT));this.JSC$9382_form_=LT;d=="GET"&&BBJ(this.JSC$9382_form_,K.JSC$8037_queryData_);H&&BBJ(this.JSC$9382_form_,H);f=K.toString();f=wCN(f);H=this.JSC$9382_form_;f=_.O2(u$(f));f!==void 0&&(H.action=
f);this.JSC$9382_form_.method=d;Jpt(this);sOB(this)};
_.V.abort=function(K){if(this.JSC$9382_active_){var d=BE(this);if(d)if(SU(d))d.removeAllListeners(void 0);else if(d=yh(d)){var f=0,H;for(H in d.listeners)for(var D=d.listeners[H].concat(),S=0;S<D.length;++S)UP(D[S])&&++f}this.success_=this.JSC$9382_active_=this.complete_=!1;this.JSC$9382_lastErrorCode_=K||7;this.dispatchEvent("abort");k0v(this)}};
_.V.disposeInternal=function(){this.JSC$9382_active_&&this.abort();x1.superClass_.disposeInternal.call(this);this.JSC$9382_iframe_&&wJ9(this);sOB(this);this.JSC$9382_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9382_form_=null;this.JSC$9382_lastErrorCode_=0;delete LSL[this.JSC$9380_name_]};
_.V.isComplete=function(){return this.complete_};
_.V.isSuccess=function(){return this.success_};
_.V.isActive=function(){return this.JSC$9382_active_};
_.V.getResponseText=function(){return this.lastContent_};
_.V.getLastError=function(){return _.Q6N(this.JSC$9382_lastErrorCode_)};
var Jpt=function(K){K.JSC$9382_active_=!0;K.complete_=!1;K.JSC$9382_lastErrorCode_=0;K.iframeName_=K.JSC$9380_name_+"_"+(K.nextIframeId_++).toString(36);K.JSC$9382_iframe_=uW(K.JSC$9382_form_).JSC$7337_createDom("IFRAME",{name:K.iframeName_,id:K.iframeName_});var d=K.JSC$9382_iframe_.style;d.visibility="hidden";d.width=d.height="10px";d.display="none";_.Zf?d.marginTop=d.marginLeft="-10px":(d.position="absolute",d.top=d.left="-10px");uW(K.JSC$9382_form_).JSC$7335_document_.body.appendChild(K.JSC$9382_iframe_);
d=K.iframeName_+"_inner";var f=bB9(K.JSC$9382_iframe_);if(document.baseURI){var H=pK(d);H='<head><base href="'+pK(document.baseURI)+'"></head><body><iframe id="'+H+'" name="'+H+'"></iframe>';H=ta(H)}else H=pK(d),H=ta('<body><iframe id="'+H+'" name="'+H+'"></iframe>');f.write(oo(H));_.zG(f.getElementById(d),"load",K.onIframeLoaded_,!1,K);H=zp("TEXTAREA",K.JSC$9382_form_);for(var D=0,S=H.length;D<S;D++){var n=H[D].value;Tz2(H[D])!=n&&(_.g9(H[D],n),H[D].value=n)}H=f.importNode(K.JSC$9382_form_,!0);H.target=
d;H.action=K.JSC$9382_form_.action;f.body.appendChild(H);D=zp("SELECT",K.JSC$9382_form_);S=zp("SELECT",H);n=0;for(var u=D.length;n<u;n++)for(var a=zp("OPTION",D[n]),R=zp("OPTION",S[n]),F=0,z=a.length;F<z;F++)R[F].selected=a[F].selected;D=zp("INPUT",K.JSC$9382_form_);S=zp("INPUT",H);n=0;for(u=D.length;n<u;n++)if(D[n].type=="file"&&D[n].value!=S[n].value){K.JSC$9382_form_.target=d;H=K.JSC$9382_form_;break}try{K.errorHandled_=!1,H.submit(),f.close(),_.w7&&setTimeout(K.testForFirefoxSilentError_.bind(K),
250)}catch(v){_.nx(f.getElementById(d),"load",K.onIframeLoaded_,!1,K),f.close(),Jl(K,2)}};
x1.prototype.onIframeLoaded_=function(){_.nx(BE(this),"load",this.onIframeLoaded_,!1,this);try{var K=this.JSC$9382_iframe_?bB9(BE(this)):null;this.complete_=!0;this.JSC$9382_active_=!1;try{var d=K.body;this.lastContent_=d.textContent||d.innerText}catch(D){var f=1}var H;f||typeof this.errorChecker_!="function"||(H=this.errorChecker_(K))&&(f=4);f?Jl(this,f):(this.success_=!0,this.JSC$9382_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),k0v(this))}catch(D){Jl(this,1)}};
var Jl=function(K,d){K.errorHandled_||(K.success_=!1,K.JSC$9382_active_=!1,K.complete_=!0,K.JSC$9382_lastErrorCode_=d,K.dispatchEvent("complete"),K.dispatchEvent("error"),k0v(K),K.errorHandled_=!0)},k0v=function(K){wJ9(K);
sOB(K);K.JSC$9382_form_=null;K.dispatchEvent("ready")},wJ9=function(K){var d=K.JSC$9382_iframe_;
d&&(d.onreadystatechange=null,d.onload=null,d.onerror=null,K.iframesForDisposal_.push(d));K.iframeDisposalTimer_&&(clearTimeout(K.iframeDisposalTimer_),K.iframeDisposalTimer_=null);_.w7?K.iframeDisposalTimer_=setTimeout(K.disposeIframes_.bind(K),2E3):K.disposeIframes_();K.JSC$9382_iframe_=null;K.iframeName_=null};
x1.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var K=this.iframesForDisposal_.pop();_.FE(K)}};
var sOB=function(K){K.JSC$9382_form_&&K.JSC$9382_form_==LT&&_.X_(K.JSC$9382_form_)},BE=function(K){return K.JSC$9382_iframe_?bB9(K.JSC$9382_iframe_).getElementById(K.iframeName_+"_inner"):null};
x1.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9382_active_){var K=this.JSC$9382_iframe_?bB9(BE(this)):null;K&&!$h(K,"documentUri")?(_.nx(BE(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Jl(this,3):Jl(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.sh=function(K){return K=="\r"||K=="\n"||K==" "||K=="\t"};var ZFJ;_.k1=function(K){this.errorMessage_=null;this.result_=[];this.JSC$9384_buffer_="";this.stack_=[];this.JSC$9384_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!K||!K.deliverMessageAsRawString)};
ZFJ={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.k1.prototype.isInputValid=function(){return this.streamState_!=3};
_.k1.prototype.done=function(){return this.streamState_===2};
var wk=function(K,d,f){K.streamState_=3;K.errorMessage_="The stream is broken @"+K.JSC$9384_pos_+"/"+f+". With input:\n"+d;throw Error(K.errorMessage_);};
_.k1.prototype.acceptsBinaryInput=function(){return!1};
_.k1.prototype.parse=function(K){function d(){for(;v<K.length;)if(_.sh(K[v]))v++,S.JSC$9384_pos_++;else break;return v<R}
function f(){for(var N;;){N=K[v++];if(!N)break;S.JSC$9384_pos_++;switch(S.state_){case a.INIT:N==="{"?S.state_=a.OBJECT_OPEN:N==="["?S.state_=a.ARRAY_OPEN:_.sh(N)||wk(S,K,v);continue;case a.KEY_START:case a.OBJECT_OPEN:if(_.sh(N))continue;if(S.state_===a.KEY_START)n.push(a.KEY_END);else if(N==="}"){D("{}");S.state_=H();continue}else n.push(a.OBJECT_END);N==='"'?S.state_=a.STRING:wk(S,K,v);continue;case a.KEY_END:case a.OBJECT_END:if(_.sh(N))continue;N===":"?(S.state_===a.OBJECT_END&&(n.push(a.OBJECT_END),
S.depth_++),S.state_=a.VALUE):N==="}"?(S.depth_--,D(),S.state_=H()):N===","?(S.state_===a.OBJECT_END&&n.push(a.OBJECT_END),S.state_=a.KEY_START):wk(S,K,v);continue;case a.ARRAY_OPEN:case a.VALUE:if(_.sh(N))continue;if(S.state_===a.ARRAY_OPEN)if(S.depth_++,S.state_=a.VALUE,N==="]"){S.depth_--;if(S.depth_===0){S.state_=a.ARRAY_END;return}D("[]");S.state_=H();continue}else n.push(a.ARRAY_END);N==='"'?S.state_=a.STRING:N==="{"?S.state_=a.OBJECT_OPEN:N==="["?S.state_=a.ARRAY_OPEN:N==="t"?S.state_=a.TRUE1:
N==="f"?S.state_=a.FALSE1:N==="n"?S.state_=a.NULL1:N!=="-"&&("0123456789".indexOf(N)!==-1?S.state_=a.NUM_DIGIT:wk(S,K,v));continue;case a.ARRAY_END:if(N===",")n.push(a.ARRAY_END),S.state_=a.VALUE,S.depth_===1&&(z=v);else if(N==="]"){S.depth_--;if(S.depth_===0)return;D();S.state_=H()}else if(_.sh(N))continue;else wk(S,K,v);continue;case a.STRING:var h=v;a:for(;;){for(;S.unicodeCount_>0;)if(N=K[v++],S.unicodeCount_===4?S.unicodeCount_=0:S.unicodeCount_++,!N)break a;if(N==='"'&&!S.slashed_){S.state_=
H();break}if(N==="\\"&&!S.slashed_&&(S.slashed_=!0,N=K[v++],!N))break;if(S.slashed_)if(S.slashed_=!1,N==="u"&&(S.unicodeCount_=1),N=K[v++])continue;else break;u.lastIndex=v;N=u.exec(K);if(!N){v=K.length+1;break}v=N.index+1;N=K[N.index];if(!N)break}S.JSC$9384_pos_+=v-h;continue;case a.TRUE1:if(!N)continue;N==="r"?S.state_=a.TRUE2:wk(S,K,v);continue;case a.TRUE2:if(!N)continue;N==="u"?S.state_=a.TRUE3:wk(S,K,v);continue;case a.TRUE3:if(!N)continue;N==="e"?S.state_=H():wk(S,K,v);continue;case a.FALSE1:if(!N)continue;
N==="a"?S.state_=a.FALSE2:wk(S,K,v);continue;case a.FALSE2:if(!N)continue;N==="l"?S.state_=a.FALSE3:wk(S,K,v);continue;case a.FALSE3:if(!N)continue;N==="s"?S.state_=a.FALSE4:wk(S,K,v);continue;case a.FALSE4:if(!N)continue;N==="e"?S.state_=H():wk(S,K,v);continue;case a.NULL1:if(!N)continue;N==="u"?S.state_=a.NULL2:wk(S,K,v);continue;case a.NULL2:if(!N)continue;N==="l"?S.state_=a.NULL3:wk(S,K,v);continue;case a.NULL3:if(!N)continue;N==="l"?S.state_=H():wk(S,K,v);continue;case a.NUM_DECIMAL_POINT:N===
"."?S.state_=a.NUM_DIGIT:wk(S,K,v);continue;case a.NUM_DIGIT:if("0123456789.eE+-".indexOf(N)!==-1)continue;else v--,S.JSC$9384_pos_--,S.state_=H();continue;default:wk(S,K,v)}}}
function H(){var N=n.pop();return N!=null?N:a.VALUE}
function D(N){S.depth_>1||(N||(N=z===-1?S.JSC$9384_buffer_+K.substring(F,v):K.substring(z,v)),S.deliverMessageAsRawString_?S.result_.push(N):S.result_.push(JSON.parse(N)),z=v)}
for(var S=this,n=S.stack_,u=S.stringInputPattern_,a=ZFJ,R=K.length,F=0,z=-1,v=0;v<R;)switch(S.streamState_){case 3:return wk(S,K,v),null;case 2:return d()&&wk(S,K,v),null;case 0:if(d()){var g=K[v++];S.JSC$9384_pos_++;if(g==="["){S.streamState_=1;F=v;S.state_=a.ARRAY_OPEN;continue}else wk(S,K,v)}return null;case 1:return f(),S.depth_===0&&S.state_==a.ARRAY_END?(S.streamState_=2,S.JSC$9384_buffer_=K.substring(v)):S.JSC$9384_buffer_=z===-1?S.JSC$9384_buffer_+K.substring(F):K.substring(z),S.result_.length>
0?(g=S.result_,S.result_=[],g):null}return null};_.Bd(_.p3,MX);K1.prototype.getValue=function(){return this.JSC$9392_value_};
K1.prototype.clone=function(){return new K1(this.JSC$9392_key_,this.JSC$9392_value_)};var Zz=function(K){this.nodes_=[];if(K)a:{if(K instanceof Zz){var d=K.getKeys();K=K.getValues();if(this.getCount()<=0){for(var f=this.nodes_,H=0;H<d.length;H++)f.push(new K1(d[H],K[H]));break a}}else d=_.PR.getKeys(K),K=_.PR.getValues(K);for(f=0;f<d.length;f++)this.insert(d[f],K[f])}};
_.V=Zz.prototype;_.V.insert=function(K,d){var f=this.nodes_;f.push(new K1(K,d));K=f.length-1;d=this.nodes_;for(f=d[K];K>0;){var H=K-1>>1;if(d[H].JSC$9392_key_>f.JSC$9392_key_)d[K]=d[H],K=H;else break}d[K]=f};
_.V.remove=function(){var K=this.nodes_,d=K.length,f=K[0];if(!(d<=0)){if(d==1)K.length=0;else{K[0]=K.pop();K=0;d=this.nodes_;for(var H=d.length,D=d[K];K<H>>1;){var S=K*2+1,n=K*2+2;S=n<H&&d[n].JSC$9392_key_<d[S].JSC$9392_key_?n:S;if(d[S].JSC$9392_key_>D.JSC$9392_key_)break;d[K]=d[S];K=S}d[K]=D}return f.getValue()}};
_.V.peek=function(){var K=this.nodes_;if(K.length!=0)return K[0].getValue()};
_.V.getValues=function(){for(var K=this.nodes_,d=[],f=K.length,H=0;H<f;H++)d.push(K[H].getValue());return d};
_.V.getKeys=function(){for(var K=this.nodes_,d=[],f=K.length,H=0;H<f;H++)d.push(K[H].JSC$9392_key_);return d};
_.V.containsValue=function(K){return this.nodes_.some(function(d){return d.getValue()==K})};
_.V.containsKey=function(K){return this.nodes_.some(function(d){return d.JSC$9392_key_==K})};
_.V.clone=function(){return new Zz(this)};
_.V.getCount=function(){return this.nodes_.length};
_.V.isEmpty=function(){return this.nodes_.length===0};
_.V.clear=function(){this.nodes_.length=0};_.e2=function(K,d){this.JSC$9398_map_={};this.JSC$9398_keys_=[];this.version_=this.size=0;var f=arguments.length;if(f>1){if(f%2)throw Error("oa");for(var H=0;H<f;H+=2)this.set(arguments[H],arguments[H+1])}else K&&this.addAll(K)};
_.V=_.e2.prototype;_.V.getCount=function(){return this.size};
_.V.getValues=function(){pT(this);for(var K=[],d=0;d<this.JSC$9398_keys_.length;d++)K.push(this.JSC$9398_map_[this.JSC$9398_keys_[d]]);return K};
_.V.getKeys=function(){pT(this);return this.JSC$9398_keys_.concat()};
_.V.containsKey=function(K){return this.has(K)};
_.V.has=function(K){return Kh(this.JSC$9398_map_,K)};
_.V.containsValue=function(K){for(var d=0;d<this.JSC$9398_keys_.length;d++){var f=this.JSC$9398_keys_[d];if(Kh(this.JSC$9398_map_,f)&&this.JSC$9398_map_[f]==K)return!0}return!1};
_.V.equals=function(K,d){if(this===K)return!0;if(this.size!=K.getCount())return!1;d=d||eM2;pT(this);for(var f,H=0;f=this.JSC$9398_keys_[H];H++)if(!d(this.get(f),K.get(f)))return!1;return!0};
var eM2=function(K,d){return K===d};
_.e2.prototype.isEmpty=function(){return this.size==0};
_.e2.prototype.clear=function(){this.JSC$9398_map_={};this.version_=this.size=this.JSC$9398_keys_.length=0};
_.e2.prototype.remove=function(K){return this.delete(K)};
_.e2.prototype.delete=function(K){return Kh(this.JSC$9398_map_,K)?(delete this.JSC$9398_map_[K],--this.size,this.version_++,this.JSC$9398_keys_.length>2*this.size&&pT(this),!0):!1};
var pT=function(K){if(K.size!=K.JSC$9398_keys_.length){for(var d=0,f=0;d<K.JSC$9398_keys_.length;){var H=K.JSC$9398_keys_[d];Kh(K.JSC$9398_map_,H)&&(K.JSC$9398_keys_[f++]=H);d++}K.JSC$9398_keys_.length=f}if(K.size!=K.JSC$9398_keys_.length){d={};for(H=f=0;f<K.JSC$9398_keys_.length;){var D=K.JSC$9398_keys_[f];Kh(d,D)||(K.JSC$9398_keys_[H++]=D,d[D]=1);f++}K.JSC$9398_keys_.length=H}};
_.V=_.e2.prototype;_.V.get=function(K,d){return Kh(this.JSC$9398_map_,K)?this.JSC$9398_map_[K]:d};
_.V.set=function(K,d){Kh(this.JSC$9398_map_,K)||(this.size+=1,this.JSC$9398_keys_.push(K),this.version_++);this.JSC$9398_map_[K]=d};
_.V.addAll=function(K){if(K instanceof _.e2)for(var d=K.getKeys(),f=0;f<d.length;f++)this.set(d[f],K.get(d[f]));else for(d in K)this.set(d,K[d])};
_.V.forEach=function(K,d){for(var f=this.getKeys(),H=0;H<f.length;H++){var D=f[H],S=this.get(D);K.call(d,S,D,this)}};
_.V.clone=function(){return new _.e2(this)};
_.V.transpose=function(){for(var K=new _.e2,d=0;d<this.JSC$9398_keys_.length;d++){var f=this.JSC$9398_keys_[d];K.set(this.JSC$9398_map_[f],f)}return K};
_.V.keys=function(){return YFt(this.__iterator__(!0)).toEs6()};
_.V.values=function(){return YFt(this.__iterator__(!1)).toEs6()};
_.V.entries=function(){var K=this;return reN(this.keys(),function(d){return[d,K.get(d)]})};
_.V.__iterator__=function(K){pT(this);var d=0,f=this.version_,H=this,D=new wT;D.next=function(){if(f!=H.version_)throw Error("ne");if(d>=H.JSC$9398_keys_.length)return Z9;var S=H.JSC$9398_keys_[d++];return eI(K?S:H.JSC$9398_map_[S])};
return D};
var Kh=function(K,d){return Object.prototype.hasOwnProperty.call(K,d)};var KWt=function(){this.JSC$9401_map_=new _.e2;this.JSC$9401_head_=new pJk("");this.JSC$9401_head_.next=this.JSC$9401_head_.prev=this.JSC$9401_head_},dnN=function(K,d){if(d=K.JSC$9401_map_.get(d))d.remove(),K.insert_(d);
return d};
_.V=KWt.prototype;_.V.get=function(K,d){return(K=dnN(this,K))?K.value:d};
_.V.set=function(K,d){var f=dnN(this,K);f?f.value=d:(f=new pJk(K,d),this.JSC$9401_map_.set(K,f),this.insert_(f))};
_.V.peek=function(){return this.JSC$9401_head_.next.value};
_.V.shift=function(){return fek(this,this.JSC$9401_head_.next)};
_.V.pop=function(){return fek(this,this.JSC$9401_head_.prev)};
_.V.remove=function(K){return(K=this.JSC$9401_map_.get(K))?(this.removeNode(K),!0):!1};
_.V.removeNode=function(K){K.remove();this.JSC$9401_map_.remove(K.key)};
_.V.getCount=function(){return this.JSC$9401_map_.getCount()};
_.V.isEmpty=function(){return this.JSC$9401_map_.isEmpty()};
_.V.getKeys=function(){return this.map(function(K,d){return d})};
_.V.getValues=function(){return this.map(function(K){return K})};
_.V.contains=function(K){return this.some(function(d){return d==K})};
_.V.containsKey=function(K){return this.JSC$9401_map_.containsKey(K)};
_.V.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9401_head_.prev)};
_.V.forEach=function(K,d){for(var f=this.JSC$9401_head_.next;f!=this.JSC$9401_head_;f=f.next)K.call(d,f.value,f.key,this)};
_.V.map=function(K,d){for(var f=[],H=this.JSC$9401_head_.next;H!=this.JSC$9401_head_;H=H.next)f.push(K.call(d,H.value,H.key,this));return f};
_.V.some=function(K,d){for(var f=this.JSC$9401_head_.next;f!=this.JSC$9401_head_;f=f.next)if(K.call(d,f.value,f.key,this))return!0;return!1};
_.V.every=function(K,d){for(var f=this.JSC$9401_head_.next;f!=this.JSC$9401_head_;f=f.next)if(!K.call(d,f.value,f.key,this))return!1;return!0};
_.V.insert_=function(K){K.next=this.JSC$9401_head_.next;K.prev=this.JSC$9401_head_;this.JSC$9401_head_.next=K;for(K.next.prev=K;this.getCount()>100;)this.removeNode(this.JSC$9401_head_.prev)};
var fek=function(K,d){K.JSC$9401_head_!=d&&K.removeNode(d);return d.value},pJk=function(K,d){this.key=K;
this.value=d};
pJk.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var HU6=function(){Zz.apply(this,arguments)};
_.O(HU6,Zz);HU6.prototype.enqueue=function(K,d){this.insert(K,d)};var DnB=function(){var K=Error();K.name="SecurityError";throw K;},nun=function(){return{get opener(){return null},
get closed(){return!0},get location(){DnB()},get document(){DnB()},postMessage:function(){},
close:function(){},
focus:function(){}}};var bsB={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 W4p={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 VZ6={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(W4p).join("|");var S1B=function(){function K(u){u.substr(-1)!==";"&&(u+=";");return n(u)}
for(var d=Object.keys(VZ6).sort(lfz),f=Object.keys(W4p).sort(lfz),H=0,D=0;H<f.length;H++)d[D]===f[H]?(f[H]+=";?",D++):f[H]+=";";var S=new RegExp("&(?:"+f.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),n=G$O();return function(u){return String(u).replace(S,K)}}();/*

 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 yGf={};var nmH=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"),iUJ=/[\\&]/,cGB=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),u7J=RegExp('[&<>"]',"g"),aeH=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Ies=function(K){return K.charCodeAt(0)===92?K.charAt(1):S1B(K)},UnH=function(K){return iUJ.test(K)?K.replace(cGB,Ies):K},R3k=function(K){try{var d,f="";
if(typeof D!=="string"){var H=D;var D=";/?:@&=+$,-_.!~*'()#"}typeof H==="undefined"&&(H=!0);var S,n=yGf[D];if(n)var u=n;else{n=yGf[D]=[];for(S=0;S<128;S++){var a=String.fromCharCode(S);/^[0-9a-z]$/i.test(a)?n.push(a):n.push("%"+("0"+S.toString(16).toUpperCase()).slice(-2))}for(S=0;S<D.length;S++)n[D.charCodeAt(S)]=D[S];u=n}var R=0;for(d=K.length;R<d;R++){var F=K.charCodeAt(R);if(H&&F===37&&R+2<d&&/^[0-9a-f]{2}$/i.test(K.slice(R+1,R+3)))f+=K.slice(R,R+3),R+=2;else if(F<128)f+=u[F];else if(F>=55296&&
F<=57343){if(F>=55296&&F<=56319&&R+1<d){var z=K.charCodeAt(R+1);if(z>=56320&&z<=57343){f+=encodeURIComponent(K[R]+K[R+1]);R++;continue}}f+="%EF%BF%BD"}else f+=encodeURIComponent(K[R])}return f}catch(v){return K}},FW4=function(K){switch(K){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return K}},dO=function(K,d){return u7J.test(K)?d?K.replace(aeH,FW4):K.replace(u7J,FW4):K};/*

 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 fh;if(String.fromCodePoint)fh=function(K){try{return String.fromCodePoint(K)}catch(d){if(d instanceof RangeError)return String.fromCharCode(65533);throw d;}};
else{var z3J=String.fromCharCode,XWv=Math.floor;fh=function(){var K=[],d=-1,f=arguments.length;if(!f)return"";for(var H="";++d<f;){var D=Number(arguments[d]);if(!isFinite(D)||D<0||D>1114111||XWv(D)!==D)return String.fromCharCode(65533);if(D<=65535)K.push(D);else{D-=65536;var S=(D>>10)+55296;D=D%1024+56320;K.push(S,D)}if(d+1===f||K.length>16384)H+=z3J.apply(null,K),K.length=0}return H}};var vm6=function(K){this.root=this.current=K;this.entering=!0};
vm6.prototype.next=function(){var K=this.current,d=this.entering;if(K===null)return null;a:switch(K._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 f=!0;break a;default:f=!1}d&&f?K._firstChild?(this.current=K._firstChild,this.entering=!0):this.entering=!1:K===this.root?this.current=null:K._next===null?(this.current=
K._parent,this.entering=!1):(this.current=K._next,this.entering=!0);return{entering:d,node:K}};
var Dp=function(K,d){this._type=K;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=d;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};
Dp.prototype.appendChild=function(K){H3(K);K._parent=this;this._lastChild?(this._lastChild._next=K,K._prev=this._lastChild):this._firstChild=K;this._lastChild=K};
var H3=function(K){K._prev?K._prev._next=K._next:K._parent&&(K._parent._firstChild=K._next);K._next?K._next._prev=K._prev:K._parent&&(K._parent._lastChild=K._prev);K._parent=null;K._next=null;K._prev=null},MZL=function(K,d){H3(d);
d._next=K._next;d._next&&(d._next._prev=d);d._prev=K;K._next=d;d._parent=K._parent;d._next||(d._parent._lastChild=d)};
Dp.prototype.insertBefore=function(K){H3(K);K._prev=this._prev;K._prev&&(K._prev._next=K);K._next=this;this._prev=K;K._parent=this._parent;K._prev||(K._parent._firstChild=K)};
_.x$.Object.defineProperties(Dp.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(K){this._literal=K}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(K){this._destination=K}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(K){this._title=K}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(K){this._info=K}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(K){this._level=K}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(K){this._listData.type=K}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(K){this._listData.tight=K}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(K){this._listData.start=K}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(K){this._onEnter=K}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(K){this._onExit=K}}});var AmB=/[ \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,
T7S={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 PsB=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]/),
gm8=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),OUH=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),NmJ=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),Y1t=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),tZB=/`+/,omB=/^`+/,$nk=/\.\.\./g,Em9=/--+/g,h3v=/^<([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])?)*)>/,
bUt=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,mnH=/^ *(?:\n *)?/,leN=/^[ \t\n\x0b\x0c\x0d]/,WW2=/[ \t\n\x0b\x0c\x0d]+/g,GoB=/^\s/,AGH=/ *$/,Tm2=/^ */,rG8=/^ *(?:\n|$)/,q1t=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),QMt=/^[^\n`\[\]\\!<&*_'"]+/m,DP=function(K){var d=new Dp("text");d._literal=K;return d},Vn=function(K){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=K||{}};
Vn.prototype.match=function(K){K=K.exec(this.subject.slice(this.pos));if(K===null)return null;this.pos+=K.index+K[0].length;return K[0]};
Vn.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Sx=function(K){K.match(mnH);return!0},jMH=function(K,d,f){var H=0;
var D=K.pos;if(d===39||d===34)H++,K.pos++;else for(;K.peek()===d;)H++,K.pos++;if(H===0)H=null;else{var S=D===0?"\n":K.subject.charAt(D-1);var n=K.peek();n=n===-1?"\n":fh(n);var u=GoB.test(n);n=PsB.test(n);var a=GoB.test(S);var R=PsB.test(S);S=!u&&!(n&&!a&&!R);u=!a&&!(R&&!u&&!n);d===95?(a=S&&(!u||R),n=u&&(!S||n)):(a=d===39||d===34?S&&!u:S,n=u);K.pos=D;H={numdelims:H,can_open:a,can_close:n}}if(!H)return!1;D=H.numdelims;n=K.pos;K.pos+=D;n=d===39?"\u2019":d===34?"\u201c":K.subject.slice(n,K.pos);n=DP(n);
f.appendChild(n);K.delimiters={cc:d,numdelims:D,origdelims:D,node:n,previous:K.delimiters,next:null,can_open:H.can_open,can_close:H.can_close};K.delimiters.previous!==null&&(K.delimiters.previous.next=K.delimiters);return!0},Csf=function(K,d){d.previous!==null&&(d.previous.next=d.next);
d.next===null?K.delimiters=d.previous:d.next.previous=d.previous},xnv=function(K,d){var f,H,D=[],S=!1;
D[95]=d;D[42]=d;D[39]=d;D[34]=d;for(f=K.delimiters;f!==null&&f.previous!==d;)f=f.previous;for(;f!==null;){var n=f.cc;if(f.can_close){var u=f.previous;for(H=!1;u!==null&&u!==d&&u!==D[n];){S=(f.can_open||u.can_close)&&(u.origdelims+f.origdelims)%3===0;if(u.cc===f.cc&&u.can_open&&!S){H=!0;break}u=u.previous}var a=f;if(n===42||n===95)if(H){var R=f.numdelims>=2&&u.numdelims>=2?2:1;var F=u.node;var z=f.node;u.numdelims-=R;f.numdelims-=R;F._literal=F._literal.slice(0,F._literal.length-R);z._literal=z._literal.slice(0,
z._literal.length-R);var v=new Dp(R===1?"emph":"strong");for(R=F._next;R&&R!==z;){var g=R._next;H3(R);v.appendChild(R);R=g}MZL(F,v);R=u;g=f;R.next!==g&&(R.next=g,g.previous=R);u.numdelims===0&&(H3(F),Csf(K,u));f.numdelims===0&&(H3(z),u=f.next,Csf(K,f),f=u)}else f=f.next;else n===39?(f.node._literal="\u2019",H&&(u.node._literal="\u2018"),f=f.next):n===34&&(f.node._literal="\u201d",H&&(u.node.literal="\u201c"),f=f.next);H||S||(D[n]=a.previous,a.can_open||Csf(K,a))}else f=f.next}for(;K.delimiters!==
null&&K.delimiters!==d;)Csf(K,K.delimiters)},LW8=function(K){K=K.match(gm8);
return K===null?null:UnH(K.substr(1,K.length-2))},Bmv=function(K){var d=K.match(OUH);
if(d===null){d=K.pos;for(var f=0,H;(H=K.peek())!==-1;)if(H===92)K.pos+=1,K.peek()!==-1&&(K.pos+=1);else if(H===40)K.pos+=1,f+=1;else if(H===41)if(f<1)break;else K.pos+=1,--f;else if(leN.exec(fh(H))!==null)break;else K.pos+=1;d=K.subject.substr(d,K.pos-d);return R3k(UnH(d))}return R3k(UnH(d.substr(1,d.length-2)))},JG9=function(K){K=K.match(q1t);
return K===null||K.length>1001?0:K.length},sM8=function(K,d,f,H){K.brackets!==null&&(K.brackets.bracketAfter=!0);
K.brackets={node:d,previous:K.brackets,previousDelimiter:K.delimiters,index:f,image:H,active:!0}},ko2=function(K,d){var f;
return(f=K.match(QMt))?(K.options.smart?d.appendChild(DP(f.replace($nk,"\u2026").replace(Em9,function(H){var D=0,S=0;H.length%3===0?S=H.length/3:H.length%2===0?D=H.length/2:H.length%3===2?(D=1,S=(H.length-2)/3):(D=2,S=(H.length-4)/3);H="";var n;for(n=0;n<S;n++)H+="\u2014";for(n=0;n<D;n++)H+="\u2013";return H}))):d.appendChild(DP(f)),!0):!1},wWv=function(K,d,f){K.subject=d;
K.pos=0;d=K.pos;var H=JG9(K);if(H===0)return 0;var D=K.subject.substr(0,H);if(K.peek()===58)K.pos++;else return K.pos=d,0;Sx(K);H=Bmv(K);if(H===null||H.length===0)return K.pos=d,0;var S=K.pos;Sx(K);var n=LW8(K);n===null&&(n="",K.pos=S);var u=!0;K.match(rG8)===null&&(n===""?u=!1:(n="",K.pos=S,u=K.match(rG8)!==null));if(!u)return K.pos=d,0;D=rmG(D);if(D==="")return K.pos=d,0;f[D]||(f[D]={destination:H,title:n});return K.pos-d},ZU2=function(K,d){var f,H=K.peek();
if(H===-1)return!1;switch(H){case 10:K.pos+=1;if((f=d._lastChild)&&f.type==="text"&&f._literal[f._literal.length-1]===" "){var D=f._literal[f._literal.length-2]===" ";f._literal=f._literal.replace(AGH,"");d.appendChild(new Dp(D?"linebreak":"softbreak"))}else d.appendChild(new Dp("softbreak"));K.match(Tm2);f=!0;break;case 92:f=K.subject;K.pos+=1;K.peek()===10?(K.pos+=1,f=new Dp("linebreak"),d.appendChild(f)):NmJ.test(f.charAt(K.pos))?(d.appendChild(DP(f.charAt(K.pos))),K.pos+=1):d.appendChild(DP("\\"));
f=!0;break;case 96:a:if(f=K.match(omB),f===null)f=!1;else{D=K.pos;for(var S;(S=K.match(tZB))!==null;)if(S===f){S=new Dp("code");S._literal=K.subject.slice(D,K.pos-f.length).trim().replace(WW2," ");d.appendChild(S);f=!0;break a}K.pos=D;d.appendChild(DP(f));f=!0}break;case 42:case 95:f=jMH(K,H,d);break;case 39:case 34:f=K.options.smart&&jMH(K,H,d);break;case 91:f=K.pos;K.pos+=1;D=DP("[");d.appendChild(D);sM8(K,D,f,!1);f=!0;break;case 33:f=K.pos;K.pos+=1;K.peek()===91?(K.pos+=1,D=DP("!["),d.appendChild(D),
sM8(K,D,f+1,!0)):d.appendChild(DP("!"));f=!0;break;case 93:var n,u=!1,a;K.pos+=1;var R=K.pos;D=K.brackets;if(D===null)d.appendChild(DP("]"));else if(D.active){f=D.image;var F=K.pos;K.peek()===40&&(K.pos++,Sx(K)&&(S=Bmv(K))!==null&&Sx(K)&&(leN.test(K.subject.charAt(K.pos-1))&&(n=LW8(K)),1)&&Sx(K)&&K.peek()===41?(K.pos+=1,u=!0):K.pos=F);if(!u){var z=K.pos,v=JG9(K);v>2?a=K.subject.slice(z,z+v):D.bracketAfter||(a=K.subject.slice(D.index,R));v===0&&(K.pos=F);a&&(a=K.refmap[rmG(a)])&&(S=a.destination,n=
a.title,u=!0)}if(u){R=new Dp(f?"image":"link");R._destination=S;R._title=n||"";for(S=D.node._next;S;)n=S._next,H3(S),R.appendChild(S),S=n;d.appendChild(R);xnv(K,D.previousDelimiter);K.brackets=K.brackets.previous;H3(D.node);if(!f)for(D=K.brackets;D!==null;)D.image||(D.active=!1),D=D.previous}else K.brackets=K.brackets.previous,K.pos=R,d.appendChild(DP("]"))}else d.appendChild(DP("]")),K.brackets=K.brackets.previous;f=!0;break;case 60:(f=K.match(h3v))?(f=f.slice(1,f.length-1),D=new Dp("link"),D._destination=
R3k("mailto:"+f),D._title="",D.appendChild(DP(f)),d.appendChild(D),f=!0):(f=K.match(bUt))?(f=f.slice(1,f.length-1),D=new Dp("link"),D._destination=R3k(f),D._title="",D.appendChild(DP(f)),d.appendChild(D),f=!0):f=!1;f||(f=K.match(nmH),f===null?f=!1:(D=new Dp("html_inline"),D._literal=f,d.appendChild(D),f=!0));break;case 38:(f=K.match(Y1t))?(d.appendChild(DP(S1B(f))),f=!0):f=!1;break;default:f=ko2(K,d)}f||(K.pos+=1,d.appendChild(DP(fh(H))));return!0};
Vn.prototype.parseInlines=function(K){this.subject=K._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;ZU2(this,K););K._string_content=null;xnv(this,null)};
Vn.prototype.parse=Vn.prototype.parseInlines;var e32=[/./,/^<(?: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")],pWB=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],Kxt=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,d79=/^[#`~*+_=<>0-9-\|]|\|/,fm9=/[^ \t\f\v\r\n]/,H82=/^[*+-]/,D7s=/^(\d{1,9})([.)])/,VPt=/^#{1,6}(?:[ \t]+|$)/,SzB=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,yMN=/^(?:`{3,}|~{3,})(?= *$)/,np8=/^(?:=+|-+)[ \t]*$/,i8t=/\r\n|\n|\r/,Q1Y=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,j1N=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,cML={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(K){return K!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(K,d){for(K=d._firstChild;K;){if(qap(K)&&K._next){d._listData.tight=!1;break}for(var f=K._firstChild;f;){if(qap(f)&&(K._next||f._next)){d._listData.tight=!1;break}f=f._next}K=K._next}},
canContain:function(K){return K==="item"},
acceptsLines:!1},block_quote:{continue:function(K){var d=K.currentLine;if(K.indented||f1(d,K.nextNonspace)!==62)return 1;yn(K);nh(K,1,!1);dL(f1(d,K.offset))&&nh(K,1,!0);return 0},
finalize:function(){},
canContain:function(K){return K!=="item"},
acceptsLines:!1},item:{continue:function(K,d){if(K.blank){if(d._firstChild==null)return 1;yn(K)}else if(K.indent>=d._listData.markerOffset+d._listData.padding)nh(K,d._listData.markerOffset+d._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(K){return K!=="item"&&!Cfn(K)},
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(K,d){var f=K.currentLine,H=K.indent;if(d._isFenced){if((H=H<=3&&f.charAt(K.nextNonspace)===d._fenceChar&&f.slice(K.nextNonspace).match(yMN))&&H[0].length>=d._fenceLength)return K.finalize(d,K.lineNumber),2;for(d=d._fenceOffset;d>0&&dL(f1(f,K.offset));)nh(K,1,!0),d--}else if(H>=4)nh(K,4,!0);else if(K.blank)yn(K);else return 1;return 0},
finalize:function(K,d){if(d._isFenced){var f=d._string_content,H=f.indexOf("\n");K=f.slice(0,H);f=f.slice(H+1);d.info=UnH(K.trim());d._literal=f}else d._literal=d._string_content.replace(/(\n *)+$/,"\n");d._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(K,d){return!K.blank||d._htmlBlockType!==6&&d._htmlBlockType!==7?0:1},
finalize:function(K,d){d._literal=d._string_content.replace(/(\n *)+$/,"");d._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(K){return K.blank?1:0},
finalize:function(K,d){for(var f,H=!1;f1(d._string_content,0)===91&&(f=wWv(K.inlineParser,d._string_content,K.refmap));)d._string_content=d._string_content.slice(f),H=!0;H&&!fm9.test(d._string_content)&&H3(d)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(K){return H0(K.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(K){return K=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(K,d){if(!d._rowIsDelimiter){K=d._isHeader?"th":"td";for(var f=d._parent._tableColumns,H=d._string_content,D=0,S="",n,u=d._sourcepos[0][0];D<H.length;){switch(H[D]){case "|":n&&(n._string_content=S.trim(),S="",n=null,f--,f<=0&&(D=H.length));break;default:if(!n){n=new Dp(K,[[u,D],[u,D]]);var a=d._parent._columnAlignment,R=d._parent._tableColumns-f;a&&R<=a.length&&R>=0&&(n._alignment=a[R]);d.appendChild(n)}S+=H[D];n._sourcepos[1][1]=D}D++}n&&(n._string_content=S.trim());d._string_content=
""}},
canContain:function(K){return K!=="row"},
acceptsLines:!1}},uwB=[function(K){if(K.indented||f1(K.currentLine,K.nextNonspace)!==62)return 0;yn(K);nh(K,1,!1);dL(f1(K.currentLine,K.offset))&&nh(K,1,!0);i4(K);K.addChild("block_quote",K.nextNonspace);return 1},
function(K){var d;if(!K.indented&&(d=K.currentLine.slice(K.nextNonspace).match(VPt))){yn(K);nh(K,d[0].length,!1);i4(K);var f=K.addChild("heading",K.nextNonspace);f.level=d[0].trim().length;f._string_content=K.currentLine.slice(K.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");nh(K,K.currentLine.length-K.offset);return 2}return 0},
function(K){var d;if(!K.indented&&(d=K.currentLine.slice(K.nextNonspace).match(SzB))){var f=d[0].length;i4(K);var H=K.addChild("code_block",K.nextNonspace);H._isFenced=!0;H._fenceLength=f;H._fenceChar=d[0][0];H._fenceOffset=K.indent;yn(K);nh(K,f,!1);return 2}return 0},
function(K,d){if(!K.indented&&f1(K.currentLine,K.nextNonspace)===60){var f=K.currentLine.slice(K.nextNonspace),H;for(H=1;H<=7;H++)if(e32[H].test(f)&&(H<7||d.type!=="paragraph"))return i4(K),K.addChild("html_block",K.offset)._htmlBlockType=H,2}return 0},
function(K,d){var f;if(!K.indented&&d.type==="paragraph"&&(f=K.currentLine.slice(K.nextNonspace).match(np8))){i4(K);var H=new Dp("heading",d.sourcepos);H.level=f[0][0]==="="?1:2;H._string_content=d._string_content;MZL(d,H);H3(d);K.tip=H;nh(K,K.currentLine.length-K.offset,!1);return 2}return 0},
function(K){return!K.indented&&Kxt.test(K.currentLine.slice(K.nextNonspace))?(i4(K),K.addChild("thematic_break",K.nextNonspace),nh(K,K.currentLine.length-K.offset,!1),2):0},
function(K,d){var f,H;if(!(H=K.indented&&d.type!=="list")){a:{var D=d,S=K.currentLine.slice(K.nextNonspace);H={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:K.indent};if(f=S.match(H82))H.type="bullet",H.bulletChar=f[0][0];else{if(!(f=S.match(D7s))||D.type==="paragraph"&&f[1]!=="1"){f=null;break a}H.type="ordered";H.start=parseInt(f[1],10);H.delimiter=f[2]}var n=f1(K.currentLine,K.nextNonspace+f[0].length);if(n!==-1&&n!==9&&n!==32||D.type==="paragraph"&&!K.currentLine.slice(K.nextNonspace+
f[0].length).match(fm9))f=null;else{yn(K);nh(K,f[0].length,!0);D=K.column;S=K.offset;do nh(K,1,!0),n=f1(K.currentLine,K.offset);while(K.column-D<5&&dL(n));n=f1(K.currentLine,K.offset)===-1;var u=K.column-D;u>=5||u<1||n?(H.padding=f[0].length+1,K.column=D,K.offset=S,dL(f1(K.currentLine,K.offset))&&nh(K,1,!0)):H.padding=f[0].length+u;f=H}}H=!f}if(H)return 0;i4(K);(H=K.tip.type!=="list")||(d=d._listData,H=!(d.type===f.type&&d.delimiter===f.delimiter&&d.bulletChar===f.bulletChar));H&&(d=K.addChild("list",
K.nextNonspace),d._listData=f);d=K.addChild("item",K.nextNonspace);d._listData=f;return 1},
function(K){var d;return((d=K.options.shouldParseIndentAsCodeBlock)!=null?d:1)&&K.indented&&K.tip.type!=="paragraph"&&!K.blank?(nh(K,4,!0),i4(K),K.addChild("code_block",K.offset),2):0},
function(K,d){var f=H0(K.currentLine),H=H0(K.lookahead);if(f!==0&&H<0&&Math.abs(f)==Math.abs(H)&&!Cfn(d.type)){i4(K);d=K.addChild("table",K.nextNonspace);d._tableRows=1;d._tableColumns=Math.abs(f);f=K.lookahead;if(j1N.test(f)){H=[];for(var D=0,S=!1,n=0,u=void 0;D<f.length;){var a=n>=3;switch(f[D]){case "-":n++;break;case "|":S&&(H.push(u),u=void 0,n=0);S=!0;break;case ":":u||a||(u="left"),!u&&a&&(u="right"),u==="left"&&a&&(u="center")}D++}f=H}else f=void 0;d._columnAlignment=f;d=K.addChild("row",
K.nextNonspace);d._isHeader=!0;nh(K,K.currentLine.length-K.offset,!1);d._string_content=K.currentLine;return 1}return 0},
function(K,d){if(d.type=="table"&&H0(K.currentLine)!==0){i4(K);var f=d;d=K.addChild("row",K.nextNonspace);H0(K.currentLine)<0?d._rowIsDelimiter=!0:f._tableRows+=1;nh(K,K.currentLine.length-K.offset,!1);d._string_content=K.currentLine;return 2}return 0}],m2J=function(){var K={shouldParseIndentAsCodeBlock:!1};
K=K===void 0?{}:K;this.lastMatchedContainer=this.doc=xvp();this.refmap={};this.lastLineLength=0;this.inlineParser=new Vn(K);this.options=K;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=cML;this.blockStarts=uwB},am2=function(K){K.partiallyConsumedTab&&(K.offset+=1,K.tip._string_content+=" ".repeat(4-K.column%
4));
K.tip._string_content+=K.currentLine.slice(K.offset)+"\n"};
m2J.prototype.addChild=function(K,d){for(;!this.blocks[this.tip.type].canContain(K);)this.finalize(this.tip,this.lineNumber-1);K=new Dp(K,[[this.lineNumber,d+1],[0,0]]);K._string_content="";this.tip.appendChild(K);return this.tip=K};
var i4=function(K){if(!K.allClosed){for(;K.oldtip!==K.lastMatchedContainer;){var d=K.oldtip._parent;K.finalize(K.oldtip,K.lineNumber-1);K.oldtip=d}K.allClosed=!0}},nh=function(K,d,f){for(var H=K.currentLine,D,S;d>0&&(S=H[K.offset]);)S==="\t"?(D=4-K.column%4,f?(K.partiallyConsumedTab=D>d,D=D>d?d:D,K.column+=D,K.offset+=K.partiallyConsumedTab?0:1,d-=D):(K.partiallyConsumedTab=!1,K.column+=D,K.offset+=1,--d)):(K.partiallyConsumedTab=!1,K.offset+=1,K.column+=1,--d)},yn=function(K){K.offset=K.nextNonspace;
K.column=K.nextNonspaceColumn;K.partiallyConsumedTab=!1},Ims=function(K){for(var d=K.currentLine,f=K.offset,H=K.column,D;(D=d.charAt(f))!=="";)if(D===" ")f++,H++;
else if(D==="\t")f++,H+=4-H%4;else break;K.blank=D==="\n"||D==="\r"||D==="";K.nextNonspace=f;K.nextNonspaceColumn=H;K.indent=K.nextNonspaceColumn-K.column;K.indented=K.indent>=4};
m2J.prototype.finalize=function(K,d){var f=K._parent;K._open=!1;K.sourcepos[1]=[d,this.lastLineLength];this.blocks[K.type].finalize(this,K);this.tip=f};
m2J.prototype.parse=function(K){this.tip=this.doc=xvp();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!K)return this.doc;this.options.time&&console.time("preparing input");var d=K.split(i8t),f=d.length;K.charCodeAt(K.length-1)===10&&--f;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(K=0;K<f;K++)a:{var H=void 0,D=d[K],S=d[K+1],n=!0,u=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;D.indexOf("\x00")!==-1&&(D=D.replace(/\0/g,"\ufffd"));this.currentLine=D;for(this.lookahead=S;(H=u._lastChild)&&H._open;){u=H;Ims(this);switch(this.blocks[u.type].continue(this,u)){case 0:break;case 1:n=!1;break;case 2:this.lastLineLength=D.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!n){u=u._parent;break}}this.allClosed=u===this.oldtip;this.lastMatchedContainer=
u;H=u.type!=="paragraph"&&cML[u.type].acceptsLines;S=this.blockStarts;for(n=S.length;!H;){Ims(this);if(!this.indented&&!d79.test(D.slice(this.nextNonspace))){yn(this);break}for(var a=0;a<n;){var R=S[a](this,u);if(R===1){u=this.tip;break}else if(R===2){u=this.tip;H=!0;break}else a++}if(a===n){yn(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){i4(this);this.blank&&u.lastChild&&(u.lastChild._lastLineBlank=!0);H=u.type;S=this.blank&&!(H==="block_quote"||H==="code_block"&&u._isFenced||
H==="item"&&!u._firstChild&&u.sourcepos[0][0]===this.lineNumber);for(n=u;n;)n._lastLineBlank=S,n=n._parent;this.blocks[H].acceptsLines?(am2(this),H==="html_block"&&u._htmlBlockType>=1&&u._htmlBlockType<=5&&pWB[u._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(u,this.lineNumber)):this.offset<D.length&&!this.blank&&(this.addChild("paragraph",this.offset),yn(this),am2(this))}else am2(this);this.lastLineLength=D.length}for(;this.tip;)this.finalize(this.tip,f);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");D=new vm6(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;f=D.next();)d=f.node,K=d.type,f.entering||K!=="paragraph"&&K!=="heading"&&K!=="th"&&K!="td"||this.inlineParser.parse(d);this.options.time&&console.timeEnd("inline parsing");return this.doc};L4u.prototype.render=function(K){K=new vm6(K);var d;this.buffer="";for(this.lastOut="\n";d=K.next();){var f=d.node.type;if(this[f])this[f](d.node,d.entering)}return this.buffer};
L4u.prototype.out=function(K){c3(this,K)};
var c3=function(K,d){K.buffer+=d;K.lastOut=d};
L4u.prototype.cr=function(){this.lastOut!=="\n"&&c3(this,"\n")};var U7N=/^javascript:|vbscript:|file:|data:/i,Rmv=/^data:image\/(?:png|gif|jpeg|webp)/i,FxL=function(K){return U7N.test(K)&&!Rmv.test(K)};
V8.prototype=Object.create(L4u.prototype);_.V=V8.prototype;_.V.text=function(K){this.out(K.literal)};
_.V.html_inline=function(K){this.options.safe?c3(this,"\x3c!-- raw HTML omitted --\x3e"):c3(this,K.literal)};
_.V.html_block=function(K){this.cr();this.options.safe?c3(this,"\x3c!-- raw HTML omitted --\x3e"):c3(this,K.literal);this.cr()};
_.V.softbreak=function(){c3(this,this.options.softbreak)};
_.V.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.V.link=function(K,d){var f=this.attrs(K);d?(this.options.safe&&FxL(K.destination)||f.push(["href",dO(K.destination,!0)]),K.title&&f.push(["title",dO(K.title,!0)]),this.tag("a",f)):this.tag("/a")};
_.V.image=function(K,d){d?(this.disableTags===0&&(this.options.safe&&FxL(K.destination)?c3(this,'<img src="" alt="'):c3(this,'<img src="'+dO(K.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(K.title&&c3(this,'" title="'+dO(K.title,!0)),c3(this,'" />')))};
_.V.emph=function(K,d){this.tag(d?"em":"/em")};
_.V.strong=function(K,d){this.tag(d?"strong":"/strong")};
_.V.paragraph=function(K,d){var f=K.parent.parent;K=this.attrs(K);f!==null&&f.type==="list"&&f.listTight||(d?(this.cr(),this.tag("p",K)):(this.tag("/p"),this.cr()))};
_.V.heading=function(K,d){var f="h"+K.level;K=this.attrs(K);d?(this.cr(),this.tag(f,K)):(this.tag("/"+f),this.cr())};
_.V.code=function(K){this.tag("code");this.out(K.literal);this.tag("/code")};
_.V.code_block=function(K){var d=K.info?K.info.split(/\s+/):[],f=this.attrs(K);d.length>0&&d[0].length>0&&f.push(["class","language-"+dO(d[0],!0)]);this.cr();this.tag("pre");this.tag("code",f);this.out(K.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.V.thematic_break=function(K){K=this.attrs(K);this.cr();this.tag("hr",K,!0);this.cr()};
_.V.block_quote=function(K,d){K=this.attrs(K);d?(this.cr(),this.tag("blockquote",K)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.V.list=function(K,d){var f=K.listType==="bullet"?"ul":"ol",H=this.attrs(K);d?(K=K.listStart,K!==null&&K!==1&&H.push(["start",K.toString()]),this.cr(),this.tag(f,H)):(this.cr(),this.tag("/"+f));this.cr()};
_.V.item=function(K,d){K=this.attrs(K);d?this.tag("li",K):(this.tag("/li"),this.cr())};
_.V.custom_inline=function(K,d){d&&K.onEnter?c3(this,K.onEnter):!d&&K.onExit&&c3(this,K.onExit)};
_.V.custom_block=function(K,d){this.cr();d&&K.onEnter?c3(this,K.onEnter):!d&&K.onExit&&c3(this,K.onExit);this.cr()};
_.V.table=function(K,d){K=this.attrs(K);d?(this.cr(),this.tag("table",K)):(this.tag("/table"),this.cr())};
_.V.row=function(K,d){K._rowIsDelimiter||(K=this.attrs(K),d?this.tag("tr",K):this.tag("/tr"))};
_.V.td=function(K,d){var f=this.attrs(K);K._alignment&&f.push(["align",K._alignment]);d?this.tag("td",f):this.tag("/td")};
_.V.th=function(K,d){var f=this.attrs(K);K._alignment&&f.push(["align",K._alignment]);d?this.tag("th",f):this.tag("/th")};
_.V.out=function(K){c3(this,dO(K,!1))};
_.V.tag=function(K,d,f){if(!(this.disableTags>0)){this.buffer+="<"+K;if(d&&d.length>0){K=0;for(var H;(H=d[K])!==void 0;)this.buffer+=" "+H[0]+'="'+H[1]+'"',K++}f&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.V.attrs=function(K){var d=[];this.options.sourcepos&&(K=K.sourcepos)&&d.push(["data-sourcepos",String(K[0][0])+":"+String(K[0][1])+"-"+String(K[1][0])+":"+String(K[1][1])]);return d};
V8.prototype.text=V8.prototype.text;V8.prototype.html_inline=V8.prototype.html_inline;V8.prototype.html_block=V8.prototype.html_block;V8.prototype.softbreak=V8.prototype.softbreak;V8.prototype.linebreak=V8.prototype.linebreak;V8.prototype.link=V8.prototype.link;V8.prototype.image=V8.prototype.image;V8.prototype.emph=V8.prototype.emph;V8.prototype.strong=V8.prototype.strong;V8.prototype.paragraph=V8.prototype.paragraph;V8.prototype.heading=V8.prototype.heading;V8.prototype.code=V8.prototype.code;
V8.prototype.code_block=V8.prototype.code_block;V8.prototype.thematic_break=V8.prototype.thematic_break;V8.prototype.block_quote=V8.prototype.block_quote;V8.prototype.list=V8.prototype.list;V8.prototype.item=V8.prototype.item;V8.prototype.custom_inline=V8.prototype.custom_inline;V8.prototype.custom_block=V8.prototype.custom_block;V8.prototype.table=V8.prototype.table;V8.prototype.row=V8.prototype.row;V8.prototype.td=V8.prototype.td;V8.prototype.th=V8.prototype.th;V8.prototype.out=V8.prototype.out;
V8.prototype.tag=V8.prototype.tag;V8.prototype.attrs=V8.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 zm2,XP6,I_Y;(function(){function K(b,t){return b<t?-1:b>t?1:b>=t?0:NaN}
function d(b){return function(t,G){return K(b(t),G)}}
function f(){for(var b=0,t=arguments.length,G={},k;b<t;++b){if(!(k=arguments[b]+"")||k in G)throw Error("pe`"+k);G[k]=[]}return new H(G)}
function H(b){this._=b}
function D(b,t){return b.trim().split(/^|\s+/).map(function(G){var k="",VO=G.indexOf(".");VO>=0&&(k=G.slice(VO+1),G=G.slice(0,VO));if(G&&!t.hasOwnProperty(G))throw Error("qe`"+G);return{type:G,name:k}})}
function S(b,t,G){for(var k=0,VO=b.length;k<VO;++k)if(b[k].name===t){b[k]=zCZ;b=b.slice(0,k).concat(b.slice(k+1));break}G!=null&&b.push({name:t,value:G});return b}
function n(b){var t=b,G=t.indexOf(":");G>=0&&(t=b.slice(0,G))!=="xmlns"&&(b=b.slice(G+1));return Ab.hasOwnProperty(t)?{space:Ab[t],local:b}:b}
function u(b){return function(){var t=this.ownerDocument,G=this.namespaceURI;return G==="http://www.w3.org/1999/xhtml"&&t.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?t.createElement(b):t.createElementNS(G,b)}}
function a(b){return function(){return this.ownerDocument.createElementNS(b.space,b.local)}}
function R(b){b=n(b);return(b.local?a:u)(b)}
function F(){}
function z(b){return b==null?F:function(){return this.querySelector(b)}}
function v(b){return Array(b.length)}
function g(b,t){this.ownerDocument=b.ownerDocument;this.namespaceURI=b.namespaceURI;this._next=null;this._parent=b;this.__data__=t}
function N(b){return function(){return b}}
function h(b,t,G,k,VO,uo){for(var XX=0,Yz,pB=t.length,kz=uo.length;XX<kz;++XX)(Yz=t[XX])?(Yz.__data__=uo[XX],k[XX]=Yz):G[XX]=new g(b,uo[XX]);for(;XX<pB;++XX)if(Yz=t[XX])VO[XX]=Yz}
function m(b,t,G,k,VO,uo,XX){var Yz,pB,kz={},KJ=t.length,nJ=uo.length,B4=Array(KJ),uU;for(Yz=0;Yz<KJ;++Yz)if(pB=t[Yz])B4[Yz]=uU="$"+XX.call(pB,pB.__data__,Yz,t),uU in kz?VO[Yz]=pB:kz[uU]=pB;for(Yz=0;Yz<nJ;++Yz)uU="$"+XX.call(b,uo[Yz],Yz,uo),(pB=kz[uU])?(k[Yz]=pB,pB.__data__=uo[Yz],kz[uU]=null):G[Yz]=new g(b,uo[Yz]);for(Yz=0;Yz<KJ;++Yz)(pB=t[Yz])&&kz[B4[Yz]]===pB&&(VO[Yz]=pB)}
function T(b,t){return b<t?-1:b>t?1:b>=t?0:NaN}
function r(b){return function(){this.removeAttribute(b)}}
function J(b){return function(){this.removeAttributeNS(b.space,b.local)}}
function L(b,t){return function(){this.setAttribute(b,t)}}
function fB(b,t){return function(){this.setAttributeNS(b.space,b.local,t)}}
function w(b,t){return function(){var G=t.apply(this,arguments);G==null?this.removeAttribute(b):this.setAttribute(b,G)}}
function yO(b,t){return function(){var G=t.apply(this,arguments);G==null?this.removeAttributeNS(b.space,b.local):this.setAttributeNS(b.space,b.local,G)}}
function FX(b){return function(){this.style.removeProperty(b)}}
function NJ(b,t,G){return function(){this.style.setProperty(b,t,G)}}
function $z(b,t,G){return function(){var k=t.apply(this,arguments);k==null?this.style.removeProperty(b):this.style.setProperty(b,k,G)}}
function hN(b,t){return b.style.getPropertyValue(t)||(b.ownerDocument&&b.ownerDocument.defaultView||b.document&&b||b.defaultView).getComputedStyle(b,null).getPropertyValue(t)}
function bo(b){return function(){delete this[b]}}
function xz(b,t){return function(){this[b]=t}}
function qJ(b,t){return function(){var G=t.apply(this,arguments);G==null?delete this[b]:this[b]=G}}
function Y8(){this.textContent=""}
function Iz(b){return function(){this.textContent=b}}
function qs(b){return function(){var t=b.apply(this,arguments);this.textContent=t==null?"":t}}
function af(){this.innerHTML=""}
function i9(b){return function(){this.innerHTML=b}}
function KE(b){return function(){var t=b.apply(this,arguments);this.innerHTML=t==null?"":t}}
function c4(){return null}
function cx(){var b=this.parentNode;b&&b.removeChild(this)}
function Oj(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function io(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function g2(b,t,G){b=l9(b,t,G);return function(k){var VO=k.relatedTarget;VO&&(VO===this||VO.compareDocumentPosition(this)&8)||b.call(this,k)}}
function l9(b,t,G){return function(){b.call(this,this.__data__,t,G)}}
function rw(b){return b.trim().split(/^|\s+/).map(function(t){var G="",k=t.indexOf(".");k>=0&&(G=t.slice(k+1),t=t.slice(0,k));return{type:t,name:G}})}
function t6(b){return function(){var t=this.__on;if(t){for(var G=0,k=-1,VO=t.length,uo;G<VO;++G)(uo=t[G],b.type&&uo.type!==b.type||uo.name!==b.name)?t[++k]=uo:this.removeEventListener(uo.type,uo.listener,uo.capture);++k?t.length=k:delete this.__on}}}
function LJ(b,t,G){var k=xhk.hasOwnProperty(b.type)?g2:l9;return function(VO,uo,XX){VO=this.__on;var Yz;uo=k(t,uo,XX);if(VO){XX=0;for(var pB=VO.length;XX<pB;++XX)if((Yz=VO[XX]).type===b.type&&Yz.name===b.name){this.removeEventListener(Yz.type,Yz.listener,Yz.capture);this.addEventListener(Yz.type,Yz.listener=uo,Yz.capture=G);Yz.value=t;return}}this.addEventListener(b.type,uo,G);Yz={type:b.type,name:b.name,value:t,listener:uo,capture:G};VO?VO.push(Yz):this.__on=[Yz]}}
function ry(b,t,G){var k=b.ownerDocument&&b.ownerDocument.defaultView||b.document&&b||b.defaultView,VO=k.CustomEvent;typeof VO==="function"?VO=new VO(t,G):(VO=k.document.createEvent("Event"),G?(VO.initEvent(t,G.bubbles,G.cancelable),VO.detail=G.detail):VO.initEvent(t,!1,!1));b.dispatchEvent(VO)}
function u9(b,t){return function(){return ry(this,b,t)}}
function wz(b,t){return function(){return ry(this,b,t.apply(this,arguments))}}
function Ms(b,t){this._groups=b;this._parents=t}
function yc(){return new Ms([[document.documentElement]],Xdw)}
function P4(){this._="@"+(++vbP).toString(36)}
function zy(b,t,G){b.prototype=t.prototype=G;G.constructor=b}
function nw(b,t){b=Object.create(b.prototype);for(var G in t)b[G]=t[G];return b}
function Sc(){}
function AP(b){var t;b=(b+"").trim().toLowerCase();return(t=MHK.exec(b))?(t=parseInt(t[1],16),new Z7(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1)):(t=Pfw.exec(b))?zf(parseInt(t[1],16)):(t=gbS.exec(b))?new Z7(t[1],t[2],t[3],1):(t=OsP.exec(b))?new Z7(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=N7t.exec(b))?Ss(t[1],t[2],t[3],t[4]):(t=YaS.exec(b))?Ss(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tHi.exec(b))?Yl(t[1],t[2]/100,t[3]/100,1):(t=obU.exec(b))?Yl(t[1],t[2]/100,t[3]/100,t[4]):Lw4.hasOwnProperty(b)?
zf(Lw4[b]):b==="transparent"?new Z7(NaN,NaN,NaN,0):null}
function zf(b){return new Z7(b>>16&255,b>>8&255,b&255,1)}
function Ss(b,t,G,k){k<=0&&(b=t=G=NaN);return new Z7(b,t,G,k)}
function Qv(b){b instanceof Sc||(b=AP(b));if(!b)return new Z7;b=b.rgb();return new Z7(b.r,b.g,b.b,b.opacity)}
function PK(b,t,G,k){return arguments.length===1?Qv(b):new Z7(b,t,G,k==null?1:k)}
function Z7(b,t,G,k){this.r=+b;this.g=+t;this.b=+G;this.opacity=+k}
function Kw(b){b=Math.max(0,Math.min(255,Math.round(b)||0));return(b<16?"0":"")+b.toString(16)}
function Yl(b,t,G,k){k<=0?b=t=G=NaN:G<=0||G>=1?b=t=NaN:t<=0&&(b=NaN);return new Il(b,t,G,k)}
function qe(b){if(b instanceof Il)return new Il(b.h,b.s,b.l,b.opacity);b instanceof Sc||(b=AP(b));if(!b)return new Il;if(b instanceof Il)return b;b=b.rgb();var t=b.r/255,G=b.g/255,k=b.b/255,VO=Math.min(t,G,k),uo=Math.max(t,G,k),XX=NaN,Yz=uo-VO,pB=(uo+VO)/2;Yz?(XX=t===uo?(G-k)/Yz+(G<k)*6:G===uo?(k-t)/Yz+2:(t-G)/Yz+4,Yz/=pB<.5?uo+VO:2-uo-VO,XX*=60):Yz=pB>0&&pB<1?0:XX;return new Il(XX,Yz,pB,b.opacity)}
function W_(b,t,G,k){return arguments.length===1?qe(b):new Il(b,t,G,k==null?1:k)}
function Il(b,t,G,k){this.h=+b;this.s=+t;this.l=+G;this.opacity=+k}
function w5(b,t,G){return(b<60?t+(G-t)*b/60:b<180?G:b<240?t+(G-t)*(240-b)/60:t)*255}
function tG(b){if(b instanceof Pu)return new Pu(b.l,b.a,b.b,b.opacity);if(b instanceof v4){if(isNaN(b.h))return new Pu(b.l,0,0,b.opacity);var t=b.h*BhH;return new Pu(b.l,Math.cos(t)*b.c,Math.sin(t)*b.c,b.opacity)}b instanceof Z7||(b=Qv(b));var G=D7(b.r),k=D7(b.g),VO=D7(b.b);t=GS(.2225045*G+.7168786*k+.0606169*VO);if(G===k&&k===VO)var uo=G=t;else uo=GS((.4360747*G+.3850649*k+.1430804*VO)/.96422),G=GS((.0139322*G+.0971045*k+.7141733*VO)/.82521);return new Pu(116*t-16,500*(uo-t),200*(t-G),b.opacity)}
function Pu(b,t,G,k){this.l=+b;this.a=+t;this.b=+G;this.opacity=+k}
function GS(b){return b>$v7?Math.pow(b,1/3):b/JoL+ssf}
function jp(b){return b>Vs?b*b*b:JoL*(b-ssf)}
function Rf(b){return 255*(b<=.0031308?12.92*b:1.055*Math.pow(b,1/2.4)-.055)}
function D7(b){return(b/=255)<=.04045?b/12.92:Math.pow((b+.055)/1.055,2.4)}
function o6(b){if(b instanceof v4)return new v4(b.h,b.c,b.l,b.opacity);b instanceof Pu||(b=tG(b));if(b.a===0&&b.b===0)return new v4(NaN,0,b.l,b.opacity);var t=Math.atan2(b.b,b.a)*kA2;return new v4(t<0?t+360:t,Math.sqrt(b.a*b.a+b.b*b.b),b.l,b.opacity)}
function cK(b,t,G,k){return arguments.length===1?o6(b):new v4(b,t,G,k==null?1:k)}
function v4(b,t,G,k){this.h=+b;this.c=+t;this.l=+G;this.opacity=+k}
function FH(b,t,G,k){if(arguments.length===1){var VO=b;if(VO instanceof Fi)VO=new Fi(VO.h,VO.s,VO.l,VO.opacity);else{VO instanceof Z7||(VO=Qv(VO));var uo=VO.g/255,XX=VO.b/255,Yz=(wLt*XX+VO.r/255*-1.7884503806-3.5172982438*uo)/(wLt+-1.7884503806-3.5172982438);XX-=Yz;var pB=(1.97294*(uo-Yz)- -.29227*XX)/-.90649;XX=(uo=Math.sqrt(pB*pB+XX*XX)/(1.97294*Yz*(1-Yz)))?Math.atan2(pB,XX)*kA2-120:NaN;VO=new Fi(XX<0?XX+360:XX,uo,Yz,VO.opacity)}}else VO=new Fi(b,t,G,k==null?1:k);return VO}
function Fi(b,t,G,k){this.h=+b;this.s=+t;this.l=+G;this.opacity=+k}
function a6(b,t,G,k,VO){var uo=b*b,XX=uo*b;return((1-3*b+3*uo-XX)*t+(4-6*uo+3*XX)*G+(1+3*b+3*uo-3*XX)*k+XX*VO)/6}
function St(b){return function(){return b}}
function Fa(b,t){return function(G){return b+G*t}}
function Un(b,t,G){return b=Math.pow(b,G),t=Math.pow(t,G)-b,G=1/G,function(k){return Math.pow(b+k*t,G)}}
function lN(b,t){var G=t-b;return G?Fa(b,G>180||G<-180?G-360*Math.round(G/360):G):St(isNaN(b)?t:b)}
function Xy(b){return(b=+b)===1?y9:function(t,G){return G-t?Un(t,G,b):St(isNaN(t)?G:t)}}
function y9(b,t){var G=t-b;return G?Fa(b,G):St(isNaN(b)?t:b)}
function tD(b){return function(t){var G=t.length,k=Array(G),VO=Array(G),uo=Array(G),XX;for(XX=0;XX<G;++XX){var Yz=PK(t[XX]);k[XX]=Yz.r||0;VO[XX]=Yz.g||0;uo[XX]=Yz.b||0}k=b(k);VO=b(VO);uo=b(uo);Yz.opacity=1;return function(pB){Yz.r=k(pB);Yz.g=VO(pB);Yz.b=uo(pB);return Yz+""}}}
function LB(b,t){return b=+b,t-=b,function(G){return b+t*G}}
function fE(b){return function(){return b}}
function iN(b){return function(t){return b(t)+""}}
function xw(b,t){var G=OTS.lastIndex=Nk5.lastIndex=0,k,VO,uo,XX=-1,Yz=[],pB=[];b+="";for(t+="";(k=OTS.exec(b))&&(VO=Nk5.exec(t));)(uo=VO.index)>G&&(uo=t.slice(G,uo),Yz[XX]?Yz[XX]+=uo:Yz[++XX]=uo),(k=k[0])===(VO=VO[0])?Yz[XX]?Yz[XX]+=VO:Yz[++XX]=VO:(Yz[++XX]=null,pB.push({i:XX,x:LB(k,VO)})),G=Nk5.lastIndex;G<t.length&&(uo=t.slice(G),Yz[XX]?Yz[XX]+=uo:Yz[++XX]=uo);return Yz.length<2?pB[0]?iN(pB[0].x):fE(t):(t=pB.length,function(kz){for(var KJ=0,nJ;KJ<t;++KJ)Yz[(nJ=pB[KJ]).i]=nJ.x(kz);return Yz.join("")})}
function Ne(b,t,G,k,VO,uo){var XX,Yz,pB;if(XX=Math.sqrt(b*b+t*t))b/=XX,t/=XX;if(pB=b*G+t*k)G-=b*pB,k-=t*pB;if(Yz=Math.sqrt(G*G+k*k))G/=Yz,k/=Yz,pB/=Yz;b*k<t*G&&(b=-b,t=-t,pB=-pB,XX=-XX);return{translateX:VO,translateY:uo,rotate:Math.atan2(t,b)*Zfs,skewX:Math.atan(pB)*Zfs,scaleX:XX,scaleY:Yz}}
function Yh(b,t,G,k){function VO(kz){return kz.length?kz.pop()+" ":""}
function uo(kz,KJ,nJ,B4,uU,R6){kz!==nJ||KJ!==B4?(uU=uU.push("translate(",null,t,null,G),R6.push({i:uU-4,x:LB(kz,nJ)},{i:uU-2,x:LB(KJ,B4)})):(nJ||B4)&&uU.push("translate("+nJ+t+B4+G)}
function XX(kz,KJ,nJ,B4){kz!==KJ?(kz-KJ>180?KJ+=360:KJ-kz>180&&(kz+=360),B4.push({i:nJ.push(VO(nJ)+"rotate(",null,k)-2,x:LB(kz,KJ)})):KJ&&nJ.push(VO(nJ)+"rotate("+KJ+k)}
function Yz(kz,KJ,nJ,B4){kz!==KJ?B4.push({i:nJ.push(VO(nJ)+"skewX(",null,k)-2,x:LB(kz,KJ)}):KJ&&nJ.push(VO(nJ)+"skewX("+KJ+k)}
function pB(kz,KJ,nJ,B4,uU,R6){kz!==nJ||KJ!==B4?(uU=uU.push(VO(uU)+"scale(",null,",",null,")"),R6.push({i:uU-4,x:LB(kz,nJ)},{i:uU-2,x:LB(KJ,B4)})):nJ===1&&B4===1||uU.push(VO(uU)+"scale("+nJ+","+B4+")")}
return function(kz,KJ){var nJ=[],B4=[];kz=b(kz);KJ=b(KJ);uo(kz.translateX,kz.translateY,KJ.translateX,KJ.translateY,nJ,B4);XX(kz.rotate,KJ.rotate,nJ,B4);Yz(kz.skewX,KJ.skewX,nJ,B4);pB(kz.scaleX,kz.scaleY,KJ.scaleX,KJ.scaleY,nJ,B4);kz=KJ=null;return function(uU){for(var R6=-1,QL=B4.length,vg;++R6<QL;)nJ[(vg=B4[R6]).i]=vg.x(uU);return nJ.join("")}}}
function $s(b){return function(t,G){var k=b((t=W_(t)).h,(G=W_(G)).h),VO=y9(t.s,G.s),uo=y9(t.l,G.l),XX=y9(t.opacity,G.opacity);return function(Yz){t.h=k(Yz);t.s=VO(Yz);t.l=uo(Yz);t.opacity=XX(Yz);return t+""}}}
function a2(b){return function(t,G){var k=b((t=cK(t)).h,(G=cK(G)).h),VO=y9(t.c,G.c),uo=y9(t.l,G.l),XX=y9(t.opacity,G.opacity);return function(Yz){t.h=k(Yz);t.c=VO(Yz);t.l=uo(Yz);t.opacity=XX(Yz);return t+""}}}
function I2(b){return function k(G){function VO(uo,XX){var Yz=b((uo=FH(uo)).h,(XX=FH(XX)).h),pB=y9(uo.s,XX.s),kz=y9(uo.l,XX.l),KJ=y9(uo.opacity,XX.opacity);return function(nJ){uo.h=Yz(nJ);uo.s=pB(nJ);uo.l=kz(Math.pow(nJ,G));uo.opacity=KJ(nJ);return uo+""}}
G=+G;VO.gamma=k;return VO}(1)}
function FV(){return AX||(eKB(LtY),AX=Cz.now()+uRz)}
function LtY(){AX=0}
function zt(){this._call=this._time=this._next=null}
function C6(b,t,G){var k=new zt;k.restart(b,t,G);return k}
function xx(){AX=(aKp=Cz.now())+uRz;SM=xU=0;try{FV();++SM;for(var b=IKz,t;b;)(t=AX-b._time)>=0&&b._call.call(null,t),b=b._next;--SM}finally{SM=0;b=IKz;for(var G=Infinity;b;)if(b._call){G>b._time&&(G=b._time);var k=b;b=b._next}else t=b._next,b._next=null,b=k?k._next=t:IKz=t;Lz=k;L6(G);AX=0}}
function uNS(){var b=Cz.now(),t=b-aKp;t>1E3&&(uRz-=t,aKp=b)}
function L6(b){SM||(xU&&(xU=clearTimeout(xU)),b-AX>24?(b<Infinity&&(xU=setTimeout(xx,b-Cz.now()-uRz)),Bi&&(Bi=clearInterval(Bi))):(Bi||(aKp=Cz.now(),Bi=setInterval(uNS,1E3)),SM=1,eKB(xx)))}
function pLv(b,t,G){var k=new zt;t=t==null?0:+t;k.restart(function(VO){k.stop();b(VO+t)},t,G);
return k}
function YhJ(b,t,G,k,VO,uo){var XX=b.__transition;if(!XX)b.__transition={};else if(G in XX)return;Ebw(b,G,{name:t,index:k,group:VO,on:hCU,tween:bsE,time:uo.time,delay:uo.delay,duration:uo.duration,ease:uo.ease,timer:null,state:0})}
function t2X(b,t){b=Ht(b,t);if(b.state>0)throw Error("re");return b}
function TU(b,t){b=Ht(b,t);if(b.state>2)throw Error("se");return b}
function Ht(b,t){b=b.__transition;if(!b||!(b=b[t]))throw Error("te");return b}
function Ebw(b,t,G){function k(pB){var kz,KJ;if(G.state!==1)return uo();for(B4 in XX){var nJ=XX[B4];if(nJ.name===G.name){if(nJ.state===3)return pLv(k);nJ.state===4?(nJ.state=6,nJ.timer.stop(),nJ.on.call("interrupt",b,b.__data__,nJ.index,nJ.group),delete XX[B4]):+B4<t&&(nJ.state=6,nJ.timer.stop(),delete XX[B4])}}pLv(function(){G.state===3&&(G.state=4,G.timer.restart(VO,G.delay,G.time),VO(pB))});
G.state=2;G.on.call("start",b,b.__data__,G.index,G.group);if(G.state===2){G.state=3;Yz=Array(KJ=G.tween.length);var B4=0;for(kz=-1;B4<KJ;++B4)if(nJ=G.tween[B4].value.call(b,b.__data__,G.index,G.group))Yz[++kz]=nJ;Yz.length=kz+1}}
function VO(pB){pB=pB<G.duration?G.ease.call(null,pB/G.duration):(G.timer.restart(uo),G.state=5,1);for(var kz=-1,KJ=Yz.length;++kz<KJ;)Yz[kz].call(null,pB);G.state===5&&(G.on.call("end",b,b.__data__,G.index,G.group),uo())}
function uo(){G.state=6;G.timer.stop();delete XX[t];for(var pB in XX)return;delete b.__transition}
var XX=b.__transition,Yz;XX[t]=G;G.timer=C6(function(pB){G.state=1;G.timer.restart(k,G.delay,G.time);G.delay<=pB&&k(pB-G.delay)},0,G.time)}
function mvc(b,t){var G,k;return function(){var VO=TU(this,b),uo=VO.tween;if(uo!==G){k=G=uo;uo=0;for(var XX=k.length;uo<XX;++uo)if(k[uo].name===t){k=k.slice();k.splice(uo,1);break}}VO.tween=k}}
function lfw(b,t,G){var k,VO;if(typeof G!=="function")throw Error();return function(){var uo=TU(this,b),XX=uo.tween;if(XX!==k){VO=(k=XX).slice();XX={name:t,value:G};for(var Yz=0,pB=VO.length;Yz<pB;++Yz)if(VO[Yz].name===t){VO[Yz]=XX;break}Yz===pB&&VO.push(XX)}uo.tween=VO}}
function o1O(b,t,G){var k=b._id;b.each(function(){var VO=TU(this,k);(VO.value||(VO.value={}))[t]=G.apply(this,arguments)});
return function(VO){return Ht(VO,k).value[t]}}
function K1t(b,t){var G;return(typeof t==="number"?LB:t instanceof AP?d_B:(G=AP(t))?(t=G,d_B):xw)(b,t)}
function W4S(b){return function(){this.removeAttribute(b)}}
function G$c(b){return function(){this.removeAttributeNS(b.space,b.local)}}
function AmE(b,t,G){var k,VO;return function(){var uo=this.getAttribute(b);return uo===G?null:uo===k?VO:VO=t(k=uo,G)}}
function T7y(b,t,G){var k,VO;return function(){var uo=this.getAttributeNS(b.space,b.local);return uo===G?null:uo===k?VO:VO=t(k=uo,G)}}
function rm5(b,t,G){var k,VO,uo;return function(){var XX=G(this);if(XX==null)return void this.removeAttribute(b);var Yz=this.getAttribute(b);return Yz===XX?null:Yz===k&&XX===VO?uo:uo=t(k=Yz,VO=XX)}}
function qaS(b,t,G){var k,VO,uo;return function(){var XX=G(this);if(XX==null)return void this.removeAttributeNS(b.space,b.local);var Yz=this.getAttributeNS(b.space,b.local);return Yz===XX?null:Yz===k&&XX===VO?uo:uo=t(k=Yz,VO=XX)}}
function Q1Z(b,t){function G(){var k=this,VO=t.apply(k,arguments);return VO&&function(uo){k.setAttributeNS(b.space,b.local,VO(uo))}}
G._value=t;return G}
function j1P(b,t){function G(){var k=this,VO=t.apply(k,arguments);return VO&&function(uo){k.setAttribute(b,VO(uo))}}
G._value=t;return G}
function Cf7(b,t){return function(){t2X(this,b).delay=+t.apply(this,arguments)}}
function xvS(b,t){return t=+t,function(){t2X(this,b).delay=t}}
function L4K(b,t){return function(){TU(this,b).duration=+t.apply(this,arguments)}}
function B7y(b,t){return t=+t,function(){TU(this,b).duration=t}}
function JmU(b,t){if(typeof t!=="function")throw Error();return function(){TU(this,b).ease=t}}
function s1w(b){return(b+"").trim().split(/^|\s+/).every(function(t){var G=t.indexOf(".");G>=0&&(t=t.slice(0,G));return!t||t==="start"})}
function k$y(b,t,G){var k,VO,uo=s1w(t)?t2X:TU;return function(){var XX=uo(this,b),Yz=XX.on;if(Yz!==k)(VO=(k=Yz).copy()).on(t,G);XX.on=VO}}
function wd7(b){return function(){var t=this.parentNode,G;for(G in this.__transition)if(+G!==b)return;t&&t.removeChild(this)}}
function Zsw(b,t){var G,k,VO;return function(){var uo=hN(this,b),XX=(this.style.removeProperty(b),hN(this,b));return uo===XX?null:uo===G&&XX===k?VO:VO=t(G=uo,k=XX)}}
function eCS(b){return function(){this.style.removeProperty(b)}}
function pdZ(b,t,G){var k,VO;return function(){var uo=hN(this,b);return uo===G?null:uo===k?VO:VO=t(k=uo,G)}}
function KQw(b,t,G){var k,VO,uo;return function(){var XX=hN(this,b),Yz=G(this);Yz==null&&(Yz=(this.style.removeProperty(b),hN(this,b)));return XX===Yz?null:XX===k&&Yz===VO?uo:uo=t(k=XX,VO=Yz)}}
function diS(b,t,G){function k(){var VO=this,uo=t.apply(VO,arguments);return uo&&function(XX){VO.style.setProperty(b,uo(XX),G)}}
k._value=t;return k}
function fbZ(b){return function(){this.textContent=b}}
function HOw(b){return function(){var t=b(this);this.textContent=t==null?"":t}}
function yr(b,t,G,k){this._groups=b;this._parents=t;this._name=G;this._id=k}
function $_G(b){return{type:b}}
function E1O(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function UqN(){}
function fzf(b,t){var G=new UqN;if(b instanceof UqN)b.each(function(XX,Yz){G.set(Yz,XX)});
else if(Array.isArray(b)){var k=-1,VO=b.length,uo;if(t==null)for(;++k<VO;)G.set(k,b[k]);else for(;++k<VO;)G.set(t(uo=b[k],k,b),uo)}else if(b)for(k in b)G.set(k,b[k]);return G}
function R7p(){}
function HT4(b){return function(t){for(var G={},k=0;k<b.length;k++)G[b[k]]=t[k]||"";return G}}
function DiU(b,t){var G=HT4(b);return function(k,VO){return t(G(k),VO,b)}}
function VRc(b){var t=Object.create(null),G=[];b.forEach(function(k){for(var VO in k)VO in t||G.push(t[VO]=VO)});
return G}
function D_s(b){function t(XX,Yz){function pB(){if(R6)return heX;if(QL)return QL=!1,V29;var qH,wG=nJ,Xf;if(XX.charCodeAt(wG)===34){for(;nJ++<KJ&&XX.charCodeAt(nJ)!==34||XX.charCodeAt(++nJ)===34;);(qH=nJ)>=KJ?R6=!0:(Xf=XX.charCodeAt(nJ++))===10?QL=!0:Xf===13&&(QL=!0,XX.charCodeAt(nJ)===10&&++nJ);return XX.slice(wG+1,qH-1).replace(/""/g,'"')}for(;nJ<KJ;){if((Xf=XX.charCodeAt(qH=nJ++))===10)QL=!0;else if(Xf===13)QL=!0,XX.charCodeAt(nJ)===10&&++nJ;else if(Xf!==uo)continue;return XX.slice(wG,qH)}return R6=
!0,XX.slice(wG,KJ)}
var kz=[],KJ=XX.length,nJ=0,B4=0,uU,R6=KJ<=0,QL=!1;XX.charCodeAt(KJ-1)===10&&--KJ;for(XX.charCodeAt(KJ-1)===13&&--KJ;(uU=pB())!==heX;){for(var vg=[];uU!==V29&&uU!==heX;)vg.push(uU),uU=pB();Yz&&(vg=Yz(vg,B4++))==null||kz.push(vg)}return kz}
function G(XX){return XX.map(k).join(b)}
function k(XX){return XX==null?"":VO.test(XX)?'"'+XX.replace(/"/g,'""')+'"':XX}
var VO=new RegExp('["'+b+"\n\r]"),uo=b.charCodeAt(0);return{parse:function(XX,Yz){var pB,kz;XX=t(XX,function(KJ,nJ){if(pB)return pB(KJ,nJ-1);kz=KJ;pB=Yz?DiU(KJ,Yz):HT4(KJ)});
XX.columns=kz||[];return XX},
parseRows:t,format:function(XX,Yz){Yz==null&&(Yz=VRc(XX));return[Yz.map(k).join(b)].concat(XX.map(function(pB){return Yz.map(function(kz){return k(pB[kz])}).join(b)})).join("\n")},
formatRows:function(XX){return XX.map(G).join("\n")}}}
function S37(b){if(!b.ok)throw Error("ue`"+b.status+"`"+b.statusText);return b.text()}
function Sht(b){return function(t,G,k){arguments.length===2&&typeof G==="function"&&(k=G,G=void 0);return fetch(t,G).then(S37).then(function(VO){return b(VO,k)})}}
function yl6(b,t,G,k){if(isNaN(t)||isNaN(G))return b;var VO,uo=b._root;k={data:k};var XX=b._x0,Yz=b._y0,pB=b._x1,kz=b._y1,KJ,nJ,B4,uU,R6;if(!uo)return b._root=k,b;for(;uo.length;)if((B4=t>=(KJ=(XX+pB)/2))?XX=KJ:pB=KJ,(uU=G>=(nJ=(Yz+kz)/2))?Yz=nJ:kz=nJ,VO=uo,!(uo=uo[R6=uU<<1|B4]))return VO[R6]=k,b;var QL=+b._x.call(null,uo.data);var vg=+b._y.call(null,uo.data);if(t===QL&&G===vg)return k.next=uo,VO?VO[R6]=k:b._root=k,b;do VO=VO?VO[R6]=Array(4):b._root=Array(4),(B4=t>=(KJ=(XX+pB)/2))?XX=KJ:pB=KJ,(uU=
G>=(nJ=(Yz+kz)/2))?Yz=nJ:kz=nJ;while((R6=uU<<1|B4)===(B4=(vg>=nJ)<<1|QL>=KJ));return VO[B4]=uo,VO[R6]=k,b}
function s1(b,t,G,k,VO){this.node=b;this.x0=t;this.y0=G;this.x1=k;this.y1=VO}
function yIw(b){return b[0]}
function n2Z(b){return b[1]}
function bTY(b,t,G,k,VO,uo){this._x=b;this._y=t;this._x0=G;this._y0=k;this._x1=VO;this._y1=uo;this._root=void 0}
function n14(b){for(var t={data:b.data},G=t;b=b.next;)G=G.next={data:b.data};return t}
function FUO(b,t){if((t=(b=t?b.toExponential(t-1):b.toExponential()).indexOf("e"))<0)return null;var G=b.slice(0,t);return[G.length>1?G[0]+G.slice(2):G,+b.slice(t+1)]}
function iO7(b){return b=FUO(Math.abs(b)),b?b[1]:NaN}
function cIc(b,t){return function(G,k){for(var VO=G.length,uo=[],XX=0,Yz=b[0],pB=0;VO>0&&Yz>0;){pB+Yz+1>k&&(Yz=Math.max(1,k-pB));uo.push(G.substring(VO-=Yz,VO+Yz));if((pB+=Yz+1)>k)break;Yz=b[XX=(XX+1)%b.length]}return uo.reverse().join(t)}}
function uoK(b){return function(t){return t.replace(/[0-9]/g,function(G){return b[+G]})}}
function m_N(b){return new lzS(b)}
function lzS(b){if(!(t=abt.exec(b)))throw Error("ve`"+b);var t;this.fill=t[1]||" ";this.align=t[2]||">";this.sign=t[3]||"-";this.symbol=t[4]||"";this.zero=!!t[5];this.width=t[6]&&+t[6];this.comma=!!t[7];this.precision=t[8]&&+t[8].slice(1);this.trim=!!t[9];this.type=t[10]||""}
function iT9(b,t){t=FUO(b,t);if(!t)return b+"";b=t[0];t=t[1];return t<0?"0."+Array(-t).join("0")+b:b.length>t+1?b.slice(0,t+1)+"."+b.slice(t+1):b+Array(t-b.length+2).join("0")}
function clv(b){return b}
function IbE(b){function t(Yz){function pB(Lw){var i3=Xf,tP=eC,uN,d4;if(wG==="c")tP=Zq(Lw)+tP,Lw="";else{Lw=+Lw;var UZ=Lw<0;Lw=Zq(Math.abs(Lw),vg);if(qH){var xF=Lw.length,ON=1,Q9=-1;a:for(;ON<xF;++ON)switch(Lw[ON]){case ".":Q9=uN=ON;break;case "0":Q9===0&&(Q9=ON);uN=ON;break;default:if(!+Lw[ON])break a;Q9>0&&(Q9=0)}Lw=Q9>0?Lw.slice(0,Q9)+Lw.slice(uN+1):Lw}UZ&&+Lw===0&&(UZ=!1);i3=(UZ?nJ==="("?nJ:"-":nJ==="-"||nJ==="("?"":nJ)+i3;tP=(wG==="s"?ucf[8+azf/3]:"")+tP+(UZ&&nJ==="("?")":"");if(U7)for(UZ=-1,
uN=Lw.length;++UZ<uN;)if(d4=Lw.charCodeAt(UZ),48>d4||d4>57){tP=(d4===46?VO+Lw.slice(UZ+1):Lw.slice(UZ))+tP;Lw=Lw.slice(0,UZ);break}}QL&&!uU&&(Lw=G(Lw,Infinity));d4=i3.length+Lw.length+tP.length;UZ=d4<R6?Array(R6-d4+1).join(kz):"";QL&&uU&&(Lw=G(UZ+Lw,UZ.length?R6-tP.length:Infinity),UZ="");switch(KJ){case "<":Lw=i3+Lw+tP+UZ;break;case "=":Lw=i3+UZ+Lw+tP;break;case "^":Lw=UZ.slice(0,d4=UZ.length>>1)+i3+Lw+tP+UZ.slice(d4);break;default:Lw=UZ+i3+Lw+tP}return uo(Lw)}
Yz=m_N(Yz);var kz=Yz.fill,KJ=Yz.align,nJ=Yz.sign,B4=Yz.symbol,uU=Yz.zero,R6=Yz.width,QL=Yz.comma,vg=Yz.precision,qH=Yz.trim,wG=Yz.type;wG==="n"?(QL=!0,wG="g"):Izk[wG]||(vg==null&&(vg=12),qH=!0,wG="g");if(uU||kz==="0"&&KJ==="=")uU=!0,kz="0",KJ="=";var Xf=B4==="$"?k[0]:B4==="#"&&/[boxX]/.test(wG)?"0"+wG.toLowerCase():"",eC=B4==="$"?k[1]:/[%p]/.test(wG)?XX:"",Zq=Izk[wG],U7=/[defgprs%]/.test(wG);vg=vg==null?6:/[gprs]/.test(wG)?Math.max(1,Math.min(21,vg)):Math.max(0,Math.min(20,vg));pB.toString=function(){return Yz+
""};
return pB}
var G=b.grouping&&b.thousands?cIc(b.grouping,b.thousands):clv,k=b.currency,VO=b.decimal,uo=b.numerals?uoK(b.numerals):clv,XX=b.percent||"%";return{format:t,formatPrefix:function(Yz,pB){var kz=t((Yz=m_N(Yz),Yz.type="f",Yz));Yz=Math.max(-8,Math.min(8,Math.floor(iO7(pB)/3)))*3;var KJ=Math.pow(10,-Yz),nJ=ucf[8+Yz/3];return function(B4){return kz(KJ*B4)+nJ}}}}
function WY(){this.reset()}
function U_9(b,t,G){var k=b.s=t+G,VO=k-t;b.t=t-(k-VO)+(G-VO)}
function z7p(b){return b>1?TD:b<-1?-TD:Math.asin(b)}
function UiZ(){}
function ReH(b){var t=b[0];b=b[1];var G=r3(b);return[G*r3(t),G*OV(t),OV(b)]}
function F1s(b,t){return[b[1]*t[2]-b[2]*t[1],b[2]*t[0]-b[0]*t[2],b[0]*t[1]-b[1]*t[0]]}
function ze9(b){var t=XC5(b[0]*b[0]+b[1]*b[1]+b[2]*b[2]);b[0]/=t;b[1]/=t;b[2]/=t}
function RHP(){var b=[],t;return{point:function(G,k){t.push([G,k])},
lineStart:function(){b.push(t=[])},
lineEnd:UiZ,rejoin:function(){b.length>1&&b.push(b.pop().concat(b.shift()))},
result:function(){var G=b;b=[];t=null;return G}}}
function vFG(b,t,G,k){this.x=b;this.z=t;this.o=G;this.e=k;this.v=!1;this.n=this.p=null}
function FQy(b,t,G,k,VO){var uo=[],XX=[];b.forEach(function(nJ){if(!((B4=nJ.length-1)<=0)){var B4,uU=nJ[0],R6=nJ[B4],QL=uU;if(nL(QL[0]-R6[0])<1E-6&&nL(QL[1]-R6[1])<1E-6){VO.lineStart();for(Yz=0;Yz<B4;++Yz)VO.point((uU=nJ[Yz])[0],uU[1]);VO.lineEnd()}else uo.push(B4=new vFG(uU,nJ,null,!0)),XX.push(B4.o=new vFG(uU,null,B4,!1)),uo.push(B4=new vFG(R6,nJ,null,!1)),XX.push(B4.o=new vFG(R6,null,B4,!0))}});
if(uo.length){XX.sort(t);XEk(uo);XEk(XX);var Yz=0;for(b=XX.length;Yz<b;++Yz)XX[Yz].e=G=!G;G=uo[0];for(var pB;;){for(var kz=G,KJ=!0;kz.v;)if((kz=kz.n)===G)return;t=kz.z;VO.lineStart();do{kz.v=kz.o.v=!0;if(kz.e){if(KJ)for(Yz=0,b=t.length;Yz<b;++Yz)VO.point((pB=t[Yz])[0],pB[1]);else k(kz.x,kz.n.x,1,VO);kz=kz.n}else{if(KJ)for(t=kz.p.z,Yz=t.length-1;Yz>=0;--Yz)VO.point((pB=t[Yz])[0],pB[1]);else k(kz.x,kz.p.x,-1,VO);kz=kz.p}kz=kz.o;t=kz.z;KJ=!KJ}while(!kz.v);VO.lineEnd()}}}
function XEk(b){if(t=b.length){for(var t,G=0,k=b[0],VO;++G<t;)k.n=VO=b[G],VO.p=k,k=VO;k.n=VO=b[0];VO.p=k}}
function zHP(b){return b.length>1}
function XYi(b,t){return((b=b.x)[0]<0?b[1]-TD-1E-6:TD-b[1])-((t=t.x)[0]<0?t[1]-TD-1E-6:TD-t[1])}
function W1N(){}
function v1N(b){return function(t,G){var k=r3(t),VO=r3(G);k=b(k*VO);return[k*VO*OV(t),k*OV(G)]}}
function Jr(b){return function(t,G){var k=XC5(t*t+G*G),VO=b(k),uo=OV(VO);VO=r3(VO);return[M2N(t*uo,k*VO),z7p(k&&G*uo/k)]}}
function v2z(b){var t=0,G=b.children,k=G&&G.length;if(k)for(;--k>=0;)t+=G[k].value;else t=1;b.value=t}
function PVs(b,t){var G=new sW(b);b=+b.value&&(G.value=b.value);var k,VO=[G],uo,XX,Yz,pB;for(t==null&&(t=MRE);k=VO.pop();)if(b&&(k.value=+k.data.value),(XX=t(k.data))&&(pB=XX.length))for(k.children=Array(pB),Yz=pB-1;Yz>=0;--Yz)VO.push(uo=k.children[Yz]=new sW(XX[Yz])),uo.parent=k,uo.depth=k.depth+1;return G.eachBefore(P1U)}
function MRE(b){return b.children}
function g2c(b){b.data=b.data.data}
function P1U(b){var t=0;do b.height=t;while((b=b.parent)&&b.height<++t)}
function sW(b){this.data=b;this.depth=this.height=0;this.parent=null}
function Uy(b,t,G,k){function VO(uo){return b(uo=new Date(+uo)),uo}
VO.floor=VO;VO.ceil=function(uo){return b(uo=new Date(uo-1)),t(uo,1),b(uo),uo};
VO.round=function(uo){var XX=VO(uo),Yz=VO.ceil(uo);return uo-XX<Yz-uo?XX:Yz};
VO.offset=function(uo,XX){return t(uo=new Date(+uo),XX==null?1:Math.floor(XX)),uo};
VO.range=function(uo,XX,Yz){var pB=[],kz;uo=VO.ceil(uo);Yz=Yz==null?1:Math.floor(Yz);if(!(uo<XX&&Yz>0))return pB;do pB.push(kz=new Date(+uo)),t(uo,Yz),b(uo);while(kz<uo&&uo<XX);return pB};
VO.filter=function(uo){return Uy(function(XX){if(XX>=XX)for(;b(XX),!uo(XX);)XX.setTime(XX-1)},function(XX,Yz){if(XX>=XX)if(Yz<0)for(;++Yz<=0;)for(;t(XX,-1),!uo(XX););
else for(;--Yz>=0;)for(;t(XX,1),!uo(XX););})};
G&&(VO.count=function(uo,XX){G3X.setTime(+uo);Alu.setTime(+XX);b(G3X);b(Alu);return Math.floor(G(G3X,Alu))},VO.every=function(uo){uo=Math.floor(uo);
return isFinite(uo)&&uo>0?uo>1?VO.filter(k?function(XX){return k(XX)%uo===0}:function(XX){return VO.count(0,XX)%uo===0}):VO:null});
return VO}
function rt(b){return Uy(function(t){t.setDate(t.getDate()-(t.getDay()+7-b)%7);t.setHours(0,0,0,0)},function(t,G){t.setDate(t.getDate()+G*7)},function(t,G){return(G-t-(G.getTimezoneOffset()-t.getTimezoneOffset())*6E4)/6048E5})}
function qC(b){return Uy(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-b)%7);t.setUTCHours(0,0,0,0)},function(t,G){t.setUTCDate(t.getUTCDate()+G*7)},function(t,G){return(G-t)/6048E5})}
function OOE(b){if(0<=b.y&&b.y<100){var t=new Date(-1,b.m,b.d,b.H,b.M,b.S,b.L);t.setFullYear(b.y);return t}return new Date(b.y,b.m,b.d,b.H,b.M,b.S,b.L)}
function MDO(b){if(0<=b.y&&b.y<100){var t=new Date(Date.UTC(-1,b.m,b.d,b.H,b.M,b.S,b.L));t.setUTCFullYear(b.y);return t}return new Date(Date.UTC(b.y,b.m,b.d,b.H,b.M,b.S,b.L))}
function kU(b){return{y:b,m:0,d:1,H:0,M:0,S:0,L:0}}
function Nc5(b){function t(tP,uN){return function(d4){var UZ=[],xF=-1,ON=0,Q9=tP.length,ad,Ng;for(d4 instanceof Date||(d4=new Date(+d4));++xF<Q9;)if(tP.charCodeAt(xF)===37){UZ.push(tP.slice(ON,xF));(ON=g1L[ad=tP.charAt(++xF)])!=null?ad=tP.charAt(++xF):ON=ad==="e"?" ":"0";if(Ng=uN[ad])ad=Ng(d4,ON);UZ.push(ad);ON=xF+1}UZ.push(tP.slice(ON,xF));return UZ.join("")}}
function G(tP,uN){return function(d4){var UZ=kU(1900);if(k(UZ,tP,d4,0)!=d4.length)return null;if("Q"in UZ)return new Date(UZ.Q);"p"in UZ&&(UZ.H=UZ.H%12+UZ.p*12);if("V"in UZ){if(UZ.V<1||UZ.V>53)return null;"w"in UZ||(UZ.w=1);if("Z"in UZ){d4=MDO(kU(UZ.y));var xF=d4.getUTCDay();d4=xF>4||xF===0?TkY.ceil(d4):TkY(d4);d4=OTk.offset(d4,(UZ.V-1)*7);UZ.y=d4.getUTCFullYear();UZ.m=d4.getUTCMonth();UZ.d=d4.getUTCDate()+(UZ.w+6)%7}else d4=uN(kU(UZ.y)),xF=d4.getDay(),d4=xF>4||xF===0?rlz.ceil(d4):rlz(d4),d4=NkN.offset(d4,
(UZ.V-1)*7),UZ.y=d4.getFullYear(),UZ.m=d4.getMonth(),UZ.d=d4.getDate()+(UZ.w+6)%7}else if("W"in UZ||"U"in UZ)"w"in UZ||(UZ.w="u"in UZ?UZ.u%7:"W"in UZ?1:0),xF="Z"in UZ?MDO(kU(UZ.y)).getUTCDay():uN(kU(UZ.y)).getDay(),UZ.m=0,UZ.d="W"in UZ?(UZ.w+6)%7+UZ.W*7-(xF+5)%7:UZ.w+UZ.U*7-(xF+6)%7;return"Z"in UZ?(UZ.H+=UZ.Z/100|0,UZ.M+=UZ.Z%100,MDO(UZ)):uN(UZ)}}
function k(tP,uN,d4,UZ){for(var xF=0,ON=uN.length,Q9=d4.length,ad;xF<ON;){if(UZ>=Q9)return-1;ad=uN.charCodeAt(xF++);if(ad===37){if(ad=uN.charAt(xF++),ad=i3[ad in g1L?uN.charAt(xF++):ad],!ad||(UZ=ad(tP,d4,UZ))<0)return-1}else if(ad!=d4.charCodeAt(UZ++))return-1}return UZ}
var VO=b.dateTime,uo=b.date,XX=b.time,Yz=b.periods,pB=b.days,kz=b.shortDays,KJ=b.months,nJ=b.shortMonths,B4=wp(Yz),uU=ZO(Yz),R6=wp(pB),QL=ZO(pB),vg=wp(kz),qH=ZO(kz),wG=wp(KJ),Xf=ZO(KJ),eC=wp(nJ),Zq=ZO(nJ),U7={a:function(tP){return kz[tP.getDay()]},
A:function(tP){return pB[tP.getDay()]},
b:function(tP){return nJ[tP.getMonth()]},
B:function(tP){return KJ[tP.getMonth()]},
c:null,d:Yhs,e:Yhs,f:Y3z,H:tRy,I:o2c,j:$iU,L:t2H,m:E2S,M:hHt,p:function(tP){return Yz[+(tP.getHours()>=12)]},
Q:o1v,s:$_B,S:bOz,u:mi7,U:lbt,V:WQ7,w:G9Z,W:AI5,x:null,X:null,y:TcP,Y:rI7,Z:q3K,"%":E1v},Lw={a:function(tP){return kz[tP.getUTCDay()]},
A:function(tP){return pB[tP.getUTCDay()]},
b:function(tP){return nJ[tP.getUTCMonth()]},
B:function(tP){return KJ[tP.getUTCMonth()]},
c:null,d:hef,e:hef,f:Q2P,H:j2K,I:C1K,j:xi5,L:bTs,m:LQw,M:Bc7,p:function(tP){return Yz[+(tP.getUTCHours()>=12)]},
Q:o1v,s:$_B,S:JIy,u:s2Z,U:k9P,V:wYK,w:ZO7,W:eHi,x:null,X:null,y:pYK,Y:K9w,Z:dOc,"%":E1v},i3={a:function(tP,uN,d4){return(uN=vg.exec(uN.slice(d4)))?(tP.w=qH[uN[0].toLowerCase()],d4+uN[0].length):-1},
A:function(tP,uN,d4){return(uN=R6.exec(uN.slice(d4)))?(tP.w=QL[uN[0].toLowerCase()],d4+uN[0].length):-1},
b:function(tP,uN,d4){return(uN=eC.exec(uN.slice(d4)))?(tP.m=Zq[uN[0].toLowerCase()],d4+uN[0].length):-1},
B:function(tP,uN,d4){return(uN=wG.exec(uN.slice(d4)))?(tP.m=Xf[uN[0].toLowerCase()],d4+uN[0].length):-1},
c:function(tP,uN,d4){return k(tP,VO,uN,d4)},
d:m_6,e:m_6,f:fhK,H:lzk,I:lzk,j:HgK,L:DOl,m:VOw,M:SG7,p:function(tP,uN,d4){return(uN=B4.exec(uN.slice(d4)))?(tP.p=uU[uN[0].toLowerCase()],d4+uN[0].length):-1},
Q:yBc,s:nWw,S:igE,u:cBl,U:u_E,V:ahw,w:Iht,W:UOP,x:function(tP,uN,d4){return k(tP,uo,uN,d4)},
X:function(tP,uN,d4){return k(tP,XX,uN,d4)},
y:RPP,Y:F9S,Z:zPS,"%":Xc5};U7.x=t(uo,U7);U7.X=t(XX,U7);U7.c=t(VO,U7);Lw.x=t(uo,Lw);Lw.X=t(XX,Lw);Lw.c=t(VO,Lw);return{format:function(tP){var uN=t(tP,U7);uN.toString=function(){return tP};
return uN},
parse:function(tP){var uN=G(tP,OOE);uN.toString=function(){return tP};
return uN},
utcFormat:function(tP){var uN=t(tP,Lw);uN.toString=function(){return tP};
return uN},
utcParse:function(tP){var uN=G(tP,MDO);uN.toString=function(){return tP};
return uN}}}
function Mq(b,t,G){var k=b<0?"-":"";b=(k?-b:b)+"";var VO=b.length;return k+(VO<G?Array(G-VO+1).join(t)+b:b)}
function vW7(b){return b.replace(MOl,"\\$&")}
function wp(b){return new RegExp("^(?:"+b.map(vW7).join("|")+")","i")}
function ZO(b){for(var t={},G=-1,k=b.length;++G<k;)t[b[G].toLowerCase()]=G;return t}
function Iht(b,t,G){return(t=vG.exec(t.slice(G,G+1)))?(b.w=+t[0],G+t[0].length):-1}
function cBl(b,t,G){return(t=vG.exec(t.slice(G,G+1)))?(b.u=+t[0],G+t[0].length):-1}
function u_E(b,t,G){return(t=vG.exec(t.slice(G,G+2)))?(b.U=+t[0],G+t[0].length):-1}
function ahw(b,t,G){return(t=vG.exec(t.slice(G,G+2)))?(b.V=+t[0],G+t[0].length):-1}
function UOP(b,t,G){return(t=vG.exec(t.slice(G,G+2)))?(b.W=+t[0],G+t[0].length):-1}
function F9S(b,t,G){return(t=vG.exec(t.slice(G,G+4)))?(b.y=+t[0],G+t[0].length):-1}
function RPP(b,t,G){return(t=vG.exec(t.slice(G,G+2)))?(b.y=+t[0]+(+t[0]>68?1900:2E3),G+t[0].length):-1}
function zPS(b,t,G){return(t=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(G,G+6)))?(b.Z=t[1]?0:-(t[2]+(t[3]||"00")),G+t[0].length):-1}
function VOw(b,t,G){return(t=vG.exec(t.slice(G,G+2)))?(b.m=t[0]-1,G+t[0].length):-1}
function m_6(b,t,G){return(t=vG.exec(t.slice(G,G+2)))?(b.d=+t[0],G+t[0].length):-1}
function HgK(b,t,G){return(t=vG.exec(t.slice(G,G+3)))?(b.m=0,b.d=+t[0],G+t[0].length):-1}
function lzk(b,t,G){return(t=vG.exec(t.slice(G,G+2)))?(b.H=+t[0],G+t[0].length):-1}
function SG7(b,t,G){return(t=vG.exec(t.slice(G,G+2)))?(b.M=+t[0],G+t[0].length):-1}
function igE(b,t,G){return(t=vG.exec(t.slice(G,G+2)))?(b.S=+t[0],G+t[0].length):-1}
function DOl(b,t,G){return(t=vG.exec(t.slice(G,G+3)))?(b.L=+t[0],G+t[0].length):-1}
function fhK(b,t,G){return(t=vG.exec(t.slice(G,G+6)))?(b.L=Math.floor(t[0]/1E3),G+t[0].length):-1}
function Xc5(b,t,G){return(b=PRy.exec(t.slice(G,G+1)))?G+b[0].length:-1}
function yBc(b,t,G){return(t=vG.exec(t.slice(G)))?(b.Q=+t[0],G+t[0].length):-1}
function nWw(b,t,G){return(t=vG.exec(t.slice(G)))?(b.Q=+t[0]*1E3,G+t[0].length):-1}
function Yhs(b,t){return Mq(b.getDate(),t,2)}
function tRy(b,t){return Mq(b.getHours(),t,2)}
function o2c(b,t){return Mq(b.getHours()%12||12,t,2)}
function $iU(b,t){return Mq(1+NkN.count(ys(b),b),t,3)}
function t2H(b,t){return Mq(b.getMilliseconds(),t,3)}
function Y3z(b,t){return t2H(b,t)+"000"}
function E2S(b,t){return Mq(b.getMonth()+1,t,2)}
function hHt(b,t){return Mq(b.getMinutes(),t,2)}
function bOz(b,t){return Mq(b.getSeconds(),t,2)}
function mi7(b){b=b.getDay();return b===0?7:b}
function lbt(b,t){return Mq(gWE.count(ys(b),b),t,2)}
function WQ7(b,t){var G=b.getDay();b=G>=4||G===0?qh5(b):qh5.ceil(b);return Mq(qh5.count(ys(b),b)+(ys(b).getDay()===4),t,2)}
function G9Z(b){return b.getDay()}
function AI5(b,t){return Mq(rlz.count(ys(b),b),t,2)}
function TcP(b,t){return Mq(b.getFullYear()%100,t,2)}
function rI7(b,t){return Mq(b.getFullYear()%1E4,t,4)}
function q3K(b){b=b.getTimezoneOffset();return(b>0?"-":(b*=-1,"+"))+Mq(b/60|0,"0",2)+Mq(b%60,"0",2)}
function hef(b,t){return Mq(b.getUTCDate(),t,2)}
function j2K(b,t){return Mq(b.getUTCHours(),t,2)}
function C1K(b,t){return Mq(b.getUTCHours()%12||12,t,2)}
function xi5(b,t){return Mq(1+OTk.count(nS(b),b),t,3)}
function bTs(b,t){return Mq(b.getUTCMilliseconds(),t,3)}
function Q2P(b,t){return bTs(b,t)+"000"}
function LQw(b,t){return Mq(b.getUTCMonth()+1,t,2)}
function Bc7(b,t){return Mq(b.getUTCMinutes(),t,2)}
function JIy(b,t){return Mq(b.getUTCSeconds(),t,2)}
function s2Z(b){b=b.getUTCDay();return b===0?7:b}
function k9P(b,t){return Mq(Ogw.count(nS(b),b),t,2)}
function wYK(b,t){var G=b.getUTCDay();b=G>=4||G===0?QUu(b):QUu.ceil(b);return Mq(QUu.count(nS(b),b)+(nS(b).getUTCDay()===4),t,2)}
function ZO7(b){return b.getUTCDay()}
function eHi(b,t){return Mq(TkY.count(nS(b),b),t,2)}
function pYK(b,t){return Mq(b.getUTCFullYear()%100,t,2)}
function K9w(b,t){return Mq(b.getUTCFullYear()%1E4,t,4)}
function dOc(){return"+0000"}
function E1v(){return"%"}
function o1v(b){return+b}
function $_B(b){return Math.floor(+b/1E3)}
function Dw(b){for(var t=b.length/6|0,G=Array(t),k=0;k<t;)G[k]="#"+b.slice(k*6,++k*6);return G}
function Ln(b){return N9z(b[b.length-1])}
function P8Y(b){var t=b.length;return function(G){return b[Math.max(0,Math.min(t-1,Math.floor(G*t)))]}}
function W16(b){this._context=b}
function G3f(b){this._curve=b}
function Al4(b,t,G){var k=b._x1-b._x0;t-=b._x1;var VO=(b._y1-b._y0)/(k||t<0&&-0);b=(G-b._y1)/(t||k<0&&-0);return((VO<0?-1:1)+(b<0?-1:1))*Math.min(Math.abs(VO),Math.abs(b),.5*Math.abs((VO*t+b*k)/(k+t)))||0}
function Tks(b,t){var G=b._x1-b._x0;return G?(3*(b._y1-b._y0)/G-t)/2:t}
function jUp(b,t,G){var k=b._x0,VO=b._x1,uo=b._y1,XX=(VO-k)/3;b._context.bezierCurveTo(k+XX,b._y0+XX*t,VO-XX,uo-XX*G,VO,uo)}
function CVu(b){this._context=b}
function rl8(b){this._context=b}
function ez(b,t,G){this.k=b;this.x=t;this.y=G}
(function(b){b.length===1&&(b=d(b));return{left:function(t,G,k,VO){k==null&&(k=0);VO==null&&(VO=t.length);for(;k<VO;){var uo=k+VO>>>1;b(t[uo],G)<0?k=uo+1:VO=uo}return k},
right:function(t,G,k,VO){k==null&&(k=0);VO==null&&(VO=t.length);for(;k<VO;){var uo=k+VO>>>1;b(t[uo],G)>0?VO=uo:k=uo+1}return k}}})(K);
var zCZ={value:function(){}};
H.prototype=f.prototype={constructor:H,on:function(b,t){var G=this._,k=D(b+"",G),VO,uo=-1,XX=k.length;if(arguments.length<2)for(;++uo<XX;){var Yz;if(Yz=VO=(b=k[uo]).type){a:{Yz=G[VO];for(var pB=0,kz=Yz.length;pB<kz;++pB)if((VO=Yz[pB]).name===b.name){VO=VO.value;break a}VO=void 0}Yz=VO}if(Yz)return VO}else{if(t!=null&&typeof t!=="function")throw Error("we`"+t);for(;++uo<XX;)if(VO=(b=k[uo]).type)G[VO]=S(G[VO],b.name,t);else if(t==null)for(VO in G)G[VO]=S(G[VO],b.name,null);return this}},
copy:function(){var b={},t=this._,G;for(G in t)b[G]=t[G].slice();return new H(b)},
call:function(b,t){if((VO=arguments.length-2)>0)for(var G=Array(VO),k=0,VO,uo;k<VO;++k)G[k]=arguments[k+2];if(!this._.hasOwnProperty(b))throw Error("qe`"+b);uo=this._[b];k=0;for(VO=uo.length;k<VO;++k)uo[k].value.apply(t,G)},
apply:function(b,t,G){if(!this._.hasOwnProperty(b))throw Error("qe`"+b);b=this._[b];for(var k=0,VO=b.length;k<VO;++k)b[k].value.apply(t,G)}};
var Ab={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/"},qhN=function(b){return function(){return this.matches(b)}};
if(typeof document!=="undefined"){var pz=document.documentElement;if(!pz.matches){var YGw=pz.webkitMatchesSelector||pz.msMatchesSelector||pz.mozMatchesSelector||pz.oMatchesSelector;qhN=function(b){return function(){return YGw.call(this,b)}}}}var QU4=qhN;
g.prototype={constructor:g,appendChild:function(b){return this._parent.insertBefore(b,this._next)},
insertBefore:function(b,t){return this._parent.insertBefore(b,t)},
querySelector:function(b){return this._parent.querySelector(b)},
querySelectorAll:function(b){return this._parent.querySelectorAll(b)}};
var xhk={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(xhk={mouseenter:"mouseover",mouseleave:"mouseout"}));var Xdw=[null];Ms.prototype=yc.prototype={constructor:Ms,select:function(b){typeof b!=="function"&&(b=z(b));for(var t=this._groups,G=t.length,k=Array(G),VO=0;VO<G;++VO)for(var uo=t[VO],XX=uo.length,Yz=k[VO]=Array(XX),pB,kz,KJ=0;KJ<XX;++KJ)(pB=uo[KJ])&&(kz=b.call(pB,pB.__data__,KJ,uo))&&("__data__"in pB&&(kz.__data__=pB.__data__),Yz[KJ]=kz);return new Ms(k,this._parents)},
filter:function(b){typeof b!=="function"&&(b=QU4(b));for(var t=this._groups,G=t.length,k=Array(G),VO=0;VO<G;++VO)for(var uo=t[VO],XX=uo.length,Yz=k[VO]=[],pB,kz=0;kz<XX;++kz)(pB=uo[kz])&&b.call(pB,pB.__data__,kz,uo)&&Yz.push(pB);return new Ms(k,this._parents)},
data:function(b,t){if(!b)return uU=Array(this.size()),kz=-1,this.each(function(wG){uU[++kz]=wG}),uU;
var G=t?m:h,k=this._parents,VO=this._groups;typeof b!=="function"&&(b=N(b));for(var uo=VO.length,XX=Array(uo),Yz=Array(uo),pB=Array(uo),kz=0;kz<uo;++kz){var KJ=k[kz],nJ=VO[kz],B4=nJ.length,uU=b.call(KJ,KJ&&KJ.__data__,kz,k),R6=uU.length,QL=Yz[kz]=Array(R6),vg=XX[kz]=Array(R6);B4=pB[kz]=Array(B4);G(KJ,nJ,QL,vg,B4,uU,t);nJ=KJ=0;for(var qH;KJ<R6;++KJ)if(B4=QL[KJ]){for(KJ>=nJ&&(nJ=KJ+1);!(qH=vg[nJ])&&++nJ<R6;);B4._next=qH||null}}XX=new Ms(XX,k);XX._enter=Yz;XX._exit=pB;return XX},
exit:function(){return new Ms(this._exit||this._groups.map(v),this._parents)},
merge:function(b){var t=this._groups;b=b._groups;for(var G=t.length,k=Math.min(G,b.length),VO=Array(G),uo=0;uo<k;++uo)for(var XX=t[uo],Yz=b[uo],pB=XX.length,kz=VO[uo]=Array(pB),KJ,nJ=0;nJ<pB;++nJ)if(KJ=XX[nJ]||Yz[nJ])kz[nJ]=KJ;for(;uo<G;++uo)VO[uo]=t[uo];return new Ms(VO,this._parents)},
order:function(){for(var b=this._groups,t=-1,G=b.length;++t<G;)for(var k=b[t],VO=k.length-1,uo=k[VO],XX;--VO>=0;)if(XX=k[VO])uo&&uo!==XX.nextSibling&&uo.parentNode.insertBefore(XX,uo),uo=XX;return this},
sort:function(b){function t(nJ,B4){return nJ&&B4?b(nJ.__data__,B4.__data__):!nJ-!B4}
b||(b=T);for(var G=this._groups,k=G.length,VO=Array(k),uo=0;uo<k;++uo){for(var XX=G[uo],Yz=XX.length,pB=VO[uo]=Array(Yz),kz,KJ=0;KJ<Yz;++KJ)if(kz=XX[KJ])pB[KJ]=kz;pB.sort(t)}return(new Ms(VO,this._parents)).order()},
call:function(){var b=arguments[0];arguments[0]=this;b.apply(null,arguments);return this},
nodes:function(){var b=Array(this.size()),t=-1;this.each(function(){b[++t]=this});
return b},
node:function(){for(var b=this._groups,t=0,G=b.length;t<G;++t)for(var k=b[t],VO=0,uo=k.length;VO<uo;++VO){var XX=k[VO];if(XX)return XX}return null},
size:function(){var b=0;this.each(function(){++b});
return b},
empty:function(){return!this.node()},
each:function(b){for(var t=this._groups,G=0,k=t.length;G<k;++G)for(var VO=t[G],uo=0,XX=VO.length,Yz;uo<XX;++uo)(Yz=VO[uo])&&b.call(Yz,Yz.__data__,uo,VO);return this},
attr:function(b,t){var G=n(b);if(arguments.length<2){var k=this.node();return G.local?k.getAttributeNS(G.space,G.local):k.getAttribute(G)}return this.each((t==null?G.local?J:r:typeof t==="function"?G.local?yO:w:G.local?fB:L)(G,t))},
style:function(b,t,G){return arguments.length>1?this.each((t==null?FX:typeof t==="function"?$z:NJ)(b,t,G==null?"":G)):hN(this.node(),b)},
property:function(b,t){return arguments.length>1?this.each((t==null?bo:typeof t==="function"?qJ:xz)(b,t)):this.node()[b]},
text:function(b){return arguments.length?this.each(b==null?Y8:(typeof b==="function"?qs:Iz)(b)):this.node().textContent},
html:function(b){return arguments.length?this.each(b==null?af:(typeof b==="function"?KE:i9)(b)):this.node().innerHTML},
append:function(b){var t=typeof b==="function"?b:R(b);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},
insert:function(b,t){var G=typeof b==="function"?b:R(b),k=t==null?c4:typeof t==="function"?t:z(t);return this.select(function(){return this.insertBefore(G.apply(this,arguments),k.apply(this,arguments)||null)})},
remove:function(){return this.each(cx)},
clone:function(b){return this.select(b?io:Oj)},
datum:function(b){return arguments.length?this.property("__data__",b):this.node().__data__},
on:function(b,t,G){var k=rw(b+""),VO=k.length,uo;if(arguments.length<2){var XX=this.node().__on;if(XX)for(var Yz=0,pB=XX.length,kz;Yz<pB;++Yz){var KJ=0;for(kz=XX[Yz];KJ<VO;++KJ)if((uo=k[KJ]).type===kz.type&&uo.name===kz.name)return kz.value}}else{XX=t?LJ:t6;G==null&&(G=!1);for(KJ=0;KJ<VO;++KJ)this.each(XX(k[KJ],t,G));return this}},
dispatch:function(b,t){return this.each((typeof t==="function"?wz:u9)(b,t))}};
var vbP=0;P4.prototype=function(){return new P4}.prototype={constructor:P4,
get:function(b){for(var t=this._;!(t in b);)if(!(b=b.parentNode))return;return b[t]},
set:function(b,t){return b[this._]=t},
remove:function(b){return this._ in b&&delete b[this._]},
toString:function(){return this._}};
var ir=1/.7,MHK=/^#([0-9a-f]{3})$/,Pfw=/^#([0-9a-f]{6})$/,gbS=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),OsP=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),N7t=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),YaS=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*\\)$"),
tHi=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),obU=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*\\)$"),Lw4={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};
zy(Sc,AP,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
zy(Z7,PK,nw(Sc,{brighter:function(b){b=b==null?ir:Math.pow(ir,b);return new Z7(this.r*b,this.g*b,this.b*b,this.opacity)},
darker:function(b){b=b==null?.7:Math.pow(.7,b);return new Z7(this.r*b,this.g*b,this.b*b,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"#"+Kw(this.r)+Kw(this.g)+Kw(this.b)},
toString:function(){var b=this.opacity;b=isNaN(b)?1:Math.max(0,Math.min(1,b));return(b===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))+(b===1?")":", "+b+")")}}));
zy(Il,W_,nw(Sc,{brighter:function(b){b=b==null?ir:Math.pow(ir,b);return new Il(this.h,this.s,this.l*b,this.opacity)},
darker:function(b){b=b==null?.7:Math.pow(.7,b);return new Il(this.h,this.s,this.l*b,this.opacity)},
rgb:function(){var b=this.h%360+(this.h<0)*360,t=this.l,G=t+(t<.5?t:1-t)*(isNaN(b)||isNaN(this.s)?0:this.s);t=2*t-G;return new Z7(w5(b>=240?b-240:b+120,t,G),w5(b,t,G),w5(b<120?b+240:b-120,t,G),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 BhH=Math.PI/180,kA2=180/Math.PI,ssf=4/29,Vs=6/29,JoL=3*Vs*Vs,$v7=Vs*Vs*Vs;zy(Pu,function(b,t,G,k){return arguments.length===1?tG(b):new Pu(b,t,G,k==null?1:k)},nw(Sc,{brighter:function(b){return new Pu(this.l+18*(b==null?1:b),this.a,this.b,this.opacity)},
darker:function(b){return new Pu(this.l-18*(b==null?1:b),this.a,this.b,this.opacity)},
rgb:function(){var b=(this.l+16)/116,t=isNaN(this.a)?b:b+this.a/500,G=isNaN(this.b)?b:b-this.b/200;t=.96422*jp(t);b=1*jp(b);G=.82521*jp(G);return new Z7(Rf(3.1338561*t-1.6168667*b-.4906146*G),Rf(-.9787684*t+1.9161415*b+.033454*G),Rf(.0719453*t-.2289914*b+1.4052427*G),this.opacity)}}));
zy(v4,cK,nw(Sc,{brighter:function(b){return new v4(this.h,this.c,this.l+18*(b==null?1:b),this.opacity)},
darker:function(b){return new v4(this.h,this.c,this.l-18*(b==null?1:b),this.opacity)},
rgb:function(){return tG(this).rgb()}}));
var wLt=1.78277*-.29227-.1347134789;zy(Fi,FH,nw(Sc,{brighter:function(b){b=b==null?ir:Math.pow(ir,b);return new Fi(this.h,this.s,this.l*b,this.opacity)},
darker:function(b){b=b==null?.7:Math.pow(.7,b);return new Fi(this.h,this.s,this.l*b,this.opacity)},
rgb:function(){var b=isNaN(this.h)?0:(this.h+120)*BhH,t=+this.l,G=isNaN(this.s)?0:this.s*t*(1-t),k=Math.cos(b);b=Math.sin(b);return new Z7(255*(t+G*(-.14861*k+1.78277*b)),255*(t+G*(-.29227*k+-.90649*b)),255*(t+1.97294*k*G),this.opacity)}}));
var d_B=function G(t){function k(uo,XX){var Yz=VO((uo=PK(uo)).r,(XX=PK(XX)).r),pB=VO(uo.g,XX.g),kz=VO(uo.b,XX.b),KJ=y9(uo.opacity,XX.opacity);return function(nJ){uo.r=Yz(nJ);uo.g=pB(nJ);uo.b=kz(nJ);uo.opacity=KJ(nJ);return uo+""}}
var VO=Xy(t);k.gamma=G;return k}(1),N9z=tD(function(t){var G=t.length-1;
return function(k){var VO=k<=0?k=0:k>=1?(k=1,G-1):Math.floor(k*G),uo=t[VO],XX=t[VO+1];return a6((k-VO/G)*G,VO>0?t[VO-1]:2*uo-XX,uo,XX,VO<G-1?t[VO+2]:2*XX-uo)}});
tD(function(t){var G=t.length;return function(k){var VO=Math.floor(((k%=1)<0?++k:k)*G);return a6((k-VO/G)*G,t[(VO+G-1)%G],t[VO%G],t[(VO+1)%G],t[(VO+2)%G])}});
var OTS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nk5=new RegExp(OTS.source,"g"),Zfs=180/Math.PI,x_X={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Kk,L1S,jUt,gFn,tOK=Yh(function(t){if(t==="none")return x_X;Kk||(Kk=document.createElement("DIV"),L1S=document.documentElement,jUt=document.defaultView);Kk.style.transform=t;t=jUt.getComputedStyle(L1S.appendChild(Kk),null).getPropertyValue("transform");L1S.removeChild(Kk);t=t.slice(7,-1).split(",");return Ne(+t[0],+t[1],+t[2],+t[3],
+t[4],+t[5])},"px, ","px)","deg)"),oWw=Yh(function(t){if(t==null)return x_X;
gFn||(gFn=document.createElementNS("http://www.w3.org/2000/svg","g"));gFn.setAttribute("transform",t);if(!(t=gFn.transform.baseVal.consolidate()))return x_X;t=t.matrix;return Ne(t.a,t.b,t.c,t.d,t.e,t.f)},", ",")",")");
$s(lN);$s(y9);a2(lN);a2(y9);I2(lN);var BkY=I2(y9),SM=0,xU=0,Bi=0,IKz,Lz,aKp=0,AX=0,uRz=0,Cz=typeof performance==="object"&&performance.now?performance:Date,eKB=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};
zt.prototype=C6.prototype={constructor:zt,restart:function(t,G,k){if(typeof t!=="function")throw new TypeError("xe");k=(k==null?FV():+k)+(G==null?0:+G);this._next||Lz===this||(Lz?Lz._next=this:IKz=this,Lz=this);this._call=t;this._time=k;L6()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,L6())}};
var hCU=f("start","end","interrupt"),bsE=[],$OK=yc.prototype.constructor,CV4=0,c1=yc.prototype;yr.prototype=function(t){return yc().transition(t)}.prototype={constructor:yr,
select:function(t){var G=this._name,k=this._id;typeof t!=="function"&&(t=z(t));for(var VO=this._groups,uo=VO.length,XX=Array(uo),Yz=0;Yz<uo;++Yz)for(var pB=VO[Yz],kz=pB.length,KJ=XX[Yz]=Array(kz),nJ,B4,uU=0;uU<kz;++uU)(nJ=pB[uU])&&(B4=t.call(nJ,nJ.__data__,uU,pB))&&("__data__"in nJ&&(B4.__data__=nJ.__data__),KJ[uU]=B4,YhJ(KJ[uU],G,k,uU,KJ,Ht(nJ,k)));return new yr(XX,this._parents,G,k)},
filter:function(t){typeof t!=="function"&&(t=QU4(t));for(var G=this._groups,k=G.length,VO=Array(k),uo=0;uo<k;++uo)for(var XX=G[uo],Yz=XX.length,pB=VO[uo]=[],kz,KJ=0;KJ<Yz;++KJ)(kz=XX[KJ])&&t.call(kz,kz.__data__,KJ,XX)&&pB.push(kz);return new yr(VO,this._parents,this._name,this._id)},
merge:function(t){if(t._id!==this._id)throw Error();var G=this._groups;t=t._groups;for(var k=G.length,VO=Math.min(k,t.length),uo=Array(k),XX=0;XX<VO;++XX)for(var Yz=G[XX],pB=t[XX],kz=Yz.length,KJ=uo[XX]=Array(kz),nJ,B4=0;B4<kz;++B4)if(nJ=Yz[B4]||pB[B4])KJ[B4]=nJ;for(;XX<k;++XX)uo[XX]=G[XX];return new yr(uo,this._parents,this._name,this._id)},
selection:function(){return new $OK(this._groups,this._parents)},
transition:function(){for(var t=this._name,G=this._id,k=++CV4,VO=this._groups,uo=VO.length,XX=0;XX<uo;++XX)for(var Yz=VO[XX],pB=Yz.length,kz,KJ=0;KJ<pB;++KJ)if(kz=Yz[KJ]){var nJ=Ht(kz,G);YhJ(kz,t,k,KJ,Yz,{time:nJ.time+nJ.delay+nJ.duration,delay:0,duration:nJ.duration,ease:nJ.ease})}return new yr(VO,this._parents,t,k)},
call:c1.call,nodes:c1.nodes,node:c1.node,size:c1.size,empty:c1.empty,each:c1.each,on:function(t,G){var k=this._id;return arguments.length<2?Ht(this.node(),k).on.on(t):this.each(k$y(k,t,G))},
attr:function(t,G){var k=n(t),VO=k==="transform"?oWw:K1t;return this.attrTween(t,typeof G==="function"?(k.local?qaS:rm5)(k,VO,o1O(this,"attr."+t,G)):G==null?(k.local?G$c:W4S)(k):(k.local?T7y:AmE)(k,VO,G+""))},
attrTween:function(t,G){var k="attr."+t;if(arguments.length<2)return(k=this.tween(k))&&k._value;if(G==null)return this.tween(k,null);if(typeof G!=="function")throw Error();var VO=n(t);return this.tween(k,(VO.local?Q1Z:j1P)(VO,G))},
style:function(t,G,k){var VO=t==="transform"?tOK:K1t;return G==null?this.styleTween(t,Zsw(t,VO)).on("end.style."+t,eCS(t)):this.styleTween(t,typeof G==="function"?KQw(t,VO,o1O(this,"style."+t,G)):pdZ(t,VO,G+""),k)},
styleTween:function(t,G,k){var VO="style."+t;if(arguments.length<2)return(VO=this.tween(VO))&&VO._value;if(G==null)return this.tween(VO,null);if(typeof G!=="function")throw Error();return this.tween(VO,diS(t,G,k==null?"":k))},
text:function(t){return this.tween("text",typeof t==="function"?HOw(o1O(this,"text",t)):fbZ(t==null?"":t+""))},
remove:function(){return this.on("end.remove",wd7(this._id))},
tween:function(t,G){var k=this._id;if(arguments.length<2){k=Ht(this.node(),k).tween;for(var VO=0,uo=k.length,XX;VO<uo;++VO)if((XX=k[VO]).name===t)return XX.value;return null}return this.each((G==null?mvc:lfw)(k,t,G))},
delay:function(t){var G=this._id;return arguments.length?this.each((typeof t==="function"?Cf7:xvS)(G,t)):Ht(this.node(),G).delay},
duration:function(t){var G=this._id;return arguments.length?this.each((typeof t==="function"?L4K:B7y)(G,t)):Ht(this.node(),G).duration},
ease:function(t){var G=this._id;return arguments.length?this.each(JmU(G,t)):Ht(this.node(),G).ease}};
var JlX={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};
yc.prototype.transition=function(t){var G;if(t instanceof yr){var k=t._id;t=t._name}else k=++CV4,(G=JlX).time=FV(),t=t==null?null:t+"";for(var VO=this._groups,uo=VO.length,XX=0;XX<uo;++XX)for(var Yz=VO[XX],pB=Yz.length,kz,KJ=0;KJ<pB;++KJ)if(kz=Yz[KJ]){var nJ=kz,B4=t,uU=k,R6=KJ,QL=Yz,vg;if(!(vg=G))a:{vg=void 0;for(var qH=k;!(vg=kz.__transition)||!(vg=vg[qH]);)if(!(kz=kz.parentNode)){vg=(JlX.time=FV(),JlX);break a}}YhJ(nJ,B4,uU,R6,QL,vg)}return new yr(VO,this._parents,t,k)};
["e","w"].map($_G);["n","s"].map($_G);"n e s w nw ne se sw".split(" ").map($_G);E1O.prototype=function(){return new E1O}.prototype={constructor:E1O,
moveTo:function(t,G){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+G)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(t,G){this._+="L"+(this._x1=+t)+","+(this._y1=+G)},
bezierCurveTo:function(t,G,k,VO,uo,XX){this._+="C"+ +t+","+ +G+","+ +k+","+ +VO+","+(this._x1=+uo)+","+(this._y1=+XX)},
rect:function(t,G,k,VO){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+G)+"h"+ +k+"v"+ +VO+"h"+-k+"Z"},
toString:function(){return this._}};
UqN.prototype=fzf.prototype={constructor:UqN,has:function(t){return" "+t in this},
get:function(t){return this[" "+t]},
set:function(t,G){this[" "+t]=G;return this},
remove:function(t){t=" "+t;return t in this&&delete this[t]},
clear:function(){for(var t in this)t[0]===" "&&delete this[t]},
keys:function(){var t=[],G;for(G in this)G[0]===" "&&t.push(G.slice(1));return t},
values:function(){var t=[],G;for(G in this)G[0]===" "&&t.push(this[G]);return t},
entries:function(){var t=[],G;for(G in this)G[0]===" "&&t.push({key:G.slice(1),value:this[G]});return t},
size:function(){var t=0,G;for(G in this)G[0]===" "&&++t;return t},
empty:function(){for(var t in this)if(t[0]===" ")return!1;return!0},
each:function(t){for(var G in this)G[0]===" "&&t(this[G],G.slice(1),this)}};
var Qy=fzf.prototype;R7p.prototype=function(t,G){var k=new R7p;if(t instanceof R7p)t.each(function(XX){k.add(XX)});
else if(t){var VO=-1,uo=t.length;if(G==null)for(;++VO<uo;)k.add(t[VO]);else for(;++VO<uo;)k.add(G(t[VO],VO,t))}return k}.prototype={constructor:R7p,
has:Qy.has,add:function(t){this[" "+t]=t;return this},
remove:Qy.remove,clear:Qy.clear,values:Qy.keys,size:Qy.size,empty:Qy.empty,each:Qy.each};var V29={},heX={},EWK=D_s(",").parse,hPc=D_s("\t").parse;Sht(EWK);Sht(hPc);var km=function(t,G,k){G=new bTY(G==null?yIw:G,k==null?n2Z:k,NaN,NaN,NaN,NaN);return t==null?G:G.addAll(t)}.prototype=bTY.prototype;
km.copy=function(){var t=new bTY(this._x,this._y,this._x0,this._y0,this._x1,this._y1),G=this._root,k,VO;if(!G)return t;if(!G.length)return t._root=n14(G),t;for(k=[{source:G,target:t._root=Array(4)}];G=k.pop();)for(var uo=0;uo<4;++uo)if(VO=G.source[uo])VO.length?k.push({source:VO,target:G.target[uo]=Array(4)}):G.target[uo]=n14(VO);return t};
km.add=function(t){var G=+this._x.call(null,t),k=+this._y.call(null,t);return yl6(this.cover(G,k),G,k,t)};
km.addAll=function(t){var G,k,VO=t.length,uo,XX,Yz=Array(VO),pB=Array(VO),kz=Infinity,KJ=Infinity,nJ=-Infinity,B4=-Infinity;for(k=0;k<VO;++k)isNaN(uo=+this._x.call(null,G=t[k]))||isNaN(XX=+this._y.call(null,G))||(Yz[k]=uo,pB[k]=XX,uo<kz&&(kz=uo),uo>nJ&&(nJ=uo),XX<KJ&&(KJ=XX),XX>B4&&(B4=XX));nJ<kz&&(kz=this._x0,nJ=this._x1);B4<KJ&&(KJ=this._y0,B4=this._y1);this.cover(kz,KJ).cover(nJ,B4);for(k=0;k<VO;++k)yl6(this,Yz[k],pB[k],t[k]);return this};
km.cover=function(t,G){if(isNaN(t=+t)||isNaN(G=+G))return this;var k=this._x0,VO=this._y0,uo=this._x1,XX=this._y1;if(isNaN(k))uo=(k=Math.floor(t))+1,XX=(VO=Math.floor(G))+1;else if(k>t||t>uo||VO>G||G>XX){var Yz=uo-k,pB=this._root,kz;switch(kz=(G<(VO+XX)/2)<<1|t<(k+uo)/2){case 0:do{var KJ=Array(4);KJ[kz]=pB;pB=KJ}while(Yz*=2,uo=k+Yz,XX=VO+Yz,t>uo||G>XX);break;case 1:do KJ=Array(4),KJ[kz]=pB,pB=KJ;while(Yz*=2,k=uo-Yz,XX=VO+Yz,k>t||G>XX);break;case 2:do KJ=Array(4),KJ[kz]=pB,pB=KJ;while(Yz*=2,uo=k+Yz,
VO=XX-Yz,t>uo||VO>G);break;case 3:do KJ=Array(4),KJ[kz]=pB,pB=KJ;while(Yz*=2,k=uo-Yz,VO=XX-Yz,k>t||VO>G)}this._root&&this._root.length&&(this._root=pB)}else return this;this._x0=k;this._y0=VO;this._x1=uo;this._y1=XX;return this};
km.data=function(){var t=[];this.visit(function(G){if(!G.length){do t.push(G.data);while(G=G.next)}});
return t};
km.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
km.find=function(t,G,k){var VO=this._x0,uo=this._y0,XX,Yz,pB,kz,KJ=this._x1,nJ=this._y1,B4=[],uU=this._root,R6;uU&&B4.push(new s1(uU,VO,uo,KJ,nJ));k==null?k=Infinity:(VO=t-k,uo=G-k,KJ=t+k,nJ=G+k,k*=k);for(;R6=B4.pop();)if(!(!(uU=R6.node)||(XX=R6.x0)>KJ||(Yz=R6.y0)>nJ||(pB=R6.x1)<VO||(kz=R6.y1)<uo))if(uU.length){R6=(XX+pB)/2;var QL=(Yz+kz)/2;B4.push(new s1(uU[3],R6,QL,pB,kz),new s1(uU[2],XX,QL,R6,kz),new s1(uU[1],R6,Yz,pB,QL),new s1(uU[0],XX,Yz,R6,QL));if(uU=(G>=QL)<<1|t>=R6)R6=B4[B4.length-1],B4[B4.length-
1]=B4[B4.length-1-uU],B4[B4.length-1-uU]=R6}else if(R6=t-+this._x.call(null,uU.data),QL=G-+this._y.call(null,uU.data),R6=R6*R6+QL*QL,R6<k){var vg=Math.sqrt(k=R6);VO=t-vg;uo=G-vg;KJ=t+vg;nJ=G+vg;vg=uU.data}return vg};
km.remove=function(t){if(isNaN(kz=+this._x.call(null,t))||isNaN(KJ=+this._y.call(null,t)))return this;var G,k=this._root,VO,uo=this._x0,XX=this._y0,Yz=this._x1,pB=this._y1,kz,KJ,nJ,B4,uU,R6,QL;if(!k)return this;if(k.length)for(;;){(uU=kz>=(nJ=(uo+Yz)/2))?uo=nJ:Yz=nJ;(R6=KJ>=(B4=(XX+pB)/2))?XX=B4:pB=B4;if(!(G=k,k=k[QL=R6<<1|uU]))return this;if(!k.length)break;if(G[QL+1&3]||G[QL+2&3]||G[QL+3&3]){var vg=G;var qH=QL}}for(;k.data!==t;)if(!(VO=k,k=k.next))return this;(t=k.next)&&delete k.next;if(VO)return t?
VO.next=t:delete VO.next,this;if(!G)return this._root=t,this;t?G[QL]=t:delete G[QL];(k=G[0]||G[1]||G[2]||G[3])&&k===(G[3]||G[2]||G[1]||G[0])&&!k.length&&(vg?vg[qH]=k:this._root=k);return this};
km.removeAll=function(t){for(var G=0,k=t.length;G<k;++G)this.remove(t[G]);return this};
km.root=function(){return this._root};
km.size=function(){var t=0;this.visit(function(G){if(!G.length){do++t;while(G=G.next)}});
return t};
km.visit=function(t){var G=[],k,VO=this._root,uo,XX,Yz,pB,kz;for(VO&&G.push(new s1(VO,this._x0,this._y0,this._x1,this._y1));k=G.pop();)if(!t(VO=k.node,XX=k.x0,Yz=k.y0,pB=k.x1,kz=k.y1)&&VO.length){k=(XX+pB)/2;var KJ=(Yz+kz)/2;(uo=VO[3])&&G.push(new s1(uo,k,KJ,pB,kz));(uo=VO[2])&&G.push(new s1(uo,XX,KJ,k,kz));(uo=VO[1])&&G.push(new s1(uo,k,Yz,pB,KJ));(uo=VO[0])&&G.push(new s1(uo,XX,Yz,k,KJ))}};
km.visitAfter=function(t){var G=[],k=[],VO;for(this._root&&G.push(new s1(this._root,this._x0,this._y0,this._x1,this._y1));VO=G.pop();){var uo=VO.node;if(uo.length){var XX,Yz=VO.x0,pB=VO.y0,kz=VO.x1,KJ=VO.y1,nJ=(Yz+kz)/2,B4=(pB+KJ)/2;(XX=uo[0])&&G.push(new s1(XX,Yz,pB,nJ,B4));(XX=uo[1])&&G.push(new s1(XX,nJ,pB,kz,B4));(XX=uo[2])&&G.push(new s1(XX,Yz,B4,nJ,KJ));(XX=uo[3])&&G.push(new s1(XX,nJ,B4,kz,KJ))}k.push(VO)}for(;VO=k.pop();)t(VO.node,VO.x0,VO.y0,VO.x1,VO.y1);return this};
km.x=function(t){return arguments.length?(this._x=t,this):this._x};
km.y=function(t){return arguments.length?(this._y=t,this):this._y};
var abt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;m_N.prototype=lzS.prototype;lzS.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 azf,Izk={"%":function(t,G){return(t*100).toFixed(G)},
b:function(t){return Math.round(t).toString(2)},
c:function(t){return t+""},
d:function(t){return Math.round(t).toString(10)},
e:function(t,G){return t.toExponential(G)},
f:function(t,G){return t.toFixed(G)},
g:function(t,G){return t.toPrecision(G)},
o:function(t){return Math.round(t).toString(8)},
p:function(t,G){return iT9(t*100,G)},
r:iT9,s:function(t,G){var k=FUO(t,G);if(!k)return t+"";var VO=k[0];k=k[1];k=k-(azf=Math.max(-8,Math.min(8,Math.floor(k/3)))*3)+1;var uo=VO.length;return k===uo?VO:k>uo?VO+Array(k-uo+1).join("0"):k>0?VO.slice(0,k)+"."+VO.slice(k):"0."+Array(1-k).join("0")+FUO(t,Math.max(0,G+k-1))[0]},
X:function(t){return Math.round(t).toString(16).toUpperCase()},
x:function(t){return Math.round(t).toString(16)}},ucf="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),bgl;
(function(t){return bgl=IbE(t)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});WY.prototype={constructor:WY,reset:function(){this.s=this.t=0},
add:function(t){U_9(OnB,t,this.t);U_9(this,OnB.s,this.s);this.s?this.t+=OnB.t:this.s=OnB.t},
valueOf:function(){return this.s}};
var OnB=new WY,NF=Math.PI,TD=NF/2,x_f=NF/4,mOE=NF*2,sU5=NF/180,nL=Math.abs,k3z=Math.atan,M2N=Math.atan2,r3=Math.cos,OV=Math.sin,XC5=Math.sqrt;new WY;new WY;new WY;var wEG=new WY;(function(t,G,k,VO){return function(uo){function XX(Zq,U7){t(Zq,U7)&&uo.point(Zq,U7)}
function Yz(Zq,U7){uU.point(Zq,U7)}
function pB(){eC.point=Yz;uU.lineStart()}
function kz(){eC.point=XX;uU.lineEnd()}
function KJ(Zq,U7){Xf.push([Zq,U7]);QL.point(Zq,U7)}
function nJ(){QL.lineStart();Xf=[]}
function B4(){KJ(Xf[0][0],Xf[0][1]);QL.lineEnd();var Zq=QL.clean(),U7=R6.result(),Lw=U7.length,i3;Xf.pop();qH.push(Xf);Xf=null;if(Lw)if(Zq&1){if(Lw=U7[0],(U7=Lw.length-1)>0){vg||(uo.polygonStart(),vg=!0);uo.lineStart();for(Zq=0;Zq<U7;++Zq)uo.point((i3=Lw[Zq])[0],i3[1]);uo.lineEnd()}}else Lw>1&&Zq&2&&U7.push(U7.pop().concat(U7.shift())),wG.push(U7.filter(zHP))}
var uU=G(uo),R6=RHP(),QL=G(R6),vg=!1,qH,wG,Xf,eC={point:XX,lineStart:pB,lineEnd:kz,polygonStart:function(){eC.point=KJ;eC.lineStart=nJ;eC.lineEnd=B4;wG=[];qH=[]},
polygonEnd:function(){eC.point=XX;eC.lineStart=pB;eC.lineEnd=kz;var Zq=wG,U7=Zq.length;var Lw=-1;for(var i3=0,tP,uN;++Lw<U7;)i3+=Zq[Lw].length;for(tP=Array(i3);--U7>=0;)for(uN=Zq[U7],Lw=uN.length;--Lw>=0;)tP[--i3]=uN[Lw];wG=tP;Zq=qH;U7=VO[0];i3=VO[1];var d4=OV(i3);Lw=[OV(U7),-r3(U7),0];uN=tP=0;wEG.reset();d4===1?i3=TD+1E-6:d4===-1&&(i3=-TD-1E-6);d4=0;for(var UZ=Zq.length;d4<UZ;++d4)if(ON=(xF=Zq[d4]).length){var xF,ON,Q9=xF[ON-1],ad=Q9[0],Ng=Q9[1]/2+x_f,NQN=OV(Ng),L1k=r3(Ng);for(Ng=0;Ng<ON;++Ng,ad=
ZTp,NQN=Bks,L1k=d1,Q9=YnG){var YnG=xF[Ng],ZTp=YnG[0];d1=YnG[1]/2+x_f;var Bks=OV(d1),d1=r3(d1),ur=ZTp-ad,eeX=ur>=0?1:-1,pEX=eeX*ur,tDG=pEX>NF;NQN*=Bks;wEG.add(M2N(NQN*eeX*OV(pEX),L1k*d1+NQN*r3(pEX)));tP+=tDG?ur+eeX*mOE:ur;tDG^ad>=U7^ZTp>=U7&&(Q9=F1s(ReH(Q9),ReH(YnG)),ze9(Q9),ad=F1s(Lw,Q9),ze9(ad),ad=(tDG^ur>=0?-1:1)*z7p(ad[2]),i3>ad||i3===ad&&(Q9[0]||Q9[1]))&&(uN+=tDG^ur>=0?1:-1)}}Zq=(tP<-1E-6||tP<1E-6&&wEG<-1E-6)^uN&1;wG.length?(vg||(uo.polygonStart(),vg=!0),FQy(wG,XYi,Zq,k,uo)):Zq&&(vg||(uo.polygonStart(),
vg=!0),uo.lineStart(),k(null,null,1,uo),uo.lineEnd());vg&&(uo.polygonEnd(),vg=!1);wG=qH=null},
sphere:function(){uo.polygonStart();uo.lineStart();k(null,null,1,uo);uo.lineEnd();uo.polygonEnd()}};
return eC}})(function(){return!0},function(t){var G=NaN,k=NaN,VO=NaN,uo;
return{lineStart:function(){t.lineStart();uo=1},
point:function(XX,Yz){var pB=XX>0?NF:-NF,kz=nL(XX-G);if(nL(kz-NF)<1E-6)t.point(G,k=(k+Yz)/2>0?TD:-TD),t.point(VO,k),t.lineEnd(),t.lineStart(),t.point(pB,k),t.point(XX,k),uo=0;else if(VO!==pB&&kz>=NF){nL(G-VO)<1E-6&&(G-=VO*1E-6);nL(XX-pB)<1E-6&&(XX-=pB*1E-6);kz=G;var KJ=k,nJ=XX,B4,uU,R6=OV(kz-nJ);k=nL(R6)>1E-6?k3z((OV(KJ)*(uU=r3(Yz))*OV(nJ)-OV(Yz)*(B4=r3(KJ))*OV(kz))/(B4*uU*R6)):(KJ+Yz)/2;t.point(VO,k);t.lineEnd();t.lineStart();t.point(pB,k);uo=0}t.point(G=XX,k=Yz);VO=pB},
lineEnd:function(){t.lineEnd();G=k=NaN},
clean:function(){return 2-uo}}},function(t,G,k,VO){t==null?(k*=TD,VO.point(-NF,k),VO.point(0,k),VO.point(NF,k),VO.point(NF,0),VO.point(NF,-k),VO.point(0,-k),VO.point(-NF,-k),VO.point(-NF,0),VO.point(-NF,k)):nL(t[0]-G[0])>1E-6?(t=t[0]<G[0]?NF:-NF,k=k*t/2,VO.point(-t,k),VO.point(0,k),VO.point(t,k)):VO.point(G[0],G[1])},[-NF,
-TD]);new WY;new WY;new WY;new WY;W1N.prototype={constructor:W1N,point:function(t,G){this.stream.point(t,G)},
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()}};
r3(30*sU5);(function(t){return function(G){var k=new W1N,VO;for(VO in t)k[VO]=t[VO];k.stream=G;return k}})({point:function(t,G){this.stream.point(t*sU5,G*sU5)}});
v1N(function(t){return XC5(2/(1+t))}).invert=Jr(function(t){return 2*z7p(t/2)});
v1N(function(t){return(t=t>1?0:t<-1?NF:Math.acos(t))&&t/OV(t)}).invert=Jr(function(t){return t});
XC5(3);Jr(k3z);Jr(z7p);Jr(function(t){return 2*k3z(t)});
sW.prototype=PVs.prototype={constructor:sW,count:function(){return this.eachAfter(v2z)},
each:function(t){var G,k=[this],VO;do{var uo=k.reverse();for(k=[];G=uo.pop();)if(t(G),G=G.children){var XX=0;for(VO=G.length;XX<VO;++XX)k.push(G[XX])}}while(k.length);return this},
eachAfter:function(t){for(var G,k=[this],VO=[],uo,XX;G=k.pop();)if(VO.push(G),G=G.children)for(uo=0,XX=G.length;uo<XX;++uo)k.push(G[uo]);for(;G=VO.pop();)t(G);return this},
eachBefore:function(t){for(var G,k=[this],VO;G=k.pop();)if(t(G),G=G.children)for(VO=G.length-1;VO>=0;--VO)k.push(G[VO]);return this},
sum:function(t){return this.eachAfter(function(G){for(var k=+t(G.data)||0,VO=G.children,uo=VO&&VO.length;--uo>=0;)k+=VO[uo].value;G.value=k})},
sort:function(t){return this.eachBefore(function(G){G.children&&G.children.sort(t)})},
path:function(t){var G=this;var k=G;var VO=t;if(k!==VO){var uo=k.ancestors(),XX=VO.ancestors(),Yz=null;k=uo.pop();for(VO=XX.pop();k===VO;)Yz=k,k=uo.pop(),VO=XX.pop();k=Yz}for(VO=[G];G!==k;)G=G.parent,VO.push(G);for(G=VO.length;t!==k;)VO.splice(G,0,t),t=t.parent;return VO},
ancestors:function(){for(var t=this,G=[t];t=t.parent;)G.push(t);return G},
links:function(){var t=this,G=[];t.each(function(k){k!==t&&G.push({source:k.parent,target:k})});
return G},
copy:function(){return PVs(this).eachBefore(g2c)}};
(function(t,G){this._=t;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=G}).prototype=Object.create(sW.prototype);
var G3X=new Date,Alu=new Date,Jlf=Uy(function(){},function(t,G){t.setTime(+t+G)},function(t,G){return G-t});
Jlf.every=function(t){t=Math.floor(t);return isFinite(t)&&t>0?t>1?Uy(function(G){G.setTime(Math.floor(G/t)*t)},function(G,k){G.setTime(+G+k*t)},function(G,k){return(k-G)/t}):Jlf:null};
Uy(function(t){t.setTime(Math.floor(t/1E3)*1E3)},function(t,G){t.setTime(+t+G*1E3)},function(t,G){return(G-t)/1E3},function(t){return t.getUTCSeconds()});
Uy(function(t){t.setTime(Math.floor(t/6E4)*6E4)},function(t,G){t.setTime(+t+G*6E4)},function(t,G){return(G-t)/6E4},function(t){return t.getMinutes()});
Uy(function(t){var G=t.getTimezoneOffset()*6E4%36E5;G<0&&(G+=36E5);t.setTime(Math.floor((+t-G)/36E5)*36E5+G)},function(t,G){t.setTime(+t+G*36E5)},function(t,G){return(G-t)/36E5},function(t){return t.getHours()});
var NkN=Uy(function(t){t.setHours(0,0,0,0)},function(t,G){t.setDate(t.getDate()+G)},function(t,G){return(G-t-(G.getTimezoneOffset()-t.getTimezoneOffset())*6E4)/864E5},function(t){return t.getDate()-1}),gWE=rt(0),rlz=rt(1);
rt(2);rt(3);var qh5=rt(4);rt(5);rt(6);Uy(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,G){t.setMonth(t.getMonth()+G)},function(t,G){return G.getMonth()-t.getMonth()+(G.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});
var ys=Uy(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,G){t.setFullYear(t.getFullYear()+G)},function(t,G){return G.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});
ys.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Uy(function(G){G.setFullYear(Math.floor(G.getFullYear()/t)*t);G.setMonth(0,1);G.setHours(0,0,0,0)},function(G,k){G.setFullYear(G.getFullYear()+k*t)}):null};
Uy(function(t){t.setUTCSeconds(0,0)},function(t,G){t.setTime(+t+G*6E4)},function(t,G){return(G-t)/6E4},function(t){return t.getUTCMinutes()});
Uy(function(t){t.setUTCMinutes(0,0,0)},function(t,G){t.setTime(+t+G*36E5)},function(t,G){return(G-t)/36E5},function(t){return t.getUTCHours()});
var OTk=Uy(function(t){t.setUTCHours(0,0,0,0)},function(t,G){t.setUTCDate(t.getUTCDate()+G)},function(t,G){return(G-t)/864E5},function(t){return t.getUTCDate()-1}),Ogw=qC(0),TkY=qC(1);
qC(2);qC(3);var QUu=qC(4);qC(5);qC(6);Uy(function(t){t.setUTCDate(1);t.setUTCHours(0,0,0,0)},function(t,G){t.setUTCMonth(t.getUTCMonth()+G)},function(t,G){return G.getUTCMonth()-t.getUTCMonth()+(G.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});
var nS=Uy(function(t){t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,G){t.setUTCFullYear(t.getUTCFullYear()+G)},function(t,G){return G.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});
nS.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Uy(function(G){G.setUTCFullYear(Math.floor(G.getUTCFullYear()/t)*t);G.setUTCMonth(0,1);G.setUTCHours(0,0,0,0)},function(G,k){G.setUTCFullYear(G.getUTCFullYear()+k*t)}):null};
var g1L={"-":"",_:" ",0:"0"},vG=/^\s*\d+/,PRy=/^%/,MOl=/[\\^$*+?|[\]().{}]/g,oFu;(function(t){oFu=Nc5(t);zm2=oFu.utcFormat;XP6=oFu.utcParse;return oFu})({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||zm2("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||XP6("%Y-%m-%dT%H:%M:%S.%LZ");Dw("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Dw("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Dw("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Dw("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Dw("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Dw("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Dw("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Dw("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Dw("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Dw("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Dw("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Dw("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var lhw=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Dw);Ln(lhw);var W9K=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Dw);Ln(W9K);var GlE=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Dw);Ln(GlE);var ABy=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Dw);
Ln(ABy);var T9Z=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Dw);Ln(T9Z);var rBw=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Dw);Ln(rBw);var qGS=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Dw);Ln(qGS);var Q_7=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Dw);Ln(Q_7);var j_S=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Dw);Ln(j_S);var CRP=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Dw);Ln(CRP);var xOP=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Dw);Ln(xOP);var L9U=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Dw);Ln(L9U);var B9y=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Dw);Ln(B9y);var JBE=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Dw);Ln(JBE);var s_w=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Dw);Ln(s_w);var kly=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Dw);Ln(kly);var wcz=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Dw);Ln(wcz);var Zg5=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Dw);Ln(Zg5);var ePl=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Dw);Ln(ePl);var pcw=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Dw);Ln(pcw);var KoS=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Dw);Ln(KoS);var dfw=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Dw);Ln(dfw);var f5U=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Dw);Ln(f5U);var Hxw=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Dw);Ln(Hxw);var Dft=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Dw);Ln(Dft);var VUt=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Dw);Ln(VUt);var SvK=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Dw);Ln(SvK);BkY(FH(300,.5,0),FH(-240,.5,1));BkY(FH(-100,.75,.35),FH(80,1.5,.8));BkY(FH(260,.75,.35),FH(80,1.5,.8));FH();PK();P8Y(Dw("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
P8Y(Dw("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
P8Y(Dw("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
P8Y(Dw("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
W16.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(t,G){t=+t;G=+G;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,G):this._context.moveTo(t,G);break;case 1:this._point=2;default:this._context.lineTo(t,G)}}};
(function(t){function G(k){return new G3f(t(k))}
G._curve=t;return G})(function(t){return new W16(t)});
G3f.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(t,G){this._curve.point(G*Math.sin(t),G*-Math.cos(t))}};
CVu.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:jUp(this,this._t0,Tks(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(t,G){var k=NaN;t=+t;G=+G;if(t!==this._x1||G!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,G):this._context.moveTo(t,G);break;case 1:this._point=2;break;case 2:this._point=3;jUp(this,Tks(this,k=Al4(this,t,G)),k);break;default:jUp(this,this._t0,k=Al4(this,t,G))}this._x0=this._x1;this._x1=t;this._y0=this._y1;this._y1=G;this._t0=k}}};
(function(t){this._context=new rl8(t)}.prototype=Object.create(CVu.prototype)).point=function(t,G){CVu.prototype.point.call(this,G,t)};
rl8.prototype={moveTo:function(t,G){this._context.moveTo(G,t)},
closePath:function(){this._context.closePath()},
lineTo:function(t,G){this._context.lineTo(G,t)},
bezierCurveTo:function(t,G,k,VO,uo,XX){this._context.bezierCurveTo(G,t,VO,k,XX,uo)}};
ez.prototype={constructor:ez,scale:function(t){return t===1?this:new ez(this.k*t,this.x,this.y)},
translate:function(t,G){return t===0&G===0?this:new ez(this.k,this.x+this.k*t,this.y+this.k*G)},
apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},
invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new ez(1,0,0);I_Y=AP;Ab.svg=Ab.svg;Ab.xhtml=Ab.xhtml;Ab.xlink=Ab.xlink;Ab.xml=Ab.xml;Ab.xmlns=Ab.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 vpv="hammer_"+(Math.random()*1E6|0),MPs=function(){var K=document||document;if(!K[vpv]){var d=function(){(function(f,H,D,S){function n(Pu,GS,jp){return setTimeout(v(Pu,jp),GS)}
function u(Pu,GS,jp){return Array.isArray(Pu)?(a(Pu,jp[GS],jp),!0):!1}
function a(Pu,GS,jp){var Rf;if(Pu)if(Pu.forEach)Pu.forEach(GS,jp);else if(Pu.length!==S){var D7=0;for(Rf=Pu.length;D7<Rf;D7++)GS.call(jp,Pu[D7],D7,Pu)}else for(D7 in Pu)Pu.hasOwnProperty(D7)&&GS.call(jp,Pu[D7],D7,Pu)}
function R(Pu,GS,jp){for(var Rf=Object.keys(GS),D7=0,o6=Rf.length;D7<o6;D7++)if(!jp||jp&&Pu[Rf[D7]]===S)Pu[Rf[D7]]=GS[Rf[D7]];return Pu}
function F(Pu,GS){return R(Pu,GS,!0)}
function z(Pu,GS,jp){GS=GS.prototype;var Rf=Pu.prototype=Object.create(GS);Rf.constructor=Pu;Rf._super=GS;jp&&R(Rf,jp)}
function v(Pu,GS){return function(){return Pu.apply(GS,arguments)}}
function g(Pu,GS){return typeof Pu=="function"?Pu.apply(GS?GS[0]||S:S,GS):Pu}
function N(Pu,GS,jp){a(m(GS),function(Rf){Pu.addEventListener(Rf,jp,!1)})}
function h(Pu,GS,jp){a(m(GS),function(Rf){Pu.removeEventListener(Rf,jp,!1)})}
function m(Pu){return Pu.trim().split(/\s+/g)}
function T(Pu,GS,jp){if(Pu.indexOf&&!jp)return Pu.indexOf(GS);for(var Rf=0,D7=Pu.length;Rf<D7;Rf++)if(jp&&Pu[Rf][jp]==GS||!jp&&Pu[Rf]===GS)return Rf;return-1}
function r(Pu,GS,jp){for(var Rf=[],D7=[],o6=0,cK=Pu.length;o6<cK;o6++){var v4=GS?Pu[o6][GS]:Pu[o6];T(D7,v4)<0&&Rf.push(Pu[o6]);D7[o6]=v4}jp&&(Rf=GS?Rf.sort(function(FH,Fi){return FH[GS]>Fi[GS]}):Rf.sort());
return Rf}
function J(Pu,GS){for(var jp,Rf=GS[0].toUpperCase()+GS.slice(1),D7=0,o6=wz.length;D7<o6;D7++)if(jp=(jp=wz[D7])?jp+Rf:GS,jp in Pu)return jp;return S}
function L(Pu,GS){var jp=this;this.manager=Pu;this.callback=GS;this.element=Pu.element;this.target=Pu.options.inputTarget;this.domHandler=function(Rf){g(Pu.options.enable,[Pu])&&jp.handler(Rf)};
this.evEl&&N(this.element,this.evEl,this.domHandler);this.evTarget&&N(this.target,this.evTarget,this.domHandler);this.evWin&&N(f,this.evWin,this.domHandler)}
function fB(Pu){var GS;zf?GS=xz:Ss?GS=qJ:AP?GS=Y8:GS=bo;return new GS(Pu,w)}
function w(Pu,GS,jp){var Rf=jp.pointers.length,D7=jp.changedPointers.length,o6=GS&1&&Rf-D7===0;jp.isFirst=!!o6;jp.isFinal=!!(GS&12&&Rf-D7===0);o6&&(Pu.session={});jp.eventType=GS;GS=Pu.session;Rf=jp.pointers;D7=Rf.length;GS.firstInput||(GS.firstInput=yO(jp));D7>1&&!GS.firstMultiple?GS.firstMultiple=yO(jp):D7===1&&(GS.firstMultiple=!1);o6=GS.firstInput;var cK=(D7=GS.firstMultiple)?D7.center:o6.center,v4=jp.center=FX(Rf);jp.timeStamp=zy();jp.deltaTime=jp.timeStamp-o6.timeStamp;jp.angle=hN(cK,v4);jp.distance=
$z(cK,v4);o6=jp.center;cK=GS.offsetDelta||{};v4=GS.prevDelta||{};var FH=GS.prevInput||{};if(jp.eventType===1||FH.eventType===4)v4=GS.prevDelta={x:FH.deltaX||0,y:FH.deltaY||0},cK=GS.offsetDelta={x:o6.x,y:o6.y};jp.deltaX=v4.x+(o6.x-cK.x);jp.deltaY=v4.y+(o6.y-cK.y);jp.offsetDirection=NJ(jp.deltaX,jp.deltaY);D7?(o6=D7.pointers,o6=$z(Rf[0],Rf[1],PK)/$z(o6[0],o6[1],PK)):o6=1;jp.scale=o6;D7?(D7=D7.pointers,Rf=hN(Rf[1],Rf[0],PK)-hN(D7[1],D7[0],PK)):Rf=0;jp.rotation=Rf;cK=GS.lastInterval||jp;Rf=jp.timeStamp-
cK.timeStamp;jp.eventType!=8&&(Rf>25||cK.velocity===S)?(o6=cK.deltaX-jp.deltaX,cK=cK.deltaY-jp.deltaY,v4=o6/Rf||0,FH=cK/Rf||0,Rf=v4,D7=FH,v4=P4(v4)>P4(FH)?v4:FH,o6=NJ(o6,cK),GS.lastInterval=jp):(v4=cK.velocity,Rf=cK.velocityX,D7=cK.velocityY,o6=cK.direction);jp.velocity=v4;jp.velocityX=Rf;jp.velocityY=D7;jp.direction=o6;GS=Pu.element;a:{for(Rf=jp.srcEvent.target;Rf;){if(Rf==GS){Rf=!0;break a}Rf=Rf.parentNode}Rf=!1}Rf&&(GS=jp.srcEvent.target);jp.target=GS;Pu.emit("hammer.input",jp);Pu.recognize(jp);
Pu.session.prevInput=jp}
function yO(Pu){for(var GS=[],jp=0;jp<Pu.pointers.length;jp++)GS[jp]={clientX:yc(Pu.pointers[jp].clientX),clientY:yc(Pu.pointers[jp].clientY)};return{timeStamp:zy(),pointers:GS,center:FX(GS),deltaX:Pu.deltaX,deltaY:Pu.deltaY}}
function FX(Pu){var GS=Pu.length;if(GS===1)return{x:yc(Pu[0].clientX),y:yc(Pu[0].clientY)};for(var jp=0,Rf=0,D7=0;D7<GS;D7++)jp+=Pu[D7].clientX,Rf+=Pu[D7].clientY;return{x:yc(jp/GS),y:yc(Rf/GS)}}
function NJ(Pu,GS){return Pu===GS?1:P4(Pu)>=P4(GS)?Pu>0?2:4:GS>0?8:16}
function $z(Pu,GS,jp){jp||(jp=Qv);var Rf=GS[jp[0]]-Pu[jp[0]];Pu=GS[jp[1]]-Pu[jp[1]];return Math.sqrt(Rf*Rf+Pu*Pu)}
function hN(Pu,GS,jp){jp||(jp=Qv);return Math.atan2(GS[jp[1]]-Pu[jp[1]],GS[jp[0]]-Pu[jp[0]])*180/Math.PI}
function bo(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;L.apply(this,arguments)}
function xz(){this.evEl=qe;this.evWin=W_;L.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function qJ(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};L.apply(this,arguments)}
function Y8(){L.apply(this,arguments);var Pu=v(this.handler,this);this.touch=new qJ(this.manager,Pu);this.mouse=new bo(this.manager,Pu)}
function Iz(Pu,GS){this.manager=Pu;this.set(GS)}
function qs(Pu){if(Pu.indexOf("none")>-1)return"none";var GS=Pu.indexOf("pan-x")>-1,jp=Pu.indexOf("pan-y")>-1;return GS&&jp?"pan-x pan-y":GS||jp?GS?"pan-x":"pan-y":Pu.indexOf("manipulation")>-1?"manipulation":"auto"}
function af(Pu){this.id=nw++;this.manager=null;this.options=F(Pu||{},this.defaults);Pu=this.options.enable;this.options.enable=Pu===S?!0:Pu;this.state=1;this.simultaneous={};this.requireFail=[]}
function i9(Pu){return Pu==16?"down":Pu==8?"up":Pu==2?"left":Pu==4?"right":""}
function KE(Pu,GS){return(GS=GS.manager)?GS.get(Pu):Pu}
function c4(){af.apply(this,arguments)}
function cx(){c4.apply(this,arguments);this.pY=this.pX=null}
function Oj(){c4.apply(this,arguments)}
function io(){af.apply(this,arguments);this._input=this._timer=null}
function g2(){c4.apply(this,arguments)}
function l9(){c4.apply(this,arguments)}
function rw(){af.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function t6(Pu,GS){GS=GS||{};var jp=GS.recognizers;GS.recognizers=jp===S?t6.defaults.preset:jp;return new LJ(Pu,GS)}
function LJ(Pu,GS){GS=GS||{};this.options=F(GS,t6.defaults);this.options.inputTarget=this.options.inputTarget||Pu;this.handlers={};this.session={};this.recognizers=[];this.element=Pu;this.input=fB(this);this.touchAction=new Iz(this,this.options.touchAction);ry(this,!0);a(GS.recognizers,function(jp){var Rf=this.add(new jp[0](jp[1]));jp[2]&&Rf.recognizeWith(jp[2]);jp[3]&&Rf.requireFailure(jp[2])},this)}
function ry(Pu,GS){var jp=Pu.element;a(Pu.options.cssProps,function(Rf,D7){jp.style[J(jp.style,D7)]=GS?Rf:""})}
function u9(Pu,GS){var jp=H.createEvent("Event");jp.initEvent(Pu,!0,!0);jp.gesture=GS;GS.target.dispatchEvent(jp)}
var wz=" webkit moz MS ms o".split(" "),Ms=H.createElement("div"),yc=Math.round,P4=Math.abs,zy=Date.now,nw=1,Sc=/mobile|tablet|ip(ad|hone|od)|android/i,AP="ontouchstart"in f,zf=J(f,"PointerEvent")!==S,Ss=AP&&Sc.test(navigator.userAgent),Qv=["x","y"],PK=["clientX","clientY"];L.prototype={handler:function(){},
destroy:function(){this.evEl&&h(this.element,this.evEl,this.domHandler);this.evTarget&&h(this.target,this.evTarget,this.domHandler);this.evWin&&h(f,this.evWin,this.domHandler)}};
var Z7={mousedown:1,mousemove:2,mouseup:4};z(bo,L,{handler:function(Pu){var GS=Z7[Pu.type];GS&1&&Pu.button===0&&(this.pressed=!0);GS&2&&Pu.which!==1&&(GS=4);this.pressed&&this.allow&&(GS&4&&(this.pressed=!1),this.callback(this.manager,GS,{pointers:[Pu],changedPointers:[Pu],pointerType:"mouse",srcEvent:Pu}))}});
var Kw={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Yl={2:"touch",3:"pen",4:"mouse",5:"kinect"},qe="pointerdown",W_="pointermove pointerup pointercancel";f.MSPointerEvent&&(qe="MSPointerDown",W_="MSPointerMove MSPointerUp MSPointerCancel");z(xz,L,{handler:function(Pu){var GS=this.store,jp=!1,Rf=Pu.type.toLowerCase().replace("ms","");Rf=Kw[Rf];var D7=Yl[Pu.pointerType]||Pu.pointerType;Rf&1&&(Pu.button===0||D7=="touch")?GS.push(Pu):Rf&12&&(jp=!0);var o6=T(GS,Pu.pointerId,"pointerId");
o6<0||(GS[o6]=Pu,this.callback(this.manager,Rf,{pointers:GS,changedPointers:[Pu],pointerType:D7,srcEvent:Pu}),jp&&GS.splice(o6,1))}});
var Il={touchstart:1,touchmove:2,touchend:4,touchcancel:8};z(qJ,L,{handler:function(Pu){var GS=Il[Pu.type];var jp=Array.prototype.slice.call(Pu.touches,0);var Rf=this.targetIds;if(GS&3&&jp.length===1)Rf[jp[0].identifier]=!0,Rf=[jp,jp];else{var D7,o6=Array.prototype.slice.call(Pu.targetTouches,0),cK=Array.prototype.slice.call(Pu.changedTouches,0),v4=[];if(GS===1)for(jp=0,D7=o6.length;jp<D7;jp++)Rf[o6[jp].identifier]=!0;jp=0;for(D7=cK.length;jp<D7;jp++)Rf[cK[jp].identifier]&&v4.push(cK[jp]),GS&12&&
delete Rf[cK[jp].identifier];Rf=v4.length?[r(o6.concat(v4),"identifier",!0),v4]:void 0}Rf&&this.callback(this.manager,GS,{pointers:Rf[0],changedPointers:Rf[1],pointerType:"touch",srcEvent:Pu})}});
z(Y8,L,{handler:function(Pu,GS,jp){var Rf=jp.pointerType=="mouse";if(jp.pointerType=="touch")this.mouse.allow=!1;else if(Rf&&!this.mouse.allow)return;GS&12&&(this.mouse.allow=!0);this.callback(Pu,GS,jp)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var w5=J(Ms.style,"touchAction"),tG=w5!==S;Iz.prototype={set:function(Pu){Pu=="compute"&&(Pu=this.compute());tG&&(this.manager.element.style[w5]=Pu);this.actions=Pu.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Pu=[];a(this.manager.recognizers,function(GS){g(GS.options.enable,[GS])&&(Pu=Pu.concat(GS.getTouchAction()))});
return qs(Pu.join(" "))},
preventDefaults:function(Pu){if(!tG){var GS=Pu.srcEvent;Pu=Pu.offsetDirection;if(this.manager.session.prevented)GS.preventDefault();else{var jp=this.actions,Rf=jp.indexOf("none")>-1,D7=jp.indexOf("pan-y")>-1;jp=jp.indexOf("pan-x")>-1;if(Rf||D7&&jp||D7&&Pu&6||jp&&Pu&24)return this.preventSrc(GS)}}},
preventSrc:function(Pu){this.manager.session.prevented=!0;Pu.preventDefault()}};
af.prototype={defaults:{},set:function(Pu){R(this.options,Pu);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Pu){if(u(Pu,"recognizeWith",this))return this;var GS=this.simultaneous;Pu=KE(Pu,this);GS[Pu.id]||(GS[Pu.id]=Pu,Pu.recognizeWith(this));return this},
dropRecognizeWith:function(Pu){if(u(Pu,"dropRecognizeWith",this))return this;Pu=KE(Pu,this);delete this.simultaneous[Pu.id];return this},
requireFailure:function(Pu){if(u(Pu,"requireFailure",this))return this;var GS=this.requireFail;Pu=KE(Pu,this);T(GS,Pu)===-1&&(GS.push(Pu),Pu.requireFailure(this));return this},
dropRequireFailure:function(Pu){if(u(Pu,"dropRequireFailure",this))return this;Pu=KE(Pu,this);Pu=T(this.requireFail,Pu);Pu>-1&&this.requireFail.splice(Pu,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Pu){return!!this.simultaneous[Pu.id]},
emit:function(Pu){function GS(D7){jp.manager.emit(jp.options.event+(D7?Rf&16?"cancel":Rf&8?"end":Rf&4?"move":Rf&2?"start":"":""),Pu)}
var jp=this,Rf=this.state;Rf<8&&GS(!0);GS();Rf>=8&&GS(!0)},
tryEmit:function(Pu){if(this.canEmit())return this.emit(Pu);this.state=32},
canEmit:function(){for(var Pu=0;Pu<this.requireFail.length;Pu++)if(!(this.requireFail[Pu].state&33))return!1;return!0},
recognize:function(Pu){Pu=R({},Pu);g(this.options.enable,[this,Pu])?(this.state&56&&(this.state=1),this.state=this.process(Pu),this.state&30&&this.tryEmit(Pu)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
z(c4,af,{defaults:{pointers:1},attrTest:function(Pu){var GS=this.options.pointers;return GS===0||Pu.pointers.length===GS},
process:function(Pu){var GS=this.state,jp=Pu.eventType,Rf=GS&6;Pu=this.attrTest(Pu);return Rf&&(jp&8||!Pu)?GS|16:Rf||Pu?jp&4?GS|8:GS&2?GS|4:2:32}});
z(cx,c4,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Pu=this.options.direction;if(Pu===30)return["none"];var GS=[];Pu&6&&GS.push("pan-y");Pu&24&&GS.push("pan-x");return GS},
directionTest:function(Pu){var GS=this.options,jp=!0,Rf=Pu.distance,D7=Pu.direction,o6=Pu.deltaX,cK=Pu.deltaY;D7&GS.direction||(GS.direction&6?(D7=o6===0?1:o6<0?2:4,jp=o6!=this.pX,Rf=Math.abs(Pu.deltaX)):(D7=cK===0?1:cK<0?8:16,jp=cK!=this.pY,Rf=Math.abs(Pu.deltaY)));Pu.direction=D7;return jp&&Rf>GS.threshold&&D7&GS.direction},
attrTest:function(Pu){return c4.prototype.attrTest.call(this,Pu)&&(this.state&2||!(this.state&2)&&this.directionTest(Pu))},
emit:function(Pu){this.pX=Pu.deltaX;this.pY=Pu.deltaY;var GS=i9(Pu.direction);GS&&this.manager.emit(this.options.event+GS,Pu);this._super.emit.call(this,Pu)}});
z(Oj,c4,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Pu){return this._super.attrTest.call(this,Pu)&&(Math.abs(Pu.scale-1)>this.options.threshold||this.state&2)},
emit:function(Pu){this._super.emit.call(this,Pu);Pu.scale!==1&&this.manager.emit(this.options.event+(Pu.scale<1?"in":"out"),Pu)}});
z(io,af,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Pu){var GS=this.options,jp=Pu.pointers.length===GS.pointers,Rf=Pu.distance<GS.threshold,D7=Pu.deltaTime>GS.time;this._input=Pu;if(!Rf||!jp||Pu.eventType&12&&!D7)this.reset();else if(Pu.eventType&1)this.reset(),this._timer=n(function(){this.state=8;this.tryEmit()},GS.time,this);
else if(Pu.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Pu){this.state===8&&(Pu&&Pu.eventType&4?this.manager.emit(this.options.event+"up",Pu):(this._input.timeStamp=zy(),this.manager.emit(this.options.event,this._input)))}});
z(g2,c4,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Pu){return this._super.attrTest.call(this,Pu)&&(Math.abs(Pu.rotation)>this.options.threshold||this.state&2)}});
z(l9,c4,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return cx.prototype.getTouchAction.call(this)},
attrTest:function(Pu){var GS=this.options.direction;if(GS&30)var jp=Pu.velocity;else GS&6?jp=Pu.velocityX:GS&24&&(jp=Pu.velocityY);return this._super.attrTest.call(this,Pu)&&GS&Pu.direction&&P4(jp)>this.options.velocity&&Pu.eventType&4},
emit:function(Pu){var GS=i9(Pu.direction);GS&&this.manager.emit(this.options.event+GS,Pu);this.manager.emit(this.options.event,Pu)}});
z(rw,af,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Pu){var GS=this.options,jp=Pu.pointers.length===GS.pointers,Rf=Pu.distance<GS.threshold,D7=Pu.deltaTime<GS.time;this.reset();if(Pu.eventType&1&&this.count===0)return this.failTimeout();if(Rf&&D7&&jp){if(Pu.eventType!=4)return this.failTimeout();jp=this.pTime?Pu.timeStamp-this.pTime<GS.interval:!0;Rf=!this.pCenter||$z(this.pCenter,Pu.center)<GS.posThreshold;this.pTime=Pu.timeStamp;this.pCenter=Pu.center;Rf&&jp?this.count+=1:this.count=1;this._input=Pu;if(this.count%GS.taps===0)return this.hasRequireFailures()?
(this._timer=n(function(){this.state=8;this.tryEmit()},GS.interval,this),2):8}return 32},
failTimeout:function(){this._timer=n(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))}});
t6.VERSION="2.0.2";t6.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[g2,{enable:!1}],[Oj,{enable:!1},["rotate"]],[l9,{direction:6}],[cx,{direction:6},["swipe"]],[rw],[rw,{event:"doubletap",taps:2},["tap"]],[io]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};LJ.prototype={set:function(Pu){R(this.options,Pu);return this},
stop:function(Pu){this.session.stopped=Pu?2:1},
recognize:function(Pu){var GS=this.session;if(!GS.stopped){this.touchAction.preventDefaults(Pu);var jp=this.recognizers,Rf=GS.curRecognizer;if(!Rf||Rf&&Rf.state&8)Rf=GS.curRecognizer=null;for(var D7=0,o6=jp.length;D7<o6;D7++){var cK=jp[D7];GS.stopped===2||Rf&&cK!=Rf&&!cK.canRecognizeWith(Rf)?cK.reset():cK.recognize(Pu);!Rf&&cK.state&14&&(Rf=GS.curRecognizer=cK)}}},
get:function(Pu){if(Pu instanceof af)return Pu;for(var GS=this.recognizers,jp=0;jp<GS.length;jp++)if(GS[jp].options.event==Pu)return GS[jp];return null},
add:function(Pu){if(u(Pu,"add",this))return this;var GS=this.get(Pu.options.event);GS&&this.remove(GS);this.recognizers.push(Pu);Pu.manager=this;this.touchAction.update();return Pu},
remove:function(Pu){if(u(Pu,"remove",this))return this;var GS=this.recognizers;Pu=this.get(Pu);GS.splice(T(GS,Pu),1);this.touchAction.update();return this},
on:function(Pu,GS){var jp=this.handlers;a(m(Pu),function(Rf){jp[Rf]=jp[Rf]||[];jp[Rf].push(GS)});
return this},
off:function(Pu,GS){var jp=this.handlers;a(m(Pu),function(Rf){GS?jp[Rf].splice(T(jp[Rf],GS),1):delete jp[Rf]});
return this},
emit:function(Pu,GS){this.options.domEvents&&u9(Pu,GS);var jp=this.handlers[Pu]&&this.handlers[Pu].slice();if(jp&&jp.length){GS.type=Pu;GS.preventDefault=function(){GS.srcEvent.preventDefault()};
Pu=0;for(var Rf=jp.length;Pu<Rf;Pu++)jp[Pu](GS)}},
destroy:function(){this.element&&ry(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
R(t6,{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:LJ,Input:L,TouchAction:Iz,Recognizer:af,AttrRecognizer:c4,Tap:rw,Pan:cx,Swipe:l9,Pinch:Oj,Rotate:g2,Press:io,on:N,off:h,each:a,merge:F,extend:R,inherit:z,bindFn:v,prefixed:J});
f[D]=t6})(window,document,"Hammer");
return window.Hammer}.call({});
d.DOCUMENT=K;K[vpv]=d}return K[vpv]};/*

 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 PL2=function(K,d){if(K.length!==d.length)return!1;for(var f=0;f<K.length;++f)if(K[f]!==d[f])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var gps=_.y(["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"]),O8B=gps.next();!O8B.done;O8B=gps.next()){var NjJ=O8B.value,Yzs=document.createElement("link");Yzs.rel="stylesheet";Yzs.href=NjJ;document.head.appendChild(Yzs)};var Zsz,pdY,dip,s1z,eCp,k$S,B7S,Jmo;Zsz={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};pdY={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:"*"};dip={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};s1z=/[a-z0-9*]/;eCp=/U\+/;k$S=/^arrow/;B7S=/^space(bar)?/;Jmo=/^escape$/;_.u4={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(K,d){this._imperativeKeyBindings[K]=d;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(K,d){d=HOz(d);for(var f=0;f<d.length;++f)if(KQz(d[f],K))return!0;return!1},
_collectKeyBindings:function(){var K=this.behaviors.map(function(d){return d.keyBindings});
K.indexOf(this.keyBindings)===-1&&K.push(this.keyBindings);return K},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(f){for(var H in f)this._addKeyBinding(H,f[H])},this);
for(var K in this._imperativeKeyBindings)this._addKeyBinding(K,this._imperativeKeyBindings[K]);for(var d in this._keyBindings)this._keyBindings[d].sort(function(f,H){f=f[0].hasModifiers;return f===H[0].hasModifiers?0:f?-1:1})},
_addKeyBinding:function(K,d){HOz(K).forEach(function(f){this._keyBindings[f.event]=this._keyBindings[f.event]||[];this._keyBindings[f.event].push([f,d])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(K){var d=this._onKeyBindingEvent.bind(this,this._keyBindings[K]);this._boundKeyHandlers.push([this.keyEventTarget,K,d]);this.keyEventTarget.addEventListener(K,d)},this)},
_unlistenKeyEventListeners:function(){for(var K,d,f;this._boundKeyHandlers.length;)K=this._boundKeyHandlers.pop(),d=K[0],f=K[1],K=K[2],d.removeEventListener(f,K)},
_onKeyBindingEvent:function(K,d){this.stopKeyboardEventPropagation&&d.stopPropagation();if(!d.defaultPrevented)for(var f=0;f<K.length;f++){var H=K[f][0],D=K[f][1];if(KQz(H,d)&&(this._triggerKeyHandler(H,D,d),d.defaultPrevented))break}},
_triggerKeyHandler:function(K,d,f){var H=Object.create(K);H.keyboardEvent=f;K=new CustomEvent(K.event,{detail:H,cancelable:!0});this[d].call(this,K);K.defaultPrevented&&f.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
*/
_.vP({is:"iron-a11y-keys",_template:null,behaviors:[_.u4],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(K){this.keyEventTarget=K},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(K){this.fire("keys-pressed",K.detail,{})}});_.ab={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(K){this._setFocused(K.type==="focus")},
_disabledChanged:function(K){this.setAttribute("aria-disabled",K?"true":"false");this.style.pointerEvents=K?"none":"";K?(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 Ib={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(K){this._detectKeyboardFocus(K);K||this._setPressed(!1)},
_detectKeyboardFocus:function(K){this._setReceivedFocusFromKeyboard(!this.pointerDown&&K)},
_userActivate:function(K){this.active!==K&&(this.active=K,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(K){K=K.detail.keyboardEvent;var d=_.Xd(K).localTarget;this.isLightDescendant(d)||(K.preventDefault(),K.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(K){K=_.Xd(K.detail.keyboardEvent).localTarget;this.isLightDescendant(K)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(K,d){d&&d!=K&&this.hasAttribute(d)&&this.removeAttribute(d)},
_activeChanged:function(K){this.toggles?this.setAttribute(this.ariaActiveAttribute,K?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},tPt=[_.u4,
Ib];_.UK={IronButtonState:tPt,IronButtonStateImpl:Ib};_.Rb={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.Fu=function(K){_.Fu[" "](K);this.type=K&&K.type||"default";this.key=K&&K.key;K&&"value"in K&&(this.value=K.value)};
_.Fu.prototype.byKey=function(K){this.key=K;return this.value};
_.x$.Object.defineProperties(_.Fu.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var K=this.type,d=this.key;if(K&&d)return zH[K]&&zH[K][d]},
set:function(K){var d=this.type,f=this.key;d&&f&&(d=zH[d]=zH[d]||{},K==null?delete d[f]:d[f]=K)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var K=zH[this.type];return K?Object.keys(K).map(function(d){return zH[this.type][d]},this):[]}}});
_.Fu[" "]=function(){};
var zH={};_.vP({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(K,d,f){K=new _.Fu({type:K,key:d});f!==void 0&&f!==K.value?K.value=f:this.value!==K.value&&(this.value=K.value);return K},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(K){K&&(this.value=this)},
byKey:function(K){return(new _.Fu({type:this.type,key:K})).value}});var opt;opt=null;_.Xu={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){opt=new _.Fu({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return opt&&opt.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(K){this.invalid=K===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(K);return!this.invalid},
_getValidity:function(K){return this.hasValidator()?this._validator.validate(K):!0}};var $7s={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"}},EpB=[_.Rb,
_.Xu,$7s];_.vP({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 _.Fu({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(K){return this.name+":"+K},this)},
applyIcon:function(K,d){this.removeIcon(K);if(d=this._cloneIcon(d,this.rtlMirroring&&this._targetIsRTL(K))){var f=_.Xd(K.root||K);f.insertBefore(d,f.childNodes[0]);return K._svgIcon=d}return null},
removeIcon:function(K){K._svgIcon&&(_.Xd(K.root||K).removeChild(K._svgIcon),K._svgIcon=null)},
_targetIsRTL:function(K){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(K&&K.nodeType!==Node.ELEMENT_NODE&&(K=K.host),this.__targetIsRTL=K&&window.getComputedStyle(K).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 K=Object.create(null);_.Xd(this).querySelectorAll("[id]").forEach(function(d){K[d.id]=d});
return K},
_cloneIcon:function(K,d){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[K],this.size,d)},
_prepareSvgClone:function(K,d,f){if(K){K=K.cloneNode(!0);var H=document.createElementNS("http://www.w3.org/2000/svg","svg");d=K.getAttribute("viewBox")||"0 0 "+d+" "+d;var D="pointer-events: none; display: block; width: 100%; height: 100%;";f&&K.hasAttribute("mirror-in-rtl")&&(D+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");H.setAttribute("viewBox",d);H.setAttribute("preserveAspectRatio","xMidYMid meet");H.setAttribute("focusable","false");H.style&&(H.style.cssText=
D);H.appendChild(K).removeAttribute("id");return H}return null}});var hmN=function(K){this.multi=!1;this.selection=[];this.selectCallback=K};
_.V=hmN.prototype;_.V.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.V.clear=function(K){this.selection.slice().forEach(function(d){(!K||K.indexOf(d)<0)&&this.setItemSelected(d,!1)},this)};
_.V.isSelected=function(K){return this.selection.indexOf(K)>=0};
_.V.setItemSelected=function(K,d){if(K!=null&&d!==this.isSelected(K)){if(d)this.selection.push(K);else{var f=this.selection.indexOf(K);f>=0&&this.selection.splice(f,1)}this.selectCallback&&this.selectCallback(K,d)}};
_.V.select=function(K){this.multi?this.toggle(K):this.get()!==K&&(this.setItemSelected(this.get(),!1),this.setItemSelected(K,!0))};
_.V.toggle=function(K){this.setItemSelected(K,!this.isSelected(K))};_.WP={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 hmN(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Xd(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(K){return this.items?this.items.indexOf(K):-1},
select:function(K){this.selected=K},
selectPrevious:function(){var K=this.items.length,d=K-1;this.selected!==void 0&&(d=(Number(this._valueToIndex(this.selected))-1+K)%K);this.selected=this._indexToValue(d)},
selectNext:function(){var K=0;this.selected!==void 0&&(K=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(K)},
selectIndex:function(K){this.select(this._indexToValue(K))},
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(K){this.listen(this,K,"_activateHandler")},
_removeListener:function(K){this.unlisten(this,K,"_activateHandler")},
_activateEventChanged:function(K,d){this._removeListener(d);this._addListener(K)},
_updateItems:function(){var K=_.Xd(this).queryDistributedElements(this.selectable||"*");K=Array.prototype.filter.call(K,this._bindFilterItem);this._setItems(K)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var K=this._valueToItem(this.selected);K?this._selection.select(K):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(K){return!this._excludedLocalNames[K.localName]},
_valueToItem:function(K){return K==null?null:this.items[this._valueToIndex(K)]},
_valueToIndex:function(K){if(this.attrForSelected)for(var d=0,f;f=this.items[d];d++){if(this._valueForItem(f)==K)return d}else return Number(K)},
_indexToValue:function(K){if(this.attrForSelected){if(K=this.items[K])return this._valueForItem(K)}else return K},
_valueForItem:function(K){if(!K)return null;if(!this.attrForSelected)return K=this.indexOf(K),K===-1?null:K;var d=K[f3(this.attrForSelected)];return d!=void 0?d:K.getAttribute(this.attrForSelected)},
_applySelection:function(K,d){this.selectedClass&&this.toggleClass(this.selectedClass,d,K);this.selectedAttribute&&this.toggleAttribute.call(K,this.selectedAttribute,d);this._selectionChange();this.fire("iron-"+(d?"select":"deselect"),{item:K})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(K){return _.Xd(K).observeNodes(function(d){this._updateItems();this._updateSelected();this.fire("iron-items-changed",d,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(K){K=K.target;for(var d=this.items;K&&K!=this;){var f=d.indexOf(K);if(f>=0){d=this._indexToValue(f);this._itemActivate(d,K);break}K=K.parentNode}},
_itemActivate:function(K,d){this.fire("iron-activate",{selected:K,item:d},{cancelable:!0}).defaultPrevented||this.select(K)}};var b8k={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(K){this.multi?this._toggleSelected(K):this.selected=K},
multiChanged:function(K){this._selection.multi=K;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(K){return this._indexToValue(this.indexOf(K))},this).filter(function(K){return K!=null},this)):_.WP._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(K){K=K||[];K=(this._valuesToItems(K)||[]).filter(function(f){return f!==null&&f!==void 0});
this._selection.clear(K);for(var d=0;d<K.length;d++)this._selection.setItemSelected(K[d],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var K=this._selection.get();this.multi?(this._setSelectedItems(K),this._setSelectedItem(K.length?K[0]:null)):K!==null&&K!==void 0?(this._setSelectedItems([K]),this._setSelectedItem(K)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(K){var d=this.selectedValues.indexOf(K);d<0?this.push("selectedValues",K):this.splice("selectedValues",d,1)},
_valuesToItems:function(K){return K==null?null:K.map(function(d){return this._valueToItem(d)},this)}},m7f=[_.WP,
b8k];var lmt;
_.v3={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(K){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var d=this._valueToItem(K);d&&d.hasAttribute("disabled")||(this._setFocusedItem(d),b8k.select.apply(this,arguments))},
_resetTabindices:function(){var K=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(d){d.setAttribute("tabindex",d===K?"0":"-1");d.setAttribute("aria-selected",this._selection.isSelected(d))},this)},
_updateMultiselectable:function(K){K?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(K){if(this._MODIFIER_KEYS.indexOf(K.key)===-1){this.cancelDebouncer("_clearSearchText");var d=this._searchText||"";d+=(K.key&&K.key.length==1?K.key:String.fromCharCode(K.keyCode)).toLocaleLowerCase();K=d.length;for(var f=0,H;H=this.items[f];f++)if(!H.hasAttribute("disabled")){var D=this.attrForItemTitle||"textContent";D=(H[D]||H.getAttribute(D)||"").trim();if(!(D.length<K)&&D.slice(0,K).toLocaleLowerCase()==d){this._setFocusedItem(H);break}}this._searchText=d;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var K=this.items.length,d=Number(this.indexOf(this.focusedItem)),f=1;f<K+1;f++){var H=this.items[(d-f+K)%K];if(!H.hasAttribute("disabled")){var D=_.Xd(H).getOwnerRoot()||document;this._setFocusedItem(H);if(_.Xd(D).activeElement==H)break}}},
_focusNext:function(){for(var K=this.items.length,d=Number(this.indexOf(this.focusedItem)),f=1;f<K+1;f++){var H=this.items[(d+f)%K];if(!H.hasAttribute("disabled")){var D=_.Xd(H).getOwnerRoot()||document;this._setFocusedItem(H);if(_.Xd(D).activeElement==H)break}}},
_applySelection:function(K,d){d?K.setAttribute("aria-selected","true"):K.setAttribute("aria-selected","false");_.WP._applySelection.apply(this,arguments)},
_focusedItemChanged:function(K,d){d&&d.setAttribute("tabindex","-1");!K||K.hasAttribute("disabled")||this.disabled||(K.setAttribute("tabindex","0"),K.focus())},
_onIronItemsChanged:function(K){K.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var K=this.getAttribute("tabindex");_.v3._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",K);_.v3._shiftTabPressed=!1},1)},
_onFocus:function(K){!_.v3._shiftTabPressed&&(K=_.Xd(K).rootTarget,K===this||typeof K.tabIndex==="undefined"||this.isLightDescendant(K))&&(this._defaultFocusAsync=this.async(function(){var d=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);d?this._setFocusedItem(d):this.items[0]&&this._focusNext()}))},
_onUpKey:function(K){this._focusPrevious();K.detail.keyboardEvent.preventDefault()},
_onDownKey:function(K){this._focusNext();K.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var K=this.focusedItem;K&&K.blur()},
_onKeydown:function(K){this.keyboardEventMatchesKeys(K,"up down esc")||this._focusWithKeyboardEvent(K);K.stopPropagation()},
_activateHandler:function(K){_.WP._activateHandler.call(this,K);K.stopPropagation()},
_disabledChanged:function(K){K?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};lmt=[m7f,_.u4,_.v3];_.WxH={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(K){this.focusedItem&&(this.focusedItem.click(),K.detail.keyboardEvent.preventDefault())},
_onDownKey:function(K){this.focusedItem&&(this.focusedItem.click(),K.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(K){return K.ctrlKey||K.shiftKey||K.altKey||K.metaKey},
_onLeftKey:function(K){this._isSpecialKey(K.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),K.detail.keyboardEvent.preventDefault())},
_onRightKey:function(K){this._isSpecialKey(K.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),K.detail.keyboardEvent.preventDefault())},
_onKeydown:function(K){this.keyboardEventMatchesKeys(K,"up down left right esc")||this._focusWithKeyboardEvent(K)}};
_.GC8=[lmt,_.WxH];var AM9;AM9=new Set;_.Mg={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):(AM9.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(K){this.resizerShouldNotify(K)&&this._notifyDescendant(K)},this),this._fireResize())},
assignParentResizable:function(K){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=K)&&K._interestedResizables.indexOf(this)===-1&&(K._interestedResizables.push(this),K._subscribeIronResize(this))},
stopResizeNotificationsFor:function(K){var d=this._interestedResizables.indexOf(K);d>-1&&(this._interestedResizables.splice(d,1),this._unsubscribeIronResize(K))},
_subscribeIronResize:function(K){K.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(K){K.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(K){this._notifyingDescendant?K.stopPropagation():hd||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(K){var d=_.Xd(K).rootTarget;d!==this&&(d.assignParentResizable(this),this._notifyDescendant(d),K.stopPropagation())},
_parentResizableChanged:function(K){K&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(K){this.isAttached&&(this._notifyingDescendant=!0,K.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var K=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function f(){document.removeEventListener("readystatechange",f);K()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(d){d!==this&&d._findParent()},this):(AM9.forEach(function(d){d!==this&&d._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?AM9.delete(this):AM9.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
*/
_.Tjf={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(K,d){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);d&&(K==="document"?this.scrollTarget=this._doc:typeof K==="string"?this.scrollTarget=(d=this.domHost)&&d.$?d.$[K]:_.Xd(this.ownerDocument).querySelector("#"+K):this._isValidScrollTarget()&&(this._oldScrollTarget=K,this._toggleScrollListener(this._shouldHaveListener,K)))},
_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(K){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,K):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
K)},set _scrollLeft(K){this.scrollTarget===this._doc?window.scrollTo(K,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=K)},scroll:function(K,d){if(typeof K==="object"){var f=K.left;d=K.top}else f=K;f=f||0;d=d||0;this.scrollTarget===this._doc?window.scrollTo(f,d):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=f,this.scrollTarget.scrollTop=d)},
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(K,d){d=d===this._doc?window:d;K?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),d.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(d.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(K){this._shouldHaveListener=K;this._toggleScrollListener(K,this.scrollTarget)}};_.vP({is:"iron-selector",_template:null,behaviors:[m7f]});var P3={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(K){if(K.timing)for(var d in K.timing)this.animationTiming[d]=K.timing[d];return this.animationTiming},
setPrefixedProperty:function(K,d,f){for(var H={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[d],D,S=0;D=H[S];S++)K.style[D]=f;K.style[d]=f},
complete:function(){}};_.vP({is:"fade-in-animation",_template:null,behaviors:[P3],configure:function(K){return this._effect=new KeyframeEffect(K.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(K))}});_.vP({is:"fade-out-animation",_template:null,behaviors:[P3],configure:function(K){return this._effect=new KeyframeEffect(K.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(K))}});var rML=[{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(K,d){for(var f in d)K[f]=d[f]},
_cloneConfig:function(K){var d={isClone:!0};this._copyProperties(d,K);return d},
_getAnimationConfigRecursive:function(K,d,f){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 H=K?this.animationConfig[K]:this.animationConfig;Array.isArray(H)||(H=[H]);if(H)for(var D,S=0;D=H[S];S++)if(D.animatable)D.animatable._getAnimationConfigRecursive(D.type||K,d,f);else if(D.id){var n=d[D.id];
n?(n.isClone||(d[D.id]=this._cloneConfig(n),n=d[D.id]),this._copyProperties(n,D)):d[D.id]=D}else f.push(D)}},
getAnimationConfig:function(K){var d={},f=[];this._getAnimationConfigRecursive(K,d,f);for(var H in d)f.push(d[H]);return f}},
{_configureAnimations:function(K){var d=[],f=[];if(K.length>0)for(var H,D=0;H=K[D];D++){var S=document.createElement(H.name);if(S.isNeonAnimation){var n=null;S.configure||(S.configure=function(){return null});
n=S.configure(H);f.push({result:n,config:H})}else console.warn(this.is+":",H.name,"not found!")}for(K=0;K<f.length;K++){n=f[K].result;H=f[K].config;try{typeof n.cancel!="function"&&(n=document.timeline.play(n))}catch(u){n=null,console.warn("Couldnt play","(",H.name,").",u)}n&&d.push({neonAnimation:S,config:H,animation:n})}return d},
_shouldComplete:function(K){for(var d=!0,f=0;f<K.length;f++)if(K[f].animation.playState!="finished"){d=!1;break}return d},
_complete:function(K){for(var d=0;d<K.length;d++)K[d].neonAnimation.complete(K[d].config);for(d=0;d<K.length;d++)K[d].animation.cancel()},
playAnimation:function(K,d){var f=this.getAnimationConfig(K);if(f){this._active=this._active||{};this._active[K]&&(this._complete(this._active[K]),delete this._active[K]);var H=this._configureAnimations(f);if(H.length==0)this.fire("neon-animation-finish",d,{bubbles:!1});else for(this._active[K]=H,f=0;f<H.length;f++)H[f].animation.onfinish=function(){this._shouldComplete(H)&&(this._complete(H),delete this._active[K],this.fire("neon-animation-finish",d,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var K in this._active){var d=this._active[K],f;for(f in d)d[f].animation&&d[f].animation.cancel&&d[f].animation.cancel()}this._active={}}}];var Sv=function(K,d){K=Error.call(this,K);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.arg=d;this.name=this.constructor.name;this.constructor=Sv;this.__proto__=Sv.prototype};
_.O(Sv,Error);var qzH=qh(function(K){var d=function(){return K.apply(this,arguments)||this};
_.O(d,K);d.prototype._marshalArgs=function(f,H,D){H=K.prototype._marshalArgs.call(this,f,H,D);if(this._legacyUndefinedCheck&&H.length>1)for(D=0;D<H.length;D++)if(H[D]===void 0||f[D].wildcard&&H[D].base===void 0)throw f=f[D].name,new Sv("Argument '"+f+"' is undefined.",f);return H};
d.prototype._addPropertyEffect=function(f,H,D){return K.prototype._addPropertyEffect.call(this,f,H,Dio(D,D&&D.info&&D.info.methodName))};
d._addTemplatePropertyEffect=function(f,H,D){return K._addTemplatePropertyEffect.call(this,f,H,Dio(D))};
return d}),QnH=_.vP.Class;
_.vP.Class=function(K,d){return QnH(K,function(f){return d?d(qzH(f)):qzH(f)})};
var jn2=qh(function(K){var d=qzH(K);K=function(){return d.apply(this,arguments)||this};
_.O(K,d);_.x$.Object.defineProperties(K.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return K}),CLs=mk.mixin;
mk.mixin=CLs?function(K){return jn2(CLs(K))}:jn2;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.gO=_.UK.IronButtonState;var kTS=ES;/*

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
var Lxs;_.x7J="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");Lxs=function(){var K=[],d;var f=f||_.x7J.length;for(d=0;d<8;d++)K[d]=_.x7J[0|Math.random()*f];return K.join("")};var n2Y=function(){return Math.random().toString(36).substring(7).split("").join(".")},yIz="@@redux/INIT"+n2Y(),uou="@@redux/REPLACE"+n2Y();var ab5=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Bjt=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var JM8="top right bottom left width height size weight".split(" "),snf=typeof MutationObserver!=="undefined",kC9=Bjt&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,wPL=function(){this.mutationEventsAdded_=this.JSC$9657_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=IbB(this.refresh.bind(this))},Z8L=function(K,
d){var f=K.observers_;
d=f.indexOf(d);~d&&f.splice(d,1);!f.length&&K.JSC$9657_connected_&&Bjt&&K.JSC$9657_connected_&&(document.removeEventListener("transitionend",K.onTransitionEnd_),window.removeEventListener("resize",K.refresh),K.mutationsObserver_&&(K.mutationsObserver_.disconnect(),kC9&&(HTMLElement.prototype.attachShadow=kC9)),K.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",K.refresh),K.mutationsObserver_=null,K.mutationEventsAdded_=!1,K.JSC$9657_connected_=!1)};
wPL.prototype.refresh=function(){emN(this)&&this.refresh()};
var emN=function(K){K=K.observers_.filter(function(d){return pPv(d),d.activeObservations_.length>0});
K.forEach(function(d){return Kef(d)});
return K.length>0},ddN=function(K){if(Bjt&&!K.JSC$9657_connected_){document.addEventListener("transitionend",K.onTransitionEnd_);
window.addEventListener("resize",K.refresh);if(snf){K.mutationsObserver_=new MutationObserver(K.refresh);var d={attributes:!0,childList:!0,characterData:!0,subtree:!0};K.mutationsObserver_.observe(document,d);kC9&&(function D(H){var S=H.shadowRoot;S&&(K.mutationsObserver_.observe(S,d),D(S));for(H=H.firstElementChild;H;)D(H),H=H.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var H=kC9.apply(this,_.Pg.apply(0,arguments));
K.mutationsObserver_.observe(H,d);return H})}else document.addEventListener("DOMSubtreeModified",K.refresh),K.mutationEventsAdded_=!0;
K.JSC$9657_connected_=!0}};
wPL.prototype.onTransitionEnd_=function(K){var d=K.propertyName===void 0?"":K.propertyName;JM8.some(function(f){return!!~d.indexOf(f)})&&this.refresh()};
var fFs=null;var HZH=function(K,d){for(var f=_.y(Object.keys(d)),H=f.next();!H.done;H=f.next())H=H.value,Object.defineProperty(K,H,{value:d[H],enumerable:!1,writable:!1,configurable:!0})};var OK=function(K){var d;return(K==null?void 0:(d=K.ownerDocument)==null?void 0:d.defaultView)||globalThis};var DdN={x:0,y:0,width:0,height:0},VVH=typeof SVGGraphicsElement!=="undefined"?function(K){return K instanceof OK(K).SVGGraphicsElement}:function(K){return K instanceof OK(K).SVGElement&&typeof K.getBBox==="function"};var SPB=function(K){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=K};
SPB.prototype.isActive=function(){var K=this.target;if(Bjt)if(VVH(K)){var d=K.getBBox();d={x:0,y:0,width:d.width,height:d.height}}else{var f=K.clientWidth,H=K.clientHeight;if(f||H){var D=OK(K).getComputedStyle(K);d=n1(D["padding-top"]);var S=n1(D["padding-left"]),n=S+n1(D["padding-right"]),u=d+n1(D["padding-bottom"]),a=n1(D.width),R=n1(D.height);D.boxSizing==="border-box"&&(Math.round(a+n)!==f&&(a-=UiY(D,"left","right")+n),Math.round(R+u)!==H&&(R-=UiY(D,"top","bottom")+u));K!==OK(K).document.documentElement&&
(K=Math.round(a+n)-f,H=Math.round(R+u)-H,Math.abs(K)!==1&&(a-=K),Math.abs(H)!==1&&(R-=H));d={x:S,y:d,width:a,height:R}}else d=DdN}else d=DdN;this.contentRect_=d;return d.width!==this.broadcastWidth||d.height!==this.broadcastHeight};var yJN=function(K,d){var f=d.x;var H=d.y;var D=d.width;d=d.height;var S=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);HZH(S,{x:f,y:H,width:D,height:d,top:H,right:f+D,bottom:d+H,left:f});HZH(this,{target:K,contentRect:S})};var nA9=function(K,d){var f=fFs;this.activeObservations_=[];this.observations_=new Map;if(typeof K!=="function")throw new TypeError("Oe");this.callback_=K;this.controller_=f;this.callbackCtx_=d};
nA9.prototype.observe=function(K){if(K===void 0)throw new TypeError("Pe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(K instanceof OK(K).Element))throw new TypeError("Qe");var d=this.observations_;d.has(K)||(d.set(K,new SPB(K)),K=this.controller_,~K.observers_.indexOf(this)||K.observers_.push(this),K.JSC$9657_connected_||ddN(K),this.controller_.refresh())}};
nA9.prototype.unobserve=function(K){if(K===void 0)throw new TypeError("Pe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(K instanceof OK(K).Element))throw new TypeError("Qe");var d=this.observations_;d.has(K)&&(d.delete(K),d.size||Z8L(this.controller_,this))}};
nA9.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();Z8L(this.controller_,this)};
var pPv=function(K){K.activeObservations_.splice(0);K.observations_.forEach(function(d){d.isActive()&&K.activeObservations_.push(d)})},Kef=function(K){if(K.activeObservations_.length>0){var d=K.callbackCtx_,f=K.activeObservations_.map(function(H){var D=H.target,S=H.contentRect_;
H.broadcastWidth=S.width;H.broadcastHeight=S.height;return new yJN(D,S)});
K.callback_.call(d,f,d);K.activeObservations_.splice(0)}};var Y5=function(K){if(!(this instanceof Y5))throw new TypeError("Re");if(!arguments.length)throw new TypeError("Pe");fFs||(fFs=new wPL);this.observer_=new nA9(K,this)};
Y5.prototype.observe=function(K){this.observer_.observe(K)};
Y5.prototype.unobserve=function(K){this.observer_.unobserve(K)};
Y5.prototype.disconnect=function(){this.observer_.disconnect()};var wM5=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Y5;var g2O="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(" "),P1o={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},MRB=null,RHN=null;var OOB={},NcG=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 bOX={text:1},o2O={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var iZ9=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,cJ4={CONSTANT:{isUnwrappable:function(K){return K instanceof mh},
unwrap:Inf},JAVASCRIPT:{isUnwrappable:function(K){return K instanceof _.mc},
unwrap:Wg},HTML:{isUnwrappable:function(K){return K instanceof YG},
unwrap:function(K){return oo(K)}},
RESOURCE_URL:{isUnwrappable:function(K){return K instanceof Se},
unwrap:_.nM},STRING:{isUnwrappable:function(K){return K instanceof Object},
unwrap:function(K){return String(K)}},
STYLE:{isUnwrappable:function(K){return typeof K==="string"},
unwrap:function(K){return K}},
URL:{isUnwrappable:function(K){return ao(K)},
unwrap:_.Io}},uqJ={CONSTANT:min,JAVASCRIPT:min,HTML:function(K){K=K instanceof YG?K:ta(String(K).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return oo(K)},
RESOURCE_URL:min,STRING:String,STYLE:min,URL:function(K,d){K=iZ9.test(K)?K:void 0;return K===void 0?d:K}};var xiG=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,lb5=/[\t\n\f\r ]+/,G9Y=/[\t\n\f\r ,]+/g,TcN=function(K,d,f){return f},aw={},aFk=function(){var K=function(){var H={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",H):H}(),d=K.createHTML(""),f=K.createScript("");
K=K.createScriptURL("");return{INNOCUOUS_STRING:d,INNOCUOUS_SCRIPT:f,INNOCUOUS_URL:K}}(),uw=aFk.INNOCUOUS_STRING,C1u=aFk.INNOCUOUS_SCRIPT,j2u=aFk.INNOCUOUS_URL;var IFs=function(K){var d=LQz(K);return function(f,H,D,S){return S?d(S,H,D,f):uw}}({reportHandler:function(K,d){if(K)try{throw Error(d);
}catch(f){_.$7(f)}},
safeTypesBridge:function(K,d,f){var H=cJ4[d];return H.isUnwrappable(K)&&(H=H.unwrap(K,f),H!==f)?H:(0,uqJ[d])(String(K),f)},
allowedIdentifierPrefixes:[""]});if(I4!==void 0)throw Error("Se");I4=IFs;if(I4!==IFs)throw Error("Te");Iw("Injectable",[]);var zPp=Iw("Inject",[["token",void 0]]),vWn=Iw("Optional",[]);Iw("Injectable",[]);var MOJ=Iw("Self",[]),PRS=Iw("SkipSelf",[]);Iw("Host",[]);var Udf={},R2s=function(){};
R2s.prototype.resolve=function(){throw Error("Ve");};
R2s.prototype.addProvider=function(){throw Error("Ve");};var RPN=Function;var Fe9=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,z2B=function(){this._reflect=window.Reflect};
_.V=z2B.prototype;_.V.factory=function(K){return function(){return new (Function.prototype.bind.apply(K,[null].concat(_.Me(_.Pg.apply(0,arguments)))))}};
_.V._zipTypesAndAnnotations=function(K,d){var f=typeof K==="undefined"?Array(d.length):Array(K.length);for(var H=0;H<f.length;H++)f[H]=typeof K==="undefined"?[]:K[H]!=Object?[K[H]]:[],d&&JIS(d[H])&&(f[H]=f[H].concat(d[H]));return f};
_.V._ownParameters=function(K,d){if(Fe9.exec(K.toString()))return null;if(K.parameters&&K.parameters!==d.parameters)return K.parameters;var f=K.ctorParameters;return f&&f!==d.ctorParameters?(d=typeof f==="function"?f():f,K=d.map(function(H){return H&&H.type}),d=d.map(function(H){return H&&k9N(H.decorators)}),this._zipTypesAndAnnotations(K,d)):JIS(this._reflect)&&JIS(this._reflect.getOwnMetadata)&&(d=this._reflect.getOwnMetadata("parameters",K),(f=this._reflect.getOwnMetadata("design:paramtypes",K))||
d)?this._zipTypesAndAnnotations(f,d):Array(K.length).fill(void 0)};
_.V.parameters=function(K){if(!K.prototype)return[];var d=Object.getPrototypeOf(K.prototype).constructor;(K=this._ownParameters(K,d))||d===Object||(K=this.parameters(d));return K||[]};
_.V._ownAnnotations=function(K,d){if(K.annotations&&K.annotations!==d.annotations)return K=K.annotations,typeof K==="function"&&K.annotations&&(K=K.annotations),K;if(K.decorators&&K.decorators!==d.decorators)return k9N(K.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",K)};
_.V.annotations=function(K){var d=Object.getPrototypeOf(K.prototype).constructor;K=this._ownAnnotations(K,d)||[];return(d!==Object?this.annotations(d):[]).concat(K)};
_.V._ownPropMetadata=function(K,d){if(K.propMetadata&&K.propMetadata!==d.propMetadata)return K=K.propMetadata,typeof K==="function"&&K.propMetadata&&(K=K.propMetadata),K;if(K.propDecorators&&K.propDecorators!==d.propDecorators){var f=K.propDecorators,H={};Object.keys(f).forEach(function(D){H[D]=k9N(f[D])});
return H}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",K)};
_.V.propMetadata=function(K){var d=Object.getPrototypeOf(K.prototype).constructor,f={};if(d!==Object){var H=this.propMetadata(d);Object.keys(H).forEach(function(S){f[S]=H[S]})}var D=this._ownPropMetadata(K,d);
D&&Object.keys(D).forEach(function(S){var n=[];f.hasOwnProperty(S)&&n.push.apply(n,_.Me(f[S]));n.push.apply(n,_.Me(D[S]));f[S]=n});
return f};
_.V.getter=function(K){return function(d){return d[K]}};
_.V.method=function(K){return function(d,f){if(!d[K])throw Error("We`"+K);return d[K].apply(d,f)}};var XvB=function(){};var vAv=function(K){this.reflectionCapabilities=K};
_.O(vAv,XvB);_.V=vAv.prototype;_.V.factory=function(K){return this.reflectionCapabilities.factory(K)};
_.V.parameters=function(K){return this.reflectionCapabilities.parameters(K)};
_.V.annotations=function(K){return this.reflectionCapabilities.annotations(K)};
_.V.propMetadata=function(K){return this.reflectionCapabilities.propMetadata(K)};
_.V.getter=function(K){return this.reflectionCapabilities.getter(K)};
_.V.method=function(K){return this.reflectionCapabilities.method(K)};var DOJ=new vAv(new z2B);var tf=function(K,d){this.token=K;this.id=d;if(K===void 0||K===null)throw Error("af");};
_.x$.Object.defineProperties(tf.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return Rw(this.token)}}});
_.x$.Object.defineProperties(tf,{JSC$9699_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return zw.JSC$9703_numberOfKeys}}});
var MVH=function(){this._allKeys=new Map};
MVH.prototype.get=function(K){if(K instanceof tf)return K;if(this._allKeys.has(K))return this._allKeys.get(K);var d=new tf(K,tf.JSC$9699_numberOfKeys);this._allKeys.set(K,d);return d};
_.x$.Object.defineProperties(MVH.prototype,{JSC$9703_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var zw=new MVH;var gWB=function(K,d,f){this.key=K;this.optional=d;this.visibility=f},SGn=function(K){return new gWB(K,!1,null)},nWz=[],u_B=function(K,d,f){this.key=K;
this.resolvedFactories=d;this.multiProvider=f},igB=function(K,d,f,H){this.factory=K;
this.dependencies=d;this.providerClass=f;this.providerValue=H};var ob={},$5=function(K,d){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=d===void 0?null:d;K=_.y(K);for(d=K.next();!d.done;d=K.next())this.addProvider(d.value)};
_.V=$5.prototype;_.V.addProvider=function(K){this.keyIdToIndex.set(K.key.id,this.keyIds.length);this.providers.push(K);this.keyIds.push(K.key.id);this.objs.push(ob)};
_.V.resolve=function(K,d){d=d===void 0?Udf:d;return this._getByKey(zw.get(Fd(K)),null,d)};
_.V._new=function(K){if(this.constructedKeyIds[K.key.id])throw dOO(this,K.key);this.constructedKeyIds[K.key.id]=!0;return this._instantiateProvider(K)};
_.V._instantiateProvider=function(K){if(K.multiProvider){for(var d=Array(K.resolvedFactories.length),f=0;f<K.resolvedFactories.length;++f)d[f]=this._instantiate(K,K.resolvedFactories[f]);return d}return this._instantiate(K,K.resolvedFactories[0])};
_.V._instantiate=function(K,d){var f=this,H=d.factory;try{var D=d.dependencies.map(function(n){return f._getByReflectiveDependency(n)})}catch(n){throw n.addKey&&n.addKey(this,K.key),n;
}try{var S=H.apply(null,_.Me(D))}catch(n){throw fhu(this,n,K.key);}return S};
_.V._getByReflectiveDependency=function(K){return this._getByKey(K.key,K.visibility,K.optional?null:Udf)};
_.V._getByKey=function(K,d,f){return K===PzN?this:d instanceof MOJ?this._getByKeySelf(K,f):this._getByKeyDefault(K,f,d)};
_.V._getObjByKeyId=function(K){for(var d=0;d<this.keyIds.length;d++)if(this.keyIds[d]===K)return this.objs[d]===ob&&(this.objs[d]=this._new(this.providers[d])),this.objs[d];return ob};
_.V._throwOrNull=function(K,d){if(d!==Udf)return d;throw K9z(this,K);};
_.V._getByKeySelf=function(K,d){var f=this._getObjByKeyId(K.id);return f!==ob?f:this._throwOrNull(K,d)};
_.V._getByKeyDefault=function(K,d,f){for(var H=f=f instanceof PRS?this.parent:this;f instanceof $5;){var D=f._getObjByKeyId(K.id);if(D!==ob)return D;f=f.parent}D=void 0;if(f!==null)try{var S=f.resolve(K.token,d);if(S!==ob)return S}catch(n){D=n}if(!(H instanceof $5&&N9X(K.token))){if(D)throw D;return this._throwOrNull(K,d)}for(S=H;S.parent instanceof $5;)S=S.parent;S.addProvider(ahz({provide:K.token,useClass:K.token}));return S.resolve(K.token,d)};
_.V.toString=function(){return this.displayName};
_.x$.Object.defineProperties($5.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+Ogz(this,function(K){return' "'+K.key.displayName+'" '}).join(", ")+"])"}}});
var PzN=zw.get(Fd(R2s));(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,n,m){if(e==Array.prototype||e==Object.prototype)return e;e[n]=m.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 n=0;n<e.length;++n){var m=e[n];if(m&&m.Math==Math)return m}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$";$jscomp.polyfill=function(e,n,m,b){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,n,m,b):$jscomp.polyfillUnisolated(e,n,m,b))};
$jscomp.polyfillUnisolated=function(e,n){var m=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in m))return;m=m[q]}e=e[e.length-1];b=m[e];n=n(b);n!=b&&n!=null&&$jscomp.defineProperty(m,e,{configurable:!0,writable:!0,value:n})};
$jscomp.polyfillIsolated=function(e,n,m){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var v=0;v<b.length-1;v++){var t=b[v];if(!(t in e))return;e=e[t]}b=b[b.length-1];m=$jscomp.IS_SYMBOL_NATIVE&&m==="es6"?e[b]:null;n=n(m);n!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:n}):n!==m&&($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:n})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},n=Object.create(new $jscomp.global.Proxy(e,{get:function(m,b,q){return m==e&&b=="q"&&q==n}}));
return n.q===!0}catch(m){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 n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var n=function(v,t){this.$jscomp$symbol$id_=v;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})};
n.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var m="jscomp_symbol_"+e+"_",b=0,q=function(v){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new n(m+(v||"")+"_"+b++,v)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),m=0;m<n.length;m++){var b=$jscomp.global[n[m]];typeof b==="function"&&typeof b.prototype[e]!="function"&&$jscomp.defineProperty(b.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 n=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(n)return n.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,n){return Object.prototype.hasOwnProperty.call(e,n)};
$jscomp.polyfill("WeakMap",function(e){function n(){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 m(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,t)){var h=new m;$jscomp.defineProperty(f,t,{value:h})}}
function v(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof m)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(n())return e;var t="$jscomp_hidden_"+Math.random();v("freeze");v("preventExtensions");v("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,t))throw Error("WeakMap key fail: "+f);f[t][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,t)?f[t][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)?delete f[t][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function n(){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(n())return e;var m=new WeakMap,b=function(d){this[0]={};this[1]=t();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=t();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 v(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return v(this,function(d){return d.key})};
b.prototype.values=function(){return v(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"?m.has(h)?h=m.get(h):(k=""+ ++A,m.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}},v=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}})},t=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function n(){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 v=q.entries(),t=v.next();if(t.done||t.value[0]!=b||t.value[1]!=b)return!1;t=v.next();return t.done||t.value[0]==b||t.value[0].x!=4||t.value[1]!=t.value[0]?!1:v.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var m=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};
m.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
m.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
m.prototype.clear=function(){this.map_.clear();this.size=0};
m.prototype.has=function(b){return this.map_.has(b)};
m.prototype.entries=function(){return this.map_.entries()};
m.prototype.values=function(){return this.map_.values()};
m.prototype.keys=m.prototype.values;m.prototype[Symbol.iterator]=m.prototype.values;m.prototype.forEach=function(b,q){var v=this;this.map_.forEach(function(t){return b.call(q,t,t,v)})};
return m},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function n(m){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(m);var b=new Set(this);m=$jscomp.checkIsValidIterator(m.keys());for(var q=m.next();!q.done;)b.add(q.value),q=m.next();return b}
return e?e:n},"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,n){return e.size<=n.size?{smallerSetIterator:e.keys(),largerSet:n}:{smallerSetIterator:$jscomp.checkIsValidIterator(n.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 n=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;n.XRegExp=e()}})(function(){return function q(n,m,b){function v(d,f){if(!m[d]){if(!n[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(t)return t(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=m[d]={exports:{}};n[d][0].call(f.exports,function(k){var r=n[d][1][k];return v(r?r:k)},f,f.exports,q,n,m,b)}return m[d].exports}
for(var t=typeof require=="function"&&require,A=0;A<b.length;A++)v(b[A]);return v}({1:[function(n,m){m.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 v(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var t=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,t],"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 u={},B;for(B in f)f.hasOwnProperty(B)&&(r=v(f[B],k),u[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=v(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(!u.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+u[L].pattern.replace(t,function(T,U,O){if(U){if(M=u[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,u[L].names[P]?"\\k<"+u[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(n,m){m.exports=function(b){function q(v,t,A,d){return{name:v,value:t,start:A,end:d}}
b.matchRecursive=function(v,t,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),u=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;t=b(t,r);A=b(A,r);if(u){if(u.length>1)throw Error("Cannot use more than one escape character");u=b.escape(u);var E=new RegExp("(?:"+u+"[\\S\\s]|(?:(?!"+b.union([t,A],"",{conjunction:"or"}).source+")[^"+u+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){u&&(p+=(b.exec(v,E,p,"sticky")||[""])[0].length);d=b.exec(v,t,p);r=b.exec(v,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],v.slice(I,F),I,F)),f[1]&&B.push(q(f[1],v.slice(F,J),F,J)),f[2]&&B.push(q(f[2],v.slice(J,D),J,D)),f[3]&&B.push(q(f[3],v.slice(D,p),D,p))):B.push(v.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&v.length>I&&B.push(q(f[0],v.slice(I),I,v.length));
return B}}},
{}],3:[function(n,m){m.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function v(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function t(k){var r="",u=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=v(B[1]);C>u+1&&(r+="\\u"+h(f(u+1)),C>u+2&&(r+="-\\u"+h(f(C-1))));u=v(B[2]||B[1])});
u<65535&&(r+="\\u"+h(f(u+1)),u<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,u){var B=k[1]==="P"||!!k[2],C=u.indexOf("A")>-1;u=q(k[4]||k[3]);var D=A[u];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(u))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){u=q(D.inverseOf);if(!A.hasOwnProperty(u))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[u];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[u][k])||(r=A[u],u=A[u],C="",u.bmp&&!u.isBmpLast&&(C="["+u.bmp+"]"+(u.astral?"|":"")),u.astral&&(C+=u.astral),u.isBmpLast&&u.bmp&&(C+=(u.astral?"|":"")+"["+u.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[u]["b!"]||(A[u]["b!"]=t(A[u].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,u=0;u<k.length;++u){r=k[u];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(n,m){m.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(n,m){m.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(n,m){m.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(n,m){m.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(n,m){var b=n("./xregexp");n("./addons/build")(b);n("./addons/matchrecursive")(b);n("./addons/unicode-base")(b);n("./addons/unicode-blocks")(b);n("./addons/unicode-categories")(b);n("./addons/unicode-properties")(b);n("./addons/unicode-scripts")(b);m.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(n,m){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 v(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function t(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=v(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?v(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 u(a,c){var g;if(v(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=v(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 t(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=u(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=v;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:t(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]=t(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]=t(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]=t(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=t(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:"("});m.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var gAs=window.XRegExp;var OZv=-1,NlH=function(K){addEventListener("pageshow",function(d){d.persisted&&(OZv=d.timeStamp,K(d))},!0)};var tVB=function(K,d,f){var H=YPB,D,S;return function(n){if(d.value>=0&&(n||f)){var u;if((S=d.value-((u=D)!=null?u:0))||D===void 0)D=d.value,d.delta=S,n=d.value,d.rating=n>H[1]?"poor":n>H[0]?"needs-improvement":"good",K(d)}}};var oAJ=function(K){requestAnimationFrame(function(){return requestAnimationFrame(function(){return K()})})};var $d8=function(){var K=performance.getEntriesByType("navigation")[0];if(K&&K.responseStart>0&&K.responseStart<performance.now())return K};var EAf=function(){var K,d;return(d=(K=$d8())==null?void 0:K.activationStart)!=null?d:0};var h2N=function(){var K=K===void 0?-1:K;var d=$d8(),f="navigate";OZv>=0?f="back-forward-cache":d&&(document.prerendering||EAf()>0?f="prerender":document.wasDiscarded?f="restore":d.type&&(f=d.type.replace(/_/g,"-")));return{name:"LCP",value:K,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:f}};var tOu=new WeakMap;var bZs=function(K){var d=d===void 0?{}:d;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var f=new PerformanceObserver(function(H){Promise.resolve().then(function(){K(H.getEntries())})});
f.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},d));return f}}catch(H){}};var mds=function(K){var d=!1;return function(){d||(K(),d=!0)}};var EK=-1,lFv=function(K){document.visibilityState==="hidden"&&EK>-1&&(EK=K.type==="visibilitychange"?K.timeStamp:0,removeEventListener("visibilitychange",lFv,!0),removeEventListener("prerenderingchange",lFv,!0))},WeL=function(){addEventListener("visibilitychange",lFv,!0);
addEventListener("prerenderingchange",lFv,!0)},GG9=function(){if(EK<0){var K=EAf(),d,f;
EK=(f=document.prerendering?void 0:(d=globalThis.performance.getEntriesByType("visibility-state").filter(function(H){return H.name==="hidden"&&H.startTime>K})[0])==null?void 0:d.startTime)!=null?f:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
WeL();NlH(function(){setTimeout(function(){EK=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;WeL()})})}return{get firstHiddenTime(){return EK}}};var AJ6=function(K){document.prerendering?addEventListener("prerenderingchange",function(){return K()},!0):K()};var YGz=function(){};
YGz.prototype._processEntry=function(K){var d;(d=this._onBeforeProcessingEntry)==null||d.call(this,K)};var YPB=[2500,4E3],EDO=function(K){var d=d===void 0?{}:d;AJ6(function(){var f=GG9(),H=h2N(),D=oWz(d),S=function(z){d.reportAllChanges||(z=z.slice(-1));z=_.y(z);for(var v=z.next();!v.done;v=z.next())v=v.value,D._processEntry(v),v.startTime<f.firstHiddenTime&&(H.value=Math.max(v.startTime-EAf(),0),H.entries=[v],u())},n=bZs(S);
if(n){var u=tVB(K,H,d.reportAllChanges);for(var a=mds(function(){S(n.takeRecords());n.disconnect();u(!0)}),R=_.y(["keydown",
"click","visibilitychange"]),F=R.next();!F.done;F=R.next())addEventListener(F.value,function(){var z=a,v=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?z():(z=mds(z),v(z),document.addEventListener("visibilitychange",z,{once:!0}))},{capture:!0,
once:!0});NlH(function(z){H=h2N();u=tVB(K,H,d.reportAllChanges);oAJ(function(){H.value=performance.now()-z.timeStamp;u(!0)})})}})};var Tl6;var rJk;_.e=function(){return rJk!==void 0?rJk:rJk=document.createElement("template")};
document.head.appendChild(_.e().content);var qPs;_.vP({_template:function(){if(qPs!==void 0)return qPs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
var d=K.content,f=d.insertBefore;Tl6===void 0&&(Tl6=document.createElement("template"));var H=Tl6;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return qPs=K},
is:"tp-yt-app-toolbar"});var QG4;var jG4;_.hf=function(){};
_.hf=_.vP({_template:function(){if(jG4!==void 0)return jG4;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;QG4===void 0&&(QG4=document.createElement("template"));var H=QG4;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return jG4=K},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.hf.instance||(_.hf.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(K){this._text===K&&(K+="\u00a0");this._text="";this.async(function(){this._text=K},this.timeout)},
_onIronAnnounce:function(K){K.detail&&K.detail.text&&this.announce(K.detail.text)}});
_.hf.instance=null;_.hf.requestAvailability=function(){_.hf.instance||(_.hf.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.hf.instance):document.addEventListener("load",function(){document.body.appendChild(_.hf.instance)})};var Cz4;var xdH;/*

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

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 b4,ZZ2,e29;b4=Element.prototype;ZZ2=b4.matches||b4.matchesSelector||b4.mozMatchesSelector||b4.msMatchesSelector||b4.oMatchesSelector||b4.webkitMatchesSelector;e29=function(){};
_.Kd8=function(K){var d=pvs,f=[];return d._collectTabbableNodes(K,f)?d._sortByTabIndex(f):f};
_.V=e29.prototype;_.V._normalizedTabIndex=function(K){return(ZZ2.call(K,"input, select, textarea, button, object")?ZZ2.call(K,":not([disabled])"):ZZ2.call(K,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(K=K.getAttribute("tabindex")||0,Number(K)):-1};
_.V._collectTabbableNodes=function(K,d){if(K.nodeType!==Node.ELEMENT_NODE||!this._isVisible(K))return!1;var f=this._normalizedTabIndex(K),H=f>0;f>=0&&d.push(K);if(K.localName==="content"||K.localName==="slot")f=_.Xd(K).getDistributedNodes();else{var D;f=((D=_.Xd(K).shadowRoot)!=null?D:_.Xd(K.root||K)).children}for(K=0;K<f.length;K++)H=this._collectTabbableNodes(f[K],d)||H;return H};
_.V._isVisible=function(K){var d=K.style;return d.visibility!=="hidden"&&d.display!=="none"?(d=window.getComputedStyle(K),d.visibility!=="hidden"&&d.display!=="none"):!1};
_.V._sortByTabIndex=function(K){var d=K.length;if(d<2)return K;var f=Math.ceil(d/2);d=this._sortByTabIndex(K.slice(0,f));K=this._sortByTabIndex(K.slice(f));return this._mergeSortByTabIndex(d,K)};
_.V._mergeSortByTabIndex=function(K,d){for(var f=[];K.length>0&&d.length>0;)this._hasLowerTabOrder(K[0],d[0])?f.push(d.shift()):f.push(K.shift());return f.concat(K,d)};
_.V._hasLowerTabOrder=function(K,d){K=Math.max(K.tabIndex,0);d=Math.max(d.tabIndex,0);return K===0||d===0?d>K:K>d};
var pvs=new e29;var daJ;var fWB;_.vP({_template:function(){if(fWB!==void 0)return fWB;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;daJ===void 0&&(daJ=document.createElement("template"));var H=daJ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return fWB=K},
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&&_.Xd(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Xd(this.parentNode).removeChild(this)},
_onTransitionend:function(K){K&&K.target===this&&this.complete()},
_openedChanged:function(K){K?this.prepare():(K=window.getComputedStyle(this),K.transitionDuration!=="0s"&&K.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 ml=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;N5(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)};
ml.prototype._bringOverlayAtIndexToFront=function(K){var d=this._overlays[K];if(d){var f=this._overlays.length-1,H=this._overlays[f];H&&this._shouldBeBehindOverlay(d,H)&&f--;if(!(K>=f)){H=Math.max(this._getZ(_.HK6(this)),this._minimumZ);for(this._getZ(d)<=H&&this._applyOverlayZ(d,H);K<f;)this._overlays[K]=this._overlays[K+1],K++;this._overlays[f]=d}}};
ml.prototype.addOverlay=function(K){var d=this._overlays.indexOf(K);if(d>=0)this._bringOverlayAtIndexToFront(d);else{d=this._overlays.length;var f=this._overlays[d-1],H=Math.max(this._getZ(f),this._minimumZ),D=this._getZ(K);f&&this._shouldBeBehindOverlay(K,f)&&(this._applyOverlayZ(f,H),d--,H=Math.max(this._getZ(this._overlays[d-1]),this._minimumZ));D<=H&&this._applyOverlayZ(K,H);this._overlays.splice(d,0,K)}this.trackBackdrop()};
ml.prototype.removeOverlay=function(K){K=this._overlays.indexOf(K);K!==-1&&(this._overlays.splice(K,1),this.trackBackdrop())};
_.HK6=function(K){return K._overlays[K._overlays.length-1]};
_.V=ml.prototype;_.V.trackBackdrop=function(){var K=this._overlayWithBackdrop();if(K||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(K)-1,this.backdropElement.opened=!!K,this.backdropElement.prepare()};
_.V._overlayWithBackdrop=function(){for(var K=this._overlays.length-1;K>=0;K--)if(this._overlays[K].withBackdrop)return this._overlays[K]};
_.V._getZ=function(K){var d=this._minimumZ;if(K){var f,H,D=Number(((f=K.hostElement)!=null?f:K).style.zIndex||window.getComputedStyle((H=K.hostElement)!=null?H:K).zIndex);D===D&&(d=D)}return d};
_.V._setZ=function(K,d){var f;((f=K.hostElement)!=null?f:K).style.zIndex=d};
_.V._applyOverlayZ=function(K,d){this._setZ(K,d+2)};
_.V._overlayInPath=function(K){K=K||[];for(var d=0;d<K.length;d++){var f=void 0;if(((f=K[d].polymerController)!=null?f:K[d])._manager===this)return K[d]}};
_.V._onCaptureClick=function(K){var d=this._overlays.length-1;if(d!==-1)for(var f=_.Xd(K).path,H,D;(H=this._overlays[d])&&this._overlayInPath(f)!==((D=H.hostElement)!=null?D:H);)if(H._onCaptureClick(K),H.allowClickThrough)d--;else break};
_.V._onCaptureFocus=function(K){var d=_.HK6(this);d&&d._onCaptureFocus(K)};
_.V._onCaptureKeyDown=function(K){var d=_.HK6(this);d&&(_.u4.keyboardEventMatchesKeys(K,"esc")?d._onCaptureEsc(K):_.u4.keyboardEventMatchesKeys(K,"tab")&&d._onCaptureTab(K))};
_.V._shouldBeBehindOverlay=function(K,d){return!K.alwaysOnTop&&d.alwaysOnTop&&!d.contains(K)};
_.x$.Object.defineProperties(ml.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 K=document.activeElement;K&&K instanceof Element!==!1||(K=document.body);for(;K.root&&_.Xd(K.root).activeElement;)K=_.Xd(K.root).activeElement;return K}}});
_.l4=new ml;var $Ou=0,EWu=0,hPO=null,bgJ=[],v0=["wheel","mousewheel","DOMMouseScroll"],mOB;_.M("web_no_lock_on_touchstart_killswitch")&&(v0.push("touchstart"),v0.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;_.W3={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:_.l4},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var K;return this._focusedChild||_.Xd((K=this.hostElement)!=null?K:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var K;return _.Kd8((K=this.hostElement)!=null?K: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 K;this._observer=_.Xd((K=this.hostElement)!=null?K:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var K;_.Xd((K=this.hostElement)!=null?K:this).unobserveNodes(this._observer)}this._observer=null;for(var d in this.__rafs)this.__rafs[d]!==null&&cancelAnimationFrame(this.__rafs[d]);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(K){this.fire("iron-overlay-canceled",K,{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 K;((K=this.hostElement)!=null?K:this).style.outline="none";var d;((d=this.hostElement)!=null?d:this).style.display="none"}},
_openedChanged:function(K){if(K){var d;((d=this.hostElement)!=null?d:this).removeAttribute("aria-hidden")}else{var f;((f=this.hostElement)!=null?f: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 K;if(this.withBackdrop&&!((K=this.hostElement)!=null?K:this).hasAttribute("tabindex")){var d;((d=this.hostElement)!=null?d:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var f;((f=this.hostElement)!=null?f: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 K;((K=this.hostElement)!=null?K:this).style.display="none";var d;((d=this.hostElement)!=null?d:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var K,d;((K=this.hostElement)!=null?K:this).style.transition=((d=this.hostElement)!=null?d:this).style.webkitTransition="none";var f,H;((f=this.hostElement)!=null?f:this).style.transform=((H=this.hostElement)!=null?H:this).style.webkitTransform="none";var D;((D=this.hostElement)!=null?D:this).style.display=""},
_finishPositioning:function(){var K;((K=this.hostElement)!=null?K:this).style.display="none";this.scrollTop=this.scrollTop;var d,f;((d=this.hostElement)!=null?d:this).style.transition=((f=this.hostElement)!=null?f:this).style.webkitTransition="";var H,D;((H=this.hostElement)!=null?H:this).style.transform=((D=this.hostElement)!=null?D:this).style.webkitTransform="";var S;((S=this.hostElement)!=null?S:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var K=this._manager.deepActiveElement,d;if(!(d=K===document.body))a:{for(;K;K=K.assignedSlot||K.parentNode||K.host)if(K===this){d=!0;break a}d=!1}d&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(K){this.noCancelOnOutsideClick||this.cancel(K)},
_onCaptureFocus:function(K){if(this.withBackdrop){var d=_.Xd(K).path;d.indexOf(this)===-1?(K.stopPropagation(),this._applyFocus()):this._focusedChild=d[0]}},
_onCaptureEsc:function(K){this.noCancelOnEscKey||this.cancel(K)},
_onCaptureTab:function(K){if(this.withBackdrop){this.__ensureFirstLastFocusables();var d=K.shiftKey,f=d?this.__firstFocusableNode:this.__lastFocusableNode;d=d?this.__lastFocusableNode:this.__firstFocusableNode;if(f===d)f=!0;else{var H=this._manager.deepActiveElement;f=H===f||H===this}f&&(K.preventDefault(),this._focusedChild=d,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 K=this._focusableNodes;this.__firstFocusableNode=K[0];this.__lastFocusableNode=K[K.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(K,d){var f=this.__rafs;f[K]!==null&&cancelAnimationFrame(f[K]);f[K]=requestAnimationFrame(function(){f[K]=null;d.call(this)}.bind(this))},
__updateScrollObservers:function(K,d,f){K&&d&&this.__isValidScrollAction(f)?(f==="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),mOB=_._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()):(K=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),K!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(K,1),mOB=_._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(hd)for(var K=this;K;)K.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&K.host&&this.__rootNodes.push(K),K=K.host||K.assignedSlot||K.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(d){d.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(K){K.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(K){return K==="lock"||K==="refit"||K==="cancel"},
__onCaptureScroll:function(K){if(!(this.__isAnimating||_.Xd(K).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(K)}},
__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)}};
_.GH=[wvH,_.Mg,_.W3];_.vP({_template:function(){if(sG6!==void 0)return sG6;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;JJL===void 0&&(JJL=document.createElement("template"));var H=JJL;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return sG6=K},
is:"tp-yt-iron-dropdown",behaviors:[_.ab,_.u4,_.GH,rML],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 K=_.Xd(this.$.content).getDistributedNodes(),d=0,f=K.length;d<f;d++)if(K[d].nodeType===Node.ELEMENT_NODE)return K[d]},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(),_.W3._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.W3._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.W3._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var K=this.containedElement,d=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),f=0;f<d.length;f++)d[f].node=K;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(K){this._readied&&(K?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var K=this.focusTarget||this.containedElement;K&&this.opened&&!this.noAutoFocus?K.focus():_.W3._applyFocus.apply(this,arguments)}});var Da2;var VC8;/*

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 S58=new _.Fu({type:"iconset"});
_.vP({_template:function(){if(VC8!==void 0)return VC8;var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Da2===void 0&&(Da2=document.createElement("template"));
var H=Da2;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return VC8=K},
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(K){K=(K||"").split(":");this._iconName=K.pop();this._iconsetName=K.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&&_.Xd(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=S58.byKey(this._iconsetName)){var K=this._iconset.applyIcon(this,this._iconName,this.theme);K&&K.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,_.Xd(this.root).appendChild(this._img)}});var yh6;var nPt;_.vP({_template:function(){if(nPt!==void 0)return nPt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
var d=K.content,f=d.insertBefore;yh6===void 0&&(yh6=document.createElement("template"));var H=yh6;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return nPt=K},
is:"tp-yt-iron-input",behaviors:[_.Xu],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(){_.hf.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Xd(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Xd(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 K=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":K=/[0-9.,e-]/}return K},_bindValueChanged:function(K,d){d&&(K===void 0?d.value=null:K!==d.value&&(this.inputElement.value=K),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:K}))},
_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(K){var d=K.keyCode==19||K.keyCode==20||K.keyCode==45||K.keyCode==46||K.keyCode==144||K.keyCode==145||K.keyCode>32&&K.keyCode<41||K.keyCode>111&&K.keyCode<124;return!(K.keyCode==8||K.keyCode==9||K.keyCode==13||K.keyCode==27)&&!(K.charCode==0&&d)},
_onKeypress:function(K){if(this.allowedPattern||this.inputElement.type==="number"){var d=this._patternRegExp;if(d&&!(K.metaKey||K.ctrlKey||K.altKey)){this._patternAlreadyChecked=!0;var f=String.fromCharCode(K.charCode);this._isPrintable(K)&&!d.test(f)&&(K.preventDefault(),this._announceInvalidCharacter("Invalid character "+f+" not entered."))}}},
_checkPatternValidity:function(){var K=this._patternRegExp;if(!K)return!0;for(var d=0;d<this.inputElement.value.length;d++)if(!K.test(this.inputElement.value[d]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var K=this.inputElement.checkValidity();K&&(this.required&&this.bindValue===""?K=!1:this.hasValidator()&&(K=_.Xu.validate.call(this,this.bindValue)));this.invalid=!K;this.fire("iron-input-validate");return K},
_announceInvalidCharacter:function(K){this.fire("iron-announce",{text:K})},
_computeValue:function(K){return K}});var iKt;var ch6;var uQH=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),aW2=uQH&&uQH[1]>=8;
_.vP({_template:function(){if(ch6!==void 0)return ch6;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;iKt===void 0&&(iKt=document.createElement("template"));var H=iKt;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return ch6=K},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[wIn,_.Mg,_.Tjf,tv6],_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 _.Xd(_.Xd(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var K=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,K-this._physicalCount)},set _virtualStart(K){K=this._clamp(K,0,this._maxVirtualStart);this.grid&&(K-=K%this._itemsPerRow);this._virtualStartVal=K},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(K){K%=this._physicalCount;K<0&&(K=this._physicalCount+K);this.grid&&(K-=K%this._itemsPerRow);this._physicalStartVal=K},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(K){this._physicalCountVal=K},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 K=this._firstVisibleIndexVal;if(K==null){var d=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
K=this._iterateItems(function(f,H){d+=this._getPhysicalSizeIncrement(f);if(d>this._scrollPosition)return this.grid?H-H%this._itemsPerRow:H;if(this.grid&&this._virtualCount-1===H)return H-H%this._itemsPerRow})||0}return K},
get lastVisibleIndex(){var K=this._lastVisibleIndexVal;if(K==null){if(this.grid)K=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var d=this._physicalTop+this._scrollOffset;this._iterateItems(function(f,H){d<this._scrollBottom&&(K=H);d+=this._getPhysicalSizeIncrement(f)})}this._lastVisibleIndexVal=K}return K},
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,_.Xq);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(K){this.style.webkitOverflowScrolling=K===this?"touch":"";this.style.overflowY=K===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Xq)},
updateViewportBoundaries:function(){var K=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(K["padding-top"],10);this._isRTL=K.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var K=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),d=K-this._scrollPosition,f=d>=0;this._scrollPosition=K;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(d)>this._physicalSize&&this._physicalSize>0?(d-=this._scrollOffset,f=Math.round(d/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=f,this._physicalStart+=f,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(K=this._getReusables(f),f?(this._physicalTop=K.physicalTop,this._virtualStart+=K.indexes.length,this._physicalStart+=K.indexes.length):(this._virtualStart=this._virtualStart-K.indexes.length,this._physicalStart=this._physicalStart-K.indexes.length),this._update(K.indexes,f?null:K.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),o4))},
_getReusables:function(K){var d=[],f=this._hiddenContentSize*this._ratio,H=this._virtualStart,D=this._virtualEnd,S=this._physicalCount,n=this._physicalTop+this._scrollOffset;var u=this._physicalBottom+this._scrollOffset;var a=this._scrollPosition,R=this._scrollBottom;if(K){var F=this._physicalStart;u=a-n}else F=this._physicalEnd,u-=R;for(;;){var z=this._getPhysicalSizeIncrement(F);u-=z;if(d.length>=S||u<=f)break;if(K){if(D+d.length+1>=this._virtualCount)break;if(n+z>=a-this._scrollOffset)break;d.push(F);
n+=z;F=(F+1)%S}else{if(H-d.length<=0)break;if(n+this._physicalSize-z<=R)break;d.push(F);n-=z;F=F===0?S-1:F-1}}return{indexes:d,physicalTop:n-this._scrollOffset}},
_update:function(K,d){if(!(K&&K.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(K);this._updateMetrics(K);if(d)for(;d.length;)K=d.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(K);this._positionItems();this._updateScrollerSize()}},
_createPool:function(K){this._ensureTemplatized();var d,f=Array(K);for(d=0;d<K;d++){var H=this.stamp(null);f[d]=H.root.querySelector("*");this._itemsParent.appendChild(H.root)}return f},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(K){K=this._clamp(this._physicalCount+K,3,this._virtualCount-this._virtualStart);K=this._convertIndexToCompleteRow(K);if(this.grid){var d=K%this._itemsPerRow;d&&K-d<=this._physicalCount&&(K+=this._itemsPerRow);K-=d}K-=this._physicalCount;d=Math.round(this._physicalCount*.5);if(!(K<0)){if(K>0){d=window.performance.now();[].push.apply(this._physicalItems,this._createPool(K));for(var f=0;f<K;f++)this._physicalSizes.push(0);this._physicalCount+=K;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=K);this._update();this._templateCost=(window.performance.now()-d)/K;d=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||d===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,d)),n$B):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,d),o4))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var K=this._getReusables(!0);this._physicalTop=K.physicalTop;this._virtualStart+=K.indexes.length;this._physicalStart+=K.indexes.length;this._update(K.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 K={__key__:!0};K[this.as]=!0;K[this.indexAs]=!0;K[this.selectedAs]=!0;K.tabIndex=!0;this._instanceProps=K;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(K,d){typeof d!=="undefined"&&(this.notifyResize(),_.fT(),K&&this._updateGridMetrics())},
_itemsChanged:function(K){if(K.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,
_.Xq);else if(K.path==="items.splices"){this._adjustVirtualIndex(K.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(K.value.indexSplices.some(function(f){return f.addedCount>0||f.removed.length>0})){var d=this._getActiveElement();
this.contains(d)&&d.blur()}K=K.value.indexSplices.some(function(f){return f.index+f.addedCount>=this._virtualStart&&f.index<=this._virtualEnd},this);
this._isClientFull()&&!K||this._debounce("_render",this._render,_.Xq)}else K.path!=="items.length"&&this._forwardItemPath(K.path,K.value)},
_forwardItemPath:function(K,d){K=K.slice(6);var f=K.indexOf(".");f===-1&&(f=K.length);var H,D=this.modelForElement(this._offscreenFocusedItem),S=parseInt(K.substring(0,f),10);if(H=this._isIndexRendered(S)){var n=this._getPhysicalIndex(S);var u=this.modelForElement(this._physicalItems[n])}else D&&(u=D);u&&u[this.indexAs]===S&&(K=K.substring(f+1),K=this.as+(K?"."+K:""),u._setPendingPropertyOrPath(K,d,!1,!0),u._flushProperties&&u._flushProperties(),H&&(this._updateMetrics([n]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(K){K.forEach(function(d){d.removed.forEach(this._removeItem,this);d.index<this._virtualStart&&(d=Math.max(d.addedCount-d.removed.length,d.index-this._virtualStart),this._virtualStart+=d,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=d))},this)},
_removeItem:function(K){this.$.selector.deselect(K);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===K&&this._removeFocusedItem()},
_iterateItems:function(K,d){var f,H;if(arguments.length===2&&d)for(H=0;H<d.length;H++){var D=d[H];var S=this._computeVidx(D);if((f=K.call(this,D,S))!=null)return f}else{D=this._physicalStart;for(S=this._virtualStart;D<this._physicalCount;D++,S++)if((f=K.call(this,D,S))!=null)return f;for(D=0;D<this._physicalStart;D++,S++)if((f=K.call(this,D,S))!=null)return f}},
_computeVidx:function(K){return K>=this._physicalStart?this._virtualStart+(K-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+K},
_assignModels:function(K){this._iterateItems(function(d,f){var H=this._physicalItems[d],D=this.items&&this.items[f];if(D!=null){var S=this.modelForElement(H);S.__key__=null;this._forwardProperty(S,this.as,D);this._forwardProperty(S,this.selectedAs,this.$.selector.isSelected(D));this._forwardProperty(S,this.indexAs,f);this._forwardProperty(S,"tabIndex",this._focusedVirtualIndex===f?0:-1);this._physicalIndexForKey[S.__key__]=d;S._flushProperties&&S._flushProperties(!0);H.removeAttribute("hidden")}else H.setAttribute("hidden",
"")},K)},
_updateMetrics:function(K){_.fT();var d=0,f=0,H=this._physicalAverageCount,D=this._physicalAverage;this._iterateItems(function(S){f+=this._physicalSizes[S];this._physicalSizes[S]=this._physicalItems[S].offsetHeight;d+=this._physicalSizes[S];this._physicalAverageCount+=this._physicalSizes[S]?1:0},K);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(f=this._itemsPerRow===1?f:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+d-f,this._itemsPerRow=1);this._physicalAverageCount!==H&&(this._physicalAverage=Math.round((D*H+d)/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 K=this._physicalTop;if(this.grid){var d=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(f,H){var D=Math.floor(H%this._itemsPerRow*this._itemWidth+d);this._isRTL&&(D*=-1);this.translate3d(D+"px",K+"px",0,this._physicalItems[f]);this._shouldRenderNextRow(H)&&(K+=this._rowHeight)})}else this._iterateItems(function(f){this.translate3d(0,K+"px",0,this._physicalItems[f]);
K+=this._physicalSizes[f]})},
_getPhysicalSizeIncrement:function(K){return this.grid?this._computeVidx(K)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[K]},
_shouldRenderNextRow:function(K){return K%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var K=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(K!==0){this._physicalTop=this._physicalTop-K;var d=this._scrollPosition;!aW2&&d>0&&this._resetScrollPosition(d-K)}},
_resetScrollPosition:function(K){this.scrollTarget&&K>=0&&(this._scrollPosition=this._scrollTop=K)},
_updateScrollerSize:function(K){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((K=(K=(K=K||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(K){return this.scrollToIndex(this.items.indexOf(K))},
scrollToIndex:function(K){if(!(typeof K!=="number"||K<0||K>this.items.length-1)&&(_.fT(),this._physicalCount!==0)){K=this._clamp(K,0,this._virtualCount-1);if(!this._isIndexRendered(K)||K>=this._maxVirtualStart)this._virtualStart=this.grid?K-this._itemsPerRow*2:K-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var d=this._physicalStart,f=this._virtualStart,H=0,D=this._hiddenContentSize;f<K&&
H<=D;)H+=this._getPhysicalSizeIncrement(d),d=(d+1)%this._physicalCount,f++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+H);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)},_.Xq)},
selectItem:function(K){return this.selectIndex(this.items.indexOf(K))},
selectIndex:function(K){if(!(K<0||K>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(K)){var d=this.modelForElement(this._physicalItems[this._getPhysicalIndex(K)]);d&&(d[this.selectedAs]=!0);this.updateSizeForIndex(K)}this.$.selector.selectIndex(K)}},
deselectItem:function(K){return this.deselectIndex(this.items.indexOf(K))},
deselectIndex:function(K){K<0||K>=this._virtualCount||(this._isIndexRendered(K)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(K)])[this.selectedAs]=!1,this.updateSizeForIndex(K)),this.$.selector.deselectIndex(K))},
toggleSelectionForItem:function(K){return this.toggleSelectionForIndex(this.items.indexOf(K))},
toggleSelectionForIndex:function(K){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(K):this.$.selector.isSelected(this.items[K]))?this.deselectIndex(K):this.selectIndex(K)},
clearSelection:function(){this._iterateItems(function(K){this.modelForElement(this._physicalItems[K])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(K){(K?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(K){var d=this.modelForElement(K.target);if(d){var f=_.Xd(K).path[0];K=this._getActiveElement();var H=this._physicalItems[this._getPhysicalIndex(d[this.indexAs])];if(f.localName!=="input"&&f.localName!=="button"&&f.localName!=="select"){f=d.tabIndex;d.tabIndex=-100;var D=K?K.tabIndex:-1;d.tabIndex=f;K&&H!==K&&H.contains(K)&&D!==-100||this.toggleSelectionForItem(d[this.as])}}},
_multiSelectionChanged:function(K){this.clearSelection();this.$.selector.multi=K},
updateSizeForItem:function(K){return this.updateSizeForIndex(this.items.indexOf(K))},
updateSizeForIndex:function(K){if(!this._isIndexRendered(K))return null;this._updateMetrics([this._getPhysicalIndex(K)]);this._positionItems();return null},
_manageFocus:function(){var K=this._focusedVirtualIndex;K>=0&&K<this._virtualCount?this._isIndexRendered(K)?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(K){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(K/this._itemsPerRow)*this._itemsPerRow:K},
_isIndexRendered:function(K){return K>=this._virtualStart&&K<=this._virtualEnd},
_isIndexVisible:function(K){return K>=this.firstVisibleIndex&&K<=this.lastVisibleIndex},
_getPhysicalIndex:function(K){return(this._physicalStart+(K-this._virtualStart))%this._physicalCount},
focusItem:function(K){this._focusPhysicalItem(K)},
_focusPhysicalItem:function(K){if(!(K<0||K>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(K)||this.scrollToIndex(K);var d=this._physicalItems[this._getPhysicalIndex(K)],f=this.modelForElement(d),H;f.tabIndex=-100;d.tabIndex===-100&&(H=d);H||(H=_.Xd(d).querySelector('[tabindex="-100"]'));f.tabIndex=0;this._focusedVirtualIndex=K;H&&H.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 K=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var d=this.stamp(null);this._focusBackfillItem=d.root.querySelector("*");this._itemsParent.appendChild(d.root)}this._offscreenFocusedItem=this._physicalItems[K];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[K]=this._focusBackfillItem;this._focusedPhysicalIndex=K;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var K=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),d=this._physicalItems[K];if(d){var f=this.modelForElement(d),H=this.modelForElement(this._offscreenFocusedItem);f[this.as]===H[this.as]?(this._focusBackfillItem=d,f.tabIndex=-1,this._physicalItems[K]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(K){K=this.modelForElement(K.target);var d=this.modelForElement(this._focusedItem),f=this._offscreenFocusedItem!==null,H=this._focusedVirtualIndex;K&&(d===K?this._isIndexVisible(H)||this.scrollToIndex(H):(this._restoreFocusedItem(),d&&(d.tabIndex=-1),K.tabIndex=0,this._focusedVirtualIndex=H=K[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(H),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],f&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(K){switch(K.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&K.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&&K.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(K)}},
_clamp:function(K,d,f){return Math.min(f,Math.max(d,K))},
_debounce:function(K,d,f){this._debouncers=this._debouncers||{};this._debouncers[K]=_.ZT(this._debouncers[K],f,d.bind(this));_.e$(this._debouncers[K])},
_forwardProperty:function(K,d,f){K._setPendingProperty(d,f)},
_forwardHostPropV2:function(K,d){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(f){f&&this.modelForElement(f).forwardHostProp(K,d)},this)},
_notifyInstancePropV2:function(K,d,f){q5n(this.as,d)&&(K=K[this.indexAs],d==this.as&&(this.items[K]=f),this.notifyPath(yQ(this.as,"items."+K,d),f))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(K,d,f){d.indexOf(this.as+".")===0&&this.notifyPath("items."+K.__key__+"."+d.slice(this.as.length+1),f)},
_forwardParentPath:function(K,d){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(f){f&&this.modelForElement(f).notifyPath(K,d)},this)},
_forwardParentProp:function(K,d){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(f){f&&(this.modelForElement(f)[K]=d)},this)},
_getActiveElement:function(){var K=this._itemsParent.node.domHost;return _.Xd(K?K.root:document).activeElement},
_scrollTargetChanged:function(K,d){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(d)if(K==="document")this.scrollTarget=this._doc;else if(typeof K==="string"){var f,H;this.scrollTarget=(d=(H=(f=this.domHost)==null?void 0:f.polymerController)!=null?H:this.domHost)&&d.$?d.$[K]:_.Xd(this.ownerDocument).querySelector("#"+K)}else this._isValidScrollTarget()&&(this._oldScrollTarget=K,this._toggleScrollListener(this._shouldHaveListener,K))}});var IWL;var UaH;var RoN=function(K,d,f,H){K-=f;d-=H;return Math.sqrt(K*K+d*d)},Fd4=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
lhz.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var W9u=function(K){K.maxRadius=0;K.mouseDownStart=0;K.mouseUpStart=0;K.xStart=0;K.yStart=0;K.xEnd=0;K.yEnd=0;K.containerMetrics=new lhz(K.element)};
GlB.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var K=Fd4()-this.mouseDownStart;this.mouseUpStart&&(K-=this.mouseUpElapsed);return K},get mouseUpElapsed(){return this.mouseUpStart?Fd4()-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 K=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(K*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-K/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var K=this.radius/(this.containerMetrics.size/2);var d=this.xNow-this.containerMetrics.width/2;var f=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+d+"px, "+f+"px)";this.waveContainer.style.transform="translate3d("+d+"px, "+f+"px, 0)";this.wave.style.webkitTransform="scale("+K+","+K+")";this.wave.style.transform="scale3d("+K+","+K+",1)"},
downAction:function(K){var d=this.containerMetrics.width/2,f=this.containerMetrics.height/2;W9u(this);this.mouseDownStart=Fd4();this.center?(this.xStart=d,this.yStart=f):(this.xStart=K?K.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=K?K.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=d,this.yEnd=f);K=this.containerMetrics;d=this.xStart;f=this.yStart;this.maxRadius=Math.max(RoN(d,f,0,0),RoN(d,f,
K.width,0),RoN(d,f,0,K.height),RoN(d,f,K.width,K.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=Fd4())},
remove:function(){_.Xd(_.Xd(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.vP({_template:function(){if(UaH!==void 0)return UaH;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;IWL===void 0&&(IWL=document.createElement("template"));var H=IWL;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return UaH=K},
is:"tp-yt-paper-ripple",behaviors:[_.u4],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(){_.Xd(this).parentNode.nodeType==11?this.keyEventTarget=_.Xd(this).getOwnerRoot().host:this.keyEventTarget=_.Xd(this).parentNode;var K=this.keyEventTarget;this.listen(K,"up","uiUpAction");this.listen(K,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(K){K.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var K=0;K<this.ripples.length;++K)if(!this.ripples[K].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(K){this.noink||this.downAction(K)},
downAction:function(K){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(K),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(K){this.noink||this.upAction(K)},
upAction:function(K){this.holdDown||(this.ripples.forEach(function(d){d.upAction(K)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var K=0;K<this.ripples.length;++K){var d=this.ripples[K];d.isOpacityFullyDecayed&&!d.isRestingAtMaxRadius&&this.removeRipple(d)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var K=new GlB(this);_.Xd(this.$.waves).appendChild(K.waveContainer);this.$.background.style.backgroundColor=K.color;this.ripples.push(K);this._setAnimating(!0);return K},
removeRipple:function(K){var d=this.ripples.indexOf(K);d<0||(this.ripples.splice(d,1),K.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var K;for(K=0;K<this.ripples.length;++K){var d=this.ripples[K];d.draw();this.$.background.style.opacity=d.outerOpacity;d.isOpacityFullyDecayed&&!d.isRestingAtMaxRadius&&this.removeRipple(d)}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(K,d){d!==void 0&&(K?this.downAction():this.upAction())}});var Af={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(K){Ib._downHandler.call(this,K);this.pressed&&this.ensureRipple(K)},
ensureRipple:function(K){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var d=this._rippleContainer||this.root;d&&_.Xd(d).appendChild(this._ripple);if(K){d=_.Xd(this._rippleContainer||this);var f=_.Xd(K).rootTarget;d.deepContains(f)&&this._ripple.uiDownAction(K)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(K){this.hasRipple()&&(this._ripple.noink=K)}};var zot={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 K=1;this.disabled?K=0:this.active||this.pressed?K=4:this.receivedFocusFromKeyboard&&(K=3);this._setElevation(K)},
_computeKeyboardClass:function(K){this.toggleClass("keyboard-focus",K)},
_spaceKeyDownHandler:function(K){Ib._spaceKeyDownHandler.call(this,K);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(K){Ib._spaceKeyUpHandler.call(this,K);this.hasRipple()&&this._ripple.uiUpAction()}},XpH=[tPt,
_.ab,Af,zot];_.vPv={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(K){K&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=K)},
_createRipple:function(){var K=Af._createRipple();K.id="ink";K.setAttribute("center","");K.classList.add("circle");return K}};
_.MCk=[tPt,_.ab,Af,_.vPv];_.Phv=[_.MCk,EpB,{_checkedChanged:function(){$7s._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){Af._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var gP9;var OKJ;var NHf=function(){};
_.V=NHf.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._buttonStateChanged=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._createRipple=function(){};
_.V._noinkChanged=function(){};
_.V._computeKeyboardClass=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
_.V._setElevation=function(){};
NHf=_.vP({_template:function(){if(OKJ!==void 0)return OKJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
var d=K.content,f=d.insertBefore;gP9===void 0&&(gP9=document.createElement("template"));var H=gP9;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return OKJ=K},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[XpH],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?zot._calculateElevation.apply(this):this._setElevation(0)}});var Y54;var tCH;var oPv={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(K){_.M("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(K)},
_onDialogClickWrapped:function(K){_.M("dialog_behavior_no_tap_killswitch")||this._onDialogClick(K)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(K,d){d&&(K?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(K){this.closingReason=this.closingReason||{};this.closingReason.confirmed=K},
_onDialogClick:function(K){for(var d=_.Xd(K).path,f=0,H,D=d.indexOf((H=this.hostElement)!=null?H:this);f<D;f++)if(H=d[f],H.hasAttribute&&(H.hasAttribute("dialog-dismiss")||H.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(H.hasAttribute("dialog-confirm"));this.close();K.stopPropagation();break}}},$a2=[_.GH,
oPv];var EPf=document.createElement("template");_.Y(EPf,'<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(EPf.content);var hok=document.createElement("template");_.Y(hok,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(hok.content);_.vP({_template:function(){if(tCH!==void 0)return tCH;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
var d=K.content,f=d.insertBefore;Y54===void 0&&(Y54=document.createElement("template"));var H=Y54;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return tCH=K},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[$a2,rML],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 bK4;var mat;_.vP({_template:function(){if(mat!==void 0)return mat;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;bK4===void 0&&(bK4=document.createElement("template"));var H=bK4;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return mat=K},
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 K,d,f;if(((K=window.ShadyDOM)==null?void 0:K.noPatch)!==!0&&((d=window.ShadyDOM)==null?void 0:d.noPatch)!=="on-demand"||((f=this.__shady_parentNode)==null?void 0:f.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(oPv)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var lWJ=_.Am(['<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>']),Wd6=_.b3B(lWJ);Wd6.setAttribute("style","display: none;");document.head.appendChild(Wd6.content);var GzH;var Ahv;var THL;var rhB;_.vP({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[P3],configure:function(K){var d=K.node,f=d.getBoundingClientRect().height;return this._effect=new KeyframeEffect(d,[{height:f/2+"px"},{height:f+"px"}],this.timingFromConfig(K))}});
_.vP({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[P3],configure:function(K){var d=K.node,f=d.getBoundingClientRect().width;return this._effect=new KeyframeEffect(d,[{width:f/2+"px"},{width:f+"px"}],this.timingFromConfig(K))}});
_.vP({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[P3],configure:function(K){var d=K.node,f=d.getBoundingClientRect().width;return this._effect=new KeyframeEffect(d,[{width:f+"px"},{width:f-f/20+"px"}],this.timingFromConfig(K))}});
_.vP({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[P3],configure:function(K){var d=K.node,f=d.getBoundingClientRect().height;this.setPrefixedProperty(d,"transformOrigin","0 0");return this._effect=new KeyframeEffect(d,[{height:f+"px",transform:"translateY(0)"},{height:f/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(K))}});var TH={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},q5L=function(){};
_.V=q5L.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._focusBlurHandler=function(){};
_.V._changedControlState=function(){};
_.V._setFocused=function(){};
q5L=_.vP({_template:function(){if(rhB!==void 0)return rhB;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;THL===void 0&&(THL=document.createElement("template"));var H=THL;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return rhB=K},
is:"tp-yt-paper-menu-button",behaviors:[_.u4,_.ab],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:TH.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:TH.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:TH.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 K=_.Xd(this.$.content).getDistributedNodes(),d=0,f=K.length;d<f;d++)if(K[d].nodeType===Node.ELEMENT_NODE)return K[d]},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(K,d){K?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):d!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(K){_.ab._disabledChanged.apply(this,arguments);K&&this.opened&&this.close()},
__onIronOverlayCanceled:function(K){var d=this.$.trigger;_.Xd(K.detail).path.indexOf(d)>-1&&K.preventDefault()}});
Object.keys(TH).forEach(function(K){q5L[K]=TH[K]});var QmB=_.UK.IronButtonState,jmH=(0,_.uV)(HTMLElement);
_.vP({_template:function(){if(Ahv!==void 0)return Ahv;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;GzH===void 0&&(GzH=document.createElement("template"));var H=GzH;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return Ahv=K},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[QmB,_.ab,Af,_.Rb,_.Xu],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(K){var d=(0,_.a4)(this);d.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:K});d.shadowRoot.appendChild(K);return jmH.prototype._attachDom.call(this,K)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var K=this.contentElement;K&&K.selectedItem&&this._setSelectedItem(K.selectedItem)},
get contentElement(){for(var K=_.Xd(this.$.content).getDistributedNodes(),d=0,f=K.length;d<f;d++)if(K[d].nodeType===Node.ELEMENT_NODE)return K[d]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(K){this._setSelectedItem(K.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(K){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K)===this&&this.open()},
_selectedItemChanged:function(K){var d="";K?d=K.label||K.getAttribute("label")||K.textContent.trim():d="";this.value=d;this._setSelectedItemLabel(d)},
_computeMenuVerticalOffset:function(K,d){return d?d:K?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var K=this.opened?"true":"false",d=this.contentElement;d&&d.setAttribute("aria-expanded",K)},
_computeLabelClass:function(K,d,f){var H="label";if(K)f&&(H+=" label-is-hidden");else if(f||d)H+=" label-is-floating";return H},
_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 ChL;var xa6;_.vP({is:"tp-yt-paper-icon-button",_template:function(){if(xa6!==void 0)return xa6;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;ChL===void 0&&(ChL=document.createElement("template"));var H=ChL;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return xa6=K},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.MCk],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(K,d){var f=this.getAttribute("aria-label");f&&d!=f||this.setAttribute("aria-label",K)}});var Ld9;var BHH;_.rO=[tPt,_.ab,{hostAttributes:{role:"option",tabindex:"0"}}];_.vP({_template:function(){if(BHH!==void 0)return BHH;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Ld9===void 0&&(Ld9=document.createElement("template"));var H=Ld9;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return BHH=K},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.rO]});var Jh2;var sm9;var kz6={attached:function(){this.fire("addon-attached")},
update:function(){}};var wpL=1,ZK4=1,eoL=1,ppN=[_.ab,_.u4,{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();!xS&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(K,d){K?K=K+" "+d:K=d;return K},
_onAddonAttached:function(K){K=_.Xd(K).rootTarget;if(K.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,K.id);else{var d="paper-input-add-on-"+ZK4++;K.id=d;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,d)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(K){_.ab._focusBlurHandler.call(this,K);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var K=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",K);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(K){try{var d=this.inputElement.selectionStart;this.value=K;this.inputElement.selectionStart=d;this.inputElement.selectionEnd=d}catch(f){this.value=K}},
_computeAlwaysFloatLabel:function(K,d){return d||K},
_updateAriaLabelledBy:function(){var K=_.Xd(this.root).querySelector("label");if(K){if(K.id)var d=K.id;else d="paper-input-label-"+wpL++,K.id=d;this._ariaLabelledBy=d}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+eoL++)},
_onChange:function(K){this.shadowRoot&&this.fire(K.type,{sourceEvent:K},{node:this,bubbles:K.bubbles,cancelable:K.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var K=document.activeElement;K instanceof HTMLElement&&K!==document.body&&K!==document.documentElement||this._focusableElement.focus()}}}];var KRf;var dT9;_.vP({_template:function(){if(dT9!==void 0)return dT9;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;KRf===void 0&&(KRf=document.createElement("template"));var H=KRf;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return dT9=K},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[kz6],properties:{_charCounterStr:{type:String,value:"0"}},update:function(K){if(K.inputElement){K.value=K.value||"";var d=K.value.toString().length.toString();K.inputElement.hasAttribute("maxlength")&&(d+="/"+K.inputElement.getAttribute("maxlength"));this._charCounterStr=d}}});var fSL;var Htt;_.vP({_template:function(){if(Htt!==void 0)return Htt;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;fSL===void 0&&(fSL=document.createElement("template"));var H=fSL;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return Htt=K},
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 f3(this.attrForValue)},get _inputElement(){return _.Xd(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(K){this._addons||(this._addons=[]);K=K.target;this._addons.indexOf(K)===-1&&(this._addons.push(K),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(K){this._handleValueAndAutoValidate(K.target)},
_onValueChanged:function(K){var d=K.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,d.value===void 0||d.value===""))return;this._handleValueAndAutoValidate(K.target)},
_handleValue:function(K){var d=this._inputElementValue;d||d===0||K.type==="number"&&!K.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:K,value:d,invalid:this.invalid})},
_handleValueAndAutoValidate:function(K){this.autoValidate&&K&&(this.invalid=!(K.validate?K.validate(this._inputElementValue):K.checkValidity()));this._handleValue(K)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(K){if(this._addons)for(var d,f=0;d=this._addons[f];f++)d.update(K)},
_computeInputContentClass:function(K,d,f,H,D){var S="input-content";K?(D&&(S+=" label-is-hidden"),H&&!this.noUnfloatedLabelError&&(S+=" is-invalid")):(K=this.querySelector("label"),d||D?(S+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",H?S+=" is-invalid":f&&(S+=" label-is-highlighted")):(K&&(this.$.labelAndInputContainer.style.position="relative"),H&&!this.noUnfloatedLabelError&&(S+=" is-invalid")));f&&(S+=" focused");return S},
_computeUnderlineClass:function(K,d){var f="underline";d?f+=" is-invalid":K&&(f+=" is-highlighted");return f},
_computeAddOnContentClass:function(K,d){var f="add-on-content";d?f+=" is-invalid":K&&(f+=" is-highlighted");return f}});var DT8;var Vik;_.vP({_template:function(){if(Vik!==void 0)return Vik;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;DT8===void 0&&(DT8=document.createElement("template"));var H=DT8;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return Vik=K},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[kz6],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(K){this._setInvalid(K.invalid)}});_.vP({is:"tp-yt-paper-input",_template:function(){if(sm9!==void 0)return sm9;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Jh2===void 0&&(Jh2=document.createElement("template"));var H=Jh2;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return sm9=K},
behaviors:[ppN,_.Rb],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 SkJ;var yvN;_.vP({_template:function(){if(yvN!==void 0)return yvN;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=
K.content,f=d.insertBefore;SkJ===void 0&&(SkJ=document.createElement("template"));var H=SkJ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return yvN=K},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.rO]});var nBf;var it9;_.vP({_template:function(){if(it9!==void 0)return it9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
var d=K.content,f=d.insertBefore;nBf===void 0&&(nBf=document.createElement("template"));var H=nBf;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return it9=K},
is:"tp-yt-paper-item-body"});var cvH;var uNk;var aSB=function(){};
_.V=aSB.prototype;_.V.indexOf=function(){};
_.V.selectPrevious=function(){};
_.V.selectNext=function(){};
_.V.selectIndex=function(){};
_.V.forceSynchronousItemUpdate=function(){};
_.V._checkFallback=function(){};
_.V._addListener=function(){};
_.V._removeListener=function(){};
_.V._activateEventChanged=function(){};
_.V._updateItems=function(){};
_.V._selectSelected=function(){};
_.V._filterItem=function(){};
_.V._valueToItem=function(){};
_.V._valueToIndex=function(){};
_.V._indexToValue=function(){};
_.V._valueForItem=function(){};
_.V._observeItems=function(){};
_.V._itemActivate=function(){};
_.V.multiChanged=function(){};
_.V._updateAttrForSelected=function(){};
_.V._updateSelected=function(){};
_.V._selectMulti=function(){};
_.V._selectionChange=function(){};
_.V._toggleSelected=function(){};
_.V._valuesToItems=function(){};
_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V.select=function(){};
_.V._resetTabindices=function(){};
_.V._updateMultiselectable=function(){};
_.V._focusWithKeyboardEvent=function(){};
_.V._clearSearchText=function(){};
_.V._focusPrevious=function(){};
_.V._focusNext=function(){};
_.V._applySelection=function(){};
_.V._focusedItemChanged=function(){};
_.V._onIronItemsChanged=function(){};
_.V._onShiftTabDown=function(){};
_.V._onFocus=function(){};
_.V._onUpKey=function(){};
_.V._onDownKey=function(){};
_.V._onEscKey=function(){};
_.V._onKeydown=function(){};
_.V._activateHandler=function(){};
_.V._disabledChanged=function(){};
_.V._setSelectedItem=function(){};
_.V._setItems=function(){};
_.V._setSelectedItems=function(){};
_.V._setFocusedItem=function(){};
aSB=_.vP({_template:function(){if(uNk!==void 0)return uNk;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
var d=K.content,f=d.insertBefore;cvH===void 0&&(cvH=document.createElement("template"));var H=cvH;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return uNk=K},
is:"tp-yt-paper-listbox",behaviors:[lmt],hostAttributes:{role:"listbox"}});var IS8;var UTs;var Ry6={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(K,d){return[K||d?"active":"",d?"cooldown":""].join(" ")},
__activeChanged:function(K,d){this.__setAriaHidden(!K);this.__coolingDown=!K&&d},
__altChanged:function(K){this.setAttribute("aria-label",K||"loading")},
__setAriaHidden:function(K){K?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.vP({_template:function(){if(UTs!==void 0)return UTs;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;IS8===void 0&&(IS8=document.createElement("template"));var H=IS8;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return UTs=K},
is:"tp-yt-paper-spinner",behaviors:[Ry6]});var FRs;var zyL;_.vP({_template:function(){if(zyL!==void 0)return zyL;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;FRs===void 0&&(FRs=document.createElement("template"));var H=FRs;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return zyL=K},
is:"tp-yt-paper-spinner-lite",behaviors:[Ry6]});var X9t;var vB8;_.vP({_template:function(){if(vB8!==void 0)return vB8;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;X9t===void 0&&(X9t=document.createElement("template"));var H=X9t;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return vB8=K},
is:"tp-yt-paper-tab",behaviors:[_.ab,_.UK.IronButtonState,Af],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 K=_.Xd(this).parentNode;return!!K&&!!K.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(K){if(this.link){var d=this.queryEffectiveChildren("a");d&&K.target!==d&&d.click()}}});var Mis;var PXs;var gB2=_.Am(['<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>']),Ots=_.b3B(gB2);document.head.appendChild(Ots.content);_.vP({_template:function(){if(PXs!==void 0)return PXs;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Mis===void 0&&(Mis=document.createElement("template"));var H=Mis;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return PXs=K},
is:"tp-yt-paper-tabs",behaviors:[_.Mg,_.GC8],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(K){_.Xd(this).querySelectorAll("tp-yt-paper-tab").forEach(K?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(K){K.setAttribute("noink","")},
_removeNoinkAttribute:function(K){K.removeAttribute("noink")},
_computeScrollButtonClass:function(K,d,f,H){return!d||f?"hidden":K?H?"hidden":"not-visible":""},
_computeTabsContentClass:function(K,d){var f="tabs-content";K&&(f+=" scrollable");if(!K||d)f+=" fit-container";return f},
_computeSelectionBarClass:function(K,d){var f="selection-bar";K?f+=" hidden":d&&(f+=" align-bottom");return f},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(K){return""+K},
_onIronSelect:function(K){this._tabChanged(K.detail.item,this._previousTab);this._previousTab=K.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();_.v3._activateHandler.apply(this,arguments)},
_scheduleActivation:function(K,d){this._pendingActivationItem=K;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,d)},
_delayedActivationHandler:function(){var K=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;K.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(K){K.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(K,d){this.scrollable&&this._affectScroll(d&&-d.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(K){this.$.tabsContainer.scrollLeft+=K;K=this.$.tabsContainer.scrollLeft;this._leftHidden=K===0||this.hideScrollButtons;this._rightHidden=K===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(K,d){if(K){var f=this.$.tabsContent.getBoundingClientRect(),H=f.width,D=K.getBoundingClientRect();f=D.left-f.left;this._pos={width:this._calcPercent(D.width,H),left:this._calcPercent(f,H)};if(this.noSlide||d==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var S=d.getBoundingClientRect();d=this.items.indexOf(d);K=this.items.indexOf(K);this.$.selectionBar.classList.add("expand");
K=d<K;this._isRTL&&(K=!K);K?this._positionBar(this._calcPercent(D.left+D.width-S.left,H)-5,this._left):this._positionBar(this._calcPercent(S.left+S.width-D.left,H)-5,this._calcPercent(f,H)+5);this.scrollable&&this._scrollToSelectedIfNeeded(D.width,f)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(K,d){d-=this.$.tabsContainer.scrollLeft;d<0?this.$.tabsContainer.scrollLeft+=d:(d+=K-this.$.tabsContainer.offsetWidth,d>0&&(this.$.tabsContainer.scrollLeft+=d))},
_calcPercent:function(K,d){return 100*K/d},
_positionBar:function(K,d){K=K||0;d=d||0;this._width=K;this._left=d;this.transform("translateX("+d+"%) scaleX("+K/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var K=this.$.selectionBar.classList;K.contains("expand")?(K.remove("expand"),K.add("contract"),this._positionBar(this._pos.width,this._pos.left)):K.contains("contract")&&K.remove("contract")}});var NP8;var YkN;_.vP({_template:function(){if(YkN!==void 0)return YkN;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;NP8===void 0&&(NP8=document.createElement("template"));var H=NP8;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return YkN=K},
is:"tp-yt-paper-textarea",behaviors:[ppN,_.Rb],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(K){this.$.input.textarea.selectionStart=K},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(K){this.$.input.textarea.selectionEnd=K},_ariaLabelledByChanged:function(K){this._focusableElement.setAttribute("aria-labelledby",K)},
_ariaDescribedByChanged:function(K){this._focusableElement.setAttribute("aria-describedby",K)},
get _focusableElement(){return this.inputElement.textarea}});var tiN;var oB2;/*

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 $Tk=function(){};
_.V=$Tk.prototype;_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._focusedChanged=function(){};
_.V.registered=function(){};
_.V._invalidChanged=function(){};
_.V.hasValidator=function(){};
_.V.validate=function(){};
_.V._getValidity=function(){};
_.V._requiredChanged=function(){};
_.V._valueChanged=function(){};
_.V._checkedChanged=function(){};
_.V._buttonStateChanged=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
$Tk=_.vP({is:"tp-yt-paper-toggle-button",_template:function(){if(oB2!==void 0)return oB2;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;tiN===void 0&&(tiN=document.createElement("template"));var H=tiN;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return oB2=K},
behaviors:[_.Phv],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");_.jW(this,function(){_.td(this,"pan-y")})},
_ontrack:function(K){K=K.detail;K.state==="start"?this._trackStart(K):K.state==="track"?this._trackMove(K):K.state==="end"&&this._trackEnd(K)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(K){K=K.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+K:K)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+K:K));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 K=Af._createRipple();K.id="ink";K.setAttribute("recenters","");K.classList.add("circle","toggle-ink");return K}});var EBf;var hy6;_.vP({_template:function(){if(hy6!==void 0)return hy6;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;EBf===void 0&&(EBf=document.createElement("template"));var H=EBf;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return hy6=K},
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 K=_.Xd(this).parentNode,d=_.Xd(this).getOwnerRoot(),f;this.for?f=_.Xd(d).querySelector("#"+this.for):f=K.nodeType==Node.DOCUMENT_FRAGMENT_NODE?d.host:K;return f},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(K){K==="entry"?this.show():K==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Xd(this).textContent.trim()===""){for(var K=!0,d=_.Xd(this).getEffectiveChildNodes(),f=0;f<d.length;f++)if(d[f].textContent.trim()!==""){K=!1;break}if(K)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 K=this.offset;this.marginTop!=14&&this.offset==14&&(K=this.marginTop);var d=this.offsetParent.getBoundingClientRect(),f=this._target.getBoundingClientRect(),H=this.getBoundingClientRect(),D=(f.width-H.width)/2,S=(f.height-H.height)/2,n=f.left-d.left,u=f.top-d.top;switch(this.position){case "top":var a=n+D;var R=u-H.height-K;break;case "bottom":a=n+D;R=u+f.height+K;break;case "left":a=n-H.width-K;R=u+S;break;case "right":a=n+f.width+
K,R=u+S}this.fitToVisibleBounds?(d.left+a+H.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,a)+"px",this.style.right="auto"),d.top+R+H.height>window.innerHeight?(this.style.bottom=d.height+"px",this.style.top="auto"):(this.style.top=Math.max(-d.top,R)+"px",this.style.bottom="auto")):(this.style.left=a+"px",this.style.top=R+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(K){K!==500&&this.updateStyles({"--paper-tooltip-delay-in":K+"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(K){if(K==="entry"&&this.animationEntry!=="")return this.animationEntry;if(K==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[K]&&typeof this.animationConfig[K][0].name==="string"){if(this.animationConfig[K][0].timing&&this.animationConfig[K][0].timing.delay&&this.animationConfig[K][0].timing.delay!==0){var d=this.animationConfig[K][0].timing.delay;K==="entry"?this.updateStyles({"--paper-tooltip-delay-in":d+"ms"}):K==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":d+
"ms"})}return this.animationConfig[K][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 btN=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(btN,_.Ti);var mTf=_.ew(btN,[0,_.rc]);var qg=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(qg,_.Ti);var lS6=[3,4],WR9=[5,6];var G1N=[0,lS6,WR9,_.Gks,-1,_.T9,_.A6v,-1,G_z,AkG];var Avv=_.ew(qg,G1N),TPt=_.pw(G1N);var rvH=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(rvH,_.Ti);var qk2=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(qk2,_.Ti);var QYB=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(QYB,_.Ti);var jYL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(jYL,_.Ti);var CXH=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(CXH,_.Ti);var Qn=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Qn,_.Ti);Qn.prototype.getSource=function(){return _.vY(this,1)};
Qn.prototype.getMessage=function(){return _.Xo(this,4)};
Qn.prototype.getData=function(){return _.eQ(this,CXH,8)};var xT2=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(xT2,_.Ti);var jx=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(jx,_.Ti);var Ch=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Ch,_.Ti);var x5=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(x5,_.Ti);x5.prototype.getUrl=function(){return _.Xo(this,1)};
x5.prototype.setUrl=function(K){return _.aL(this,1,K)};
x5.prototype.hasUrl=function(){return _.ql(_.Db(this,1))!=null};var LR8=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(LR8,_.Ti);var BPN=[3];var Jv4=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Jv4,_.Ti);var Lh=function(K){var d=new Jv4;return _.py(d,2,K)};
Jv4.prototype.getLanguage=function(){return PY(this,4,B3)};
var sYt=function(K){var d=Lh(1);return _.Hg(d,6,B3,K)},B3=[3,
4,5,6];var k16=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(k16,_.Ti);var Jf=function(K){var d=new k16;return _.py(d,1,K)},sK=function(K,d){return _.Hg(K,2,w9v,d)},w9v=[2,
3,4,5];var Zt4=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Zt4,_.Ti);var k5=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(k5,_.Ti);var eyv=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(eyv,_.Ti);var p99=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(p99,_.Ti);var KfB=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(KfB,_.Ti);var dj2=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(dj2,_.Ti);var flv=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(flv,_.Ti);var wO=function(K){return _.eQ(K,Ch,5)};var HY9=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(HY9,_.Ti);HY9.prototype.getValue=function(){return Fo(this,1)};var Dj8=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Dj8,_.Ti);var ZP=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(ZP,_.Ti);ZP.prototype.getMetadata=function(){return _.O3(this,KfB,7,ex)};
ZP.prototype.hasMetadata=function(){return _.SR(this,KfB,7,ex)};
var VdJ=_.fMn(ZP),ex=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var ph=function(K){this.JSC$9924_name_=K;this.files_=[];this.directories_=[];this.directoryMap_={}};
ph.prototype.getName=function(){return this.JSC$9924_name_};var dd=function(K,d){this.callback_=d;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new ph("");S8s(this,K,this.rootDirectory_);K2(this)},S8s=function(K,d,f){for(var H=0;H<d.length;H++){var D=d[H];
D.isFile?(K.fileOps_++,D.file((0,_.Om)(K.handleFileSuccess_,K,f),(0,_.Om)(K.handleFileError_,K))):K.unscannedDirectories_.push(new ybs(D,f))}},K2=function(K){if(K.unscannedDirectories_.length>0&&K.directoryOps_<5&&!K.hasError_){K.directoryOps_++;
var d=K.unscannedDirectories_.shift(),f=d.entry,H=new ph(f.name);d=d.parent;d.directoryMap_[H.getName()]=H;d.directories_.push(H);f=f.createReader();f.readEntries((0,_.Om)(K.handleDirectorySuccess_,K,f,H),(0,_.Om)(K.handleDirectoryError_,K))}K.directoryOps_!=0||K.fileOps_!=0||K.unscannedDirectories_.length!=0&&!K.hasError_||K.callback_(K.rootDirectory_.files_,K.rootDirectory_.directories_,K.hasError_)};
dd.prototype.handleDirectorySuccess_=function(K,d,f){S8s(this,f,d);f.length==0?(this.directoryOps_--,K2(this)):K.readEntries((0,_.Om)(this.handleDirectorySuccess_,this,K,d),(0,_.Om)(this.handleDirectoryError_,this))};
dd.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;K2(this)};
dd.prototype.handleFileSuccess_=function(K,d){K.files_.push(d);this.fileOps_--;K2(this)};
dd.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;K2(this)};
var ybs=function(K,d){this.entry=K;this.parent=d};var f2=function(K){_.iJ.call(this);_.zG(K,"drop",this.onObjectsDropped_,!1,this);_.zG(K,"dragenter",this.onFilesDragged_,!1,this);_.zG(K,"dragover",this.onFilesDragged_,!1,this);_.zG(K,"dragleave",this.onDragLeave_,!1,this);_.zG(K,"dragend",this.onDragLeave_,!1,this)};
_.Bd(f2,_.iJ);var n6H=function(K,d){_.D5.call(this,"f");this.files=K;this.directories=d};
_.Bd(n6H,_.D5);var iY4=function(){_.D5.call(this,"h")};
_.Bd(iY4,_.D5);var cb4=function(){_.D5.call(this,"i")};
_.Bd(cb4,_.D5);var urv=function(){_.D5.call(this,"g")};
_.Bd(urv,_.D5);f2.prototype.onObjectsDropped_=function(K){var d=this;K.preventDefault();var f=K.event_.dataTransfer;if((K=f&&f.items)&&K.length>0&&K[0].webkitGetAsEntry){f=[];for(var H=[],D=0;D<K.length;D++){var S=K[D].webkitGetAsEntry();S?f.push(S):H.push(K[D])}new dd(f,function(n,u,a){a?d.dispatchEvent(new urv("Error occurred while reading from the file system.")):d.dispatchEvent(new n6H(n,u,H))})}else(K=f&&f.files)&&this.dispatchEvent(new n6H(Array.from(K),[]))};
f2.prototype.onFilesDragged_=function(K){K.type==="dragenter"&&this.dispatchEvent(new iY4);K.preventDefault()};
f2.prototype.onDragLeave_=function(){this.dispatchEvent(new cb4)};var al9=function(K,d){this.JSC$9947_name_=K;this.inputElement_=d};
al9.prototype.getName=function(){return this.JSC$9947_name_};
al9.prototype.getInputElement=function(){return this.inputElement_};var Hr=function(K,d,f){d=d===void 0?"single_file":d;f=f===void 0?[]:f;_.iJ.call(this);this.overlayTarget_=K;this.parentOverlay_=K!=null?K.parentNode:_.RQ("scotty-overlay-parent");this.selectorType_=d;this.acceptTypes_=f;this.overlay_=Ilv(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.O(Hr,_.iJ);
var Ilv=function(K,d,f,H){var D=document.createElement("input");D.setAttribute("type","file");D.setAttribute("name","Filedata");_.zG(D,"change",K.onFilesSelected_,!1,K);f==="multiple_file"&&(D.multiple="true");f==="single_directory"&&(D.webkitdirectory="true");H.length>0&&D.setAttribute("accept",H.join(","));D.style.position="absolute";D.style.overflow="hidden";D.style.height="0px";D.style.width="0px";D.style.opacity="0";D.setAttribute("aria-hidden","true");D.setAttribute("tabIndex",-1);if(K.overlayTarget_!=
null)return D.style.height=d.offsetHeight+"px",D.style.width=d.offsetWidth+"px",K.parentOverlay_&&(K.parentOverlay_.style.position="relative"),_.MO(D,d),tB(D,new _.Nm(d.offsetLeft,d.offsetTop)),D;K.parentOverlay_.appendChild(D);return D};
Hr.prototype.click=function(){this.overlay_.click()};
Hr.prototype.onFilesSelected_=function(K){a:{try{var d=(new XMLHttpRequest).upload!==void 0;break a}catch(R){}d=!1}if(d){var f;K=Array.from((f=K.target.files)!=null?f:[]);f=[];if(this.selectorType_==="single_directory"&&(_.Zf||x_||_.w7)){f=new ph("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(d=0;d<K.length;d++)for(var H=K[d],D=H.webkitRelativePath.split("/"),S=f,n=0;n<D.length;n++){var u=D[n];if(n==D.length-1){u!="."&&S.files_.push(H);break}var a=S.directoryMap_[u];a==void 0&&(u=
a=new ph(u),S.directoryMap_[u.getName()]=u,S.directories_.push(u));S=a}f=f.directories_}this.dispatchEvent(new Ujs(K,f,null))}else K=K.target.value,K.match(/^c:\\fakepath\\/i)&&(K=K.substring(12)),this.dispatchEvent(new Ujs([],[],new al9(K,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=Ilv(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Ujs=function(K,d){_.D5.call(this,"j");this.files=K;this.directories=d};
_.O(Ujs,_.D5);var RR2=function(K){this.uploadUrl_=K};var Fff=function(){_.iJ.call(this)};
_.Bd(Fff,_.iJ);var DD=function(K){_.D5.call(this,K)};
_.Bd(DD,_.D5);var VP=function(K){_.D5.call(this,K)};
_.Bd(VP,_.D5);var zR8=function(K,d,f,H,D){_.iJ.call(this);f=document.createElement("form");f.setAttribute("method",d);f.setAttribute("enctype","multipart/form-data");f.setAttribute("encoding","multipart/form-data");d=document.createElement("input");d.setAttribute("type","hidden");d.setAttribute("name","metadata");d.setAttribute("value",D);f.appendChild(d);f.appendChild(H);this.JSC$9964_form_=f;K=new _.Q8(K);_.Cm(K,"upload_protocol","multipart");this.JSC$9964_url_=K.toString();this.JSC$9964_request_=new x1;this.state_=
"Ready";this.JSC$9964_errorDescription_=null;this.JSC$9964_eventHandler_=new _.Zt(this);_.cy(this,this.JSC$9964_eventHandler_);this.JSC$9964_eventHandler_.listen(this.JSC$9964_request_,"success",this.onTransferSuccess_);this.JSC$9964_eventHandler_.listen(this.JSC$9964_request_,"error",this.onTransferError_)};
_.O(zR8,Fff);_.V=zR8.prototype;_.V.run=function(){this.state_="Transferring";var K=this.JSC$9964_request_,d=this.JSC$9964_form_;if(K.JSC$9382_active_)throw Error("me");var f=new _.Q8(this.JSC$9964_url_||d.action);K.JSC$9382_form_=d;d=K.JSC$9382_form_;f=_.O2(f.toString());f!==void 0&&(d.action=f);Jpt(K)};
_.V.getResponseCode=function(){return null};
_.V.getResponseText=function(){return this.JSC$9964_request_&&this.JSC$9964_request_.getResponseText()||null};
_.V.JSC$25849_getErrorDescription=function(){return this.JSC$9964_errorDescription_};
_.V.cancel=function(){this.JSC$9964_request_&&this.JSC$9964_request_.abort();this.state_="Cancelled";this.dispatchEvent(new DD("o"))};
_.V.pause=function(){};
_.V.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new DD("l"))};
_.V.onTransferError_=function(){this.JSC$9964_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new DD("n"))};var SA=function(){_.zM.call(this)};
_.O(SA,_.zM);SA.prototype.createXhr=function(){var K=_.zM.prototype.createXhr.call(this);K.upload&&(K.upload.onprogress=(0,_.Om)(this.onProgress_,this));return K};
SA.prototype.onProgress_=function(K){this.dispatchEvent(K)};var X$8=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Mdv=function(K,d){var f=K.attempt_+1;
if(K.maxAttempts_>0&&f>K.maxAttempts_)return!1;f==0?d():K.delayCallId_=Uv(function(){K.delayCallId_=null;d()},v6N(K),K);
K.attempt_=f;return!0};
X$8.prototype.reset=function(){this.delayCallId_&&_.Hu.clearTimeout(this.delayCallId_);this.attempt_=-1};
var v6N=function(K){var d=250*Math.pow(2,K.attempt_);K.maxDelayMs_>=0&&(d=Math.min(d,K.maxDelayMs_));return d};var T9Y=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var yP=function(){_.iJ.call(this);this.JSC$9974_request_=this.state_=null;this.JSC$9974_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9974_bytesTransferred_=0;this.retryIterator_=new X$8;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9974_errorDescription_=null;this.JSC$9974_eventHandler_=new _.Zt(this);_.cy(this,this.JSC$9974_eventHandler_);this.JSC$9974_url_=this.blob_=null;this.JSC$9974_method_=void 0;this.chunkSize_=this.JSC$9974_metadata_=
this.JSC$9974_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9974_responseText_=this.JSC$9974_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Bd(yP,Fff);_.V=yP.prototype;_.V.run=function(){n2(this)};
_.V.getResponseCode=function(){return this.JSC$9974_responseCode_};
_.V.getResponseText=function(){return this.JSC$9974_responseText_};
_.V.JSC$25849_getErrorDescription=function(){return this.JSC$9974_errorDescription_};
_.V.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9974_eventHandler_.removeAll();this.JSC$9974_request_&&this.JSC$9974_request_.abort();this.retryIterator_.reset();var K=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(K==="Upload"||K==="Query")K=new SA,K.JSC$7805_withCredentials_=this.JSC$9974_withCredentials_,K.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9974_bytesTransferred_=
0;this.dispatchEvent(new DD("o"))}};
_.V.pause=function(){this.pauseRequested_=!0};
var n2=function(K){var d=K.state_;K.pauseRequested_?(K.pauseRequested_=!1,K.stateAfterUnpausing_=d,K.state_="Paused"):Mdv(K.retryIterator_,function(){switch(K.state_){case "Start":K.JSC$9974_request_=new SA;var f=_.PR.clone(K.JSC$9974_headers_);K.blob_.size!=null&&(f["Content-Length"]=K.blob_.size);f=rBz(f);f["X-Goog-Upload-Protocol"]="resumable";f["X-Goog-Upload-Command"]="start";K.JSC$9974_eventHandler_.removeAll();K.JSC$9974_eventHandler_.listen(K.JSC$9974_request_,"complete",K.onStartComplete_);
K.JSC$9974_request_.JSC$7805_withCredentials_=K.JSC$9974_withCredentials_;K.JSC$9974_request_.send(K.JSC$9974_url_,K.JSC$9974_method_,K.JSC$9974_metadata_,f);K.lastCommandResponseCode_=null;K.dispatchEvent(new VP("q"));break;case "Upload":f=K.transferHandle_.uploadUrl_;var H=K.blob_.size;if(mkH()){var D=K.chunkSize_;var S=K.offset_+D>=H;H=bQs(K.blob_,K.offset_,S?H:K.offset_+D)}else K.offset_=0,H=K.blob_,S=!0;K.JSC$9974_request_=new SA;K.JSC$9974_request_.JSC$7805_withCredentials_=K.JSC$9974_withCredentials_;
K.JSC$9974_eventHandler_.removeAll();K.JSC$9974_eventHandler_.listen(K.JSC$9974_request_,"progress",K.onUploadProgress_);D=(0,_.Om)(K.JSC$9976_onUploadComplete_,K,K.offset_+H.size,S);K.JSC$9974_eventHandler_.listen(K.JSC$9974_request_,"complete",D);K.lastCommandResponseCode_=null;K.dispatchEvent(new VP("q"));S=Object.assign({},K.JSC$9974_headers_||{},{"X-Goog-Upload-Command":"upload"+(S?", finalize":""),"X-Goog-Upload-Offset":K.offset_});K.JSC$9974_request_.send(f,"POST",H,S);break;case "Query":K.JSC$9974_request_=
new SA;K.JSC$9974_eventHandler_.removeAll();K.JSC$9974_eventHandler_.listen(K.JSC$9974_request_,"complete",K.onQueryComplete_);f=Object.assign({},K.JSC$9974_headers_||{},{"X-Goog-Upload-Command":"query"});K.JSC$9974_request_.send(K.transferHandle_.uploadUrl_,"POST","",f);K.lastCommandResponseCode_=null;K.dispatchEvent(new VP("q"));break;default:throw Error("bf");}})||iq(K,"Transfer encountered too many consecutive failures.")},iq=function(K,d){K.state_="Error";
K.JSC$9974_errorDescription_=d;K.dispatchEvent(new DD("n"))};
yP.prototype.onStartComplete_=function(K){var d=K.target;this.lastCommandResponseCode_=d.getStatus();this.dispatchEvent(new VP("r"));if(Pc2(d))g6t(this,d);else if(OYv(d)){K=Js(K.target.getAllResponseHeaders());for(var f in K)_.Sp(f.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new DD("m"));f=Mu(K,"X-Goog-Upload-URL");K=(K=Mu(K,"X-Goog-Upload-Chunk-Granularity"))?parseInt(K,10):1;f===void 0||isNaN(K)||K<=0?iq(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
K)*K,this.transferHandle_=new RR2(f),this.dispatchEvent(new DD("p")),this.state_="Upload",this.retryIterator_.reset(),n2(this))}else n2(this)};
yP.prototype.onUploadProgress_=function(K){this.JSC$9974_bytesTransferred_=this.offset_+K.loaded;this.dispatchEvent(new DD("k"))};
yP.prototype.JSC$9976_onUploadComplete_=function(K,d,f){var H=this,D,S;return _.c(function(n){switch(n.nextAddress){case 1:D=f.target;H.lastCommandResponseCode_=D.getStatus();H.dispatchEvent(new VP("r"));if(N3f(D)||D.getStatus()==404)return H.JSC$9974_bytesTransferred_=K,g6t(H,D),n.return();if(OYv(D)){n.jumpTo(2);break}if(!(S=H.detectCorruptedBlobEnabled_)){n.jumpTo(3);break}return _.I(n,Y88(H),4);case 4:S=n.yieldResult;case 3:if(S)return iq(H,"Blob has been modified or corrupted."),n.return();H.requireUploadRequestModification_=
D.getStatus()==400;H.state_="Query";n2(H);return n.return();case 2:if(d)return iq(H,"Got a non-final success response after issuing a finalize command."),n.return();H.JSC$9974_bytesTransferred_=K;H.offset_=K;H.retryIterator_.reset();n2(H);return n.return()}})};
yP.prototype.onQueryComplete_=function(K){var d=K.target;this.lastCommandResponseCode_=d.getStatus();this.dispatchEvent(new VP("r"));Pc2(d)?(d.getStatus()===200&&(this.JSC$9974_bytesTransferred_=this.blob_.size),g6t(this,d)):OYv(d)?(K=Js(K.target.getAllResponseHeaders()),K=parseInt(Mu(K,"X-Goog-Upload-Size-Received"),10),isNaN(K)?iq(this,"Server did not respond with current offset."):K<this.offset_?iq(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
K+"."):this.requireUploadRequestModification_&&this.offset_===K?iq(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<K&&this.retryIterator_.reset(),this.offset_=this.JSC$9974_bytesTransferred_=K,this.state_="Upload",n2(this))):n2(this)};
var g6t=function(K,d){K.JSC$9974_responseCode_=d.getStatus();var f=Js(d.getAllResponseHeaders());qGp(f);K.JSC$9974_responseText_=d.getResponseText();K.state_="Response received";K.dispatchEvent(new DD("l"))},OYv=function(K){var d=K.getStatus();
K=Js(K.getAllResponseHeaders());K=Mu(K,"X-Goog-Upload-Status");return d===200&&K==="active"},N3f=function(K){K=Js(K.getAllResponseHeaders());
return Mu(K,"X-Goog-Upload-Status")==="final"},Pc2=function(K){if(N3f(K))return!0;
K=K.getStatus();return K>=400&&K<500},Y88=function(K){var d;
return _.c(function(f){if(f.nextAddress==1){if(!K.blob_||K.originalBlobSize_<=0)return f.return(!1);if(K.blob_.size!==K.originalBlobSize_)return f.return(!0);_.HF(f,2);if(d=bQs(K.blob_,0,1)){var H=new oU,D=idJ(H);H.reader_.readAsBinaryString(d);f=_.I(f,D,4)}else f=f.return(!0);return f}if(f.nextAddress!=2)return f.return(K.blob_.size!==K.originalBlobSize_);_.n7(f);return f.return(!0)})};var tdv=function(K,d,f,H,D,S){_.iJ.call(this);this.payload_=H;this.JSC$9977_url_=K;this.JSC$9977_method_=d;this.JSC$9977_headers_=f;this.JSC$9977_metadata_=D;this.encoding_=S||"binary";K=new _.IU;this.boundary_="uploader-"+qo()+"-"+K.JSC$9231_toIsoString();this.JSC$9977_responseText_=this.JSC$9977_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9977_errorDescription_=null;this.JSC$9977_eventHandler_=new _.Zt(this);_.cy(this,this.JSC$9977_eventHandler_)};
_.O(tdv,Fff);_.V=tdv.prototype;
_.V.run=function(){var K=_.PR.clone(this.JSC$9977_headers_);this.payload_.length!=null&&(K["Content-Length"]=this.payload_.length);K=rBz(K);K["X-Goog-Upload-Protocol"]="multipart";K["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new SA;this.JSC$9977_eventHandler_.removeAll();this.JSC$9977_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9977_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9977_url_,this.JSC$9977_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9977_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",K)};
_.V.getResponseCode=function(){return this.JSC$9977_responseCode_};
_.V.getResponseText=function(){return this.JSC$9977_responseText_};
_.V.JSC$25849_getErrorDescription=function(){return this.JSC$9977_errorDescription_};
_.V.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9977_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new DD("o")))};
_.V.pause=function(){};
_.V.onTransferProgress_=function(){this.dispatchEvent(new DD("k"))};
_.V.onTransferComplete_=function(K){var d=K.target.getStatus();d===void 0||d===-1?(this.JSC$9977_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new DD("n"))):(this.JSC$9977_responseCode_=d,K=K.target,d=Js(K.getAllResponseHeaders()),qGp(d),this.JSC$9977_responseText_=K.getResponseText(),this.state_="Complete",this.dispatchEvent(new DD("l")))};_.o6s=function(K,d,f,H){H=H===void 0?!1:H;if(f instanceof al9)return new zR8(K,"POST",d,f.getInputElement(),"");if(typeof f==="string"||f instanceof String)return new tdv(K,"POST",d,f,"");var D=new yP(void 0);D.JSC$9974_url_=K;D.JSC$9974_method_="POST";D.JSC$9974_headers_=d;D.blob_=f;D.originalBlobSize_=f.size;D.JSC$9974_metadata_="";H&&(D.JSC$9974_withCredentials_=H);D.state_="Start";return D};var cr=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(cr,_.Ti);_.V=cr.prototype;_.V.getEnableSsEngine=function(){return _.R2(this,2)};
_.V.getEnableAwr=function(){return _.R2(this,3)};
_.V.getAlohaAutoGaRollout=function(){return _.R2(this,5)};
_.V.getEnableConfigurator=function(){return _.R2(this,6)};
_.V.getEnableMweb=function(){return _.R2(this,7)};
var E66=function(){var K=$j4();return _.gL(K,7,!0)};
cr.prototype.getEnableCtlConsentCheckbox=function(){return _.R2(this,8)};
cr.prototype.getEnableIframe=function(){return _.R2(this,9)};
var $j4=function(){var K=new cr;K=_.gL(K,5,!0);K=_.gL(K,2,!0);K=_.gL(K,4,!1);K=_.gL(K,8,!0);return _.gL(K,9,!0)};
cr.prototype.getEnableScreenshotNudge=function(){return _.R2(this,10)};
var hRv=function(){var K=E66();return _.gL(K,10,!0)};
cr.prototype.getEnableWebStartupConfigEndpoint=function(){return _.R2(this,11)};
cr.prototype.getEnableJunkNudge=function(){return _.R2(this,12)};
var Hxz=function(){var K=hRv();return _.gL(K,12,!0)};
_.V=cr.prototype;_.V.getEnableConfiguratorLocale=function(){return _.R2(this,13)};
_.V.getEnableTinyNoPointer=function(){return _.R2(this,14)};
_.V.getEnableSupportSessionLogging=function(){return _.R2(this,15)};
_.V.getEnableFileUploadForScreenshot=function(){return _.R2(this,16)};
_.V.getEnableDirectDeflectionForSingleCategory=function(){return _.R2(this,17)};
_.V.getEnableImageSanitization=function(){return _.R2(this,18)};
_.V.getEnableAlohaBinarySplit=function(){return _.R2(this,19)};
_.V.getEnableDbFeedbackIntents=function(){return _.R2(this,20)};
_.V.getEnableMarkMandatoryFieldsWithRequired=function(){return _.R2(this,21)};
_.V.getEnableFeedbackCategoryCustomUi=function(){return _.R2(this,22)};
_.V.getEnableRealtimeCtl=function(){return _.R2(this,23)};var f5o=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(f5o,_.Ti);var Q_n=[/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 CRN="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 xON=_.Am(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),L9o=_.Am(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var JBB,klS;var bY2,mjJ;
bY2=function(K,d,f){K.timeOfStartCall=(new Date).getTime();var H=f||_.Hu,D=H.document,S=K.nonce||_.b$(H.document);S&&!K.nonce&&(K.nonce=S);if(K.flow=="help"){var n=_.T2("document.location.href",H);!K.helpCenterContext&&n&&(K.helpCenterContext=n.substring(0,1200));n=!0;if(d&&JSON&&JSON.stringify){var u=JSON.stringify(d);(n=u.length<=1200)&&(K.psdJson=u)}n||(d={invalidPsd:!0})}d=[K,d,f];H.GOOGLE_FEEDBACK_START_ARGUMENTS=d;f=K.feedbackServerUri||"//www.google.com/tools/feedback";if(n=H.GOOGLE_FEEDBACK_START)n.apply(H,d);
else{H=f+"/load.js?";for(var a in K)d=K[a],d==null||_.H4(d)||(H+=encodeURIComponent(a)+"="+encodeURIComponent(d)+"&");K=uW(D).createElement("SCRIPT");S&&K.setAttribute("nonce",S);_.Aa(K,_.yL(H));D.body.appendChild(K)}};
mjJ=function(K,d,f,H){var D,S;_.c(function(n){D=f||_.Hu;var u=K.serverEnvironment==="DEV",a=f||_.Hu;a=K.nonce||_.b$(a.document);u={integrationKeys:{productId:K.productId,feedbackBucket:K.bucket,triggerId:K.triggerId},callbacks:{onClose:K.callback,onLoad:K.onLoadCallback},formContent:{locale:K.locale,disableScreenshot:K.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:K.abuseLink,additionalDataConsent:K.additionalDataConsent},initializationData:{isLocalServer:u,nonce:a,useNightlyRelease:u,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:K.feedbackServerUri,colorScheme:K.colorScheme},extraData:{productVersion:K.productVersion,authUser:K.authuser,configuratorId:K.configuratorId,customZIndex:K.customZIndex,tinyNoPointer:K.tinyNoPointer,
allowNonLoggedInFeedback:K.allowNonLoggedInFeedback,enableAnonymousFeedback:K.enableAnonymousFeedback}};d&&(a=new Map(Object.entries(d)),u.extraData.productSpecificData=a);S=u;return _.I(n,pcz(S,H,D),0)})};
_.ll2=function(K,d,f){try{if(K.flow==="help"){var H=K.helpCenterPath.replace(/^\//,"");_.ha(f||window,"https://support.google.com/"+H)}else K.flow==="submit"?bY2(K,d,f):Df5(K.productId,K.feedbackServerUri).then(function(D){D=_.eQ(D,cr,1);var S=!fYX||(D==null?void 0:D.getEnableMweb()),n=!K.tinyNoPointer||(D==null?void 0:D.getEnableTinyNoPointer());!D||D.getAlohaAutoGaRollout()&&S&&n?mjJ(K,d,f,D):bY2(K,d,f)},function(D){D&&D.name!=="DuplicateFormError"&&bY2(K,d,f)})}catch(D){mjJ(K,d,f,null)}};
_.B6("userfeedback.api.startFeedback",_.ll2);var VU5=/https?:\/\/\S+\.\S+/,Svu=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],yDB=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var sgY=function(K){var d=K.split(""),f=[-263237435,15,d,function(H,D,S){var n=D.length;S.forEach(function(u,a,R){this.push(R[a]=D[(D.indexOf(u)-D.indexOf(this[a])+a+n--)%D.length])},H.split(""))},
function(H,D){H=(H%D.length+D.length)%D.length;D.splice(-H).reverse().forEach(function(S){D.unshift(S)})},
"response",function(){for(var H=64,D=[];++H-D.length-32;){switch(H){case 58:H-=14;case 91:case 92:case 93:continue;case 123:H=47;case 94:case 95:case 96:continue;case 46:H=95}D.push(String.fromCharCode(H))}return D},
null,12,1540023973,65941107,null,d,function(H,D){for(H=(H%D.length+D.length)%D.length;H--;)D.unshift(D.pop())},
695603893,function(H){for(var D=H.length;D;)H.push(H.splice(--D,1)[0])},
"'[;'[(",function(H,D){H.push(D)},
null,function(H,D,S,n,u){return D(S,n,u)},
"continuation",d,function(H,D){if(H.length!=0){D=(D%H.length+H.length)%H.length;var S=H[0];H[0]=H[D];H[D]=S}},
function(){for(var H=64,D=[];++H-D.length-32;){switch(H){case 91:H=44;continue;case 123:H=65;break;case 65:H-=18;continue;case 58:H=96;continue;case 46:H=95}D.push(String.fromCharCode(H))}return D},
'"),/]];'];f[7]=f;f[11]=f;f[18]=f;try{(((0,f[15])(f[21]),f[22])(f[11],f[9]),f[22])(f[new Date("1970-01-01T04:30:12.000+04:30")/1E3],f[1]),((0,f[22])(f[11],f[23]),f[4])(f[10],f[18]),(0,f[20])(f[21],f[14])<<(0,f[17])(f[18],f[1]),(0,f[4])(f[8],f[21]),(0,f[19])((0,f[19])((0,f[17])(f[7],f[9]),f[3],f[20],(0,f[6])(),f[2]),f[3],f[5],(0,f[15])(),f[2])}catch(H){return"aTlOUOubTO4AP____8P_"+K}return d.join("")};_.WfN=new _.Z("runAttestationCommand");var GDk=new _.Z("verifyCommand");_.uq=new _.Z("accessibilityContext");var AbN=new _.Z("accessibilityData");var T3H=new _.Z("profileCardCommand");var a3Y=new _.Z("signInEndpoint");var uLz=new _.Z("signOutEndpoint");var q8f;_.rbs=new _.Z("accountItemSectionRenderer");q8f=new _.Z("accountItemRenderer");_.Q9k=new _.Z("saveCommandToSessionStorageAction");var j9f=new _.Z("crossAccountChannelTransferEndpoint");var nEY=new _.Z("getAccountMenuEndpoint");_.iCz=new _.Z("getAccountSwitcherEndpoint");var yOu=new _.Z("getAccountsListEndpoint");var CcH=new _.Z("getAccountsListInnertubeEndpoint");_.aa=new _.Z("addToToastAction");var xjv=new _.Z("hideEnclosingAction");_.Ia=new _.Z("replaceEnclosingAction");var Lf9=new _.Z("buttonRefreshAction");var B39=new _.Z("adsControlFlowOpportunityReceivedCommand");var Jb9=new _.Z("openAdAllowlistInstructionCommand");var s9f=new _.Z("videoMastheadAdPrimaryVideoRenderer");var kDs=new _.Z("displayAdRenderer");var Jjz=new _.Z("instreamVideoAdRenderer");_.w$k=new _.Z("inFeedAdLayoutRenderer");var ZYf=new _.Z("sequenceItemInPlayerAdLayoutRenderer");_.eR4=new _.Z("adSlotRenderer");var p$t=new _.Z("adAvatarViewModel");var K46=new _.Z("adBadgeViewModel");var dvs=new _.Z("adButtonViewModel");var UI=new _.Z("adImageViewModel");var MFo=new _.Z("reelsAdCardButtonedViewModel");var fft=new _.Z("reelsPlayerOverlayLayoutViewModel");var HsH=new _.Z("showSchedulingPanelCommand");var Dv6=new _.Z("backstageCommentsRenderer");var VH9=new _.Z("backstageImageRenderer");var SaB=new _.Z("backstagePostRenderer");var yms=new _.Z("postRenderer");var nb9=new _.Z("sharedPostRenderer");var is4=new _.Z("createBackstagePostEndpoint");var cmk=new _.Z("getPostVideoPreviewEndpoint");var umJ=new _.Z("updateBackstagePostEndpoint");var afJ=new _.Z("filterChipTransformCommand");var Ift=new _.Z("insertRichSectionCommand");var lNo=new _.Z("talkToRecsDeselectCommand");var Uv8=new _.Z("talkToRecsNextCommand");var mEY=new _.Z("talkToRecsSelectCommand");var RCt=new _.Z("talkToRecsUpdateTextCommand");_.is=new _.Z("browseEndpoint");_.F4k=new _.Z("confirmDialogEndpoint");var zCs=new _.Z("expandOnHoverCardRenderer");var Xd8=new _.Z("lumiereShelfDetailsRenderer");var vb6=new _.Z("revealBusinessEmailCommand");var MH4=new _.Z("validateChannelHandleCommand");var Pf8=new _.Z("channelCreationFormEndpoint");var gbt=new _.Z("aboutChannelViewModel");var Os6=new _.Z("channelThumbnailWithLinkRenderer");var N7N=new _.Z("channelCreationServiceEndpoint");var Yat=new _.Z("updateChannelPageSettingsEndpoint");var Ra=function(K){this.delegate=K},F3=function(){Ra.apply(this,arguments)};
_.O(F3,Ra);_.x$.Object.defineProperties(F3.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(K){this.delegate.entityMetadata=K}}});var tHH=function(){F3.apply(this,arguments)};
_.O(tHH,F3);tHH.prototype.getAssociations=function(){return[]};var $SX=new _.Z("webThumbnailDetailsExtensionData");var STz=new _.Z("commandContext");var ob9=new _.Z("addVideoLinkAction");var $vL=new _.Z("createPollAction");var Eb8=new _.Z("hideIdentityChipAction");var hC9=new _.Z("openUpdateCommentDialogAction");var zI=new _.Z("updateBackstagePollAction");var bsJ=new _.Z("updateCommentVoteAction");var mvv=new _.Z("commentThreadRenderer");var lf8=function(){F3.apply(this,arguments)};
_.O(lf8,F3);lf8.prototype.getAssociations=function(){return[]};_.W4t=new _.Z("commentDialogRenderer");var G$v=new _.Z("updateCommentsSettingsEndpoint");var AmJ=new _.Z("commentViewModel");var T7k=new _.Z("triStateButtonViewModel");var rmB=new _.Z("voiceReplyContainerViewModel");_.DE=new _.Z("commandExecutorCommand");var YA=new _.Z("emoji");var qat=new _.Z("updateCreatorChannelInnertubeCommand");_.Q1s=new _.Z("appendContinuationItemsAction");_.j16=new _.Z("changeEngagementPanelVisibilityAction");_.$P=new _.Z("continuationCommand");var CfL=new _.Z("listMutationCommand");_.X3=new _.Z("openPopupAction");var xvt=new _.Z("persistSubscriptionsDisplayPreferencesCommand");var eCt;_.L44=new _.Z("playlistRemoveVideosAction");_.B7k=new _.Z("updatePlaylistAction");_.Jm9=new _.Z("addToPlaylistCommand");_.s12=new _.Z("endPlaylistCommand");_.k$k=new _.Z("recoverPlaylistCommand");_.wdL=new _.Z("refreshPlaylistCommand");_.Zs2=new _.Z("refreshFormCommand");eCt=new _.Z("openOnePickAddVideoModalCommand");_.RfX=new _.Z("reloadContinuationItemsCommand");_.pds=new _.Z("scrollToEngagementPanelCommand");var KQ8=new _.Z("selectCountryCommand");var dit=new _.Z("showReloadUiCommand");var fbs=new _.Z("undoFeedbackAction");var HO2=new _.Z("updateButtonAction");var Di9=new _.Z("updateSubscribeButtonAction");var VRv=new _.Z("updateToggleAction");var S3L=new _.Z("webNativeShareCommand");_.B0=new _.Z("webCommandMetadata");_.vr=new _.Z("webHandleServiceEndpointExtension");var P2B=new _.Z("webNavigationEndpointData");var yI2=new _.Z("copyLinkCommand");var n2s=new _.Z("playlistVotingRefreshPopupCommand");var iOL=new _.Z("selectChipCommand");var cIv=new _.Z("setCookieCommand");var uo4=new _.Z("setLocalStorageCommand");var abN=new _.Z("setPrefStorageEntryCommand");var FQk;_.IbJ=new _.Z("settingsUpdateCheckboxCommand");_.Uis=new _.Z("settingsUpdateTextCommand");_.RH6=new _.Z("settingsUpdateOptionsCommand");FQk=new _.Z("settingsUpdateSwitchCommand");_.zH6=new _.Z("settingsUpdateConnectedAppRendererCommand");var XYH=new _.Z("updateTextInputFormFieldRendererCommand");var v2f=new _.Z("updateToggleButtonStateCommand");var MRJ=new _.Z("updateUrlParamCommand");var P19=new _.Z("webSubmitFormCommand");var g2v=new _.Z("channelSwitcherPageRenderer"),OOJ=new _.Z("updateChannelSwitcherPageAction");_.k6=new _.Z("continuationItemRenderer");_.MV=new _.Z("richItemRenderer");var NcB=new _.Z("richSectionRenderer");_.Y3f=new _.Z("richShelfRenderer");_.tRk=new _.Z("metadataBadgeRenderer");_.o2v=new _.Z("multiPageMenuNotificationSectionRenderer");_.$i9=new _.Z("playlistLoopButtonStateRenderer");var E2t=new _.Z("claimLegacyYoutubeChannelEndpoint");var hHN=new _.Z("getNotificationMenuEndpoint");var bOf=new _.Z("getSearchInVideoCommand");_.miL=new _.Z("getTranscriptEndpoint");_.y$=new _.Z("signalServiceEndpoint");var lbN=new _.Z("verifyAgeEndpoint");var ZbX=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(ZbX,_.Ti);ZbX.prototype.getPath=function(){return _.Xo(this,1)};
ZbX.prototype.getValue=function(){return _.Xo(this,2)};var WQL=[0,_.G9,-1];var G9s=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(G9s,_.Ti);var wqo=_.ew(G9s,[0,_.AI,WQL]);var AIB=new _.Z("dismissalEndpoint");var Tc6=new _.Z("elementsCommand");_.oG=new _.Z("innertubeCommand");var rIL=new _.Z("multipleInlinePlaybackCommand");var V1p=new _.Z("loggingDirectives");var q34=new _.Z("acknowledgeChannelTouStrikeCommand");var Q26=function(){F3.apply(this,arguments)};
_.O(Q26,F3);Q26.prototype.getAssociations=function(){return[]};var j24=function(){F3.apply(this,arguments)};
_.O(j24,F3);j24.prototype.getAssociations=function(){return[]};var Tz=new _.Z("entityBatchUpdate");_.C14=new _.Z("entityUpdateCommand");var xiB=function(){F3.apply(this,arguments)};
_.O(xiB,F3);xiB.prototype.getAssociations=function(){var K=[];this.delegate.alternateChannel&&K.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&K.push.apply(K,_.Me(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&K.push(this.delegate.oneofChannelEntity);return[].concat(_.Me(new Set(K)))};var LQ8=function(){F3.apply(this,arguments)};
_.O(LQ8,F3);LQ8.prototype.getAssociations=function(){var K=[];this.delegate.entryCollection&&K.push(this.delegate.entryCollection);return[].concat(_.Me(new Set(K)))};
var BcL=function(){F3.apply(this,arguments)};
_.O(BcL,F3);BcL.prototype.getAssociations=function(){var K=[];this.delegate.parentPlaylist&&K.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var d=_.y(this.delegate.entries),f=d.next();!f.done;f=d.next())K.push.apply(K,_.Me((new JIk(f.value)).getAssociations()));return[].concat(_.Me(new Set(K)))};
var JIk=function(){Ra.apply(this,arguments)};
_.O(JIk,Ra);JIk.prototype.getAssociations=function(){var K=[];this.delegate.video&&K.push(this.delegate.video);return[].concat(_.Me(new Set(K)))};var s2s=function(){F3.apply(this,arguments)};
_.O(s2s,F3);s2s.prototype.getAssociations=function(){var K=[];this.delegate.descriptionEntity&&K.push(this.delegate.descriptionEntity);this.delegate.creators&&K.push.apply(K,_.Me(this.delegate.creators));this.delegate.theBiggestFan&&K.push(this.delegate.theBiggestFan);return[].concat(_.Me(new Set(K)))};
var k96=function(){F3.apply(this,arguments)};
_.O(k96,F3);k96.prototype.getAssociations=function(){return[]};var wY4=new _.Z("fantasyRosterViewModel");var ZOL=new _.Z("addFollowUpSurveyCommand");var eHH=new _.Z("getSurveyCommand");var pY4=new _.Z("ratingSurveyOptionRenderer");_.g7=new _.Z("feedbackEndpoint");var K92=new _.Z("reportHistoryTableCellRenderer"),dOv=new _.Z("reportHistoryTableTextCellRenderer"),fh4=new _.Z("reportHistoryTableReasonCellRenderer");_.Hg4=new _.Z("flagEndpoint");var DOs=new _.Z("getFlowCommand");var VO2=new _.Z("submitFormWithValidationFlowCommand");var SGL=function(){F3.apply(this,arguments)};
_.O(SGL,F3);SGL.prototype.getAssociations=function(){return[]};var yBv=new _.Z("flowFormState");var nW8=new _.Z("gameCardRenderer");var igJ=new _.Z("accountLinkingStateChangedCommand");var cBs=function(){F3.apply(this,arguments)};
_.O(cBs,F3);cBs.prototype.getAssociations=function(){return[]};var u_J=new _.Z("changeMiniAppPlayStateCommand");var ah8=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(ah8,_.Ti);var Pr=[1,2,3];var IhN=[0,Pr,hjB,_.bRY,ORp];var UO6=_.ew(ah8,IhN),RP6=_.pw(IhN);var F9t=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(F9t,_.Ti);var zPt=[0,_.b1,_.G9];var XcB=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(XcB,_.Ti);var vWL=[0,_.G9,_.b1,-1];var MOs=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(MOs,_.Ti);var PRk=function(K,d){return _.py(K,3,d)};var gWJ=_.pw([0,1,zPt,_.rc,vWL]);var Og8=new _.Z("miniAppScoreChallengeViewModel");var N9f=new _.Z("miniGameCardViewModel");var YG8=new _.Z("teaserCardViewModel");var tO4=function(){F3.apply(this,arguments)};
_.O(tO4,F3);tO4.prototype.getAssociations=function(){return[]};_.oW8=new _.Z("feedbackItemRenderer");var $O4=function(){F3.apply(this,arguments)};
_.O($O4,F3);$O4.prototype.getAssociations=function(){return[]};_.EW4=new _.Z("playerInterstitialRenderer");var hPv=new _.Z("getKidsBlocklistPickerCommand");_.bgs=new _.Z("updateKidsBlacklistEndpoint");_.bc=new _.Z("likeEndpoint");var mOJ,lh2,W94;mOJ=new _.Z("addChatItemAction");lh2=new _.Z("removeChatItemAction");W94=new _.Z("markChatItemAsDeletedAction");_.GlJ=new _.Z("setLiveChatCollapsedStateAction");var ABk=function(){F3.apply(this,arguments)};
_.O(ABk,F3);ABk.prototype.getAssociations=function(){return[]};var T9s=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(T9s,_.Ti);var rB2=_.ew(T9s,[0,1,_.b1]);var qGt=new _.Z("liveChatEndpoint");var Q_L=new _.Z("liveChatItemContextMenuEndpoint");var j_t=new _.Z("liveChatReplayEndpoint");_.CR6=new _.Z("emojiPickerRenderer");var xO6=new _.Z("liveChatAuthorBadgeViewModel");var L99=new _.Z("deleteLiveChatMessageCommand");var B9k=new _.Z("liveChatActionEndpoint");var JBJ=new _.Z("createLiveChatPollEndpoint");var s_8=new _.Z("manageLiveChatUserEndpoint");var klk=new _.Z("moderateLiveChatEndpoint");_.wcf=new _.Z("sendLiveChatMessageEndpoint");var ZgB=new _.Z("sendLiveChatVoteEndpoint");var ePs=new _.Z("clearLocationCommand");var pc2=new _.Z("resolveLocationCommand");var Kot=new _.Z("interactionLoggingCommandMetadata");var Eyz=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Eyz,_.Ti);var $Gn=function(K,d){return _.Dq(K,1,d)};var df8=[0,_.l1];var oyX=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(oyX,_.Ti);var tjp=function(K,d){return IB(K,1,Eyz,d)};oyX.prototype.JSC$10069_serializeBinary=d8N([0,_.AI,df8]);var $fN={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 f59={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"},
Hx2={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 Tzz={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"};_.BAp=new _.Z("logFlowLoggingEventCommand");_.uz=new _.Z("loggingContext");var DfN=new _.Z("captionLanguageSelectActionCommand");var VUN=new _.Z("showCaptionLanguageSelectActionCommand");var Sv4=new _.Z("dismissDialogEndpoint");var yDJ=new _.Z("hideItemSectionVideosByIdCommand");var nk2=new _.Z("showMiniplayerCommand");var ix2=function(){F3.apply(this,arguments)};
_.O(ix2,F3);ix2.prototype.getAssociations=function(){return[]};var cDs=function(){F3.apply(this,arguments)};
_.O(cDs,F3);cDs.prototype.getAssociations=function(){return[]};var uJ2=function(){F3.apply(this,arguments)};
_.O(uJ2,F3);uJ2.prototype.getAssociations=function(){return[]};var a52=function(){F3.apply(this,arguments)};
_.O(a52,F3);a52.prototype.getAssociations=function(){var K=[];this.delegate.downloadsList&&K.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&K.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&K.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&K.push(this.delegate.refresh);return[].concat(_.Me(new Set(K)))};var I58=function(){F3.apply(this,arguments)};
_.O(I58,F3);I58.prototype.getAssociations=function(){var K=[];this.delegate.refresh&&K.push(this.delegate.refresh);if(this.delegate.downloads)for(var d=_.y(this.delegate.downloads),f=d.next();!f.done;f=d.next())K.push.apply(K,_.Me((new Uf4(f.value)).getAssociations()));return[].concat(_.Me(new Set(K)))};
var Uf4=function(){Ra.apply(this,arguments)};
_.O(Uf4,Ra);Uf4.prototype.getAssociations=function(){var K=[];this.delegate.video&&K.push(this.delegate.video);this.delegate.playlist&&K.push(this.delegate.playlist);this.delegate.videoItem&&K.push(this.delegate.videoItem);this.delegate.playlistItem&&K.push(this.delegate.playlistItem);return[].concat(_.Me(new Set(K)))};var Rws=function(){F3.apply(this,arguments)};
_.O(Rws,F3);Rws.prototype.getAssociations=function(){var K=[];this.delegate.localImageEntities&&K.push.apply(K,_.Me(this.delegate.localImageEntities));return[].concat(_.Me(new Set(K)))};var Fo9=function(){F3.apply(this,arguments)};
_.O(Fo9,F3);Fo9.prototype.getAssociations=function(){var K=[];this.delegate.playbackData&&K.push(this.delegate.playbackData);this.delegate.localImageEntities&&K.push.apply(K,_.Me(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&K.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Me(new Set(K)))};var zwB=function(){F3.apply(this,arguments)};
_.O(zwB,F3);zwB.prototype.getAssociations=function(){return[]};var Xkk=function(){F3.apply(this,arguments)};
_.O(Xkk,F3);Xkk.prototype.getAssociations=function(){var K=[];this.delegate.fakeChildren&&K.push.apply(K,_.Me(this.delegate.fakeChildren));return[].concat(_.Me(new Set(K)))};var vks=function(){F3.apply(this,arguments)};
_.O(vks,F3);vks.prototype.getAssociations=function(){var K=[];this.delegate.video&&K.push(this.delegate.video);this.delegate.playbackData&&K.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&K.push(this.delegate.offlineVideoPolicy);return[].concat(_.Me(new Set(K)))};var MUs=function(){F3.apply(this,arguments)};
_.O(MUs,F3);MUs.prototype.getAssociations=function(){return[]};var PJB=function(){F3.apply(this,arguments)};
_.O(PJB,F3);PJB.prototype.getAssociations=function(){var K=[];this.delegate.channelOwner&&K.push(this.delegate.channelOwner);this.delegate.videos&&K.push.apply(K,_.Me(this.delegate.videos));this.delegate.collaboratorChannels&&K.push.apply(K,_.Me(this.delegate.collaboratorChannels));this.delegate.downloadState&&K.push(this.delegate.downloadState);this.delegate.refresh&&K.push(this.delegate.refresh);return[].concat(_.Me(new Set(K)))};var gkB=function(){F3.apply(this,arguments)};
_.O(gkB,F3);gkB.prototype.getAssociations=function(){var K=[];this.delegate.video&&K.push(this.delegate.video);this.delegate.channelContributor&&K.push(this.delegate.channelContributor);return[].concat(_.Me(new Set(K)))};var Oxk=function(){Ra.apply(this,arguments)};
_.O(Oxk,Ra);Oxk.prototype.getAssociations=function(){var K=[];this.delegate.recommendedVideoMetadata&&K.push.apply(K,_.Me((new NvL(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Me(new Set(K)))};
var NvL=function(){Ra.apply(this,arguments)};
_.O(NvL,Ra);NvL.prototype.getAssociations=function(){var K=[];this.delegate.localImageEntities&&K.push.apply(K,_.Me(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&K.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Me(new Set(K)))};var YvJ=function(){Ra.apply(this,arguments)};
_.O(YvJ,Ra);YvJ.prototype.getAssociations=function(){var K=[];this.delegate.playbackPosition&&K.push(this.delegate.playbackPosition);return[].concat(_.Me(new Set(K)))};var tUH=function(){F3.apply(this,arguments)};
_.O(tUH,F3);tUH.prototype.getAssociations=function(){var K=[];this.delegate.owner&&K.push(this.delegate.owner);this.delegate.downloadState&&K.push(this.delegate.downloadState);this.delegate.userState&&K.push.apply(K,_.Me((new YvJ(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&K.push.apply(K,_.Me((new Oxk(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Me(new Set(K)))};var ok8=function(){F3.apply(this,arguments)};
_.O(ok8,F3);ok8.prototype.getAssociations=function(){var K=[];this.delegate.userChannelDetails&&K.push(this.delegate.userChannelDetails);return[].concat(_.Me(new Set(K)))};var $f6=function(){F3.apply(this,arguments)};
_.O($f6,F3);$f6.prototype.getAssociations=function(){var K=[];this.delegate.channelOwner&&K.push(this.delegate.channelOwner);this.delegate.playbackPosition&&K.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&K.push.apply(K,_.Me(this.delegate.localImageEntities));this.delegate.downloadStatus&&K.push(this.delegate.downloadStatus);return[].concat(_.Me(new Set(K)))};var H2z=new _.Z("downloadsPageSmartDownloadsOptInBannerParams");var EkJ=function(){F3.apply(this,arguments)};
_.O(EkJ,F3);EkJ.prototype.getAssociations=function(){return[]};var hws=function(){F3.apply(this,arguments)};
_.O(hws,F3);hws.prototype.getAssociations=function(){return[]};var bxN=function(){F3.apply(this,arguments)};
_.O(bxN,F3);bxN.prototype.getAssociations=function(){return[]};var mfN=function(){F3.apply(this,arguments)};
_.O(mfN,F3);mfN.prototype.getAssociations=function(){return[]};var l5t=function(){F3.apply(this,arguments)};
_.O(l5t,F3);l5t.prototype.getAssociations=function(){return[]};var WoH=function(){F3.apply(this,arguments)};
_.O(WoH,F3);WoH.prototype.getAssociations=function(){return[]};var GMJ=function(){F3.apply(this,arguments)};
_.O(GMJ,F3);GMJ.prototype.getAssociations=function(){return[]};var ADf=function(){F3.apply(this,arguments)};
_.O(ADf,F3);ADf.prototype.getAssociations=function(){return[]};var Tv9=function(){F3.apply(this,arguments)};
_.O(Tv9,F3);Tv9.prototype.getAssociations=function(){return[]};_.Ok=new _.Z("dislikeButtonViewModel");_.gP=new _.Z("likeButtonViewModel");var rD4=new _.Z("videoSummaryContentViewModel");var qvf=new _.Z("videoSummaryParagraphViewModel");var Qtk=new _.Z("changeTimelyActionVisibilityCommand");var jts=new _.Z("hideEngagementPanelEndpoint");var CJ6=new _.Z("refreshPanelEndpoint");var xfN=new _.Z("scrollToSectionEndpoint");var LoN=new _.Z("seekToVideoTimestampCommand");_.Pd=new _.Z("showEngagementPanelEndpoint");var BvJ=new _.Z("showTransientPlayerScrimOverlayCommand");var JDt=new _.Z("toggleEngagementPanelCommand");_.st9=new _.Z("createBroadcastCommand");var kMB=new _.Z("metadataUpdateCommand");var wkJ=function(){F3.apply(this,arguments)};
_.O(wkJ,F3);wkJ.prototype.getAssociations=function(){return[]};var Zxv=function(){F3.apply(this,arguments)};
_.O(Zxv,F3);Zxv.prototype.getAssociations=function(){return[]};var ewJ=function(){F3.apply(this,arguments)};
_.O(ewJ,F3);ewJ.prototype.getAssociations=function(){return[]};_.pkH=new _.Z("merchandiseShelfRenderer");var K8s=new _.Z("gridMovieRenderer");_.d0k=new _.Z("movieRenderer");var f96=function(){F3.apply(this,arguments)};
_.O(f96,F3);f96.prototype.getAssociations=function(){var K=[];this.delegate.trackDownloadMetadatas&&K.push.apply(K,_.Me(this.delegate.trackDownloadMetadatas));return[].concat(_.Me(new Set(K)))};var HGJ=function(){F3.apply(this,arguments)};
_.O(HGJ,F3);
HGJ.prototype.getAssociations=function(){var K=[];this.delegate.downloadedTracks&&K.push.apply(K,_.Me(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&K.push.apply(K,_.Me(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&K.push.apply(K,_.Me(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&K.push.apply(K,_.Me(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&K.push.apply(K,_.Me(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
K.push.apply(K,_.Me(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&K.push.apply(K,_.Me(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&K.push.apply(K,_.Me(this.delegate.metadataOnlyTracks));return[].concat(_.Me(new Set(K)))};var D02=function(){F3.apply(this,arguments)};
_.O(D02,F3);D02.prototype.getAssociations=function(){var K=[];this.delegate.trackDownloadMetadatas&&K.push.apply(K,_.Me(this.delegate.trackDownloadMetadatas));return[].concat(_.Me(new Set(K)))};var VIv=function(){F3.apply(this,arguments)};
_.O(VIv,F3);VIv.prototype.getAssociations=function(){var K=[];this.delegate.playbackData&&K.push(this.delegate.playbackData);this.delegate.localImageEntities&&K.push.apply(K,_.Me(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&K.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Me(new Set(K)))};var StB=function(){F3.apply(this,arguments)};
_.O(StB,F3);
StB.prototype.getAssociations=function(){var K=[];this.delegate.musicLibraryStatusEntity&&K.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&K.push.apply(K,_.Me(this.delegate.primaryArtists));this.delegate.details&&K.push(this.delegate.details);this.delegate.userDetails&&K.push(this.delegate.userDetails);this.delegate.tracks&&K.push.apply(K,_.Me(this.delegate.tracks));this.delegate.share&&K.push(this.delegate.share);this.delegate.downloadMetadata&&K.push(this.delegate.downloadMetadata);this.delegate.refresh&&
K.push(this.delegate.refresh);return[].concat(_.Me(new Set(K)))};
var yzk=function(){F3.apply(this,arguments)};
_.O(yzk,F3);yzk.prototype.getAssociations=function(){var K=[];this.delegate.albumRelease&&K.push(this.delegate.albumRelease);this.delegate.tracks&&K.push.apply(K,_.Me(this.delegate.tracks));return[].concat(_.Me(new Set(K)))};
var nnL=function(){F3.apply(this,arguments)};
_.O(nnL,F3);nnL.prototype.getAssociations=function(){var K=[];this.delegate.albumRelease&&K.push(this.delegate.albumRelease);return[].concat(_.Me(new Set(K)))};var iGv=function(){F3.apply(this,arguments)};
_.O(iGv,F3);iGv.prototype.getAssociations=function(){var K=[];this.delegate.details&&K.push(this.delegate.details);this.delegate.userDetails&&K.push(this.delegate.userDetails);return[].concat(_.Me(new Set(K)))};
var cz9=function(){F3.apply(this,arguments)};
_.O(cz9,F3);cz9.prototype.getAssociations=function(){var K=[];this.delegate.parentArtist&&K.push(this.delegate.parentArtist);return[].concat(_.Me(new Set(K)))};
var unt=function(){F3.apply(this,arguments)};
_.O(unt,F3);unt.prototype.getAssociations=function(){var K=[];this.delegate.parentArtist&&K.push(this.delegate.parentArtist);return[].concat(_.Me(new Set(K)))};var a92=function(){F3.apply(this,arguments)};
_.O(a92,F3);a92.prototype.getAssociations=function(){return[]};var I98=function(){F3.apply(this,arguments)};
_.O(I98,F3);I98.prototype.getAssociations=function(){return[]};var U04=function(){F3.apply(this,arguments)};
_.O(U04,F3);
U04.prototype.getAssociations=function(){var K=[];this.delegate.tracks&&K.push.apply(K,_.Me(this.delegate.tracks));this.delegate.refresh&&K.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&K.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&K.push(this.delegate.details);this.delegate.downloadMetadata&&K.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&K.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&K.push(this.delegate.userDetails);this.delegate.entryCollection&&
K.push(this.delegate.entryCollection);this.delegate.share&&K.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&K.push.apply(K,_.Me((new Rit(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Me(new Set(K)))};
var Rit=function(){Ra.apply(this,arguments)};
_.O(Rit,Ra);Rit.prototype.getAssociations=function(){var K=[];this.delegate.creatorEntity&&K.push(this.delegate.creatorEntity);return[].concat(_.Me(new Set(K)))};var F8t=function(){F3.apply(this,arguments)};
_.O(F8t,F3);F8t.prototype.getAssociations=function(){return[]};var zif=function(){F3.apply(this,arguments)};
_.O(zif,F3);
zif.prototype.getAssociations=function(){var K=[];this.delegate.musicLibraryStatusEntity&&K.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&K.push.apply(K,_.Me(this.delegate.artists));this.delegate.audioModeVersion&&K.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&K.push(this.delegate.videoModeVersion);this.delegate.userDetails&&K.push(this.delegate.userDetails);this.delegate.details&&K.push(this.delegate.details);this.delegate.albumRelease&&K.push(this.delegate.albumRelease);this.delegate.share&&
K.push(this.delegate.share);this.delegate.libraryEdit&&K.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&K.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&K.push(this.delegate.playbackPosition);this.delegate.lyrics&&K.push(this.delegate.lyrics);return[].concat(_.Me(new Set(K)))};
var Xtt=function(){F3.apply(this,arguments)};
_.O(Xtt,F3);Xtt.prototype.getAssociations=function(){var K=[];this.delegate.parentTrack&&K.push(this.delegate.parentTrack);return[].concat(_.Me(new Set(K)))};
var vnB=function(){F3.apply(this,arguments)};
_.O(vnB,F3);vnB.prototype.getAssociations=function(){var K=[];this.delegate.parentTrack&&K.push(this.delegate.parentTrack);return[].concat(_.Me(new Set(K)))};var LY=new _.Z("musicResponsiveListItemRenderer");var vEX=new _.Z("addToPlaylistEndpoint");var MI9=new _.Z("captionPickerEndpoint");var PS8=new _.Z("suggestStats");var gn4=new _.Z("backstageImageUploadEndpoint");var OG9=new _.Z("createBackstagePostDialogEndpoint");_.NTJ=new _.Z("createCommentReplyDialogEndpoint");_.Yt2=new _.Z("updateCommentDialogEndpoint");_.tIJ=new _.Z("updateCommentReplyDialogEndpoint");var on2=new _.Z("menuEndpoint");var XOS=new _.Z("modalEndpoint");var $0k=new _.Z("playlistEditorEndpoint");var En8=new _.Z("copyTextEndpoint");var hi2,bGf;hi2=new _.Z("shareEndpoint");bGf=new _.Z("shareEntityEndpoint");_.m0B=new _.Z("shareEntityServiceEndpoint");_.buO=new _.Z("userFeedbackEndpoint");_.qu=new _.Z("watchEndpoint");var Dru=new _.Z("watchPlaylistEndpoint");var l9s=new _.Z("addUpcomingEventReminderEndpoint");_.gd=new _.Z("getCommentsFromInboxCommand");var W82=new _.Z("notificationOptOutEndpoint");var Gd4=new _.Z("recordNotificationInteractionsEndpoint");var AzN=new _.Z("removeUpcomingEventReminderEndpoint");var zfN=new _.Z("getDownloadActionCommand");_.TT2=new _.Z("offlineOrchestrationActionCommand");var rzs=function(){F3.apply(this,arguments)};
_.O(rzs,F3);rzs.prototype.getAssociations=function(){return[]};var qtk=function(){F3.apply(this,arguments)};
_.O(qtk,F3);qtk.prototype.getAssociations=function(){return[]};var QZH=function(){F3.apply(this,arguments)};
_.O(QZH,F3);QZH.prototype.getAssociations=function(){return[]};var jZv=function(){F3.apply(this,arguments)};
_.O(jZv,F3);jZv.prototype.getAssociations=function(){return[]};var CSv=function(){F3.apply(this,arguments)};
_.O(CSv,F3);CSv.prototype.getAssociations=function(){var K=[];this.delegate.transfer&&K.push(this.delegate.transfer);this.delegate.adsPlaybackData&&K.push.apply(K,_.Me(this.delegate.adsPlaybackData));this.delegate.drmLicense&&K.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&K.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&K.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Me(new Set(K)))};var x0f=function(){F3.apply(this,arguments)};
_.O(x0f,F3);x0f.prototype.getAssociations=function(){return[]};var L88=function(){F3.apply(this,arguments)};
_.O(L88,F3);L88.prototype.getAssociations=function(){var K=[];this.delegate.offlineVideoStreams&&K.push.apply(K,_.Me(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&K.push.apply(K,_.Me(this.delegate.captionTrack));return[].concat(_.Me(new Set(K)))};var BTJ=function(){F3.apply(this,arguments)};
_.O(BTJ,F3);BTJ.prototype.getAssociations=function(){return[]};var Jzf=new _.Z("showMoreDrawerCommand");var sZ9=new _.Z("updateEngagementPanelContentCommand");var kdt=new _.Z("getPdgBuyFlowCommand");var wtk=new _.Z("liveChatPurchaseMessageEndpoint");var ZG4=new _.Z("openSuperStickerBuyFlowCommand");var eiJ=new _.Z("updatePdgFeatureEnablementCommand");var pt8=function(){F3.apply(this,arguments)};
_.O(pt8,F3);pt8.prototype.getAssociations=function(){return[]};var Kws=function(){F3.apply(this,arguments)};
_.O(Kws,F3);Kws.prototype.getAssociations=function(){return[]};_.dh4=new _.Z("pdgCommentChipRenderer");_.fTJ=new _.Z("permissionRoleBottomBarRenderer");_.Hf9=new _.Z("updatePermissionRoleCommand");var Dh9=new _.Z("prefetchWatchCommand");var V$v=new _.Z("updatePlayerErrorMessageCommand");var cOY=new _.Z("toggleCaptionsVisibilityCommand");_.SAL=new _.Z("quickActionsViewModel");var yoJ=new _.Z("playerResponse");var nS2=new _.Z("playlistRenderer");_.iff=new _.Z("playlistVideoListRenderer");_.OI=new _.Z("playlistEditEndpoint");var co4=new _.Z("createImagePollCommand");var u24=new _.Z("createQuizCommand");var aT8=new _.Z("quizRenderer");var ITJ=new _.Z("uploadedVideoRenderer");var Uhv=new _.Z("decorateMessageEndpoint");var RKs=new _.Z("lpOfferCardOptionViewModel");var Fwt=new _.Z("sfvAudioItemPlaybackCommand");var zKk=function(){F3.apply(this,arguments)};
_.O(zKk,F3);zKk.prototype.getAssociations=function(){return[]};_.NV=new _.Z("reelNonVideoContentEndpoint");_.IM=new _.Z("reelWatchEndpoint");_.YH=new _.Z("reelItemRenderer");_.XLN=new _.Z("reelMetapanelViewModel");_.vSJ=new _.Z("reelNonVideoContentRenderer");_.M$4=new _.Z("reelPlayerOverlayRenderer");var PeB=new _.Z("shortsLockupViewModel");var gSs=new _.Z("sponsorButtonViewModel");var OfJ=new _.Z("reelItemWatchResponse");var NhL=new _.Z("textBadgeRenderer");_.tQ=new _.Z("buttonRenderer");_.oa=new _.Z("toggleButtonRenderer");var i6X=new _.Z("switchButtonViewModel");_.YAL=new _.Z("confirmDialogRenderer");var t$k;t$k=new _.Z("menuRenderer");_.oSH=new _.Z("menuFlexibleItemRenderer");var $hH=new _.Z("pollRenderer");_.ESv=new _.Z("backgroundPromoRenderer");var bf9;_.hK2=new _.Z("chipCloudRenderer");bf9=new _.Z("chipCloudChipRenderer");var mhs=new _.Z("dropdownRenderer");var lTv=new _.Z("gridVideoRenderer");_.WwL=new _.Z("itemSectionRenderer");_.GAN=new _.Z("messageRenderer");var AoJ=new _.Z("sortFilterHeaderRenderer");_.$H=new _.Z("videoRenderer");var Th6=new _.Z("resolveUrlCommandMetadata");var ro2=function(){F3.apply(this,arguments)};
_.O(ro2,F3);ro2.prototype.getAssociations=function(){return[]};_.qAJ=new _.Z("getAnswerCommand");_.cW=new _.Z("searchEndpoint");var QsN=new _.Z("genAiRichTextViewModel");var F_p=new _.Z("overviewAnswerViewModel");var js4=new _.Z("addToPlaylistServiceEndpoint");var Cet=new _.Z("clearSearchHistoryEndpoint");var sUN=new _.Z("clearWatchHistoryEndpoint");var k32=new _.Z("webSerializedServiceEndpointExtension");_.wEB=new _.Z("createCommentEndpoint");var ZTt=new _.Z("createCommentReplyEndpoint");var eef=new _.Z("performCommentActionEndpoint");var pEf=new _.Z("updateCommentEndpoint");var Kl6=new _.Z("updateCommentReplyEndpoint");_.EI=new _.Z("createPlaylistServiceEndpoint");var dgs=new _.Z("deletePlaylistEndpoint");var fPB=new _.Z("deleteVideoEndpoint");var XVn=new _.Z("getReportFormEndpoint");var Hhs=new _.Z("modifyChannelNotificationPreferenceEndpoint");var l3z;_.VF=new _.Z("offlinePlaylistEndpoint");l3z={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 WJ5;_.DS=new _.Z("offlineVideoEndpoint");WJ5={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 Dgf=new _.Z("pingingEndpoint");_.Vxk=new _.Z("selectActiveIdentityEndpoint");var SKf=new _.Z("setSettingEndpoint");var WYX=new _.Z("undoFeedbackEndpoint");var yfJ=new _.Z("unsubscribeEndpoint");_.n5v=new _.Z("updatedMetadataEndpoint");var ihf=function(){F3.apply(this,arguments)};
_.O(ihf,F3);ihf.prototype.getAssociations=function(){return[]};_.cff=new _.Z("updateLocalAppSettingCommand");var uuk=new _.Z("saveImageToDeviceEndpoint");var aP6=new _.Z("shareImageCommand");var IP8=new _.Z("sharingProviderDataCommand");var Ug8=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Ug8,_.Ti);var RFB=[0,_.G9,-1];Ug8.prototype.JSC$10270_serializeBinary=d8N(RFB);var Fl9=_.pw(RFB);var zF6=new _.Z("userMentionSuggestionRenderer");var X3N=new _.Z("liveChatTunnelCommand");var v5s=new _.Z("showSponsorshipsGiftOfferDialogCommand");var MxN=new _.Z("sponsorshipsScrollableShelfViewModel");var P4B=new _.Z("updateUpcomingEventReminderButtonStateCommand");var g5H=new _.Z("upcomingEventReminderButtonStateRenderer");var Oh2=new _.Z("subscribeEndpoint");var NO8=new _.Z("registerTasksCommand");var YKv=new _.Z("showDialogCommand");_.iX=new _.Z("showSheetCommand");var txv=new _.Z("showSnackbarCommand");var o5s=function(){F3.apply(this,arguments)};
_.O(o5s,F3);o5s.prototype.getAssociations=function(){return[]};var $gf=function(){F3.apply(this,arguments)};
_.O($gf,F3);$gf.prototype.getAssociations=function(){return[]};_.G1=new _.Z("avatarViewModel");var E5t=new _.Z("badgeViewModel");_.XN=new _.Z("buttonViewModel");_.hQ=new _.Z("chipViewModel");var vxo=new _.Z("collectionThumbnailViewModel");var hFv=new _.Z("contentPreviewImageViewModel");var bhL=new _.Z("decoratedAvatarViewModel");var e9B=new _.Z("downloadButtonViewModel");_.uFz=new _.Z("engagementBarViewModel");_.mgH=new _.Z("imageBannerViewModel");var F6X=new _.Z("lockupContentMetadataRowExtension");var lPf=new _.Z("lockupMetadataViewModel");_.WlJ=new _.Z("lockupViewModel");var GHJ=new _.Z("avatarStackViewModel");var AfN=function(){F3.apply(this,arguments)};
_.O(AfN,F3);AfN.prototype.getAssociations=function(){return[]};_.TOs=new _.Z("pageHeaderViewModel");var rf9=new _.Z("snackbarViewModel");var qKs=new _.Z("thumbnailHoverOverlayToggleActionsViewModel");_.v9=new _.Z("toggleButtonViewModel");var Qbs=function(){F3.apply(this,arguments)};
_.O(Qbs,F3);Qbs.prototype.getAssociations=function(){return[]};_.a1p=new _.Z("votingViewModel");var jb8=new _.Z("sectionHeaderViewModel");var C4s=new _.Z("notifyDropdownOptionSelectedCommand");var t8X=new _.Z("listViewModel");_.c9=new _.Z("listItemViewModel");var xg4=new _.Z("dialogHeaderViewModel");var Ll8=function(){F3.apply(this,arguments)};
_.O(Ll8,F3);Ll8.prototype.getAssociations=function(){return[]};var BO2=function(){F3.apply(this,arguments)};
_.O(BO2,F3);BO2.prototype.getAssociations=function(){return[]};var Jfk=function(){F3.apply(this,arguments)};
_.O(Jfk,F3);Jfk.prototype.getAssociations=function(){return[]};_.sb2=new _.Z("transcriptSubmitCaptionCorrectionCommand");var kH2=function(){F3.apply(this,arguments)};
_.O(kH2,F3);kH2.prototype.getAssociations=function(){return[]};var Sr5=new _.Z("unpluggedStringRunImage");var w3s=new _.Z("tabViewModel");var ZhJ=new _.Z("tabbedViewModel");var eFt=function(){F3.apply(this,arguments)};
_.O(eFt,F3);eFt.prototype.getAssociations=function(){return[]};_.p3B=new _.Z("updateDescriptionAction");var Kv9=new _.Z("updateToggleButtonTextAction");_.dVN=new _.Z("autoplaySwitchButtonRenderer");var Yb;_.fDs=new _.Z("multiMarkersPlayerBarRenderer");Yb=new _.Z("chapterRenderer");var H22=new _.Z("heatMarkerRenderer");var J1u=new _.Z("heatmapRenderer");var DVs=new _.Z("smartSkipPlayerScrimOverlayRenderer");var VAN=new _.Z("timedMarkerDecorationRenderer");var pTX=new _.Z("postWebToNativeMessageCommand");var SI4=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(SI4,_.Ti);var yQL=_.ew(SI4,[0,_.G9,-2]);var nH9=new _.Z("whitelistEditEndpoint");var i2H=new _.Z("clearUrlParamCommand");var cQH=new _.Z("commerceActionCommand");_.u39=new _.Z("getPaymentInstrumentsParamsCommand");var aDt=new _.Z("getPaymentsClientTokenCommand");var IDH=new _.Z("googlePaymentBillingCommand");var UVf=new _.Z("googlePaymentPurchaseManagerCommand");_.Rxv=new _.Z("logGtmCommand");var Fv9=new _.Z("updateCardItemOnClickCommand");_.zxN=new _.Z("ypcPauseSubscriptionCommand");_.Xrf=new _.Z("ypcResumeSubscriptionCommand");var vHk=function(){F3.apply(this,arguments)};
_.O(vHk,F3);vHk.prototype.getAssociations=function(){return[]};var MAB=function(){F3.apply(this,arguments)};
_.O(MAB,F3);MAB.prototype.getAssociations=function(){return[]};var PqH=function(){F3.apply(this,arguments)};
_.O(PqH,F3);PqH.prototype.getAssociations=function(){return[]};var gHJ=function(){F3.apply(this,arguments)};
_.O(gHJ,F3);gHJ.prototype.getAssociations=function(){return[]};var O2J=function(){F3.apply(this,arguments)};
_.O(O2J,F3);O2J.prototype.getAssociations=function(){return[]};var ezY=new _.Z("ypcOffersEndpoint");var NdN=new _.Z("cardItemRenderer"),YIL=new _.Z("cardItemTextRenderer");var tAf=new _.Z("commerceCartItemQuantityPickerRenderer");var oH4=new _.Z("linkCardRenderer");var BIO=new _.Z("quantityIncrementerButtonViewModel");var $VB=new _.Z("quantityIncrementerViewModel");var EHH=new _.Z("themedImageViewModel");_.hxs=new _.Z("ypcCancelRecurrenceEndpoint");var b26=new _.Z("ypcCompleteTransactionEndpoint");_.mVN=new _.Z("ypcGetCartEndpoint");_.kB=new _.Z("ypcGetOffersEndpoint");_.bq=new _.Z("ypcHandleTransactionEndpoint");var lD9=new _.Z("ypcLogWalletAnalyticDataEndpoint");_.Wv2=new _.Z("ypcRedeemCodeEndpoint");var GIf=new _.Z("ypcUpdateFopEndpoint");sK(Jf(1),Lh(4));ugG((new MessageChannel).port2);var AQ6=function(){this.register=new Map},hwY=function(K,d,f){K=K+"_"+d;
mv.register.has(K)?f=mv.register.get(K):(f=f(),mv.register.set(K,f));return f},Tdv=function(K){K=_.y(K.register.values());
for(var d=K.next();!d.done;d=K.next())_.Df(d.value,"ABORTED")};
AQ6.prototype.clear=function(){Tdv(this);this.register.clear()};
var mv=new AQ6;var cDY=Date.now().toString();var a5z,rQt=_.Hu.ytLoggingDocDocumentNonce_;rQt||(rQt=Oy(16),_.B6("ytLoggingDocDocumentNonce_",rQt));a5z=rQt;var MUJ={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 qIs;qIs=1;_.Nu=function(K){this.veData=K};
_.RG=function(K){return new _.Nu({trackingParams:K})};
_.vp=function(K,d,f,H,D,S){var n=qIs++;return new _.Nu({veType:K,veCounter:n,elementIndex:f,dataElement:d,youtubeData:H,jspbYoutubeData:D,loggingDirectives:S})};
_.V=_.Nu.prototype;
_.V.getAsJson=function(){var K={};this.veData.trackingParams!==void 0?K.trackingParams=this.veData.trackingParams:(K.veType=this.veData.veType,this.veData.veCounter!==void 0&&(K.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(K.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(K.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(K.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(K.isCounterfactual=!0);
return K};
_.V.getAsJspb=function(){var K=new RAN;this.veData.trackingParams!==void 0?K.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Ni(K,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Ni(K,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Ni(K,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Dq(K,5,!0));if(this.veData.dataElement!==void 0){var d=this.veData.dataElement.getAsJspb();_.fM(K,7,d)}this.veData.youtubeData!==void 0&&_.fM(K,8,this.veData.jspbYoutubeData);
return K};
_.V.toString=function(){return JSON.stringify(this.getAsJson())};
_.V.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.V.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.B6("yt_logging_screen.getRootVeType",zwG);_.B6("yt_logging_screen.getCurrentCsn",_.te);_.B6("yt_logging_screen.getCttAuthInfo",ow);_.B6("yt_logging_screen.setCurrentScreen",_.$Z);var Qa9=function(){this.events=new Map},jaL=function(K){var d=[];
K=_.y(K.events.values());for(var f=K.next();!f.done;f=K.next())d.push(f.value);return d};
Qa9.prototype.clear=function(){this.events.clear()};var xV6=function(){this.logTransport=new CqH;this.loggedEventRegister=new Qa9;this.unloggedEventRegister=new Qa9;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10327_flushTimer=new _.wX(this.flushInterval);this.JSC$10327_flushTimer.listen("tick",this.flush,!1,this)};
xV6.prototype.flush=function(){if(this.eventsCount){var K={loggedEvents:jaL(this.loggedEventRegister),unloggedEvents:jaL(this.unloggedEventRegister)};if(_.M("export_player_version_to_ytconfig")){var d;(d=_.mD("PLAYER_CLIENT_VERSION"))?(d=d.split("-")[0].replace(/\./g,""),d=isNaN(Number(d))?"0":d):d="";var f=_.mD("PLAYER_CLIENT_VERSION");if(f){f=f.split("-");var H="";f.length>1&&(H=f[f.length-1]);f=ixz(H.startsWith("canary_experiment")?"canary":H.startsWith("canary_control")?"control":"none")}else f=
"CLIENT_CANARY_STATE_UNKNOWN";K.dimensions={playerClientVersion:d,playerCanaryState:f}}this.logTransport.flush(K);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10327_flushTimer.enabled&&this.JSC$10327_flushTimer.stop()}};
var LvB=function(K){lq==null&&(lq=new xV6);var d=lq;var f=d.loggedEventRegister;K.dimensions=K.dimensions||{};K.dimensions.csn=_.te()||"";var H=OxS(K.dimensions).join(";");if(K.records!=null)if(f.events.has(H)){var D;(D=f.events.get(H).records)==null||D.push.apply(D,_.Me(K.records))}else f.events.set(H,K);d.JSC$10327_flushTimer.enabled||d.JSC$10327_flushTimer.start();d.eventsCount++;d.eventsCount>=100&&d.flush()};var CqH=function(){};
CqH.prototype.flush=function(K,d){_.M("enable_client_sli_logging")&&_.t3("sliEventBatch",K,{sendIsolatedPayload:!!d})};var lq;var JQL;JQL=function(K){var d=BdJ;K=K===void 0?{}:K;d=d.name;var f=EkB("SUCCESS");LvB({dimensions:K,records:[{name:d,state:"SLI_STATE_END",status:f}]})};
_.bx5=function(K,d,f,H){this.name=K;this.sliId=d;this.timeoutMs=f;this.statusOnTimeout=H;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.bx5.prototype.getId=function(){return this.sliId};
_.Hd=function(K,d){d=d===void 0?{}:d;K.ongoing||(K.ongoing=!0,K.dimensions=d,K.logSliId=Lxs(),LvB({dimensions:K.dimensions,records:[{name:K.name,state:"SLI_STATE_START",sliId:K.logSliId}]}),K.timeoutMs>0&&(K.timeoutHandle=setTimeout(function(){_.Df(K,K.statusOnTimeout)},K.timeoutMs)))};
_.Df=function(K,d){K.ongoing&&(K.timeoutMs>0&&clearTimeout(K.timeoutHandle),K.ongoing=!1,d={dimensions:K.dimensions,records:[{name:K.name,status:EkB(d),state:"SLI_STATE_END",sliId:K.logSliId}]},mv.register.delete(K.name+"_"+K.sliId),LvB(d))};var BdJ=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var sa6=function(){F3.apply(this,arguments)};
_.O(sa6,F3);sa6.prototype.getAssociations=function(){return[]};var JWJ=new _.Z("highlightTextDecoratorColorMapExtension");var Ljp=new _.Z("styleRunColorMapExtension");var rDu=_.Am(["data-"]),jtJ={};var xf5={};var Wr=function(K){this.wrappedPromise_=K===void 0?null:K;this.state_=0;this.JSC$10359_value_=null};
Wr.prototype.then=function(K,d,f){return this.wrappedPromise_?this.wrappedPromise_.then(K,d,f):this.state_===1&&K?(K=K.call(f,this.JSC$10359_value_))&&typeof K.then==="function"?K:_.GI(K):this.state_===2&&d?(K=d.call(f,this.JSC$10359_value_))&&typeof K.then==="function"?K:_.kIJ(K):this};
Wr.prototype.getValue=function(){return this.JSC$10359_value_};
Wr.prototype.isRejected=function(){return this.state_==2};
Rq8(Wr);_.kIJ=function(K){var d=new Wr;K=K===void 0?null:K;d.state_=2;d.JSC$10359_value_=K===void 0?null:K;return d};
_.GI=function(K){var d=new Wr;K=K===void 0?null:K;d.state_=1;d.JSC$10359_value_=K===void 0?null:K;return d};var VIO="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var wrN=["load","abort","error"],AQ=function(K,d,f){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10379_maxAspectRatio_=K;this.disableAnimation_=d===void 0?!1:d;this.disableExifRotation_=f===void 0?!1:f;this.JSC$10379_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10379_reject_=this.resolve_=null};
AQ.prototype.transform=function(K){var d=this;this.mime_=K.type;GM(ufB(K),this.dataUrlRead_,this.readError_,this);GM(cy4(K.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(f,H){d.resolve_=f;d.JSC$10379_reject_=H})};
AQ.prototype.dataUrlRead_=function(K){this.dataUrl_=K;this.angle_!=null&&Z2s(this)};
AQ.prototype.exifRead_=function(K){if(this.disableExifRotation_)this.angle_=0;else{a:if(K=new DataView(K),K.byteLength<2||K.getUint16(0)!==65496)K=-2;else{for(var d=2,f=K.byteLength;d<f;){var H=K.getUint16(d),D=K.getUint16(d+2);if(H===65505){d+=4;H=K.getUint32(d);D=K.getUint16(d+4);if(H!==1165519206||D!==0)break;d+=6;H=K.getUint16(d)===18761;d+=K.getUint32(d+4,H);D=K.getUint16(d,H);d+=2;for(var S=0;S<D;S++){if(K.getUint16(d,H)===274){d+=8;K=K.getUint16(d,H);break a}d+=12}}else if(H>>8!==255)break;
else d+=D+2}K=-1}switch(K){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&&Z2s(this)};
AQ.prototype.readError_=function(){this.JSC$10379_reject_()};
var Z2s=function(K){IG(K.JSC$10379_image_,wrN,K.completeTransform_,!1,K);K.JSC$10379_image_.src=_.Xa(K.dataUrl_).toString();K.JSC$10379_image_.src!=zY.toString()&&K.JSC$10379_image_.src.substr(0,11)==="data:image/"||K.JSC$10379_reject_()};
AQ.prototype.completeTransform_=function(){if(this.JSC$10379_image_.src!=zY.toString()){var K=_.Xa(this.dataUrl_),d=this.JSC$10379_image_.naturalHeight?this.JSC$10379_image_.naturalWidth/this.JSC$10379_image_.naturalHeight:null;this.invalidAspectRatio=d>this.JSC$10379_maxAspectRatio_||d<1/this.JSC$10379_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var f=this.JSC$10379_image_.naturalWidth,H=this.JSC$10379_image_.naturalHeight,D=d=0,S=this.JSC$10379_image_.naturalHeight?this.JSC$10379_image_.naturalWidth/
this.JSC$10379_image_.naturalHeight:null;S>this.JSC$10379_maxAspectRatio_?(f=this.JSC$10379_maxAspectRatio_*H,d=(f-this.JSC$10379_image_.naturalWidth)/2,this.cropped=!0):S<1/this.JSC$10379_maxAspectRatio_?(H=this.JSC$10379_maxAspectRatio_*f,D=(H-this.JSC$10379_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)S=f,f=H,H=S,S=d,d=D,D=S;switch(this.angle_){case 90:D-=f;break;case 180:d-=f;D-=H;break;case 270:d-=
H}this.cropped||this.angle_%360!==0?(K=document.createElement("canvas"),K.width=f||1,K.height=H||1,this.JSC$10379_image_.naturalWidth&&this.JSC$10379_image_.naturalHeight&&(f=K.getContext("2d"),f.rotate(Math.PI/180*this.angle_),f.drawImage(this.JSC$10379_image_,d,D,this.JSC$10379_image_.naturalWidth,this.JSC$10379_image_.naturalHeight)),this.transformedData=_.Xa(K.toDataURL(this.mime_))):this.transformedData=K}else this.transformedData=K;this.resolve_(this)}};var TI=function(K,d){_.D5.call(this,K);this.value=d};
_.O(TI,_.D5);
var rd=function(K,d,f,H,D,S,n){n=n===void 0?!1:n;_.iJ.call(this);var u=this;this.JSC$10384_url_=K;this.channelId_=d;this.maxFileSizeMb_=f;this.JSC$10384_maxAspectRatio_=H;this.dropZoneEl_=D;this.rejectInvalidAspectRatio_=n;this.selectButtonEl_=S;this.JSC$10384_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new f2(this.dropZoneEl_);this.selectOverlay_=new Hr(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10384_image_=this.transfer_=null;this.handler_=new _.Zt(this);_.cy(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(S,"click",function(){u.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.O(rd,_.iJ);rd.prototype.disposeInternal=function(){for(var K=this.selectButtonEl_.nextSibling;K&&K.parentNode&&K.tagName=="INPUT";)K.parentNode.removeChild(K),K=this.selectButtonEl_.nextSibling;this.cancel();_.iJ.prototype.disposeInternal.call(this)};
rd.prototype.uploadPromise=function(){if(this.JSC$10384_image_==null)return null;this.uploadPromise_||ex9(this);return this.uploadPromise_};
rd.prototype.cancel=function(){prt(this);this.JSC$10384_image_=null};
var prt=function(K){K.transfer_&&K.transfer_.cancel();K.transfer_=null;K.uploadPromise_=null;K.resolve_=null;K.JSC$10384_reject_=null},ex9=function(K){prt(K);
K.transfer_=_.o6s(K.JSC$10384_url_,{"X-YouTube-ChannelId":K.channelId_},K.JSC$10384_image_);K.handler_.listenOnce(K.transfer_,"l",K.JSC$10386_onUploadComplete_);K.handler_.listenOnce(K.transfer_,"n",K.onUploadError_);K.transfer_.run();K.uploadPromise_=new Promise(function(d,f){K.resolve_=d;K.JSC$10384_reject_=f})};
_.V=rd.prototype;_.V.onChange_=function(K){K.files.length&&(this.JSC$10384_image_=K.files[0],this.JSC$10384_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10384_image_=null,this.dispatchEvent(new TI("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(ex9(this),(new AQ(this.JSC$10384_maxAspectRatio_)).transform(this.JSC$10384_image_).then((0,_.Om)(this.onPreview_,this),(0,_.Om)(this.onPreviewError_,this))))};
_.V.onPreview_=function(K){if(K.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10384_image_=null),this.dispatchEvent(new TI("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;K.cropped&&this.dispatchEvent(new TI("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new TI("yt.comments.ImageUploadOverlay.CHANGE_EVENT",K.transformedData))};
_.V.onPreviewError_=function(){this.JSC$10384_image_=null;this.dispatchEvent(new TI("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.V.onHover_=function(K){K.stopPropagation();K.preventDefault();if(K.type==="dragover")K=!0;else if(K.type==="dragleave")K=!1;else return;this.dispatchEvent(new TI("yt.comments.ImageUploadOverlay.HOVER_EVENT",K))};
_.V.JSC$10386_onUploadComplete_=function(){var K=(0,_.qjH)(this.transfer_.getResponseText());this.resolve_(K.encryptedBlobId)};
_.V.onUploadError_=function(){this.JSC$10384_reject_();prt(this)};var KMs=function(K){K=K||{};var d={},f={};this.url=K.url||"";this.args=K.args||_.PR.clone(d);this.assets=K.assets||{};this.attrs=K.attrs||_.PR.clone(f);this.fallback=K.fallback||null;this.fallbackMessage=K.fallbackMessage||null;this.html5=!!K.html5;this.disable=K.disable||{};this.loaded=!!K.loaded;this.messages=K.messages||{}};
KMs.prototype.clone=function(){var K=new KMs,d;for(d in this)if(this.hasOwnProperty(d)){var f=this[d];K[d]=_.Rz(f)=="object"?_.PR.clone(f):f}return K};var dpv,fBt,H59,x6,VJs,S0s,y_2,nf9,i5H,c_4,uvB,aBN,IBs,Up4,Rl6,FMs,zl2,X5H,vfJ,MJs,PiL,gf4,O5J,Nx9,Y0t,tJN,ofN,$p9,Efs,y8Y,hl6,b5J,mpv,lB2,WM4,GZ9,A_2,TxJ,r_v,q0k,Qv6,jvB,Cik,xps,LMs,Bxt,J_8,sv8,kZv,w5N,Z5f,elv,p5s,KPs,dz6,fIJ,qV,HIN,DzL,VbH,S9k,yjv,ncv,iIJ,cj9,u8k,aI4,IIk,Uz9,RLJ,FP4,zL4,Xnf,vcN,Mbt,V9N,Pmt,gcJ,OIv,Nsk,Y9N,tb4,oct,$z8,EcB,hL4,bIt,mzk,lIk,WPf,G8H,AjB,TsJ,rjv,q9L,QCs,jCH,Cms,xz2,LP4,BsJ;dpv=["account/accounts_list"];fBt=["acknowledge_channel_tou_strike"];H59=["notification/add_upcoming_event_reminder"];
_.Dpk=["att/get"];x6=["browse","music/browse","unplugged/browse"];VJs=["channel/claim_legacy_youtube_channel"];S0s=["history/clear_search_history"];y_2=["history/clear_watch_history"];nf9=["comment/perform_comment_action"];i5H=["comment/get_comment_replies"];c_4=["ypc/commerce_action"];uvB=["backstage/create_post"];aBN=["live/create_broadcast"];IBs=["channel/create_channel"];Up4=["comment/create_comment_reply"];Rl6=["comment/create_comment"];FMs=["live_chat/create_poll"];zl2=["playlist/create"];
X5H=["decorate_message"];vfJ=["live_chat/delete_message"];MJs=["playlist/delete"];PiL=["video/delete"];gf4=["like/dislike"];O5J=["dismissal/dismiss"];Nx9=["flag/flag"];Y0t=["flow"];tJN=["account/account_menu"];ofN=["playlist/get_add_to_playlist"];$p9=["get_answer"];Efs=["channel/get_channel_creation_form"];y8Y=["offline/get_download_action"];hl6=["kids/get_kids_blocklist_picker"];b5J=["live_chat/get_item_context_menu"];mpv=["live_chat/get_live_chat_message_buy_flow"];lB2=["live_chat/get_live_chat_replay"];
WM4=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];GZ9=["live_chat/get_live_chat_super_sticker_buy_flow"];A_2=["notification/get_notification_menu"];TxJ=["playlist/get_settings_editor"];r_v=["backstage/get_post_video_preview"];q0k=["account/get_profile_card"];Qv6=["share/get_share_panel"];jvB=["share/get_sharing_provider_data"];Cik=["get_survey"];xps=["notification/get_unseen_count"];LMs=["get_user_mention_suggestions"];Bxt=["get_watch"];J_8=["guide"];
sv8=["feedback"];kZv=["kids/update_blacklist"];w5N=["like/like"];Z5f=["live_chat/live_chat_action"];elv=["live_chat/manage_user"];p5s=["video_manager/metadata_update"];KPs=["live_chat/moderate"];dz6=["notification/modify_channel_preference"];fIJ=["notification/opt_out"];qV=["get_panel","get_posts_by_host_panel"];HIN=["player"];DzL=["browse/edit_playlist"];VbH=["notification/record_interactions"];S9k=["reel/reel_item_watch"];yjv=["reel/reel_watch_sequence"];ncv=["like/removelike"];iIJ=["notification/remove_upcoming_event_reminder"];
cj9=["flag/get_form"];u8k=["miniapp/report_value"];aI4=["navigation/resolve_url"];IIk=["channel/reveal_business_email"];Uz9=["in_video/search"];RLJ=["search","sfv/search","unplugged/search"];FP4=["live_chat/send_message"];zL4=["live_chat/send_live_chat_vote"];Xnf=["account/set_setting"];vcN=["submit_caption_correction"];Mbt=["subscription/subscribe"];V9N=["get_transcript"];Pmt=["resolve_location","unplugged/resolve_location"];gcJ=["subscription/unsubscribe"];OIv=["backstage/update_post"];Nsk=["channel_edit/update_channel_page_settings"];
Y9N=["comment/update_comment_reply"];tb4=["comment/update_comment"];oct=["comment/update_comments_settings"];$z8=["creator/update_creator_channel"];EcB=["pdg/update_enablement"];hL4=["updated_metadata"];bIt=["channel_edit/validate_channel_handle"];mzk=["verify_age"];lIk=["next","unplugged/watch_next"];WPf=["whitelist/edit"];G8H=["ypc/cancel_recurrence"];AjB=["ypc/complete_transaction"];TsJ=["ypc/get_cart"];rjv=["ypc/get_fix_instrument_params"];q9L=["ypc/get_offers"];QCs=["ypc/get_payment_instruments_params"];
jCH=["ypc/handle_transaction"];Cms=["ypc/log_payment_server_analytics"];xz2=["ypc/pause_subscription"];LP4=["ypc/redeem_code"];BsJ=["ypc/resume_subscription"];var Jj8=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,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,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,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,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,
220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,
253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,
96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,
8197,168501,156512,161613,156509,208274,161612,161614,262801,262800,262799,262802,262798,82039];var nd=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.B6("yt.msgs_",nd);var QP=new _.xn("ACTION_ROUTER_TOKEN");_.jA=function(){this.autonavState_=_.M("kevlar_is_pupi_enabled")?2:ziX()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.jA.prototype.getState=function(){return this.autonavState_};
_.jA.prototype.pause=function(K){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=K):this.autonavState_==1&&(this.disabledAutonavPauseReason_=K)};
_.jA.prototype.setState=function(K,d,f){d&&(this.autoplayChangedByUser=!0);d=this.autonavState_===3||K===3;this.autonavState_!=K&&(this.autonavState_=K,K!=3&&_.Xtp(K==2),K=_.M("kevlar_is_pupi_enabled")?f||d:!0,_.rU.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,K,f))};
_.jA.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.xb(_.jA);var C2=function(){this.hasRun=!1};var xH={},bGX=(xH.auto_search="LATENCY_ACTION_AUTO_SEARCH",xH.ad_to_ad="LATENCY_ACTION_AD_TO_AD",xH.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",xH.app_startup="LATENCY_ACTION_APP_STARTUP",xH.browse="LATENCY_ACTION_BROWSE",xH.cast_splash="LATENCY_ACTION_CAST_SPLASH",xH.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",xH.channels="LATENCY_ACTION_CHANNELS",xH.chips="LATENCY_ACTION_CHIPS",xH.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",xH.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
xH.editor="LATENCY_ACTION_EDITOR",xH.embed="LATENCY_ACTION_EMBED",xH.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",xH.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",xH.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",xH.explore="LATENCY_ACTION_EXPLORE",xH.favorites="LATENCY_ACTION_FAVORITES",xH.home="LATENCY_ACTION_HOME",xH.inboarding="LATENCY_ACTION_INBOARDING",xH.landing="LATENCY_ACTION_LANDING",xH.library="LATENCY_ACTION_LIBRARY",xH.live=
"LATENCY_ACTION_LIVE",xH.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",xH.management="LATENCY_ACTION_MANAGEMENT",xH.mini_app="LATENCY_ACTION_MINI_APP_PLAY",xH.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",xH.onboarding="LATENCY_ACTION_ONBOARDING",xH.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",xH.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",xH.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",xH.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
xH.prebuffer="LATENCY_ACTION_PREBUFFER",xH.prefetch="LATENCY_ACTION_PREFETCH",xH.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",xH.profile_switcher="LATENCY_ACTION_LOGIN",xH.projects="LATENCY_ACTION_PROJECTS",xH.reel_watch="LATENCY_ACTION_REEL_WATCH",xH.results="LATENCY_ACTION_RESULTS",xH.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",xH.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",xH.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",xH.review="LATENCY_ACTION_REVIEW",xH.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",xH.search_ui="LATENCY_ACTION_SEARCH_UI",xH.search_suggest="LATENCY_ACTION_SUGGEST",xH.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",xH.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",xH.seek="LATENCY_ACTION_PLAYER_SEEK",xH.settings="LATENCY_ACTION_SETTINGS",xH.store="LATENCY_ACTION_STORE",xH.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",xH.tenx="LATENCY_ACTION_TENX",xH.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",xH.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
xH.watch="LATENCY_ACTION_WATCH",xH.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",xH["watch,watch7"]="LATENCY_ACTION_WATCH",xH["watch,watch7_html5"]="LATENCY_ACTION_WATCH",xH["watch,watch7ad"]="LATENCY_ACTION_WATCH",xH["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",xH.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",xH.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",xH.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",xH.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",xH.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",xH.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",xH.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",xH.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",xH);var ZGu=function(K,d){UA.call(this,1,arguments);this.timer=d};
_.O(ZGu,UA);var wtS=new us5("aft-recorded",ZGu);var Gdu=_.Hu.ytLoggingGelSequenceIdObj_||{};_.B6("ytLoggingGelSequenceIdObj_",Gdu);var L2=_.Hu.ytLoggingLatencyUsageStats_||{};_.B6("ytLoggingLatencyUsageStats_",L2);var Br=function(){this.cleanupJob=0},rzY=function(){Br.instance||(Br.instance=new Br);
return Br.instance};
_.V=Br.prototype;_.V.baseline=function(K,d,f){JQ(this,"baseline_"+K)||_.t3("latencyActionBaselined",{clientActionNonce:K},{timestamp:d,cttAuthInfo:f})};
_.V.tick=function(K,d,f,H){JQ(this,"tick_"+K+"_"+d)||_.t3("latencyActionTicked",{tickName:K,clientActionNonce:d},{timestamp:f,cttAuthInfo:H})};
_.V.info=function(K,d,f){var H=Object.keys(K).join("");JQ(this,"info_"+H+"_"+d)||(K=Object.assign({},K),K.clientActionNonce=d,_.t3("latencyActionInfo",K,{cttAuthInfo:f}))};
_.V.jspbInfo=function(K,d,f){for(var H="",D=0;D<fw(K).length;D++)fw(K)[D]!==void 0&&(H=D===0?H.concat(""+D):H.concat("_"+D));JQ(this,"info_"+H+"_"+d)||(_.aL(K,2,d),d={cttAuthInfo:f},f=_.M("jspb_sparse_encoded_pivot")?new Xb([{}]):new Xb,_.Hg(f,7,hnt,K),Az5("latencyActionInfo",f,d))};
_.V.span=function(K,d,f){var H=Object.keys(K).join("");JQ(this,"span_"+H+"_"+d)||(K.clientActionNonce=d,_.t3("latencyActionSpan",K,{cttAuthInfo:f}))};
var JQ=function(K,d){L2[d]=L2[d]||{count:0};var f=L2[d];f.count++;f.time=(0,_.k_)();K.cleanupJob||(K.cleanupJob=_.va(_.oc,function(){var H=(0,_.k_)(),D;for(D in L2)L2[D]&&H-L2[D].time>6E4&&delete L2[D];K&&(K.cleanupJob=0)},5E3));
return f.count>5?(f.count===6&&Math.random()*1E5<1&&(f=new _.X4("CSI data exceeded logging limit with key",d.split("_")),d.indexOf("plev")>=0||_.h3(f)),!0):!1};var sCH,k8s;sCH=window;k8s=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.RS=sCH.performance||sCH.mozPerformance||sCH.msPerformance||sCH.webkitPerformance||new k8s;var kdp=!1,QZX=!1,eiB=(0,_.Om)(_.RS.clearResourceTimings||_.RS.webkitClearResourceTimings||_.RS.mozClearResourceTimings||_.RS.msClearResourceTimings||_.RS.oClearResourceTimings||_.SO,_.RS);var wn8=window;wn8.ytcsi&&(wn8.ytcsi.infoGel=_.Ox,wn8.ytcsi.tick=_.YJ);var cou=function(K){UA.call(this,1,arguments);this.csn=K};
_.O(cou,UA);var FSz=new us5("screen-created",cou),t$S=[],ifX=YAn,oSX=0,hy=new Map,u2u=new Map,aTz=new Map;var tv=Symbol("tf"),js=new WeakMap;var sI=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},aG=function(){sI.instance||(sI.instance=new sI);
return sI.instance};
_.V=sI.prototype;_.V.setClient=function(K){this.client=K};
_.V.JSC$10465_newScreen=function(){this.clear();this.csn=_.te()};
_.V.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.V.reportShown=function(K,d,f){var H=this.JSC$10465_getTrackingParams(K),D=K.visualElement?K.visualElement:H;d=this.shownElements.has(D);var S=this.visibleState.get(D);this.shownElements.add(D);this.visibleState.set(D,!0);K.impressionLog&&!d&&K.impressionLog();if(H||K.visualElement)if(f=ZI4(this,K,f))if(D=eLH(this,K),kH(this,K)||D){H=K.visualElement?K.visualElement:_.RG(H);var n=K.interactionLoggingClientData;D||d?kH(this,K)&4?S||M$u(this.client,f,H,n):kH(this,K)&1&&!d&&zKS(this.client,f,H,n):zKS(this.client,
f,H,n)}};
_.V.reportHidden=function(K,d,f){var H=this.JSC$10465_getTrackingParams(K),D=K.visualElement?K.visualElement:H;d=this.hiddenElements.has(D);var S=this.visibleState.get(D);this.hiddenElements.add(D);this.visibleState.set(D,!1);if(S===!1)return!0;if(!H&&!K.visualElement)return!1;f=ZI4(this,K,f);if(!f||!kH(this,K)&&eLH(this,K))return!1;H=K.visualElement?K.visualElement:_.RG(H);kH(this,K)&8?PeG(this.client,f,H):kH(this,K)&2&&!d&&(K=this.client,d=Ex({cttAuthInfo:ow(f)||void 0},f),H={csn:f,ve:H.getAsJson(),
eventType:2},f==="UNDEFINED_CSN"?mq("visualElementHidden",d,H):K?gU("visualElementHidden",H,K,d):_.t3("visualElementHidden",H,d));return!0};
_.V.JSC$10465_getTrackingParams=function(K){var d=this.getData(K),f,H;if(_.M("il_use_view_model_logging_context")&&(d==null?0:(f=d.context)==null?0:(H=f.loggingContext)==null?0:H.loggingDirectives))return d.context.loggingContext.loggingDirectives.trackingParams||"";var D,S;if(d==null?0:(D=d.rendererContext)==null?0:(S=D.loggingContext)==null?0:S.loggingDirectives)return d.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(d==null?0:d.loggingDirectives)return d.loggingDirectives.trackingParams||
"";var n;return((n=K.veContainer)==null?0:n.trackingParams)?K.veContainer.trackingParams:(d==null?void 0:d.trackingParams)||""};
_.V.JSC$10465_elementShouldLogGesture=function(K,d){K=this.getData(K);return!!((Math.floor(Number(K&&K.loggingDirectives&&K.loggingDirectives.gestures&&K.loggingDirectives.gestures.types||""))||0)&d)};
_.V.JSC$10465_getNearestParentVe=function(K){var d=this.JSC$10465_getTrackingParams(K);return K.visualElement?K.visualElement:d?_.RG(d):K.parentElement?this.JSC$10465_getNearestParentVe(K.parentElement):null};
var ZI4=function(K,d,f){var H=_.te(f);return K.csn===null||H===K.csn||f?H:(K=new _.X4("VisibilityLogger called before newScreen",{caller:d.tagName,previous_csn:K.csn,current_csn:H}),_.h3(K),null)};
sI.prototype.getData=function(K){var d,f=K.data||((d=K.props)==null?void 0:d.data);if(!f&&_.M("enable_wiz_always_try_logging_info_map")){var H;f=(H=Cd(K))==null?void 0:H[tv]}else if(K.isWebComponentWrapper){var D;f=(D=Cd(K))==null?void 0:D[tv]}return f};
var eLH=function(K,d){var f;return!((f=K.getData(d))==null||!f.loggingDirectives)},kH=function(K,d){K=K.getData(d);
return Math.floor(Number(K&&K.loggingDirectives&&K.loggingDirectives.visibility&&K.loggingDirectives.visibility.types||""))||1};var wd;wd=function(){};
_.nZ=function(){wd.instance||(wd.instance=new wd);return wd.instance};
wd.prototype.setClient=function(K){_.AR(aG().setClient).bind(aG())(K)};
_.pn9=function(){_.nZ();_.AR(aG().JSC$10465_newScreen).bind(aG())()};
wd.prototype.clear=function(){_.AR(aG().clear).bind(aG())()};
wd.prototype.reportShown=function(K,d,f){_.AR(aG().reportShown).bind(aG())(K,d,f)};
wd.prototype.reportHidden=function(K,d,f){return _.AR(aG().reportHidden).bind(aG())(K,d,f)};
var jkX=function(K,d){return _.AR(aG().JSC$10465_getTrackingParams).bind(aG())(d)},XXX=function(K,d){return _.AR(aG().JSC$10465_getNearestParentVe).bind(aG())(d)};var ZD,KZs;ZD=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};
_.cv=function(){ZD.instance||(ZD.instance=new ZD);return ZD.instance};
ZD.prototype.setClient=function(K){this.client=K};
KZs=function(K,d,f){f=f===void 0?{}:f;_.AR(function(){var H,D,S,n=((H=_.P(d==null?void 0:d.commandMetadata,_.B0))==null?void 0:H.rootVe)||((D=_.P(d==null?void 0:d.commandMetadata,Kot))==null?void 0:(S=D.screenVisualElement)==null?void 0:S.uiType);if(n){H=_.P(d==null?void 0:d.commandMetadata,Th6);if(H==null?0:H.parentTrackingParams){var u=_.RG(H.parentTrackingParams);if(H.parentCsn)var a=H.parentCsn}else f.clickedVisualElement?u=f.clickedVisualElement:d.clickTrackingParams&&(u=_.RG(d.clickTrackingParams));
a:{H=_.P(d,_.qu);D=_.P(d,Dru);if(H){if(D=vnG(H,"VIDEO")){H={token:D,videoId:H.videoId};break a}}else if(D&&(H=vnG(D,"PLAYLIST"))){H={token:H,playlistId:D.playlistId};break a}H=void 0}f=Object.assign({},{cttAuthInfo:H,parentCsn:a},f);if(_.M("expectation_logging")){var R;f.loggingExpectations=((R=_.P(d==null?void 0:d.commandMetadata,Kot))==null?void 0:R.loggingExpectations)||void 0}_.eA(K,n,u,f)}else _.h3(new _.X4("Error: Trying to create a new screen without a rootVeType",d))})()};
_.eA=function(K,d,f,H){H=H===void 0?{}:H;_.AR(function(){Jj8.includes(d)||(_.h3(new _.X4("createClientScreen() called with a non-page VE",d)),d=83769);H.isHistoryNavigation||(K.forwardHistoryStack=[],K.backHistoryStack.push({rootVe:d,key:H.key||""}));K.graftQueue=[];K.stateChangedQueue=[];H.dataPromises?drB(K,d,f,H):fHk(K,d,f,H)})()};
_.HLs=function(K,d,f){f=f===void 0?0:f;_.AR(function(){d.then(function(H){K.pendingScreenCreation.has(f)&&K.pendingScreenFn&&K.pendingScreenFn();var D=_.te(f),S=_.YZ(f);if(D&&S){var n;(H==null?0:(n=H.response)==null?0:n.trackingParams)&&bB(K.client,D,S,_.RG(H.response.trackingParams));var u;(H==null?0:(u=H.playerResponse)==null?0:u.trackingParams)&&bB(K.client,D,S,_.RG(H.playerResponse.trackingParams))}})})()};
ZD.prototype.graftServerVe=function(K,d,f){var H=this;return _.AR(function(){var D=_.RG(K);_.p2(H,D,d,f);return D})()};
_.vyG=function(K,d,f,H){return _.M("enable_client_ve_spec")&&d.clientVeSpec?(d=_.vp(d.clientVeSpec.uiType,void 0,d.clientVeSpec.elementIndex,d.clientVeSpec.clientYoutubeData,void 0,d),_.p2(K,d,f,H)?d:null):d.trackingParams?K.graftServerVe(d.trackingParams,f,H):null};
_.iz=function(K,d,f,H){return _.AR(function(){if(!d.veType)return _.EN(new _.X4("Error: Trying to graft a client VE without a veType.")),null;if(d.visibilityTypes){var D=d.visibilityTypes.reduce(function(S,n){return S|n});
D={visibility:{types:String(D)}}}D=_.vp(d.veType,d.visualElement,d.elementIndex,d.clientYouTubeData,void 0,D);return _.p2(K,D,f,H)?D:null})()};
_.p2=function(K,d,f,H){H=H===void 0?0:H;return _.AR(function(){if(K.pendingScreenCreation.has(H))return K.graftQueue.push([d,f]),!0;var D=_.te(H),S=f||_.YZ(H);if(D&&S){if(_.M("combine_ve_grafts")){var n=K.cachedVisualElements.get(S.toString());n?n.push(d):(K.cachedRootVisualElements.set(S.toString(),S),K.cachedVisualElements.set(S.toString(),[d]));K.attachTimeout||(K.attachTimeout=_.va(_.oc,function(){Dr4(K,D)},1200))}else bB(K.client,D,S,d);
return!0}return!1})()};
_.K5=function(K,d,f){f=f===void 0?0:f;var H=K.recurringGrafts.get(f)||new Map;if(_.M("smarter_ve_dedupping"))for(var D=Array.from(H.keys()),S=0;S<D.length;S++){var n=void 0,u=void 0;var a=d;var R=D[S];R.isClientVe()&&a.isClientVe()?(n=a.getAsJson(),u=R.getAsJson(),a=n.veType!==u.veType||n.elementIndex!==u.elementIndex||n.dataElement!==u.dataElement||a.getLoggingDirectives()!==R.getLoggingDirectives()?!1:!0):a=R.veData.trackingParams!==void 0&&a.veData.trackingParams!==void 0?((u=a.veData)==null?void 0:
u.trackingParams)===((n=R.veData)==null?void 0:n.trackingParams):!1;if(a)return}else if(H.has(d))return;H.set(d,void 0);K.recurringGrafts.set(f,H);_.te(f)==="UNDEFINED_CSN"||K.pendingScreenCreation.has(f)||_.p2(K,d,void 0,f)};
_.dx=function(K,d,f,H){H=_.te(H===void 0?0:H);if(!H)return!1;OfB(K.client,H,d,f);return!0};
_.f5=function(K,d,f,H){if(!d)return!1;H=_.te(H===void 0?0:H);if(!H)return!1;OfB(K.client,H,_.RG(d),f);return!0};
_.bh=function(K,d){var f=d.getScreenLayer&&d.getScreenLayer();if(d.visualElement)return _.dx(K,d.visualElement,void 0,f);d=jkX(_.nZ(),d);return _.f5(K,d,void 0,f)};
ZD.prototype.clickCommand=function(K,d,f){return _.f5(this,K.clickTrackingParams,d,f===void 0?0:f)};
ZD.prototype.stateChanged=function(K,d,f){this.visualElementStateChanged(_.RG(K),d,f===void 0?0:f)};
ZD.prototype.visualElementStateChanged=function(K,d,f){f=f===void 0?0:f;f===0&&this.pendingScreenCreation.has(f)?this.stateChangedQueue.push([K,d]):this.logStateChanged(K,d,f)};
ZD.prototype.logStateChanged=function(K,d,f){f=f===void 0?0:f;var H=_.te(f);K=K||_.YZ(f);return H&&K?(Nhn(this.client,H,K,d),!0):!1};
var drB=function(K,d,f,H){H=H===void 0?{}:H;K.pendingScreenCreation.add(H.layer||0);K.pendingScreenFn=function(){fHk(K,d,f,H);var n=_.YZ(H.layer);if(n){for(var u=_.y(K.graftQueue),a=u.next();!a.done;a=u.next())a=a.value,_.p2(K,a[0],a[1]||n,H.layer);n=_.y(K.stateChangedQueue);for(u=n.next();!u.done;u=n.next())u=u.value,K.logStateChanged(u[0],u[1])}};
f||_.te(H.layer)||K.pendingScreenFn();if(H.dataPromises)for(var D=_.y(H.dataPromises),S=D.next();!S.done;S=D.next())_.HLs(K,S.value,H.layer);else _.$7(Error("uf"))},fHk=function(K,d,f,H){H=H===void 0?{}:H;
var D=void 0;H.layer||(H.layer=0);D=H.parentLayer!==void 0?H.parentLayer:H.layer;var S=_.te(D);D=_.YZ(D);var n=f||D,u;n&&(H.parentCsn!==void 0?u={clientScreenNonce:H.parentCsn,visualElement:n}:S&&S!=="UNDEFINED_CSN"&&(u={clientScreenNonce:S,visualElement:n}));var a,R=_.mD("EVENT_ID");S==="UNDEFINED_CSN"&&R&&(a={servletData:{serializedServletEventId:R}});_.M("combine_ve_grafts")&&S&&Dr4(K,S);_.M("no_client_ve_attach_unless_shown")&&n&&S&&Fwp(n,S);try{var F=_.ITB(K.client,d,u,H.csnToClone,H.cttAuthInfo,
a,H.implicitGestureType,void 0,H.loggingExpectations)}catch(g){_.bp(g,{rootVeType:d,rootVe:D,parentVisualElement:f,currentCsn:S,parentEl:u,csnToClone:H.csnToClone});_.$7(g);return}_.$Z(F,d,H.layer,H.cttAuthInfo);S&&S!=="UNDEFINED_CSN"&&D&&!PJG(S)&&PeG(K.client,S,D,!0);K.backHistoryStack[K.backHistoryStack.length-1]&&!K.backHistoryStack[K.backHistoryStack.length-1].csn&&(K.backHistoryStack[K.backHistoryStack.length-1].csn=F||"");_.Ox({clientScreenNonce:F});_.pn9();var z=_.YZ(H.layer);S&&S!=="UNDEFINED_CSN"&&
z&&(_.M("web_mark_root_visible")||_.M("music_web_mark_root_visible"))&&_.Gu(F,z);K.pendingScreenCreation.delete(H.layer||0);K.pendingScreenFn=void 0;var v;(v=K.recurringGrafts.get(H.layer))==null||v.forEach(function(g,N){g?_.p2(K,N,g,H.layer):z&&_.p2(K,N,z,H.layer)});
VY9(K)},VY9=function(K){for(var d=0;d<K.afterNewScreenOneOffJobs.length;d++){var f=K.afterNewScreenOneOffJobs[d];
try{f()}catch(H){_.$7(H)}}for(d=K.afterNewScreenOneOffJobs.length=0;d<K.afterNewScreenRecurringJobs.length;d++){f=K.afterNewScreenRecurringJobs[d];try{f()}catch(H){_.$7(H)}}},Dr4=function(K,d){if(d===void 0)for(var f=vkY(),H=0;H<f.length;H++)f[H]!==void 0&&Dr4(K,f[H]);
else K.cachedVisualElements.forEach(function(D,S){(S=K.cachedRootVisualElements.get(S))&&UhO(K.client,d,S,D)}),K.cachedVisualElements.clear(),K.cachedRootVisualElements.clear(),K.attachTimeout=void 0};var H5=function(K){K=K===void 0?{layer:0}:K;this.hasRun=!1;this.createScreenConfig=K;K={};this.lA6=(K.response=!1,K.playerResponse=!1,K)};
_.O(H5,C2);H5.prototype.validate=function(K){return!(!K.data||!K.data.response&&!K.data.playerResponse)};
H5.prototype.handle=function(K){var d=_.cv(),f=this.createScreenConfig.layer;K.data.response&&K.data.response.trackingParams&&!this.lA6.response&&(d.graftServerVe(K.data.response.trackingParams,void 0,f),this.lA6.response=!0);K.data.playerResponse&&K.data.playerResponse.trackingParams&&!this.lA6.playerResponse&&(d.graftServerVe(K.data.playerResponse.trackingParams,void 0,f),this.lA6.playerResponse=!0)};var DB=function(){this.eL=_.Gz();this.da=[];this.w66=0};
DB.prototype.processChunk=function(K){if(K){for(var d=_.y(this.da),f=d.next();!f.done;f=d.next())f=f.value,f.validate(K)&&(f.handle(K),f.hasRun=!0);_.YJ("np"+this.w66);this.w66++}};var mhY,xJ,Ld,hKz=0,bfo=function(K,d,f,H,D,S){var n=Ld;this.name=K;this.attributes=d;this.startTime=f;this.id=H;this.sessionId=D;this.traceId=S;this.parent=n};
bfo.prototype.attr=function(K,d){this.attributes[K]=d};
bfo.prototype.close=function(K){if(!xJ)throw Error("wf");var d=xJ;if(this!==Ld)throw Error("vf");var f=Ld;K&&(f.status=K);f.endTime=performance.now();K=_.y(d.spanProcessors);for(d=K.next();!d.done;d=K.next()){var H=void 0,D=void 0;(D=(H=d.value).onSpanEnd)==null||D.call(H,f)}Ld=f==null?void 0:f.parent};
bfo.prototype[Symbol.dispose]=function(){this.close()};var GWS,nL6;_.V2=function(K,d,f,H,D,S,n){n=n===void 0?[]:n;this.buildCommandPayload=K;this.navigate=d;this.handleServiceRequest=f;this.sendAction=H;this.JSC$10507_screenManager=D;this.commandResolverMap=S;this.autoLogResolverAllowlist=n;this.pendingCommands=new Set;if(xJ&&(xJ.enabledSpans?xJ.enabledSpans.command:1)){var u=this.resolveCommand;this.resolveCommand=function(a,R){var F=lTO("command",{command:a});return GA5(F,u.bind(this,a,R),null)}}};
GWS=function(K,d,f){var H=PyX,D=gDo,S=_.cv(),n=SQB;f=f===void 0?[]:f;_.V2.instance=new _.V2(K,d,H,D,S,n,f)};
nL6=function(K,d,f){if(!K.commandResolverMap)return!1;var H=qAB(d,K.commandResolverMap);return H?((K.autoLogResolverAllowlist.some(function(D){return!!_.P(d,D)})||(f==null?0:f.forceClickLogging))&&yT8(K,d,f),H instanceof Promise?H.then(function(D){D.resolve(d,f)}):H.resolve(d,f),!0):!1};
_.V2.prototype.resolveCommand=function(K,d){var f=this,H=iL9(K);if(nL6(this,K,d))return!0;if(H)return cT8(this,K,d);if(!this.buildCommandPayload)return AoB(K,"Unhandled command by buildCommandPayload"),!1;var D=this.buildCommandPayload(K,d);if(d==null?0:d.commandController)D.commandController=d.commandController;if(D.type===0){if(!this.navigate)return ThN(K,"navigate"),!1;if(!uD9(D.command))return AoB(K,"Page requests need to specify a url"),!1;_.M("logging_avoid_blocking_during_navigation")&&_.pPO().transition("application_navigating");
K=this.navigate(D)||[];gsN(K).then(function(){f.pendingCommands.delete(D.command)});
return!0}if(D.type===1){if(!this.handleServiceRequest)return ThN(K,"handleServiceRequest"),!1;(d==null?0:d.forceClickLogging)&&yT8(this,D.command,d);K=this.handleServiceRequest(D);gsN(K).then(function(){f.pendingCommands.delete(D.command)});
return!0}if(D.type===2){if(!this.sendAction)return ThN(K,"sendAction"),!1;yT8(this,D.command,d);this.sendAction(D);return!0}return!1};
var yT8=function(K,d,f){if((f==null||!f.disableClickTracking)&&K.JSC$10507_screenManager)if(d.clickTrackingParams&&_.M("log_click_with_layer_from_element_in_command_handler")){var H;f=f==null?void 0:(H=f.form)==null?void 0:H.element;K.JSC$10507_screenManager.clickCommand(d,null,f&&f.getScreenLayer&&f.getScreenLayer())}else d.clickTrackingParams?K.JSC$10507_screenManager.clickCommand(d):!_.M("disable_clicked_visual_element_in_command_handler")&&(f==null?0:f.clickedVisualElement)&&_.dx(K.JSC$10507_screenManager,
f.clickedVisualElement)},iL9=function(K){var d=!!_.P(K,_.DE),f;
K=((f=_.P(K,_.y$))==null?void 0:f.signal)==="CLIENT_SIGNAL";return d||K},cT8=function(K,d,f){var H=_.P(d,_.DE);
if(H)var D=(H==null?void 0:H.commands)||[];else{var S;if(((S=_.P(d,_.y$))==null?void 0:S.signal)==="CLIENT_SIGNAL"){var n;D=((n=_.P(d,_.y$))==null?void 0:n.actions)||[]}}if(D){d=_.y(D);for(D=d.next();!D.done;D=d.next()){D=D.value;try{K.resolveCommand(D,f)}catch(u){u instanceof Error&&_.$7(u)}}return!0}AoB(d,"Could not handle the meta command");return!1},uD9=function(K){var d;
return!((d=_.P(K==null?void 0:K.commandMetadata,_.B0))==null||!d.url)};var Vg=function(){C2.apply(this,arguments)};
_.O(Vg,C2);Vg.prototype.validate=function(K){var d,f;return!this.hasRun&&!!((d=K.data.response)==null?0:(f=d.onResponseReceivedEndpoints)==null?0:f.length)};
Vg.prototype.handle=function(K){var d=_.V2.instance;K=_.y(K.data.response.onResponseReceivedEndpoints);for(var f=K.next();!f.done;f=K.next())d.resolveCommand(f.value)};var aHt,IH6,Urs;
aHt=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.HG();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.SJ=function(){IH6||(IH6=new aHt);return IH6};
Urs=function(){var K=_.SJ();K.miniplayerButtonActivation=!1;K.userActivation=!1;K.playlistWatchPageActivation=!1;K.productDetailsPageActivation=!1;K.miniAppPageActivation=!1;K.playablesDestPageActivation=!1;K.lockupActivation=!1;K.showMiniplayerCommandActivation=!1;K.playlistSuggestionsShelfActivation=!1;K.mediaSessionPipActivation=!1;K.watchPipActivation=!1;K.watchWhileActivation=!1;K.shortsPipActivation=!1};
_.R4s=function(){var K=_.SJ(),d=K.mediaSessionPipActivation,f=K.watchPipActivation,H=K.watchWhileActivation,D=K.playlistWatchPageActivation,S=K.lockupActivation,n=K.showMiniplayerCommandActivation,u=K.navigatingAwayFromWatchDeletedVideo,a=K.shortsPipActivation,R=K.playlistSuggestionsShelfActivation,F=K.productDetailsPageActivation,z=K.miniAppPageActivation,v=K.playablesDestPageActivation;return!K.miniplayerButtonActivation&&!D&&!R&&!F&&!z&&!v&&!S&&!n&&!d&&!f&&!H&&!a||u};var FOB;_.yg=Jy("FEwhat_to_watch","/",3854);_.z1B=Jy("FEdownloads","/feed/downloads",42352);FOB=Jy("FEmusic_offline","browse/FEmusic_offline",42352);var Qj=function(K,d){d=d===void 0?[]:d;var f=f===void 0?[]:f;d=VRO.apply(null,[S3n.apply(null,_.Me(d))].concat(_.Me(f)));this.store=cIO(K,void 0,d)};
Qj.prototype.getState=function(){return this.store.getState()};
Qj.prototype.dispatch=function(K){return this.store.dispatch(K)};
Qj.prototype.subscribe=function(K){return this.store.subscribe(K)};
Qj.prototype.replaceReducer=function(K){return this.store.replaceReducer(K)};
Qj.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.n5=function(K,d,f){var H=d(K.getState());return K.subscribe(function(){var D=d(K.getState());if(D!==H){var S=H;H=D;f(D,S)}})};var yfB;_.nt=function(K,d,f){return _.es({type:"REPLACE_ENTITY",payload:{entityPayload:f,entityType:K,key:d}})};
yfB=function(K){return _.es({type:"REPLACE_ENTITIES",payload:K})};
_.P9=function(K,d,f,H){return _.es({type:"UPDATE_ENTITY",payload:{entityPayload:f,entityType:K,key:d,mergeOption:H}})};var pLO=function(K){var d=this;K=K===void 0?[]:K;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;K.forEach(function(f){d.append(f)})};
_.V=pLO.prototype;_.V.getLength=function(){return this.totalLength};
_.V.append=function(K){var d=this.arrays.length===0?!1:(d=this.arrays[this.arrays.length-1])&&d.buffer===K.buffer&&d.byteOffset+d.length===K.byteOffset;d?(d=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(d.buffer,d.byteOffset,d.length+K.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(K);this.totalLength+=K.length};
_.V.split=function(K){for(var d=new pLO,f=new pLO,H=_.y(this.arrays),D=H.next();!D.done;D=H.next())D=D.value,K>=D.length?(d.append(D),K-=D.length):K?(d.append(new Uint8Array(D.buffer,D.byteOffset,K)),f.append(new Uint8Array(D.buffer,D.byteOffset+K,D.length-K)),K=0):f.append(D);return{headView:d,tailView:f}};
_.V.extract=function(K,d){return this.split(K).tailView.split(d).headView};
_.V.isFocused=function(K){return K>=this.arrayPos&&K<this.arrayPos+this.arrays[this.arrayIdx].length};
_.V.focus=function(K){if(!this.isFocused(K))for(K<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=K&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var FZL=function(K,d){K.focus(d);return K.arrays[K.arrayIdx][d-K.arrayPos]};(function(){var K=function(H){return new Uint8Array(H)},d=function(H){for(var D=new Uint8Array(H.length),S=0;S<H.length;S++)D[S]=H[S];
return D},f=new Uint8Array([1]);
return f.length===1&&f[0]===1?K:d})();
var Jon=Array(1024),BhX=window.TextDecoder?new TextDecoder:void 0,kAz=window.TextEncoder?new TextEncoder:void 0;var eKG=function(K){this.arrayView=K;this.pos=0;this.pendingTagAndType=-1},pd=function(K){var d=FZL(K.arrayView,K.pos);
++K.pos;if(d<128)return d;for(var f=d&127,H=1;d>=128;)d=FZL(K.arrayView,K.pos),++K.pos,H*=128,f+=(d&127)*H;return f},K1p=function(K,d){var f=K.pendingTagAndType;
for(K.pendingTagAndType=-1;K.pos+1<=K.arrayView.totalLength;){f<0&&(f=pd(K));var H=f>>3,D=f&7;if(H===d)return!0;if(H>d){K.pendingTagAndType=f;break}f=-1;switch(D){case 0:pd(K);break;case 1:K.pos+=8;break;case 2:H=pd(K);K.pos+=H;break;case 5:K.pos+=4}}return!1};var fzX=function(){this.pos=0;this.submessagePosStack=[];this.buf=ZfY(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},fF=function(K,d){d=K.pos+d;
if(!(K.buf.length>=d)){for(var f=K.buf.length*2;f<d;)f*=2;K.buf=ZfY(f,K.buf.subarray(0,K.pos));K.view=new DataView(K.buf.buffer,K.buf.byteOffset,K.buf.byteLength)}},dB=function(K,d){if(d>268435455){fF(K,4);
for(var f=d&1073741823,H=0;H<4;H++)K.view.setUint8(K.pos,f&127|128),f>>=7,K.pos+=1;d=Math.floor(d/268435456)}for(fF(K,4);d>127;)K.view.setUint8(K.pos,d&127|128),d>>=7,K.pos+=1;K.view.setUint8(K.pos,d);K.pos+=1};for(var HTu={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,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},d_G={},z4s=_.y(Object.entries(HTu)),XUN=z4s.next();!XUN.done;XUN=z4s.next()){var vLN=_.y(XUN.value),MYB=vLN.next().value,PFH=vLN.next().value,gL4=MYB,OLJ=PFH;OLJ&&(d_G[OLJ]=gL4)};var V2o=function(K,d){K=K===void 0?{}:K;switch(d.type){case "ENTITY_LOADED":return d.payload.reduce(function(H,D){var S,n=(S=D.options)==null?void 0:S.persistenceOption;if(n&&n!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&n!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return H;if(!D.entityKey)return _.$7(Error("yf")),H;if(D.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!D.payload)return D=new _.X4("REPLACE entity mutation is missing a payload",{entityKey:D.entityKey}),_.$7(D),H;var u=(0,_.PR.getAnyKey)(D.payload);
return ylN(H,u,D.entityKey,D.payload[u])}if(D.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{D=D.entityKey;try{var a=_.KF(D).entityType;u=ylN(H,a,D);break a}catch(z){if(z instanceof Error){D=new _.X4("Failed to deserialize entity key",{entityKey:D,originalMessage:z.message});_.$7(D);u=H;break a}throw z;}u=void 0}return u}if(D.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!D.payload)return D=new _.X4("UPDATE entity mutation is missing a payload",{entityKey:D.entityKey}),_.$7(D),H;u=(0,_.PR.getAnyKey)(D.payload);
var R,F;return n1u(H,u,D.entityKey,D.payload[u],(R=D.fieldMask)==null?void 0:(F=R.mergeOptions)==null?void 0:F.repeatedFieldsMergeOption)}return H},K);
case "REPLACE_ENTITY":var f=d.payload;return ylN(K,f.entityType,f.key,f.entityPayload);case "REPLACE_ENTITIES":return Object.keys(d.payload).reduce(function(H,D){var S=d.payload[D];return Object.keys(S).reduce(function(n,u){return ylN(n,D,u,S[u])},H)},K);
case "UPDATE_ENTITY":return f=d.payload,n1u(K,f.entityType,f.key,f.entityPayload,f.mergeOption);default:return K}};var iTo;var N84=!1,ii,c5,ui,av,Iv,YQv=function(K){_.gG.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!N84){var d,f=new Uint8Array(256),H=new Uint8Array(256);var D=1;for(d=0;d<256;d++)f[D]=d,H[d]=D,D^=D<<1^(D>>7&&283);ii=new Uint8Array(256);c5=Vj(256);ui=Vj(256);av=Vj(256);Iv=Vj(256);for(var S=0;S<256;S++){D=S?H[255^f[S]]:0;D^=D<<1^D<<2^D<<3^D<<4;D=D&255^D>>>8^99;ii[S]=D;d=D<<1^(D>>7&&283);var n=d^D;c5[S]=d<<24|D<<16|D<<8|n;ui[S]=n<<24|c5[S]>>>8;av[S]=D<<24|ui[S]>>>
8;Iv[S]=D<<24|av[S]>>>8}N84=!0}D=Vj(44);for(f=0;f<4;f++)D[f]=K[4*f]<<24|K[4*f+1]<<16|K[4*f+2]<<8|K[4*f+3];for(H=1;f<44;f++)K=D[f-1],f%4||(K=(ii[K>>16&255]^H)<<24|ii[K>>8&255]<<16|ii[K&255]<<8|ii[K>>>24],H=H<<1^(H>>7&&283)),D[f]=D[f-4]^K;this.key=D};
_.O(YQv,_.gG);
YQv.prototype.encrypt=function(K){var d=K.length;K=new Uint8Array(K.buffer.slice(K.byteOffset,K.byteOffset+d));for(var f=this.cipherBlock,H=0;H<d&&this.blockOffset<16;)K[H++]^=f[this.blockOffset++];for(var D=d-(d-H)%16;H<D;)tY6(this),K[H++]^=f[0],K[H++]^=f[1],K[H++]^=f[2],K[H++]^=f[3],K[H++]^=f[4],K[H++]^=f[5],K[H++]^=f[6],K[H++]^=f[7],K[H++]^=f[8],K[H++]^=f[9],K[H++]^=f[10],K[H++]^=f[11],K[H++]^=f[12],K[H++]^=f[13],K[H++]^=f[14],K[H++]^=f[15];if(H<d)for(tY6(this),this.blockOffset=0;H<d;)K[H++]^=
f[this.blockOffset++];return K};
var oLf=function(K,d){for(var f=0;f<4;f++)K.counter[f]=d[f*4]<<24|d[f*4+1]<<16|d[f*4+2]<<8|d[f*4+3];K.blockOffset=16},tY6=function(K){for(var d=K.key,f=K.counter[0]^d[0],H=K.counter[1]^d[1],D=K.counter[2]^d[2],S=K.counter[3]^d[3],n=3;n>=0&&!(K.counter[n]=-~K.counter[n]);n--);
for(var u,a,R=4;R<40;)n=c5[f>>>24]^ui[H>>16&255]^av[D>>8&255]^Iv[S&255]^d[R++],u=c5[H>>>24]^ui[D>>16&255]^av[S>>8&255]^Iv[f&255]^d[R++],a=c5[D>>>24]^ui[S>>16&255]^av[f>>8&255]^Iv[H&255]^d[R++],S=c5[S>>>24]^ui[f>>16&255]^av[H>>8&255]^Iv[D&255]^d[R++],f=n,H=u,D=a;K=K.cipherBlock;n=d[40];K[0]=ii[f>>>24]^n>>>24;K[1]=ii[H>>16&255]^n>>16&255;K[2]=ii[D>>8&255]^n>>8&255;K[3]=ii[S&255]^n&255;n=d[41];K[4]=ii[H>>>24]^n>>>24;K[5]=ii[D>>16&255]^n>>16&255;K[6]=ii[S>>8&255]^n>>8&255;K[7]=ii[f&255]^n&255;n=d[42];
K[8]=ii[D>>>24]^n>>>24;K[9]=ii[S>>16&255]^n>>16&255;K[10]=ii[f>>8&255]^n>>8&255;K[11]=ii[H&255]^n&255;n=d[43];K[12]=ii[S>>>24]^n>>>24;K[13]=ii[f>>16&255]^n>>16&255;K[14]=ii[H>>8&255]^n>>8&255;K[15]=ii[D&255]^n&255};var $rB=!1;(function(){var K=function(H){return new Uint8Array(H)},d=function(H){for(var D=new Uint8Array(H.length),S=0;S<H.length;S++)D[S]=H[S];
return D},f=new Uint8Array([1]);
return f.length===1&&f[0]===1?K:d})();
var U0;var ELH=function(K){this.JSC$10574_aesKey=K};
ELH.prototype.encrypt=function(K,d){var f=this,H,D;return _.c(function(S){if(S.nextAddress==1){a:{if(!$rB&&!x_){if(U0){var n=U0;break a}U0=(n=window.crypto)==null?void 0:n.subtle;var u,a,R;if(((u=U0)==null?0:u.importKey)&&((a=U0)==null?0:a.sign)&&((R=U0)==null?0:R.encrypt)){n=U0;break a}U0=void 0}n=void 0}H=n;if(!H)return S.return(h4v(f,K,d));_.HF(S,3);return _.I(S,bLN(f,K,d,H),5)}if(S.nextAddress!=3)return S.return(S.yieldResult);D=_.n7(S);_.h3(D);$rB=!0;return S.return(h4v(f,K,d))})};
var bLN=function(K,d,f,H){var D,S;return _.c(function(n){switch(n.nextAddress){case 1:if(K.cryptoKey){n.jumpTo(2);break}return _.I(n,H.importKey("raw",K.JSC$10574_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:K.cryptoKey=n.yieldResult;case 2:return D={name:"AES-CTR",counter:f,length:128},_.I(n,H.encrypt(D,K.cryptoKey,d),4);case 4:return S=n.yieldResult,n.return(new Uint8Array(S))}})},h4v=function(K,d,f){K.encryptorPolyfill||(K.encryptorPolyfill=new YQv(K.JSC$10574_aesKey));
oLf(K.encryptorPolyfill,f);return K.encryptorPolyfill.encrypt(d)},mrv=function(K){this.JSC$10578_aesKey=K};
mrv.prototype.encrypt=function(K,d){this.encryptor||(this.encryptor=new YQv(this.JSC$10578_aesKey));oLf(this.encryptor,d);return this.encryptor.encrypt(K)};var lHH={},azX=sF("yt-idb-pref-storage",{objectStores:(lHH.prefs={addedAtVersion:1},lHH),shared:!1,upgrade:function(K,d){d(1)&&G7(WA(K,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Rv=function(K){this.token=K};
_.Rv.getInstance=function(){return _.c(function(K){return K.return(new Promise(function(d){_.J9().then(function(f){f?(_.Rv.instance||(_.Rv.instance=new _.Rv(f)),d(_.Rv.instance)):d(void 0)})}))})};
_.Rv.prototype.get=function(K){var d=this,f,H,D;return _.c(function(S){if(S.nextAddress==1)return _.I(S,IzS(d.token),2);if(S.nextAddress!=3)return f=S.yieldResult,_.I(S,f.get("prefs",K),3);H=S.yieldResult;if(!H)return S.return();D=(0,_.k_)();return H.expirationTimestampMs<=D?S.return():S.return(H.value)})};
_.Rv.prototype.set=function(K,d,f){f=f===void 0?31536E3:f;var H=this,D,S,n;return _.c(function(u){if(u.nextAddress==1)return D=(0,_.k_)(),S={key:K,value:d,expirationTimestampMs:D+f*1E3},_.I(u,IzS(H.token),2);n=u.yieldResult;return _.I(u,n.put("prefs",S),0)})};
_.Rv.prototype.remove=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,IzS(d.token),2);f=H.yieldResult;return _.I(H,f.delete("prefs",K),0)})};var Fv={},WZB=(Fv.INVALID_ENCODER_VERSION="Invalid encoder version",Fv.KEY_CREATION_FAILED="Failed to create encoder key",Fv.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Fv.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Fv.WRONG_DATA_TYPE="Encoder cannot process the data type",Fv),S3=function(K,d){d=d===void 0?{}:d;_.X4.call(this,WZB[K],Object.assign({},{name:"PESEncoderError",type:K},d));this.type=K;this.level="WARNING";Object.setPrototypeOf(this,S3.prototype)};
_.O(S3,_.X4);var G4N=function(){},AT4=function(K,d,f){try{return K.encodeImpl(d,f)}catch(H){zeo(H,ReX)}},T8H=function(K,d,f){var H;
return _.c(function(D){if(D.nextAddress==1)return _.HF(D,2),_.I(D,K.decodeAsyncImpl(d,f),4);if(D.nextAddress!=2)return D.return(D.yieldResult);H=_.n7(D);zeo(H,F1Y);_.iQ(D)})};
G4N.prototype.decodeAsyncImpl=function(K,d){return Promise.resolve(this.decodeImpl(K,d))};var zZ=function(K,d){this.aesEncryptor=K;this.aesEncryptorAsync=d};
_.O(zZ,G4N);zZ.prototype.encodeImpl=function(K,d){d=XES(d);K=(new TextEncoder).encode(JSON.stringify(K));return this.aesEncryptor.encrypt(K,d)};
zZ.prototype.decodeImpl=function(K,d){if(!(K instanceof Uint8Array))throw U_o(1);var f=new TextDecoder;d=XES(d);K=this.aesEncryptor.encrypt(K,d);return JSON.parse(f.decode(K))};
zZ.prototype.decodeAsyncImpl=function(K,d){var f=this,H,D,S;return _.c(function(n){if(n.nextAddress==1){if(!(K instanceof Uint8Array))throw U_o(1);H=new TextDecoder;D=XES(d);return _.I(n,f.aesEncryptorAsync.encrypt(K,D),2)}S=n.yieldResult;return n.return(JSON.parse(H.decode(S)))})};var v15={accountLinkStatusEntity:cBs,booleanEntity:Q26,buttonEntity:kH2,captionTrack:rzs,channelHandle:tHH,chipEntity:o5s,commerceAcquisitionClientPayloadEntity:vHk,commerceCartListEntity:MAB,contextNoteFeedEntityPayload:lf8,continuationTokenEntity:MUs,downloadQualityPickerEntity:ix2,downloadsPageRefreshTokenEntity:uJ2,downloadsPageViewConfigurationEntity:EkJ,downloadStatusEntity:cDs,dismissState:$gf,sfvAudioItemCurrentlyPlayingEntity:zKk,emojiFountainDataEntity:BO2,emojiCustomizationSetEntity:Ll8,
fakeChannel:xiB,fakePlaylist:LQ8,fakePlaylistEntryCollection:BcL,fakeVideo:s2s,fakeVideoDescription:k96,featuredProductsEntity:wkJ,flowStateEntity:SGL,iconBadgeEntity:PqH,interstitialInteractionStateEntity:$O4,likeButtonAnimationEntity:hws,liveChatPollStateEntity:ABk,liveViewerLeaderboardChatEntryPointStateEntity:pt8,liveViewerLeaderboardPointsEntity:Kws,liveReactionsDataEntity:Jfk,logoEntity:tO4,macroMarkerEntity:bxN,mainDownloadsLibraryEntity:a52,mainDownloadsListEntity:I58,mainPlaylistDownloadStateEntity:Rws,
mainPlaylistEntity:PJB,mainPlaylistVideoEntity:gkB,mainVideoDownloadStateEntity:Fo9,mainVideoEntity:tUH,markersEngagementPanelSyncEntity:mfN,markersVisibilityOverrideEntity:l5t,musicAlbumReleaseDetail:yzk,musicAlbumReleaseDownloadMetadataEntity:f96,musicAlbumRelease:StB,musicAlbumReleaseUserDetail:nnL,musicArtistDetail:cz9,musicArtist:iGv,musicArtistUserDetail:unt,musicDownloadsLibraryEntity:HGJ,musicLibraryEdit:a92,musicLibraryStatusEntity:I98,musicPlaylist:U04,musicPlaylistDownloadMetadataEntity:D02,
musicShare:F8t,musicTrackDetail:Xtt,musicTrackDownloadMetadataEntity:VIv,musicTrack:zif,musicTrackUserDetail:vnB,offlineOrchestrationActionWrapperEntity:qtk,offlineVideoPolicy:QZH,offlineVideoStreams:jZv,offlineabilityEntity:zwB,orchestrationWebSamplingEntity:Xkk,pageHeaderEntity:AfN,pdpStateEntity:gHJ,pinnedProductEntity:Zxv,playbackData:CSv,playerStateEntity:WoH,quantityIncrementerEntity:O2J,refresh:x0f,saveToPlaylistListEntity:ro2,selectedChipIndexEntityPayload:GMJ,settingEntity:ihf,stringEntity:j24,
suggestedFeedbackChipStateEntity:ADf,transfer:L88,trendingOfferEntity:ewJ,videoDownloadContextEntity:BTJ,videoOverviewAsyncDataEntity:sa6,videoPlaybackPositionEntity:eFt,votingEntity:Qbs,ytMainChannelEntity:ok8,youchatPendingResponseEntity:Tv9,ytMainDownloadedVideoEntity:vks,ytMainVideoEntity:$f6};var rTv,QFs,uA,DgX,VxS,xrJ,B8s,LZk,CF4;rTv=function(K,d){this.JSC$10597_wrapped=K;this.JSC$10597_encoderRegistry=d;this.changedKeys={}};
QFs=function(K,d){a:{K=qQv(K.JSC$10597_encoderRegistry,d.version);try{var f=K.decodeImpl(d.data,d.key);break a}catch(H){zeo(H,F1Y)}f=void 0}return f};
_.jFB=function(K,d,f){return K.JSC$10597_wrapped.objectStore("EntityStore").get(d).then(function(H){if(H){if(f&&H.entityType!==f)throw Error("zf");return QFs(K,H)}})};
uA=function(K,d,f){return f?(f=f.map(function(H){return _.jFB(K,H,d)}),lH.all(f)):K.JSC$10597_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(d)).then(function(H){return H.map(function(D){return QFs(K,D)})})};
_.HhY=function(K,d,f){var H=D_Y(d),D=qQv(K.JSC$10597_encoderRegistry,1),S=Object.assign({},d);return K.JSC$10597_wrapped.objectStore("EntityStore").get(H).then(function(n){if(n){if(n.entityType!==f)throw Error("zf");S.entityMetadata||(n=QFs(K,n),S.entityMetadata=n.entityMetadata)}}).then(function(){var n={key:H,
entityType:f,data:AT4(D,S,H),version:1};return lH.all([K.JSC$10597_wrapped.objectStore("EntityStore").put(n),CF4(K,S,f)])}).then(function(){xrJ(K,H,f);
return H})};
DgX=function(K,d){var f=_.KF(d).entityType;return lH.all([K.JSC$10597_wrapped.objectStore("EntityStore").delete(d),LZk(K,d)]).then(function(){xrJ(K,d,f)})};
VxS=function(K,d,f,H){var D=qQv(K.JSC$10597_encoderRegistry,1);return _.jFB(K,d,H).then(function(S){if(S){S=Lwu(S,f);var n={key:d,entityType:H,data:AT4(D,S,d),version:1};return lH.all([K.JSC$10597_wrapped.objectStore("EntityStore").put(n),CF4(K,S,H)])}}).then(function(){xrJ(K,d,H);
return d})};
xrJ=function(K,d,f){var H=K.changedKeys[f];H||(H=new Set,K.changedKeys[f]=H);H.add(d)};
B8s=function(K,d,f){var H=D_Y(d);f=M25(f);if(!f)return lH.resolve([]);f=new f(d);K=K.JSC$10597_wrapped.objectStore("EntityAssociationStore");d=[];f=_.y(f.getAssociations());for(var D=f.next();!D.done;D=f.next())d.push(K.put({parentEntityKey:H,childEntityKey:D.value}));return lH.all(d).then(function(S){return S.map(function(n){return n[1]})})};
LZk=function(K,d){return K.JSC$10597_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(d))};
CF4=function(K,d,f){var H=D_Y(d);return LZk(K,H).then(function(){return B8s(K,d,f)})};var JT9=function(){};
_.O(JT9,G4N);JT9.prototype.encodeImpl=function(K){return K};
JT9.prototype.decodeImpl=function(K){if(K instanceof Uint8Array)throw U_o(0);return K};var KlN=function(){this.cacheMap={};this.cacheMap[0]=new JT9;if(!_.M("aes_pes_encoder_killswitch")){var K=this.cacheMap;try{var d=_.F4();var f=XES(d);var H=new zZ(new mrv(f),new ELH(f))}catch(D){throw K=D instanceof Error?new S3("KEY_CREATION_FAILED",{originalMessage:D.message}):new S3("KEY_CREATION_FAILED"),_.$7(K),K;}K[1]=H}},qQv=function(K,d){d=d===void 0?0:d;
K=K.cacheMap[d];if(!K)throw d=new S3("INVALID_ENCODER_VERSION",{encoderVersion:d}),_.$7(d),d;return K};var nF=function(K,d){_.gG.call(this);this.token=K;this.JSC$10611_encoderRegistry=d;this.observers=[];K=new _.Hu.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.F4());K.onmessage=this.handleMessage.bind(this);this.channel=K};
_.O(nF,_.gG);_.cJ=function(K,d,f){var H,D,S,n;return _.c(function(u){if(u.nextAddress==1)return _.I(u,ucX(K.token),2);if(u.nextAddress!=3)return H=u.yieldResult,_.I(u,_.QK(H,["EntityStore","EntityAssociationStore"],d,function(a){D=new rTv(a,K.JSC$10611_encoderRegistry);return f(D)}),3);
S=u.yieldResult;D&&(n=D.changedKeys,Object.keys(n).length>0&&(K.channel.postMessage(n),sFB(K,n)));return u.return(S)})};
nF.prototype.observe=function(K){var d=this;this.observers.push(K);return function(){var f=d.observers.indexOf(K);f>=0&&d.observers.splice(f,1)}};
var FBp=function(K){var d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,_.cJ(K,{mode:"readonly",enableRetries:!0},function(H){return H.JSC$10597_wrapped.objectStore("EntityStore").getAll()}),2);
d=f.yieldResult;return f.return(Promise.all(d.filter(function(H){return!!H}).map(function(H){var D,S;
return _.c(function(n){if(n.nextAddress==1){D=H.key;S=H.entityType;var u=T8H(qQv(K.JSC$10611_encoderRegistry,H.version),H.data,H.key);return _.I(n,u,2)}return n.return({key:D,entityType:S,data:n.yieldResult})})})))})};
nF.prototype.handleMessage=function(K){sFB(this,K.data)};
var sFB=function(K,d){K=_.y(K.observers);for(var f=K.next();!f.done;f=K.next())f=f.value,f(d)};
nF.prototype.disposeInternal=function(){this.channel.close()};
var PVY;var Xv,wUB,fDY,NOz;Xv={};_.k48=(Xv.mainVideoEntity="mainVideoEntityActionMetadata",Xv.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Xv.musicTrack="musicTrackEntityActionMetadata",Xv.musicPlaylist="musicPlaylistEntityActionMetadata",Xv);wUB=new _.xn("DOWNLOADS_ENTITY_TYPE_MAP");fDY=_.HJ("","downloadsPageViewConfigurationEntity");NOz=_.HJ("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.VA5=_.HJ("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.HJ("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.HJ("SMART_DOWNLOADS_ENABLED","settingEntity");_.HJ("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var cfX=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var zFN=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var BOz={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var v5,xVN,rpJ,vtX;v5=window;_.bA=v5.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.dpO=v5.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.T0;xVN=v5.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||U8;rpJ=v5.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||TB9;_.ZL2=v5.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.dQ4;vtX=v5.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||DQB;G0({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 DpS=LvG(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(K){return K}}}),rUo=LvG(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(K){return K}}}),kIB=new Map;var S0Y=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],KMY;var e4s=function(K){return _.es({type:"SET_EPHEMERAL_ACTION",payload:K})};var pUv={ephemeralAction:null};var Krk={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var $po={sharedUi:function(K,d){K=K===void 0?Krk:K;switch(d.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},K,{animatedThumbnailEnabled:d.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},K,{inlinePreviewEnabled:d.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},K,{currentPageType:d.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},K,{currentPageSubType:d.payload});default:return K}},
a11y:y8({ephemeralAction:function(K,d){K=K===void 0?pUv.ephemeralAction:K;switch(d.type){case "SET_EPHEMERAL_ACTION":return d.payload;default:return K}}})};var Pin=y8({isLeaderTab:function(K,d){K=K===void 0?!0:K;switch(d.type){case "SET_IS_LEADER_TAB":var f,H;return(H=d==null?void 0:(f=d.payload)==null?void 0:f.isLeaderTab)!=null?H:K;default:return K}}});var d3v=function(K){return _.es({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:K}})};var of5=y8({isDesktopSmallWidth:function(K,d){switch(d.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return d.payload.isDesktopSmallWidth;default:return K===void 0?!1:K}},
isShortsActive:function(K,d){switch(d.type){case "SET_IS_SHORTS_ACTIVE":return d.payload.isShortsActive;default:return K===void 0?!1:K}},
isWatchWhileMode:function(K,d){switch(d.type){case "SET_IS_WATCH_WHILE_MODE":return d.payload.isWatchWhileMode;default:return K===void 0?!1:K}},
playerState:function(K,d){switch(d.type){case "SET_PLAYER_STATE":return d.payload.playerState;default:return K===void 0?-1:K}},
isFullscreen:function(K,d){switch(d.type){case "SET_IS_FULLSCREEN":return d.payload.isFullscreen;default:return K===void 0?!1:K}},
isSmallScreenSqueezeback:function(K,d){switch(d.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return d.payload.isSmallScreenSqueezeback;default:return K===void 0?!1:K}},
isShortsPipActive:function(K,d){switch(d.type){case "SET_IS_SHORTS_PIP_ACTIVE":return d.payload.isShortsPipActive;default:return K===void 0?!1:K}},
isPlaybackStarted:function(K,d){switch(d.type){case "SET_IS_PLAYBACK_STARTED":return d.payload.isPlaybackStarted;default:return K===void 0?!1:K}}});var aB5={playlistId:"",inviteLinkURL:""};var fv6={};var MJJ=y8({continuationCommand:function(K,d){K=K===void 0?fv6:K;switch(d.type){case "SET_CONTINUATION_COMMAND":return d.payload.continuationCommand;default:return K}}});var hlN=function(){return function(K){return function(d){var f=K(d);_.ev(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[d],!0);return f}}};var HDH,YeN;HDH=new _.fU;_.kP=new _.xn("WATCH_PLAYER_PROMISE_TOKEN");_.D3L=new _.fU;_.V_8=new _.xn("SHORTS_PLAYER_PROMISE_TOKEN");YeN=new _.xn("");var b5B=function(){return function(K){return function(d){d.type==="ENTITY_LOADED"&&_.eq().resolve(_.kP).then(function(f){var H;(H=f.dispatchReduxAction)==null||H.call(f,d)});
return K(d)}}};var Upu={currentFormId:"",commandsMap:{}};var SLv={};var gfu=y8({additionalContext:function(K,d){switch(d.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var f;return(f=d.payload)!=null?f:"";default:return K===void 0?"":K}},
impersonatedChannelUrl:function(K,d){switch(d.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var f;return(f=d.payload)!=null?f:"";default:return K===void 0?"":K}},
selectedVideoIds:function(K,d){K=K===void 0?SLv:K;switch(d.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var f={};return Object.assign({},K,(f[d.payload]=!0,f));case "VIDEO_UNSELECTED":return d=d.payload,K=Object.assign({},K),delete K[d],K;default:return K}}});var O5B=y8({parentClickTrackingParams:function(K,d){switch(d.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return d.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return K===void 0?"":K}}});var yVJ=function(K){return _.es({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:K})};var nV2={};var Nxo=y8({stepStates:function(K,d){K=K===void 0?nV2:K;switch(d.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var f=K,H=d.payload,D,S,n;K={};d={selectionStates:Object.assign({},(n=(D=f[H.stepId])==null?void 0:D.selectionStates)!=null?n:{},(K[H.token]={isSelected:H.isSelected},K)),userQuery:(S=f[H.stepId])==null?void 0:S.userQuery};D={};return Object.assign({},f,(D[H.stepId]=d,D));case "TALK_TO_RECS_UPDATE_USER_QUERY":return D=K,S=d.payload,n={selectionStates:Object.assign({},
(H=(f=D[S.stepId])==null?void 0:f.selectionStates)!=null?H:{}),userQuery:{userQuery:S.userQuery,token:S.userQueryToken}},f={},Object.assign({},D,(f[S.stepId]=n,f));default:return K}}});var iDN,cV2;iDN=function(K){return _.es({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:K})};
cV2=function(K){return _.es({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:K})};
_.vd=function(K){return _.es({type:"SET_CURRENT_PAGE_TYPE",payload:K})};
_.uIH=function(K){return _.es({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:K})};var FMY={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"};_.av4=function(K){return _.es({type:"SET_PLAYER_STATE",payload:{playerState:K}})};var IvH=[],U3J={width:0,height:0};var Y0p=y8({isTheaterMode:function(K,d){K=K===void 0?_.M("kevlar_disable_theater_mode_persistence")?!1:_.lx("START_IN_THEATER_MODE"):K;switch(d.type){case "SET_IS_THEATER_MODE":return d.payload.isTheaterMode;default:return K}},
isWatchActive:function(K,d){switch(d.type){case "SET_IS_WATCH_ACTIVE":return d.payload.isWatchActive;default:return K===void 0?!1:K}},
isLearningJourneyActive:function(K,d){switch(d.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return d.payload.isLearningJourneyActive;default:return K===void 0?!1:K}},
isWatchFullscreen:function(K,d){switch(d.type){case "SET_IS_WATCH_FULLSCREEN":return d.payload.isWatchFullscreen;default:return K===void 0?!1:K}},
isWatchNarrowWidth:function(K,d){switch(d.type){case "SET_IS_WATCH_NARROW_WIDTH":return d.payload.isWatchNarrowWidth;default:return K===void 0?!1:K}},
isWatchRetroMode:function(K,d){switch(d.type){case "SET_IS_WATCH_RETRO_MODE":return d.payload.isWatchRetroMode;default:return K===void 0?!1:K}},
isLiveChatCollapsed:function(K,d){switch(d.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return d.payload.isLiveChatCollapsed;default:return K===void 0?!1:K}},
openEngagementPanels:function(K,d){K=K===void 0?IvH:K;var f=[].concat(_.Me(K));switch(d.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return f.push(d.payload.panelToAdd),f;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return f.splice(f.indexOf(d.payload.panelToRemove),1),f;default:return K}},
playerState:function(K,d){switch(d.type){case "SET_PLAYER_STATE":return d.payload.playerState;default:return K===void 0?-1:K}},
watchScrollTop:function(K,d){switch(d.type){case "SET_WATCH_SCROLL_TOP":return d.payload.watchScrollTop;default:return K===void 0?0:K}},
watchWindowSize:function(K,d){K=K===void 0?U3J:K;switch(d.type){case "SET_WATCH_WINDOW_SIZE":return d.payload.watchWindowSize;default:return K}}});var Rpt={feedbackTokens:[]};var tJ5=y8({surveyFeedbackData:function(K,d){K=K===void 0?Rpt:K;switch(d.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return d.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},K,d.payload);default:return K}}});var X5X={};var lBz=void 0;_.M("web_enable_redux_store_on_demand")||(lBz=mpO());var FrB=function(K,d,f){var H=this;this.listId=K;this.JSC$10745_updateCallback=d;this.isOfflineVideoCallback=f;_.j3().subscribe(function(){H.handleUpdate()})};
FrB.prototype.getPlaylistData=function(){var K=_.j3().getState().entities;if(this.listId&&this.listId!=="PPSV"){var d=WlB(K,this.listId,!0),f=_.HJ(this.listId,"mainPlaylistEntity"),H,D;K=K==null?void 0:(H=K.mainPlaylistEntity)==null?void 0:(D=H[f])==null?void 0:D.title;return WMu(d,K,this.listId)}d=_.X35(i2X(K));K=_.X35(_.vJ(K));return WMu(d.concat(K))};
FrB.prototype.getPlaylistId=function(){return this.listId};
FrB.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10745_updateCallback(this.listId,this.getPlaylistData(),{})};var Mp=function(K,d,f,H){H=H===void 0?[]:H;this.JSC$10748_playlistNetworkManager=K;this.listId=d;this.JSC$10748_updateCallback=f;this.videoIds=H;this.pendingUpdates=[];this.currentIndex=0};
Mp.prototype.JSC$10748_setCurrentIndex=function(K){this.currentIndex=K};
Mp.prototype.setListId=function(K){this.listId=K};
var zp6=function(K,d){K.currentCreateRequest&&K.currentCreateRequest.cancel(d);K.currentUpdateRequest&&K.currentUpdateRequest.cancel(d);K.currentRefreshRequest&&K.currentRefreshRequest.cancel(d)};
Mp.prototype.delete=function(){zp6(this,"PROXY DELETED")};
Mp.prototype.addVideos=function(K,d,f){var H=this;f!==void 0?this.videoIds.splice.apply(this.videoIds,[f,0].concat(_.Me(K))):this.videoIds.push.apply(this.videoIds,_.Me(K));this.listId||this.currentCreateRequest?(K.forEach(function(D,S){D={addedVideoId:D,action:"ACTION_ADD_VIDEO"};f&&(D.addedVideoPosition=f+S);H.pendingUpdates.push(D)}),P5(this)):Xwt(this,d.onCreateListCommand)};
var vV8=function(K,d,f,H,D){OBG(K.videoIds,d,f);d>K.currentIndex&&f<=K.currentIndex?K.JSC$10748_setCurrentIndex(K.currentIndex+1):d===K.currentIndex?K.JSC$10748_setCurrentIndex(f):d<K.currentIndex&&f>=K.currentIndex&&K.JSC$10748_setCurrentIndex(K.currentIndex-1);K.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:H,movedSetVideoIdPredecessor:D});P5(K)},Xwt=function(K,d){zp6(K,"OBSOLETE");
K.currentCreateRequest=M_s(K.JSC$10748_playlistNetworkManager,d,K.videoIds);_.It(K.currentCreateRequest,function(){K.currentCreateRequest=void 0}).then(function(f){K.setListId(f.playlistId);
K.pendingUpdates.length>0?P5(K):POJ(K)})},P5=function(K){if(K.pendingUpdates.length!==0&&(K.currentRefreshRequest&&K.currentRefreshRequest.cancel("OBSOLETE"),!K.currentUpdateRequest&&!K.currentCreateRequest)){var d=K.pendingUpdates.splice(0,K.pendingUpdates.length);
K.currentUpdateRequest=K.JSC$10748_playlistNetworkManager.updatePlaylist(K.listId,d);_.It(K.currentUpdateRequest,function(){K.currentUpdateRequest=void 0}).then(function(){K.pendingUpdates.length>0?P5(K):POJ(K)}).thenCatch(function(){K.pendingUpdates.unshift.apply(K.pendingUpdates,_.Me(d))})}},POJ=function(K){K.currentRefreshRequest=_.gVH(K.JSC$10748_playlistNetworkManager,K.listId,K.currentIndex,K.videoIds[K.currentIndex]);
_.It(K.currentRefreshRequest,function(){K.currentRefreshRequest=void 0}).then(function(d){K.JSC$10748_updateCallback(d.playlistId,d.playlistPanelRenderer,d.autoplayRenderer)})};
Mp.prototype.size=function(){return this.videoIds.length};var OD9=function(K,d,f,H){H=H===void 0?[]:H;Mp.call(this,K,d,f,H);this.JSC$10748_playlistNetworkManager=K;this.listId=d;this.JSC$10748_updateCallback=f;this.videoIds=H};
_.O(OD9,Mp);_.gx=function(K,d,f,H,D,S,n){D=D===void 0?[]:D;n=n===void 0?sG:n;Mp.call(this,K,d,f,D);this.JSC$10748_playlistNetworkManager=K;this.listId=d;this.JSC$10748_updateCallback=f;this.onAuthChange=H;this.videoIds=D;this.storage=S;this.cookieReader=n;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.pZ(_.oc,this.checkLoggedInStatusChange.bind(this),1E3)};
_.O(_.gx,Mp);_.V=_.gx.prototype;_.V.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.pZ(_.oc,this.checkLoggedInStatusChange.bind(this),1E3)};
_.V.JSC$10748_setCurrentIndex=function(K){Mp.prototype.JSC$10748_setCurrentIndex.call(this,K);this.store()};
_.V.delete=function(){_.oc.cancelJob(this.queueSapisIdJob);Mp.prototype.delete.call(this)};
_.V.setListId=function(K){Mp.prototype.setListId.call(this,K);this.store()};
_.V.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var Nak=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],YLv=["playerResponse","videoDetails"],t_H=["response","currentVideoEndpoint","watchEndpoint","videoId"],oV8=["response","currentVideoEndpoint","watchEndpoint","playlistId"],$39=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],EVk=["response","contents","twoColumnWatchNextResults","playlist","playlist"],hpN=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
bDf=["response","contents","twoColumnWatchNextResults"];var O0={},q0S=(O0.WEB_UNPLUGGED="^unplugged/",O0.WEB_UNPLUGGED_ONBOARDING="^unplugged/",O0.WEB_UNPLUGGED_OPS="^unplugged/",O0.WEB_UNPLUGGED_PUBLIC="^unplugged/",O0.WEB_CREATOR="^creator/",O0.WEB_KIDS="^kids/",O0.WEB_EXPERIMENTS="^experiments/",O0.WEB_MUSIC="^music/",O0.WEB_REMIX="^music/",O0.WEB_MUSIC_EMBEDDED_PLAYER="^music/",O0.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",O0);var gLu,M_s;gLu=function(K,d){this.networkManager=K;this.innertubeTransportService=d};
M_s=function(K,d,f){if(!_.P(d,_.EI))return _.vv(Error("Df"));_.P(d,_.EI).videoIds=f;f={create_playlist_title:_.iB("QUEUE",void 0,"Queue")};return TxB(_.Wp(K.innertubeTransportService,d,f),GZo)};
_.gVH=function(K,d,f,H){d={videoId:H,playlistId:d,playlistIndex:f};f=_.CF(lIk);return TxB(_.Np(K.innertubeTransportService,d,f),r_O)};
gLu.prototype.updatePlaylist=function(K,d){return TxB(_.Wp(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:K,actions:d}}),A_z)};var m3s=function(K){this.storage=K},lvs;
m3s.prototype.store=function(K,d){d=d===void 0?0:d;if(this.storage&&K.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",K),this.storage.set("TLPQindex",String(d)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(f){}};
m3s.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
m3s.prototype.getPlaylistId=function(){if(!this.storage)return null;var K=null;try{K=this.storage.get("TLPQplaylist")}catch(d){}return K};var xpY=["navigationEndpoint","watchEndpoint","videoId"],CiS=["nextButtonVideo","watchEndpoint","videoId"];_.O1=new _.xn("NETWORK_TOKEN");_.jC=new _.xn("PAGE_TOKEN");_.Yf=new _.xn("PLAYLIST_TOKEN");var WrH;WrH=new _.xn("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Nn=new _.xn("INNERTUBE_TRANSPORT_TOKEN");var GxJ,t_,Ta9,rVs,Quv,juN;GxJ=new Set(["ci","cr","carml"]);t_=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10795_parkedJobs=new Map;this.parkedProcessors=new Map};
_.ov=function(){t_.instance||(t_.instance=new t_);return t_.instance};
t_.prototype.onAny=function(K){return _.AVk(this,K,2)};
t_.prototype.parkOrScheduleJob=function(K,d,f,H,D){_.$f(this,f)?_.Xm().addJob(K,d,H):(D&&(K=Ta9(K),rVs(this,K,d,f,D)),D=this.JSC$10795_parkedJobs.get(f),D||(this.JSC$10795_parkedJobs.set(f,[]),D=this.JSC$10795_parkedJobs.get(f)),D.push({job:K,priority:d,delay:H}))};
t_.prototype.addListener=function(K,d,f){f&&(d=Ta9(d),rVs(this,d,0,K,f));f=this.parkedProcessors.get(K);f||(this.parkedProcessors.set(K,[]),f=this.parkedProcessors.get(K));f.push(d)};
t_.prototype.processSignal=function(K){if(!_.$f(this,K)){this.inProgressSignals.add(K);var d=this.JSC$10795_parkedJobs.get(K);if(d){d=_.y(d);for(var f=d.next();!f.done;f=d.next())f=f.value,_.Xm().addJob(f.job,f.priority,f.delay);this.JSC$10795_parkedJobs.delete(K)}if(d=this.parkedProcessors.get(K)){d=_.y(d);for(f=d.next();!f.done;f=d.next())f=f.value,f();this.parkedProcessors.delete(K)}this.signals.push(K);this.inProgressSignals.delete(K)}};
_.$f=function(K,d){return GxJ.has(d)||_.lx("IS_HOMEPAGE_COLD")||_.lx("IS_RESULTS_PAGE_COLD")||_.lx("IS_WATCH_PAGE_COLD")?K.signals.indexOf(d)>=0:!0};
Ta9=function(K){var d=!1;return function(){d||(d=!0,K())}};
rVs=function(K,d,f,H,D){if(qLs.has(H))_.Xm().addJob(d,f,D);else{var S=K.compoundSignals.get(H);S&&_.Xm().addJob(function(){_.$f(K,H)||(S.isTimeoutConditionSatisfied?_.Xm().addJob(d,f):S.timeoutConditionObservers.push(function(){_.Xm().addJob(d,f)}))},f,D)}};
_.AVk=function(K,d,f){if(d.length>1){var H=[],D=Object.create(null);d=_.y(d);for(var S=d.next();!S.done;S=d.next())S=S.value,D[S]||(H.push(S),D[S]=!0);d=H}if(d.length===1)return d[0];S=d;H="";D=f===2?"|":"&";S.sort();S=_.y(S);for(var n=S.next();!n.done;n=S.next())H+=n.value+D;if(!K.compoundSignals.get(H)){D=0;S=[];n=_.y(d);for(var u=n.next();!u.done;u=n.next())u=u.value,D++,_.$f(K,u)||S.push(u);(f=f===2)&&D>S.length||!f&&!S.length?K.signals.push(H):Quv(K,H,f,d,S)}return H};
Quv=function(K,d,f,H,D){var S=D.length,n=function(){f||--S===0?K.processSignal(d):juN(K,d)};
D=_.y(D);for(var u=D.next();!u.done;u=D.next())K.addListener(u.value,n);K.compoundSignals.set(d,{signals:H,isOnAny:f,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});juN(K,d)};
juN=function(K,d){if(!_.$f(K,d)){var f=K.compoundSignals.get(d);if(f&&!f.isTimeoutConditionSatisfied){for(var H=!1,D=0,S=0,n=_.y(f.signals),u=n.next();!u.done;u=n.next()){var a=u.value;u=!_.$f(K,a);qLs.has(a)?H=!0:(a=K.compoundSignals.get(a))?u&&!a.isTimeoutConditionSatisfied&&(S++,f.isInitialized||a.timeoutConditionObservers.push(function(){juN(K,d)})):u&&D++}f.isInitialized=!0;
f.isOnAny?H&&(f.isTimeoutConditionSatisfied=!0):D===0&&S===0&&(f.isTimeoutConditionSatisfied=!0);if(f.isTimeoutConditionSatisfied)for(f=_.y(f.timeoutConditionObservers),H=f.next();!H.done;H=f.next())H=H.value,H()}}};
t_.prototype.processSignal=t_.prototype.processSignal;t_.prototype.parkOrScheduleJob=t_.prototype.parkOrScheduleJob;t_.prototype.onAny=t_.prototype.onAny;_.B6("ytsignals.getInstance",_.ov);t_.prototype.onAny=t_.prototype.onAny;t_.prototype.parkOrScheduleJob=t_.prototype.parkOrScheduleJob;t_.prototype.processSignal=t_.prototype.processSignal;var qLs=new Set(["eop","eocs","dl","pcl"]);_.$b=new _.xn("MINIPLAYER_SERVICE");var E0,COv,x3k;E0=function(K,d,f){var H=_.rU.getInstance();if(!lvs){var D=new RJX;var S=void 0,n=_.mD("ID_TOKEN");n&&D.isAvailable()&&(S=new gi(D,"yt-queue"+n));lvs=new m3s(S)}D=lvs;S=_.ov();this.JSC$10802_actionRouter=H;this.pageManager=K;this.playlistManager=d;this.JSC$10802_playlistNetworkManager=f;this.storage=D;this.signals=S;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.h_=function(){if(!COv){var K=_.eq(),d=K.resolve(_.Zd(_.jC)),f=K.resolve(_.Zd(_.O1)),H=K.resolve(_.Zd(_.Yf));K=K.resolve(_.Nn);COv=new E0(d,H,new gLu(f,K))}return COv};
x3k=function(K,d,f){if(f){var H;if(((H=K.responsePlaylistData)==null?void 0:H.playlistId)!==f)return}K.responsePlaylistData&&(f=w55(d,K.responsePlaylistData),K.responsePlaylistData=(0,_.PR.unsafeClone)(K.responsePlaylistData),elO(K.responsePlaylistData,f));f=K.temporaryItems.findIndex(function(D){return D.videoId===d});
f>-1&&K.temporaryItems.splice(f,1);_.bi(K,_.mM(K,K.response?K.response.autoplayRenderer:void 0))};
_.LrL=function(K,d){if(K.responsePlaylistData){var f=Z5X(d,K.responsePlaylistData);elO(K.responsePlaylistData,f);if(K.queueProxy){var H=K.queueProxy;f<0||(H.videoIds.splice(f,1),f<H.currentIndex&&H.JSC$10748_setCurrentIndex(H.currentIndex-1),H.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:d}),P5(H))}}_.bi(K,_.mM(K,K.response?K.response.autoplayRenderer:void 0))};
E0.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.bi(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
E0.prototype.setPlaylistData=function(K,d,f){this.temporaryItems=[];this.listId=K;this.responsePlaylistData=d;_.bi(this,_.mM(this,f))};
var Bas=function(K){return(K==null?0:K.playlistId)?K.playlistId:"PPSV"},JVs=function(K){return K&&K.playlistId?K.playlistId==="PPSV"?!0:mgX(_.j3().getState().entities,K.playlistId):!1};
E0.prototype.isPlayingOfflineVideo=function(){return this.response?JVs(this.response):!1};
E0.prototype.closeMiniplayer=function(K){var d=this.queueProxy&&this.queueProxy.size()<=1,f=_.eq().resolve(_.$b);if(!this.queueProxy||d)this.queueProxy&&this.clearQueue(),f.close(!0);else{f.pipController.getWindow()&&window.focus();d=this.responsePlaylistData;var H=this.temporaryItems.length+(d&&d.contents?d.contents.length:0);d=_.iB("QUEUE_CLEARED_UNPLURALIZED")||_.cG("QUEUE_CLEARED",H);d=_.LF(d);f=_.iB("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");H=_.iB("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.cG("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",H);var D=_.iB("MINIPLAYER_CLOSE",void 0,"Close"),S=_.iB("CANCEL",void 0,"Cancel");_.Nh(this.JSC$10802_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.rB(f),dialogMessages:[_.rB(H)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.rB(D),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
d]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.rB(S)}}}}}}],K)}};
_.mM=function(K,d){var f={},H=K.response;f.autoplayRenderer=d;if(!K.responsePlaylistData&&!K.temporaryItems.length)return!H||!H.hasRelatedVideoData&&_.M("kevlar_prefetch_data_augments_network_data")||(f.playerData={rvs:H.relatedVideoArgs,endScreenRenderer:H.endScreenRenderer}),f;f.playerData={};if(K.index===void 0)return _.$7(Error("Ff")),f;f.panel=K.responsePlaylistData?(0,_.PR.unsafeClone)(K.responsePlaylistData):{titleText:_.rB(_.iB("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
d=f.panel;if(d.contents)for(var D=_.y(K.temporaryItems),S=D.next();!S.done;S=D.next())d.contents.push({playlistPanelVideoRenderer:S.value});K.queueProxy&&H&&H.playingVideo&&H.playingVideoId&&!kZO(H.playingVideoId,f.panel)&&(d=H.playingVideo,D=f.panel,S=K.index,D.contents&&D.contents.splice(S===void 0?0:S,0,{playlistPanelVideoRenderer:d}));H&&H.playingVideoId&&(d=K.index,D=f.panel,d=!D.contents||d>=D.contents.length?void 0:D.contents[d].playlistPanelVideoRenderer,d&&d.videoId===H.playingVideoId||(d=
w55(H.playingVideoId,f.panel),K.index=d!==-1?d:K.index?K.index-1:0));d=svz(K.index+1,f.panel);D=void 0;K.index>0&&(D=svz(K.index-1,f.panel));if(D||d)f.autoplayRenderer=LMY(d,D,f.autoplayRenderer);!d&&(H==null?0:H.relatedVideoArgs)&&(f.playerData.rvs=H.relatedVideoArgs);H=H?H.playlistIndexOffset:0;K.queueProxy?dzN(f.panel,K.index,H,J_z,!0,!0,!0):dzN(f.panel,K.index,H);f.playerData.playlistPanelRenderer=f.panel;return f};
E0.prototype.openToast=function(K){_.eq().resolve(_.$b).openToast(K,_.iB("ADDED_TO_QUEUE",void 0,"Added to queue"))};
E0.prototype.isMiniplayerActive=function(){return _.eq().resolve(_.$b).isMiniplayerActive()};
_.bi=function(K,d){K.playlistManager.setAutoplayRenderer(d.autoplayRenderer||null);K.playlistManager.setPlaylistData(d.panel||null);d.playerData&&K.playlistManager.setPlayerPlaybackControlData(d.playerData)};var HI5="#";var suf={},kxH={},wwN={},ZDB={},ep4={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:(suf.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",suf),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:(kxH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",kxH),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:(wwN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",wwN),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:(ZDB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",ZDB),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 rjO=[{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:ep4},{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:ep4}}];var $zz;_.dm=[[["aW5kI2lqemRmcmg5aTN0Mms=","b3A5d2o3cWl6bWkzdmFsdWUj"],"aThteHB5ZWp1emtlQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQj"]];
$zz=[[["aXlrcXByaW1hcnkjcjJhbjd2YmQ=",null],[null,["d3NlLXJlc3VsdHMtcmVuZGVyZXIjYjJnN3o5d2FhdnJneXRkLXR3by1jb2x1bW4tYnJv","ZjlleXk5YXFwYXdoc3R5bGUtc2NvcGUj"]],["Mnh2YWZpajk1b3EwbWFzdGhlYWQtYWQj",["ciNqOWdudTU2cDE5Y2F5dGQtcmljaC1ncmlkLXJlbmRlcmU="]],[null,["ciNhaHZjeTFva25tdW95dGQtcmljaC1ncmlkLXJlbmRlcmU=","cnM4ZDU2YnF0bTZ2c3R5bGUtc2NvcGUj"]],[null,["MDMybGNpM2Z5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyI2VibGc=","b2JsdjFld3R0bm16c3R5bGUtc2NvcGUj"]],[null,["ZGVyZXIjMTd4amh2OXU3amZjeXRkLWFkLXNsb3QtcmVu"]]],[["ZHMjMXJyYXN3ZnQ5ZDBxcGxheWVyLWE=",
null]]];_.KU=["Z2xvYmFsQ2FsbGJhY2tzI2p0aWVneWg2aG51Zw==","dGVkI3hyajZwcWRidW51Ym9uQWJub3JtYWxpdHlEZXRlYw==","b25BZFNraXAjdWwyMnV2ODZtZGVs","ZXNwb25zZSNrbmtqcG0yZHhxaHdyYXdfcGxheWVyX3I=","Yzh1MWFkU2xvdHMjNmZxN2Q5bW4="];_.li="Z2xvYmFsQ2FsbGJhY2tzI2p0aWVneWg2aG51Zw== dGVkI3hyajZwcWRidW51Ym9uQWJub3JtYWxpdHlEZXRlYw== b25BZFNraXAjdWwyMnV2ODZtZGVs ZXNwb25zZSNrbmtqcG0yZHhxaHdyYXdfcGxheWVyX3I= dWV1ZV9tdWx0aXBsZV9za2lwc19rcyNhaHJ0ZGl1ZGVwZ2J3ZWJfcGxheWxpc3RfcQ== YWJfc2FfZWYjcDF0bWw5eDV4OGJl Yzh1MWFkU2xvdHMjNmZxN2Q5bW4=".split(" ");var W5;W5=function(K,d,f){this.hqj=K;this.isAsync=d;this.yho=f};
_.ZIu=[new W5("b.f_",!1,0),new W5("j.s_",!1,2),new W5("r.s_",!1,4),new W5("e.h_",!1,6),new W5("i.s_",!0,8),new W5("s.t_",!1,10),new W5("p.h_",!1,12),new W5("s.i_",!1,14),new W5("f.i_",!1,16),new W5("a.b_",!1,18),new W5("a.o_",!1),new W5("g.o_",!1,22),new W5("p.i_",!1,24),new W5("p.m_",!1),new W5("n.k_",!0,20),new W5("i.f_",!1),new W5("a.s_",!0),new W5("m.c_",!1),new W5("n.h_",!1,26),new W5("o.p_",!1),new W5("m.p_",!0,28),new W5("o.a_",!1),new W5("d.p_",!1),new W5("e.i_",!1)].reduce(function(K,d){K[d.hqj]=
d;return K},{});var pwf=function(){};
pwf.prototype.flush=function(K,d){K=K===void 0?[]:K;d=d===void 0?!1:d;if(_.M("enable_client_streamz_web")){K=_.y(K);for(var f=K.next();!f.done;f=K.next())f=uiv(f.value),this.rootSpec&&_.fM(f,2,this.rootSpec),f={serializedIncrementBatch:_.eS(f.JSC$7616_serializeBinary())},_.t3("streamzIncremented",f,{sendIsolatedPayload:d})}};
var yjO=function(){};
_.O(yjO,pwf);var KX4=function(K){var d=new Dlt;var f=new dl4;f=_.aL(f,1,"botguard");K=_.aL(f,2,K);this.rootSpec=_.Hg(d,1,VSH,K)};
_.O(KX4,pwf);var ZR,dZL=new Map;var mzS,iIB,XnX,aIu,RLB,tbu,WPX,NsS;mzS=2;iIB=2;XnX=2;aIu=2;RLB=2;tbu=2;WPX=2;NsS=new y5J;var HvL,DZf,VE8;HvL=function(){this.ongoingFlowNonces=new Map};
_.Vm=function(){DZf||(DZf=new HvL);return DZf};
_.HW=function(K,d,f){return{eventType:{flowEventNamespace:K,flowEventType:d},metadata:f,statusCode:void 0,csn:void 0,can:void 0}};
_.pno=function(K,d){var f=_.Vm(),H=VE8(f,d,!0);_.De(f,K,d,H)};
_.De=function(K,d,f,H){K={flowNonce:H||VE8(K,f),flowType:f,flowEventType:d.eventType};d.metadata&&(K.flowMetadata=d.metadata);d.statusCode!==void 0&&(K.flowEventStatus=d.statusCode);d.csn&&(K.csn=d.csn);d.can&&(K.can=d.can);_.t3("flowEvent",K,void 0)};
VE8=function(K,d,f){f=f===void 0?!1:f;var H=K.ongoingFlowNonces.get(d);if(!H||f)H=Oy(16),K.ongoingFlowNonces.set(d,H);return H};_.SO8=new SoN;var HLY={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_JOURNEY_WATCH:"learning_journey_watch"};var GZ=function(K,d,f,H,D,S,n){f=f===void 0?!1:f;H=H===void 0?!1:H;S=S===void 0?_.h_():S;this.hasRun=!1;this.wo2=K;this.lUK=d;this.bpF=f;this.fromHistory=H;this.previousVideoId=D;this.h6V=S;this.tempData=n;this.ftO=new _.nQs};
_.O(GZ,C2);GZ.prototype.validate=function(K){return!(!K.data.playerResponse||K.data.page!=="watch"&&K.data.page!=="learning_journey_watch"&&K.data.page!=="shorts"||this.hasRun)};
GZ.prototype.handle=function(K){var d=this,f=_.P(K.endpoint,_.qu),H=_.P(K.endpoint,_.IM);if(_.M("kevlar_continue_playback_without_player_response")&&(f==null?0:f.videoId)&&this.previousVideoId&&(f==null?void 0:f.videoId)===this.previousVideoId&&(f==null?0:f.continuePlayback)&&!this.fromHistory)this.wo2.resolve();else{var D={};f?D.watch_endpoint=f:H&&(D.watch_endpoint=H,H.endTimeSeconds&&(D.end=H.endTimeSeconds));K.data.page==="watch"?(K.data.filler||this.bpF||(_.ty("cfg"),_.rU.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(D,ySH(this,K.endpoint)),_.M("enable_masthead_quartile_ping_fix")&&Object.assign(D,nYf(this)),Object.assign(D,void 0),K.data.forceExternalPlaylist&&(D.external_list=!0)):K.data.page==="shorts"?_.rU.getInstance().triggerAction("yt-start-loading-shorts"):K.data.page==="learning_journey_watch"&&_.rU.getInstance().triggerAction("yt-start-loading-learning-journey");if(f=this.lUK()){try{f.loadVideoWithPlayerResponse(K.data.playerResponse,D),f.getPlayerPromise().then(this.wo2.resolve)}catch(S){_.$7(S),
this.wo2.resolve()}this.hasRun=!0;f.getPlayerPromise().then(function(S){S.addEventListener("onAbnormalityDetected",function(){var n=K.data.playerResponse,u=S.getVideoData().cpn;WPX=0;_.fGN=u;if(u=wnz(n))d.ftO.increment("IN_PLAYER"),_.SZ(5),_.M("ab_st_vid_ks")?S.pauseVideo(!0):S.stopVideo(),n.playabilityStatus=Object.assign({},n.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:u}}),n.videoDetails=void 0,_.rU.getInstance().triggerOptionalAction("yt-updated-playability-status",
n.playabilityStatus)})})}else _.h3(Error("If"))}};
var ySH=function(K,d){var f=_.P(d,_.qu);if(d&&f&&f.playlistId&&f.videoId&&(K=K.h6V,K.queueProxy?(K=K.queueProxy,f=K.listId===f.playlistId?K.attributionData.get(f.videoId):void 0):f=void 0,f))return{queue_info:f}},nYf=function(K){var d;
if((d=K.tempData)==null?0:d.adpings)return{adpings:K.tempData.adpings}};var A_=function(K,d,f){this.hasRun=!1;this.ath=K;this.eKF=d;this.uqh=f};
_.O(A_,C2);A_.prototype.validate=function(K){return!!_.PR.getValueByKeys.apply(null,[K.data].concat(_.Me(bDf)))};
A_.prototype.handle=function(K){var d=this;this.ath.promise.then(function(){var f=K.data;var H=_.PR.getValueByKeys.apply(null,[f].concat(_.Me(Nak))),D=_.PR.getValueByKeys.apply(null,[f].concat(_.Me(EVk))),S=_.PR.getValueByKeys.apply(null,[f].concat(_.Me(t_H)));var n=(n=_.PR.getValueByKeys.apply(null,[f].concat(_.Me(YLv))))?{videoId:n.videoId,thumbnail:n.thumbnail,title:n.title?_.rB(n.title):void 0,shortBylineText:n.author?_.rB(n.author):void 0}:void 0;var u=void 0;_.M("web_get_playlist_id_from_current_endpoint_ks")||
(u=_.PR.getValueByKeys.apply(null,[f].concat(_.Me(oV8))));var a=_.PR.getValueByKeys.apply(null,[f].concat(_.Me(hpN))),R=_.PR.getValueByKeys.apply(null,[f].concat(_.Me($39))),F=!!a||!!R&&!!R.results&&R.results.length>0,z=0;D&&D.currentIndex&&D.localCurrentIndex&&(z=D.currentIndex-D.localCurrentIndex);D&&D.playlistId&&(u=D.playlistId);f={rawResponse:f,autoplayRenderer:H,hasRelatedVideoData:F,playingVideo:n,playingVideoId:S,playlistPanelRenderer:D,playlistId:u,playlistIndex:D&&D.currentIndex,relatedVideoArgs:a,
endScreenRenderer:R,playlistIndexOffset:z};a:{H=d.uqh;D=d.eKF;H.response=f;if(JVs(f))H.downloadPlaylistProxy&&H.downloadPlaylistProxy.getPlaylistId()===Bas(f)||(H.downloadPlaylistProxy=new FrB(Bas(f),H.setPlaylistData.bind(H),H.isPlayingOfflineVideo.bind(H))),H.responsePlaylistData=H.downloadPlaylistProxy.getPlaylistData(),H.listId=Bas(f),H.index=0;else if(f.playlistPanelRenderer&&f.playlistId&&f.autoplayRenderer)f.playlistId.startsWith("TLPQ")?H.queueProxy?H.listId===f.playlistId?(H.index=f.playlistIndex,
H.responsePlaylistData=f.playlistPanelRenderer,H.queueProxy.JSC$10748_setCurrentIndex(H.index)):f.playingVideoId&&H.index!==void 0&&D.clientParams.autoSaveToQueue&&(H.index+=1,H.queueProxy.JSC$10748_setCurrentIndex(H.index),H.queueProxy.addVideos([f.playingVideoId],{},H.index)):(H.queueProxy=new _.gx(H.JSC$10802_playlistNetworkManager,f.playlistId,H.setPlaylistData.bind(H),H.clearQueue.bind(H),_.p5Y(f.playlistPanelRenderer),H.storage),H.responsePlaylistData=f.playlistPanelRenderer,H.listId=f.playlistId,
H.index=f.playlistIndex):(H.index=f.playlistIndex,H.listId!==f.playlistId&&H.clearQueue(),H.responsePlaylistData=f.playlistPanelRenderer,H.listId=f.playlistId,H.playlistProxy=new OD9(H.JSC$10802_playlistNetworkManager,f.playlistId,H.setPlaylistData.bind(H),_.p5Y(f.playlistPanelRenderer)));else if(!H.queueProxy)H.responsePlaylistData=void 0;else if(f.playingVideoId&&D.clientParams.autoSaveToQueue){if(H.index===void 0){_.$7(Error("Ef"));H.clearQueue();break a}H.queueProxy.videoIds.includes(f.playingVideoId)||
(H.index+=1,H.queueProxy.JSC$10748_setCurrentIndex(H.index),H.queueProxy.addVideos([f.playingVideoId],{},H.index))}_.bi(H,_.mM(H,H.response.autoplayRenderer))}})};var ivL=function(K,d){d=d===void 0?_.h_():d;DB.call(this);this.da.push(new A_(this.eL,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},d));this.da.push(new GZ(this.eL,K,!1,!1));_.M("web_response_commands_chunk_processor")&&this.da.push(new Vg)};
_.O(ivL,DB);ivL.prototype.processChunk=function(K){K&&K.data.player===void 0&&this.eL.resolve();DB.prototype.processChunk.call(this,K)};var TZ=function(K,d){K=K===void 0?{layer:0}:K;this.hasRun=!1;this.createScreenConfig=K;this.hhZ=d};
_.O(TZ,C2);TZ.prototype.validate=function(K){return!(this.hasRun||!K.endpoint)};
TZ.prototype.handle=function(K){var d=_.cv(),f,H,D=(H=_.P((f=K.endpoint)==null?void 0:f.commandMetadata,_.B0))==null?void 0:H.rootVe;this.hhZ&&D?_.eA(d,D,this.hhZ,this.createScreenConfig):KZs(d,K.endpoint,this.createScreenConfig);this.hasRun=!0};var rx=function(K,d){this.hasRun=!1;this.cwO=K;this.previousVideoId=d};
_.O(rx,C2);rx.prototype.validate=function(K){return _.M("kevlar_continue_playback_without_player_response")&&(K=_.P(K.endpoint,_.qu),(K==null?0:K.videoId)&&this.previousVideoId&&(K==null?void 0:K.videoId)===this.previousVideoId&&(K==null?0:K.continuePlayback))?!1:this.cwO.w66===0};
rx.prototype.handle=function(K){_.rU.getInstance().triggerAction("yt-stop-old-player",K.data,!0)};var cS8=function(K){K=K===void 0?{layer:0}:K;DB.call(this);this.da.push(new rx(this));this.da.push(new TZ(K));this.da.push(new H5(K))};
_.O(cS8,DB);var uM4=function(){this.hasRun=this.hasRun=!1};
_.O(uM4,C2);uM4.prototype.validate=function(K){return!this.hasRun&&!(!K.data.csn||!K.data.rootVe)};
uM4.prototype.handle=function(K){this.hasRun=!0;_.$Z(K.data.csn,K.data.rootVe,3)};var aGL=function(){C2.apply(this,arguments)};
_.O(aGL,C2);aGL.prototype.validate=function(K){return!!K.data.preconnect};
aGL.prototype.handle=function(K){_.YJ("bc");K=_.y(K.data.preconnect);for(var d=K.next();!d.done;d=K.next())d=d.value,(new Image).src=d};var IGs=function(K,d,f){f=f===void 0?{layer:0}:f;DB.call(this);this.da.push(new GZ(this.eL,K));this.da.push(new TZ(f));this.da.push(new H5(f))};
_.O(IGs,DB);var UZf=function(K,d,f,H,D){f=f===void 0?{layer:0}:f;H=H===void 0?_.h_():H;DB.call(this);var S=!!d&&!!d.clientParams&&!!d.clientParams.miniplayer;S&&this.da.push(new uM4);this.da.push(new A_(this.eL,d,H));this.da.push(new aGL);var n,u;this.da.push(new GZ(this.eL,K,S,!((n=d.clientParams)==null||!n.fromHistory),(u=d.clientParams)==null?void 0:u.previousVideoId,H,d.tempData));var a;this.da.push(new rx(this,(a=d.clientParams)==null?void 0:a.previousVideoId));var R;(R=d.clientParams)!=null&&R.fromHistory||
(f.layer||(f=Object.assign({},f,{layer:S?3:0})),this.da.push(new TZ(f,D)),this.da.push(new H5(f)));_.M("web_response_commands_chunk_processor")&&this.da.push(new Vg)};
_.O(UZf,DB);var qp,zkt;qp={};
_.Rk4=(qp["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},qp["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},qp["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},qp["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},qp["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},qp["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},qp["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},qp);_.Qg=new _.mn("yt-edu");_.FX8=function(){this.JSC$10903_eduDisplayedThisLoad_={}};
zkt=function(K){var d=_.FX8.getInstance();var f=_.di("kevlar_tooltip_impression_cap");d=f&&parseInt(_.Qg.get(K+"-impression")||0,10)>=f||_.Qg.get(K+"-dismissed")?!1:(f=_.Rk4[K])&&!d.JSC$10903_eduDisplayedThisLoad_[f.setKey||K]&&(f.titleText&&_.iB(f.titleText)||f.bodyText&&_.iB(f.bodyText))?!0:!1;if(!d)return null;d=_.Rk4[K];if(!d)return null;f=d.bodyText?_.iB(d.bodyText):void 0;var H=d.titleText?_.iB(d.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:d.position,popup:{bubbleHintRenderer:{text:H?
_.rB(H):void 0,detailsText:f?_.rB(f):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.rB(_.iB("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:K}}]}}}}}}}},{eduImpressionAction:{key:K}}]};
_.xb(_.FX8);var KZY=!1;for(var XI4="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),vYv=[],jJ=6;jJ>=1;jJ--)vYv.push({columnCount:jJ,query:jJ==1?0:jJ*2*107-4+32,className:"grid-"+jJ+"-columns",width:jJ*2*107+"px"});_.PZH=function(K){this.actionRouter_=K=K===void 0?_.rU.getInstance():K;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.MEs(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.MEs=function(K){var d=K.miniGuideVisible_?72:0,f=K.documentWidth_-(K.guidePersistentAndVisible_?240:d);return vYv.find(function(H){return f>H.query})};
_.xb(_.PZH);var gY4=function(){var K=this;this.JSC$10915_keyboardInUse=!1;document.addEventListener("keydown",function(){K.onKeydown()});
document.addEventListener("mousedown",function(){K.JSC$10915_keyboardInUse=!1})},Ovv;
gY4.prototype.isKeyBoardInUse=function(){return this.JSC$10915_keyboardInUse};
gY4.prototype.onKeydown=function(){this.JSC$10915_keyboardInUse=!0};var NJ6,L5;_.C5=new _.mn("yt-mentions");_.xf=function(){};
NJ6=function(K,d){return L5(d,"drag-to-reorder-edu-displayed")};
L5=function(K,d,f,H,D,S){f=f===void 0?"OPEN_POPUP_POSITION_TOP":f;if(d){if(_.C5.get(d))return;_.C5.set(d,!0,H)}if(D&&S!==void 0){d=Number(_.C5.get(D)||0);if(d>=S)return;_.C5.set(D,d+1)}return[{openPopupAction:{popupType:"HINT",position:f,popup:{bubbleHintRenderer:{detailsText:K,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.xb(_.xf);var YO9,tE9,oYB;YO9=function(K,d,f,H){this.JSC$10925_taskManager_=K;this.onFulfilled_=typeof d==="function"?d:null;this.onRejected_=typeof f==="function"?f:null;this.JSC$10925_context_=H};
tE9=function(K,d){K.onFulfilled_&&_.uX(K.JSC$10925_taskManager_,function(){K.onFulfilled_.call(K.JSC$10925_context_,d)})};
oYB=function(K,d){K.onRejected_&&_.uX(K.JSC$10925_taskManager_,function(){K.onRejected_.call(K.JSC$10925_context_,d)})};
_.B5=function(K){this.JSC$10928_taskManager_=K;this.callbacks_=[]};
_.B5.prototype.then=function(K,d,f){this.callbacks_.push(new YO9(this.JSC$10928_taskManager_,K,d,f));return this};
_.B5.prototype.onSuccess=function(K){this.callbacks_.forEach(function(d){tE9(d,K)})};
_.B5.prototype.onFailure=function(K){this.callbacks_.forEach(function(d){oYB(d,K)})};
_.B5.prototype.cancel=function(){this.callbacks_.length=0};
Rq8(_.B5);_.VYo=null;_.Pp=new _.xn("ACTIVITY_TOKEN");var J_=function(K,d){this.serviceId=new Iqv(K,d)};
J_.prototype.toString=function(){return this.serviceId.toString()};var $ZB=function(){this.internalMap={}};
_.V=$ZB.prototype;_.V.contains=function(K){return Object.prototype.hasOwnProperty.call(this.internalMap,K)};
_.V.get=function(K){if(this.contains(K))return this.internalMap[K]};
_.V.set=function(K,d){this.internalMap[K]=d};
_.V.getKeys=function(){return Object.keys(this.internalMap)};
_.V.remove=function(K){delete this.internalMap[K]};var s0=function(){this.mappings=new $ZB;this.errorCallbacks=new Set};
s0.prototype.getModuleId=function(K){return K.serviceId.getModuleId()};
s0.prototype.get=function(K){var d=this.mappings.get(K.toString());return EYL(this,d,K)};
s0.prototype.getMultipleAsync=function(){var K=_.Pg.apply(0,arguments),d=this,f=K.map(function(a){return d.getModuleId(a)}),H=K.map(function(a){return d.mappings.get(a.toString())}).filter(function(a){return a});
if(H.length===K.length)return _.HG(H.map(function(a,R){return EYL(d,a,K[R])}));
var D=Em().loadMultiple(f);H=_.at(f.map(function(a){return D[a]}));
var S=document.hidden,n=-1,u=_.di("get_async_timeout_ms",-1);u>-1&&(n=setTimeout(function(){_.h3(new _.X4("Module timeout.",f,S,document.hidden))},u));
return _.It(H.then(function(){return K.map(function(a){return EYL(d,d.mappings.get(a.toString()),a)})}).thenCatch(function(a){for(var R=_.y(d.errorCallbacks),F=R.next();!F.done;F=R.next())F=F.value,F(a);
throw a;}),function(){clearTimeout(n)})};
s0.prototype.registerService=function(K,d){this.mappings.set(K.toString(),{type:"mapping",value:d});return K};
var EYL=function(K,d,f){switch(d.type){case "mapping":return d.value;case "factory":return d=d.value(),K.mappings.set(f.toString(),{type:"mapping",value:d}),d;default:return _.nE(d)}};
s0.prototype.onLoadError=function(K){var d=this;this.errorCallbacks.add(K);return function(){d.errorCallbacks.delete(K)}};
_.kf=new s0;var cTz=/^[a-zA-Z0-9_\-]{11}$/;var uDo=_.yi(function(){var K,d;return(d=(K=window).matchMedia)==null?void 0:d.call(K,"(prefers-reduced-motion: reduce)").matches});var hk8=_.yi(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 K=_.T2("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");K||(K=_.RQ("VIDEO"),_.B6("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
K));return!!(K&&K.canPlayType&&K.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var z4Y=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var wx;wx=function(){this.tokenJars={};if(this.cookiesEnabled=_.R0()){var K=_.I0.get("CONSISTENCY",void 0);K&&bvv(this,{encryptedTokenJarContents:K})}};
_.vL5=function(){wx.instance||(wx.instance=new wx);return wx.instance};
wx.prototype.handleResponse=function(K,d){if(!d)throw Error("Of");var f,H;d=((f=d.innerTubeRequest.context)==null?void 0:(H=f.request)==null?void 0:H.consistencyTokenJars)||[];var D;(K=(D=K.responseContext)==null?void 0:D.consistencyTokenJar)&&this.replace(d,K)};
wx.prototype.replace=function(K,d){K=_.y(K);for(var f=K.next();!f.done;f=K.next())delete this.tokenJars[f.value.encryptedTokenJarContents];bvv(this,d)};
var bvv=function(K,d){if(d.encryptedTokenJarContents&&(K.tokenJars[d.encryptedTokenJarContents]=d,typeof d.expirationSeconds==="string")){var f=Number(d.expirationSeconds);setTimeout(function(){delete K.tokenJars[d.encryptedTokenJarContents]},f*1E3);
K.cookiesEnabled&&_.UF("CONSISTENCY",d.encryptedTokenJarContents,f,void 0,!0)}};var mZk,ZB;mZk=window.location.hostname.split(".").slice(-2).join(".");_.PW=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var K=_.mD("LOCATION_PLAYABILITY_TOKEN");_.mD("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=lGs(this))&&(K=this.localStorage.get("yt-location-playability-token"));K&&(this.locationPlayabilityToken=K,this.mostRecentPosition=void 0)};
_.PW.getInstance=function(){ZB=_.T2("yt.clientLocationService.instance");ZB||(ZB=new _.PW,_.B6("yt.clientLocationService.instance",ZB));return ZB};
_.PW.prototype.setLocationOnInnerTubeContext=function(K){K.client||(K.client={});if(this.mostRecentPosition)K.client.locationInfo||(K.client.locationInfo={}),K.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),K.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),K.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),K.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)K.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.PW.prototype.handleResponse=function(K){var d;K=(d=K.responseContext)==null?void 0:d.locationPlayabilityToken;K!==void 0&&(this.locationPlayabilityToken=K,this.mostRecentPosition=void 0,_.mD("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=lGs(this))&&this.localStorage.set("yt-location-playability-token",K,15552E3):_.UF("YT_CL",JSON.stringify({loctok:K}),15552E3,mZk,!0))};
var lGs=function(K){return K.localStorage===void 0?new _.mn("yt-client-location"):K.localStorage};
_.PW.prototype.clearLocationPlayabilityToken=function(K){K==="TVHTML5"?(this.localStorage=lGs(this))&&this.localStorage.remove("yt-location-playability-token"):_.yeN("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.PW.prototype.getCurrentPositionFromGeolocation=function(){var K=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Pf"));var d=!1,f=1E4;_.mD("INNERTUBE_CLIENT_NAME")==="MWEB"&&(d=!0,f=15E3);return new Promise(function(H,D){navigator.geolocation.getCurrentPosition(function(S){K.mostRecentPosition=S;H(S)},function(S){D(S)},{enableHighAccuracy:d,
maximumAge:0,timeout:f})})};
_.PW.prototype.createUnpluggedLocationInfo=function(K){var d={};K=K.coords;if(K==null?0:K.latitude)d.latitudeE7=Math.floor(K.latitude*1E7);if(K==null?0:K.longitude)d.longitudeE7=Math.floor(K.longitude*1E7);if(K==null?0:K.accuracy)d.locationRadiusMeters=Math.round(K.accuracy);return d};
_.PW.prototype.createLocationInfo=function(K){var d={};K=K.coords;if(K==null?0:K.latitude)d.latitudeE7=Math.floor(K.latitude*1E7);if(K==null?0:K.longitude)d.longitudeE7=Math.floor(K.longitude*1E7);return d};var WXH=function(){};
_.V=WXH.prototype;
_.V.JSC$10995_getRequest=function(K,d,f){d=d===void 0?{}:d;f=f===void 0?Fgk:f;var H=d;if(this.isNavigationCommand()){var D,S=(D=_.P(K==null?void 0:K.commandMetadata,_.B0))==null?void 0:D.url;H=_.MYG(K.clickTrackingParams,!0,!1,S,this.JSC$10995_getClientScreen(H))}else H=_.MYG(K.clickTrackingParams,!1,this.includeCsn);H={context:H};if(D=this.getExtension(K))return this.JSC$10995_buildRequest(H,D,d),D=this.getApiUrl(K),S=Object.assign({},{command:K},this.getRequestConfig(K,d)),H={input:D,requestShell:Tw(D),
innerTubeRequest:H,config:S},H.config.authStrategy?H.config.authStrategy.identity=f:H.config.authStrategy={identity:f},(K=this.JSC$10995_getRequestKey(K,d))&&!H.config.requestKey&&(H.config.requestKey=K),H;K=new _.X4("Error: Failed to create Request from Command.",K);_.$7(K)};
_.V.getApiUrl=function(K){var d=_.CF(this.getApiPaths(K)),f;(K=(f=_.P(K.commandMetadata,_.B0))==null?void 0:f.apiUrl)&&(d=K);return kMG(sto(d))};
_.V.isNavigationCommand=function(){return!1};
_.V.JSC$10995_getClientScreen=function(){};
_.V.JSC$10995_getRequestKey=function(){};
_.V.getRequestConfig=function(){};
_.x$.Object.defineProperties(WXH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var eJ=function(){};
_.O(eJ,WXH);eJ.prototype.JSC$11002_getStoreKey=function(){};
eJ.prototype.JSC$10995_getRequestKey=function(K,d){d=d===void 0?{}:d;return this.JSC$11002_getStoreKey(K,d)};var AS9;_.p5=function(K,d,f){var H=f&&f>0?f:0;f=H?Date.now()+H*1E3:0;if((H=H?(0,_.GTN)():AS9())&&window.JSON){typeof d!=="string"&&(d=JSON.stringify(d,void 0));try{H.set(K,d,f)}catch(D){H.remove(K)}}};
_.KI=function(K){var d=AS9(),f=(0,_.GTN)();if(!d&&!f||!window.JSON)return null;try{var H=d.get(K)}catch(D){}if(typeof H!=="string")try{H=f.get(K)}catch(D){}if(typeof H!=="string")return null;try{H=JSON.parse(H,void 0)}catch(D){}return H};
_.ds=function(K){try{var d=AS9(),f=(0,_.GTN)();d&&d.remove(K);f&&f.remove(K)}catch(H){}};
_.GTN=_.yi(function(){try{var K=new UuX;var d=K.isAvailable()?K:null}catch(f){return null}return d?new _.p3(d):null});
AS9=_.yi(function(){var K=new RJX;return K.isAvailable()?new _.p3(K):null});var Ks=new _.xn("ENTITY_STATE_TOKEN"),fI=new _.xn("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var TJk=XMLHttpRequest.prototype.fetch,rSH=TJk&&TJk.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!x_?!0:!1;var Hn=function(K){this.JSC$11007_storeWithEntities=K};
_.O(Hn,eJ);_.V=Hn.prototype;_.V.getApiPaths=function(){return HIN};
_.V.getExtension=function(K){return _.P(K,_.qu)||_.P(K,_.IM)||_.P(K,Dh9)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$11002_getStoreKey=function(K){if((_.M("kevlar_cache_on_ttl_player")||_.M("mweb_enable_shorts_innertube_player_prefetch")||_.M("mweb_use_new_history_manager")||_.M("web_shorts_prefetch_service_enabled"))&&(K=this.getExtension(K))&&K.videoId){var d={videoId:K.videoId};K.playlistId&&(d.playlistId=K.playlistId);K.playerParams&&(d.params=K.playerParams);return _.rL("player",d)}};
_.V.JSC$10995_getClientScreen=function(K){var d;return((d=K.contentPlaybackContext)==null?void 0:d.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.V.JSC$10995_buildRequest=function(K,d,f){if(_.M("enable_interstitial_entity_check")){var H=this.JSC$11007_storeWithEntities;if(d.videoId)for(var D=_.y(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),S=D.next();!S.done;S=D.next()){S=S.value;var n;var u=void 0,a=void 0,R=d.videoId,F=S;(n=H)?(R=_.HJ(R+F,"interstitialInteractionStateEntity"),n=(u=(a=_.DR(n.getState().entities,"interstitialInteractionStateEntity",R))==null?void 0:a.primaryButtonClicked)!=null?u:!1):n=!1;if(n)switch(S){case "CONTENT_CHECK_REQUIRED":d.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":d.racyCheckOk=!0}}}d.videoId&&(K.videoId=d.videoId);d.playlistId&&(K.playlistId=d.playlistId);d.index!==void 0&&(K.playlistIndex=d.index+1);d.playerParams&&(K.params=d.playerParams);"startTimeSeconds"in d&&d.startTimeSeconds&&(_.M("enable_player_request_builder_start_time_floor")?K.startTimeSecs=Math.floor(d.startTimeSeconds):K.startTimeSecs=d.startTimeSeconds);f.contentPlaybackContext&&(K.playbackContext={contentPlaybackContext:f.contentPlaybackContext});f.prefetchPlaybackContext&&
(K.playbackContext=Object.assign({},K.playbackContext,{prefetchPlaybackContext:f.prefetchPlaybackContext}),K.context.request||(K.context.request={}),K.context.request.isPrefetch=!0);K.playbackContext||(K.playbackContext={});H=hk8();K.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!H,supportXhr:rSH};f.overrideMutedAtStart&&(K.overrideMutedAtStart=f.overrideMutedAtStart);K.racyCheckOk=!!d.racyCheckOk;K.contentCheckOk=!!d.contentCheckOk;!_.M("captions_prefs_killswitch")&&(f=(f=_.KI("yt-player-caption-language-preferences"))?
f:[],f==null?0:f.length)&&(K.captionParams={viewerSelectedCaptionLangs:f})};
_.V.getRequestConfig=function(K){K=this.JSC$11002_getStoreKey(K);var d;K&&(d={storeStrategy:{storeKey:K}});_.M("web_log_player_watch_next_ticks")&&(d=d||{},d.requestTick="ps_s",d.responseTick="ps_r");return d};
Hn[CG]=[Ks];var DI=function(){};
_.O(DI,eJ);_.V=DI.prototype;_.V.getApiPaths=function(){return lIk};
_.V.getExtension=function(K){return _.P(K,_.qu)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$11002_getStoreKey=function(K){if((K=this.getExtension(K))&&K.videoId){var d={videoId:K.videoId};K.playlistId&&(d.playlistId=K.playlistId);K.index&&(d.index=K.index);K.params&&(d.params=K.params);return _.rL("next",d)}};
_.V.JSC$10995_getClientScreen=function(K){var d;return((d=K.contentPlaybackContext)==null?void 0:d.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.V.JSC$10995_buildRequest=function(K,d,f){d.videoId&&(K.videoId=d.videoId);d.playlistId&&(K.playlistId=d.playlistId);d.params&&(K.params=d.params);d.index!==void 0&&(K.playlistIndex=d.index);K.racyCheckOk=!(!f.racyCheckOk&&!d.racyCheckOk);K.contentCheckOk=!!d.contentCheckOk;f.contentPlaybackContext&&(K.autonavState=f.contentPlaybackContext.autonavState,K.playbackContext={vis:f.contentPlaybackContext.vis,lactMilliseconds:f.contentPlaybackContext.lactMilliseconds});f.prefetchPlaybackContext&&(K.context.request||
(K.context.request={}),K.context.request.isPrefetch=!0);_.M("captions_hats_killswitch")||(d=_.aS().getFlag(65),d=d!=null?!d:!1,f=!!_.KI("yt-player-sticky-caption"),K.captionsRequested=d&&f)};
_.V.getRequestConfig=function(K){K=this.JSC$11002_getStoreKey(K);var d;K&&(d={storeStrategy:{storeKey:K}});_.M("web_log_player_watch_next_ticks")&&(d=d||{},d.requestTick="wn_s",d.responseTick="wn_r");return d};
var VJ=function(){};
_.O(VJ,eJ);VJ.prototype.getApiPaths=function(){return lIk};
VJ.prototype.getExtension=function(K){return _.P(K,_.$P)};
VJ.prototype.JSC$10995_buildRequest=function(K,d){d.token&&(K.continuation=d.token)};var Sb=function(K,d){this.playerRequestBuilder=K;this.watchNextRequestBuilder=d};
_.O(Sb,eJ);Sb.prototype.getApiPaths=function(){return Bxt};
Sb.prototype.getExtension=function(K){return _.P(K,_.qu)};
Sb.prototype.isNavigationCommand=function(){return!0};
Sb.prototype.JSC$10995_buildRequest=function(K,d,f){K.playerRequest={};this.playerRequestBuilder.JSC$10995_buildRequest(K.playerRequest,d,f);_.M("web_streaming_watch")&&(K.watchNextRequest={},this.watchNextRequestBuilder.JSC$10995_buildRequest(K.watchNextRequest,d,f))};
Sb[CG]=[Hn,DI];var qOs;_.yJ=new _.xn("SHORTS_CONTROLLER_TOKEN");qOs=new _.xn("SHORTS_STATE_STORE_TOKEN");var nI=function(K,d){var f=_.Pg.apply(2,arguments);K=K===void 0?0:K;_.X4.call(this,d,f);this.errorType=K;Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(nI,_.X4);var QTH,jTN,xZv,YCY,bf,kcX,sTk,JS2,Kiv,ZvH,wIL;QTH=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(K){return K+"="}).join("|"));
jTN=RegExp(".*\\?.*playnext=1.*");_.im=function(K,d,f,H){this.watchEndpointMap=K;this.reelWatchEndpointMap=d;this.innerTubeTransportService=f;this.fetchPbj=H};
xZv=function(K,d,f){var H=_.eq().resolve(_.Zd(CZH));_.im.instance=new _.im(K,d,f,H)};
_.LX2=function(K,d){var f=_.di("web_pbj_log_warning_rate",0);f=f>0&&Math.random()<f;var H;if((H=_.P(d.commandMetadata,_.B0))==null||!H.rootVe)return f&&_.h3(Error("Rf")),!1;var D;H=(D=_.P(d.commandMetadata,_.B0))==null?void 0:D.url;if(!H)return f&&_.h3(Error("Sf")),!1;if(jTN.test(H))return!0;if(QTH.test(H))return f&&_.h3(Error("Tf`"+H)),!1;if(_.P(d,_.qu)){if(!(K.watchEndpointMap.watchNext&&K.watchEndpointMap.player||_.M("kevlar_fetch_initial_data_op_watch_client")))return f&&_.h3(Error("Kf")),!1;
K=_.di("web_pbj_log_warning_rate",0);K=K>0&&Math.random()<K;_.P(d,_.qu)?nLN(d)?d=!0:(K&&_.h3(Error("Lf")),d=!1):(K&&_.h3(Error("Kf")),d=!1);return d}if(_.P(d,_.IM))return iLo(d);if(_.P(d,_.NV))return!0;K=_.lh(K.innerTubeTransportService,d);!K&&f&&_.$7(Error("Uf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(d)});return K};
YCY=function(K,d,f,H,D,S){d={url:d};if(f==null?0:f.itct)d.parentTrackingParams=f.itct;var n=_.CF(aI4);return _.Np(K.innerTubeTransportService,d,n).then(function(u){(u=u.endpoint)||(u=_.yg);(f==null?0:f.itct)&&u&&!u.trackingParams&&(u.trackingParams=f.itct);var a=us(u);return bf(K,u,f,H,a,D,S)})};
bf=function(K,d,f,H,D,S,n,u){u=u===void 0?{}:u;if(K.fetchPbj&&!_.LX2(K,d)&&!_.M("force_one_platform")){u=K.fetchPbj(d);var a=_.HG(u.then(function(L){if(!L)throw Error("Vf");n(a)||S(d,L);return L}));
return a}var R,F,z={rootVe:(R=_.P(d.commandMetadata,_.B0))==null?void 0:R.rootVe,url:(F=_.P(d.commandMetadata,_.B0))==null?void 0:F.url,endpoint:d,page:D};if(_.P(d,_.qu)){var v,g={contentPlaybackContext:_.F7(f,(v=_.P(d.commandMetadata,_.B0))==null?void 0:v.url,H)},N=_.Gz();_.M("web_streaming_watch")&&window.TextDecoderStream?(u=BJJ(K.innerTubeTransportService,d,g,function(L){!z.response&&L.content&&(z.response=L.content);!z.playerResponse&&L.player&&(z.playerResponse=L.player);S(d,z)}),R=wkB(d),R.length&&
(z.preconnect=R,S(d,z)),JS2(u,N,z).catch(function(L){L instanceof nI&&L.errorType===2&&sTk(K,d,g,z,S,n,N)})):sTk(K,d,g,z,S,n,N);
return N.promise}if(_.P(d,_.IM)){var h;if(((h=_.P(d,_.IM))==null?void 0:h.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var m=_.Gz();_.kTk(_.eq().resolve(_.yJ),d).then(function(L){wIL(K,f,H,D,S,m,L)});
return m.promise}u=_.HG();var T;R={contentPlaybackContext:_.F7(f,(T=_.P(d.commandMetadata,_.B0))==null?void 0:T.url,H)};(T=K.reelWatchEndpointMap.player)&&(T=T().JSC$10995_getRequest(d,R))&&(u=_.Np(K.innerTubeTransportService,T.innerTubeRequest,T.input,d.clickTrackingParams,T.config));T=_.HG();(F=K.reelWatchEndpointMap.reelItemWatch)&&(F=F().JSC$10995_getRequest(d))&&(T=_.Np(K.innerTubeTransportService,F.innerTubeRequest,F.input,d.clickTrackingParams,F.config));F=_.HG();(v=K.reelWatchEndpointMap.reelWatchSequence)&&
_.P(d,_.IM).sequenceParams&&(R=v().JSC$10995_getRequest(d,R))&&(F=_.Np(K.innerTubeTransportService,R.innerTubeRequest,R.input,d.clickTrackingParams,R.config));R=_.HG(z);v=_.Gz();ZvH(d,R,u,T,F,S,n,v);return v.promise}var r;if(_.P(d,Dru)&&((r=_.P(d.commandMetadata,_.B0))==null?0:r.url))return u=XU5(_.QX(tA().location.href),_.QX(_.P(d.commandMetadata,_.B0).url)).toString(),YCY(K,u,f,H,S,function(){return!1});
if(_.P(d,_.NV))return S(d,z),_.HG(z);if(_.lh(K.innerTubeTransportService,d)){u=Object.assign({},{tempData:f,disableCache:f.disableCache},u);var J=_.Wp(K.innerTubeTransportService,d,u).then(function(L){z.response=L;n(J)||S(d,z);return z});
return J}return _.HG(z)};
_.pI8=function(K,d,f,H){if(_.P(d,_.qu)||_.P(d,_.IM)&&(_.M("mweb_enable_shorts_innertube_player_prefetch")||_.M("kevlar_enable_shorts_prefetch_in_sequence"))||_.P(d,Dh9)&&_.M("web_enable_prefetching_videos_on_home")){var D,S={contentPlaybackContext:_.F7(f,(D=_.P(d.commandMetadata,_.B0))==null?void 0:D.url,H),prefetchPlaybackContext:IHN(f)},n,u,a;if(((n=_.P(d,_.qu))==null?void 0:(u=n.watchEndpointSupportedPrefetchConfig)==null?void 0:(a=u.prefetchHintConfig)==null?void 0:a.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(f=
K.watchEndpointMap.watchNext)if(S=f().JSC$10995_getRequest(d,S))return Promise.resolve(_.Np(K.innerTubeTransportService,S.innerTubeRequest,S.input,void 0,S.config).then(function(z){return z}))}else if(_.P(d,_.IM)&&_.M("web_prefetch_riw_for_next_video")){if(f=K.reelWatchEndpointMap.reelItemWatch)if((f=f().JSC$10995_getRequest(d,S))&&_.Np(K.innerTubeTransportService,f.innerTubeRequest,f.input,void 0,f.config).then(function(z){return z}),f=K.reelWatchEndpointMap.player)if(S=f().JSC$10995_getRequest(d,
S))return Promise.resolve(_.Np(K.innerTubeTransportService,S.innerTubeRequest,S.input,void 0,S.config).then(function(z){return z}))}else if(f=K.watchEndpointMap.player)if(S=f().JSC$10995_getRequest(d,S))return Promise.resolve(_.Np(K.innerTubeTransportService,S.innerTubeRequest,S.input,void 0,S.config).then(function(z){return z}))}else if(_.lh(K.innerTubeTransportService,d)){var R={tempData:f},F=ekJ(K.innerTubeTransportService,d);
return F?new Promise(function(z,v){var g,N;return _.c(function(h){if(h.nextAddress==1)return _.I(h,F,2);if(h.nextAddress!=4)return g=h.yieldResult,g.JSC$11002_getStoreKey(d,R)?_.I(h,_.Wp(K.innerTubeTransportService,d,R),4):(v(new _.X4("Prefetching request builder with no store key.",d)),h.jumpTo(0));N=h.yieldResult;z(N);_.iQ(h)})}):Promise.reject(new _.X4("Prefetching unregistered request builder.",d))}return Promise.reject(new _.X4("No request builder available to prefetch endpoint.",d))};
kcX=function(K,d){var f,H,D;if(_.P(d,_.qu)){var S=K.watchEndpointMap.watchNext;S&&(f=S());(K=K.watchEndpointMap.player)&&(H=K())}else if(_.P(d,_.IM))(S=K.reelWatchEndpointMap.reelItemWatch)&&(f=S()),(S=K.reelWatchEndpointMap.player)&&(H=S()),(K=K.reelWatchEndpointMap.reelWatchSequence)&&(D=K());else{a:{K=wb5(d,K.innerTubeTransportService.endpointMap);if(K!==void 0)if(typeof K.then==="function")_.$7(new _.X4("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",d));else break a;
K=void 0}K&&(f=K)}var n,u,a;return{content:(n=f)==null?void 0:n.JSC$11002_getStoreKey(d),player:(u=H)==null?void 0:u.JSC$11002_getStoreKey(d),reelSequence:(a=D)==null?void 0:a.JSC$11002_getStoreKey(d)}};
sTk=function(K,d,f,H,D,S,n){var u=_.HG(),a=K.watchEndpointMap.player;_.M("web_streaming_player")&&(a=RM(Sb));a&&(a=a().JSC$10995_getRequest(d,f))&&(u=_.Np(K.innerTubeTransportService,a.innerTubeRequest,a.input,d.clickTrackingParams,a.config));a=_.HG();var R=K.watchEndpointMap.watchNext;R&&(f=R().JSC$10995_getRequest(d,f))&&(a=_.Np(K.innerTubeTransportService,f.innerTubeRequest,f.input,d.clickTrackingParams,f.config));K=_.HG(H);Kiv(d,K,u,a,D,S,n)};
JS2=function(K,d,f){return _.c(function(H){if(H.nextAddress==1)return _.I(H,K,2);d.resolve(f);_.iQ(H)})};
Kiv=function(K,d,f,H,D,S,n){var u,a,R,F,z;_.c(function(v){switch(v.nextAddress){case 1:return _.I(v,d,2);case 2:u=v.yieldResult;if(S(n.promise))return n.resolve(u),v.return();D(K,u);a=wkB(K);if(!a.length){v.jumpTo(3);break}return _.I(v,d,4);case 4:u.preconnect=a,D(K,u);case 3:return _.HF(v,5),_.I(v,f,7);case 7:R=v.yieldResult;_.Ts(v,6);break;case 5:return F=_.n7(v),n.reject(F),v.return();case 6:if(R===void 0)return u.reload=!0,D(K,u),n.resolve(u),v.return();if(S(n.promise))return n.resolve(u),v.return();
u.playerResponse=R;D(K,u);_.HF(v,8);return _.I(v,H,10);case 10:z=v.yieldResult;_.Ts(v,9);break;case 8:_.n7(v);case 9:if(z===void 0)return u.response={responseContext:{}},n.resolve(u),v.return();if(S(n.promise))return n.resolve(u),v.return();u.response=z;D(K,u);n.resolve(u);_.iQ(v)}})};
ZvH=function(K,d,f,H,D,S,n,u){var a,R,F,z,v,g;_.c(function(N){switch(N.nextAddress){case 1:return _.I(N,d,2);case 2:a=N.yieldResult;if(n(u.promise))return u.resolve(a),N.return();S(K,a);R=wkB(K);if(!R.length){N.jumpTo(3);break}return _.I(N,d,4);case 4:a.preconnect=R,S(K,a);case 3:return _.HF(N,5),_.I(N,f,7);case 7:F=N.yieldResult;_.Ts(N,6);break;case 5:return z=_.n7(N),u.reject(z),N.return();case 6:if(F===void 0)return a.reload=!0,S(K,a),u.resolve(a),N.return();if(n(u.promise))return u.resolve(a),
N.return();a.playerResponse=F;S(K,a);_.HF(N,8);return _.I(N,H,10);case 10:v=N.yieldResult;_.Ts(N,9);break;case 8:_.n7(N);case 9:if(v===void 0)return a.response={responseContext:{}},u.resolve(a),N.return();if(n(u.promise))return u.resolve(a),N.return();a.response=v;S(K,a);_.HF(N,11);return _.I(N,D,13);case 13:g=N.yieldResult;_.Ts(N,12);break;case 11:_.n7(N);case 12:if(n(u.promise))return u.resolve(a),N.return();a.reelWatchSequenceResponse=g;S(K,a);u.resolve(a);_.iQ(N)}})};
wIL=function(K,d,f,H,D,S,n){var u,a,R,F,z,v;_.c(function(g){if((u=n)==null||!u.replacementEndpoint)return S.reject(),g.return();a=n.replacementEndpoint;(R=_.P(a,_.IM))?(n.sequenceContinuation&&(R.sequenceParams=n.sequenceContinuation),F=_.eq().resolve(_.yJ),z=R.sequenceParams,d9J(F,a)&&delete R.sequenceParams,v=bf(K,a,d,f,H,D,function(){return!1}),v.then(function(N){return _.c(function(h){if(h.nextAddress==1)return fu8(F,{reelWatchEndpoint:{sequenceParams:z}},N),_.I(h,0,2);
S.resolve(N);_.iQ(h)})})):S.reject();
_.iQ(g)})};_.HWJ=function(K){if(K.validatedFragments_.length==0)return null;if(!K.mergedPrefetchedData_){for(var d=[],f=_.y(K.validatedFragments_),H=f.next();!H.done;H=f.next()){H=_.y(K.fragmentConfiguration_[H.value].graftedKeys);for(var D=H.next();!D.done;D=H.next())(D=K.prefetchedData_[D.value].trackingParams)&&d.push(D)}K.mergedPrefetchedData_={};Object.assign(K.mergedPrefetchedData_,K.prefetchedData_,{clientSideGrafts:d})}return K.mergedPrefetchedData_};var D9s;_.cn=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
D9s=function(K,d,f){if(_.SQG(d))return K.prefetchCache_.get(_.yTz(d,f))};_.um=new _.xn("NAVIGATION_TOKEN");var Vf6=function(K){var d=this;var f=f===void 0?OLB():f;var H=H===void 0?_.eq().resolve(_.um):H;this.onePickCommand=K;this.JSC$11105_playlistNetworkManager=f;this.navigationManager=H;this.videoPickerBuilder=_.PFX("yt-addtoplaylist");_.lqJ(Yb8(tqJ(NFt(this.videoPickerBuilder.setTitle(K.modalTitle).setSize(1E3).addView(El6()).addView($oJ())).addView("youtube"),K.selectButtonLabel)),function(D){d.handleAction(D)})};
Vf6.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
Vf6.prototype.handleAction=function(K){var d=this;if(K&&this.onePickCommand.listId&&K.action==="picked"&&K.docs){var f=[];K.docs.forEach(function(H){f.push({addedVideoId:H.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11105_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,f).then(function(){_.M("playlist_add_video_hard_reload_killswitch")?d.navigationManager.reload():S$H(d.navigationManager)})}};var yH2=function(){if(this.constructor===yH2)throw new TypeError("Wf");};
_.V=yH2.prototype;_.V.dispose=function(){};
_.V.disconnect=function(){};
_.V.reconnect=function(){};
_.V.observe=function(K,d,f){return{element:K,option:f}};
_.V.unobserveByKey=function(){};var N8u=function(K,d){d=d===void 0?0:d;yH2.call(this);this.viewroot=K;this.defaultPrescanHeight=d;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),K?{root:K,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.O(N8u,yH2);_.V=N8u.prototype;_.V.dispose=function(){this.disconnect();this.handlers.clear()};
_.V.disconnect=function(K){this.isConnected=!1;this.pauseObservingUntilReconnect=K===void 0?!1:K;this.observer.disconnect();K=_.y(this.prescanObservers.values());for(var d=K.next();!d.done;d=K.next())d.value.disconnect()};
_.V.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var K=_.y(this.handlers),d=K.next();!d.done;d=K.next()){var f=_.y(d.value);d=f.next().value;var H=f.next().value;f=!1;H=_.y(H.keys());for(var D=H.next();!D.done;D=H.next())if((D=D.value)&&D.state==="prescan"){f=!0;break}f&&ndB(this,d).observe(d);this.observer.observe(d)}}};
_.V.handleObserveEvent=function(K){K=_.y(K);for(var d=K.next();!d.done;d=K.next()){d=d.value;var f=this.handlers.get(d.target);if(f){var H=d.isIntersecting;f=_.y(f);for(var D=f.next();!D.done;D=f.next()){var S=_.y(D.value);D=S.next().value;S=S.next().value;D&&(D.state==="visible"&&H||D.state==="hidden"&&!H)&&(S(d.target,D.state),D.calledOnce&&this.unobserveByKey({element:d.target,option:D}))}}}};
_.V.handlePrescanEvent=function(K){K=_.y(K);for(var d=K.next();!d.done;d=K.next()){d=d.value;var f=this.handlers.get(d.target);if(f&&d.isIntersecting){f=_.y(f);for(var H=f.next();!H.done;H=f.next()){var D=_.y(H.value);H=D.next().value;D=D.next().value;H&&H.state==="prescan"&&(D(d.target,H.state),H.calledOnce&&this.unobserveByKey({element:d.target,option:H}))}}}};
_.V.observe=function(K,d,f){var H=(H=this.handlers.get(K))&&H.has(f)?{element:K,option:f}:void 0;if(H)return H;H={element:K,option:f};this.handlers.has(K)||this.handlers.set(K,new Map);var D=this.handlers.get(K);D&&!D.has(f)&&D.set(f,d);this.pauseObservingUntilReconnect||(f.state==="prescan"&&ndB(this,K).observe(K),this.observer.observe(K));return H};
_.V.unobserveByKey=function(K){var d=this.handlers.get(K.element);if(d&&d.has(K.option)){d.delete(K.option);if(K&&K.option.state==="prescan")for(var f=_.y(this.prescanObservers.values()),H=f.next();!H.done;H=f.next())H.value.unobserve(K.element);d.size===0&&(this.handlers.delete(K.element),this.observer.unobserve(K.element))}};
var ndB=function(K,d){var f=K.defaultPrescanHeight;d.hasAttribute("prescan-height")&&(d=Number(d.getAttribute("prescan-height")),isNaN(d)||(f=d));if(K.prescanObservers.has(f))return K.prescanObservers.get(f);d="-0.1px -0.1px "+f+"px -0.1px";d=new IntersectionObserver(K.handlePrescanEvent.bind(K),K.viewroot?{root:K.viewroot,rootMargin:d}:{rootMargin:d});K.prescanObservers.set(f,d);return d};var iWN=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],cHv=function(){var K,d=this;this.JSC$11122_actionRouter=K=K===void 0?_.rU.getInstance():K;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return d.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return d.visibilityObservedElementHandlerKeys}}},u9t,Iuf,Fiv;
cHv.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.M("kevlar_use_vimio_behavior")&&_.mD("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=YQO())};
cHv.prototype.dispose=function(){this.visibilityMonitor&&_.nx(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
cHv.prototype.handleVisibilityRefreshed=function(){for(var K=_.y(this.targetMap.entries()),d=K.next();!d.done;d=K.next()){var f=_.y(d.value);d=f.next().value;f=f.next().value;_.aut(this,d,f)}};
_.RW2=function(K,d,f){Iuf(K,f);var H=_.U9N(K,d);H.element=f;K.targetedElements.set(f,d);_.aut(K,d,H)};
Iuf=function(K,d){var f=K.targetedElements.get(d);if(f){var H=K.targetMap.get(f);H&&(delete H.element,K.targetMap.set(f,H));K.targetedElements.delete(d);K.visibilityObserver&&K.visibilityObservedElementHandlerKeys&&(f=K.visibilityObservedElementHandlerKeys.get(d))&&(K.visibilityObserver.unobserveByKey(f),K.visibilityObservedElementHandlerKeys.delete(d))}};
_.aut=function(K,d,f){var H=f.action,D=f.element;D&&H&&(iWN.includes(d)||_.mD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||K.visibilityMonitor&&K.visibilityMonitor.isNodeVisible(D)?Fiv(K,d,f):K.visibilityObserver&&(K.visibilityObservedElementHandlerKeys||(K.visibilityObservedElementHandlerKeys=new WeakMap),H=K.visibilityObserver.observe(D,function(){Fiv(K,d,f);K.visibilityObservedElementHandlerKeys.delete(D)},{calledOnce:!0,
state:"visible"}),K.visibilityObservedElementHandlerKeys.set(D,H)))};
Fiv=function(K,d,f){var H=f.action;(f=f.element)&&H&&(_.Nh(K.JSC$11122_actionRouter,[H],f),K.targetMap.delete(d),K.targetedElements.delete(f),K.triggeredTargets.add(d))};
_.U9N=function(K,d){var f=K.targetMap.get(d);f||(f={},K.targetMap.set(d,f));return f};
_.aC=function(){u9t||(u9t=new cHv);return u9t};var zWL=document.createElement("div");zWL.style.touchAction="pan-down";var tYN=zWL.style.touchAction==="pan-down";var XzH,vdk;XzH=function(){this.hammerFn=MPs();this.JSC$11130_screenManager=_.cv();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.vp(83615);_.K5(this.JSC$11130_screenManager,this.ve);oLX()};
_.IC=function(){vdk||(vdk=new XzH);return vdk};
XzH.prototype.registerTouchEvents=function(K,d,f){var H=_.Pg.apply(3,arguments),D=this.hammerFn(K,{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}]]});f&&D.set({touchAction:f});this.nodeManagerMapping.set(K,D);var S=
$rG(d);H=_.y(H);for(var n=H.next();!n.done;n=H.next()){n=n.value;if(n.includes("swipe")||n.includes("pinch")||n.includes("pan"))n.includes("swipe")?D.get("swipe").set({enable:!0,direction:S,velocity:.2}):n.includes("pinch")?D.get("pinch").set({enable:!0}):n.includes("pan")&&(D.get("pan").set({enable:!0,direction:S}),D.get("swipe").set({enable:!0,direction:S,velocity:.2}),D.get("swipe").recognizeWith("pan"));Mfs(this,K,D,n)}};
var Mfs=function(K,d,f,H){f.on(H,function(D){if(H.includes("pinch"))K.lastPinchTime=Date.now();else if(H.includes("swipe")&&Date.now()-K.lastPinchTime<400)return;D.pointerType!=="mouse"&&(D=H==="doubletap"?{coordinates:D.center}:H.includes("pan")?D:H.includes("swipe")?{target:D.target}:{},d.dispatchEvent(new CustomEvent(H,{bubbles:!0,composed:!0,detail:D})))})};
XzH.prototype.unregisterTouchEvents=function(K){var d=_.Pg.apply(1,arguments),f=this.nodeManagerMapping.get(K);if(f){d=_.y(d);for(var H=d.next();!H.done;H=d.next())f.off(H.value);this.nodeManagerMapping.delete(K);K.style.touchAction="unset"}};var PnL=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var ELX=null;var gdJ=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},sFG=function(){gdJ.instance||(gdJ.instance=new gdJ);
return gdJ.instance},k4z=function(K){var d=K.networkEvents;
K.networkEvents=[];return _.M("enable_network_monitoring")?d:[]};var OWJ;OWJ={};_.NWH=sF("yt-serviceworker-metadata",{objectStores:(OWJ.auth={addedAtVersion:1},OWJ["resource-manifest-assets"]={addedAtVersion:2},OWJ),shared:!0,upgrade:function(K,d){d(1)&&WA(K,"resource-manifest-assets");d(2)&&WA(K,"auth")},
version:2});var G45=self.location.origin+"/";ATu([/\.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\//]);ATu([/purge_shell=1/]);var Y$f=void 0;Y$f=Y$f===void 0?[]:Y$f;for(var tfs=[],od4=_.y(iys),$9v=od4.next();!$9v.done;$9v=od4.next())tfs.push({key:$9v.value});for(var Ed6=_.y(Y$f),hWk=Ed6.next();!hWk.done;hWk=Ed6.next())tfs.push(hWk.value);var bW4,Ym=_.Hu==null?void 0:(bW4=_.Hu.performance)==null?void 0:bW4.memory,qQO=!1,wUG={},CFu={},oM={},$m=navigator;var U9=function(K){this.JSC$11174_expiringStorage=new MX(K)};
U9.prototype.set=function(K,d,f){f=f!==void 0?Date.now()+f:void 0;this.JSC$11174_expiringStorage.set(K,d,f)};
U9.prototype.get=function(K){return this.JSC$11174_expiringStorage.get(K)};
U9.prototype.remove=function(K){this.JSC$11174_expiringStorage.remove(K)};var D3n=_.Am(["https://www.youtube.com/",""]),V_z=_.Am(["https://studio.youtube.com/",""]),cVz="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",yVB=null,Rpp;var m99=_.Am(["https://www.youtube.com/iframe_api"]),RC=function(){this.playerResolver_=_.Gz();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.SO;this.playbackDurationSeconds_=0},luL=function(K){var d=function(){return window.YT&&typeof window.YT.ready==="function"};
if(d())return _.HG(window.YT);var f=_.Gz(),H=_.RQ("SCRIPT");H.onload=H.onreadystatechange=function(){H.readyState&&H.readyState!="loaded"&&H.readyState!="complete"||(H.onload=_.SO,H.onreadystatechange=_.SO,H.onerror=_.SO,d()?f.resolve(window.YT):f.reject(new _.X4("Failed to load the iframe player library","script.onload",H.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
H.onerror=function(D){H.onload=_.SO;H.onreadystatechange=_.SO;H.onerror=_.SO;f.reject(new _.X4("Failed to load the iframe player library","script.onerror",D&&D.target&&D.target.src))};
_.Aa(H,_.p7(m99));K.insertBefore(H,K.firstChild);return f.promise},Wi4=function(K,d,f){var H,D;
_.c(function(S){switch(S.nextAddress){case 1:return K.playbackEndedCallback_=f,_.HF(S,2),_.I(S,luL(d.parentElement||null),4);case 4:H=S.yieldResult;_.Ts(S,3);break;case 2:return D=_.n7(S),D instanceof _.X4&&D.args&&D.args[0]=="script.onerror"?_.h3(D):_.$7(D),S.return();case 3:H.ready(function(){return new H.Player(d,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:K.onPlayerReady_.bind(K),onStateChange:K.onPlayerStateChange_.bind(K),
onCueRangeExit:K.onCueRangeExit_.bind(K)}})}),_.iQ(S)}})};
_.V=RC.prototype;_.V.getPlayerPromise=function(){return this.playerPromise_};
_.V.onPlayerReady_=function(K){this.playerResolver_.resolve(K.target)};
_.V.onPlayerStateChange_=function(K){if(K.data==YT.PlayerState.PLAYING){K=K.target;var d=K.getCurrentTime();K.addCueRange("playback",d,d+this.playbackDurationSeconds_)}};
_.V.onCueRangeExit_=function(K){K.data=="playback"&&(K.target.stopVideo(),this.playbackEndedCallback_())};
_.V.stopVideo=function(){this.playerPromise_.then(function(K){K.stopVideo()})};
var G5H=function(K){K.playerVars_&&K.playerPromise_.then(function(d){typeof d.cueVideoByPlayerVars!="function"?_.h3(new _.X4("vmh: player API not ready","cueVideoByPlayerVars",typeof d.cueVideoByPlayerVars)):d.cueVideoByPlayerVars(K.playerVars_)})};
RC.prototype.playVideo=function(){var K=this;this.playerVars_&&this.playerPromise_.then(function(d){typeof d.loadVideoByPlayerVars!="function"?(d=new _.X4("vmh: player API not ready","loadVideoByPlayerVars",typeof d.loadVideoByPlayerVars),_.$7(d)):d.loadVideoByPlayerVars(K.playerVars_)})};
var AHN=function(K,d,f,H,D){d&&(f===void 0&&(f=0),H===void 0&&(H=0),K.playbackDurationSeconds_=H/1E3,K.playerVars_={adformat:"17_8",videoId:d,suggestedQuality:"hd720",startSeconds:f/1E3,player_params:D})};
RC.prototype.mute=function(){this.playerPromise_.then(function(K){K.mute()})};
RC.prototype.unMute=function(){this.playerPromise_.then(function(K){K.unMute()})};var TW8=function(K,d){var f=bw();K||(K="unknown");d||(d="unknown");K="MAIN_APP_WEB_PAGE_TYPE_"+K.toUpperCase();K in f59||(K="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");d="MAIN_APP_WEB_REQUEST_TYPE_"+d.toUpperCase();d in Hx2||(d="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Hd(f,{mainAppWeb:{pageType:K,requestType:d,isShellLoad:_.lx("IS_SHELL_LOAD",!1)}})},rH6={start:function(){_.Hd(l5p(),{mainAppWeb:_.Go()})},
success:function(){_.Df(l5p(),"SUCCESS")},
failure:function(){_.Df(l5p(),"FAILURE")},
cancelled:function(){_.Df(l5p(),"CANCELLED")}};var q$8,QJs,gVX;q$8=_.Am(["/sw.js"]);QJs=_.Am(["/sw.js?0"]);_.jJ4=_.p7(q$8);gVX=_.p7(QJs);var Cns=function(){var K=Error.apply(this,arguments);this.message=K.message;"stack"in K&&(this.stack=K.stack)};
_.O(Cns,Error);_.rm.prototype.load=function(K){this.megabloxUrl_=_.mD("YPC_MB_URL");_.mV(this.megabloxUrl_,(0,_.Om)(function(){K&&K()},this))};
_.xwz=function(K,d,f,H,D,S,n,u,a,R,F){_.NaS(a);K.load((0,_.Om)(function(){try{var z=S?S:_.mD("HL"),v=_.mD("SESSION_INDEX");_.a9z("client",function(){MlH("59",{helpCenterPath:"/youtube",locale:z,window:window}).JSC$7981_loadChatSupport({authuser:String(v)})})}catch(g){throw AG(10,F,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),D&&D(g),_.$7(g),g;
}x9v(this,d,f,H,D,S,n,u,a,R,F)},K))};
_.rm.prototype.openFixFlowDialog=function(K,d,f,H){this.load((0,_.Om)(function(){try{Lit(this,_.T2("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(K).withIntegratorCallback(d).load(f,H)}catch(D){throw _.$7(D),D;}},this))};
var Lit=function(K,d,f,H){var D=d.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.M("enable_window_constrained_buy_flow_dialog")&&(D=D.usingPopupStyle(_.T2("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));H&&(D=D.usingCloseCallback(H));d.bootstrap.fromPaymentsUrl(K.megabloxUrl_);K=d.bootstrap.asMashupMode(D);f=f?f:_.mD("HL");K.usingGaiaIndex(_.mD("SESSION_INDEX")).usingLocale(f).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.M("enable_google_payments_buyflow_material2_style_web")?
K.usingStyle(":m2;pc=#444;ac=#065fd4"):K.usingStyle(":md;pc=#444;ac=#065fd4");return K},x9v=function(K,d,f,H,D,S,n,u,a,R,F){try{var z=_.T2("payments.business.integration");
if(!z)throw new Cns("payments.business.integration is undefined");var v=z.standaloneContextAuthId.forUserId(),g=Lit(K,z,S,u);n&&g.usingServerAnalyticsEventHandler(n);var N=g.inStandaloneContext(v).buyFlow(function(h){if(h&&(!h.integratorData||h.integratorData===""||h.error))if(h.error!=null)if(String(h.error)==="-1")_.YLO(a);else{var m=String(h.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";AG(10,F,m,h.debugCode);
_.To(m,a,h.debugCode);m=new _.X4("PAYMENT_ERROR_MESSAGE::"+h.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+h.internalErrorDetails);_.$7(m)}else AG(10,F,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.To("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",a,"EMPTY_INTEGRATOR_DATA"),_.$7(Error("ag"));f&&f(h)}).withEncryptedParameters(d);
R&&N.withClientParameters(TgN(_.kVX(R)));N.load(function(){AG(24,F);_.oS("ttc",void 0,"commerce_transaction");dhu("commerce_transaction");H&&H()},function(h){if(h==null?0:h.debugCode)var m=h==null?void 0:h.debugCode;
else if(!h||(h==null?0:h.debugCode))m="EMPTY_LOAD_FAILURE_ERROR",_.$7(Error(m));else{m="EMPTY_LOAD_FAILURE_DEBUG_CODE";var T=new _.X4("LOAD_FAILURE:"+h.message," DEBUG_CODE:"+m);_.$7(T)}AG(10,F,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",m);_.To("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",a,m);_.$7(h);D&&D(h)})}catch(h){throw h instanceof Cns&&(AG(10,F,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),D&&D(h)),_.$7(h),h;
}};var BWv;BWv=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.QxG=function(K,d){d=d===void 0?!1:d;K=BWv.test(K)?_.yL(K):null;!d&&window.payments||!K?(K=_.Gz(),d=K.promise,K.resolve()):d=_.Pt(K,{attributes:{"data-payments-main":"",id:"payment-lib"}});return d};var JH2;JH2=_.Am(["//www.googletagmanager.com/gtm.js?id=",""]);_.F8=function(K,d){_.Bp(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:d}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.mD("GL")}),d=_.RQ("SCRIPT"),d.async=!0,_.Aa(d,_.p7(JH2,K)),d.id="gtm",K=document.getElementsByTagName("script"),K.length==0?document.head.appendChild(d):(K=K[0],K.parentNode.insertBefore(d,K)))};
_.z8=function(K){if(K=JSON.parse(K))window.dataLayer=window.dataLayer||[],window.dataLayer.push(K)};var sJH,k54;sJH=_.Am(["https://clients2.google.com/gr/gr_sync.js"]);_.r8B=function(){};
_.r8B.prototype.init=function(){if(k54()){var K=_.Gz();K.resolve();return K.promise}return _.Pt(_.p7(sJH)).then(function(){if(!k54())throw Error("bg");},function(){throw Error("cg");
})};
_.quO=function(){if(!k54())return"";var K=window.google.gr;K.init({async:{schedule:"sync"},merchantId:"youtube"});K.start();K=K.finish();return K==null?"":K};
k54=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.q=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.O(_.q,PolymerFakeBaseClassWithoutHtml);_.cP=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.O(_.cP,PolymerFakeBaseClassWithoutHtml);var t_X=window.ShadyDOM;var ySX,VEz,ivn,cSz,aGn,IGY,X8,Ze;ySX=_.M("enable_shadydom_free_scoped_query_methods");VEz=_.M("enable_shadydom_free_scoped_node_methods");ivn=_.M("enable_shadydom_free_scoped_readonly_properties_batch_one");cSz=_.M("enable_shadydom_free_parent_node");aGn=_.M("enable_shadydom_free_children");IGY=_.M("enable_shadydom_free_last_child");X8=window.ShadyDOM;_.dj=X8&&X8.noPatch&&X8.wrap?X8.wrap:X8?function(K){return X8.patch(K)}:function(K){return K};
Ze=function(K){if(K instanceof ShadowRoot)this.host=(0,_.dj)(K.host),this.root=K;else if(K.$$){this.host=(0,_.dj)(K);var d;this.root=(d=K.root)!=null?d:this.host}else if(K.polymerController){this.host=(0,_.dj)(K);var f;this.root=(f=this.host.shadowRoot)!=null?f:this.host}else this.root=this.host=(0,_.dj)(K)};
SOz();nYX();UZX();Rku();uMu();var wz2={querySelector:function(K,d){d=$3o(d,CU(K));K=_.xm(K);return LU(K).prototype.querySelector.call(K,d)},
querySelectorAll:function(K,d){d=$3o(d,CU(K));K=_.xm(K);return LU(K).prototype.querySelectorAll.call(K,d)}},ZWN={appendChild:function(K,d){var f=CU(K),H=_.jZ(d);
return _.Hvn(_.xm(K),f?_.JG(d,f,H):d)},
cloneNode:function(K,d){var f=_.jZ(K);K=_.xm(K);d=LU(K).prototype.cloneNode.call(K,d);return f?wm(d,f):d},
contains:function(K,d){var f=CU(K),H=_.jZ(d);return f!==H?!1:DZX(K,d)},
insertBefore:function(K,d,f){var H=CU(K),D=_.jZ(d);K=_.xm(K);d=H?_.JG(d,H,D):d;return LU(K).prototype.insertBefore.call(K,d,f)},
removeChild:function(K,d){var f=CU(K);K=_.xm(K);d=f?wm(d,f):d;return LU(K).prototype.removeChild.call(K,d)},
replaceChild:function(K,d,f){var H=CU(K),D=_.jZ(d);d=H?_.JG(d,H,D):D?wm(d,D):d;f=H?wm(f,H):f;K=_.xm(K);return LU(K).prototype.replaceChild.call(K,d,f)},
getRootNode:function(K,d){d=d===void 0?{composed:!0}:d;var f;if(((f=d)!=null?f:{}).composed)K=qLY(K);else{d=K;for(K=hp5(K);K;)d=K,K=m3Y(K);K=d}return K}},zkp=ivn?{firstChild:ZDG,
nextSibling:suX,previousSibling:ww5,firstElementChild:epu,lastElementChild:KXu,nextElementSibling:JVY,previousElementSibling:kxX,childNodes:dZn}:{};cSz&&(zkp.parentNode=BaJ);aGn&&(zkp.children=fG5);IGY&&(zkp.lastChild=pwX);ySX&&FXz(wz2);VEz&&FXz(ZWN);XIu();var vYO=function(K){this.node=K instanceof ShadowRoot?K.host:K};
MEY();PZX();var NJN=new WeakMap;var tEo=Symbol("ud");var bvO=new Set(["tap","track","down","up"]),mZS=_.M("pbcm_fi_query_decorators");var vn=function(){return _.cP.apply(this,arguments)||this};
_.O(vn,_.cP);_.V=vn.prototype;_.V.getState=function(){return this.store.getState()};
_.V.dispatch=function(K){this.store.dispatch(K)};
_.V.beforeRegister=function(){if(this&&typeof this==="object"){var K;var d=!!this.useSignals||!((K=this.polymerController)==null||!K.useSignals)}else d=!1;if(!d&&this.properties)for(d=_.y(Object.keys(this.properties)),K=d.next();!K.done;K=d.next()){var f=K.value;K=this.properties[f];if(K.selector){if(K.computed)throw Error("ig");f=["reduxPropertiesRecomputeTrigger",'"'+f+'"'].concat(_.Me(K.selectorArgs||[])).join(",");K.computed="recomputeReduxSelector("+f+")"}}};
_.V.attached=function(){var K=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){K.reduxPropertiesRecomputeTrigger++}));
_.M("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.V.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.V.recomputeReduxSelector=function(K,d){var f=_.Pg.apply(2,arguments),H=this.properties[d].selector;if(!H)throw Error("gg`"+d);return H.apply(null,[this.store.getState()].concat(_.Me(f)))};
_.V.select=function(K){var d=_.Pg.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return K.apply(null,[this.store.getState()].concat(_.Me(d)))};
_.x$.Object.defineProperties(vn.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("hg");}}});
vn.prototype.recomputeReduxSelector=vn.prototype.recomputeReduxSelector;_.x([_.A(),_.B("design:type",Number)],vn.prototype,"reduxPropertiesRecomputeTrigger",void 0);vn=_.x([_.uL()],vn);var Mz=[],ASo={},Oz=function(){return Be.apply(this,arguments)||this};
_.O(Oz,Be);Oz.prototype._addPropertyEffect=function(K,d,f){if(d==="__observeEffects"&&f){var H,D=(H=f.info.method)!=null?H:f.info.methodName;if(D){var S=this[D];this[D]=function(){Mz.push(D);try{S==null||S.apply(this,arguments)}finally{Mz.pop()}}}}_.aU._addPropertyEffect.apply(this,[K,
d,f])};
Oz.prototype._setPendingProperty=function(K,d,f){if(Mz.length){var H=Mz[Mz.length-1],D;(D=ASo[this.is])!=null&&D.has(H)||(TJS(this.is,H),_.t3("polymerPropertyChangedInObserver",{componentName:this.is,observerName:H}))}return _.aU._setPendingProperty.apply(this,[K,d,f])};
Oz=_.x([Xdz()],Oz);var rSX=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),QTX,Uz={};_.M("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Uz);var zC=function(){return _.cP.apply(this,arguments)||this};
_.O(zC,_.cP);zC.prototype._setUnmanagedPropertyToNode=function(K,d,f){K.loggingStatus&&(K.loggingStatus.isDeclarativeExternal=!0);if(f!==K[d]||typeof f==="object")K[d]=f;K.is&&K.polymerController&&K.polymerController!==K&&Rn(K.is,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");K.loggingStatus&&(K.loggingStatus.isDeclarativeExternal=!1)};
zC=_.x([_.uL()],zC);qOJ()&&(bT.prototype._setUnmanagedPropertyToNode=(new zC)._setUnmanagedPropertyToNode);_.d9B={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(K){},set polymerController(K){}}]};var gj=function(){var K=Be.apply(this,arguments)||this;K.json=function(){};
return K};
_.O(gj,Be);gj.prototype.equals=function(K,d){return K===d};
gj.prototype.isEmpty=function(K){return!K||_.d2(K)&&K.length===0};
gj=_.x([Xdz()],gj);var eWs=function(K){K=UON(K);$5.call(this,K)};
_.O(eWs,$5);eWs.prototype.addProvider=function(K){K=K.key?K:UON([K])[0];var d=this.keyIdToIndex.get(K.key.id);if(d){if(BJB(K,this.providers[d]))throw Error("jg`"+K.key.displayName);}else $5.prototype.addProvider.call(this,K)};
var pzH=new eWs([]);var Ka8=!1;var ekB={};Ka8||(ZvX(),Ka8=!0);
ekB.InjectBehavior={initializeInjection:function(){var K=this.provide;try{if((K=K!=null?K:[])&&K.length>0)for(var d=UON(K),f=_.y(d),H=f.next();!H.done;H=f.next())pzH.addProvider(H.value);var D=new Set;JSz(this.behaviors||[],D);d={};for(var S=_.y(D),n=S.next();!n.done;n=S.next()){var u=n.value;u.inject&&Object.assign(d,u.inject)}this.inject&&Object.assign(d,this.inject);for(var a=_.y(Object.keys(d)),R=a.next();!R.done;R=a.next()){var F=R.value,z=d[F];try{this[F]=pzH.resolve(z)}catch(v){throw v;}}}catch(v){throw Error(v.message);
}}};var KiO;var fuz=/\bclass\b/.test(function(){}.toString()),VfN=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var dKk=function(K){this.wasDefined=!0;Array.isArray(K)||K instanceof Array?(this.JSC$11303_getImpl=K[0],this.JSC$11303_setImpl=K[1]):this.JSC$11303_getImpl=K};
_.V=dKk.prototype;_.V.getWithPath=function(K){return ndG(this.JSC$11303_getImpl(),K)};
_.V.setWithPath=function(K,d){var f=this;if(K.length)throw Error("kg");if(!this.JSC$11303_setImpl)throw Error("lg");vC(function(){f.JSC$11303_setImpl(d)})};
_.V.notifyPath=function(){throw Error("mg");};
_.V.notifySplices=function(){throw Error("ng");};
_.V.getChangeRecordSignal=function(K,d){var f=this;if(K.length)throw Error("og");return function(){var H=f.getWithPath(K);return{path:d!=null?d:"",base:H,value:H}}};
_.V.getSplicesSignal=function(){throw Error("pg");};
_.V.getPathMutationSignal=function(){throw Error("qg");};
_.V.pop=function(){throw Error("rg");};
_.V.push=function(){throw Error("sg");};
_.V.splice=function(){throw Error("tg");};
_.V.unshift=function(){throw Error("ug");};var Pn=function(K){var d=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(K)||K instanceof Array?(this.JSC$11308_getImpl=K[0],this.JSC$11308_setImpl=K[1]):this.JSC$11308_getImpl=K;this.wasDefined=!1;i8(function(){d.wasDefined=d.JSC$11308_getImpl()!==void 0})};
Pn.prototype.getWithPath=function(K){return ndG(this.JSC$11308_getImpl(),K)};
Pn.prototype.setWithPath=function(K,d){var f=this;if(K[K.length-1]!=="*"&&K[K.length-1]!=="splices"){if(K.length===0){if(!this.JSC$11308_setImpl)throw Error("vg");this.wasDefined||(this.wasDefined=d!==void 0);vC(function(){f.JSC$11308_setImpl(d)})}else{for(var H=i8(function(){return f.getWithPath([])}),D=0;D<K.length-1;D++){if(!H)return;
H=H[K[D]]}D=K[K.length-1];H&&(H[D]=d);this.wasDefined||(this.wasDefined=K.length>1||d!==void 0)}fVB(this,K,{pathComponents:K,value:d})}};
Pn.prototype.notifyPath=function(K,d){K.length===0?d&&this.setWithPath(K,d.value):fVB(this,K,{pathComponents:K,value:d==null?void 0:d.value,fallbackWhenUndefined:d==null?void 0:d.value})};
var fVB=function(K,d,f,H){if(K.setMutationSignal){var D=++K.mutationIndex,S=[K.observedPath],n=K.observedPath,u;d.length===0&&(u=n);for(var a=0;a<d.length;a++){var R=n.subPaths[d[a]];if(!R)break;S.push(R);n=R;a===d.length-1&&(u=R)}for(d=!1;S.length;)n=S.shift(),n.data={index:D,mutation:f,spliceMutationIndex:H},d||(d=n===u),d&&S.push.apply(S,_.Me(Object.values(n.subPaths)));vC(function(){K.setMutationSignal(D)})}};
Pn.prototype.notifySplices=function(K,d){var f=this,H=i8(function(){return f.getWithPath(K)}),D=[].concat(_.Me(K),["splices"]);
fVB(this,D,{pathComponents:D,value:{indexSplices:d}});if(H==null?0:H.length)d=this.mutationIndex,D=[].concat(_.Me(K),["length"]),fVB(this,D,{pathComponents:D,value:H.length},d)};
var Het=function(K,d,f,H,D,S){K.notifySplices(f,[{index:H,addedCount:D,removed:S,object:d,type:"splice"}])},DKv=function(K,d){K=K.observedPath;
for(var f=0;f<d.length;f++){var H=d[f],D=K.subPaths[H];D||(D={pathComponents:d.slice(0,f+1),subPaths:{}},K.subPaths[H]=D);K=D}},SRJ=function(K,d,f){DKv(K,d);
if(!K.getMutationSignal){var H=_.y(_.cC(K.mutationIndex,void 0,"HavCgf"));K.getMutationSignal=H.next().value;K.setMutationSignal=H.next().value}var D=K.getMutationSignal;return _.zh(function(){D();return f(VoN(K,d))},void 0,"BYaPo")};
Pn.prototype.getChangeRecordSignal=function(K,d){var f=this,H=this.mutationIndex,D;return SRJ(this,K,function(S){if(S&&S.index>H){var n=S.mutation;H=S.index;D=void 0}S=i8(function(){return f.getWithPath(K)});
if(n){var u=n.pathComponents[n.pathComponents.length-1],a=[].concat(_.Me(n.pathComponents));if(u==="splices"||u==="length")return{base:S,path:(d?[d].concat(_.Me(a)):a).join("."),value:n.value};var R=K.length>a.length?K:a,F;return{base:S!=null?S:n.fallbackWhenUndefined,path:(d?[d].concat(_.Me(R)):R).join("."),value:(F=i8(function(){return f.getWithPath(R)}))!=null?F:n.fallbackWhenUndefined}}D||(D={base:S,
path:(d?[d].concat(_.Me(K)):K).join("."),value:S});return D})};
Pn.prototype.getSplicesSignal=function(K){var d=this.mutationIndex,f;return SRJ(this,K,function(H){if(H&&H.index>d&&H.spliceMutationIndex!==d){var D=H.mutation;d=H.index;f=void 0}return D&&D.pathComponents[D.pathComponents.length-1]==="splices"?f=H=D.value:f})};
Pn.prototype.getPathMutationSignal=function(K){var d=this;DKv(this,K);if(!this.getMutationSignal){var f=_.y(_.cC(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=f.next().value;this.setMutationSignal=f.next().value}var H=this.getMutationSignal,D=this.mutationIndex,S;return _.zh(function(){H();var n=VoN(d,K);if(n&&n.index>D&&n.mutation&&iW5(n.mutation.pathComponents,K)){var u=n.mutation;D=n.index}if(!S||D!==S.index){var a,R;n=(R=i8(function(){return d.getWithPath(K)}))!=null?R:(a=u)==null?
void 0:a.fallbackWhenUndefined;
S={index:D,value:n}}return S},void 0,"Aumsyf")};
var VoN=function(K,d){K=K.observedPath;d=_.y(d);for(var f=d.next();!f.done;f=d.next())K=K.subPaths[f.value];return K.data};
Pn.prototype.pop=function(K){var d=this,f=i8(function(){return d.getWithPath(K)});
if(!(f instanceof Array))throw Error("wg");var H=f.length>0,D=f.pop();H&&Het(this,f,K,f.length,0,[D]);return D};
Pn.prototype.push=function(K){var d=_.Pg.apply(1,arguments),f=this,H=i8(function(){return f.getWithPath(K)});
if(!(H instanceof Array))throw Error("xg");var D=H.length,S=H.push.apply(H,_.Me(d));d.length&&Het(this,H,K,D,d.length,[]);return S};
Pn.prototype.splice=function(K,d,f){var H=_.Pg.apply(3,arguments),D=this,S=i8(function(){return D.getWithPath(K)});
if(!(S instanceof Array))throw Error("yg");d<0?d=S.length-Math.floor(-d):d&&(d=Math.floor(d));var n=S.splice.apply(S,[d,f].concat(_.Me(H)));(H.length||n.length)&&Het(this,S,K,d,H.length,n);return n};
Pn.prototype.unshift=function(K){var d=_.Pg.apply(1,arguments),f=this,H=i8(function(){return f.getWithPath(K)});
if(!(H instanceof Array))throw Error("zg");var D=H.unshift.apply(H,_.Me(d));d.length&&Het(this,H,K,0,d.length,[]);return D};var y2k=!0,n4J=!1,Lao=!1,ies=!1,gs=!1,c2t=0;ies=!1;c2t=0;y2k=!0;gs=n4J=Lao=!1;var O9=function(K,d,f){this.model=K;this.unknownSignalResolver=d;this.options=f;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];d=_.y(XzX());K=d.next().value;d=d.next().value;this.owner=K;this.disposeImpl=d};
O9.prototype.dispose=function(){if(!this.isDisposed){for(var K=_.y(this.childSignalProxies),d=K.next();!d.done;d=K.next())d.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var uV2=function(K,d){K=eh(K.owner);try{d()}finally{eh(K)}};
O9.prototype.effect=function(K){uV2(this,function(){_.b8(K)})};
var aVB=function(K,d){K.options!=null||(K.options={});var f;(f=K.options).immutableProps!=null||(f.immutableProps=new Set);K.options.immutableProps.add(d)},x9O=function(K,d){d=""+d;
IVs(K,d);var f,H;if((f=K.options)==null?0:(H=f.immutableProps)==null?0:H.has(d))return!0;var D;if((D=K.model.__signalCache)==null?0:D.has(d))f=K.model.__signalCache.get(d),Array.isArray(f)&&aVB(K,d);var S,n,u;return(u=(S=K.options)==null?void 0:(n=S.immutableProps)==null?void 0:n.has(d))!=null?u:!1},UK9=function(K,d){var f;
K.unknownSignalResolver&&(f=K.unknownSignalResolver(d));var H,D;((H=K.options)==null?0:(D=H.immutableProps)==null?0:D.has(d))?f!=null||(f=new dKk(_.cC(K.model[d],void 0,"bgwlkd"))):f!=null||(f=new Pn(_.cC(K.model[d],void 0,"V1hou")));var S=K.model.hostElement;Object.defineProperty(K.model,d,{get:function(){CZX(S,d);return f.getWithPath([])},
set:function(n){Fw(S,d);K.setWithPath([d],n)},
configurable:!0});return f},IVs=function(K,d){var f,H,D;
((f=K.model.__signalCache)==null||!f.has(d))&&((H=K.options)==null?0:(D=H.externalSignalProps)==null?0:D.has(d))&&K.model[d]},on=function(K,d){d=""+d;
var f=K.signalCache[d];if(f!==void 0)return f;f=!1;IVs(K,d);var H;if((H=K.model.__signalCache)==null?0:H.has(d))if(f=K.model.__signalCache.get(d),Array.isArray(f))f=!0,aVB(K,d);else return K.signalCache[d]=K.model.__signalCache.get(d).signal,K.signalCache[d];var D,S;H=(S=(D=K.options)==null?void 0:D.reactivityMode)!=null?S:0;var n,u;if(!((n=K.options)==null?0:(u=n.reactiveProps)==null?0:u.has(d))&&!f&&H===1)throw Error("Ag`"+d);D=f?R69(K,d):UK9(K,d);return K.signalCache[d]=D},R69=function(K,d){var f=
Object.getOwnPropertyDescriptor(K.model.constructor.prototype,d),H=function(){return K.model[d]};
return new dKk(f&&f.get&&!f.set?H:[H,function(D){K.model[d]=D}])};
O9.prototype.getWithPath=function(K){var d=_.y(K);K=d.next().value;d=By(d);CZX(this.model.hostElement,""+K);return on(this,K).getWithPath(d)};
O9.prototype.setWithPath=function(K,d){if(K.length){Fw(this.model.hostElement,K.join("."));var f=_.y(K);K=f.next().value;f=By(f);on(this,K).setWithPath(f,d)}};
O9.prototype.getPathMutationSignal=function(K){var d=_.y(K);K=d.next().value;d=By(d);return on(this,K).getPathMutationSignal(d)};
O9.prototype.notifyPath=function(K,d){var f=_.y(K);K=f.next().value;f=By(f);on(this,K).notifyPath(f,d)};
var FaB=function(K,d){if(d.type==="literal")return function(){return{rootWasDefined:!0,value:d.value}};
var f=Yp(d.path),H=_.y(f),D=H.next().value;H=By(H);var S,n;if(d.type==="path"&&(f.length===1||((S=K.options)==null?0:(n=S.immutableProps)==null?0:n.has(D))))return function(){var z=K.getWithPath(f.slice(0,1)),v=ndG(z,f.slice(1));z=z!==void 0;gs&&(z=on(K,f[0]).wasDefined);return{rootWasDefined:z,value:v}};
var u=on(K,D);if(d.type==="path"){var a=u.getPathMutationSignal(H);return function(){var z=gs?u.wasDefined:mU(K.owner,function(){return u.getWithPath([])})!==void 0;
var v,g=(v=a())==null?void 0:v.value;return{rootWasDefined:z,value:g}}}if(d.type==="splices"){var R=u.getSplicesSignal(H);
return function(){var z=R();return{rootWasDefined:gs?u.wasDefined:z!==void 0,value:z}}}var F=u.getChangeRecordSignal(H,""+D);
return function(){var z=F();return{rootWasDefined:gs?u.wasDefined:z!==void 0,value:z}}},RWz=function(K,d,f){var H=f.map(function(u){return FaB(K,u)}),D=f.length===0,S=[],n=f.length!==1||f[0].type!=="path"?!1:!0;
K.effect(function(){for(var u=H.length,a=[],R=!!S.length,F=0;F<u;F++){var z=H[F](),v=z.rootWasDefined;z=z.value;D||(D=v);a[F]=z;n&&(a[F+u]=R?S[F]:a[F],S[F]=z)}D&&mU(K.owner,function(){return void d.apply(null,_.Me(a))})})},cHO=function(K,d,f,H,D){var S=on(K,d);
D!==void 0&&S.setWithPath([],D);RWz(K,function(){var n=_.Pg.apply(0,arguments);Fw(K.model.hostElement,d,!0);S.setWithPath([],f.apply(null,_.Me(n)))},H)};
O9.prototype.arrayPush=function(K){var d=_.Pg.apply(1,arguments),f=_.y(K),H=f.next().value;f=By(f);H=on(this,H);return H.push.apply(H,[f].concat(_.Me(d)))};
O9.prototype.arraySplice=function(K,d,f){var H=_.Pg.apply(3,arguments),D=_.y(K),S=D.next().value;D=By(D);S=on(this,S);return S.splice.apply(S,[D,d,f].concat(_.Me(H)))};
O9.prototype.arrayUnshift=function(K){var d=_.Pg.apply(1,arguments),f=_.y(K),H=f.next().value;f=By(f);H=on(this,H);return H.unshift.apply(H,[f].concat(_.Me(d)))};
O9.prototype.notifySplices=function(K,d){var f=_.y(K);K=f.next().value;f=By(f);on(this,K).notifySplices(f,d)};var NWX=/([^\s]+?)\(([\s\S]*)\)/,Pnn=/\.([^.]+)$/,tfJ=/\\,/g,vdS=/&comma;/g,MfJ=/\\(.)/g,Y$X=[],gdB={"*":"wildcard",splices:"splices"};var AH5=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"),m9o=/[A-Z]/,z6s=["class","hidden","id","on-dom-change"],rHN=new Set([].concat(_.Me(z6s),
["if","notify-dom-change","restamp"])),q$z=new Set([].concat(_.Me(z6s),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),QJY=new Set(["restamp"]);var rXX=new Set(["className","id"]);var BWO=Symbol(),pzX=window;var y2S=window;var UKo=0,c2p=0,$p=[],IVY=0,ieJ=!1,aVG=document.createTextNode("");(new window.MutationObserver(uVz)).observe(aVG,{characterData:!0});var hM=new Map,Ez=0,Xss=function(K){this.mappedHandleId=K},FaG=function(K,d,f,H){this.mappedHandleId=K;
var D=this;this.mappedHandleId=K;this.callback=d;this.waitTime=f;this.schedulerPriority=H;this.handleId=_.oc.addJob(function(){D.callback();hM.delete(D.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.O(FaG,Xss);FaG.prototype.cancel=function(){_.oc.cancelJob(this.handleId);hM.delete(this.mappedHandleId)};
var z6Y=function(K,d){this.mappedHandleId=K;var f=this;this.mappedHandleId=K;this.callback=d;this.handleId=R6o(function(){f.callback();hM.delete(f.mappedHandleId)})};
_.O(z6Y,Xss);z6Y.prototype.cancel=function(){var K=this.handleId-c2p;K<0||$p.length<=K||($p[K]=null);hM.delete(this.mappedHandleId)};var PYp=function(){};
PYp.prototype.cancel=function(){this.jobHandle!==void 0&&(XsJ(this.jobHandle),this.jobHandle=void 0)};
PYp.prototype.run=function(K,d,f){var H=this;this.cancel();this.callback=K;this.jobHandle=_.bL(function(){K();H.callback=void 0},d,f)};
PYp.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var v4o=new WeakMap;var v49=qh(function(K){for(var d=K,f=0;f<3;f++)d=Object.getPrototypeOf(d);delete d.prototype.connectedCallback;var H=function(){return K.apply(this,arguments)||this};
_.O(H,K);H.prototype._attachDom=function(D){if(!D)return null;var S=(0,_.dj)(this.hostElement);S.attachShadow({mode:"open",shadyUpgradeFragment:D});S.shadowRoot.appendChild(D);return S.shadowRoot};
H.prototype._takeAttributes=function(){for(var D=this.hostElement.attributes,S=0;S<D.length;S++){var n=D[S],u=void 0,a=void 0;(a=(u=this).__attributeReaction)==null||a.call(u,n.name,null,n.value)}};
H.prototype._readyClients=function(){K.prototype._readyClients.call(this);this.root=this};
H.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);K.prototype.connectedCallback.call(this)};
_.x$.Object.defineProperties(H,{template:{configurable:!0,enumerable:!0,get:function(){return H.prototype._template}}});
return H}),MoB=qh(function(K){var d=function(){return K.apply(this,arguments)||this};
_.O(d,K);d.prototype.created=function(){if(this.__notifyEffects)for(var f=_.y(Object.values(this.__notifyEffects)),H=f.next();!H.done;H=f.next()){H=_.y(H.value);for(var D=H.next();!D.done;D=H.next())D.value.fn=YRY}if(this.__reflectEffects)for(f=_.y(Object.values(this.__reflectEffects)),H=f.next();!H.done;H=f.next())for(H=_.y(H.value),D=H.next();!D.done;D=H.next())D.value.fn=tou};
d.prototype._addEventListenerToNode=function(f,H,D){f=lL(f);N5(f,H,D)||K.prototype._addEventListenerToNode.call(this,f,H,D)};
d.prototype._removeEventListenerFromNode=function(f,H,D){f=lL(f);Y$(f,H,D)||K.prototype._removeEventListenerFromNode.call(this,f,H,D)};
d.prototype._propertiesChanged=function(f,H,D){if(this.__dataToNotify&&this.__notifyEffects)for(var S=_.y(Object.keys(this.__dataToNotify)),n=S.next();!n.done;n=S.next()){n=n.value;var u=NCB(n);this.__notifyEffects[u]||delete this.__dataToNotify[n]}else this.__dataToNotify=null;K.prototype._propertiesChanged.call(this,f,H,D)};
d.prototype.fire=function(f,H,D){H=H===void 0?{}:H;var S;return _.Zp(lL((S=D==null?void 0:D.node)!=null?S:this),f,H,D)};
d.prototype._ensureAttribute=function(f,H){var D=lL(this);D.hasAttribute(f)||tM(D,H,f)};
d.prototype.isLightDescendant=function(f){var H=lL(this);return lL(H)!==f&&_.E(H).contains(f)&&_.E(H).getRootNode()===_.E(f).getRootNode()};
return d});
_.ab.ready=function(){var K;((K=this.hostElement)!=null?K:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var d;((d=this.hostElement)!=null?d:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Mg._subscribeIronResize=function(K){var d;((d=K.hostElement)!=null?d:K).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Mg._unsubscribeIronResize=function(K){var d;((d=K.hostElement)!=null?d:K).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var E4S=[Array,Boolean,Date,Number,Object,String],GC=function(K,d,f,H){this.polySiInfo=K;this.polySiParams=d;this.polySiContext=f;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;H||this instanceof HTMLElement&&(H=this);if(!H)throw Error("Hg");this.allowedProps=d.allowedProps;this.hostElement=H;this.is=K.is;this.upgradeDisabled=!!d.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");K=new Set(d.reactiveSchemas.filter(function(D){return D.type!==
"observe"}).map(function(D){return D.propertyKey}));
this.signalProxy=new O9(this,void 0,{reactiveProps:K,reactivityMode:d.reactivityMode});this.__dataHasAccessor={};d=_.y(d.reactiveSchemas);for(K=d.next();!K.done;K=d.next())K=K.value,K.type==="signal"&&(this.__dataHasAccessor[K.propertyKey]=!0);this.upgradeDisabled||PYt(this)};
GC.prototype.getExtraMethodsToForward=function(){return[]};
var PYt=function(K){K.polySiContext.didRegister||(K.registered(),K.polySiContext.didRegister=!0);K.polySiContext.finalizedTemplate||(K.polySiContext.finalizedTemplate={},K.polySiParams.templateGetter&&(K.polySiContext.finalizedTemplate.processedTemplate=n4B(K.polySiParams.templateGetter,K.polySiParams.is)));g4v(K);var d=K.hostElement;d.loggingStatus!=null||(d.loggingStatus={});d.loggingStatus.isInitializing=!0;i8(function(){return void K.created()});
d.loggingStatus.isInitializing=!1;K.isPolySiElementConnected&&Oes(K)},Oes=function(K){K.didCallReady||(i8(function(){return void K.ready()}),K.didCallReady=!0);
K.isAttached=!0;K.attached()};
_.V=GC.prototype;_.V.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||Oes(this)};
_.V.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.V.attributeChangedCallback=function(K,d,f){if(this.upgradeDisabled)K==="disable-upgrade"&&f===null&&(this.upgradeDisabled=!1,PYt(this));else if(d!==f){var H=_.c0(K),D=this.polySiContext.typesForSignals[H];if(D&&(!this.reflecting||_.M("polysi_attribute_changed_serializing_killswitch"))){switch(D){case Object:try{var S=JSON.parse(f)}catch(u){S=f}break;case Array:try{S=JSON.parse(f)}catch(u){S=null}break;case Date:S=isNaN(f)?String(f):Number(f);S=new Date(S);break;case Boolean:S=f!==null;break;case Number:S=
Number(f);break;default:S=f}this[H]=S}H=_.y(this.polySiParams.behaviors);for(D=H.next();!D.done;D=H.next())S=void 0,(S=D.value.attributeChanged)==null||S.call(this,K,d,f);var n;(n=this.attributeChanged)==null||n.call(this,K,d,f)}};
_.V.attributeChangedCallbackWrapper=function(K,d,f){this.attributeChangedCallback(K,d,f)};
_.V.setPropertiesFromInitialAttributeValues=function(){for(var K=0;K<this.hostElement.attributes.length;K++){var d=this.hostElement.attributes[K];(d.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(d.name))&&this.attributeChangedCallback(d.name,null,d.value)}};
_.V.created=function(){this.provide=this.polySiParams.provide;var K;(K=this.initializeInjection)==null||K.call(this);K=_.y(this.polySiParams.reactiveSchemas);for(var d=K.next();!d.done;d=K.next())d=d.value,d.type==="signal"&&(this.mutablePropNames.add(d.propertyKey),on(this.signalProxy,d.propertyKey));$Kz(this,this.polySiInfo,this.polySiParams.behaviors);K=_.y(this.polySiParams.reactiveSchemas);for(d=K.next();!d.done;d=K.next())d=d.value,d.type==="signal"&&d.value!==void 0&&(this.signalProxy.model[d.propertyKey]=
typeof d.value==="function"?d.value.call(this):d.value);if(this.polySiParams.signalProperties)for(K=_.y(this.polySiParams.signalProperties),d=K.next();!d.done;d=K.next()){d=d.value;var f=void 0;((f=this.__signalCache)==null?0:f.has(d))||(this.signalProxy.model[d]=void 0)}ies||NCJ(this);o45(this);K=_.y(this.polySiParams.behaviors);for(d=K.next();!d.done;d=K.next())f=void 0,(f=d.value.created)==null||f.call(this);var H;(H=this.polySiInfo.created)==null||H.call(this)};
_.V.registered=function(){var K=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var d=Object.getPrototypeOf(this);d.addReactiveSchema=function(u){K.polySiParams.reactiveSchemas.push(u)};
for(var f=_.y(this.polySiParams.behaviors),H=f.next();!H.done;H=f.next()){var D=void 0;(D=H.value.beforeRegister)==null||D.call(d)}var S;(S=this.polySiInfo.beforeRegister)==null||S.call(d);d.addReactiveSchema=bez;f=_.y(this.polySiParams.behaviors);for(H=f.next();!H.done;H=f.next())D=void 0,(D=H.value.registered)==null||D.call(d);var n;(n=this.polySiInfo.registered)==null||n.call(d)};
_.V.ready=function(){var K;(K=this.beforeReady)==null||K.call(this);ies&&NCJ(this);var d;if(K=(d=this.polySiContext.finalizedTemplate)==null?void 0:d.processedTemplate){K=SRB(K.template,K.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:K.hasInsertionPoint,thisCtx:this});d=K.nodesById;K=K.root;var f=this.hostElement;var H=H===void 0?!1:H;f=(0,_.dj)(f);if(!f.attachShadow)throw Error("Ad");if(!f.shadowRoot||H)f.attachShadow({mode:"open",shadyUpgradeFragment:K}),f.shadowRoot.appendChild(K);
this.root=f.shadowRoot;this.$=d}YRs(this);H=_.y(this.polySiParams.behaviors);for(d=H.next();!d.done;d=H.next())K=void 0,(K=d.value.ready)==null||K.call(this);var D;(D=this.polySiInfo.ready)==null||D.call(this)};
_.V.attached=function(){for(var K=_.y(this.polySiParams.behaviors),d=K.next();!d.done;d=K.next()){var f=void 0;(f=d.value.attached)==null||f.call(this)}var H;(H=this.polySiInfo.attached)==null||H.call(this)};
_.V.detached=function(){for(var K=_.y(this.polySiParams.behaviors),d=K.next();!d.done;d=K.next()){var f=void 0;(f=d.value.detached)==null||f.call(this)}var H;(H=this.polySiInfo.detached)==null||H.call(this)};
var g4v=function(K){for(var d=_.y(K.polySiParams.behaviors),f=d.next();!f.done;f=d.next())if(f=f.value,f.listeners)for(var H in f.listeners)Vo5(K,K.hostElement,H,f.listeners[H]);if(K.polySiInfo.listeners)for(var D in K.polySiInfo.listeners)Vo5(K,K.hostElement,D,K.polySiInfo.listeners[D])},Vo5=function(K,d,f,H,D){K=yHz(K,H,D);
N5(d,f,K)||d.addEventListener(f,K);return K},NCJ=function(K){for(var d=_.y(K.polySiParams.reactiveSchemas),f=d.next();!f.done;f=d.next())f=f.value,f.type==="compute"||f.type==="computeWithMethod"?u9p(K.signalProxy,f,K):f.type==="redux"?U95(K.signalProxy,f,K.store):f.type==="signal"&&f.readOnly&&IuX(K.signalProxy,f)},YRs=function(K){for(var d=_.y(K.polySiParams.reactiveSchemas),f=d.next(),H={};!f.done;H={schema$jscomp$12:void 0},f=d.next())H.schema$jscomp$12=f.value,H.schema$jscomp$12.type==="notify"?
FiO(K.signalProxy,H.schema$jscomp$12,K.hostElement):H.schema$jscomp$12.type==="observe"?zWn(K.signalProxy,H.schema$jscomp$12,K):H.schema$jscomp$12.type==="reflect"&&K.signalProxy.effect(function(S){return function(){var n=K.signalProxy.getWithPath([S.schema$jscomp$12.propertyKey]);
K.reflecting=!0;$9O(K.hostElement,S.schema$jscomp$12.propertyKey,n,!0);K.reflecting=!1}}(H));
if(K.reflectedAttributes)for(d=_.y(Object.entries(K.reflectedAttributes)),H=d.next(),f={};!H.done;f={key$jscomp$877:void 0,value$jscomp$8790:void 0},H=d.next()){var D=_.y(H.value);H=D.next().value;D=D.next().value;f.key$jscomp$877=H;f.value$jscomp$8790=D;K.signalProxy.effect(function(S){return function(){K.reflecting=!0;$9O(K.hostElement,S.key$jscomp$877,(0,S.value$jscomp$8790)(),!0);K.reflecting=!1}}(f))}};
_.V=GC.prototype;_.V._setPendingProperty=function(K,d){this.set(K,d);return!1};
_.V._enableProperties=function(){};
_.V._setPendingPropertyOrPath=function(K,d){this.notifyPath(K,d);return!1};
_.V._addPropertyEffect=function(){};
_.V._stampTemplate=function(){throw Error("Ig");};
_.V.fire=function(K,d,f){d=d===void 0?{}:d;f=f===void 0?{}:f;var H,D,S={bubbles:(H=f.bubbles)!=null?H:!0,cancelable:!!f.cancelable,composed:(D=f.composed)!=null?D:!0},n;return _.Zp(mKG((n=f.node)!=null?n:this.hostElement),K,d,S)};
_.V.get=function(K,d){var f=Yp(K);return d?ndG(d,f):K==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(f)};
_.V.linkPaths=function(){};
_.V.listen=function(K,d,f){K=mKG(K);this.boundListeners!=null||(this.boundListeners=new WeakMap);var H=this.boundListeners.get(K);H||(H={},this.boundListeners.set(K,H));var D=d+f;H[D]||(H[D]=Vo5(this,K,d,f))};
_.V.notifyPath=function(K,d){this.signalProxy.notifyPath(Yp(K),arguments.length===2?{value:d}:void 0)};
_.V.canNotifyPath=function(K){return this.mutablePropNames.has(K)&&!x9O(this.signalProxy,K)};
_.V.notifySplices=function(K,d){this.signalProxy.notifySplices(Yp(K),d)};
_.V.pop=function(K){var d=this.signalProxy;K=Yp(K);var f=_.y(K);K=f.next().value;f=By(f);return on(d,K).pop(f)};
_.V.push=function(K){var d=_.Pg.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Yp(K)].concat(_.Me(d)))};
_.V.set=function(K,d,f){if(f)throw Error("Jg");K==="hidden"?this.hostElement.hidden=!!d:this.signalProxy.setWithPath(Yp(K),d)};
_.V.setProperties=function(K){K=_.y(Object.entries(K));for(var d=K.next();!d.done;d=K.next()){var f=_.y(d.value);d=f.next().value;f=f.next().value;this[d]=f}};
_.V.splice=function(K,d,f){var H=_.Pg.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Yp(K),d,f].concat(_.Me(H)))};
_.V.unlinkPaths=function(){};
_.V.unlisten=function(K,d,f){K=mKG(K);if(this.boundListeners){var H=this.boundListeners.get(K);if(H){f=d+f;var D=H[f];D&&(Y$(K,d,D)||K.removeEventListener(d,D),delete H[f])}}};
_.V.unshift=function(K){var d=_.Pg.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Yp(K)].concat(_.Me(d)))};
_.x$.Object.defineProperties(GC.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 xKn=[Array,Boolean,Date,Number,Object,String];var J2Y=!1;var Nz=function(){var K=HTMLElement.apply(this,arguments)||this;K.restamp=!1;K.notifyDomChange=!1;K.JSC$11416_didCallConnected=!1;K.JSC$11416_renderDebouncer=null;K.disableTemplateUpdateSignalImpl=AM()?void 0:_.cC(!1,void 0,"zLXz1e");var d;K.getDisableTemplateUpdate=(d=K.disableTemplateUpdateSignalImpl)==null?void 0:d[0];var f;K.setDisableTemplateUpdate=(f=K.disableTemplateUpdateSignalImpl)==null?void 0:f[1];return K};
_.O(Nz,HTMLElement);var to4=function(K){K.conditionSignalImpl!=null||(K.conditionSignalImpl=new Pn(_.cC(!1,void 0,"wcuOQ")));return K.conditionSignalImpl};
_.V=Nz.prototype;_.V.showHideChildren=function(K){o4N(this,K,this.if)};
_.V.attributeChangedCallback=function(K,d,f){if(this.JSC$11416_didCallConnected)throw Error("Ng`"+K);K==="notify-dom-change"?this.notifyDomChange=f!==null:K==="restamp"&&(this.restamp=f!==null)};
_.V.debounceRender=function(){this.JSC$11416_renderDebouncer=_.ZT(this.JSC$11416_renderDebouncer,o4,this.JSC$11416_renderImpl.bind(this));_.e$(this.JSC$11416_renderDebouncer)};
_.V.disconnectedCallback=function(){var K=(0,_.dj)(this).parentNode;(!K||K.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in K&&!K.host)&&$K8(this)};
_.V.connectedCallback=function(){var K=this;this.JSC$11416_didCallConnected=!0;y2k?sWS():this.style.display="none";this.parentSignalProxy.effect(function(){to4(K).getWithPath([]);K.debounceRender()})};
_.V.render=function(){_.fT()};
_.V.JSC$11416_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var K=this.if;if(K){a:{var d=(0,_.dj)(this).parentNode;if(this.hasInstance()){var f=this.instance.children;if((f==null?0:f.length)&&(0,_.dj)(this).previousSibling!==f[f.length-1])for(var H=0;H<f.length;H++)(0,_.dj)(d).insertBefore(f[H],this)}else{if(!d){d=!1;break a}E4k(this,d)}d=!0}if(!d)return}else this.restamp&&$K8(this);o4N(this,!1,K);K&&h69(this);n4J&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.V.hasInstance=function(){return!!this.instance};
var E4k=function(K,d){var f=K.parentSignalProxy;if(AM()){var H=_.y(_.cC(!0,void 0,"wXzgnc"));var D=H.next().value;H=H.next().value;f=K.parentSignalProxy}else{var S;var n=new O9((S=be2(K))!=null?S:{},function(a){var R=on(K.parentSignalProxy,a).getChangeRecordSignal([]);a=_.cC(void 0,void 0,"mryEkc");var F=new Pn(a);n.effect(function(){if(K.getDisableTemplateUpdate&&!K.getDisableTemplateUpdate()){var z=R();F.notifyPath(Yp(z.path),{value:z.value})}});
return F});
K.parentSignalProxy.childSignalProxies.push(n);var u=f=n}f=SRB(K.templateInfo,K.templateInfo.nodeInfoList,f,{eventListenerHost:K.eventListenerHost,hasInsertionPoint:K.templateInfo.hasInsertionPoint,thisCtx:K.eventListenerHost,enabledSignal:AM()?D:void 0,getModel:function(){return be2(K)}}).root;
K.instance={root:f,children:[],hidden:!1,signalProxy:u,getTemplateUpdatesEnabled:D,setTemplateUpdatesEnabled:H};u=_.y(f.childNodes);for(D=u.next();!D.done;D=u.next())K.instance.children.push(D.value);(0,_.dj)(d).insertBefore(K.instance.root,K)},be2=function(K){if((K=K.parentSignalProxy.model)&&!K.hostElement){var d={},f;
for(f in K)K.hasOwnProperty(f)&&(d[f]=K[f]);return d}},$K8=function(K){if(K.instance){var d=K.instance.children;
if(d.length){var f=(0,_.dj)(d[0]).parentNode;if(f){f=(0,_.dj)(f);for(var H=0;H<d.length;H++)f.removeChild(d[H])}}AM()?K.instance.setTemplateUpdatesEnabled(!1):K.instance.signalProxy.dispose();K.instance=void 0}},o4N=function(K,d,f){d=d||!f;
K.instance&&K.instance.hidden!==d&&(K.instance.hidden=d,BCn(d,K.instance.children))},h69=function(K){if(AM()){var d=K.instance;
d&&mU(K.parentSignalProxy.owner,function(){return!d.getTemplateUpdatesEnabled()})&&d.setTemplateUpdatesEnabled(!0)}else K.setDisableTemplateUpdate(!1)};
_.x$.Object.defineProperties(Nz.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var K=this;return mU(this.parentSignalProxy.owner,function(){return to4(K).getWithPath([])})},
set:function(K){K||(AM()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));to4(this).setWithPath([],!!K)}}});
_.x$.Object.defineProperties(Nz,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Nz);var mKB=[],Yc=function(){var K=HTMLElement.apply(this,arguments)||this;K.as="item";K.indexAs="index";K.itemsIndexAs="itemsIndex";K.targetFramerate=20;K.notifyDomChange=!1;K.isDetached=!1;K.JSC$11423_renderDebouncer=null;K.instances=[];K.chunkingId=null;K.chunkCount=null;K.shouldMeasureChunk=!1;K.shouldContinueChunking=!1;K.renderStartTime=null;K.JSC$11423_didCallConnected=!1;return K};
_.O(Yc,HTMLElement);var lVs=function(K){K.itemSignalImpl!=null||(K.itemSignalImpl=new Pn(_.cC(mKB,void 0,"YBrqgf")));return K.itemSignalImpl},Was=function(K,d){Array.isArray(d)||(d=mKB);
lVs(K).setWithPath([],d)};
_.V=Yc.prototype;_.V.showHideChildren=function(K){for(var d=_.y(this.instances),f=d.next();!f.done;f=d.next())BCn(K,f.value.children)};
_.V.notifyPath=function(K,d){K=Yp(K);K[0]==="items"&&(K.length===1?Was(this,d):lVs(this).setWithPath(K.slice(1),d))};
_.V.canNotifyPath=function(K){return K==="items"};
_.V.attributeChangedCallback=function(K,d,f){if(this.JSC$11423_didCallConnected)throw Error("Og`"+K);K==="as"?this.as=f:K==="index-as"?this.indexAs=f:K==="items-index-as"?this.itemsIndexAs=f:K==="initial-count"?this.initialCount=Number(f):K==="notify-dom-change"?this.notifyDomChange=f!==null:K==="target-framerate"&&(this.targetFramerate=Number(f))};
_.V.disconnectedCallback=function(){this.isDetached=!0;for(var K=0;K<this.instances.length;K++)Gts(this,K);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.V.connectedCallback=function(){var K=this,d=lVs(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var D=d(),S=Yp(D.path);if(S[0]===void 0||S[0]==="splices"||S[0]==="length")K.debounceRender();else{var n=S[0];if(n=K.instances[typeof n==="string"?Math.floor(Number(n)):n])S=[K.as].concat(_.Me(S.slice(1))),n.signalProxy.notifyPath(S,D)}});
this.JSC$11423_didCallConnected=!0;y2k?sWS():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var f=(0,_.dj)((0,_.dj)(this).parentNode),H=0;H<this.instances.length;H++)f.insertBefore(this.instances[H].root,this);this.chunkingId&&this.render()}};
_.V.debounceRender=function(){this.JSC$11423_renderDebouncer=_.ZT(this.JSC$11423_renderDebouncer,o4,this.JSC$11423_renderImpl.bind(this));_.e$(this.JSC$11423_renderDebouncer)};
_.V.render=function(){this.debounceRender();_.fT()};
_.V.JSC$11423_renderImpl=function(){var K=this,d=this.items,f=A22(this,d.length);TC2(this,d,f);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){K.chunkingId=null;if(K.shouldMeasureChunk){var H=performance.now()-K.renderStartTime;K.chunkCount=Math.round(Math.ceil(1E3/K.targetFramerate)/H*K.chunkCount)||1}K.shouldContinueChunking&&K.debounceRender()}));
n4J&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var A22=function(K,d){var f=d,H=K.instances.length;if(K.initialCount){if(K.chunkCount){var D=Math.min(Math.max(d-H,0),K.chunkCount);f=Math.min(H+D,d)}else f=Math.min(d,K.initialCount),D=Math.max(f-H,0),K.chunkCount=D||1;K.shouldMeasureChunk=D===K.chunkCount;K.shouldContinueChunking=f<d;K.renderStartTime=performance.now()}return f},TC2=function(K,d,f){for(var H=0;H<f;H++){var D=K.instances[H],S=d[H];
D?(D.signalProxy.setWithPath([K.as],S),D.signalProxy.setWithPath([K.indexAs],H)):r29(K,S,H)}for(d=K.instances.length-1;d>=H;d--)f=K,D=d,Gts(f,D),_.y(f.instances.splice(D,1)).next().value.signalProxy.dispose()},Gts=function(K,d){K=K.instances[d];
d=(0,_.dj)(K.root);for(var f=0;f<K.children.length;f++)d.appendChild(K.children[f])},r29=function(K,d,f){var H={};
d=Object.assign({},qR2(K),(H[K.as]=d,H[K.indexAs]=f,H[K.itemsIndexAs]=f,H));var D=new O9(d,function(n){if(n!==K.as&&n!==K.indexAs){if(n===K.itemsIndexAs)return on(D,K.indexAs);var u=on(K.parentSignalProxy,n).getChangeRecordSignal([]);n=_.cC(void 0,void 0,"Mu2Bwb");var a=new Pn(n);D.effect(function(){var R=u();a.notifyPath(Yp(R.path),{value:R.value})});
return a}});
K.parentSignalProxy.childSignalProxies.push(D);H=SRB(K.templateInfo,K.templateInfo.nodeInfoList,D,{eventListenerHost:K.eventListenerHost,getModel:function(){var n={};return Object.assign({},qR2(K),(n[K.as]=D.model[K.as],n[K.indexAs]=D.model[K.indexAs],n[K.itemsIndexAs]=D.model[K.indexAs],n))},
hasInsertionPoint:K.templateInfo.hasInsertionPoint,thisCtx:K.eventListenerHost,methodInvocationRequirement:c2t,enabledSignal:K.stampingEnabled}).root;d={root:H,children:[],signalProxy:D};H=_.y(H.childNodes);for(var S=H.next();!S.done;S=H.next())d.children.push(S.value);H=(H=K.instances[f+1])?H.children[0]:K;(0,_.dj)((0,_.dj)(K).parentNode).insertBefore(d.root,H);K.instances[f]=d},qR2=function(K){if((K=K.parentSignalProxy.model)&&!K.hostElement){var d={},f;
for(f in K)K.hasOwnProperty(f)&&(d[f]=K[f]);return d}};
Yc.prototype.itemForElement=function(K){var d=this,f=this.instances.find(function(H){return H.children.includes(K)});
if(f)return mU(this.parentSignalProxy.owner,function(){return f.signalProxy.getWithPath([d.as])})};
Yc.prototype.indexForElement=function(K){var d=this.instances.findIndex(function(f){return f.children.includes(K)});
return d>=0?d:void 0};
_.x$.Object.defineProperties(Yc.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var K=this;return mU(this.parentSignalProxy.owner,function(){return lVs(K).getWithPath([])})},
set:function(K){Was(this,K)}},
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}}});
_.x$.Object.defineProperties(Yc,{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",Yc);var QWB,jWN;_.tj=new _.xn("STATE_STORE_TOKEN");QWB=new _.xn("SELECT_TOKEN");jWN=new _.xn("DISPATCH_TOKEN");var KsS={getSelectFn:function(){var K;return(K=_.eq().resolve(_.Zd(QWB)))!=null?K:ktp},
getDispatchFn:function(){var K;return(K=_.eq().resolve(_.Zd(jWN)))!=null?K:_.TC().dispatch.bind(_.TC())},
getAppStore:function(){return _.eq().resolve(_.tj)}},wsN,psz=!1;var H9X=void 0;var CY6=function(){};
CY6.prototype.hasAttribute=function(K){if(K==="dir")return!1;if(K==="disable-upgrade"){var d,f;return(f=(d=this.hostElement)==null?void 0:d.hasAttribute("disable-upgrade"))!=null?f:!1}throw Error("Pg`"+K);};
CY6.prototype.attributeChangedCallbackWrapper=function(K,d,f){if(K==="disable-upgrade"&&this.__isUpgradeDisabled&&f===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var H;((H=this.hostElement)!=null?H:this).isConnected&&this.connectedCallback()}else d===f||this.__isReflecting||this.attributeChangedCallback(K,d,f)};
CY6.prototype.getExtraMethodsToForward=function(){for(var K=this,d=[],f=_.y(xKL),H=f.next(),D={};!H.done;D={tagName$jscomp$51:void 0,name$jscomp$534:void 0},H=f.next())D.name$jscomp$534=H.value,H=void 0,D.name$jscomp$534==="_setPendingProperty"?(D.tagName$jscomp$51=this.hostElement.tagName.toLowerCase(),H=function(S){return function(n,u,a){Rn(S.tagName$jscomp$51,n,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return K._setPendingProperty(n,u,a)}}(D)):H=function(S){return function(){return K[S.name$jscomp$534].apply(K,
_.Me(_.Pg.apply(0,arguments)))}}(D),d.push([D.name$jscomp$534,
H]);return d};
for(var cXX=MoB(v49((0,_.uV)(CY6))),UCB=["disabled","disable-upgrade"],La9=(0,_.uV)(function(){}),BCL=new Set(Object.getOwnPropertyNames(La9.prototype)),v3N=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Me(BCL))),FsX=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),xKL=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),J2s=new Set([].concat(_.Me(FsX),_.Me(xKL),_.Me(BCL))),sWk=_.y(J2s),ktt=sWk.next();!ktt.done;ktt=sWk.next())rSX.add(ktt.value);var XSX={created:function(){o45(this);this.initializeInjection()}};var $CN=!1,JM=window.ShadyDOM,AXo=["appendChild","insertBefore","removeChild","replaceChild"],GUn=[Node];JM&&GUn.push(JM.Wrapper);var CGS,xCo,JX5={};var wj=new Set,sz="",sj5="";var kp,Zm=new Set;var HNu=new Set("context didCallReady is info params signalProxy".split(" ")),VKz="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),SEY="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var ws6=y8({entities:Shp}),Zes=new Qj(ws6);var oC=function(){return _.cP.apply(this,arguments)||this};
_.O(oC,_.cP);_.x$.Object.defineProperties(oC.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Zes}}});
oC=_.x([_.uL()],oC);_.$c=[vn.prototype,oC.prototype];_.E9={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var K=this,d={};setTimeout(function(){var f;return _.Zp((f=K.hostElement)!=null?f:K,"yt-live-chat-add-tooltip-target",d)},0);
this.handler_=d.handler},
detached:function(){if(this.handler_){var K;this.handler_.removeElementFromSupportingTooltips((K=this.hostElement)!=null?K:this)}this.handler_=null}}};_.DF=new _.xn("ICON_MANAGER_TOKEN");var e6s=[48,20,18,16,15,13,12],$xX=new Map,gXp=new Set,vXO=new Set,Pbp=new Set,XZo=new Set,MKO=new Set,NAz=new Promise(function(K){var d=!1,f=!1,H=!1,D=[],S=function(n){if("detail"in n)if(n=n.detail,n.name==="yt-icons")ONp(n),d=!0;else if(n.name==="yt-sys-icons")ONp(n),f=!0;else{var u;((u=n.name)==null?0:u.includes("yt-sys-icons"))&&n.size!==24&&(ONp(n,!0),D.push(n.size),D.length===e6s.length&&(H=!0))}d&&f&&H&&(window.removeEventListener("iron-iconset-added",S),K())};
window.addEventListener("iron-iconset-added",S)}),tKG=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"]]);_.hj={};_.hj.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.qQ,computeHref_:function(K,d){d=d===void 0?!1:d;if(!K||K.commandExecutorCommand)return null;var f=QGu(K,d);return d||f!==null?f?_.M("enable_polymer_resin")?_.Xa(f).toString():f:null:(_.h3(new _.X4("computeHref was null",this.is,K)),null)},
computeOptionalHref_:function(K){return this.computeHref_(K,!0)},
computeNofollow_:function(K){return K?bZY(K)?"nofollow":null:null},
computeIcon_:function(K){return K&&K.iconType?_.Hv(K.iconType):""},
resolveCommand:function(K,d,f){d=d===void 0?{}:d;return _.SV(K,this.hostElement,d,f===void 0?!1:f)}};var Ksk,bm;_.ps2={};Ksk=null;
bm={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_=YQO(this.viewroot));_.bL(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var K=this;this.unobserve_();if(_.M("kevlar_vimio_use_shared_monitor"))l_u(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 d=[];this.visibilityOptionVisible_&&d.push(this.visibilityObserver.observe(this.hostElement,function(){return K.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&d.push(this.visibilityObserver.observe(this.hostElement,function(){return K.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&d.push(this.visibilityObserver.observe(this.hostElement,function(){return K.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=d}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){EXX(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 K=_.bW(this.parentNode,function(f){var H,D=(H=f.polymerController)!=null?H:f;return!!D.getVisibilityObserverForChild&&D.getVisibilityObserverForChild()},!0);
if(K){var d;this.localVisibilityObserver_=((d=K.polymerController)!=null?d:K).getVisibilityObserverForChild()}else Ksk||(Ksk=YQO()),this.localVisibilityObserver_=Ksk;return this.localVisibilityObserver_},visibilityCallback:function(K){K?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.M("kevlar_use_vimio_behavior")||(bm={});bm&&!_.M("kevlar_use_vimio_behavior")&&(delete bm.attached,delete bm.detached);_.ps2.YtVisibilityObserverBehavior=[bm];var dCf={};dCf.YtVisualElementBehavior=[_.ps2.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.M("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.M("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var K=this.getScreenLayer&&this.getScreenLayer(),d=this.getVisibilityLogger();d&&d.reportShown(this,void 0,K)}},
onHidden:function(){if(_.M("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.M("kevlar_vimio_use_shared_monitor")){var K=this.getScreenLayer&&this.getScreenLayer(),d=this.getVisibilityLogger();d&&d.reportHidden(this,void 0,K)}},
getVisibilityLogger:function(){return _.M("kevlar_use_vimio_behavior")?_.nZ():null},
shouldSkipLogging:function(){if(_.mD("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var K=this.getParentRenderer&&this.getParentRenderer();if(!K)return!1;var d,f=(d=K.polymerController)!=null?d:K;if(!f.data)return!1;K=this.data.trackingParams;K=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:K;var H;d=(H=f.data)==null?void 0:H.trackingParams;var D,S;d=((D=f.data)==null?0:D.loggingDirectives)?(S=f.data)==null?void 0:S.loggingDirectives.trackingParams:d;return K&&d&&K===
d}}];var AtG=new Map,Fq;var zUX=function(K){this.layer=K},YB=function(K){return K.layer!==void 0?K.layer:K.parent?YB(K.parent):K.layer=0};var CbB;_.p={};CbB=0;_.p.YtRendererBehavior=[_.hj.YtComponentBehavior,dCf.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_:_.M("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var K,d;(d=(K=this.monitorScrollElement)!=null?K:this.hostElement)==null||d.removeEventListener("scroll",_.Dm(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();WAS(this.hostElement);Iuf(_.aC(),this.hostElement);js.delete(this.hostElement)},
registerRenderer:function(K){var d;((d=K.polymerController)!=null?d:K).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(K),this.markDirty())},
unregisterRenderer_:function(K){this.useVimio_||(this.childCache_.delete(K),this.markDirty())},
attached:function(){var K=this,d=this.getParentRenderer();if(d){var f,H,D;(H=(f=(D=d.polymerController)!=null?D:d).registerRenderer)==null||H.call(f,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var S,n;(n=(S=this.monitorScrollElement)!=null?S:this.hostElement)==null||n.addEventListener("scroll",_.Dm(this,this.onScroll))}_.oc.addJob(function(){TAn(K.hostElement)},8);
f=new zUX(this.screenLayer||void 0);(d=Cd(d))&&d.layerNode&&(f.parent=d.layerNode);d={};$hX(this.hostElement,(d.isRenderer=!0,d.layerNode=f,d[tv]=this.data,d))},
getParentRenderer:function(){for(var K=this.hostElement.parentNode,d,f;K&&((d=Cd(K))==null||!d.isRenderer)&&!((f=K.polymerController)!=null?f:K).isRenderer_;)K=K.parentNode||K.host;return K},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.M("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.lx("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.M("debug_web_ve_data")&&this.data.trackingParams){var K="";try{K=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(f){_.$7(f)}if(K){var d=H1X(K,1);d!==void 0&&(this.hostElement.dataset.veIndex=String(d));K=H1X(K,2);
K!==void 0&&(this.hostElement.dataset.ve=String(K))}}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,_.M("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.RG(this.data.loggingDirectives.trackingParams)),this.visualElement=_.iz(_.cv(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var K=this.data.targetId;_.RW2(_.aC(),K,this.hostElement)}else Iuf(_.aC(),this.hostElement)},
onScroll:function(){var K=Date.now();K-this.lastHandledScroll_<50||(this.lastHandledScroll_=K,this.markDirty())},
markDirty:function(){_.M("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():xxO(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var K=this.getParentRenderer();if(K&&(K=Cd(K))&&K.layerNode)return YB(K.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Me(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var K=0;K<this.data.impressionEndpoints.length;K++)this.sendImpression(this.data.impressionEndpoints[K]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(K){K.clickTrackingParams&&delete K.clickTrackingParams;var d,f;(K==null?0:(d=K.commandMetadata)==null?0:(f=d.webCommandMetadata)==null?0:f.sendPost)?_.dN(this.hostElement,[K,{impression:!0}]):_.fd(this.hostElement,[K],this.hostElement)},
logExplicitClick:function(K){var d=_.te(this.getScreenLayer());if(d){var f,H=(f=K.polymerController)!=null?f:K;K=H.visualElement;H=H.trackingParams||H.clickTrackingParams;!K&&H&&(K=_.RG(H));K&&_.rN(d,K)}}}];var fJt={},mP=function(){return _.cP.apply(this,arguments)||this};
_.O(mP,_.cP);mP.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
mP.prototype.onPdgItemBehaviorClick=mP.prototype.onPdgItemBehaviorClick;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],mP.prototype,"data",void 0);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],mP.prototype,"onPdgItemBehaviorClick",null);mP=_.x([_.uL()],mP);fJt.YtPdgLiveChatItemBehavior=[mP.prototype,_.p.YtRendererBehavior];var H9f;var DCH;_.lm={};_.lm.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Wn=function(){var K=Be.apply(this,arguments)||this;K.switchTemplateAtRegistration=!1;return K};
_.O(Wn,Be);Wn.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||skY(this),_.g4O(this,"doRender"),this.doRender())};
Wn.prototype.debounceRender=function(){this.templatingFn&&_.mx(this,"doRender",this.doRender)};
Wn.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.$7(Error("Zg"))};
Wn.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
Wn=_.x([Xdz()],Wn);var VN4=Wn;var S4f=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,G8={},esO=(G8[1]={filterString:null,isUnwrappable:null,unwrap:null},G8[2]={filterString:function(K,d,f){return pK(f)},
isUnwrappable:function(K){return K instanceof YG},
unwrap:function(K){return oo(K)}},G8[3]={filterString:function(K,d,f){return S4f.test(f)?f:zY.toString()},
isUnwrappable:function(K){return ao(K)},
unwrap:function(K){return _.Io(K)}},G8[4]={filterString:function(){return zY.toString()},
isUnwrappable:function(K){return K instanceof Se},
unwrap:function(K){return _.nM(K).toString()}},G8[5]={filterString:function(K,d,f){return f},
isUnwrappable:function(K){return typeof K==="string"},
unwrap:function(K){return K.toString()}},G8[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(K){return K instanceof _.mc},
unwrap:function(K){return Wg(K)}},G8[8]={filterString:function(K,d,f){f=String(f).toLowerCase();
return UHG(K,d,f)?f:"zClosurez"},
isUnwrappable:null,unwrap:null},G8[10]={filterString:null,isUnwrappable:null,unwrap:null},G8);J3[Gh["default"]]=KjJ;var dtn=[];var iuS=H_p("A"),cip=H_p("BUTTON"),FQ=H_p("DIV"),uxX=H_p("LABEL");(function(){var K=kF;kF=function(d){K==null||K(d);Md(function(){for(var f=0;f<d.length;f++)f2O(d[f])})}})();var Aj=function(){var K=_.cP.apply(this,arguments)||this;K.hasUnmounted=!1;return K};
_.O(Aj,_.cP);_.V=Aj.prototype;_.V.beforeRegister=function(){var K=this.doIdomRender;this.templatingFn?_.$7(Error("Yg")):(this.templatingFn=K,this.switchTemplateAtRegistration=!0,ZNp(this))};
_.V.attached=function(){};
_.V.detached=function(){f2O(this.hostElement)};
_.V.renderIdom=function(){throw Error("ah");};
_.V.doIdomRender=function(){var K=this;e2o(this.hostElement,function(){K.renderIdom()})};
Aj=_.x([_.uL()],Aj);var yXB=[VN4.prototype,Aj.prototype];var n38,i99=function(){return n38!==void 0?n38:n38=document.createElement("template")};
document.head.appendChild(i99().content);var cXf;var u$2,aJs=function(){return u$2!==void 0?u$2:u$2=document.createElement("template")};
document.head.appendChild(aJs().content);var IJt;var UCJ=document.head,RNk=UCJ.appendChild,FsH;if(IJt===void 0){var zNk=document.createElement("template");_.Y(zNk,"\x3c!--css-build:shady--\x3e");zNk.content.insertBefore(aJs().content.cloneNode(!0),zNk.content.firstChild);IJt=zNk}FsH=IJt;RNk.call(UCJ,FsH.content);var XSH,v36=function(){return XSH!==void 0?XSH:XSH=document.createElement("template")};
document.head.appendChild(v36().content);var MNs;var PG9=document.head,g3t=PG9.appendChild,O9v;if(MNs===void 0){var NtB=document.createElement("template");_.Y(NtB,"\x3c!--css-build:shady--\x3e");NtB.content.insertBefore(v36().content.cloneNode(!0),NtB.content.firstChild);MNs=NtB}O9v=MNs;g3t.call(PG9,O9v.content);var Y4f=document.head,tNv=Y4f.appendChild,o3k;if(cXf===void 0){var $C6=document.createElement("template");_.Y($C6,"\x3c!--css-build:shady--\x3e");$C6.content.insertBefore(i99().content.cloneNode(!0),$C6.content.firstChild);cXf=$C6}o3k=cXf;tNv.call(Y4f,o3k.content);var E3J,hNJ=function(){return E3J!==void 0?E3J:E3J=document.createElement("template")};
document.head.appendChild(hNJ().content);var b98;_.AJ=new _.xn("DARK_THEME_TOKEN");var knz=new _.Z("accessibilityProperties");var sRp=new _.Z("layoutProperties");var wOu=new _.Z("imageType");var mCs={};if("ytAttributedStringLinkHoverColor"in mCs)throw Error("dh`ytAttributedStringLinkHoverColor");(function(K,d){mCs[K]="value"in d&&"unit"in d?naO(K,d):function(f){try{return d(f)}catch(H){throw Error("bh`"+K+"`"+H.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var lJ8=function(K){var d=this;this.holdTime=K===void 0?500:K;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(f){var H=new CustomEvent("LONG_PRESS"),D;(D=f.changedTouches[0].target)==null||D.dispatchEvent(H)};
this.ontouchstart=function(f){d.longPressTimeout=_.FN(_.oc,function(){d.onlongpress(f);d.longPressOccurred=!0},d.holdTime)};
this.ontouchmove=function(){_.oc.cancelJob(d.longPressTimeout);d.longPressTimeout=NaN;d.longPressOccurred=!1;d.moveOccurred=!0};
this.ontouchend=function(f){if(d.longPressTimeout&&!d.longPressOccurred&&!d.moveOccurred){var H;(H=f.changedTouches[0].target)==null||H.dispatchEvent(new Event("click"))}_.oc.cancelJob(d.longPressTimeout);d.longPressTimeout=NaN;d.longPressOccurred=!1;d.moveOccurred=!1}};var EaB=function(K,d){lJ8.call(this,d);var f=this;this.callback=K;this.onlongpress=function(H){var D;(D=f.callback)==null||D.call(f,H)}};
_.O(EaB,lJ8);var hIo=function(K,d){var f=Object.assign({},d);K=_.y(new Map([["ontouchstart",K.ontouchstart],["ontouchend",K.ontouchend],["ontouchmove",K.ontouchmove]]));for(var H=K.next(),D={};!H.done;D={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},H=K.next()){var S=_.y(H.value);H=S.next().value;S=S.next().value;D.eventName$jscomp$85=H;D.eventHandler$jscomp$1=S;d[D.eventName$jscomp$85]=function(n){return function(u){var a;(a=f[n.eventName$jscomp$85])==null||a.call(f,u);(0,n.eventHandler$jscomp$1)(u)}}(D)}};_.pQ=new _.xn("COMMAND_HANDLER_TOKEN");var cWO=new _.Z("parallelCommand");var I2u=new _.Z("performOnceCommand");var a2z=new _.Z("serialCommand");var UtG=void 0;var WsN=function(){this.data=[]};
WsN.prototype.push=function(K){this.data.push(K)};var sk={};_.cC(sk,void 0,"sgPmTd");_.cC(null,void 0,"jypsq");var wTo=new WsN;var gaz=[siz,kKo,wNz,ern,ZpB,J$p,pNB,KuO];var BDO=new _.Z("bracketTextDecorator");var GG=new _.Z("highlightTextDecorator");_.rl=new _.xn("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var QRG=function(){},GUL;
(GUL=window.requestIdleCallback)==null||GUL.bind(window);var C2n={calledOnce:!1,state:"visible"},jRu={calledOnce:!1,state:"hidden"};var AX9=new _.xn("ICON_WIZ_COMPONENT_TOKEN");_.U5=_.C8(function(K){var d=K.icon;var f=K.active;var H=K.className;var D=K.style;var S=K.dataSelected;var n=K.dataDisabled;var u=K.role;var a=K.animateIcon;var R=K.themeOverride;var F=K.ariaHidden;var z=K.ariaExpanded;var v=K.ariaLabel;var g=K.id;var N=K.size;var h=K.iconFilter;return _.U(_.X,{cond:d,then:function(){var m=_.eq().resolve(AX9);return _.U(m,{icon:d,dataSelected:S,dataDisabled:n,animateIcon:a,themeOverride:R,ariaExpanded:z,id:g,active:f,size:N,role:u,className:H,ariaHidden:F,ariaLabel:v,
style:function(){return D!=null&&D()||N==null||!N()?D==null?void 0:D():"width: "+(N==null?void 0:N())+"px;height: "+((N==null?void 0:N())+"px;")},
iconFilter:h})}})},"b");
_.U5.idomCompat=!0;var a8z=window.devicePixelRatio||1;var FKX=new Map([["yt_outline_bag_black_24","bag"]]);var T8=function(K){var d=this;this.margin=.1;this.whenInViewportWithMargin=K;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){d.requestScan()});
window.addEventListener("touchend",function(){d.requestScan()});
window.addEventListener("updateui",function(){d.requestScan()});
var f=new _.Ct((0,_.Om)(this.requestScan,this),100);window.addEventListener("scroll",function(){f.fire()},!0);
window.addEventListener("resize",(0,_.Om)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){d.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Om)(this.requestScan,this))};
T8.prototype.observe=function(K){this.observationTargets.includes(K)||this.observationTargets.push(K)};
T8.prototype.unobserve=function(K){this.observationTargets=this.observationTargets.filter(function(d){return d!==K})};
T8.prototype.requestScan=function(){var K=this;this.scanRequested||(Md(function(){Tt6(K)}),this.scanRequested=!0)};
var Tt6=function(K){var d=(1+K.margin)*(document.documentElement.clientHeight||window.innerHeight);K.observationTargets=K.observationTargets.filter(function(f){var H=f.getBoundingClientRect();(H=d>H.top&&!!H.height)&&K.whenInViewportWithMargin(f);return!H&&f.parentNode});
K.scanRequested=!1};
T8.prototype.disconnect=function(){this.observationTargets=[]};var rXf,Qj4;rXf=_.y(_.cC(M0n(),void 0,"O3X2wd"));_.q42=rXf.next().value;Qj4=rXf.next().value;window.addEventListener("resize",function(){Qj4(M0n())});var jj9={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},CGk=void 0,xC9=window.innerWidth,LsH=window.innerHeight;window.addEventListener("resize",function(){CGk=void 0});var Bts;if("IntersectionObserver"in window)Bts=Oro();else{if(CGk===void 0){var JXN;JXN="matchMedia"in window?window.matchMedia(jj9.landscape+","+jj9.portrait).matches:void 0;CGk=JXN!==void 0?JXN:xC9>=930&&LsH>=550||xC9>=550&&LsH>=930}Bts=CGk?{observe:function(K){Md(function(){var d;(d=K.onViewportEntered)==null||d.call(K)})},
unobserve:function(){}}:new T8(function(K){Md(function(){var d;
(d=K.onViewportEntered)==null||d.call(K)})})}var P65=Bts;var sjN=_.C8(function(K){var d=!1,f=_.Co(function(H){_.$F(function(){d=!0;H.onload=null})});
_.ol(function(){var H,D=(H=K.data)==null?void 0:H.call(K),S,n=(S=K.getSrc)==null?void 0:S.call(K).cb,u;H=(u=K.config)==null?void 0:u.call(K);if(u=f.value)if(S=function(R,F){if(!d)return n?n(R,F):R},t05(u,H),_.M("web_image_dont_reload_same_src")&&YpY(u,D,S))_.M("web_image_dont_reload_same_src_simulate_load")&&u.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var a;N6Y(u,D||null,S,H,(a=K.lazy)==null?void 0:a.call(K))}});
return _.U("img",{el:f})},"c");
sjN.idomCompat=!0;_.jV=_.C8(function(K){var d=function(){var f,H=K.data(),D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J,L,fB,w,yO,FX,NJ,$z,hN,bo,xz,qJ;var Y8={contentMode:(D=K.contentMode)==null?void 0:D.call(K),loadedClass:(S=K.loadedClass)==null?void 0:S.call(K),isPreloaded:(n=K.isPreloaded)==null?void 0:n.call(K),notifyOnLoaded:(u=K.notifyOnLoaded)==null?void 0:u.call(K),notifyOnUnloaded:(a=K.notifyOnUnloaded)==null?void 0:a.call(K),preferredThumbnail:(R=K.preferredThumbnail)==null?void 0:R.call(K),preserveHeight:(F=K.preserveHeight)==
null?void 0:F.call(K),preserveWidth:(z=K.preserveWidth)==null?void 0:z.call(K),objectPosition:(v=K.objectPosition)==null?void 0:v.call(K),targetWidth:(g=K.targetWidth)==null?void 0:g.call(K),targetHeight:(N=K.targetHeight)==null?void 0:N.call(K),shouldShowPlaceholder:(h=K.shouldShowPlaceholder)==null?void 0:h.call(K),useWidth:(m=K.useWidth)==null?void 0:m.call(K),alt:(T=K.alt)==null?void 0:T.call(K),className:(r=K.className)==null?void 0:r.call(K),onerror:K.onerror,onload:K.onload,style$:((J=K.style$)==
null?void 0:J.call(K))||((L=K.style)==null?void 0:L.call(K)),color:(fB=K.color)==null?void 0:fB.call(K),width:(w=K.width)==null?void 0:w.call(K),height:(yO=K.height)==null?void 0:yO.call(K),"aria-hidden$":(xz=(FX=K["aria-hidden$"])==null?void 0:FX.call(K))!=null?xz:(NJ=K.ariaHidden)==null?void 0:NJ.call(K),draggable:($z=K.draggable)==null?void 0:$z.call(K),"data-disabled$":(qJ=(hN=K["data-disabled$"])==null?void 0:hN.call(K))!=null?qJ:(bo=K.dataDisabled)==null?void 0:bo.call(K)};return EeN(H,Y8,(f=
K.hideOn404)==null?void 0:f.call(K))};
return _.U(_.gF,null,_.U(_.Mk,{when:function(){var f;return((f=d())==null?void 0:f.type)==="image"}},function(){return _.U(sjN,{data:function(){return d().image},
getSrc:{cb:function(f,H){var D=d().image.sources,S=d().config.isPreloaded,n=d().config.useWidth,u=d().config.targetWidth,a=d().config.targetHeight,R=d().config.preferredThumbnail;return _.I8O(H,D,S,n,u,a,R)||""}},
config:function(){var f=d().config,H;for(H in f)f[H]===void 0&&delete f[H];return f},
lazy:K.renderLazy})}),_.U(_.Mk,{when:function(){var f;
return((f=d())==null?void 0:f.type)==="icon"}},function(){return _.U(_.U5,{icon:function(){return d().iconName},
role:function(){return d().config.role},
className:function(){return d().config.className},
style:function(){return d().config.style$+";width: "+(d().config.width+"px;height: ")+(d().config.height+"px;color: ")+(d().config.color+";")},
ariaLabel:function(){return d().config["aria-label$"]},
ariaHidden:function(){return d().config["aria-hidden$"]},
dataDisabled:function(){return d().config["data-disabled$"]}})}))},"d");
_.jV.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var kU6=function(K){return function(d){return _.U(Ro5,null,function(){var f=d.data(),H=_.hc(d.config);return _.U(Lo,null,function(){return void K(f,H)})})}}(l8B),brG=_.C8(function(K){var d=function(H){var D,S=_.xA(function(v){D=En(function(){for(var g=_.y(F()),N=g.next();!N.done;N=g.next()){N=WKY(N.value);
N=typeof N==="string"?document.createTextNode(N):N;if(!(N instanceof Node)){g=new _.X4("Part is not a node",N,typeof N);_.$7(g);break}v.appendChild(N)}})}),n=LZ(function(){return eIB(H())},{isEqual:hSn}),u=_.QV(K.config),a=function(){var v,g=n();
return!((v=u())==null||!v.ariaLabel)||!(g.commandRuns&&g.commandRuns.length!==0||g.paragraphStyleRuns&&g.paragraphStyleRuns.length!==0)},R=LZ(u,{isEqual:AYo}),F=function(){var v=Z_X(n(),R());
KKB(v,R());return n().content?SpO(n().content,v).parts:[]},z=!0;
_.ol(function(){n();R();if(z)z=!1;else{var v=F();Promise.resolve().then(function(){var g=S.value;if(g){g.innerText="";var N;(N=D)==null||N();D=_.Ob(g,function(){return _.U(GOS,{parts:v})})}})}});
return _.U("span",{el:S,class:function(){return n()&&GnY(n(),u())},
dir:function(){var v;return((v=u())==null?0:v.userInput)?"auto":void 0},
"aria-label":function(){var v;return a()?(v=u())==null?void 0:v.ariaLabel:void 0},
role:function(){return a()?"text":void 0}})},f;
return((f=K.config)==null?0:f.renderedFromFormattedString)?d(K.text):_.U(_.X,{cond:K.text,then:d})},"e");
brG.idomCompat=!0;_.ji=_.C8(function(K){var d=_.QV(K.text),f=T6n(K);K.renderedFromFormattedString!==void 0&&(f.renderedFromFormattedString=!0);return _.M("attr_string_reactive")?_.U(brG,{text:d,config:f}):_.U(_.X,{cond:function(){var H;return d()&&((H=eIB(d()))==null?void 0:H.content)},
then:function(){return _.U(kU6,{data:K.text,config:f})},
debugInstance:"Apcuac"})},"f");
_.ji.idomCompat=!0;var qpX=function(K,d,f){d=d===void 0?"unknown":d;f=f===void 0?{}:f;_.X4.call(this,K+" ("+d+")",Object.assign({},{name:"YtWcwError",tagName:d},f));Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(qpX,_.X4);_.B6X=new WeakMap;_.LKp=!1;var xSp,JYS,C6p;_.rs=Symbol("fh");_.JJ=Symbol("gh");xSp=Symbol("hh");JYS=new Set(Object.getOwnPropertyNames(Element.prototype));C6p=Symbol("ih");var wSt=_.C8(function(K){return _.U("yt-attributed-string",{"aria-label":K.ariaLabel,hidden:K.hidden,id:K.id,class:K.className,"force-default-style":K.forceDefaultStyle},_.U(_.ji,{text:K.data,ariaLabel:K.ariaLabel,ellipsisTruncate:K.ellipsisTruncate,isOverlay:K.isOverlay,linkInheritColor:K.linkInheritColor,noPreWrap:K.noPreWrap,noWrap:K.noWrap,userInput:K.userInput,noEndpoints:K.noEndpoints,headerRuns:K.headerRuns}))},"g");
_.M("web_wiz_attributed_string")&&_.sP(wSt,"yt-attributed-string",{props:{ariaHidden:_.rs,ariaLabel:_.rs,className:_.rs,ellipsisTruncate:_.rs,isOverlay:_.rs,linkInheritColor:_.rs,noEndpoints:_.rs,noStyleRuns:_.rs,noLinkColor:_.rs,noPreWrap:_.rs,noWrap:_.rs,skipOnClick:_.rs,userInput:_.rs,headerRuns:_.rs,id:_.rs,data:_.rs,hidden:_.rs,forceDefaultStyle:_.rs,text:_.JJ,stopPropagation:_.JJ,disableUpgrade:_.JJ,disable:_.JJ,slot:_.JJ}});var qz=function(){return _.q.apply(this,arguments)||this};
_.O(qz,_.q);qz.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},l8B(this.data,this.config))};
_.x([_.l(yXB),_.B("design:type",Object)],qz.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qz.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],qz.prototype,"ariaLabel",void 0);_.x([_.A(),_.B("design:type",Boolean)],qz.prototype,"disable",void 0);_.x([_.A(),_.B("design:type",Boolean)],qz.prototype,"ellipsisTruncate",void 0);_.x([_.A(),_.B("design:type",Boolean)],qz.prototype,"isOverlay",void 0);
_.x([_.A(),_.B("design:type",Boolean)],qz.prototype,"linkInheritColor",void 0);_.x([_.A(),_.B("design:type",Boolean)],qz.prototype,"noPreWrap",void 0);_.x([_.A(),_.B("design:type",Boolean)],qz.prototype,"noWrap",void 0);_.x([_.A(),_.B("design:type",Boolean)],qz.prototype,"userInput",void 0);_.x([_.A(),_.B("design:type",Boolean)],qz.prototype,"noEndpoints",void 0);_.x([_.A(),_.B("design:type",Array)],qz.prototype,"headerRuns",void 0);
qz=_.x([_.N7({is:"yt-attributed-string",disableElementRegistration:!0})],qz);
_.M("web_wiz_attributed_string")||_.C(qz,"yt-attributed-string",function(){if(b98===void 0){var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
K.content.insertBefore(hNJ().content.cloneNode(!0),K.content.firstChild);b98=K}K=b98;return K},{mode:2});var Z9N,eNJ,K0z;Z9N=function(){this.firstThumbnailLoaded=!1};
_.pSN=function(){eNJ||(eNJ=new Z9N);return eNJ};
K0z=function(K){var d=_.pSN();d.firstThumbnailLoaded||(d.firstThumbnailLoaded=!0,_.YJ("ftl",K))};
Z9N.prototype.reset=function(){this.firstThumbnailLoaded=!1};var kOJ=0,pHz=new WeakMap,Zr5=0,ZF=new Set;var KAs,dxs=function(){return KAs!==void 0?KAs:KAs=document.createElement("template")};
document.head.appendChild(dxs().content);var f_9;var DbO,Sdz,QJ;_.KK=_.Hu.caches;QJ=function(){};
QJ.prototype.open=function(K){return _.KK.open(HN4(K))};
QJ.prototype.has=function(K){return _.KK.has(HN4(K))};
QJ.prototype.delete=function(K){return _.KK.delete(HN4(K))};
QJ.prototype.match=function(K,d){var f=this,H,D,S,n,u,a;return _.c(function(R){switch(R.nextAddress){case 1:return _.I(R,f.keys(),2);case 2:H=R.yieldResult,D=_.y(H),S=D.next();case 3:if(S.done){R.jumpTo(5);break}n=S.value;return _.I(R,f.open(n),6);case 6:return u=R.yieldResult,_.I(R,u.match(K,d),7);case 7:if(a=R.yieldResult)return R.return(a);S=D.next();R.jumpTo(3);break;case 5:return R.return()}})};
var y0X=function(){};
_.O(y0X,QJ);var HN4=function(K){if(K.includes(":"))throw Error("lh`"+K);return K+":"+_.F4("CacheStorage get")};
y0X.prototype.keys=function(){var K,d,f,H,D,S,n,u,a;return _.c(function(R){if(R.nextAddress==1)return K=[],d=_.F4("CacheStorage keys"),_.I(R,_.KK.keys(),2);f=R.yieldResult;H=_.y(f);for(D=H.next();!D.done;D=H.next())S=D.value,n=_.HjN(S),u=n.originalName,a=n.datasyncId,a===d&&K.push(u);return R.return(K)})};var jb=function(){var K=_.q.apply(this,arguments)||this;K.objectURL=null;K.loadTime=Infinity;return K};
_.O(jb,_.q);_.V=jb.prototype;_.V.renderIdom=function(){fQX(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("oh");this.setConfig();this.config&&oeB(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.V.objectFitToContentMode=function(K){switch(K){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.V.logThumbnailFailureVe=function(){var K=_.vp(197497);_.p2(_.cv(),K);var d=_.te();d&&K&&d&&_.Ay(d,[K])};
_.V.loadImageFromCacheIfExists=function(K){var d=this,f=K.target;(f==null?0:f.src)&&ijX(f.src).then(function(H){d.objectURL=_.MD(H).toString();d.setSrc(f,d.objectURL)}).catch(function(){})};
_.V.onError=function(K){var d=this;if(_.M("web_use_cache_for_image_fallback")){var f=K.target;f&&ijX(f.src).then(function(H){d.objectURL=_.MD(H).toString();d.setSrc(f,d.objectURL)}).catch(function(){_.M("kevlar_woffle_log_thumbnail_failure_ve")&&d.logThumbnailFailureVe();
_.M("kevlar_woffle_fallback_image")&&d.setSrc(f,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.V.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.V.setConfig=function(){var K=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(d){K.loadImageFromCacheIfExists(d);K.revokeObjectURL();db5(K.hostElement)},
onerror:function(d){K.onError(d)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.M("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.V.setSrc=function(K,d){d&&(K.src=d)};
_.x([_.l(yXB),_.B("design:type",Object)],jb.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],jb.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],jb.prototype,"alt",void 0);_.x([_.A(),_.B("design:type",Boolean)],jb.prototype,"ftlEligible",void 0);_.x([_.A(),_.B("design:type",Number)],jb.prototype,"height",void 0);_.x([_.A(),_.B("design:type",Boolean)],jb.prototype,"notifyOnLoaded",void 0);
_.x([_.A(),_.B("design:type",Boolean)],jb.prototype,"notifyOnUnloaded",void 0);_.x([_.A(),_.B("design:type",String)],jb.prototype,"objectFit",void 0);_.x([_.A(),_.B("design:type",String)],jb.prototype,"objectPosition",void 0);_.x([_.A(),_.B("design:type",String)],jb.prototype,"preferredThumbnail",void 0);_.x([_.A(),_.B("design:type",Boolean)],jb.prototype,"preserveHeight",void 0);_.x([_.A(),_.B("design:type",Boolean)],jb.prototype,"preserveWidth",void 0);
_.x([_.A({value:!0}),_.B("design:type",Boolean)],jb.prototype,"useWidth",void 0);_.x([_.A({value:function(){return!_.lx("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.B("design:type",Boolean)],jb.prototype,"shouldRenderLazy",void 0);_.x([_.A(),_.B("design:type",Number)],jb.prototype,"width",void 0);jb=_.x([_.N7({is:"yt-image",disableElementRegistration:!0})],jb);
_.C(jb,"yt-image",function(){if(f_9===void 0){var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);K.content.insertBefore(dxs().content.cloneNode(!0),K.content.firstChild);
f_9=K}K=f_9;return K},{mode:2});var CI=function(){return _.q.apply(this,arguments)||this};
_.O(CI,_.q);CI.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var K=_.$A(this.data.onVisibleCommand);K&&this.ytComponentBehavior.resolveCommand(K)}};
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],CI.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.lm.YtVisibilityBehavior),_.B("design:type",Object)],CI.prototype,"ytVisibilityBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],CI.prototype,"data",void 0);CI=_.x([_.N7({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],CI);
_.C(CI,"yt-bumper-user-edu-content-view-model",function(){if(DCH===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;H9f===void 0&&(H9f=document.createElement("template"));var H=H9f;f.call(d,H.content.cloneNode(!0),K.content.firstChild);DCH=K}K=DCH;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var DxN;var VK2,SEs=function(){if(VK2!==void 0)return VK2;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;DxN===void 0&&(DxN=document.createElement("template"));var H=DxN;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return VK2=K};var ytH;_.xc={};ytH=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"]);_.xc.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var K=this.getContext_();return K?K.getTaskManager():_.oc},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var K=_.Zp(this.hostElement,"yt-get-context-provider",{});K.detail&&K.detail.contextProvider?this.cachedProviderNode_=K.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return ytH.has(this.hostElement.localName)},
getNetworkManager:function(){var K=this.getContext_();if(K)return K.getNetworkManager()}};var Rgp,nXf,ct4,iN9;_.LI=function(K){var d=nXf.get(K);if(d&&(d=d.pop()))return iN9++,d;ct4++;try{var f=document.createElement(K)}catch(H){throw new _.X4("ElementPool failed to create element",K,H.message);}return f};
Rgp=function(K){var d=K.is;if(d){var f=nXf.get(d);f||(f=[],nXf.set(d,f));var H=_.mD("ELEMENT_POOL_CONFIG")||{};f.length>=(H[d]!==void 0?H[d]:_.mD("ELEMENT_POOL_DEFAULT_CAP",0))||f.push(K)}else _.h3(new _.X4("Element pool should only handle custom elements:",K.nodeName))};
nXf=new Map;ct4=0;iN9=0;var dH=new WeakMap,Ub5=new WeakMap;var a_v;_.Bn=function(K,d,f){f=f===void 0?_.Xm():f;this.JSC$11686_defaultPriority=K;this.signal=d;this.scheduler=f;this.nextJobDescriptor=0;this.JSC$11686_parkedJobs=[];this.scheduledJobs=new Map};
_.Jj=function(K,d){if(d){var f=_.ov();K.signal&&!_.$f(f,K.signal)?(f.addListener(K.signal,function(){K.processSignal()}),K.JSC$11686_parkedJobs.push({job:d,
priority:void 0})):uB6(K,d)}};
a_v=function(K,d){if(d!==K.JSC$11686_defaultPriority){K.JSC$11686_defaultPriority=d;for(var f=_.y(K.scheduledJobs.values()),H=f.next();!H.done;H=f.next())H=H.value,K.scheduler.cancelJob(H.jobId),H.jobId=K.scheduler.addJob(H.jobWrapper,d)}};
_.Bn.prototype.flushJobs=function(){a_v(this,10);this.processSignal()};
_.Bn.prototype.cancel=function(){for(var K=_.y(this.scheduledJobs),d=K.next();!d.done;d=K.next()){var f=_.y(d.value);d=f.next().value;f=f.next().value;this.scheduler.cancelJob(f.jobId);this.scheduledJobs.delete(d)}this.JSC$11686_parkedJobs=[]};
_.Bn.prototype.processSignal=function(){for(var K=_.y(this.JSC$11686_parkedJobs),d=K.next();!d.done;d=K.next())d=d.value,uB6(this,d.job,d.priority);this.JSC$11686_parkedJobs=[]};
var uB6=function(K,d,f){f=f||K.JSC$11686_defaultPriority;if(f===10)eV(d);else{var H=K.nextJobDescriptor++,D=function(){d();K.scheduledJobs.delete(H)},S=K.scheduler.addJob(D,f);
K.scheduledJobs.set(H,{jobWrapper:D,jobId:S,priority:f})}};_.Zx(vTu);var MG5={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};g7o({beforeVisit:function(K){if(wj.has(K.type)){var d;(d=K.props).idomKey!=null||(d.idomKey=K.type)}else K.type.TAG_NAME&&(sz=K.type.TAG_NAME)},
afterRender:function(K,d){var f;sz=(f=d==null?void 0:d.type)!=null?f:""},
didPatch:function(){sz=""}});var I_s;_.s9={};I_s={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.s9.YtRendererstamperBehavior=[_.xc.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 K in this.stampDom){var d=this.stampDom[K];d&&d.id&&this.addReactiveSchema({type:"observe",method:{methodName:u1z(d.id),args:[{type:"wildcard",path:K}]}})}else{(K=(this.constructor.generatedFrom||this).observers)||(K=[]);for(d in this.stampDom){var f=this.stampDom[d];f&&f.id&&K.push(u1z(f.id)+"("+d+".*)")}this.constructor.generatedFrom.observers=K}},
addStampDomObserverFns_:function(){for(var K in this.stampDom){var d=this.stampDom[K];d.id?(this[u1z(d.id)]=this.rendererStamperObserver_.bind(this,K,d.id),this.hasDataPath_[K]=!1):(d=new _.X4("Bad rendererstamper config",this.is+":"+K),_.$7(d))}},
rendererStamperObserver_:function(K,d,f){if(f.path==K){if(f.value===void 0&&!this.hasDataPath_[K])return;this.hasDataPath_[K]=f.value!==void 0}this.rendererStamperApplyChangeRecord_(K,d,f)},
rendererStamperApplyChangeRecord_:function(K,d,f){var H=this.renderJobsMap_[d],D=null;K==f.path?(f=f.value,_.d2(f)||(f=f===void 0||f===null?[]:[f]),K=this.stampDom[K],K.mapping&&(D=this.stampDomArray_.bind(this,f,d,K.mapping,K.reuseComponents,K.events,K.stamperStableList)),H&&H.cancel(),f=K.usePageScheduler?this.getTaskManager():void 0,H||K.initialRenderPriority==void 0)?K.renderPriority==void 0||H||(H=new _.Bn(K.renderPriority,K.waitForSignal,f),this.renderJobsMap_[d]=H):(H=new _.Bn(K.initialRenderPriority,
K.waitForSignal,f),this.renderJobsMap_[d]=H,D=function(S,n){S();a_v(n,10)}.bind(this,D,H)):D=K+".splices"==f.path?this.stampDomArraySplices_.bind(this,K,d,f.value):this.forwardRendererStamperChanges_.bind(this,K,d,f);
H?_.Jj(H,D):D()},
forwardRendererStamperChanges_:function(K,d,f){var H=f.path.slice(K.length+1),D=this.getStampContainer_(d),S=H.indexOf("."),n=H.substring(0,S),u=!1,a=0,R=parseInt(n,0);if(n[0]=="#"){u=parseInt(n.substring(1),0);R=this.get(K);var F=this.get([K,n]);R[u]==F?a=u:a=R.indexOf(F);u=!0}else isNaN(R)||(a=R,u=!0);u&&(H=H.substring(n.length+1),S=H.indexOf("."));n=_.Xd(D).children[a];var z;if(D=(z=n==null?void 0:n.polymerController)!=null?z:n)H="data"+H.slice(S),typeof D.notifyPath!=="function"?_.h3(new _.X4("notifyPath missing",
this.is+": "+K+", "+d)):f.value?D.notifyPath(H,f.value):D.notifyPath(H)},
stampDomArraySplices_:function(K,d,f){if(f&&f.indexSplices){var H=this.getStampContainer_(d);if(H){for(var D=_.Xd(H),S=IQn(this.stampDom[K].reuseComponents),n=f.indexSplices.length,u=0;u<n;u++){for(var a=f.indexSplices[u],R=D.children[a.index],F=a.removed.length;F>0;F--)R&&R.parentElement&&(_.Xd(R.parentElement).removeChild(R),S&&Rgp(R),R=D.children[a.index]);F=this.stampDom[K].mapping;for(var z=a.index+a.addedCount,v=document.createDocumentFragment(),g=S,N=a.index;N<z;N++){var h=a.object[N],m=c0S(F,
h);if(m){var T=F[m];h=h[m];m=this.getComponentName_(T,h);var r=R?dH.has(R):!1;g&&R&&R.is==m&&r?(m=R,this.telemetry_.reuse++,R=R.nextElementSibling):g&&R&&r?(m=this.createComponent_(T,h,S),r=_.Xd(R).nextElementSibling,D.insertBefore(m,r),zgz(this.is,D,R,S),R=r):(g=!1,m=this.createComponent_(T,h,S),v.appendChild(m));this.deferRenderStamperBinding_(m,T,h)}else T=new _.X4("Unimplemented type",K,d,H.tagName,Object.keys(h)[0]),_.$7(T)}D.insertBefore(v,R)}this.flushRenderStamperComponentBindings_();this.stampDom[K].events&&
_.Zp(this.hostElement,"yt-rendererstamper-finished",{container:H})}else K=new _.X4("Container object not found",d,this.hostElement?this.hostElement.is:""),_.$7(K)}},
stampDomArray_:function(K,d,f,H,D,S){var n=this.getStampContainer_(d);if(n)if(d=_.Xd(n),H=IQn(H),K){var u=0,a=0,R;if(S=S===void 0?_.lx("STAMPER_STABLE_LIST",!1):S||!1)for(R=d.firstElementChild;R&&!dH.has(R)&&K.length>a;){S=K[a];var F=c0S(f,S);if(F){if(this.getComponentName_(f[F],S[F])!=R.is){var z=this.createComponent_(f[F],S[F],H),v=_.Xd(R).nextElementSibling;v?d.insertBefore(z,v):d.appendChild(z);zgz(this.is,d,R,H);R=z}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(R,f[F],S[F]);u++;
a++;R=_.Xd(R).nextElementSibling}else a++}XoS(this.is,d,u,H);u=R;if(K.length>a){S=document.createDocumentFragment();for(F=K.length;a<F;a++)if(z=K[a],v=c0S(f,z))R=this.createComponent_(f[v],z[v],H),this.deferRenderStamperBinding_(R,f[v],z[v]),S.appendChild(R);u&&_.Xd(u).parentNode&&R&&!dH.has(R)?d.insertBefore(S,u):d.appendChild(S)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();D&&_.Zp(this.hostElement,"yt-rendererstamper-finished",{container:n})}else XoS(this.is,d,0,
H);else K=new _.X4("Container object not found",d,this.hostElement?this.hostElement.is:""),_.$7(K)},
getStampContainer_:function(K){return this.$&&this.$[K]||_.E(this.hostElement).querySelector("#"+K)},
getComponentName_:function(K,d){return typeof K==="string"?K:K.matcher?K.matcher.call(this,d):K.component},
createComponent_:function(K,d,f){K=this.getComponentName_(K,d);try{var H=Zm.has(K)||wj.has(K);if(f&&!H){var D=_.LI(K);try{_.f8(D)}catch(S){f="Failed to clear styles for "+K+".",S.message&&(f+=" Original error: "+S.message),_.h3(new _.X4(f))}}else D=document.createElement(K)}catch(S){return D="YtRendererStamperBehavior failed to create "+K+".",S.message&&(D+=" Original description: "+S.message),S.message="YtRendererStamperBehavior failed to create element",_.bp(S,D),I_s.hasOwnProperty(K)?_.h3(S):_.$7(S),
document.createElement("SPAN")}this.telemetry_.create++;return D},
deferRenderStamperBinding_:function(K,d,f){this.deferredBindingTasks_.push({component:K,typeOrConfig:d,data:f})},
flushRenderStamperComponentBindings_:function(){for(var K=0,d=this.deferredBindingTasks_.length;K<d;K++){var f=this.deferredBindingTasks_[K];if(!f)break;var H=void 0,D=void 0,S=void 0,n=void 0,u=f.component,a=f.typeOrConfig;f=f.data;var R=(n=u.polymerController)!=null?n:u;n=u.loggingStatus;try{n&&(n.isRendererStamper=!0);if(typeof a!=="string"){for(S in a.attributes)a.attributes[S]===!0?u.setAttribute(S,""):a.attributes[S]===!1?u.removeAttribute(S):u.setAttribute(S,a.attributes[S]);for(D in a.params)R[D]=
a.params[D],u!==R&&Rn(u.localName,D,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(H in a.properties){var F=a.properties[H];if(F){var z=aQ5(F);R[H]=this.get(z);u!==R&&Rn(u.localName,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(H==="on-tap"||H==="on-click"){var v=this.get(z);u.addEventListener("click",v);Ub5.set(u,{property:H,listener:{type:"element",eventName:"click",handler:v}})}}else{var g=new _.X4("Undefined property binding",H);_.$7(g)}}}if(a.classListBinding){var N=aQ5(a.classListBinding),
h=N?this[N]:null;if(h)for(H=0;H<h.length;H++)_.pU(u,h[H],!0)}R.data=f}finally{n&&(n.isRendererStamper=!1)}if(H=dH.get(u))u.hidden=!1,dH.delete(u),_.oc.cancelJob(H)}this.deferredBindingTasks_.length=0}}];_.kc={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(K){for(var d=_.rU.getInstance(),f=_.y(Object.keys(K)),H=f.next();!H.done;H=f.next()){var D=H.value;H=K[D];if(this&&this[H]){var S=d.actionRoutingMap.get(D);S||(S=new Map,d.actionRoutingMap.set(D,S));d.registerActionHandler(this,D,this[H].bind(this),S)}else D=Error("gd"),D.params=H,_.G2(D)}},
unregisterActionMap:function(K){_.QU(_.rU.getInstance(),K,this)}}]};var DW=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}]]);var Hp;var VC=new Map;var mbG=window.matchMedia("(forced-colors: active)").matches;var Uxv;var Rs9;var A0O=new _.xn("LOTTIE_LOADER_TOKEN");_.sP(_.C8(function(K){return _.U("ytd-lottie-player",{id:K.id,hidden:K.hidden,class:K.className,"aria-label":K.ariaLabel,style:"display: block;"},_.U(_.yC,{data:K.data,animationName:function(){var d;return((d=K.data().animationConfig)==null?void 0:d.name)||""},
animationRef:function(){return K.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.rs,
id:_.rs,hidden:_.rs,className:_.rs,ariaLabel:_.rs}});var ws=function(){var K=_.q.apply(this,arguments)||this;K.animationRef={};return K};
_.O(ws,_.q);_.V=ws.prototype;
_.V.handlePropertyChange=function(){var K=this.animatedIcon,d=this.active,f=this.isDarkTheme;if(K){var H=this.previousActive!==d;this.previousActive=d;this.animationRef.lottieEl?H&&this.toggleAnimation(d,K.totalFrames):d?this.initializeAnimationAsToggled(K.lottiePlayerProps,K.totalFrames):this.initializeAnimationAsUntoggled(K.lottiePlayerProps);K.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=K.type;this.lottiePlayerProps=this.computeLottiePlayerProps(K,f)}};
_.V.computeLottiePlayerProps=function(K,d){var f=this.deepCloneLottiePlayerProps(K);d?(d=K.nameDarkTheme,K=K.pathDarkTheme):(d=K.name,K=K.path);f.animationConfig.name=d;(d=VC.get(K))?f.animationConfig.animationData=d:f.animationConfig.path=K;return f};
_.V.initializeAnimationAsToggled=function(K,d){K.animationConfig.initialSegment=[d-1,d]};
_.V.initializeAnimationAsUntoggled=function(K){K.animationConfig.initialSegment=void 0};
_.V.toggleAnimation=function(K,d){if(K){var f;(f=this.animationRef.lottieEl)==null||f.playSegments([0,d],!0)}else{var H;(H=this.animationRef.lottieEl)==null||H.playSegments([0,1],!0)}};
_.V.deepCloneLottiePlayerProps=function(K){var d=Object.assign({},K.lottiePlayerProps.animationConfig);K=Object.assign({},K.lottiePlayerProps);K.animationConfig=d;return K};
ws.prototype.handlePropertyChange=ws.prototype.handlePropertyChange;_.x([_.A(),_.B("design:type",Object)],ws.prototype,"animatedIcon",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],ws.prototype,"active",void 0);_.x([_.A(),_.B("design:type",Boolean)],ws.prototype,"isDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],ws.prototype,"animatedIconType",void 0);_.x([_.A(),_.B("design:type",Boolean)],ws.prototype,"previousActive",void 0);
_.x([_.A(),_.B("design:type",Object)],ws.prototype,"lottiePlayerProps",void 0);_.x([_.A(),_.B("design:type",Object)],ws.prototype,"animationRef",void 0);_.x([_.SP("animatedIcon","active","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ws.prototype,"handlePropertyChange",null);ws=_.x([_.N7({is:"yt-animated-icon",disableElementRegistration:!0})],ws);
_.C(ws,"yt-animated-icon",function(){if(Rs9===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Uxv===void 0&&(Uxv=document.createElement("template"));var H=Uxv;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Rs9=K}K=Rs9;return K},{mode:2});var FAs;var zsL;var qdX=_.C8(function(K){var d=_.x7(),f=od(function(){return{value:null}});
_.$F(function(){var D;(D=f.value)==null||D.cancel()});
var H=_.zh(K.data,{equals:function(D,S){return D.iconName===S.iconName&&D.iconStyle===S.iconStyle&&D.iconSize===S.iconSize&&D.iconSetName===S.iconSetName&&D.iconSelected===S.iconSelected}},"aoiXAb");
_.ol(function(){var D,S=(D=K.options)==null?void 0:D.call(K);r0z(d,f,H(),S)});
return _.U("span",{class:"yt-icon-shape",el:d})},"i");
qdX.idomCompat=!0;var RhG=["youtube_fill","youtube_outline"];var XZ9=new _.Fu({type:"iconset",value:void 0}),ZI=function(){var K=_.q.apply(this,arguments)||this;K.isDarkTheme=document.documentElement.hasAttribute("dark");K.iconName="";K.iconsetName="yt-icons";K.iconset=null;K.missingIconSet=!1;K.iconType=null;K.iconShapeDataSignal=_.cC(void 0,void 0,"RQ9kUb");K.renderingOptionsSignal=_.cC({iconWidth:"100%",iconHeight:"100%",iconFilter:K.iconFilter},void 0,"qtx8Ef");K.wizHasRendered=!1;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(ZI,_.q);_.V=ZI.prototype;_.V.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.isDarkTheme=K)};
_.V.handlePropertyChange=function(){var K=this,d,f,H,D,S,n,u,a,R,F;return _.c(function(z){switch(z.nextAddress){case 1:if(d=!K.icon&&!K.iconName||!K.isAttached)return z.return();f=K;H=f.icon;D=f.size;S=f.defaultToFilled;n=f.active;u=f.targetContainer;K.toggleContainerClass(u);_.M("kevlar_use_wil_icons")&&H&&(a=zsn(H),K.iconType=a.length?a[1]:null);if(H){z.jumpTo(2);break}K.iconsetName="";K.iconName="";return _.I(z,K.renderIcon(u,H),3);case 3:return z.return();case 2:R=K.computeIcon(H);F=zsn(R);F.length&&
(K.iconsetName=F[0],K.iconName=F[1]);if(!_.M("kevlar_use_wil_icons")){z.jumpTo(4);break}return _.I(z,K.getIconShapeData(),5);case 5:K.iconShapeData=z.yieldResult;case 4:if(K.shouldRenderIconShape(u)){z.jumpTo(6);break}return _.I(z,K.determineIconSet(R,n,S,D,u),6);case 6:return _.I(z,K.renderIcon(u,H),0)}})};
_.V.toggleContainerClass=function(K){K?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.V.computeIcon=function(K){return!_.M("default_to_innertube_icon")||K.indexOf(":")>0?K:_.Hv(K)};
_.V.determineIconSet=function(K,d,f,H){var D=this;return _.c(function(S){return S.nextAddress==1?_.M("kevlar_system_icons")||_.mD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.mD("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.I(S,D.switchToYtSysIconset(K,d,f,H),3):S.jumpTo(2):S.nextAddress!=2?S.return():_.I(S,D.useYtSysIconsetForMissingIcons(K,d,f,H),0)})};
_.V.switchToYtSysIconset=function(K,d,f,H){var D=this,S,n,u,a,R,F,z;return _.c(function(v){switch(v.nextAddress){case 1:if(!K||D.iconsetName!=="yt-icons"&&D.iconsetName!=="yt-sys-icons"){v.jumpTo(0);break}S=zsn(K);n=S[1];n=_.oXX(n);_.M("enable_polymer_icons_replace_underscores_dash")&&n.includes("_filled")&&(n=n.replace(/_filled/g,"-filled"));return _.I(v,fZ(n,!0),3);case 3:return u=v.yieldResult,_.I(v,fZ(n,!1),4);case 4:if((a=v.yieldResult)||d&&u)D.iconsetName="yt-sys-icons";D.iconName=D.getIconName(n,
d,f,a,u);if(H===24){v.jumpTo(0);break}R="yt-sys-icons"+H+":"+D.iconName;return _.I(v,fZ(R,!1,!0),6);case 6:return F=v.yieldResult,_.I(v,fZ(R,!0,!0),7);case 7:z=v.yieldResult;D.iconName=D.getIconName(n,d,f,F,z);if(!d&&F||d&&z)D.iconsetName="yt-sys-icons"+H;_.iQ(v)}})};
_.V.getIconName=function(K,d,f,H,D){K.includes("-filled")&&(K=K.replace("-filled",""));return D&&(d||f)?K+"-filled":K};
_.V.useYtSysIconsetForMissingIcons=function(K,d,f,H){var D=this,S,n;return _.c(function(u){if(u.nextAddress==1)return D.iconsetName!=="yt-icons"?u.jumpTo(0):_.I(u,fZ(D.iconName,!1,!1,!0),3);if(u.nextAddress!=4)return S=u.yieldResult,_.I(u,fZ(D.iconName,!1),4);n=u.yieldResult;if(S||!n)return u.jumpTo(0);D.iconsetName="yt-sys-icons";return _.I(u,D.switchToYtSysIconset(K,d,f,H),0)})};
_.V.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.V.getIconManager=function(){return _.c(function(K){try{return K.return(_.eq().resolve(_.DF))}catch(d){return K.return(new Promise(function(f){_.ov().parkOrScheduleJob(function(){f(_.eq().resolve(_.DF))},2,"ci")}))}})};
_.V.getIconShapeData=function(){var K=this,d,f,H,D,S,n;return _.c(function(u){if(u.nextAddress==1){if(!K.iconType)return u.return(void 0);d=K.iconType.toLowerCase();f=d.endsWith("_filled")||d.endsWith("-filled");return _.I(u,K.getIconManager(),2)}H=u.yieldResult;D=K.active||K.defaultToFilled||f?"youtube_fill":"youtube_outline";S={iconName:d,iconStyle:D,iconSize:K.size,iconSetName:K.iconsetName};n=!!H.resolveIcon(S);n||(S.iconSize=void 0,n=!!H.resolveIcon(S));!n&&f&&(S.iconName=d.substring(0,d.length-
7),S.iconSize=K.size,n=!!H.resolveIcon(S),n||(S.iconSize=void 0,n=!!H.resolveIcon(S)));n||(S.iconStyle=void 0,n=!!H.resolveIcon(S));n||_.h3(new _.X4("Icon not supported",{iconName:S.iconName,iconStyle:S.iconStyle,iconSize:S.iconSize,iconType:d}));return u.return(n?S:void 0)})};
_.V.shouldRenderIconShape=function(K){if(!_.M("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;K=this.getContainer(K);return!lQX(K,this.icon)};
_.V.renderIcon=function(K,d){var f=this,H,D,S,n,u,a,R,F;return _.c(function(z){switch(z.nextAddress){case 1:if(d&&f.icon!==d)return z.return();H=f.getContainer(K);D=lQX(H,f.icon);if(f.shouldRenderIconShape(K)&&f.iconType)return f.applyIconShape(D,H),z.return();f.removeIconShape();if(!H)return z.return();f.iconName===""&&f.iconset&&H&&(f.removeStaticIcon(f.iconset,H),D&&f.removeAnimatedIcon(H));if(f.iconName===""&&f.iconset||!f.iconsetName||!XZ9)return z.return();f.iconset=XZ9.byKey(f.iconsetName);
if(!f.iconset)return f.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Dm(f,f.onIconsetAdded)),z.return();f.missingIconSet&&(f.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Dm(f,f.onIconsetAdded)));n=(S=D||f.isAnimatedIcon?bjz(f.icon):void 0)&&!S.lazyLoad;a=S&&((u=S)==null?void 0:u.lazyLoad)&&(S.lottiePlayerProps.animationConfig.animationData?!0:VC.get(f.isDarkTheme?S.pathDarkTheme:S.path)?!0:!1);if(n||a)return f.applyAnimatedIcon(H,S,f.iconset),z.return();if(a||
(R=S)==null||!R.lazyLoad){z.jumpTo(2);break}F=GJJ(S,f.isDarkTheme);f.applyStaticIcon(f.iconset,H,f.iconName,K,D);return _.I(z,F,3);case 3:return _.I(z,f.renderIcon(f.targetContainer,f.icon),4);case 4:return z.return();case 2:f.applyStaticIcon(f.iconset,H,f.iconName,K,D),_.iQ(z)}})};
_.V.getContainer=function(K){var d,f=(d=qLY(this.hostElement))==null?void 0:d.host;d=!!f&&!!f.polymerController;if(!K||d)return K?this.getTargetContainer(K,f):this.hostElement};
_.V.getTargetContainer=function(K,d){var f=_.E(d).querySelector("#"+K);f||(K=new _.X4("yt-icon container missing",d.is,K),_.$7(K));return f};
_.V.applyStaticIcon=function(K,d,f,H,D){D&&this.removeAnimatedIcon(d);this.removeIconShape();D=D&&!!this.iconType&&!!this.iconShapeData&&_.M("kevlar_use_wil_icons");try{D?this.applyIconShape(!1,d):K.applyIcon(d,f)}catch(S){this.handleError(S,H,d)}};
_.V.applyIconShape=function(K,d){this.iconset&&d&&(this.removeStaticIcon(this.iconset,d),K&&this.removeAnimatedIcon(d));K={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var f=_.y(this.iconShapeDataSignal);d=f.next().value;f=f.next().value;var H=_.y(this.renderingOptionsSignal),D=H.next().value;H=H.next().value;f(this.iconShapeData);H(K);if(!this.wizHasRendered)for(this.wizHasRendered=!0,K=_.y(Q$z(d,D)).next().value;K.firstChild;)_.E(this.hostElement).appendChild(K.firstChild)};
_.V.removeIconShape=function(){if(_.M("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.V.removeStaticIcon=function(K,d){K.removeIcon(d)};
_.V.applyAnimatedIcon=function(K,d,f){this.removeStaticIcon(f,K);this.removeIconShape();var H;f=this.animatedIconElement&&((H=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:H.type)===d.type;if(this.animatedIconElement&&f){this.animatedIconElement.polymerController.animatedIcon=d;var D;((D=this.animatedIconElement)==null?void 0:D.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(K),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=d,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.M("kevlar_use_wil_icons")?K.insertBefore(this.animatedIconElement,K.childNodes[0]):(K=_.E(K),K.insertBefore(this.animatedIconElement,K.childNodes[0]))};
_.V.removeAnimatedIcon=function(K){_.M("kevlar_use_wil_icons")?this.animatedIconElement&&K.contains(this.animatedIconElement)&&K.removeChild(this.animatedIconElement):(K=_.E(K),this.animatedIconElement&&K.contains(this.animatedIconElement)&&K.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.V.handleError=function(K,d,f){_.bp(K,this.iconName,d,f);d=lQX(f,this.icon);var H=!1;window.location.href.includes("JpymaW6Lh2w")?H=!0:f._svgIcon&&(f=(f=f._svgIcon.parentNode)?f.tagName:"unknown",_.bp(K,f),f==="YT-ICON"&&K.name==="NotFoundError"?H=!0:K.name==="NotFoundError"&&d&&(H=!0));H?_.h3(K):_.$7(K)};
_.x$.Object.defineProperties(ZI,{template:{configurable:!0,enumerable:!0,get:function(){if(zsL===void 0){var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;
FAs===void 0&&(FAs=document.createElement("template"));var H=FAs;f.call(d,H.content.cloneNode(!0),K.content.firstChild);zsL=K}K=zsL;return K}}});
ZI.prototype.handlePropertyChange=ZI.prototype.handlePropertyChange;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ZI.prototype,"actionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",String)],ZI.prototype,"icon",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],ZI.prototype,"active",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],ZI.prototype,"defaultToFilled",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],ZI.prototype,"isAnimatedIcon",void 0);
_.x([_.A({value:24}),_.B("design:type",Number)],ZI.prototype,"size",void 0);_.x([_.A({value:""}),_.B("design:type",String)],ZI.prototype,"targetContainer",void 0);_.x([_.A(),_.B("design:type",Object)],ZI.prototype,"animatedIconElement",void 0);_.x([_.A(),_.B("design:type",Object)],ZI.prototype,"isDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ZI.prototype,"ariaHidden",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],ZI.prototype,"ariaLabel",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],ZI.prototype,"role",void 0);_.x([_.A(),_.B("design:type",String)],ZI.prototype,"style",void 0);_.x([_.A(),_.B("design:type",String)],ZI.prototype,"iconFilter",void 0);_.x([_.SP("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],ZI.prototype,"handlePropertyChange",null);
ZI=_.x([_.N7({is:"yt-icon",noInjection:!0})],ZI);var vXv;var MKv=function(){var K=document.body,d=K.appendChild;if(vXv===void 0){var f=document.createElement("template");_.Y(f,'\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>');
vXv=f}f=vXv;d.call(K,f.content)};
document.body?MKv():window.addEventListener("DOMContentLoaded",MKv);var Pbt,gXt=function(){return Pbt!==void 0?Pbt:Pbt=document.createElement("template")};
document.head.appendChild(gXt().content);var ONt,NA8=function(){return ONt!==void 0?ONt:ONt=document.createElement("template")};
document.head.appendChild(NA8().content);var YEv;_.eb=new _.xn("KEY_MANAGER_TOKEN");var BrX={duration:1E3,easing:"ease",fill:"forwards"};_.Zx(L0N);var tKB=_.ih(_.J0X);_.Zx(_.J0X);_.pI=_.C8(function(K){var d=_.Co(K.ref),f=K.aTagConfig?K.aTagConfig:_.zh(function(){var H,D,S,n,u,a;var R=(a=_.$A((n=K.command)==null?void 0:n.call(K)))!=null?a:(u=K.command)==null?void 0:u.call(K);return _.hJ({innertubeCommand:R,skipOnClick:(H=K.skipOnClick)==null?void 0:H.call(K),stopPropagation:(D=K.dangerousStopPropagation)==null?void 0:D.call(K),defaultTarget:(S=K.target)==null?void 0:S.call(K)})||{}},void 0,"gnrRge");
_.ol(function(){d.value._data=f()._data;d.value.params=f().params});
return _.U("a",{el:d,href:function(){return f().href$},
rel:function(){return f().rel$},
class:function(){var H,D;return(D=f().className)!=null?D:(H=K.className)==null?void 0:H.call(K)},
style:function(){var H;if((H=K.style)==null?0:H.call(K))return K.style();var D;return((D=K.disabled)==null?0:D.call(K))?"pointer-events:none":""},
"aria-haspopup":function(){return!!f()["aria-haspopup$"]},
"force-new-state":uh(function(){return f()["force-new-state$"]}),
title:uh(function(){var H,D;return(D=f().title$)!=null?D:(H=K.title)==null?void 0:H.call(K)}),
role:uh(function(){return f().role$}),
target:uh(function(){return f().target$}),
dir:uh(function(){var H;return((H=K.dir)==null?0:H.call(K))?K.dir():f().dir}),
tabindex:function(){var H;return f().tabindex$?Number(f().tabindex$):(H=K.tabIndex)==null?void 0:H.call(K)},
"aria-hidden":function(){var H,D;return(D=f()["aria-hidden$"])!=null?D:(H=K.ariaHidden)==null?void 0:H.call(K)},
"aria-label":function(){var H,D;return(D=f()["aria-label$"])!=null?D:(H=K.ariaLabel)==null?void 0:H.call(K)},
"aria-current":K.ariaCurrent,"aria-labelledby":K.ariaLabelledby,"aria-describedby":K.ariaDescribedby,"aria-selected":K.ariaSelected,"tab-identifier":K.tabIdentifier,"on:pointerdown":_.cp(function(H){var D,S;return void((S=(D=f()).onpointerdown)==null?void 0:S.call(D,H))}),
"on:click":_.cp(function(H){var D,S;return void((S=(D=f()).onclick)==null?void 0:S.call(D,H))})},K.children)},"j");var oXH=function(K,d){this.fillAnimation=new Animation(woz(K),document.timeline);this.strokeAnimation=new Animation(ZjX(d),document.timeline)};
oXH.prototype.play=function(){var K,d;(d=(K=this.fillAnimation).play)==null||d.call(K);var f,H;(H=(f=this.strokeAnimation).play)==null||H.call(f)};
oXH.prototype.cancel=function(){var K,d;(d=(K=this.fillAnimation).cancel)==null||d.call(K);var f,H;(H=(f=this.strokeAnimation).cancel)==null||H.call(f)};_.zz=_.C8(function(K){var d=K.model;var f=K.pointerDownEvent;var H=K.pointerUpEvent;var D=K.pointerLeaveEvent;K=_.Co();var S=_.Im({"border-radius":function(){return d().borderRadius}}),n=_.Co(),u=_.Co(),a=_.y(_.am(function(){return(H==null?0:H())||(D==null?0:D())?!1:!(f==null||!f())||!1})),R=a.next().value,F=a.next().value,z=void 0,v=function(){!z&&u.value&&n.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(z=new oXH(u.value,n.value));
var r;(r=z)==null||r.play()},g=function(){var r;
(r=z)==null||r.cancel()},N=function(){var r;
(r=z)==null||r.cancel()};
_.ol(function(){(H==null?0:H())&&v()});
_.ol(function(){(f==null?0:f())&&g()});
_.ol(function(){(D==null?0:D())&&N()});
a=_.cp(function(){v();F(!1)});
var h=_.cp(function(){g();F(!0)}),m=_.cp(function(){N();
F(!1)});
_.$F(function(){if(z){var r;(r=z)==null||r.cancel();z=void 0}});
var T={};R=_.SC("yt-spec-touch-feedback-shape",function(){return egn(d().color)},(T["yt-spec-touch-feedback-shape--focused"]=function(){return!!d().focused&&!d().disabled},T["yt-spec-touch-feedback-shape--circular"]=function(){return!!d().circular},T["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!d().isExtended},T["yt-spec-touch-feedback-shape--down"]=R,T["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!d().triggerEvents},T));
return _.U("yt-touch-feedback-shape",{style:_.Im({"border-radius":"inherit"})},_.U("div",{el:K,class:R,style:_.Im({"margin-top":function(){return d().customTopExtend?"-"+d().customTopExtend+"px":void 0}}),
"on:mousedown":h,"on:mouseup":a,"on:pointerleave":m,"on:touchstart":h,"on:touchend":a,"aria-hidden":!0},_.U("div",{class:"yt-spec-touch-feedback-shape__stroke",style:S,el:n}),_.U("div",{class:"yt-spec-touch-feedback-shape__fill",style:S,el:u})))},"k");
_.zz.idomCompat=!0;var $xH={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 KL=_.zS();KL=KL.toLowerCase();if(_.aX(KL,"android")){var EXH=KL.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);EXH&&parseFloat(EXH[1])<100||KL.match("("+Object.keys($xH).join("|")+")")};var hss=_.C8(function(K){return _.U(_.X,{cond:K.aTagConfig,then:function(d){return _.U(_.pI,{aTagConfig:d,disabled:K.disabled,className:K.className,style:K.style,title:K.title,ariaLabel:K.ariaLabel,ariaCurrent:function(){var f,H;return((f=K.toggleable)==null?void 0:f.call(K))&&((H=K.toggled)==null?void 0:H.call(K))}},K.children)},
else:function(){return _.U("button",{"on:click":_.cp(function(d){var f;return(f=K.onClick)==null?void 0:f.call(K,d)}),
class:K.className,title:K.title,style:K.style,disabled:K.disabled,"aria-pressed":function(){var d,f;return((d=K.toggleable)==null?0:d.call(K))?!((f=K.toggled)==null||!f.call(K)):void 0},
"aria-label":K.ariaLabel,"aria-disabled":K.visiblyDisabled,"aria-hidden":K.ariaHidden,tabindex:K.tabIndex},K.children)}})},"l"),mxv=_.C8(function(K){var d=K.data;
var f=K.hasIconLeading;var H=K.hasIconLeadingTrailing;var D=K.hasIconTrailing;var S=K.iconButton;var n=K.iconClassName;var u=K.secondaryIconClassName;var a=K.icon;var R=K.secondaryIcon;var F=K.textContentClassName;return _.U(d8,{className:"",style:"display: inherit; justify-content: center"},_.U(_.X,{debugInstance:"V4z1Uc",cond:function(){return a&&(f()||H()||(S==null?void 0:S()))},
then:function(){return _.U(d8,null,_.U("div",{class:n,"aria-hidden":"true"},a==null?void 0:a()))}}),_.U(_.X,{debugInstance:"ok3btb",
cond:function(){return(d().buttonText||d().animatedTextProps||d().formattedButtonText)&&!(S==null?0:S())},
then:function(){return _.U(d8,null,_.U(bNt,{className:F,iconPosition:function(){return d().iconPosition},
text:function(){return d().buttonText},
oneOffCustomTextWrap:function(){return d().oneOffCustomTextWrap},
formattedButtonText:function(){return d().formattedButtonText},
animatedTextProps:function(){return d().animatedTextProps}}))}}),_.U(_.X,{debugInstance:"DO5Rz",
cond:D,then:function(){return _.U(d8,null,_.U("div",{class:n},a==null?void 0:a()))}}),_.U(_.X,{debugInstance:"bnojSc",
cond:H,then:function(){return _.U(d8,null,_.U("div",{class:u},R==null?void 0:R()))}}),_.U(_.X,{debugInstance:"HN3kad",
cond:function(){return!d().disabled&&!0},
then:function(){return _.U(_.zz,{model:function(){return{color:HuS(d())}}})}}))},"m"),bNt=_.C8(function(K){var d=function(){var f,H;
return((f=K.iconPosition)==null?void 0:f.call(K))==="icon-with-label"||((H=K.oneOffCustomTextWrap)==null?void 0:H.call(K))};
return _.U("div",{class:K.className,"aria-hidden":function(){var f,H,D;return((f=K.ariaHidden)==null?void 0:f.call(K))&&(!((H=K.animatedTextProps)==null||!H.call(K))||!((D=K.formattedButtonText)==null||!D.call(K)))}},_.U(_.gF,null,_.U(_.Mk,{when:function(){var f;
return(f=K.animatedTextProps)==null?void 0:f.call(K)}},function(){return _.U(tKB,{numberText:function(){return K.animatedTextProps().numberText},
numberValue:function(){return K.animatedTextProps().numberValue},
heightPx:function(){return K.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return K.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return K.animatedTextProps().shouldAnimate},
forceRollUp:function(){return K.animatedTextProps().forceRollUp}})}),_.U(_.Mk,{when:function(){var f;
return(f=K.formattedButtonText)==null?void 0:f.call(K)}},function(){return _.U(_.ji,{text:function(){return Object.assign({},K.formattedButtonText(),{lineBreakMode:d()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":K.formattedButtonText().lineBreakMode,
alignment:d()?"TEXT_ALIGNMENT_CENTER":K.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!d()}})}),_.U(_.Mk,{when:function(){var f,H;
return((f=K.iconPosition)==null?void 0:f.call(K))==="icon-with-label"&&((H=K.text)==null?void 0:H.call(K))}},function(){return _.U(_.ji,{text:function(){return{content:K.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.U(_.P_,null,function(){return K.text})))},"n"),l_4=_.C8(function(K){return _.U(_.X,{cond:K.hasLabel,
then:function(){var d;return _.U("label",{class:K.className},K.children,(d=K.textContent)==null?void 0:d.call(K))},
else:function(){return K.children}})},"o"),d8=_.C8(function(K){return K.children},"p");var chN=pm("stamper-context");var xB=_.C8(function(K){var d=K.data;var f=K.icon;var H=K.iconName;var D=K.secondaryIcon;var S=K.secondaryIconName;var n=K.focusedOverride;UIu();var u=poJ(d),a=u.size,R=u.style;K=u.disabled;var F=u.onTap,z=u.alignByText,v=u.aTagConfig,g=u.customColors,N=u.segmentedPosition,h=u.toggled,m=u.toggleable,T=u.accessibilityLabel,r=u.onToggle,J=u.iconPosition,L=u.oneOffCustomTextWrap,fB=u.disableTextEllipsis,w=u.disableBackdropFilter,yO=u.tooltipText,FX=u.ariaHidden,NJ=u.tabIndex,$z=u.buttonText,hN=u.formattedButtonText,
bo=u.animatedTextProps,xz=fgu(d,f,D,H,S,n),qJ=xz.type;f=xz.shouldFocus;H=xz.hasIconLeading;D=xz.hasIconTrailing;var Y8=xz.hasIconLeadingTrailing,Iz=xz.hasIconOnly;S=xz.hasIconOnly40;var qs=xz.hasIconWithLabel;n=xz.iconButton;var af=xz.visiblyDisabled;u=xz.overrideSmallSizeIcon;var i9=xz.iconToRender;xz=xz.secondaryIconToRender;var KE={},c4={};return _.U(l_4,{className:_.SC("yt-spec-button-shape-with-label",(KE["yt-spec-button-shape-with-label--is-overlay"]=function(){return R()==="overlay"||R()===
"overlay-dark"},KE)),
hasLabel:qs,textContent:function(){return _.U(bNt,{text:$z,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:L,iconPosition:J,formattedButtonText:hN,animatedTextProps:bo})}},_.U(hss,{aTagConfig:v,
className:_.SC("yt-spec-button-shape-next",function(){return V5X(qJ())},function(){return af()?void 0:SfO(R())},function(){return yiB(a())},(c4["yt-spec-button-shape-next--disabled"]=af,c4["yt-spec-button-shape-next--focused"]=f,c4["yt-spec-button-shape-next--icon-trailing"]=D,c4["yt-spec-button-shape-next--icon-leading"]=H,c4["yt-spec-button-shape-next--icon-leading-trailing"]=Y8,c4["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Y8()&&!($z()||hN())},c4["yt-spec-button-shape-next--icon-button"]=
function(){return Iz()||qs()},c4["yt-spec-button-shape-next--icon-only-default"]=S,c4["yt-spec-button-shape-next--align-by-text"]=z,c4["yt-spec-button-shape-next--segmented-start"]=function(){return N()==="start"},c4["yt-spec-button-shape-next--segmented-end"]=function(){return N()==="end"},c4["yt-spec-button-shape-next--override-small-size-icon"]=u,c4["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=L,c4["yt-spec-button-shape-next--disable-text-ellipsis"]=fB,c4["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!w()&&DIn()},c4)),
style:function(){return n9Y(g()).style},
onClick:function(cx){F==null||F(cx);m()&&(r==null||r(cx))},
disabled:K,ariaLabel:T,toggleable:m,toggled:h,title:function(){var cx;return(cx=yO())!=null?cx:""},
visiblyDisabled:af,ariaHidden:FX,tabIndex:NJ},_.U(mxv,{data:d,hasIconLeading:H,hasIconLeadingTrailing:Y8,hasIconTrailing:D,iconButton:n,icon:i9,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:xz})))},"q");
xB.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var WAk=_.C8(function(K){var d=K.data;var f=K.id;var H=K.hidden;var D=K.className;var S=K.iconName;var n=K.secondaryIconName;K=_.y(_.cC(!1,void 0,"RyKHFc"));var u=K.next().value,a=K.next().value,R=function(){var z=_.eq().resolve(_.Zd(_.eb));z&&a(z.isKeyBoardInUse())},F=function(){a(!1)};
K=_.Co(function(z){if(_.eq().resolve(_.Zd(_.eb)))return z.addEventListener("focusin",R),z.addEventListener("focusout",F),function(){z.removeEventListener("focusin",R);z.removeEventListener("focusout",F)}});
return _.U("yt-button-shape",{el:K,id:f,class:D,hidden:H},_.U(_.X,{cond:d,then:function(){return _.U(xB,{data:d,iconName:S,secondaryIconName:n,focusedOverride:u})}}))},"r");
_.M("web_wiz_button_shape")&&_.sP(WAk,"yt-button-shape",{props:{data:_.rs,id:_.rs,hidden:_.rs,className:_.rs,iconName:_.rs,secondaryIconName:_.rs},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var fL=function(){var K=_.q.apply(this,arguments)||this;K.keyboardFocused=!1;return K};
_.O(fL,_.q);fL.prototype.onFocus=function(){var K=_.eq().resolve(_.Zd(_.eb));K&&(this.keyboardFocused=K.isKeyBoardInUse())};
fL.prototype.onBlur=function(){this.keyboardFocused=!1};
fL.prototype.renderIdom=function(){var K=this;if(this.data){var d=Rm(this.data,!!this.iconName),f=dIo(this.data);this.data.focused=this.keyboardFocused;agz(this.data,function(){var H;gl("yt-icon",{icon:K.iconName,active:(H=K.data)==null?void 0:H.toggled,size:d,style:"width: "+d+"px; height: "+d+"px;",iconFilter:f},BC)},function(){var H;
gl("yt-icon",{icon:K.secondaryIconName,active:(H=K.data)==null?void 0:H.toggled,size:d,style:"width: "+d+"px; height: "+d+"px;",iconFilter:f},BC)});
_.Zp(this.hostElement,"yt-renderidom-finished")}};
_.x$.Object.defineProperties(fL,{template:{configurable:!0,enumerable:!0,get:function(){if(YEv===void 0){var K=document.createElement("template");_.Y(K,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);K.content.insertBefore(NA8().content.cloneNode(!0),K.content.firstChild);K.content.insertBefore(gXt().content.cloneNode(!0),K.content.firstChild);YEv=K}K=YEv;return K}}});
fL.prototype.onBlur=fL.prototype.onBlur;fL.prototype.onFocus=fL.prototype.onFocus;_.x([_.l(yXB),_.B("design:type",Object)],fL.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],fL.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],fL.prototype,"iconName",void 0);_.x([_.A(),_.B("design:type",String)],fL.prototype,"secondaryIconName",void 0);_.x([_.A(),_.B("design:type",Object)],fL.prototype,"keyboardFocused",void 0);
_.x([_.VV("focusin"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fL.prototype,"onFocus",null);_.x([_.VV("focusout"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fL.prototype,"onBlur",null);fL=_.x([_.N7({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.M("web_wiz_button_shape")})],fL);_.sP(_.C8(function(K){function d(){f().seconds&&S(rQp({seconds:Number(f().seconds)-Date.now()/1E3}))}
var f=K.targetTimestamp;K=K.className;var H=_.y(_.cC("",void 0,"U1Q8Ae")),D=H.next().value,S=H.next().value;_.Nk(function(){d();var n=setInterval(function(){d()},1E3);
_.$F(function(){clearInterval(n)})});
return _.U("yt-countdown",{class:_.SC("ytCountDownHost",K)},_.U("div",null,D))},"s"),"yt-countdown",{props:{targetTimestamp:_.rs,
className:_.JJ}});_.oY=_.C8(function(K){var d=K.data;var f=K.className;var H=K.style;var D=K.useOutlinedIcon;var S=K.buttonOverrides;var n=K.animatedTextProps;var u=K.onClick;var a=_.Co(function(m){return function(){Iuf(_.aC(),m)}}),R=function(){return d().iconName},F,z=(F=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:F(),v=function(){var m=d();
var T=S==null?void 0:S(),r=n==null?void 0:n();if(m){var J=zvz(m.type);var L=!!m.title||!!m.titleFormatted;var fB=!(!m.iconName&&!m.iconImage);L=fB&&!L?"icon-only":fB?m.iconTrailing||m.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;L==="icon-only-40"&&(J="text");var w,yO=(w=T==null?void 0:T.disabled)!=null?w:m.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||m.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";w=Object;fB=w.assign;var FX=m.title,NJ=m.titleFormatted;r=r&&r.numberText&&
!isNaN(Number(r.numberValue))?r:void 0;var $z=m.accessibilityText,hN=FTB(m.style),bo=XbX(m.state),xz=v9z(m.buttonSize),qJ=Rvu(m,a,yO,u);yO=yO&&!m.onDisabledTap;var Y8=_.hJ({elementsCommand:m.onTap,forceNewState:!0});Y8=bz(Y8)?Y8:void 0;var Iz=m.customFontColor,qs=m.customBackgroundColor;var af=m.customBorderColor;var i9=m.customDarkThemeFontColor,KE=m.customDarkThemeBackgroundColor,c4=m.customDarkThemeBorderColor;Iz=z&&i9?i9:Iz;qs=z&&KE?KE:qs;af=z&&c4?c4:af;af={color:Iz?_.hG(Iz):void 0,backgroundColor:qs?
_.hG(qs):void 0,borderColor:af?_.hG(af):void 0};m=fB.call(w,{},{buttonText:FX,formattedButtonText:NJ,animatedTextProps:r,accessibilityLabel:$z,style:hN,type:J,state:bo,size:xz,iconPosition:L,onTap:qJ,disabled:yO,aTagConfig:Y8,customColors:af,tooltipText:m.tooltip},T)}else m={style:"mono",type:"text",state:"active",size:"M"};m.focused=h();return m},g=function(){return Rm(v(),!!d().iconName)};
K=_.y(_.cC(!1,void 0,"JjUrEe"));F=K.next().value;var N=K.next().value,h=F;K=_.cp(function(){var m=_.eq().resolve(_.Zd(_.eb));m&&N(m.isKeyBoardInUse());return!1});
F=_.cp(function(){N(!1);return!1});
_.ol(function(){var m,T=_.P(d==null?void 0:(m=d())==null?void 0:m.onVisible,_.oG);T&&_.EP(T,{disableClickTracking:!0})});
_.tR(function(){a.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var m=d().targetId;m&&_.RW2(_.aC(),m,a.value)});
return _.U("button-view-model",{el:a,class:_.SC("yt-spec-button-view-model",f),"on:focusin":K,"on:focusout":F},_.U(_.X,{cond:function(){var m;return(d==null?0:(m=d())==null?0:m.iconImage)?{sources:[d().iconImage]}:void 0},
then:function(m){return _.U(xB,{data:v,icon:function(){return _.U(_.jV,{data:m,alt:"",targetWidth:g,targetHeight:g,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.U(xB,{data:v,icon:function(){return _.U(_.U5,{icon:R,active:function(){return(D==null?0:D())?!1:v().toggled},
animateIcon:function(){var m;return!!(H==null?0:(m=H())==null?0:m.animateIcon)},
size:g})}})}}))},"t");
_.oY.idomCompat={callbacks:{onClick:!0}};_.sP(_.C8(function(K){return _.U("yt-button-view-model",{id:K.id,class:_.SC(K.scopingClassName,K.classes),icon:function(){var d;return(d=K.icon)==null?void 0:d.call(K)},
"dialog-dismiss":function(){var d;return((d=K.dialogDismiss)==null?0:d.call(K))?"":void 0}},_.U(_.oY,{data:function(){var d;
return(d=K.data)==null?void 0:d.call(K)},
className:function(){var d;return(d=K.className)==null?void 0:d.call(K)},
style:function(){var d;return(d=K.style)==null?void 0:d.call(K)},
useOutlinedIcon:function(){var d;return(d=K.useOutlinedIcon)==null?void 0:d.call(K)},
buttonOverrides:function(){var d;return(d=K.buttonOverrides)==null?void 0:d.call(K)},
animatedTextProps:function(){var d;return(d=K.animatedTextProps)==null?void 0:d.call(K)},
onClick:function(d){var f;return(f=K.onClick)==null?void 0:f.call(K,d)}}))},"u"),"yt-button-view-model",{props:{data:_.rs,
className:_.rs,style:_.rs,useOutlinedIcon:_.rs,buttonOverrides:_.rs,animatedTextProps:_.rs,onClick:_.JJ,scopingClassName:_.rs,id:_.rs,icon:_.rs,dialogDismiss:_.rs,classes:_.rs}});var HU=function(){var K=_.q.apply(this,arguments)||this;K.isGoalActive=!0;return K};
_.O(HU,_.q);HU.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
HU.prototype.progressBarChanged=function(){var K=_.E(this.hostElement).querySelector("#progress-bar-progress"),d,f,H,D=(H=Number((d=this.creatorGoalState)==null?void 0:d.currentGoalCount)/Number((f=this.creatorGoalState)==null?void 0:f.totalGoalCount)*100)!=null?H:0,S;K.style.width=((S=Math.min(D,100))!=null?S:0)+"%"};
HU.prototype.goalStateChanged=function(){var K;this.isGoalActive=((K=this.creatorGoalState)==null?void 0:K.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var d;K={"--yt-progress-bar-color":LAu((d=this.creatorGoalState)==null?void 0:d.progressBarColor)};_.f8(this.hostElement,K)};
HU.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.x$.Object.defineProperties(HU.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var K;return this.isGoalActive&&!((K=this.creatorGoalState)==null||!K.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.creatorGoalState)==null?0:K.endTimestampMs){var d;K=Number((d=this.creatorGoalState)==null?void 0:d.endTimestampMs)/1E3;return{seconds:String(K)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.creatorGoalState)==null?0:K.themedTargetImage){var d;K=_.P((d=this.creatorGoalState)==null?void 0:d.themedTargetImage,EHH);return this.isAppDarkTheme()?K==null?void 0:K.imageDark:K==null?void 0:K.imageLight}}}});
_.x$.Object.defineProperties(HU,{template:{configurable:!0,enumerable:!0,get:function(){return SEs()}}});
HU.prototype.goalStateChanged=HU.prototype.goalStateChanged;HU.prototype.progressBarChanged=HU.prototype.progressBarChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.$c),_.B("design:type",Object)],HU.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);
_.x([_.A({selectorArgs:["data.creatorGoalEntityKey"],selector:function(K,d){return _.DR(K.entities,"creatorGoalEntity",d)}}),
_.B("design:type",Object)],HU.prototype,"creatorGoalState",void 0);_.x([_.A(),_.B("design:type",Object)],HU.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],HU.prototype,"isGoalActive",void 0);_.x([_.W("creatorGoalState","isGoalActive"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],HU.prototype,"shouldShowCountdown",null);_.x([_.W("creatorGoalState"),_.B("design:type",Object),_.B("design:paramtypes",[])],HU.prototype,"endTimestamp",null);
_.x([_.W("creatorGoalState"),_.B("design:type",Object),_.B("design:paramtypes",[])],HU.prototype,"targetIconThemedImage",null);_.x([_.SP("creatorGoalState.currentGoalCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HU.prototype,"progressBarChanged",null);_.x([_.SP("creatorGoalState.creatorGoalState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HU.prototype,"goalStateChanged",null);
HU=_.x([_.N7({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],HU);_.C(HU,"yt-creator-goal-progress-flow-view-model",function(){return SEs()},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var Gvt;var AtB;var DH=function(){return _.q.apply(this,arguments)||this};
_.O(DH,_.q);DH.prototype.attached=function(){var K,d,f;if(this==null?0:(K=this.data)==null?0:(d=K.pdgPurchasedBumperLoggingDirectives)==null?0:(f=d.loggingDirectives)==null?0:f.trackingParams){var H,D,S;g9N(this==null?void 0:(H=this.data)==null?void 0:(D=H.pdgPurchasedBumperLoggingDirectives)==null?void 0:(S=D.loggingDirectives)==null?void 0:S.trackingParams)}};
DH.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],DH.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],DH.prototype,"data",void 0);DH=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],DH);
_.C(DH,"yt-live-chat-item-bumper-view-model",function(){if(AtB===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Gvt===void 0&&(Gvt=document.createElement("template"));var H=Gvt;f.call(d,H.content.cloneNode(!0),K.content.firstChild);AtB=K}K=AtB;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var TAL;var rtt;_.rH=function(K,d){this.data=K;this.actions=d;this.data=K;this.actions=d};
_.hh=function(){};_.Vr={};_.Vr.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(K,d){Ouz(this.hostElement,K,d)},
getNavigationEndpointPopupAction:function(K){return NYz(K,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(K,d){YfN(this.hostElement,K,d,this.openPopupConfig)}};var Gez=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.SY={};
_.SY.YtEndpointBehavior=[_.Vr.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.mD("openPopupConfig");(this.useClickHandler=_.lx("useClickHandler",!1))?this.hostElement.addEventListener("click",HP(this,this.onEndpointClick_)):(N5(this.hostElement,"tap",HP(this,this.onEndpointTap_)),N5(this.hostElement,"touchend",HP(this,this.onEndpointTouchEnd_)));N5(this.hostElement,"touchstart",HP(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
HP(this,this.onEndpointTapStart_))},
onEndpointClick_:function(K){$IG(this.hostElement,K,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(K){var d=this.hostElement,f=this.openPopupConfig,H=this.disableCommandHandlerOverride;H=H===void 0?!1:H;var D=t5J(K);if(D){D.href&&ls(D.href);var S=K.detail;var n=S.sourceEvent;S=S.preventer;n=n.button!==void 0?n.button===0&&!Ma(n):S?!Ma(S):!0;D.data&&n&&o9O(d,D,K,f,H)}},
onEndpointTouchEnd_:function(K){Ma(K)||t5J(K)&&K.preventDefault()},
onEndpointTapStart_:function(K){lgS(K)}}];var Aiz="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),riS=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var qE9={};qE9.YtPlaintextBehavior=[_.u4,{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(K){K.preventDefault();K=K.clipboardData.getData("text/plain");document.execCommand("insertText",!1,K)},
preventRichTextFormatting_:function(K){_.KO&&(K=K.detail.keyboardEvent,K.stopImmediatePropagation(),K.preventDefault())}}];var Qkk;var jkH;var iF=function(){var K=_.q.apply(this,arguments)||this;K.ignoreShadyDom=!1;K.hasChange_=!1;K.hasSetTitle_=!1;K.useIOObserverForVisibilityLogging_=_.M("kevlar_use_vimio_behavior")&&_.mD("INNERTUBE_CLIENT_NAME")==="WEB";K.ytFormattedStringObserverHandlerKeys_=void 0;return K};
_.O(iF,_.q);_.V=iF.prototype;_.V.created=function(){this.useIOObserverForVisibilityLogging_=_.M("kevlar_use_vimio_behavior")&&_.mD("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.V.ready=function(){_.mD("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_()};
_.V.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.V.detached=function(){this.unobserveIOObservers_()};
_.V.clearContents_=function(){for(var K=this.getRoot(),d=K.lastChild;d&&d.tagName!=="STYLE";){try{K.removeChild(d)}catch(f){break}d=K.lastChild}};
_.V.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var K=_.y(this.ytFormattedStringObserverHandlerKeys_),d=K.next();!d.done;d=K.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(d.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.V.resetForAttributedString=function(){var K=this.getRoot();!K.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),K.appendChild(this.ytAttributedStringElementRef))};
_.V.resetForFormattedString=function(){var K=this.getRoot(),d=K.querySelector("yt-attributed-string");d&&(this.ytAttributedStringElementRef=K.removeChild(d))};
_.V.textChanged=function(){this.textChanged_(this.text)};
_.V.textChanged_=function(K){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!K||!K.runs&&!K.simpleText;if(_.M("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var d=this.hostElement.firstChild;d&&d.nodeName==="FONT";){var f=d;d=d.nextSibling;this.hostElement.removeChild(f)}d=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
f=K.simpleText;var H;!f&&((H=K.runs)==null?void 0:H.length)===1&&this.isSimpleString_(K.runs[0])&&(f=K.runs[0].text);f!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.mD("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(f!==void 0){try{d.textContent=f}catch(D){}d.textContent||(this.isEmpty=!0)}else K=K.runs,f!==void 0&&(K=[{text:f}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),K&&this.updateText_(K),
d.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.V.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)};
_.V.computeAriaLabel_=function(K){return K};
_.V.computeEllipsisTruncateStyling=function(K,d){return K&&!d};
_.V.computeUseAttributedString=function(K){return _.M("web_replace_formatted_with_attributed_string")&&yWG(K)&&!this.disableAttributedString&&!this.enableContentEditable};
_.V.setNodeStyle_=function(K,d){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.M("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?d.removeAttribute("dir"):d.setAttribute("dir","auto");d.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");d.style.color="";var f=null;this.noStyles||(K.bold&&(d.classList.add("bold"),f="bold"),K.deemphasize&&(d.classList.add("deemphasize"),f="deemphasize"),K.italics&&d.classList.add("italic"),
K.strikethrough&&d.classList.add("strikethrough"),K.errorUnderline&&(d.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),K.bracket&&d.classList.add("bracket"),K.textColor&&(d.style.color=_.E1(K.textColor)));f!==d.getAttribute("style-target")&&(f?d.setAttribute("style-target",f):d.removeAttribute("style-target"))};
_.V.setUpVisibilityLogging_=function(K,d){var f=this;this.setNodeTrackingParams_(K,d);var H;((H=d.data)==null?0:H.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(K=this.ytRendererBehavior.visibilityObserver.observe(d,function(D){var S=f.ytRendererBehavior.getVisibilityLogger();S&&S.reportShown(D)},this.ytRendererBehavior.visibilityOptionVisible_),d=this.ytRendererBehavior.visibilityObserver.observe(d,function(D){var S=f.ytRendererBehavior.getVisibilityLogger();
S&&S.reportHidden(D)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(K),this.ytFormattedStringObserverHandlerKeys_.push(d))};
_.V.setNodeTrackingParams_=function(K,d){d.data||(d.data={});if((K=K.loggingDirectives?K.loggingDirectives.trackingParams:null)||d.data.trackingParams)d.data.trackingParams=K};
_.V.computeHasLinkOnly_=function(K){return!(!K||K.length!==1||this.noEndpoints||!K[0].navigationEndpoint)};
_.V.getRoot=function(){var K=this.buildScopeDomOptions();return this.enableContentEditable?_.E(_.E(this.hostElement,K).querySelector("[contenteditable]")):_.E(this.hostElement,K)};
_.V.fixContenteditableScope=function(){var K=function(d){d&&(d.nodeType===1&&d.classList&&(d.classList.add("style-scope"),d.classList.add("yt-formatted-string")),d.childNodes&&d.childNodes.forEach(function(f){K(f)}))};
K(this.getRoot())};
_.V.updateText_=function(K){for(var d=K.length,f=this.getRoot(),H=f.firstChild;H&&H.nodeName==="STYLE";)H=H.nextSibling;for(var D=0;D<d&&H;){var S=K[D],n=_.M("remove_cr_char")&&S.text?S.text.replace("\r",""):S.text;if(this.isSimpleString_(S)&&!this.useMixedDirectionFormattedStrings)if(H.nodeName==="#text"){H.textContent!=n&&(H.textContent=n);D++;H=H.nextSibling;continue}else break;if(_.P(S,YA))break;else if(!this.noEndpoints&&S.navigationEndpoint){if(H.nodeName!=="A")break;this.setDataOnAnchor_(H,
S.navigationEndpoint)}else if(H.nodeName!=="SPAN")break;this.setNodeStyle_(S,H);this.setUpVisibilityLogging_(S,H);H.textContent!=n&&(H.textContent=n);D++;H=H.nextSibling}if(H)for(S=f.lastChild,H=D?H.previousSibling:null;S&&S!=H;){try{f.removeChild(S)}catch(u){break}S=f.lastChild}D!==d&&this.addTextNodes_(K,D)};
_.V.addTextNodes_=function(K,d){for(var f=document.createDocumentFragment(),H=K.length;d<H;d++){var D=K[d],S=_.M("remove_cr_char")&&D.text?D.text.replace("\r",""):D.text;if(this.isSimpleString_(D)&&!this.useMixedDirectionFormattedStrings)f.appendChild(document.createTextNode(S));else{var n=_.P(D,YA);if(n){if(n.image){var u=document.createElement("img");n.isCustomEmoji||u.classList.add("small-emoji");u.classList.add("emoji");n.isCustomEmoji&&(u.dataset.emojiId=n.emojiId);u.src=_.kA(n.image.thumbnails,
this.emojiSize);(D=this.get("image.accessibility.accessibilityData.label",n))?u.alt=D:n.shortcuts&&n.shortcuts.length>0?u.alt=n.shortcuts[0]:n.emojiId&&(u.alt=n.emojiId);f.appendChild(u);this.hasEmoji=!0}}else!this.noEndpoints&&D.navigationEndpoint?(u=document.createElement("a"),u.classList.add("yt-simple-endpoint"),u.setAttribute("spellcheck","false"),this.setDataOnAnchor_(u,D.navigationEndpoint)):u=document.createElement("span"),this.setNodeStyle_(D,u),this.setUpVisibilityLogging_(D,u),u.appendChild(document.createTextNode(S)),
f.appendChild(u)}}this.getRoot().appendChild(f)};
_.V.isSimpleString_=function(K){return(this.noEndpoints||!K.navigationEndpoint)&&!_.P(K,YA)&&(this.noStyles||!(K.bold||K.deemphasize||K.italics||K.strikethrough||K.errorUnderline||K.bracket||K.textColor))&&!K.loggingDirectives};
_.V.getRawText=function(){return _.qQ(this.text)};
_.V.getFirstRunText=function(){var K;if(((K=this.text)==null?0:K.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.V.setFirstRunText=function(K){var d;((d=this.text)==null?0:d.runs)&&this.text.runs[0]&&(this.text.runs[0].text=K,this.textChanged_(this.text))};
_.V.setDataOnAnchor_=function(K,d){var f=this;!_.M("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(d)||this.isSignalServiceEndpoint_(d)?(K.onclick=this.serviceEndpointHandler_(d),ND(K,"#")):EAX({text:this.text,command:d},function(){jGu(K,d,f.target)})};
_.V.isServiceEndpoint_=function(K){var d;return!((d=_.P(K==null?void 0:K.commandMetadata,_.B0))==null||!d.sendPost)};
_.V.isSignalServiceEndpoint_=function(K){return!!_.P(K,_.y$)};
_.V.serviceEndpointHandler_=function(K){var d=this;return function(f){_.dN(d.hostElement,[K]);f.preventDefault()}};
_.V.overrideAriaLabelChanged_=function(){var K=this.getRoot();this.enableContentEditable&&K&&K.setAttribute("aria-label",this.overrideAriaLabel)};
_.V.enableContentEditableChanged_=function(){var K=this,d=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),d=_.E(this.hostElement,d),!d.lastChild||d.lastChild instanceof HTMLElement&&d.lastChild.id!=="contenteditable-root"){var f=document.createElement("div");f.id="contenteditable-root";f.setAttribute("contenteditable","true");f.setAttribute("dir","auto");f.onfocus=function(){K.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
d.appendChild(f);this.overrideAriaLabel&&f.setAttribute("aria-label",this.overrideAriaLabel)}}else f=_.eZ(this.hostElement).firstChild,f instanceof HTMLElement&&f.id==="contenteditable-root"&&_.E(this.hostElement,d).removeChild(f)};
_.V.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.V.getNodesForVisibilityLogging_=function(){return _.Jm(this.getRoot().childNodes,function(K){var d;return!((d=K.data)==null||!d.trackingParams)})};
_.V.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.V.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var K=this.ytRendererBehavior.getVisibilityLogger();K&&this.getNodesForVisibilityLogging_().forEach(function(d){K.reportShown(d)})}};
_.V.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var K=this.ytRendererBehavior.getVisibilityLogger();K&&this.getNodesForVisibilityLogging_().forEach(function(d){K.reportHidden(d)})}};
_.x$.Object.defineProperties(iF.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.M("enable_mixed_direction_formatted_strings")}}});
iF.prototype.enableContentEditableChanged_=iF.prototype.enableContentEditableChanged_;iF.prototype.overrideAriaLabelChanged_=iF.prototype.overrideAriaLabelChanged_;iF.prototype.ellipsisTruncateChanged_=iF.prototype.ellipsisTruncateChanged_;iF.prototype.textChanged=iF.prototype.textChanged;_.x([_.l(qE9.YtPlaintextBehavior),_.B("design:type",Object)],iF.prototype,"ytPlaintextBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],iF.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],iF.prototype,"text",void 0);_.x([_.A(),_.B("design:type",Boolean)],iF.prototype,"noEndpoints",void 0);_.x([_.A(),_.B("design:type",Boolean)],iF.prototype,"noStyles",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],iF.prototype,"isDarkTheme",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],iF.prototype,"splitLines",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],iF.prototype,"forceDefaultStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],iF.prototype,"ellipsisTruncate",void 0);_.x([_.A(),_.B("design:type",Object)],iF.prototype,"ignoreShadyDom",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.B("design:type",Boolean)],iF.prototype,"ellipsisTruncateStyling",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.B("design:type",String)],iF.prototype,"ariaLabel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],iF.prototype,"isEmpty",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.B("design:type",Boolean)],iF.prototype,"hasLinkOnly_",void 0);_.x([_.A(),_.B("design:type",Boolean)],iF.prototype,"hasEmoji",void 0);_.x([_.A(),_.B("design:type",Boolean)],iF.prototype,"disableAttributedString",void 0);_.x([_.A(),_.B("design:type",Boolean)],iF.prototype,"isOverlay",void 0);_.x([_.A(),_.B("design:type",Boolean)],iF.prototype,"linkInheritColor",void 0);
_.x([_.A(),_.B("design:type",Boolean)],iF.prototype,"noPreWrap",void 0);_.x([_.A(),_.B("design:type",Boolean)],iF.prototype,"userInput",void 0);_.x([_.A({value:16}),_.B("design:type",Number)],iF.prototype,"emojiSize",void 0);_.x([_.A(),_.B("design:type",String)],iF.prototype,"target",void 0);_.x([_.A(),_.B("design:type",Boolean)],iF.prototype,"enableContentEditable",void 0);_.x([_.A(),_.B("design:type",String)],iF.prototype,"overrideAriaLabel",void 0);
_.x([_.A(),_.B("design:type",Boolean)],iF.prototype,"respectHtmlDir",void 0);_.x([_.A(),_.B("design:type",Boolean)],iF.prototype,"respectLangDir",void 0);_.x([_.W("plaintextOnly"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],iF.prototype,"useMixedDirectionFormattedStrings",null);_.x([_.A({computed:"computeUseAttributedString(text)"}),_.B("design:type",Boolean)],iF.prototype,"useYtAttributedString",void 0);
_.x([_.SP("text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iF.prototype,"textChanged",null);_.x([_.SP("ellipsisTruncate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iF.prototype,"ellipsisTruncateChanged_",null);_.x([_.SP("overrideAriaLabel"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iF.prototype,"overrideAriaLabelChanged_",null);
_.x([_.SP("enableContentEditable"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iF.prototype,"enableContentEditableChanged_",null);iF=_.x([_.N7({is:"yt-formatted-string",disableElementRegistration:!0})],iF);
_.C(iF,"yt-formatted-string",function(){if(jkH===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Qkk===void 0&&(Qkk=document.createElement("template"));var H=Qkk;f.call(d,H.content.cloneNode(!0),K.content.firstChild);jkH=K}K=jkH;return K});var CbJ;var xxv;var LA4;var BAt;var cU=function(){var K=_.q.apply(this,arguments)||this;K.focused=!1;K.disabled=!1;K.isOverlay=!1;return K};
_.O(cU,_.q);cU.prototype.triggerDown=function(){if(!this.disabled){_.pU(this.hostElement,"down",!0);var K;(K=this.currentAnimation)==null||K.cancel()}};
cU.prototype.triggerUp=function(){if(!this.disabled){_.pU(this.hostElement,"down",!1);var K=this.fillElement;var d=this.strokeElement;typeof GroupEffect==="function"?(K=new GroupEffect([woz(K),ZjX(d)]),K=new Animation(K,document.timeline)):K=new oXH(K,d);this.currentAnimation=K;var f;(f=this.currentAnimation)==null||f.play()}};
_.x([_.n8(".stroke"),_.B("design:type",HTMLElement)],cU.prototype,"strokeElement",void 0);_.x([_.n8(".fill"),_.B("design:type",HTMLElement)],cU.prototype,"fillElement",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],cU.prototype,"focused",void 0);_.x([_.A(),_.B("design:type",Object)],cU.prototype,"disabled",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],cU.prototype,"isOverlay",void 0);cU=_.x([_.N7({is:"yt-interaction",disableElementRegistration:!0})],cU);
_.C(cU,"yt-interaction",function(){if(BAt===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;LA4===void 0&&(LA4=document.createElement("template"));var H=LA4;f.call(d,H.content.cloneNode(!0),K.content.firstChild);BAt=K}K=BAt;return K},{mode:2});var uF=function(){return _.q.apply(this,arguments)||this};
_.O(uF,_.q);_.V=uF.prototype;_.V.ready=function(){var K=this,d=_.E(this.hostElement).querySelector("#button");d.addEventListener("focus",function(){Ovv||(Ovv=new gY4);K.keyboardFocused=Ovv.isKeyBoardInUse()});
d.addEventListener("blur",function(){K.keyboardFocused=!1;K.rippleUp_()})};
_.V.computeTabIndex_=function(K){return K?-1:0};
_.V.computeButtonAriaPressed_=function(K){if(this.toggleable)return K?"true":"false"};
_.V.rippleDown_=function(){_.E(this.hostElement).querySelector("#interaction").triggerDown()};
_.V.rippleUp_=function(){_.E(this.hostElement).querySelector("#interaction").triggerUp()};
_.V.onPressedChanged_=function(){var K=_.eZ(_.E(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.eZ(_.E(this.hostElement).querySelector("#button")).children[0];K&&(K.active=this.pressed)};
uF.prototype.onPressedChanged_=uF.prototype.onPressedChanged_;uF.prototype.rippleUp_=uF.prototype.rippleUp_;uF.prototype.rippleDown_=uF.prototype.rippleDown_;_.x([_.A(),_.B("design:type",String)],uF.prototype,"label",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],uF.prototype,"disabled",void 0);_.x([_.A(),_.B("design:type",Boolean)],uF.prototype,"pressed",void 0);_.x([_.A(),_.B("design:type",Object)],uF.prototype,"toggleable",void 0);
_.x([_.A(),_.B("design:type",Boolean)],uF.prototype,"untabbable",void 0);_.x([_.A(),_.B("design:type",Boolean)],uF.prototype,"keyboardFocused",void 0);_.x([_.VV("down"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uF.prototype,"rippleDown_",null);_.x([_.VV("up"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uF.prototype,"rippleUp_",null);
_.x([_.SP("pressed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uF.prototype,"onPressedChanged_",null);uF=_.x([_.N7({is:"yt-icon-button",disableElementRegistration:!0})],uF);
_.C(uF,"yt-icon-button",function(){if(xxv===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;CbJ===void 0&&(CbJ=document.createElement("template"));var H=CbJ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);xxv=K}K=xxv;return K},{mode:2});var Jtv=_.Am(["aria-"]),aF={};aF.YtRenderButtonBehavior=[_.p.YtRendererBehavior,_.SY.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!!_.eq().resolve(_.Zd(_.eb))&&_.M("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 K=this.computeHref_(this.endpoint,!0);K?ND(this.elements_.endpoint,K):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){K=this.buttonClass.split(" ");K=_.y(K);for(var d=K.next();!d.done;d=K.next())d=d.value,_.pU(this.hostElement,d,!0),this.elements_.button&&_.pU(this.elements_.button,d,!0),this.elements_.text&&_.pU(this.elements_.text,d,!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&&(K=null,this.buttonAccessibility&&(K=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=K:K?_.r5([_.Zw(Jtv)],this.elements_.button,"aria-label",K):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var K=_.eq().resolve(_.Zd(_.eb));K&&(this.keyboardFocused=K.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.LI("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,_.Xd(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Xd(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(K,d){if(d)for(K=d.split(" "),K=_.y(K),d=K.next();!d.done;d=K.next())d=d.value,_.pU(this.hostElement,d,!1),this.elements_.button&&_.pU(this.elements_.button,d,!1),this.elements_.text&&_.pU(this.elements_.text,d,!1)},
buttonIconChanged_:function(K){this.elements_.icon?K?(this.elements_.icon.icon=K,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Xd(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.K8(this.hostElement,"is-paper-button-with-icon",!1)):K&&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"&&_.Xd(this.elements_.button).appendChild(this.elements_.icon):_.Xd(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.K8(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(K){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,K){var d=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(K){case "yt_icon_button_with_label":d=!0;_.pU(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();K=_.Xd(this.elements_.button).firstElementChild;
this.elements_.icon=K;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Xd(this.elements_.endpoint).appendChild(this.elements_.button);_.Xd(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.LI("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;_.Xd(this.elements_.button).appendChild(this.elements_.text);_.Xd(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":d=!0,this.elements_.button=this.getYtIconButton_(),K=_.Xd(this.elements_.button).firstElementChild,this.elements_.icon=K,this.setIconActive_(this.elements_.icon),
_.Xd(this.elements_.endpoint).appendChild(this.elements_.button)}_.K8(this.hostElement,"is-icon-button",d);_.K8(this.hostElement,"is-paper-button",!d);_.K8(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 f;_.E((f=this.container.hostElement)!=null?f:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Xd(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(K){if(K!=void 0||this.disabled)this.disabled=K,this.elements_.button&&(this.elements_.button.disabled=K)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(K){_.M("kevlar_system_icons")&&K&&this.data&&(this.data.isSelected!==void 0?K.active=this.data.isSelected:this.data.isToggled!==void 0&&(K.active=this.data.isToggled))},
observeBasicPalette_:function(K){_.gH(this.hostElement,K)},
disabledChanged_:function(K){this.data&&this.set("data.isDisabled",K)},
onYtButtonTap_:function(K){if(this.disabled)K.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.dN(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(K=this.disableCommandHandlerOverride,!this.data||!this.data.command||K||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.M("handle_service_request_actions")||_.dN(this.hostElement,[this.serviceEndpoint]),
_.Zp(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.M("handle_service_request_actions")?(K=[],this.serviceEndpoint&&K.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&K.push(this.data.command),K.length&&_.fd(this.hostElement,K,this.hostElement)):this.data&&this.data.command&&(K=this.data.command,K.accountUnlinkCommand||K.accountLinkCommand||K.insertAdCommand||K.insertHighlightMarkerCommand||
K.createLivestreamHighlightClipCommand||K.getVideoUploadFeedbackCommand||K.musicDeletePrivatelyOwnedEntityCommand||K.ypcCancelRecurrenceEndpoint||K.getMultiSelectCommandEndpoint?_.dN(this.hostElement,[K]):_.fd(this.hostElement,[K],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 K,d=_.E((K=this.container.hostElement)!=null?K:this.container);d.lastChild&&d.lastChild.tagName!="STYLE";)try{d.removeChild(d.lastChild)}catch(f){break}},
getYtIconButton_:function(){var K=this.reuseEnabled_()?_.LI("yt-icon-button"):document.createElement("yt-icon-button"),d=_.Xd(K).firstElementChild;if(d&&d.is!="yt-icon"){for(d=_.Xd(K);d.lastChild;)d.removeChild(d.lastChild);d=null}d||(d=this.getIcon_(),this.setIconActive_(d),_.Xd(K).appendChild(d));return K},
reuseEnabled_:function(){return _.M("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.LI("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.LI("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.sks={};
_.sks.YtButtonBehavior=[aF.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var K=this.data;K&&(this._setEndpoint(this.computeEndpoint_(K)),this._setServiceEndpoint(this.computeServiceEndpoint_(K)),this._setCommand(this.computeCommand_(K)),this._setButtonIcon(this.computeButtonIcon_(K)),this._setButtonText(this.computeButtonText_(K,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(K)),this._setButtonTooltip(this.computeTooltip_(K)),this._setButtonClass(this.computeButtonClass_(K)),this._setIconPositionType(this.computeIconPositionType_(K)),this.updateRenderedElements())},
setPressedState:function(K){var d;if((d=this.elements_)==null?0:d.button)this.elements_.button.pressed=!!K},
computeIconPositionType_:function(K){return K&&K.iconPosition||null},
computeEndpoint_:function(K){var d=K&&K.navigationEndpoint,f=this.get("data.command.commandMetadata.webCommandMetadata.url"),H=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return d?d:K&&K.command&&K.command.modalEndpoint?K.command:f&&!H&&K.command?K.command:null},
computeServiceEndpoint_:function(K){var d=K&&K.serviceEndpoint,f=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return d?d:f&&K.command?K.command:null},
computeCommand_:function(K){return K&&K.command||null},
computeButtonIcon_:function(K){return K&&K.icon&&K.icon.iconType?_.Hv(K.icon.iconType):null},
computeButtonText_:function(K,d){return!d&&K&&K.text||null},
computeAccessibility_:function(K){return this.get("accessibilityData.accessibilityData",K)||K&&K.accessibility||(K&&K.text?{label:this.getSimpleString(K.text)}:null)},
computeTooltip_:function(K){return K?K.isDisabled&&K.disabledTooltip||K.tooltip||null:null},
computeButtonClass_:function(K){var d=K&&K.style?K.style.toLowerCase().replace(/_/g,"-")+" ":"";d+=K&&K.size?K.size.toLowerCase().replace(/_/g,"-")+" ":"";K.colorData&&K.colorData.basicColorPaletteData&&K.colorData.basicColorPaletteData.borderColor&&(d+="palette-with-border");return d.trim()}}];var O5={};var kvB;var wZf;var ZNt,esv=function(){return ZNt!==void 0?ZNt:ZNt=document.createElement("template")};
document.head.appendChild(esv().content);var pZs;var Kjs,dtL=function(){return Kjs!==void 0?Kjs:Kjs=document.createElement("template")};
document.head.appendChild(dtL().content);var f2v;var H_t,Dtf=function(){return H_t!==void 0?H_t:H_t=document.createElement("template")};
document.head.appendChild(Dtf().content);var V1t;var SrN=document.head,yWB=SrN.appendChild,nav;if(V1t===void 0){var i_k=document.createElement("template");_.Y(i_k,"\x3c!--css-build:shady--\x3e");i_k.content.insertBefore(Dtf().content.cloneNode(!0),i_k.content.firstChild);V1t=i_k}nav=V1t;yWB.call(SrN,nav.content);var cWv=document.head,uCN=cWv.appendChild,a28;if(f2v===void 0){var I24=document.createElement("template");_.Y(I24,"\x3c!--css-build:shady--\x3e");I24.content.insertBefore(dtL().content.cloneNode(!0),I24.content.firstChild);f2v=I24}a28=f2v;uCN.call(cWv,a28.content);var UtB=document.head,RIB=UtB.appendChild,Fjv;if(pZs===void 0){var zIs=document.createElement("template");_.Y(zIs,"\x3c!--css-build:shady--\x3e");zIs.content.insertBefore(esv().content.cloneNode(!0),zIs.content.firstChild);pZs=zIs}Fjv=pZs;RIB.call(UtB,Fjv.content);var XOk;_.Na("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");XOk=_.M("web_button_rework")&&_.lx("BUTTON_REWORK")||_.M("web_button_rework_with_live");_.IF=function(){return _.q.apply(this,arguments)||this};
_.O(_.IF,_.q);_.IF.prototype.created=function(){this.openPopupConfig=_.mD("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.IF.prototype.onYtNavigate_=function(K){var d=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(K.detail.endpoint);d&&(this.ytOpenPopupBehavior.openPopup(d),K.stopPropagation(),K.preventDefault())};
_.x$.Object.defineProperties(_.IF,{template:{configurable:!0,enumerable:!0,get:function(){if(wZf===void 0){var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
var d=K.content,f=d.insertBefore;kvB===void 0&&(kvB=document.createElement("template"));var H=kvB;f.call(d,H.content.cloneNode(!0),K.content.firstChild);wZf=K}K=wZf;return K}}});
_.IF.prototype.onYtNavigate_=_.IF.prototype.onYtNavigate_;_.x([_.l(_.Vr.YtOpenPopupBehavior),_.B("design:type",Object)],_.IF.prototype,"ytOpenPopupBehavior",void 0);_.x([_.l(_.sks.YtButtonBehavior),_.B("design:type",Object)],_.IF.prototype,"ytButtonBehavior",void 0);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],_.IF.prototype,"onYtNavigate_",null);
_.IF=_.x([_.N7({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:XOk})],_.IF);var va8;var M1k=_.M("web_button_rework")&&_.lx("BUTTON_REWORK")||_.M("web_button_rework_with_live"),UQ=function(){var K=_.q.apply(this,arguments)||this;K.isPressed=!1;K.forceIconButton=!1;K.forceIconOnly=!1;K.forceModernIconButton=!1;K.skipCommandHandling=!1;K.alignByText=!1;K.fitToVisibleBounds=!0;K.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};K.onTap=function(d){_.Zp(K.hostElement,"yt-service-request-sent-button-renderer",d)};
return K};
_.O(UQ,_.q);_.V=UQ.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.V.onClick=function(K){var d,f=this.disabled||((d=this.data)==null?void 0:d.isDisabled);d=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");f&&d&&K.stopPropagation()};
_.V.computeIcon=function(){var K,d,f=(K=this.data)==null?void 0:(d=K.icon)==null?void 0:d.iconType;if(f)return _.Hv(f)};
_.V.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.V.handleUpdateButtonAction=function(K){K=_.P(K,HO2);var d=_.P(K==null?void 0:K.updatedButton,_.tQ);if(this.data&&K&&d){var f=this.data;f.targetId&&K.targetId&&f.targetId===K.targetId&&(this.data=d)}};
_.x$.Object.defineProperties(UQ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var K=this;if(this.data){var d=LTS({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Zp(K.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Zp(K.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});d.alignByText=this.alignByText;return d}}}});
_.x$.Object.defineProperties(UQ,{template:{configurable:!0,enumerable:!0,get:function(){if(va8===void 0){var K=document.createElement("template");_.Y(K,'\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>');va8=K}K=va8;return K}}});
UQ.prototype.onClick=UQ.prototype.onClick;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],UQ.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],UQ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],UQ.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],UQ.prototype,"isPressed",void 0);
_.x([_.A(),_.B("design:type",Object)],UQ.prototype,"forceIconButton",void 0);_.x([_.A(),_.B("design:type",Object)],UQ.prototype,"forceIconOnly",void 0);_.x([_.A(),_.B("design:type",Object)],UQ.prototype,"forceModernIconButton",void 0);_.x([_.A(),_.B("design:type",Object)],UQ.prototype,"skipCommandHandling",void 0);_.x([_.A(),_.B("design:type",Object)],UQ.prototype,"alignByText",void 0);_.x([_.A(),_.B("design:type",Object)],UQ.prototype,"buttonTooltipPosition",void 0);
_.x([_.A(),_.B("design:type",Object)],UQ.prototype,"fitToVisibleBounds",void 0);_.x([_.A({computed:"computeTooltip(data)"}),_.B("design:type",Object)],UQ.prototype,"tooltip",void 0);_.x([_.A(),_.B("design:type",Object)],UQ.prototype,"overrides",void 0);_.x([_.A(),_.B("design:type",Boolean)],UQ.prototype,"disabled",void 0);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],UQ.prototype,"onClick",null);
_.x([_.W("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.B("design:type",Object),_.B("design:paramtypes",[])],UQ.prototype,"computedButtonShape",null);UQ=_.x([_.N7({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!M1k,cssBuildOptOut:!0}),_.N7({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!M1k,cssBuildOptOut:!0})],UQ);var P2J;var ga8;var RF=function(){var K=_.q.apply(this,arguments)||this;K.empty_=!0;K.loadTime=Infinity;K.pendingPaint=!1;K.hasChange_=!1;K.oldThumbnail_=null;K.oldDelayedSrc_="";K.objectURL_=null;return K};
_.O(RF,_.q);_.V=RF.prototype;_.V.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.V.ready=function(){var K=this.shouldShowPlaceholder_();_.pU(this.hostElement,"no-transition",!0);K&&this.hostElement.classList.add("with-placeholder")};
_.V.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.V.isThumbPreloaded_=function(K){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",K)};
_.V.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||O_2};
_.V.computeThumbnailSrc_=function(K){return K&&K.thumbnails?_.kA(K.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.V.computeAlt_=function(){var K=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&K||""};
_.V.thumbnailChanged_=function(){var K=_.y([this.thumbnail,this.oldThumbnail_]),d=K.next().value;K=K.next().value;this.oldThumbnail_=d;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(K=this.computeThumbnailSrc_(K),this.computeThumbnailSrc_(d)===K))return;_.M("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(d)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):d&&_.lx("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.jW(this,this.onReload_):_.jW(this,this.onShow_):this.resetImage_();d&&(this.hostElement.style.opacity=""+d.opacity)}};
_.V.delayedSrcChanged_=function(){var K=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===K||this.resetImage_()};
_.V.setSrc_=function(K){K?(_.E(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.E(this.hostElement).querySelector("#img").src=K):(_.E(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.V.resetImage_=function(){fQX(this.hostElement);this.empty_=!0;this.setSrc_(O_2);this.ytRendererBehavior.invalidate(!1)};
_.V.observePlaceholderColor_=function(){var K=this.thumbnail&&this.thumbnail.placeholderColor;K?this.hostElement.style.backgroundColor=_.E1(K):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.V.onLoad_=function(){_.E(this.hostElement).querySelector("#img").src&&_.E(this.hostElement).querySelector("#img").src!==O_2&&(db5(this.hostElement),this.notifyOnLoaded&&_.Zp(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.V.onError_=function(){var K=this;if(_.M("web_use_cache_for_image_fallback"))ijX(_.E(this.hostElement).querySelector("#img").src).then(function(d){K.objectURL_=_.MD(d).toString();K.setSrc_(K.objectURL_)}).catch(function(){_.M("kevlar_woffle_fallback_image")&&K.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.V.onPrescanVisible=function(){this.onShow_()};
_.V.onVisible=function(){if(_.M("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.V.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var K=this.computeSrc_();K!==_.E(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(K))}};
_.V.onReload_=function(){this.empty_=!1;var K=this.computeSrc_();K!==_.E(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(K))};
_.V.shouldShowPlaceholder_=function(){return _.M("kevlar_thumbnail_bg")};
RF.prototype.observePlaceholderColor_=RF.prototype.observePlaceholderColor_;RF.prototype.delayedSrcChanged_=RF.prototype.delayedSrcChanged_;RF.prototype.thumbnailChanged_=RF.prototype.thumbnailChanged_;_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],RF.prototype,"alt",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],RF.prototype,"ariaHidden",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],RF.prototype,"ariaLabel",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],RF.prototype,"hidden",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],RF.prototype,"id",void 0);_.x([_.l(_.lm.YtVisibilityBehavior),_.B("design:type",Object)],RF.prototype,"ytVisibilityBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",String)],RF.prototype,"delayedSrc",void 0);
_.x([_.A(),_.B("design:type",Object)],RF.prototype,"thumbnail",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],RF.prototype,"loaded",void 0);_.x([_.A(),_.B("design:type",Boolean)],RF.prototype,"notifyOnLoaded",void 0);_.x([_.A(),_.B("design:type",Number)],RF.prototype,"height",void 0);_.x([_.A(),_.B("design:type",Number)],RF.prototype,"width",void 0);_.x([_.A({value:function(){return"width"}}),
_.B("design:type",String)],RF.prototype,"dimension",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],RF.prototype,"fit",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],RF.prototype,"fitHeight",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],RF.prototype,"fitWidth",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],RF.prototype,"objectFit",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],RF.prototype,"objectPosition",void 0);_.x([_.A(),_.B("design:type",String)],RF.prototype,"preferredThumbnail",void 0);_.x([_.A({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.B("design:type",String)],RF.prototype,"alt_",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],RF.prototype,"sharedTooltipText",void 0);
_.x([_.A(),_.B("design:type",Boolean)],RF.prototype,"ftlEligible",void 0);_.x([_.A({value:void 0}),_.B("design:type",String)],RF.prototype,"observeHiddenOption",void 0);_.x([_.A({value:"observe_once"}),_.B("design:type",String)],RF.prototype,"observePrescanOption",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],RF.prototype,"roundedContainer",void 0);
_.x([_.an("thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RF.prototype,"thumbnailChanged_",null);_.x([_.an("delayedSrc"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RF.prototype,"delayedSrcChanged_",null);_.x([_.SP("thumbnail.placeholderColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RF.prototype,"observePlaceholderColor_",null);
RF=_.x([_.N7({is:"yt-img-shadow",disableElementRegistration:!0})],RF);var O_2=_.lx("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.eP()(RF,"yt-img-shadow",function(){if(ga8===void 0){var K=document.createElement("template");_.Y(K,'\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">');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;P2J===void 0&&(P2J=document.createElement("template"));var H=P2J;f.call(d,H.content.cloneNode(!0),K.content.firstChild);ga8=K}K=ga8;return K},{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 oDS;_.FD=new _.xn("SCREEN_MANAGER_TOKEN");oDS=new _.xn("LOG_INITIAL_SCREEN_TOKEN");_.MT=_.C8(function(K){function d(yO){return _.P(yO,_.XN)}
function f(){var yO=H().isTogglingDisabled||v()?h():!h();m(yO);r(!1);if(!H().isTogglingDisabled){var FX;(FX=n)==null||FX(!!yO)}var NJ;((NJ=S)==null?0:NJ())||_.f5(_.eq().resolve(_.FD),H().trackingParams);var $z;if(!yO||!d(H().defaultButtonViewModel)||($z=S)!=null&&$z()){var hN;!d(H().toggledButtonViewModel)||((hN=S)==null?0:hN())||_.f5(_.eq().resolve(_.FD),d(H().toggledButtonViewModel).trackingParams)}else _.f5(_.eq().resolve(_.FD),d(H().defaultButtonViewModel).trackingParams)}
var H=K.data,D=K.buttonShapeOverrides,S=K.disableExplicitClickLogging,n=K.onToggle,u=K.style,a=K.useOutlinedIcon,R=K.className,F=function(){var yO,FX;return h()?(yO=K.animatedTextPropsToggled)==null?void 0:yO.call(K):(FX=K.animatedTextPropsDefault)==null?void 0:FX.call(K)},z=_.zh(function(){return F()?Object.assign({},F(),{shouldAnimate:T()}):void 0},void 0,"ZKEa0b"),v=function(){var yO;
return((yO=fB())==null?void 0:yO.isToggled)!==void 0},g=_.y(_.am(function(){var yO,FX,NJ;
return v()?(yO=fB())==null?void 0:yO.isToggled:(NJ=D==null?void 0:(FX=D())==null?void 0:FX.toggled)!=null?NJ:H().isToggled})),N=g.next().value;
g=g.next().value;var h=N,m=g;g=_.y(_.am(function(){var yO,FX;return(yO=K.animatedTextPropsToggled)==null?void 0:(FX=yO.call(K))==null?void 0:FX.shouldAnimate}));
N=g.next().value;g=g.next().value;var T=N,r=g;N=_.y(_.cC(!1,void 0,"S11hid"));var J=N.next().value,L=N.next().value,fB=_.th(function(yO){var FX;a:{var NJ=H().entityKey,$z=H().toggledStateEntitySelectorType;if($z&&NJ)switch($z){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var hN;yO=(hN=_.DR(yO.entities,"sfvAudioItemCurrentlyPlayingEntity",NJ))!=null?hN:void 0;hN=(FX=yO==null?void 0:yO.sfvAudioItemPlaybackState)!=null?FX:void 0;if(hN==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){FX={isToggled:!0};
break a}if(hN){FX={isToggled:!1};break a}break;default:_.h3(new _.X4("Error: entitySelectorType defined but not matched in selector.",yO,$z))}FX=void 0}return FX}),w=function(){return Object.assign({},D==null?void 0:D(),{onToggle:f,
toggleable:!0,toggled:h(),focused:J()})};
return _.U("toggle-button-view-model",{"on:focusin":_.cp(function(){var yO=_.eq().resolve(_.Zd(_.eb));yO&&L(yO.isKeyBoardInUse());return!1}),
"on:focusout":_.cp(function(){L(!1);return!1}),
class:R},_.U(_.X,{cond:function(){return h()?d(H().toggledButtonViewModel):d(H().defaultButtonViewModel)},
then:function(yO){return _.U(_.oY,{data:yO,className:R,style:u,useOutlinedIcon:a,buttonOverrides:w,animatedTextProps:z})}}))},"v");
_.MT.idomCompat={callbacks:{onToggle:!0}};_.sP(_.C8(function(K){return _.U("yt-toggle-button-view-model",{class:function(){var d;return(d=K.scopingClassName)==null?void 0:d.call(K)}},_.U(_.MT,{data:function(){var d;
return(d=K.data)==null?void 0:d.call(K)},
buttonShapeOverrides:function(){var d;return(d=K.overrides)==null?void 0:d.call(K)},
animatedTextPropsDefault:function(){var d;return(d=K.animatedTextPropsDefault)==null?void 0:d.call(K)},
animatedTextPropsToggled:function(){var d;return(d=K.animatedTextPropsToggled)==null?void 0:d.call(K)},
disableExplicitClickLogging:function(){var d;return(d=K.disableExplicitClickLogging)==null?void 0:d.call(K)},
onToggle:function(d){var f;return(f=K.onToggle)==null?void 0:f.call(K,d)},
style:function(){var d;return(d=K.style)==null?void 0:d.call(K)},
useOutlinedIcon:function(){var d;return(d=K.useOutlinedIcon)==null?void 0:d.call(K)},
className:function(){var d;return(d=K.className)==null?void 0:d.call(K)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.rs,
buttonShapeOverrides:_.rs,overrides:_.rs,animatedTextPropsDefault:_.rs,animatedTextPropsToggled:_.rs,disableExplicitClickLogging:_.rs,onToggle:_.JJ,style:_.rs,useOutlinedIcon:_.rs,className:_.rs,scopingClassName:_.rs}});var z4=function(){return _.q.apply(this,arguments)||this};
_.O(z4,_.q);z4.prototype.onTap=function(K){K.stopPropagation();K=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.P9("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:K})):this.ytLiveChatReduxBehavior.dispatch(_.nt("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:K}))};
_.x$.Object.defineProperties(z4.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.engagementState)==null?void 0:K.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K=_.P(this.data.toggleButton,_.v9),d;if(Number(((d=this.likeCountState)==null?void 0:d.likeCountIfIndifferentNumber)||"0")===0){var f;d=((f=this.data.likeCountPlaceholder)==null?void 0:f.content)||""}else{var H,D,S;d=((H=this.likeCountState)==null?void 0:(D=H.likeCountIfIndifferent)==null?void 0:D.content)||((S=this.data.likeCountPlaceholder)==null?void 0:S.content)||""}var n,u;f=((n=this.likeCountState)==null?void 0:(u=
n.likeCountIfLiked)==null?void 0:u.content)||"1";n=_.P(K.toggledButtonViewModel,_.XN);return Object.assign({},K,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.P(K.defaultButtonViewModel,_.XN),{title:d})},toggledButtonViewModel:{buttonViewModel:Object.assign({},n,{title:f})}})}}}});
z4.prototype.onTap=z4.prototype.onTap;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],z4.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.$c),_.B("design:type",Object)],z4.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],z4.prototype,"data",void 0);
_.x([_.A({selectorArgs:["data.likeCountEntityKey"],selector:BYJ}),_.B("design:type",Object)],z4.prototype,"likeCountState",void 0);_.x([_.A({selectorArgs:["data.engagementStateKey"],selector:M5J}),_.B("design:type",Object)],z4.prototype,"engagementState",void 0);_.x([_.W("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],z4.prototype,"isLiked",null);
_.x([_.W("data","likeCountState","isLiked"),_.B("design:type",Object),_.B("design:paramtypes",[])],z4.prototype,"toggleButton",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],z4.prototype,"onTap",null);z4=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],z4);
_.C(z4,"yt-live-chat-like-button-view-model",function(){if(rtt===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;TAL===void 0&&(TAL=document.createElement("template"));var H=TAL;f.call(d,H.content.cloneNode(!0),K.content.firstChild);rtt=K}K=rtt;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var NDN;var Yr2;var XD=function(){return _.q.apply(this,arguments)||this};
_.O(XD,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],XD.prototype,"data",void 0);XD=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],XD);
_.C(XD,"yt-live-chat-paid-message-footer-renderer",function(){if(Yr2===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;NDN===void 0&&(NDN=document.createElement("template"));var H=NDN;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Yr2=K}K=Yr2;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var t1t;var oaJ;var $tB;var EaJ,hI9=function(){if(EaJ!==void 0)return EaJ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;$tB===void 0&&($tB=document.createElement("template"));var H=$tB;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return EaJ=K};var vU=function(){return _.q.apply(this,arguments)||this};
_.O(vU,_.q);vU.prototype.onTap=function(K){K.stopPropagation()};
_.x$.Object.defineProperties(vU.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K=_.P(this.data.replyButton,_.XN),d,f,H,D,S,n,u,a=Number(((d=this.replyCountState)==null?void 0:d.replyCountNumber)||"0")===0?(f=this.data)==null?void 0:(H=f.replyCountPlaceholder)==null?void 0:H.content:((D=this.replyCountState)==null?void 0:(S=D.replyCount)==null?void 0:S.content)||((n=this.data)==null?void 0:(u=n.replyCountPlaceholder)==null?void 0:u.content)||"",R;return Object.assign({},
K,{title:a,accessibilityText:(R=this.replyCountState)==null?void 0:R.replyButtonAccessibilityText})}}}});
_.x$.Object.defineProperties(vU,{template:{configurable:!0,enumerable:!0,get:function(){return hI9()}}});
vU.prototype.onTap=vU.prototype.onTap;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],vU.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.$c),_.B("design:type",Object)],vU.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vU.prototype,"data",void 0);
_.x([_.A({selectorArgs:["data.replyCountEntityKey"],selector:function(K,d){return _.DR(K.entities,"replyCountEntity",d)}}),
_.B("design:type",Object)],vU.prototype,"replyCountState",void 0);_.x([_.W("data","replyCountState"),_.B("design:type",Object),_.B("design:paramtypes",[])],vU.prototype,"buttonViewModel",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],vU.prototype,"onTap",null);vU=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],vU);
_.C(vU,"yt-live-chat-reply-button-view-model",function(){return hI9()},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var b_f;var mt9;var Mr=function(){var K=_.q.apply(this,arguments)||this;K.ariaLabel="";return K};
_.O(Mr,_.q);
Mr.prototype.dataChanged=function(){for(var K=(0,_.dj)(_.E(this.hostElement).querySelector("#image"));K.firstChild;)K.removeChild(K.firstChild);if(this.data)if(this.data.icon){var d=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(d.polymerController.icon="yt-sys-icons:shield-filled",d.polymerController.defaultToFilled=!0):d.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();K.appendChild(d)}else if(this.data.customThumbnail){d=document.createElement("img");
var f=_.sDN(this.data.customThumbnail.thumbnails,16);f?(d.src=f,K.appendChild(d),d.setAttribute("alt",this.hostElement.ariaLabel||"")):_.h3(new _.X4("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Mr.prototype.identity=function(K){return K};
Mr.prototype.computeType=function(K){return KZ(K||void 0)};
Mr.prototype.dataChanged=Mr.prototype.dataChanged;_.x([_.A(),_.B("design:type",Object)],Mr.prototype,"data",void 0);_.x([_.A({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.B("design:type",Object)],Mr.prototype,"ariaLabel",void 0);_.x([_.A({computed:"computeType(data)",reflectToAttribute:!0}),_.B("design:type",String)],Mr.prototype,"type",void 0);
_.x([_.A({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.B("design:type",String)],Mr.prototype,"sharedTooltipText",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("live_chat_enable_new_moderator_badge")}}),
_.B("design:type",Boolean)],Mr.prototype,"enableNewModeratorBadge",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mr.prototype,"dataChanged",null);Mr=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Mr);
_.C(Mr,"yt-live-chat-author-badge-renderer",function(){if(mt9===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;b_f===void 0&&(b_f=document.createElement("template"));var H=b_f;f.call(d,H.content.cloneNode(!0),K.content.firstChild);mt9=K}K=mt9;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var l2v;var Wj4;var PU=function(){return _.q.apply(this,arguments)||this};
_.O(PU,_.q);_.V=PU.prototype;_.V.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"}}}}};
_.V.computeBadgesInsideChip=function(K){return K?K.filter(function(d){return KZ(d.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.V.computeBadgesOutsideChip=function(K){return this.prependChatBadges||!K?[]:K.filter(function(d){d=KZ(d.liveChatAuthorBadgeRenderer);return d!=="verified"&&d!=="owner"})};
_.V.computeBadgesBeforeChip=function(K){return this.prependChatBadges&&K?K.filter(function(d){d=KZ(d.liveChatAuthorBadgeRenderer);return d!=="verified"&&d!=="owner"}):[]};
_.V.computeIsHighlighted=function(K,d){var f=!!iNo(K,"owner"),H=!!iNo(K,"verified");K=!!iNo(K,"moderator");return(f||H&&!K)&&!d};
_.V.computeAuthorType=function(K){return nXX(K)};
_.V.computeAuthorClass=function(K,d){return d?(K?K+" ":"")+"single-line":K};
_.V.onSeedColorChanged=function(){_.M("live_chat_author_name_color_usernames")||_.M("live_chat_seed_color_usernames")||_.M("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):_.M("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
PU.prototype.onSeedColorChanged=PU.prototype.onSeedColorChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],PU.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],PU.prototype,"authorName",void 0);_.x([_.A(),_.B("design:type",Array)],PU.prototype,"authorBadges",void 0);
_.x([_.A({computed:"computeAuthorType(authorBadges)"}),_.B("design:type",String)],PU.prototype,"authorType",void 0);_.x([_.A({computed:"computeAuthorClass(authorType, singleLine)"}),_.B("design:type",String)],PU.prototype,"authorClass",void 0);_.x([_.A({computed:"computeBadgesInsideChip(authorBadges)"}),_.B("design:type",Array)],PU.prototype,"badgesInsideChip",void 0);_.x([_.A({computed:"computeBadgesOutsideChip(authorBadges)"}),_.B("design:type",Array)],PU.prototype,"badgesOutsideChip",void 0);
_.x([_.A({computed:"computeBadgesBeforeChip(authorBadges)"}),_.B("design:type",Array)],PU.prototype,"badgesBeforeChip",void 0);_.x([_.A({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.B("design:type",Boolean)],PU.prototype,"isHighlighted",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],PU.prototype,"singleLine",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],PU.prototype,"disableHighlighting",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],PU.prototype,"dashboardMoneyFeed",void 0);_.x([_.A({value:_.M("live_chat_prepend_badges"),reflectToAttribute:!0}),_.B("design:type",Boolean)],PU.prototype,"prependChatBadges",void 0);_.x([_.A(),_.B("design:type",String)],PU.prototype,"authorNameColor",void 0);_.x([_.n8("#author-name"),_.B("design:type",HTMLDivElement)],PU.prototype,"username",void 0);
_.x([_.SP("authorNameColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PU.prototype,"onSeedColorChanged",null);PU=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],PU);
_.C(PU,"yt-live-chat-author-chip",function(){if(Wj4===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;l2v===void 0&&(l2v=document.createElement("template"));var H=l2v;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Wj4=K}K=Wj4;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var Gns;var AWH;var g8=function(){var K=_.q.apply(this,arguments)||this;K.debounceCommand=_.iR(function(d){K.ytComponentBehavior.resolveCommand(d)},1500);
return K};
_.O(g8,_.q);g8.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var K=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",d,f,H=this.isHearted?(d=this.data)==null?void 0:d.unheartCommand:(f=this.data)==null?void 0:f.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.P9("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:K}));(K=_.$A(H))&&this.debounceCommand(K)}};
_.x$.Object.defineProperties(g8.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var K,d;if(!((K=this.data)==null?0:(d=K.creatorThumbnail)==null?0:d.sources))return{};K={thumbnails:[]};d={};d.url=this.data.creatorThumbnail.sources[0].url;K.thumbnails.push(d);return K}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((f=this.engagementState)==null?void 0:f.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}}});
g8.prototype.onTap=g8.prototype.onTap;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],g8.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.$c),_.B("design:type",Object)],g8.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],g8.prototype,"data",void 0);
_.x([_.A({selectorArgs:["data.engagementStateKey"],selector:M5J}),_.B("design:type",Object)],g8.prototype,"engagementState",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],g8.prototype,"thumbnailDetails",null);_.x([_.W("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],g8.prototype,"isHearted",null);_.x([_.W("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],g8.prototype,"isEditable",null);
_.x([_.W("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],g8.prototype,"showCreatorView",null);_.x([_.W("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],g8.prototype,"showButton",null);_.x([_.W("data","isHearted"),_.B("design:type",String),_.B("design:paramtypes",[])],g8.prototype,"label",null);_.x([_.W("data","isHearted"),_.B("design:type",Object),_.B("design:paramtypes",[])],g8.prototype,"heartHoverText",null);
_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],g8.prototype,"onTap",null);g8=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],g8);
_.C(g8,"yt-live-chat-creator-heart-view-model",function(){if(AWH===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Gns===void 0&&(Gns=document.createElement("template"));var H=Gns;f.call(d,H.content.cloneNode(!0),K.content.firstChild);AWH=K}K=AWH;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var OQ=function(){};
_.O(OQ,eJ);OQ.prototype.JSC$10995_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Tw("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
OQ.prototype.getApiPaths=function(){return[]};
OQ.prototype.getExtension=function(){};
OQ.prototype.JSC$10995_buildRequest=function(){};var TDL={},rWN=(TDL.GET_DATASYNC_IDS=U1(OQ),TDL);var qrs,QRB,jR4,BJJ,Nr,Ljt,ekJ,xtB,C2L;qrs="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");QRB=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.md=function(K,d,f,H,D,S,n,u,a){this.endpointMap=K;this.networkManager=d;this.authService=f;this.responseProcessorMap=H;this.innertubeResponseStore=D;this.contextProcessors=S;this.asyncContextProcessors=n;this.localInnertubeRouter=u;this.requestSequencer=a;this.inflightRequests=new Map;K.signalEndpointMap||(K.signalEndpointMap={});K.signalEndpointMap=Object.assign({},rWN,K.signalEndpointMap)};
jR4=function(K,d,f,H,D,S,n,u,a){if(_.md.instance!==void 0){if(H=_.md.instance,K=[K!==H.endpointMap,d!==H.networkManager,f!==H.authService,D!==H.innertubeResponseStore,S!==H.contextProcessors,n!==H.asyncContextProcessors,u!==H.localInnertubeRouter],K.some(function(R){return R}))throw new _.X4("InnerTubeTransportService is already initialized",K);
}else _.md.instance=new _.md(K,d,f,H,D,S,n,u,a)};
_.Wp=function(K,d,f){var H=H===void 0?Fgk:H;var D=ekJ(K,d);return D?new _.ip(function(S,n){var u,a,R,F,z;return _.c(function(v){switch(v.nextAddress){case 1:return _.I(v,D,2);case 2:u=v.yieldResult;a=u.JSC$10995_getRequest(d,f,H);if(!a){n(new _.X4("Error: Failed to build request for command.",d));v.jumpTo(0);break}ls(a.input);F=((R=a.requestShell)==null?void 0:R.mode)==="cors"?"cors":void 0;if(K.authService.syncHeaders){z=C2L(a.config,F);v.jumpTo(4);break}return _.I(v,xtB(a.config,F),5);case 5:z=
v.yieldResult;case 4:S(Ljt(K,a,z)),_.iQ(v)}})}):_.vv(new _.X4("Error: No request builder found for command.",d))};
BJJ=function(K,d,f,H){var D=D===void 0?Fgk:D;var S,n,u,a,R,F,z,v,g,N,h,m,T,r,J,L,fB,w;return _.c(function(yO){switch(yO.nextAddress){case 1:S=keo(d,K.endpointMap);if(!S)throw new _.X4("Error: No streaming request builder found for command",d);n=S.JSC$10995_getRequest(d,f,D);if(!n)throw new _.X4("Failed to build YtRequest for streaming Command",d);if((u=K.localInnertubeRouter)==null||!u.shouldPreferLocalResponse(n.input,n.innerTubeRequest)){yO.jumpTo(2);break}return _.I(yO,K.localInnertubeRouter.localInnertubeResponse(n.input,
n.innerTubeRequest),3);case 3:return a=yO.yieldResult,R={},a.playerResponse&&(Nr(K,a.playerResponse,n),R.player=a.playerResponse,(F=H)==null||F(R,a)),a.watchNextResponse&&(Nr(K,a.watchNextResponse,n),R.content=a.watchNextResponse,(z=H)==null||z(R,a)),yO.return(R);case 2:g=((v=n.requestShell)==null?void 0:v.mode)==="cors"?"cors":void 0;if(K.authService.syncHeaders){N=C2L(n.config,g);yO.jumpTo(4);break}return _.I(yO,xtB(n.config,g),5);case 5:N=yO.yieldResult;case 4:return T=(m=(h=n.requestShell)==null?
void 0:h.headers)!=null?m:{},n.requestShell=Object.assign({},n.requestShell,{headers:Object.assign({},T,N)}),r=Object.assign({},n.requestShell),J=JSON.stringify(n.innerTubeRequest),n.requestShell.method==="POST"&&(r=Object.assign({},r,{body:J})),L=function(FX,NJ){Nr(K,NJ.playerResponse||NJ.watchNextResponse||NJ.reelItemWatchResponse||NJ.reelWatchSequenceResponse,n);H==null||H(FX,NJ)},fB={},_.I(yO,BDv(K.networkManager,n.input,r,L),6);
case 6:return fB=yO.yieldResult,((w=n.config)==null?0:w.responseTick)&&_.YJ(n.config.responseTick),yO.return(fB)}})};
_.Np=function(K,d,f,H,D){D=D===void 0?{authStrategy:{identity:Fgk}}:D;var S=S===void 0?!0:S;var n=function(){};
n=nSz(SAn(f));d.context||(d.context=_.MYG(H,S));return new _.ip(function(u){var a,R,F,z,v;return _.c(function(g){if(g.nextAddress==1)return a=sto(f),R=_.Ae(a),K.authService.syncHeaders?(F=C2L(D,R),g.jumpTo(2)):_.I(g,xtB(D,R),3);g.nextAddress!=2&&(F=g.yieldResult);z=kMG(sto(f));v={input:z,requestShell:Tw(z),innerTubeRequest:d,config:D};u(Ljt(K,v,F,n));_.iQ(g)})})};
Nr=function(K,d,f){var H;if(d&&!(d==null?0:(H=d.sequenceMetaData)==null?0:H.skipProcessing)&&K.responseProcessorMap){H=_.y(qrs);for(var D=H.next();!D.done;D=H.next())D=D.value,K.responseProcessorMap[D]&&K.responseProcessorMap[D].handleResponse(d,f)}};
Ljt=function(K,d,f,H){H=H===void 0?function(){}:H;
var D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J,L,fB,w,yO,FX,NJ,$z,hN,bo,xz,qJ,Y8,Iz,qs,af,i9,KE,c4,cx,Oj,io,g2,l9,rw;return _.c(function(t6){switch(t6.nextAddress){case 1:n=(D=d.config)==null?void 0:(S=D.storeStrategy)==null?void 0:S.storeKey;if(!(n&&K.innertubeResponseStore&&K.innertubeResponseStore.has(n))||((u=d.config)==null?0:(a=u.storeStrategy)==null?0:a.disableCache)){t6.jumpTo(2);break}return _.I(t6,K.innertubeResponseStore.get(n),3);case 3:if((R=t6.yieldResult)&&!R.isExpired())return t6.return(Promise.resolve(_.ed(R)));
case 2:if(!((F=d)==null?0:(z=F.innerTubeRequest)==null?0:z.context)){t6.jumpTo(4);break}v=d.innerTubeRequest.context;if(!(K.asyncContextProcessors&&K.asyncContextProcessors.length>0)){t6.jumpTo(5);break}g=[];N=_.y(K.asyncContextProcessors);for(h=N.next();!h.done;h=N.next())m=h.value,T=m.processContext(d),T.wrappedPromise_&&g.push(T.wrappedPromise_);if(!(g.length>0)){t6.jumpTo(5);break}return _.I(t6,Promise.all(g),5);case 5:r=_.y(K.contextProcessors||[]),J=r.next();case 8:if(J.done){t6.jumpTo(4);break}L=
J.value;return _.I(t6,L.processContext(v),9);case 9:J=r.next();t6.jumpTo(8);break;case 4:if((fB=K.localInnertubeRouter)==null||!fB.shouldPreferLocalResponse(d.input,d.innerTubeRequest)){t6.jumpTo(12);break}return _.I(t6,K.localInnertubeRouter.localInnertubeResponse(d.input,d.innerTubeRequest),13);case 13:return w=t6.yieldResult,Nr(K,w,d),t6.return(w);case 12:return(NJ=(FX=d.config)==null?void 0:FX.requestKey)&&K.inflightRequests.has(NJ)?yO=K.inflightRequests.get(NJ):($z=JSON.stringify(d.innerTubeRequest),
xz=(bo=(hN=d.requestShell)==null?void 0:hN.headers)!=null?bo:{},d.requestShell=Object.assign({},d.requestShell,{headers:Object.assign({},xz,f)}),qJ=Object.assign({},d.requestShell),d.requestShell.method==="POST"&&(qJ=Object.assign({},qJ,{body:$z})),((Y8=d.config)==null?0:Y8.requestTick)&&_.YJ(d.config.requestTick),Iz=function(){return K.networkManager.fetch(d.input,qJ,d.config)},yO=K.requestSequencer?JWs(K.requestSequencer,d,Iz):Iz(),NJ&&K.inflightRequests.set(NJ,yO)),_.I(t6,yO,14);
case 14:(qs=t6.yieldResult)&&_.M("web_streaming_player")&&Array.isArray(qs)&&(qs=qs[0].playerResponse);if(qs&&"error"in qs&&((af=qs)==null?0:(i9=af.error)==null?0:i9.details))for(KE=qs.error.details,c4=_.y(KE),cx=c4.next();!cx.done;cx=c4.next())Oj=cx.value,(io=Oj["@type"])&&QRB.indexOf(io)>-1&&(delete Oj["@type"],qs=Oj);NJ&&K.inflightRequests.has(NJ)&&K.inflightRequests.delete(NJ);((g2=d.config)==null?0:g2.responseTick)&&_.YJ(d.config.responseTick);if(qs||(l9=K.localInnertubeRouter)==null||!l9.canProvideFallbackResponse(d.input,
d.innerTubeRequest)){t6.jumpTo(15);break}return _.I(t6,K.localInnertubeRouter.localFallbackInnertubeResponse(d.input,d.innerTubeRequest),16);case 16:qs=t6.yieldResult;case 15:return Nr(K,qs,d),((rw=d.config)==null?0:rw.processorTick)&&_.YJ(d.config.processorTick),H(),t6.return(qs||void 0)}})};
_.lh=function(K,d){return s7z(d,K.endpointMap)};
ekJ=function(K,d){K=wb5(d,K.endpointMap);if(K!==void 0)return Promise.resolve(K)};
xtB=function(K,d){var f,H,D,S;return _.c(function(n){if(n.nextAddress==1){D=(f=K)==null?void 0:(H=f.authStrategy)==null?void 0:H.sessionIndex;var u=_.HG(gJn({sessionIndex:D}));return _.I(n,u,2)}S=n.yieldResult;return n.return(Promise.resolve(Object.assign({},ZuB(d),S)))})};
C2L=function(K,d){var f;K=K==null?void 0:(f=K.authStrategy)==null?void 0:f.sessionIndex;f=gJn({sessionIndex:K});return Object.assign({},ZuB(d),f)};var sRt,kn2,wO4,Z_f,eIJ,pOs,f8f,Hrv,oF,DSs,V0t,dSJ,Spv;sRt=0;kn2=/tone[1-5]/;wO4=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Z_f="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
eIJ=Number.MAX_SAFE_INTEGER;pOs=RegExp("\ufe0f","g");_.YL=function(K){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;K&&_.KKJ(this,K)};
_.KKJ=function(K,d){try{_.iH(d,{context:K,onSuccess:function(H,D){Array.isArray(D)?K.load(D):(H=new _.X4("Emoji manager JSON response was not an array!",{response:D}),_.$7(H))},
onError:function(H){H=new _.X4("Failed to retrieve emoji manager initial JSON data!",{url:d,statusCode:_.DU(H).toString()});_.h3(H)}})}catch(H){var f=new _.X4("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:d});
_.h3(f)}};
_.YL.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.YL.prototype.load=function(K,d){if(d)if(K.length)K=K.concat(d.emojis);else{this.emojis=d.emojis;this.emojiMap=d.emojiMap;this.emojiShortcutMap=d.emojiShortcutMap;this.emojiShortcutCharMap=dSJ(d);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=d.emojiRegex;return}this.emojis=[].concat(_.Me(new Set(this.emojis.concat(K))));this.hasInitializedShortcutCharMap=!1;K=Array(this.emojis.length);for(d=0;d<this.emojis.length;d++){var f=this.emojis[d];if(f.emojiId){this.emojiMap[f.emojiId]=f;this.emojiMap[f.emojiId].index=
d;for(var H=0;f.shortcuts&&H<f.shortcuts.length;H++)this.emojiShortcutMap[f.shortcuts[H].toLocaleLowerCase()]=f;K[d]=f.isCustomEmoji&&f.shortcuts?f.shortcuts[0]:f.emojiId}}K.sort(function(D,S){return S.length-D.length});
if(K.length)try{this.emojiRegex=new RegExp(K.join("|").replace("*","\\*"),"gi")}catch(D){this.emojiRegex=/$./}else this.emojiRegex=/$./};
f8f=function(K,d){d=_.y(d);for(var f=d.next();!f.done;f=d.next()){var H=f.value;if(H.emojiId&&K.emojiMap[H.emojiId]){f=Object.assign({},K.emojiMap[H.emojiId],H);K.emojiMap[H.emojiId]=f;var D=void 0;f.index&&((D=K.emojis[f.index])==null?void 0:D.emojiId)===H.emojiId&&(K.emojis[f.index]=f);H=void 0;if((H=f.shortcuts)==null?0:H.length)for(K.hasInitializedShortcutCharMap=!1,H=_.y(f.shortcuts),D=H.next();!D.done;D=H.next())K.emojiShortcutMap[D.value.toLocaleLowerCase()]=f}}};
Hrv=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return _.I(H,_.Rv.getInstance(),2);if(H.nextAddress!=3)return(d=H.yieldResult)?_.I(H,d.get("ytlc-emoji-pref"),3):H.return();(f=H.yieldResult)&&f8f(K,Object.keys(f).map(function(D){return{emojiId:D,stickyPrefId:f[D]}}).filter(function(D){return!!D.emojiId&&!!D.stickyPrefId}));
_.iQ(H)})};
_.tT=function(K,d,f){return(K=K.emojiMap[d])&&(!K.isLocked||f!==void 0&&f)?K:void 0};
oF=function(K,d,f){f=_.tT(K,d,f===void 0?!1:f);var H=d.match("\u200d");f&&K.skinTone!==0&&(K=(H==null?void 0:H.length)===1?_.tT(K,d.replace("\u200d",wO4[K.skinTone]+"\u200d")):_.tT(K,d+wO4[K.skinTone]))&&(f=K);return f};
DSs=function(K,d){var f=K.emojiMap[d];return(f==null?0:f.stickyPrefId)?K.emojiMap[f.stickyPrefId]:oF(K,d)};
_.yb=function(K,d){K=K.emojiShortcutMap[d.toLocaleLowerCase()];return!K||K.isLocked?null:K};
V0t=function(K,d,f){return dSJ(K,f===void 0?!1:f)[d]||{}};
dSJ=function(K,d){d=d===void 0?!1:d;if(!K.hasInitializedShortcutCharMap){K.hasInitializedShortcutCharMap=!0;for(var f=0;f<K.emojis.length;f++){var H=K.emojis[f];if(!(H.isLocked||d&&H.isCustomEmoji&&H.emojiId&&!K.pickerCustomEmojiIds.includes(H.emojiId)))for(var D=0;H.shortcuts&&D<H.shortcuts.length;D++){var S=H.shortcuts[D];S.startsWith(":_")&&H.isCustomEmoji&&(K.emojiShortcutCharMap[":_"]==null&&(K.emojiShortcutCharMap[":_"]=Object.create(null)),K.emojiShortcutCharMap[":_"][S]=H);if(!(S.length<3||
!H.isCustomEmoji&&kn2.test(S))){var n=S.substr(0,3).toLocaleLowerCase();K.emojiShortcutCharMap[n]==null&&(K.emojiShortcutCharMap[n]=Object.create(null));K.emojiShortcutCharMap[n][S]=H}}}}return K.emojiShortcutCharMap};
_.YL.prototype.createEmoji=function(K,d){d=d===void 0?!0:d;var f=document.createElement("img");K.isCustomEmoji||f.classList.add("small-emoji");f.classList.add("emoji");f.classList.add("yt-formatted-string");f.src=K.image?_.kA(K.image.thumbnails,this.emojiSize)||"":"";var H=void 0;K.image&&K.image.accessibility&&K.image.accessibility.accessibilityData&&(H=K.image.accessibility.accessibilityData.label);f.alt=H?H:(K.isCustomEmoji&&K.shortcuts?K.shortcuts[0]:K.emojiId)||"";K.isCustomEmoji&&(f.dataset.emojiId=
K.emojiId);_.kb&&(f.setAttribute("contenteditable","false"),f.setAttribute("unselectable","on"));d&&(K.shortcuts&&K.shortcuts.length&&f.setAttribute("shared-tooltip-text",K.shortcuts[0]),f.id="emoji-"+sRt++);return f};
_.YL.prototype.createDocumentFragment=function(K,d,f,H){d=d===void 0?!1:d;f=f===void 0?!0:f;H=H===void 0?!1:H;K=K.replace(pOs,"");for(var D=document.createDocumentFragment(),S=0,n,u=0;(n=this.emojiRegex.exec(K))!=null;){var a=_.tT(this,n[0])||_.yb(this,n[0]);!a||a.isCustomEmoji&&!d||(a=this.createEmoji(a,f),S!==n.index&&D.appendChild(document.createTextNode(K.substring(S,n.index))),D.appendChild(a),S=n.index+n[0].length,u++)}if(!H||u)return D.appendChild(document.createTextNode(K.substr(S))),D};
Spv=function(K,d,f){var H,D,S,n,u,a,R,F,z;return _.c(function(v){if(v.nextAddress==1){if(!d.emojiId||!K.emojiMap[d.emojiId])return v.return();H=Object.assign({},K.emojiMap[d.emojiId],{stickyPrefId:f});K.emojiMap[d.emojiId]=H;d.index&&((D=K.emojis[d.index])==null?void 0:D.emojiId)===d.emojiId&&(K.emojis[d.index]=H);if((S=d.shortcuts)==null?0:S.length)for(K.hasInitializedShortcutCharMap=!1,n=_.y(d.shortcuts),u=n.next();!u.done;u=n.next())a=u.value,K.emojiShortcutMap[a.toLocaleLowerCase()]=H;return _.I(v,
_.Rv.getInstance(),2)}if(v.nextAddress!=4)return(R=v.yieldResult)?_.I(v,R.get("ytlc-emoji-pref"),4):v.jumpTo(0);z=(F=v.yieldResult)!=null?F:{};z[d.emojiId]=f;return _.I(v,R.set("ytlc-emoji-pref",z,eIJ),0)})};
_.$L=new _.YL;var irt;_.EQ={};
irt={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.M("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:_.M("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 Ap(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 K=_.E(this.hostElement||this).querySelector("#inline-action-button-container");K&&K.setAttribute("aria-hidden","true");this.menuButton=_.E(this.hostElement).querySelector("#menu-button")},
attached:function(){var K=this.menuButton;K&&(K.addEventListener("focusin",_.Dm(this,this.onMenuButtonFocus_)),K.addEventListener("focusout",_.Dm(this,this.onMenuButtonBlur_)))},
detached:function(){var K=this.menuButton;K&&(K.removeEventListener("focusin",_.Dm(this,this.onMenuButtonFocus_)),K.removeEventListener("focusout",_.Dm(this,this.onMenuButtonBlur_)))},
identity:_.QO,truthy:function(K){return!!K},
computeTimestampString:function(K){return K?K.timestampText?this.getSimpleString(K.timestampText):this.TIME_FORMATTER.format(new Date(K.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(K){return _.M("live_chat_whole_message_clickable")&&K},
computeMenuVisible_:function(K,d){return K||d},
computeHasInlineActionButtons:function(K){if(!K)return!1;var d,f;return!((d=K.inlineActionButtons)==null||!d.length)||!((f=K.additionalInlineActionButtons)==null||!f.length)},
createDocumentFragmentFromString:function(K){var d=_.$L.createDocumentFragment.bind(_.$L),f;if((f=this.participantsManager)==null||!f.viewerRegex)return d(K);f=document.createDocumentFragment();for(var H=0,D;(D=this.participantsManager.viewerRegex.exec(K))!=null;){if(D.index>0){var S=":"+D[0]+":";if((_.tT(_.$L,S)||_.yb(_.$L,S))&&K.indexOf(S)===D.index-1)continue}f.appendChild(d(K.substring(H,D.index)));H=document.createElement("span");H.appendChild(d(D[0]));H.classList.add("mention");f.appendChild(H);
H=D.index+D[0].length}f.appendChild(d(K.substring(H)));return f},
createDocumentFragment:function(K){var d=document.createDocumentFragment();if(K.simpleText)return d.appendChild(this.createDocumentFragmentFromString(K.simpleText)),d;if(!K.runs)return d;for(var f=0;f<K.runs.length;f++){var H=K.runs[f];if(H.emoji)d.appendChild(_.$L.createEmoji(H.emoji));else if(H.text)if(H.navigationEndpoint){var D=document.createElement("a");D.classList.add("yt-simple-endpoint");jGu(D,H.navigationEndpoint);_.E(D).appendChild(this.createDocumentFragmentFromString(H.text));d.appendChild(D)}else d.appendChild(this.createDocumentFragmentFromString(H.text))}return d},
hasModerationOverlayVisible:function(){var K;return((K=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:K.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(K){K.composedPath().some(function(d){return(d=d instanceof Element?d:null)?d.tagName&&(d.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||d.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.M("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(K)},
colorFromDecimal:function(K){return LAu(K)},
markAsDeleted:function(K,d){this.set("data.deletedStateMessage",K);this.set("data.showOriginalContentMessage",d)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(K){if(this.data.contextMenuEndpoint){var d=_.eq().resolve(_.O1),f=this.data.contextMenuEndpoint,H;(H=_.md.instance)&&_.lh(H,f)?(d=yYL(d,f),H=_.Np(H,{},d)):H=_.neN(d,f);H.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);K&&K.stopPropagation()}},
handleGetContextMenuResponse_:function(K){var d=_.md.instance;d&&_.lh(d,{liveChatEndpoint:{}})||(K=K.response);K.liveChatItemContextMenuSupportedRenderers&&K.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(K.liveChatItemContextMenuSupportedRenderers.menuRenderer);K.actions&&_.ev(this.hostElement,"yt-live-chat-actions",[K.actions])},
handleGetContextMenuError:function(K){if(K instanceof Error||K instanceof Object||K instanceof String)var d=K;_.$7(new _.X4("Error encountered calling GetLiveChatItemContextMenu",d))},
showContextMenu_:function(K){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:K}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Zp(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Zp(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.EQ.YtLiveChatItemBehavior=[irt,_.hj.YtComponentBehavior,_.Vr.YtOpenPopupBehavior];_.hT=function(){};var cYs;var ukH;var a88;var I8v;var bF=function(){var K=_.q.apply(this,arguments)||this;K.active=!1;K.identity=_.QO;return K};
_.O(bF,_.q);bF.prototype.dataChanged=function(){this.active=!1};
bF.prototype.onClick=function(){_.Zp(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
bF.prototype.dataChanged=bF.prototype.dataChanged;_.x([_.A(),_.B("design:type",Object)],bF.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],bF.prototype,"active",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bF.prototype,"dataChanged",null);bF=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],bF);
_.C(bF,"yt-live-chat-text-input-field-suggestion",function(){if(I8v===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;a88===void 0&&(a88=document.createElement("template"));var H=a88;f.call(d,H.content.cloneNode(!0),K.content.firstChild);I8v=K}K=I8v;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});_.mZ=function(K,d,f){return CustomEvent.call(this,K,{detail:{value:d,path:f}})||this};
_.O(_.mZ,CustomEvent);_.lF=function(){var K=_.q.apply(this,arguments)||this;K.viewerName=null;K.actionMap={"yt-live-chat-actions":"onChatMessage_"};K.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];K.PARTICIPANT_TIME_USEC_=3E8;return K};
_.O(_.lF,_.q);_.V=_.lF.prototype;_.V.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.V.addParticipant=function(K){var d=_.PoX(this.participants,K,function(H,D){H=H[Object.keys(H)[0]];D=D[Object.keys(D)[0]];H=String(_.qQ(H.authorName)).toLowerCase();D=String(_.qQ(D.authorName)).toLowerCase();return H<D?-1:H==D?0:1}.bind(this));
if(d>=0){var f=this.participants[d];f[Object.keys(f)[0]].timestampUsec&&this.splice("participants",d,1,K)}else this.splice("participants",-d-1,0,K);K=K[Object.keys(K)[0]];d=_.qQ(K.authorName).toLocaleLowerCase();f=d.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(f)||(this.allParticipantsCharMap_[f]={});this.allParticipantsCharMap_[f][d]=K};
_.V.getAuthorsFromPrefix=function(K){return this.allParticipantsCharMap_.hasOwnProperty(K)?this.allParticipantsCharMap_[K]:null};
_.V.computeViewerRegex_=function(K){if(!K)return null;K=K.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var d=K.indexOf("@")===0&&_.M("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(d+K.replace(/ /g,"\\s*")+"|^"+K.replace(/ /g,"\\s*")+"$|^"+K.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+K.replace(/ /g,"\\s*")+"$|(?<=\\s)"+K.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.V.checkForStaleParticipants_=function(){var K=this;this.trimOldParticipants_();this.asyncHandle_&&XsJ(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.bL(function(){K.checkForStaleParticipants_()},3E4))};
_.V.onChatMessage_=function(K){var d=this,f=Date.now()*1E3;K.forEach(function(H){if(H=_.P(H,mOJ)){H=H.item;var D=Object.keys(H)[0];d.SUPPORTED_ITEM_TYPES_.indexOf(D)!=-1&&H[D].timestampUsec>=f-d.PARTICIPANT_TIME_USEC_&&d.addParticipant(H)}},this);
this.checkForStaleParticipants_()};
_.V.trimOldParticipants_=function(){for(var K=Date.now()*1E3,d=this.participants.length-1;d>=0;d--){var f=this.participants[d];f=f[Object.keys(f)[0]];f.timestampUsec&&f.timestampUsec<K-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",d,1)}};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],_.lF.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],_.lF.prototype,"viewerName",void 0);_.x([_.A({computed:"computeViewerRegex_(viewerName)"}),_.B("design:type",Object)],_.lF.prototype,"viewerRegex",void 0);_.x([_.A({value:function(){return[]},
notify:!0}),_.B("design:type",Array)],_.lF.prototype,"participants",void 0);_.lF=_.x([_.N7({is:"yt-live-chat-participants-manager",noInjection:!0})],_.lF);var USH=/.*([:@#].*?)$/,WU=/\u00a0/g,RSf=String.fromCharCode(160),FKf={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"},G4=function(){var K=_.q.apply(this,arguments)||this;K.disabled=!1;K.liveChatRichMessageInput=null;K.messageInput=null;K.isValidWithNoInputText=!1;K.suggestions=[];K.emojiManager=_.$L;K.inputMethodEditorActive=
!1;K.suggestionIndex=-1;K.JSC$11986_lastSuggestionRange=null;return K};
_.O(G4,_.q);_.V=G4.prototype;_.V.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.V.attached=function(){_.w7&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.V.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.V.dataChanged=function(){if(!this.ignoreColorMapping){var K=!1,d={},f;for(f in FKf)this.data&&this.data.hasOwnProperty(f)&&(d[FKf[f]]=this.colorFromDecimal(this.data[f]),K=!0);K&&_.f8(this.hostElement,d)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.V.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.V.colorFromDecimal=function(K){K=Math.floor(Number(K));return"rgba("+[K>>16&255,K>>8&255,K&255,(K>>24&255)/255].join()+")"};
_.V.preventDrag=function(K){K.dataTransfer&&(K.dataTransfer.dropEffect="none");K.preventDefault()};
_.V.preventResize=function(K){K.returnValue=!1};
_.V.onInputChange=function(){var K=this.characterCount,d=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&d&&d.remove();if(!d&&this.characterCount>this.maxCharacterLimit){var f=window.getSelection();if(f){var H=f.getRangeAt(0);f.removeAllRanges();f.addRange(H)}}if(f=this.getCurrentRange())H=this.calculateTextBeforeRange(f),this.completeEmojisInRange(f,H,!0)||this.updateSuggestions(f,H);H=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(H);
_.Zp(this.hostElement,"yt-live-chat-message-input-change",H);d&&this.characterCount===0&&d.remove();f&&f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>K):f&&!f.collapsed&&f.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(K=this.input.childNodes.length-1;K>=0;K--)this.input.childNodes[K].nodeName==="BR"&&this.input.childNodes[K].remove()};
_.V.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.V.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var K=this.getCurrentRange();K&&K.commonAncestorContainer.parentElement.id==="input"&&K.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.V.mergeOverflowText=function(K){if(K){var d=document.createRange();d.selectNodeContents(K);d=d.extractContents();this.input.insertBefore(d,K)}};
_.V.checkRangeAtEndOfInput=function(){var K=this.getCurrentRange();if(K){var d=_.E(this.hostElement).querySelector("#overflow-text"),f=document.createRange();d&&d.previousSibling?d.previousSibling instanceof HTMLImageElement?f.selectNode(d.previousSibling):f.selectNodeContents(d.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?f.selectNode(this.input.lastChild):f.selectNodeContents(this.input.lastChild));f.collapse(!1);return f.isPointInRange(K.startContainer,
K.startOffset)}return!1};
_.V.handleOverflowText=function(K){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var d=_.E(this.hostElement).querySelector("#overflow-text"),f=this.getCurrentRange();this.input.normalize();K=this.checkRangeAtEndOfInput()&&K;this.mergeOverflowText(d);for(var H,D=0,S=0,n,u=this.input.childNodes,a=0;a<u.length;a++){var R=u[a];R instanceof Text?(S+=R.textContent.length,S>this.maxCharacterLimit&&(H=R,D=this.maxCharacterLimit+R.textContent.length-S)):R instanceof HTMLImageElement&&
(H=void 0,S=R.dataset.emojiId&&((H=this.data)==null?0:H.emojiCharacterCount)?S+this.data.emojiCharacterCount:S+R.alt.length,H=this.input,D=a);if(S>this.maxCharacterLimit&&H){n=document.createRange();n.collapse(!1);d?(S=this.input.lastChild.previousSibling,S instanceof Text?n.setEnd(this.input.lastChild.previousSibling,S.textContent.length):S instanceof HTMLImageElement&&n.setEnd(this.input,this.input.childNodes.length-1)):n.selectNodeContents(this.input);n.setStart(H,D);break}}n&&(H=!1,f&&(K=n.isPointInRange(f.startContainer,
f.startOffset-1)),d||(d=document.createElement("span"),d.id="overflow-text",d.textContent="",d.setAttribute("contenteditable","true"),_.E(_.E(this.hostElement).querySelector("#input")).appendChild(d),H=!0),d&&(f=n.extractContents(),d.insertBefore(f,d.firstChild),K&&d.firstChild&&(f=document.createRange(),H?f.setStartAfter(d.lastChild):f.setStartAfter(d.firstChild),f.collapse(!0),d=window.getSelection(),d.removeAllRanges(),d.addRange(f))))}};
_.V.checkForDuplicateSpans=function(){for(var K=0;K<this.input.childNodes.length;K++){var d=this.input.childNodes[K];if(d.nodeName==="SPAN"){var f=document.createRange();f.selectNodeContents(d);f=f.extractContents();this.input.insertBefore(f,d);d.remove()}}this.handleOverflowText(!0)};
_.V.getCurrentRange=function(){var K=window.getSelection();return K&&K.rangeCount?K.getRangeAt(0).cloneRange():null};
_.V.getInputRange=function(){var K=this.getCurrentRange();if(K){for(var d=K.commonAncestorContainer,f=!1,H=_.E(this.hostElement).querySelector("#input");d;){if(d===H){f=!0;break}d=d.parentNode}f||(K=null)}K||(K=this.getRangeAtEnd());return K};
_.V.getRangeAtEnd=function(){var K=document.createRange(),d=_.E(this.hostElement).querySelector("#input").lastChild;!d||d.nodeName!=="#text"&&d.nodeName!=="SPAN"?(K.selectNodeContents(_.E(this.hostElement).querySelector("#input")),K.collapse(!1)):d.nodeName==="#text"?K.setStart(d,d.textContent.length):K.setStart(d,d.childNodes.length);return K};
_.V.getChatParticipantSuggestions=function(K,d,f,H){var D=_.M("live_chat_enable_handles_web_text_input_update");if(d)for(var S in d)if(S.indexOf(K)===0||D&&S.indexOf(f+K)===0){var n=d[S],u=_.qQ(n.authorName);H.push({suggestion:{author:!0,authorType:f,image:n.authorPhoto,alt:u,text:u}});if(H.length>=64)break}};
_.V.getSuggestions=function(K){var d=[],f=K.substring(0,3),H=V0t(_.$L,f,!0);if(H)for(var D in H)if(D.toLocaleLowerCase().indexOf(K)===0){var S=H[D];if(S&&S.emojiId){if(S=DSs(_.$L,S.emojiId)){var n=void 0,u=void 0,a=void 0,R=void 0,F=((n=S.image)==null?0:(u=n.accessibility)==null?0:(a=u.accessibilityData)==null?0:a.label)||S.isCustomEmoji?(R=S.shortcuts)==null?void 0:R[0]:S.emojiId;d.push({suggestion:{emoji:!0,image:S.image,alt:F,text:D,textToInsertWhenSelected:S.isCustomEmoji?D:F}})}if(d.length>=
64)break}}if(!this.participantsManager)return null;if(f.indexOf("@")===0||f.indexOf("#")===0)H=f.charAt(0),K=K.substring(1),D=_.M("live_chat_enable_handles_web_text_input_update"),f.indexOf("@")===0&&D&&(D=this.participantsManager.getAuthorsFromPrefix(f.substring(0,2)),this.getChatParticipantSuggestions(K,D,H,d)),f=f.substring(1),f=this.participantsManager.getAuthorsFromPrefix(f),this.getChatParticipantSuggestions(K,f,H,d);return d?d.sort(function(z,v){return v.suggestion.text<z.suggestion.text?-1:
v.suggestion.text===z.suggestion.text?0:1}):null};
_.V.insertSuggestion=function(K){var d=_.M("live_chat_enable_handles_web_text_input_update"),f=K.authorType;d=K.text.indexOf(f)===0&&d?K.text+RSf:f+K.text+RSf;K.emoji?this.insertTextAtRange(this.JSC$11986_lastSuggestionRange,K.textToInsertWhenSelected||""):K.author&&this.insertTextAtRange(this.JSC$11986_lastSuggestionRange,d)};
_.V.updateSuggestionsAtCaret=function(){var K=this.getCurrentRange();K&&this.updateSuggestions(K,this.calculateTextBeforeRange(K))};
_.V.offsetStartOfRangeBy=function(K,d){for(;d>0;)if(K.startOffset-d>=0){K.setStart(K.startContainer,K.startOffset-d);break}else{d=K.startContainer instanceof HTMLImageElement?d-K.startContainer.alt.length:d-K.startOffset;var f=K.startContainer.previousSibling;if(!f){K.setStart(K.startContainer,0);break}if(_.M("live_chat_require_space_for_autocomplete_emoji")){var H=void 0,D=void 0;K.setStart(f,((H=f)==null?void 0:(D=H.textContent)==null?void 0:D.length)||0)}else K.setStart(f,f.childNodes.length||
0)}};
_.V.updateSuggestions=function(K,d){var f=this;this.JSC$11986_lastSuggestionRange&&(this.JSC$11986_lastSuggestionRange.detach(),this.JSC$11986_lastSuggestionRange=null);if((d=USH.exec(d))&&d.length&&(d=d[d.length-1].toLocaleLowerCase(),d.length>2&&(this.offsetStartOfRangeBy(K,d.length),this.JSC$11986_lastSuggestionRange=K,(K=this.getSuggestions(d))&&K.length))){this.suggestions=K;_.jW(this,function(){_.E(f.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(K.length-1);return}this.dropdown.opened=!1};
_.V.completeEmojisInRange=function(K,d,f){var H=d.replace(/[\s\xa0]+$/,"");d=d.length-H.length;H=H.split(" ");H=H[H.length-1].trim().toLocaleLowerCase();var D=H.lastIndexOf(":");if(f&&!d&&D!==H.length-1)return!1;D!==-1&&(f=H.lastIndexOf(":",D-1),f!==-1&&(H=H.substring(f)));if((f=_.yb(_.$L,H))&&f.emojiId){f=DSs(_.$L,f.emojiId)||null;this.offsetStartOfRangeBy(K,H.length+d);var S,n,u,a;H=(((S=f)==null?0:S.isCustomEmoji)?(n=f)==null?void 0:(u=n.shortcuts)==null?void 0:u[0]:(a=f)==null?void 0:a.emojiId)||
"";d&&(H+=RSf);this.insertTextAtRange(K,H);this.dropdown.opened=!1;return!0}return!1};
_.V.onSuggestion=function(K){this.insertSuggestion(K.detail);this.dropdown.opened=!1};
_.V.onKeyPress=function(K){K.keyCode===13&&(K.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Zp(this.hostElement,"yt-live-chat-send-message"))};
_.V.completeEmojis=function(){var K=document.createRange(),d=_.E(this.hostElement).querySelector("#input").lastChild;d?K.setStart(d,d.childNodes.length):(K.selectNodeContents(_.E(this.hostElement).querySelector("#input")),K.collapse(!1));this.completeEmojisInRange(K,this.calculateTextBeforeRange(K),_.M("live_chat_require_space_for_autocomplete_emoji"))};
_.V.maybePreventTextFormatting=function(K){!_.KO||!K.ctrlKey&&!K.metaKey||K.keyCode!==66&&K.keyCode!==73||(K.stopImmediatePropagation(),K.preventDefault())};
_.V.onKeyDown=function(K){this.maybePreventTextFormatting(K);if(this.dropdown.opened)switch(K.keyCode){case 27:this.dropdown.opened=!1;K.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;K.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);K.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),K.preventDefault()}};
_.V.onKeyUp=function(K){switch(K.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.kb)this.onInputChange()};
_.V.changeSuggestionIndex=function(K){if(this.dropdown.opened){var d=_.E(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<d.children.length&&(d.children[this.suggestionIndex].active=!1);var f=this.suggestions.length;this.suggestionIndex=(K+f)%f;K=d.children[this.suggestionIndex];K.active=!0;d.scrollTop=K.offsetTop}};
_.V.onInputPaste=function(K){K.preventDefault();(K=K.clipboardData)&&K.types&&(K=K.getData("text/plain")||"",K=K.replace(/\n/g,""),this.insertText(K));(K=this.getCurrentRange())&&K.commonAncestorContainer.parentElement.id==="input"&&K.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.V.onFocus=function(){this._setFocused(!0)};
_.V.onBlur=function(){this._setFocused(!1)};
_.V.insertText=function(K){this.insertTextAtRange(this.getInputRange(),K)};
_.V.insertTextAtRange=function(K,d){if(K&&(K.collapsed||K.deleteContents(),d=_.$L.createDocumentFragment(d,!0,!1))){for(var f=_.y((d==null?void 0:d.childNodes)||[]),H=f.next();!H.done;H=f.next()){H=H.value;var D=void 0,S=void 0,n=void 0,u=void 0,a=void 0;(n=(D=window)==null?void 0:(S=D.ShadyCSS)==null?void 0:S.ScopingShim)==null||(a=(u=n).scopeNode)==null||a.call(u,H,this.hostElement.localName)}f=d.lastChild;K.insertNode(d);this.focused||this.input.focus();if(this.focused){K=K.cloneRange();K.selectNodeContents(f);
K.collapse(!1);if(d=window.getSelection())d.removeAllRanges(),d.addRange(K);K.commonAncestorContainer.parentElement.id==="input"&&K.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}K=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(K);_.Zp(this.hostElement,"yt-live-chat-message-input-change",K)}};
_.V.setLiveChatRichMessageInput=function(K){_.E(_.E(this.hostElement).querySelector("#input")).textContent="";if(K&&K.textSegments){for(var d=0;d<K.textSegments.length;d++){var f=K.textSegments[d];f.text?_.E(_.E(this.hostElement).querySelector("#input")).appendChild(_.$L.createDocumentFragment(f.text,!0,!1)):f.emojiId&&(f=_.tT(_.$L,f.emojiId))&&_.E(_.E(this.hostElement).querySelector("#input")).appendChild(_.$L.createEmoji(f,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.V.setText=function(K){this.setLiveChatRichMessageInput(K?{textSegments:[{text:K}]}:null)};
_.V.calculateTextBeforeRange=function(K){var d="",f=K.startContainer;if(f&&f instanceof Text){var H;d=((H=f.textContent)==null?void 0:H.substring(0,K.startOffset))||"";f=f.previousSibling}for(;f&&f instanceof Text;)d=f.textContent+d,f=f.previousSibling;return d.replace(WU," ")};
_.V.calculateLiveChatRichMessageInput=function(){for(var K=[],d="",f=_.E(_.E(this.hostElement).querySelector("#input")).childNodes,H=0;H<f.length;H++){var D=f[H];D instanceof Text?d+=D.textContent:D instanceof HTMLImageElement&&(D.dataset.emojiId?(d&&(K.push({text:d.replace(WU," ")}),d=""),K.push({emojiId:D.dataset.emojiId})):d+=D.alt)}d&&K.push({text:d.replace(WU," ")});if(f=_.E(this.hostElement).querySelector("#overflow-text")){d="";f=f.childNodes;for(H=0;H<f.length;H++)D=f[H],D instanceof Text?
d+=D.textContent:D instanceof HTMLImageElement&&(D.dataset.emojiId?(d&&(K.push({text:d.replace(WU," ")}),d=""),K.push({emojiId:D.dataset.emojiId})):d+=D.alt);d&&K.push({text:d.replace(WU," ")})}return{textSegments:K}};
_.V.computeCharacterCount=function(K){if(!K||!K.textSegments)return 0;for(var d=0,f=0;f<K.textSegments.length;f++){var H=K.textSegments[f];if(H.text)d+=H.text.length;else if(H.emojiId){var D=void 0;if((D=this.data)==null?0:D.emojiCharacterCount)d+=this.data.emojiCharacterCount;else{var S=D=void 0,n=void 0;d+=((S=_.tT(_.$L,(D=H)==null?void 0:D.emojiId))==null?void 0:(n=S.shortcuts)==null?void 0:n[0].length)||0}}}return d};
_.V.characterCountChanged=function(){_.Zp(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.V.focusedChanged=function(){this.hostElement.dispatchEvent(new _.mZ("focused-changed",this.focused))};
_.V.focus=function(){this.setFocus(!1)};
_.V.focusAtEnd=function(){this.setFocus(!0)};
_.V.setFocus=function(K){K=K?this.getRangeAtEnd():this.getInputRange();_.E(this.hostElement).querySelector("#input").focus();var d=window.getSelection();d&&(d.removeAllRanges(),d.addRange(K))};
_.V.insertEmoji=function(K){var d,f=((K==null?0:K.isCustomEmoji)?(d=K.shortcuts)==null?void 0:d[0]:K==null?void 0:K.emojiId)||"";this.insertText(f)};
_.V.computeText=function(K){if(!K||!K.textSegments)return"";for(var d="",f=0;f<K.textSegments.length;f++){var H=K.textSegments[f];if(H.text)d+=H.text;else if(H.emojiId){var D=void 0,S=void 0,n=void 0;d+=((S=_.tT(_.$L,(D=H)==null?void 0:D.emojiId))==null?void 0:(n=S.shortcuts)==null?void 0:n[0])||""}}return d};
_.V.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.x$.Object.defineProperties(G4.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.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}}});
G4.prototype.focusedChanged=G4.prototype.focusedChanged;G4.prototype.characterCountChanged=G4.prototype.characterCountChanged;G4.prototype.onSuggestion=G4.prototype.onSuggestion;G4.prototype.onMessageSet=G4.prototype.onMessageSet;G4.prototype.dataChanged=G4.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],G4.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],G4.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],G4.prototype,"disabled",void 0);_.x([_.W("disabled"),_.B("design:type",Number),_.B("design:paramtypes",[])],G4.prototype,"inputTabIndex",null);_.x([_.W("data.maxCharacterLimit"),_.A({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],G4.prototype,"maxCharacterLimit",null);
_.x([_.W("liveChatRichMessageInput"),_.A({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],G4.prototype,"characterCount",null);_.x([_.W("maxCharacterLimit, characterCount"),_.A({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],G4.prototype,"remainingCharacterCount",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],G4.prototype,"isChatMessageInput",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],G4.prototype,"inputExpanded",void 0);_.x([_.A({readOnly:!0,notify:!0}),_.B("design:type",Object)],G4.prototype,"liveChatRichMessageInput",void 0);_.x([_.A(),_.B("design:type",Object)],G4.prototype,"messageInput",void 0);_.x([_.A(),_.B("design:type",Boolean)],G4.prototype,"ignoreColorMapping",void 0);_.x([_.W("characterCount"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],G4.prototype,"hasText",null);
_.x([_.A(),_.B("design:type",Object)],G4.prototype,"isValidWithNoInputText",void 0);_.x([_.W("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.A(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],G4.prototype,"isInputValid",null);_.x([_.A({readOnly:!0,value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],G4.prototype,"focused",void 0);_.x([_.A(),_.B("design:type",Array)],G4.prototype,"suggestions",void 0);
_.x([_.A(),_.B("design:type",_.YL)],G4.prototype,"emojiManager",void 0);_.x([_.A(),_.B("design:type",_.lF)],G4.prototype,"participantsManager",void 0);_.x([_.A(),_.B("design:type",Boolean)],G4.prototype,"noUnderline",void 0);_.x([_.A(),_.B("design:type",Object)],G4.prototype,"inputMethodEditorActive",void 0);_.x([_.n8("#dropdown"),_.B("design:type",Object)],G4.prototype,"dropdown",void 0);_.x([_.n8("#input"),_.B("design:type",HTMLElement)],G4.prototype,"input",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G4.prototype,"dataChanged",null);_.x([_.SP("messageInput"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G4.prototype,"onMessageSet",null);_.x([_.VV("yt-live-chat-select-suggestion"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],G4.prototype,"onSuggestion",null);
_.x([_.SP("characterCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G4.prototype,"characterCountChanged",null);_.x([_.SP("focused"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G4.prototype,"focusedChanged",null);G4=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],G4);
_.zS8=_.C(G4,"yt-live-chat-text-input-field-renderer",function(){if(ukH===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;cYs===void 0&&(cYs=document.createElement("template"));var H=cYs;f.call(d,H.content.cloneNode(!0),K.content.firstChild);ukH=K}K=ukH;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var AT=function(){var K=_.q.apply(this,arguments)||this;K.buttonOverrides={style:"overlay",type:"filled"};K.allowAnimations=!1;K.modern=_.M("web_button_rework_with_live");K.noPadding=!1;return K};
_.O(AT,_.q);_.V=AT.prototype;_.V.shouldSupportInlineActionButtons=function(){return!0};
_.V.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"}}}}};
_.V.ready=function(){var K=document.querySelector("yt-live-chat-app");K&&K.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.V.attached=function(){this.allowAnimations=!1};
_.V.dataChanged=function(){if(this.data){var K={"--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)};_.f8(this.hostElement,K);this.allowAnimations=!0}};
_.V.messageChanged=function(){var K,d=(K=this.data)==null?void 0:K.message;K=_.E(_.E(this.hostElement).querySelector("#message"));K.textContent="";d&&K.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(d))};
_.V.computeShowOnlyHeader=function(K,d){return!K||K.pdgLikeButton||K.replyButton||K.buyFlowButton?!1:this.isEmpty(K,d)&&!K.footer};
_.V.computeShowFooterDivider=function(K,d,f){return K?!!K.footer&&!this.isEmpty(K,d)&&!f:!1};
_.V.computeIsUserEditable=function(K){return!!K.inputField};
_.V.computeHasHeartButton=function(K){return(K==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(K==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(K==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.V.computeNoveltyImage=function(K){if(K.headerOverlayImage&&K.headerOverlayImage.thumbnails.length){var d=K.headerOverlayImage.thumbnails[0],f,H;if((f=K.pdgPurchasedNoveltyLoggingDirectives)==null?0:(H=f.loggingDirectives)==null?0:H.trackingParams){var D,S;g9N((D=K.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(S=D.loggingDirectives)==null?void 0:S.trackingParams)}return d.width||0}return 0};
_.V.computeAuthorPhotoSize=function(K){return(K==null?0:K.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.V.inputFocus=function(){var K=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");K&&K.focus()};
_.V.inputInsertEmoji=function(K){var d=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");d&&d.insertEmoji(K)};
_.V.inputMessage=function(){var K=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),d;return K&&((d=this.data)==null?0:d.inputField)?(K.completeEmojis(),_.E5(K.liveChatRichMessageInput)):null};
_.V.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.V.isEmpty=function(K,d){return K?K.empty||!(K.message||K.inputField||d):!0};
_.V.onLowerBuyButtonClick=function(){var K,d=_.P((K=this.data)==null?void 0:K.buyButton,_.tQ);d&&d.trackingParams&&!JtO(d.command)&&(K=_.RG(d.trackingParams))&&(d=_.te())&&_.rN(d,K)};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.x$.Object.defineProperties(AT.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
AT.prototype.isDeletedChanged=AT.prototype.isDeletedChanged;AT.prototype.messageChanged=AT.prototype.messageChanged;AT.prototype.dataChanged=AT.prototype.dataChanged;_.x([_.l(fJt.YtPdgLiveChatItemBehavior),_.B("design:type",Object)],AT.prototype,"ytPdgLiveChatItemBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.$c),_.B("design:type",Object)],AT.prototype,"ytLiveChatReduxBehavior",void 0);
_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],AT.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],AT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],AT.prototype,"data",void 0);_.x([_.A({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:M5J}),_.B("design:type",Object)],AT.prototype,"engagementState",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.B("design:type",Boolean)],AT.prototype,"isUserEditable",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.B("design:type",Boolean)],AT.prototype,"hasHeartButton",void 0);_.x([_.A({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.B("design:type",Boolean)],AT.prototype,"showOnlyHeader",void 0);
_.x([_.A({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.B("design:type",Boolean)],AT.prototype,"showFooterDivider",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],AT.prototype,"allowAnimations",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],AT.prototype,"dashboardMoneyFeed",void 0);_.x([_.A({computed:"computeNoveltyImage(data)"}),_.B("design:type",Number)],AT.prototype,"noveltyWidth",void 0);
_.x([_.A({computed:"computeAuthorPhotoSize(data)"}),_.B("design:type",Number)],AT.prototype,"authorPhotoSize",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],AT.prototype,"modern",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],AT.prototype,"noPadding",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AT.prototype,"dataChanged",null);
_.x([_.SP("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AT.prototype,"messageChanged",null);_.x([_.W("data","dashboardMoneyFeed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],AT.prototype,"hideLowerBumper",null);_.x([_.SP("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AT.prototype,"isDeletedChanged",null);
AT=_.x([_.Q({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],AT);
_.C(AT,"yt-live-chat-paid-message-renderer",function(){if(oaJ===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;t1t===void 0&&(t1t=document.createElement("template"));var H=t1t;f.call(d,H.content.cloneNode(!0),K.content.firstChild);oaJ=K}K=oaJ;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var XHs;var ves;var T4=function(){var K=_.cP.apply(this,arguments)||this;K._noAccessors=!0;return K};
_.O(T4,_.cP);T4.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.mD("openPopupConfig")};
_.x([_.l(_.Vr.YtOpenPopupBehavior),_.B("design:type",Object)],T4.prototype,"ytOpenPopupBehavior",void 0);T4=_.x([_.uL()],T4);_.r8=[_.Vr.YtOpenPopupBehavior,T4.prototype];var M0L;var Ah=[_.is,Pf8,_.OI,_.cW,_.qu,_.miL,_.IM,_.qAJ,_.g7,zfN];_.M("web_watch_get_updated_metadata_response_processing")&&Ah.push(_.n5v);_.M("web_continuation_response_processing")&&Ah.push(_.$P);var d$5=new _.xn("RESPONSE_RECEIVED_COMMANDS"),IcN=new _.xn("RESPONSE_RECEIVED_COMMANDS");var SlG="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),VnJ=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],D1B=["GET_UNSEEN_NOTIFICATION_COUNT"];var qr=function(){var K=_.cP.apply(this,arguments)||this;K._noAccessors=!0;K.serviceEndpointHandlers=[];return K};
_.O(qr,_.cP);qr.prototype.created=function(){var K=this;this.endpointHandlerActionMap={"yt-service-request":function(d,f,H,D){var S;return HCz(K.hostElement,d,f,H,D,K.serviceEndpointHandlers,(S=K.onEntitiesUpdated)==null?void 0:S.bind(K))}}};
qr.prototype.attached=function(){_.qF(_.rU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
qr.prototype.detached=function(){_.QU(_.rU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
qr=_.x([_.uL()],qr);_.P6N=[qr.prototype];var geH,Or9=function(){return geH!==void 0?geH:geH=document.createElement("template")};
document.head.appendChild(Or9().content);var N6s;var Yps=document.head,t0N=Yps.appendChild,oeJ;if(N6s===void 0){var $Sf=document.createElement("template");_.Y($Sf,"\x3c!--css-build:shady--\x3e");$Sf.content.insertBefore(Or9().content.cloneNode(!0),$Sf.content.firstChild);N6s=$Sf}oeJ=N6s;t0N.call(Yps,oeJ.content);var Ee6,hSL=function(){return Ee6!==void 0?Ee6:Ee6=document.createElement("template")};
document.head.appendChild(hSL().content);var brB;var mSs=document.head,l8J=mSs.appendChild,WKs;if(brB===void 0){var GOk=document.createElement("template");_.Y(GOk,"\x3c!--css-build:shady--\x3e");GOk.content.insertBefore(hSL().content.cloneNode(!0),GOk.content.firstChild);brB=GOk}WKs=brB;l8J.call(mSs,WKs.content);var AY9;_.Na("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Na("sharingRendererButtons","buttonRenderer","ytd-button-renderer");AY9=_.M("web_button_rework")&&_.lx("BUTTON_REWORK")||_.M("web_button_rework_with_live");_.Qr=function(){var K=_.q.apply(this,arguments)||this;K.isPressed=!1;K.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return K};
_.O(_.Qr,_.q);_.V=_.Qr.prototype;_.V.created=function(){this.showTooltips=!0};
_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.onHintIdChanged=function(){var K=this,d,f,H=(d=this.ytButtonBehavior.data)==null?void 0:(f=d.hint)==null?void 0:f.hintRenderer;if(H&&H.hintId){d=_.p1(this.hostElement,"yt-get-opened-popups-action");d=(d&&d.length===1?d[0]:[]).length>0;var D=null;H.hintId!=="sponsor-pre-purchase"||d?H.hintId.startsWith("sponsor-post-purchase")&&!d?D=zkt("membership-manage"):H.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!d&&(D=zkt("membership-freebie-join")):D=zkt("membership-join");D&&_.oc.addLowPriorityJob(function(){for(var S=
_.y(D),n=S.next();!n.done;n=S.next())K.ytComponentBehavior.resolveCommand(n.value)})}};
_.V.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.V.onYtNavigate=function(K){var d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(K.detail.endpoint);d&&(K.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(d))};
_.V.onYtServiceRequestSent=function(K,d){this.handleServiceRequestActions(d);_.Zp(this.hostElement,"yt-service-request-sent-button-renderer")};
_.V.onServiceRequestCompleted=function(K,d){this.handleServiceRequestActions(d);_.Zp(this.hostElement,"yt-service-request-completed-button-renderer")};
_.V.updateButton=function(K){var d;if(K=(d=_.P(K,HO2))==null?void 0:d.updatedButton)this.ytButtonBehavior.data=_.P(K,_.tQ)};
_.V.handleUpdateButtonAction=function(K){var d=this.ytButtonBehavior.data;d.targetId&&K.updateButtonAction.targetId&&d.targetId===K.updateButtonAction.targetId&&this.updateButton(K)};
_.V.handleServiceRequestActions=function(K){if(K=K.actions)for(var d=0;d<K.length;d++)this.updateButton(K[d])};
_.x$.Object.defineProperties(_.Qr,{template:{configurable:!0,enumerable:!0,get:function(){if(M0L===void 0){var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);M0L=K}K=M0L;return K}}});
_.Qr.prototype.onServiceRequestCompleted=_.Qr.prototype.onServiceRequestCompleted;_.Qr.prototype.onYtServiceRequestSent=_.Qr.prototype.onYtServiceRequestSent;_.Qr.prototype.onYtNavigate=_.Qr.prototype.onYtNavigate;_.Qr.prototype.onPressedStateChanged=_.Qr.prototype.onPressedStateChanged;_.Qr.prototype.onHintIdChanged=_.Qr.prototype.onHintIdChanged;_.x([_.A(),_.B("design:type",Object)],_.Qr.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],_.Qr.prototype,"isPressed",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],_.Qr.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.sks.YtButtonBehavior),_.B("design:type",Object)],_.Qr.prototype,"ytButtonBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],_.Qr.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],_.Qr.prototype,"ytComponentBehavior",void 0);
_.x([_.l(aF.YtRenderButtonBehavior),_.B("design:type",Object)],_.Qr.prototype,"ytRenderButtonBehavior",void 0);_.x([_.SP("data.hint.hintRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],_.Qr.prototype,"onHintIdChanged",null);_.x([_.SP("isPressed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],_.Qr.prototype,"onPressedStateChanged",null);
_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],_.Qr.prototype,"onYtNavigate",null);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],_.Qr.prototype,"onYtServiceRequestSent",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],_.Qr.prototype,"onServiceRequestCompleted",null);_.Qr=_.x([_.Q({is:"ytd-button-renderer",disableElementRegistration:AY9})],_.Qr);var jY=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("web_button_rework_with_live");K.buttonOverrides={style:"overlay",type:"filled"};return K};
_.O(jY,_.q);_.V=jY.prototype;_.V.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"}}}}};
_.V.ready=function(){var K=document.querySelector("yt-live-chat-app");K&&K.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.V.dataChanged=function(){if(this.data&&this.data.sticker){var K=_.kA(this.data.sticker.thumbnails,this.stickerWidth);K||_.MnX(K).thenCatch(function(){_.h3(new _.X4("Failed to load Super Sticker with url",K))})}};
_.V.computeAuthorPhotoSize=function(K){return(K==null?0:K.isV2Style)?32:40};
_.V.computeIsV2Style=function(K){return(K==null?0:K.isV2Style)?!0:!1};
_.V.onStickerLoaded=function(K){var d,f,H;(d=_.Qm(K))==null||(f=d.parentNode)==null||(H=f.classList)==null||H.add("sticker-loaded")};
_.V.computeNoveltyImageWidth=function(K){var d,f;if(K==null?0:(d=K.headerOverlayImage)==null?0:(f=d.thumbnails)==null?0:f.length){d=K.headerOverlayImage.thumbnails[0];var H,D;if((H=K.pdgPurchasedNoveltyLoggingDirectives)==null?0:(D=H.loggingDirectives)==null?0:D.trackingParams){var S,n;g9N((S=K.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(n=S.loggingDirectives)==null?void 0:n.trackingParams)}return d.width||0}return 0};
_.V.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.V.updateStickerStyles=function(){var K=this.data;K&&(K={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(K.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(K.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(K.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(K.authorNameTextColor)},
_.f8(this.hostElement,K))};
_.V.onBuyButtonClick=function(){var K,d=_.P((K=this.data)==null?void 0:K.buyButton,_.tQ);d&&!JtO(d.command)&&this.ytRendererBehavior.logExplicitClick(d)};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.x$.Object.defineProperties(jY.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 K;return((K=this.data)==null?0:K.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
jY.prototype.updateStickerStyles=jY.prototype.updateStickerStyles;jY.prototype.isDeletedChanged=jY.prototype.isDeletedChanged;jY.prototype.onStickerLoaded=jY.prototype.onStickerLoaded;jY.prototype.dataChanged=jY.prototype.dataChanged;_.x([_.l(fJt.YtPdgLiveChatItemBehavior),_.B("design:type",Object)],jY.prototype,"ytPdgLiveChatItemBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],jY.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],jY.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],jY.prototype,"data",void 0);
_.x([_.A({computed:"computeAuthorPhotoSize(data)"}),_.B("design:type",Number)],jY.prototype,"authorPhotoSize",void 0);_.x([_.A(),_.B("design:type",Boolean)],jY.prototype,"isDeleted",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],jY.prototype,"dashboardMoneyFeed",void 0);_.x([_.A({computed:"computeNoveltyImageWidth(data)"}),_.B("design:type",Number)],jY.prototype,"noveltyWidth",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],jY.prototype,"modern",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.B("design:type",Boolean)],jY.prototype,"isV2Style",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jY.prototype,"dataChanged",null);_.x([_.VV("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],jY.prototype,"onStickerLoaded",null);
_.x([_.W("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],jY.prototype,"stickerWidth",null);_.x([_.W("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],jY.prototype,"stickerHeight",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jY.prototype,"hasHeartButton",null);_.x([_.W("data","dashboardMoneyFeed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jY.prototype,"hideLowerBumper",null);
_.x([_.SP("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jY.prototype,"isDeletedChanged",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jY.prototype,"updateStickerStyles",null);jY=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],jY);
_.C(jY,"yt-live-chat-paid-sticker-renderer",function(){if(ves===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;XHs===void 0&&(XHs=document.createElement("template"));var H=XHs;f.call(d,H.content.cloneNode(!0),K.content.firstChild);ves=K}K=ves;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var T6L;var rY2;var qpf,QDN=function(){return qpf!==void 0?qpf:qpf=document.createElement("template")};
document.head.appendChild(QDN().content);var jD8,C6t=function(){return jD8!==void 0?jD8:jD8=document.createElement("template")};
document.head.appendChild(C6t().content);var xSt;var LKt,B6H=function(){return LKt!==void 0?LKt:LKt=document.createElement("template")};
document.head.appendChild(B6H().content);var JYk;var sD6=document.head,kOs=sD6.appendChild,wHf;if(JYk===void 0){var ZrN=document.createElement("template");_.Y(ZrN,"\x3c!--css-build:shady--\x3e");ZrN.content.insertBefore(B6H().content.cloneNode(!0),ZrN.content.firstChild);JYk=ZrN}wHf=JYk;kOs.call(sD6,wHf.content);var eSv=document.head,pH2=eSv.appendChild,K02;if(xSt===void 0){var CL=document.createElement("template");_.Y(CL,"\x3c!--css-build:shady--\x3e");CL.content.insertBefore(C6t().content.cloneNode(!0),CL.content.firstChild);CL.content.insertBefore(QDN().content.cloneNode(!0),CL.content.firstChild);xSt=CL}K02=xSt;pH2.call(eSv,K02.content);var xL=function(){var K=_.cP.apply(this,arguments)||this;K.focusedIndex=0;K.verticalOffset=0;K.verticalAlign="top";K.dynamicAlign=!0;return K};
_.O(xL,_.cP);xL.prototype.emojiUrl=function(K){K=_.tT(this.emojiManager,K);if(!K)return"";var d;K=(d=K.image)==null?void 0:d.thumbnails;return _.kA(K,24)||""};
var dbN=function(K){var d;K.emojiVariants&&(d=K.data)!=null&&d.target&&_.jW(K,function(){K.set("verticalOffset",-1*K.hostElement.clientHeight);var f=_.E(K.hostElement).querySelector("img");f&&f.focus()})};
_.V=xL.prototype;_.V.onKeyboardEnter=function(){};
_.V.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.V.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.V.onKeyDown=function(K){switch(K.keyCode){case 13:this.onKeyboardEnter();K.preventDefault();break;case 40:this.changeFocus(1);K.preventDefault();break;case 38:this.changeFocus(-1);K.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.V.onYtEmojiSelect=function(K){var d=this,f,H,D,S,n,u,a,R;return _.c(function(F){if(F.nextAddress==1)return H=(f=d.data)==null?void 0:f.emoji,n=((D=H)==null?void 0:D.stickyPrefId)||((S=H)==null?void 0:S.emojiId),a=(u=K.detail)==null?void 0:u.emojiId,n&&a&&n!==a?_.I(F,(R=d.emojiManager)==null?void 0:Spv(R,H,a),2):F.return();_.ev(d.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[H,a]);_.iQ(F)})};
_.V.changeFocus=function(K){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+K+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(K=_.E(this.hostElement).querySelector("#variants"))&&K.children[this.focusedIndex].focus())};
_.x$.Object.defineProperties(xL.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
xL.prototype.onYtEmojiSelect=xL.prototype.onYtEmojiSelect;xL.prototype.onKeyDown=xL.prototype.onKeyDown;xL.prototype.onEmojiVariantsChanged=xL.prototype.onEmojiVariantsChanged;xL.prototype.onVerticalOffsetOrPositionTargetChanged=xL.prototype.onVerticalOffsetOrPositionTargetChanged;_.x([_.l(_.GH),_.B("design:type",Object)],xL.prototype,"ironOverlayBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],xL.prototype,"data",void 0);_.x([_.A(),_.B("design:type",_.YL)],xL.prototype,"emojiManager",void 0);
_.x([_.A(),_.B("design:type",Object)],xL.prototype,"emojiVariants",void 0);_.x([_.A(),_.B("design:type",Object)],xL.prototype,"focusedIndex",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],xL.prototype,"positionTarget",null);_.x([_.A({reflectToAttribute:!0}),_.W("verticalOffset","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xL.prototype,"isPositioned",null);_.x([_.A(),_.B("design:type",Object)],xL.prototype,"verticalOffset",void 0);
_.x([_.A(),_.B("design:type",Object)],xL.prototype,"verticalAlign",void 0);_.x([_.A(),_.B("design:type",Object)],xL.prototype,"dynamicAlign",void 0);_.x([_.SP("verticalOffset","positionTarget"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xL.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.x([_.SP("emojiVariants"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xL.prototype,"onEmojiVariantsChanged",null);
_.x([_.VV("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],xL.prototype,"onKeyDown",null);_.x([_.VV("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype",Promise)],xL.prototype,"onYtEmojiSelect",null);xL=_.x([_.uL()],xL);var fQH=[xL.prototype];var Hj6;var Dbv;var VGH=/medium-light|medium-dark|light|medium|dark/,Sd2=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,y0H=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),LL=function(){var K=_.q.apply(this,arguments)||this;K.userSelection={left:null,right:null};K.scrollAction="lock";K.isEmojiDraftInProgress=!1;return K};
_.O(LL,_.q);_.V=LL.prototype;_.V.onClick=function(K){K=_.Qm(K);K instanceof HTMLImageElement&&this.selectOrUpdateEmoji(K)};
_.V.selectOrUpdateEmoji=function(K){var d=K.getAttribute("selection");d&&(d==="default"?_.Zp(this.hostElement,"yt-emoji-select",_.tT(this.emojiManager,K.id)):d==="left"?this.userSelection=Object.assign({},this.userSelection,{left:K.src}):d==="right"?this.userSelection=Object.assign({},this.userSelection,{right:K.src}):d==="user"&&this.userSelection.left&&this.userSelection.right&&_.Zp(this.hostElement,"yt-emoji-select",_.tT(this.emojiManager,K.id)))};
_.V.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.V.onMultiSelectorThumbnailRowChanged=function(){var K,d,f;((K=this.data)==null?0:(d=K.emoji)==null?0:(f=d.multiSelectorThumbnailRow)==null?0:f.length)&&this.openSelector()};
_.V.getThumbnailFromEmojiRow=function(K){var d,f;return(K==null?void 0:(d=K.thumbnails)==null?void 0:(f=d[0])==null?void 0:f.url)||""};
_.V.getEmojiAltTextForPartialSelector=function(K){var d;return((d=this.getThumbnailFromEmojiRow(K).match(Sd2))==null?void 0:d[0])||""};
_.V.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.V.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.V.getRowSelection=function(K){return["left","right"][K]};
_.V.getIdFromComposedEmoji=function(K){return(K==null?void 0:K.emojiId)||""};
_.V.getEmojiFromPartialSelections=function(K,d){if(!K&&!d)return null;var f,H,D=(f=this.data)==null?void 0:(H=f.emoji)==null?void 0:H.variantIds;if(!D||!D.length)return null;var S;K=(S=K.match(VGH))==null?void 0:S[0];var n;d=(n=d.match(VGH))==null?void 0:n[0];if(!K||!d)return null;var u=y0H.get(K);n=y0H.get(d);if(u===n){n=Array.from(y0H.values()).filter(function(R){return R!==u}).join("|");
var a=new RegExp("^((?!("+n+")).)*"+u+"$")}else a=new RegExp(u+".*"+n);return(D=D.find(function(R){return a.test(R)}))&&_.tT(this.emojiManager,D)||null};
_.V.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var K,d=this.ytEmojiSelectorBehavior.emojiUrl(((K=this.data.emoji)==null?void 0:K.emojiId)||"");_.E(this.hostElement).querySelector('[selection="user"]').src.includes(d)||(this.isEmojiDraftInProgress=!0)}};
_.V.onDomChange=function(){dbN(this.ytEmojiSelectorBehavior)};
_.V.getFocusableElements=function(){return _.E(this.hostElement).querySelectorAll("img").filter(function(K){return K.getAttribute("role")==="option"})};
_.V.changeFocus=function(K){var d=this.getFocusableElements();d!=null&&d.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+K+d.length)%d.length,this.ytEmojiSelectorBehavior.focusedIndex<d.length&&(K=d[this.ytEmojiSelectorBehavior.focusedIndex])&&K.focus())};
_.V.onKeyboardEnter=function(){var K=this.getFocusableElements();K!=null&&K.length&&(K=K[this.ytEmojiSelectorBehavior.focusedIndex])&&K instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(K),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.x$.Object.defineProperties(LL.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var K=this,d,f,H;return this.emojiManager&&((d=this.data)==null?0:(f=d.emoji)==null?0:(H=f.variantIds)==null?0:H.length)?this.data.emoji.variantIds.map(function(D){return!!D&&_.tT(K.emojiManager,D)}).filter(function(D){return!!D}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var K,d=(K=this.userSelection)==null?void 0:K.left,f;K=(f=this.userSelection)==null?void 0:f.right;return d&&K?this.getEmojiFromPartialSelections(d,K):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.composedEmojiSelection)==null?0:K.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var d;K=(d=this.userSelection)==null?void 0:d.left;var f;d=(f=this.userSelection)==null?void 0:f.right;if(!K&&!d){var H;return this.ytEmojiSelectorBehavior.emojiUrl(((H=this.data.emoji)==null?void 0:H.emojiId)||"")}return K&&!d?K:!K&&d?d:""}}});
LL.prototype.onMultiSelectorThumbnailRowChanged=LL.prototype.onMultiSelectorThumbnailRowChanged;LL.prototype.onClick=LL.prototype.onClick;_.x([_.l(_.GH),_.B("design:type",Object)],LL.prototype,"ironOverlayBehavior",void 0);_.x([_.l(fQH),_.B("design:type",Object)],LL.prototype,"ytEmojiSelectorBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],LL.prototype,"data",void 0);_.x([_.A(),_.B("design:type",_.YL)],LL.prototype,"emojiManager",void 0);
_.x([_.A(),_.B("design:type",Object)],LL.prototype,"userSelection",void 0);_.x([_.A(),_.B("design:type",Object)],LL.prototype,"scrollAction",void 0);_.x([_.A(),_.B("design:type",Object)],LL.prototype,"isEmojiDraftInProgress",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],LL.prototype,"emojiVariants",null);_.x([_.W("data","userSelection"),_.B("design:type",Object),_.B("design:paramtypes",[])],LL.prototype,"composedEmojiSelection",null);
_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],LL.prototype,"onClick",null);_.x([_.SP("data.emoji.multiSelectorThumbnailRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LL.prototype,"onMultiSelectorThumbnailRowChanged",null);_.x([_.W("data","userSelection","composedEmojiSelection"),_.B("design:type",String),_.B("design:paramtypes",[])],LL.prototype,"draftEmojiUrl",null);
LL=_.x([_.N7({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],LL);
_.C(LL,"yt-emoji-multi-person-selector",function(){if(Dbv===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Hj6===void 0&&(Hj6=document.createElement("template"));var H=Hj6;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Dbv=K}K=Dbv;return K},{mode:2});var nTs;var ijf;var BU=function(){var K=_.q.apply(this,arguments)||this;K.tooltip_=null;return K};
_.O(BU,_.q);_.V=BU.prototype;_.V.dataChanged_=function(){var K;if((K=this.data)==null?0:K.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.E(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.dj)(this.tooltip_).textContent=this.data.tooltip};
_.V.computeTargetId=function(){var K;return((K=this.data)==null?void 0:K.targetId)||""};
_.V.computeId_=function(K){return K};
_.V.computeIcon_=function(K){return _.Hv(K)};
_.V.onTap_=function(){this.active=!this.active;_.Zp(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.V.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("active-changed",this.active))};
_.x$.Object.defineProperties(BU.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var K,d;if((K=this.data)==null?0:(d=K.icon)==null?0:d.iconType)return this.data.icon.iconType==="SUPER_STICKER";var f,H;return((f=this.data)==null?void 0:(H=f.icon)==null?void 0:H.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
BU.prototype.activeChangedForBinding=BU.prototype.activeChangedForBinding;BU.prototype.dataChanged_=BU.prototype.dataChanged_;_.x([_.l(_.E9.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],BU.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],BU.prototype,"data",void 0);_.x([_.A({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.B("design:type",String)],BU.prototype,"id",void 0);
_.x([_.A({computed:"computeTargetId(data.targetId)"}),_.B("design:type",String)],BU.prototype,"targetId",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],BU.prototype,"active",void 0);_.x([_.A({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.B("design:type",String)],BU.prototype,"icon",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BU.prototype,"dataChanged_",null);
_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],BU.prototype,"iconFilled",null);_.x([_.SP("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BU.prototype,"activeChangedForBinding",null);BU=_.x([_.N7({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],BU);
_.C(BU,"yt-emoji-picker-category-button-renderer",function(){if(ijf===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;nTs===void 0&&(nTs=document.createElement("template"));var H=nTs;f.call(d,H.content.cloneNode(!0),K.content.firstChild);ijf=K}K=ijf;return K},{mode:2});var c0k;var u12;var JT=function(){var K=_.q.apply(this,arguments)||this;K.ariaLabel=null;K.ariaActivedescendant=null;K.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};K.JSC$12051_ignoreNextFocus_=!1;K.longPressTimeoutId=-1;return K};
_.O(JT,_.q);_.V=JT.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.V.emojiChanged_=function(){this.changeFocus_(0,!1);for(var K=_.cv(),d=0;d<this.emoji.length;d++){var f={veType:88013,elementIndex:d},H=this.emoji[d];H.isCustomEmoji&&(H=document.querySelector(("#"+H.emojiId).replace("/","\\/")))&&(f=_.iz(K,f))&&(H.visualElement=f)}};
_.V.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.V.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.V.emojiSkinToneChanged_=function(K){this.skinTone=K};
_.V.dataChanged=function(){this.data&&this.data.emojiData&&f8f(this.emojiManager,this.data.emojiData)};
_.V.emojiUrl=function(K){K=this.getEmoji(K);if(!K)return"";var d;K=(d=K.image)==null?void 0:d.thumbnails;return _.kA(K,24)||""};
_.V.emojiAlt=function(K){var d=this.get("image.accessibility.accessibilityData.label",K);return d?d:K.isCustomEmoji?K.shortcuts[0]:K.emojiId};
_.V.emojiAriaLabel=function(K){return K.shortcuts?K.shortcuts[0]:""};
_.V.emojiAriaSelected=function(K,d,f){return K&&f==d?"true":"false"};
_.V.getEmoji=function(K){if(this.emojiManager)return this.shouldUseStickyPreferences?DSs(this.emojiManager,K):oF(this.emojiManager,K)};
_.V.computeId_=function(K){return K.categoryId||""};
_.V.computeEmoji=function(K){var d=this;return this.emojiManager?K.emojiIds?K.emojiIds.map(function(f){return f?_.tT(d.emojiManager,f):null}).filter(PkX):K.emojiData?K.emojiData.map(function(f){var H=!!f.emojiId&&_.tT(d.emojiManager,f.emojiId);
return H?Object.assign({},H,f):null}).filter(PkX):[]:[]};
_.V.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.V.computeAriaLabel_=function(K){return _.qQ(K)};
_.V.computeAriaActivedescendant_=function(K,d){return K&&K[d]?K[d].emojiId||"":""};
_.V.handleLongPressEmojiWithVariants=function(K,d){this.changeFocusToEmoji(K.emojiId,!1);this.openVariantSelector(K,d)};
_.V.onMouseDown=function(K){var d=this;this.hostElement!==document.activeElement&&(this.JSC$12051_ignoreNextFocus_=!0);if(K.button===0){var f=_.Qm(K);if(f instanceof HTMLImageElement){var H=_.E(this.hostElement).querySelector("#repeat").itemForElement(f);this.emojiContainsVariants(H)&&(this.longPressTimeoutId=setTimeout(function(){d.handleLongPressEmojiWithVariants(H,f)},500))}}};
_.V.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.V.onFocus=function(){this.JSC$12051_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12051_ignoreNextFocus_=!1};
_.V.onBlur_=function(){this.showFocus=!1};
_.V.emojiContainsVariants=function(K){return!!(K&&K.variantIds&&K.variantIds.length)};
_.V.onClick=function(K){clearTimeout(this.longPressTimeoutId);K=_.Qm(K);if(K instanceof HTMLImageElement){var d=K.id;this.changeFocusToEmoji(d,!1);var f=this.getEmoji(d),H;if(H=this.shouldUseStickyPreferences&&this.emojiContainsVariants(f)){var D;H=!((D=this.emojiManager.emojiMap[d])!=null&&D.stickyPrefId)}H?(D=_.E(this.hostElement).querySelector("#repeat").itemForElement(K),this.openVariantSelector(D,K)):_.Zp(this.hostElement,"yt-emoji-select",f)}};
_.V.isActiveEmojiWithVariants=function(K,d){return K&&d?d.stickyPrefId?K===d.stickyPrefId:K===d.emojiId:!1};
_.V.onCloseEmojiVariantSelector=function(K){this.activeEmojiWithVariantsId===K&&(this.activeEmojiWithVariantsId="")};
_.V.onMouseOver_=function(K){K=_.Qm(K);K instanceof HTMLImageElement&&_.Zp(this.hostElement,"yt-emoji-hover",_.tT(this.emojiManager,K.id))};
_.V.changeFocus_=function(K,d){this.focusedIndex=(this.focusedIndex+K+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(K=this.emoji[this.focusedIndex],d&&(this.showFocus=!0,_.E(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Zp(this.hostElement,"yt-emoji-hover",K)))};
_.V.changeFocusToEmoji=function(K,d){if(K){var f=this.emoji.findIndex(function(H){return H.emojiId===K});
f!==-1&&this.changeFocus_(f-this.focusedIndex,d)}};
_.V.onKeyDown_=function(K){switch(K.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var d=this.emoji[this.focusedIndex];if(d&&d.emojiId){if(this.emojiContainsVariants(d)){var f=_.E(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(d,f)}else _.Zp(this.hostElement,"yt-emoji-select",oF(this.emojiManager,d.emojiId)),this.hostElement.focus();K.preventDefault()}}break;case 40:this.changeFocus_(1,!0);K.preventDefault();break;case 38:this.changeFocus_(-1,!0),K.preventDefault()}};
_.V.onEmojiStickyPreferenceChanged=function(K,d){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&K.emojiId&&K.variantIds&&K.variantIds.includes(d)&&this.activeEmojiWithVariantsId!==d&&this.setStickyEmojiPreference(K.emojiId,d)};
_.V.openVariantSelector=function(K,d){this.activeEmojiWithVariantsId=K.stickyPrefId||K.emojiId||"";_.Zp(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:K,target:d})};
_.V.setStickyEmojiPreference=function(K,d){if(this.data){var f=this.emoji.findIndex(function(D){return D.emojiId===K});
if(f!==-1){var H=this.emoji[f];H.stickyPrefId=d;this.set("emoji."+f,Object.assign({},H));this.activeEmojiWithVariantsId=d}}};
JT.prototype.onKeyDown_=JT.prototype.onKeyDown_;JT.prototype.onMouseOver_=JT.prototype.onMouseOver_;JT.prototype.onClick=JT.prototype.onClick;JT.prototype.onBlur_=JT.prototype.onBlur_;JT.prototype.onFocus=JT.prototype.onFocus;JT.prototype.onMouseUp=JT.prototype.onMouseUp;JT.prototype.onMouseDown=JT.prototype.onMouseDown;JT.prototype.dataChanged=JT.prototype.dataChanged;JT.prototype.disableIncrementalLoadingChanged_=JT.prototype.disableIncrementalLoadingChanged_;JT.prototype.emojiManagerChanged_=JT.prototype.emojiManagerChanged_;
JT.prototype.emojiChanged_=JT.prototype.emojiChanged_;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],JT.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],JT.prototype,"data",void 0);_.x([_.A({computed:"computeId_(data)"}),_.B("design:type",String)],JT.prototype,"id",void 0);_.x([_.A({computed:"computeEmoji(data)"}),_.B("design:type",Array)],JT.prototype,"emoji",void 0);_.x([_.A(),_.B("design:type",Number)],JT.prototype,"skinTone",void 0);
_.x([_.A(),_.B("design:type",_.YL)],JT.prototype,"emojiManager",void 0);_.x([_.A(),_.B("design:type",Boolean)],JT.prototype,"disableIncrementalLoading",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],JT.prototype,"focusedIndex",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],JT.prototype,"showFocus",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.B("design:type",Object)],JT.prototype,"ariaLabel",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.B("design:type",Object)],JT.prototype,"ariaActivedescendant",void 0);_.x([_.A({value:60}),_.B("design:type",Number)],JT.prototype,"domRepeatTargetFramerate",void 0);_.x([_.A({value:1}),_.B("design:type",Number)],JT.prototype,"domRepeatInitialCount",void 0);_.x([_.A({value:""}),_.B("design:type",String)],JT.prototype,"activeEmojiWithVariantsId",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],JT.prototype,"shouldUseStickyPreferences",void 0);_.x([_.SP("emoji"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JT.prototype,"emojiChanged_",null);_.x([_.SP("emojiManager"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JT.prototype,"emojiManagerChanged_",null);
_.x([_.SP("disableIncrementalLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JT.prototype,"disableIncrementalLoadingChanged_",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JT.prototype,"dataChanged",null);_.x([_.VV("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],JT.prototype,"onMouseDown",null);
_.x([_.VV("mouseup"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JT.prototype,"onMouseUp",null);_.x([_.VV("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JT.prototype,"onFocus",null);_.x([_.VV("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JT.prototype,"onBlur_",null);
_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],JT.prototype,"onClick",null);_.x([_.VV("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],JT.prototype,"onMouseOver_",null);_.x([_.VV("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],JT.prototype,"onKeyDown_",null);
JT=_.x([_.N7({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],JT);
_.C(JT,"yt-emoji-picker-category-renderer",function(){if(u12===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;c0k===void 0&&(c0k=document.createElement("template"));var H=c0k;f.call(d,H.content.cloneNode(!0),K.content.firstChild);u12=K}K=u12;return K},{mode:2});var aQN;var IQL;var UbN;var Rgt;var sQ=function(){var K=_.q.apply(this,arguments)||this;K.ariaLabel=null;K.ariaActivedescendant=null;K.getFormattedStringRawText=_.qQ;K.JSC$12057_ignoreNextFocus_=!1;return K};
_.O(sQ,_.q);_.V=sQ.prototype;_.V.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")};
_.V.emojiUrl=function(K){var d,f;K=(d=oF(this.emojiManager,K,!0))==null?void 0:(f=d.image)==null?void 0:f.thumbnails;return _.kA(K,24)||""};
_.V.emojiAlt=function(K){var d=this.get("image.accessibility.accessibilityData.label",K);return d?d:K.isCustomEmoji?K.shortcuts[0]:K.emojiId};
_.V.emojiId=function(K){return"emoji"+K};
_.V.computeId_=function(K){return K.categoryId||""};
_.V.computeAriaActivedescendant_=function(K){return this.emoji&&K<this.emoji.length?this.emojiId(K):""};
_.V.emojiChanged_=function(){this.changeFocus_(0,!1);for(var K=_.cv(),d=0;d<this.emoji.length;d++){var f={veType:88013,elementIndex:d},H=this.emoji[d];H.isCustomEmoji&&(H=document.querySelector(("#"+H.emojiId).replace("/","\\/")))&&(f=_.iz(K,f))&&(H.visualElement=f)}};
_.V.computeEmoji_=function(K){var d=this;return this.emojiManager?K.emojiIds.map(function(f){return _.tT(d.emojiManager,f,!0)}).filter(gEY):[]};
_.V.titleOffsetChanged_=function(){var K=this.hostElement.getBoundingClientRect(),d=_.E(this.hostElement).querySelector("#title").getBoundingClientRect();K=Math.max(0,Math.min(this.titleOffset,K.height-d.height));_.E(this.hostElement).querySelector("#title").style.top=K+"px"};
_.V.onEmojiMouseOver_=function(K){_.Zp(this.hostElement,"yt-emoji-hover",K.model.item)};
_.V.onEmojiTap_=function(K){this.data.command&&(K=hvz(_.eq().resolve(_.Zd(A3)),this.data.command,K),_.Zp(this.hostElement,"yt-navigate",K))};
_.V.emojiAriaLabel=function(K){return K.shortcuts[0]};
_.V.emojiAriaSelected=function(K,d,f){return K&&f==d?"true":"false"};
_.V.changeFocus_=function(K,d){var f=this.emoji.length;this.focusedIndex=(this.focusedIndex+K+f)%f;K=this.emoji[this.focusedIndex];if(d){var H;(H=_.E(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||H.scrollIntoView(!1);_.Zp(this.hostElement,"yt-emoji-hover",K)}};
_.V.onMouseDown_=function(){this.JSC$12057_ignoreNextFocus_=!0};
_.V.onFocus_=function(){this.JSC$12057_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12057_ignoreNextFocus_=!1};
_.V.onBlur_=function(){this.showFocus=!1};
_.V.onKeyDown_=function(K){switch(K.keyCode){case 13:this.onEmojiTap_(K);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);K.preventDefault();break;case 38:this.changeFocus_(-1,!0),K.preventDefault()}};
sQ.prototype.onKeyDown_=sQ.prototype.onKeyDown_;sQ.prototype.onBlur_=sQ.prototype.onBlur_;sQ.prototype.onFocus_=sQ.prototype.onFocus_;sQ.prototype.onMouseDown_=sQ.prototype.onMouseDown_;sQ.prototype.onEmojiTap_=sQ.prototype.onEmojiTap_;sQ.prototype.titleOffsetChanged_=sQ.prototype.titleOffsetChanged_;sQ.prototype.emojiChanged_=sQ.prototype.emojiChanged_;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],sQ.prototype,"ytComponentBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],sQ.prototype,"data",void 0);_.x([_.A({computed:"computeId_(data)"}),_.B("design:type",String)],sQ.prototype,"id",void 0);_.x([_.A({computed:"computeEmoji_(data)"}),_.B("design:type",Array)],sQ.prototype,"emoji",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],sQ.prototype,"titleOffset",void 0);_.x([_.A({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.B("design:type",Object)],sQ.prototype,"ariaLabel",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.B("design:type",Object)],sQ.prototype,"ariaActivedescendant",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],sQ.prototype,"showFocus",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],sQ.prototype,"focusedIndex",void 0);_.x([_.A(),_.B("design:type",_.YL)],sQ.prototype,"emojiManager",void 0);
_.x([_.SP("emoji"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sQ.prototype,"emojiChanged_",null);_.x([_.SP("titleOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sQ.prototype,"titleOffsetChanged_",null);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],sQ.prototype,"onEmojiTap_",null);
_.x([_.VV("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sQ.prototype,"onMouseDown_",null);_.x([_.VV("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sQ.prototype,"onFocus_",null);_.x([_.VV("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sQ.prototype,"onBlur_",null);
_.x([_.VV("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],sQ.prototype,"onKeyDown_",null);sQ=_.x([_.N7({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],sQ);
_.C(sQ,"yt-emoji-picker-upsell-category-renderer",function(){if(Rgt===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;UbN===void 0&&(UbN=document.createElement("template"));var H=UbN;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Rgt=K}K=Rgt;return K},{mode:2});var F0B;var zg8;var kL=function(){var K=_.q.apply(this,arguments)||this;K.scrollAction="lock";K.verticalAlign="top";return K};
_.O(kL,_.q);_.V=kL.prototype;_.V.onClick=function(K){K=_.Qm(K);K instanceof HTMLImageElement&&_.Zp(this.hostElement,"yt-emoji-select",_.tT(this.emojiManager,K.id))};
_.V.openSelector=function(){this.ironOverlayBehavior.open()};
_.V.onDomChange=function(){dbN(this.ytEmojiSelectorBehavior)};
_.V.computeIsFamilySelector=function(K){var d;return(K==null?void 0:(d=K.emoji)==null?void 0:d.emojiId)==="\ud83d\udc6a"};
_.V.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var K=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];K&&K.emojiId&&(_.Zp(this.hostElement,"yt-emoji-select",_.tT(this.emojiManager,K.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.x$.Object.defineProperties(kL.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var K=this,d,f,H;return this.emojiManager&&((d=this.data)==null?0:(f=d.emoji)==null?0:(H=f.variantIds)==null?0:H.length)?this.data.emoji.variantIds.map(function(D){return!!D&&_.tT(K.emojiManager,D)}).filter(function(D){return!!D}):[]}}});
kL.prototype.onClick=kL.prototype.onClick;_.x([_.l(_.GH),_.B("design:type",Object)],kL.prototype,"ironOverlayBehavior",void 0);_.x([_.l(fQH),_.B("design:type",Object)],kL.prototype,"ytEmojiSelectorBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],kL.prototype,"data",void 0);_.x([_.A(),_.B("design:type",_.YL)],kL.prototype,"emojiManager",void 0);_.x([_.A(),_.B("design:type",Object)],kL.prototype,"scrollAction",void 0);_.x([_.A(),_.B("design:type",Object)],kL.prototype,"verticalAlign",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.B("design:type",Boolean)],kL.prototype,"isFamilySelector",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],kL.prototype,"emojiVariants",null);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],kL.prototype,"onClick",null);kL=_.x([_.N7({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],kL);
_.C(kL,"yt-emoji-variant-selector",function(){if(zg8===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;F0B===void 0&&(F0B=document.createElement("template"));var H=F0B;f.call(d,H.content.cloneNode(!0),K.content.firstChild);zg8=K}K=zg8;return K},{mode:2});var Xok=/:/g,vT4=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],w8=function(){var K=_.q.apply(this,arguments)||this;K.emojiVariantSelector=null;K.emojiMultiPersonSelector=null;K.identity=_.QO;K.lastAnimationTime_=0;K.animationStart_=null;K.animationEnd_=null;return K};
_.O(w8,_.q);_.V=w8.prototype;
_.V.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}}};
_.V.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.$L)};
_.V.attached=function(){_.kb&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&Hrv(this.emojiManager)};
_.V.dataChanged=function(){var K;if((K=this.data)==null?0:K.categories){K=this.emojiManager;var d=this.getCustomEmojiIds();K.pickerCustomEmojiIds=[].concat(_.Me(Z_f),_.Me(d))}};
_.V.getCustomEmojiIds=function(){var K,d=(K=this.data.categories)==null?void 0:K.find(function(S){var n;return((n=S.emojiPickerCategoryRenderer)==null?void 0:n.categoryId)&&vT4.includes(S.emojiPickerCategoryRenderer.categoryId)}),f;
K=(f=this.data.categories)==null?void 0:f.find(function(S){return S.emojiPickerUpsellCategoryRenderer});
var H,D;return[d==null?void 0:(H=d.emojiPickerCategoryRenderer)==null?void 0:H.emojiIds,K==null?void 0:(D=K.emojiPickerUpsellCategoryRenderer)==null?void 0:D.emojiIds].flat().filter(function(S){return!!S})};
_.V.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.V.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.V.updateCategoriesAndPlaceholderInternal=function(K,d){var f=this;K&&d&&(this.categories=K.categories||[],this.categoryButtons=K.categoryButtons||[],this.resetPlaceholder(),this.search="",_.bL(function(){f.updateButtons_()}))};
_.V.computeId_=function(K){return K.id||""};
_.V.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(K){return K.emojiPickerCategoryRenderer&&K.emojiPickerCategoryRenderer.emojiData}):!1};
_.V.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.V.onShowEmojiVariantSelector=function(K){var d=K.detail.emojiData;d.variantIds&&d.variantIds.length&&(d.multiSelectorThumbnailRow&&d.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:d,target:K.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:d,target:K.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.V.onIronOverlayClosed=function(K){var d=DSs(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");d&&K.composedPath&&(K.composedPath().includes(_.E(this.hostElement).querySelector("#emoji-variant-selector"))||K.composedPath().includes(_.E(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.ev(this.hostElement,"yt-close-emoji-variant-selector",[d.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.V.onEmojiVariantSelectorMouseup=function(K){var d=K.target.firstChild;this.variantSelectorOpened&&d&&_.bL(function(){d.noCancelOnOutsideClick=!1},100)};
_.V.onEmojiVariantSelectorMousedown=function(K){K=K.target.firstChild;this.variantSelectorOpened&&K&&(K.noCancelOnOutsideClick=!1)};
_.V.onSelectCategory_=function(K){var d=this.search!="";this.search="";for(var f=_.E(this.hostElement).querySelector("#categories").children,H=0;H<f.length;H++){var D=f[H];if(D.id==K.detail.categoryId){d?(_.E(this.hostElement).querySelector("#categories").scrollTop=D.offsetTop,this.updateButtons_()):(this.animationStart_=_.E(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=D.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.V.onEmojiHover_=function(K){this.placeholder=K.detail.shortcuts?K.detail.shortcuts[0]:""};
_.V.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.V.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.V.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.V.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.V.computeSearchCategory_=function(K){K=K.replace(Xok,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();K=K.split(" ");for(var d=[],f=this.emojiManager.emojis,H=0;H<f.length;H++){var D=f[H];if(D.searchTerms)for(var S=0;S<D.searchTerms.length;S++){for(var n=D.searchTerms[S].toLocaleLowerCase(),u=!1,a=0;a<K.length;a++)if(n.indexOf(K[a])!=-1){u=!0;break}if(u&&(!D.isCustomEmoji||!D.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(D.emojiId))){d.push(D.emojiId);
break}}}return{categoryId:-1,emojiIds:d}};
_.V.computeSearchEmptyMessage_=function(K,d){return K&&d&&d.emojiIds&&d.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.V.computeSearching_=function(K){return this.emojiManager&&K.replace(Xok,"").length>1};
_.V.computeSkinToneHidden=function(){var K;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((K=this.data)==null||!K.hideSkinTonePicker)};
_.V.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.V.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.V.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.V.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.V.selectSkinTone_=function(K){K=Number(K.target.getAttribute("tone"));this.set("emojiManager.skinTone",K);_.ev(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[K]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.V.skinToneChanged_=function(){_.E(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var K=_.E(this.hostElement).querySelector("#dropdown-content").children,d=0;d<K.length;d++)d===this.skinTone?K[d].setAttribute("selected",""):K[d].removeAttribute("selected")};
_.V.animateScroll_=function(K){this.lastAnimationTime_||(this.lastAnimationTime_=K);K-=this.lastAnimationTime_;K<200?(_.E(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*K/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.E(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.V.searchChanged_=function(){this.updateButtons_()};
_.V.updateButtons_=function(){var K=null;if(!this.search)for(var d=_.E(this.hostElement).querySelector("#categories").scrollTop,f=_.E(this.hostElement).querySelector("#categories").children,H=0;H<f.length;H++){var D=f[H];D.offsetTop<=d&&(K=D.id)}d=_.E(this.hostElement).querySelector("#category-buttons").children;for(f=0;f<d.length;f++)H=d[f],H.active=H.id===K};
w8.prototype.searchChanged_=w8.prototype.searchChanged_;w8.prototype.skinToneChanged_=w8.prototype.skinToneChanged_;w8.prototype.onEmojiHover_=w8.prototype.onEmojiHover_;w8.prototype.onSelectCategory_=w8.prototype.onSelectCategory_;w8.prototype.onShowEmojiVariantSelector=w8.prototype.onShowEmojiVariantSelector;w8.prototype.updateCategoriesAndPlaceholder_=w8.prototype.updateCategoriesAndPlaceholder_;w8.prototype.dataChanged=w8.prototype.dataChanged;
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],w8.prototype,"data",void 0);_.x([_.A({value:function(){return[]}}),
_.B("design:type",Array)],w8.prototype,"categories",void 0);_.x([_.A({value:function(){return[]}}),
_.B("design:type",Array)],w8.prototype,"categoryButtons",void 0);_.x([_.A({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.B("design:type",Boolean)],w8.prototype,"disableScroll",void 0);_.x([_.A({computed:"computeId_(data)",reflectToAttribute:!0}),_.B("design:type",String)],w8.prototype,"id",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],w8.prototype,"selected",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],w8.prototype,"disableIncrementalLoading",void 0);_.x([_.A(),_.B("design:type",String)],w8.prototype,"placeholder",void 0);_.x([_.A({value:""}),_.B("design:type",String)],w8.prototype,"search",void 0);_.x([_.A({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.B("design:type",Boolean)],w8.prototype,"searching",void 0);_.x([_.A({computed:"computeSearchCategory_(search)"}),_.B("design:type",Object)],w8.prototype,"searchCategory",void 0);
_.x([_.A({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.B("design:type",Object)],w8.prototype,"searchEmptyMessage",void 0);_.x([_.A({computed:"identity(emojiManager.skinTone)"}),_.B("design:type",Number)],w8.prototype,"skinTone",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],w8.prototype,"skinToneOpened",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],w8.prototype,"variantSelectorOpened",void 0);
_.x([_.A({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.B("design:type",Boolean)],w8.prototype,"skinToneHidden",void 0);_.x([_.A(),_.B("design:type",_.YL)],w8.prototype,"emojiManager",void 0);_.x([_.A(),_.B("design:type",Object)],w8.prototype,"emojiVariantSelector",void 0);_.x([_.A(),_.B("design:type",Object)],w8.prototype,"emojiMultiPersonSelector",void 0);
_.x([_.A({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.B("design:type",Boolean)],w8.prototype,"shouldUseStickyPreferences",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w8.prototype,"dataChanged",null);_.x([_.SP("data","selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w8.prototype,"updateCategoriesAndPlaceholder_",null);
_.x([_.VV("yt-show-emoji-variant-selector"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],w8.prototype,"onShowEmojiVariantSelector",null);_.x([_.VV("yt-emoji-picker-select-category"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],w8.prototype,"onSelectCategory_",null);_.x([_.VV("yt-emoji-hover"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],w8.prototype,"onEmojiHover_",null);
_.x([_.SP("skinTone"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w8.prototype,"skinToneChanged_",null);_.x([_.SP("search"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w8.prototype,"searchChanged_",null);w8=_.x([_.N7({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],w8);
_.C(w8,"yt-emoji-picker-renderer",function(){if(IQL===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;aQN===void 0&&(aQN=document.createElement("template"));var H=aQN;f.call(d,H.content.cloneNode(!0),K.content.firstChild);IQL=K}K=IQL;return K},{mode:2});var ZH=function(){var K=_.q.apply(this,arguments)||this;K.emojiManager=_.$L;K.isDarkTheme=document.documentElement.hasAttribute("dark");K.selectedIndex=1;K.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return K};
_.O(ZH,_.q);_.V=ZH.prototype;_.V.handleEmojiCustomizationVisible=function(K){this.emojiPickerRenderer.selected=K;this.selectedIndex=1;K?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.V.emojiCustomizationSetChanged=function(){var K;(K=this.data)!=null&&K.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.If(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.V.updateSaveButtonState=function(K){var d;(d=this.data)!=null&&d.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.nt("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:K}))};
_.V.emojiUrl=function(K){K=_.tT(this.emojiManager,K);if(!K)return"";var d;K=(d=K.image)==null?void 0:d.thumbnails;return _.kA(K,24)||""};
_.V.emojiAlt=function(K){var d=_.tT(this.emojiManager,K);if(!d)return K;var f,H,D,S=(d==null?void 0:(f=d.image)==null?void 0:(H=f.accessibility)==null?void 0:(D=H.accessibilityData)==null?void 0:D.label)||"";return S?S:d.isCustomEmoji?d.shortcuts[0]:d.emojiId||K};
_.V.emojiAriaLabel=function(K){var d,f;return((d=_.tT(this.emojiManager,K))==null?void 0:(f=d.shortcuts)==null?void 0:f[0])||K};
_.V.onEmojiClick=function(K){K.model.index!==0&&(this.selectedIndex=K.model.index)};
_.V.onEmojiSelect=function(K){K=K.detail;var d,f;((d=this.data)==null?0:d.emojiCustomizationSetEntityKey)&&((f=this.emojiCustomizationSet)==null?0:f.emojiId)&&K.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,K.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.nt("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,K.emojiId,this.selectedIndex)}))};
_.V.canEditEmoji=function(K,d,f){K=K.indexOf(d);return K===f||K===0||f===0?!1:!0};
_.V.getUpdatedEmojiIdList=function(K,d,f){var H=K.indexOf(d);K=[].concat(_.Me(K));H>=0&&(K[H]=K[f]);K[f]=d;return K};
_.x$.Object.defineProperties(ZH,{template:{configurable:!0,enumerable:!0,get:function(){if(rY2===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;T6L===void 0&&(T6L=document.createElement("template"));var H=T6L;f.call(d,H.content.cloneNode(!0),K.content.firstChild);rY2=K}K=rY2;return K}}});
ZH.prototype.onEmojiSelect=ZH.prototype.onEmojiSelect;_.x([_.l(_.$c),_.B("design:type",Object)],ZH.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ZH.prototype,"ytActionHandlerBehavior",void 0);_.x([_.n8("yt-emoji-picker-renderer"),_.B("design:type",Object)],ZH.prototype,"emojiPickerRenderer",void 0);
_.x([_.A({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(K,d){return _.DR(K.entities,"emojiCustomizationSetEntity",d)},
observer:"emojiCustomizationSetChanged"}),_.B("design:type",Object)],ZH.prototype,"emojiCustomizationSet",void 0);_.x([_.A(),_.B("design:type",Object)],ZH.prototype,"originalEmojiSet",void 0);_.x([_.A(),_.B("design:type",_.YL)],ZH.prototype,"emojiManager",void 0);_.x([_.A(),_.B("design:type",Object)],ZH.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ZH.prototype,"isDarkTheme",void 0);_.x([_.A(),_.B("design:type",Object)],ZH.prototype,"selectedIndex",void 0);
_.x([_.VV("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ZH.prototype,"onEmojiSelect",null);ZH=_.x([_.N7({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],ZH);var MGN;var P_6;var gTf;var Oj6;var eY=function(){var K=_.q.apply(this,arguments)||this;K.authorBadges=[];return K};
_.O(eY,_.q);_.V=eY.prototype;_.V.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.V.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]]"}}}}}};
_.V.dataChanged=function(){var K=nXX(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",K)};
_.V.updateMessage=function(){var K=this.data.message,d=_.E(_.E(this.hostElement).querySelector("#message"));d.textContent="";K&&d.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(K))};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.V.onShowOriginalClick=function(K){K.preventDefault();this.showOriginal=!0};
_.V.computeShowBar=function(K,d,f){return K&&d||f};
_.V.computeAuthorBadges=function(K){return K.authorBadges||[]};
_.V.computeAuthorIsOwner=function(K){return!!iNo(K.authorBadges,"owner")};
_.V.computeAuthorNameColor=function(K){var d;if(_.M("live_chat_author_name_color_usernames")&&(K==null?0:(d=K.authorName)==null?0:d.simpleText))return _.Rso(_.FAY(K.authorName.simpleText));if(_.M("live_chat_seed_color_usernames")&&(K==null?0:K.authorSeedColorArgb))return _.Rso(_.dl(K.authorSeedColorArgb));if(_.M("live_chat_colored_usernames"))return"#cc0000";var f;return _.M("live_chat_simple_color_usernames")&&(K==null?0:(f=K.authorName)==null?0:f.simpleText)&&(K==null?0:K.authorUsernameColorLight)&&
(K==null?0:K.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.dl(K.authorUsernameColorDark):_.dl(K.authorUsernameColorLight):""};
eY.prototype.updateMessage=eY.prototype.updateMessage;eY.prototype.dataChanged=eY.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],eY.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],eY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],eY.prototype,"data",void 0);
_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],eY.prototype,"showOriginal",void 0);_.x([_.A({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.B("design:type",Boolean)],eY.prototype,"isDimmed",void 0);_.x([_.A({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.B("design:type",Boolean)],eY.prototype,"showBar",void 0);
_.x([_.A({computed:"computeAuthorBadges(data)"}),_.B("design:type",Array)],eY.prototype,"authorBadges",void 0);_.x([_.A({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],eY.prototype,"authorIsOwner",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],eY.prototype,"inCollapsedBanner",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],eY.prototype,"inBanner",void 0);
_.x([_.A({value:_.M("live_chat_hide_avatars"),reflectToAttribute:!0}),_.B("design:type",Boolean)],eY.prototype,"avatarHidden",void 0);_.x([_.A({computed:"computeAuthorNameColor(data)"}),_.B("design:type",String)],eY.prototype,"authorNameColor",void 0);_.x([_.A(),_.B("design:type",_.lF)],eY.prototype,"participantsManager",void 0);_.x([_.A({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.B("design:type",Object)],eY.prototype,"filledButtonOverrides",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eY.prototype,"dataChanged",null);_.x([_.SP("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eY.prototype,"updateMessage",null);eY=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],eY);
_.C(eY,"yt-live-chat-text-message-renderer",function(){if(Oj6===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;gTf===void 0&&(gTf=document.createElement("template"));var H=gTf;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Oj6=K}K=Oj6;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var pL=function(){var K=_.q.apply(this,arguments)||this;K.tonalButtonOverrides={type:"tonal",style:"overlay"};return K};
_.O(pL,_.q);
pL.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]]"}}}}}};
pL.prototype.shouldSupportInlineActionButtons=function(){return!0};
pL.prototype.shouldSupportWholeItemClick=function(){return!0};
_.x$.Object.defineProperties(pL.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],pL.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],pL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],pL.prototype,"data",void 0);_.x([_.A(),_.B("design:type",_.lF)],pL.prototype,"participantsManager",void 0);
_.x([_.A(),_.B("design:type",Object)],pL.prototype,"tonalButtonOverrides",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data.infoDialogButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],pL.prototype,"hasInfoDialogButton",null);pL=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],pL);
_.C(pL,"yt-live-chat-auto-mod-message-renderer",function(){if(P_6===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;MGN===void 0&&(MGN=document.createElement("template"));var H=MGN;f.call(d,H.content.cloneNode(!0),K.content.firstChild);P_6=K}K=P_6;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var NrH;var Yds;var tGJ;var KD=function(){return _.q.apply(this,arguments)||this};
_.O(KD,_.q);_.x([_.A(),_.B("design:type",Object)],KD.prototype,"data",void 0);KD=_.x([_.Q({is:"ytd-factoid-renderer",disableElementRegistration:!0})],KD);
_.C(KD,"ytd-factoid-renderer",function(){if(tGJ!==void 0)return tGJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return tGJ=K},{mode:1});var da=function(){return _.q.apply(this,arguments)||this};
_.O(da,_.q);da.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.x([_.A(),_.B("design:type",Object)],da.prototype,"data",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],da.prototype,"ytRendererstamperBehavior",void 0);da=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],da);
_.C(da,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Yds===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;NrH===void 0&&(NrH=document.createElement("template"));var H=NrH;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Yds=K}K=Yds;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var oTv;var $b4;var fD=function(){return _.q.apply(this,arguments)||this};
_.O(fD,_.q);fD.prototype.ready=function(){var K=document.querySelector("yt-live-chat-app");K&&K.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Boolean)],fD.prototype,"menuFocused",void 0);_.x([_.A(),_.B("design:type",Object)],fD.prototype,"data",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],fD.prototype,"ytLiveChatItemBehavior",void 0);fD=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],fD);
_.C(fD,"yt-live-chat-donation-announcement-renderer",function(){if($b4===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;oTv===void 0&&(oTv=document.createElement("template"));var H=oTv;f.call(d,H.content.cloneNode(!0),K.content.firstChild);$b4=K}K=$b4;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var ETv;var hgN,bj2=function(){if(hgN!==void 0)return hgN;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;ETv===void 0&&(ETv=document.createElement("template"));var H=ETv;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return hgN=K};var Hw=function(){return _.q.apply(this,arguments)||this};
_.O(Hw,_.q);_.x$.Object.defineProperties(Hw,{template:{configurable:!0,enumerable:!0,get:function(){return bj2()}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Hw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Hw.prototype,"data",void 0);Hw=_.x([_.N7({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Hw);_.C(Hw,"yt-live-chat-empty-feed-view-model",function(){return bj2()},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var mbB;var lQH;var Dv=function(){return _.q.apply(this,arguments)||this};
_.O(Dv,_.q);Dv.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"}}}}}};
_.x$.Object.defineProperties(Dv.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var K,d;return{runs:[{text:(K=this.data)==null?void 0:(d=K.channelName)==null?void 0:d.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var K=[],d;if((d=this.data)==null||!d.channelBadges)return K;var f;d=_.y((f=this.data)==null?void 0:f.channelBadges);for(f=d.next();!f.done;f=d.next()){f=_.P(f.value,xO6);var H=void 0,D=void 0;if((H=f)==null?0:(D=H.badgeImage)==null?0:D.sources)H=void 0,D={liveChatAuthorBadgeRenderer:{tooltip:f.tooltip,accessibility:{accessibilityData:{label:(H=_.P(f.rendererContext,_.uq))==null?void 0:H.label}}}},f.badgeImage.sources[0].clientResource?D.liveChatAuthorBadgeRenderer.icon=
{iconType:f.badgeImage.sources[0].clientResource.imageName}:D.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:f.badgeImage.sources},K.push(D)}return K}}});
_.x([_.A(),_.B("design:type",Object)],Dv.prototype,"data",void 0);_.x([_.W("data.channelName"),_.B("design:type",Object),_.B("design:paramtypes",[])],Dv.prototype,"channelName",null);_.x([_.W("data.channelBadges"),_.B("design:type",Array),_.B("design:paramtypes",[])],Dv.prototype,"channelBadges",null);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);
Dv=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Dv);
_.C(Dv,"yt-live-chat-identity-view-model",function(){if(lQH===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;mbB===void 0&&(mbB=document.createElement("template"));var H=mbB;f.call(d,H.content.cloneNode(!0),K.content.firstChild);lQH=K}K=lQH;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var W0L;var GJs;var A0v;var Trs;var VA=function(){var K=_.q.apply(this,arguments)||this;K.hidden=!1;K.supportsInlineActionButtons=!0;return K};
_.O(VA,_.q);VA.prototype.ready=function(){var K;((K=document.querySelector("yt-live-chat-app"))==null?0:K.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
VA.prototype.dataChanged=function(K){var d=(0,_.dj)(_.E(this.hostElement).querySelector("#detail-text"));d.textContent="";(K==null?0:K.detailText)&&d.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(K.detailText))};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],VA.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A({observer:"dataChanged"}),_.B("design:type",Object)],VA.prototype,"data",void 0);
_.x([_.A({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.B("design:type",Object)],VA.prototype,"hidden",void 0);VA=_.x([_.Q({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],VA);
_.C(VA,"yt-live-chat-legacy-paid-message-renderer",function(){if(Trs===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;A0v===void 0&&(A0v=document.createElement("template"));var H=A0v;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Trs=K}K=Trs;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var r08;var qdf;var Q$8={},S_=function(){return _.cP.apply(this,arguments)||this};
_.O(S_,_.cP);S_.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
S_.prototype.onLiveChatMembershipItemBehaviorClick=S_.prototype.onLiveChatMembershipItemBehaviorClick;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],S_.prototype,"data",void 0);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],S_.prototype,"onLiveChatMembershipItemBehaviorClick",null);S_=_.x([_.uL()],S_);
Q$8.YtLiveChatMembershipItemBehavior=[S_.prototype,_.p.YtRendererBehavior];var yA=function(){var K=_.q.apply(this,arguments)||this;K.supportsInlineActionButtons=!0;K.hasPrimaryHeaderText=!1;K.showOnlyHeader=!1;K.authorBadges=[];K.modern=_.M("web_button_rework_with_live");K.buttonOverrides={style:"overlay",type:"filled"};return K};
_.O(yA,_.q);_.V=yA.prototype;_.V.shouldSupportInlineActionButtons=function(){return!0};
_.V.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.V.ready=function(){var K=document.querySelector("yt-live-chat-app");K&&K.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.V.messageChanged=function(){var K=this.data.message,d=(0,_.dj)(_.E(this.hostElement).querySelector("#message"));d.textContent="";K&&d.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(K))};
_.V.computeHasPrimaryHeaderText=function(K){return!(!K||!K.headerPrimaryText)};
_.V.computeShowOnlyHeader=function(K,d){return this.isMessageEmpty(K,d)};
_.V.computeAuthorBadges=function(K){return K.authorBadges||[]};
_.V.isMessageEmpty=function(K,d){return!K||K.empty?!0:!K.message&&!K.inputField&&!d};
_.V.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.V.getInputElement=function(){return _.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.V.inputFocus=function(){var K=this.getInputElement();K&&K.focus()};
_.V.inputInsertEmoji=function(K){var d=this.getInputElement();d&&d.insertEmoji(K)};
_.V.inputMessage=function(){var K=this.getInputElement();return K&&this.data.inputField?(K.completeEmojis(),_.E5(K.liveChatRichMessageInput)):null};
_.V.onFooterButtonClick=function(){this.data.footerButton&&_.Zp(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.V.shouldSupportWholeItemClick=function(){return!0};
yA.prototype.isDeletedChanged=yA.prototype.isDeletedChanged;yA.prototype.messageChanged=yA.prototype.messageChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],yA.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.l(Q$8.YtLiveChatMembershipItemBehavior),_.B("design:type",Object)],yA.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],yA.prototype,"data",void 0);_.x([_.A({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.B("design:type",Object)],yA.prototype,"hasPrimaryHeaderText",void 0);_.x([_.A({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.B("design:type",Object)],yA.prototype,"showOnlyHeader",void 0);
_.x([_.A({computed:"computeAuthorBadges(data)"}),_.B("design:type",Array)],yA.prototype,"authorBadges",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],yA.prototype,"modern",void 0);_.x([_.SP("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yA.prototype,"messageChanged",null);_.x([_.SP("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yA.prototype,"isDeletedChanged",null);
yA=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],yA);
_.C(yA,"yt-live-chat-membership-item-renderer",function(){if(qdf===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;r08===void 0&&(r08=document.createElement("template"));var H=r08;f.call(d,H.content.cloneNode(!0),K.content.firstChild);qdf=K}K=qdf;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var j$9;var C_L;var nD=function(){return _.q.apply(this,arguments)||this};
_.O(nD,_.q);nD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],nD.prototype,"data",void 0);nD=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],nD);
_.C(nD,"yt-live-chat-mode-change-message-renderer",function(){if(C_L===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;j$9===void 0&&(j$9=document.createElement("template"));var H=j$9;f.call(d,H.content.cloneNode(!0),K.content.firstChild);C_L=K}K=C_L;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var xbv;var L06;var iO=function(){return _.q.apply(this,arguments)||this};
_.O(iO,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],iO.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],iO.prototype,"data",void 0);iO=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],iO);
_.C(iO,"yt-live-chat-moderation-message-renderer",function(){if(L06===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;xbv===void 0&&(xbv=document.createElement("template"));var H=xbv;f.call(d,H.content.cloneNode(!0),K.content.firstChild);L06=K}K=L06;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var BrH;var J0f;var cw=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("web_button_rework");return K};
_.O(cw,_.q);cw.prototype.onClick=function(){var K;if((K=this.data)!=null&&K.onClickCommand){var d;_.V2.instance.resolveCommand((d=this.data)==null?void 0:d.onClickCommand)}};
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],cw.prototype,"modern",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.$c),_.B("design:type",Object)],cw.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],cw.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],cw.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],cw.prototype,"data",void 0);cw=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],cw);
_.C(cw,"yt-live-chat-offer-click-count-message-renderer",function(){if(J0f===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;BrH===void 0&&(BrH=document.createElement("template"));var H=BrH;f.call(d,H.content.cloneNode(!0),K.content.firstChild);J0f=K}K=J0f;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var s$8;var uO=function(){return _.q.apply(this,arguments)||this};
_.O(uO,_.q);_.x([_.A(),_.B("design:type",Object)],uO.prototype,"data",void 0);uO=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],uO);
_.C(uO,"yt-live-chat-placeholder-item-renderer",function(){if(s$8===void 0){var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);s$8=K}K=s$8;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var kJs;var wo2;var ZjH=new Ap(7),au=function(){var K=_.q.apply(this,arguments)||this;K.data={};return K};
_.O(au,_.q);au.prototype.dataChanged=function(){var K;((K=this.data)==null?0:K.class)&&_.pU(this.hostElement,this.data.class,!0);var d;((d=this.oldData)==null?0:d.class)&&_.pU(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
au.prototype.computeTimestampString=function(K){return ZjH.format(new Date(K/1E3))};
au.prototype.dataChanged=au.prototype.dataChanged;_.x([_.A(),_.B("design:type",Object)],au.prototype,"data",void 0);_.x([_.A({computed:"computeTimestampString(data.timestampUsec)"}),_.B("design:type",String)],au.prototype,"timestampString",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],au.prototype,"dataChanged",null);au=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],au);
_.C(au,"yt-live-chat-server-error-message",function(){if(wo2===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;kJs===void 0&&(kJs=document.createElement("template"));var H=kJs;f.call(d,H.content.cloneNode(!0),K.content.firstChild);wo2=K}K=wo2;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var egL;var pos;var Iu=function(){var K=_.q.apply(this,arguments)||this;K.defaultToFilledIcon=!1;return K};
_.O(Iu,_.q);Iu.prototype.computeHasPrimaryColorIcon=function(K){return K==="SPARK"||K==="SPONSORSHIP_STAR"};
Iu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],Iu.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Iu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Iu.prototype,"defaultToFilledIcon",void 0);_.x([_.A(),_.B("design:type",Object)],Iu.prototype,"data",void 0);
_.x([_.A({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Iu.prototype,"hasPrimaryColorIcon",void 0);Iu=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Iu);
_.C(Iu,"yt-live-chat-viewer-engagement-message-renderer",function(){if(pos===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;egL===void 0&&(egL=document.createElement("template"));var H=egL;f.call(d,H.content.cloneNode(!0),K.content.firstChild);pos=K}K=pos;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var KTs;var UL=function(){var K=_.q.apply(this,arguments)||this;K.modernUpdate=!1;K.buttonStyle="overlay";K.buttonType="filled";return K};
_.O(UL,_.q);UL.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
UL.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],UL.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],UL.prototype,"modernUpdate",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],UL.prototype,"buttonStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],UL.prototype,"buttonType",void 0);
UL=_.x([_.Q({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],UL);
_.C(UL,"ytd-ad-hover-text-button-renderer",function(){if(KTs!==void 0)return KTs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return KTs=K},{mode:1});var dI9;var Ru=function(){var K=_.q.apply(this,arguments)||this;K.buttonOverrides={size:"XS"};K.modern=_.M("web_button_rework");return K};
_.O(Ru,_.q);Ru.prototype.onHelpTap=function(K){this.data&&this.data.informationDialog&&(_.Zp(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),K.preventDefault(),K.stopPropagation())};
_.x([_.A(),_.B("design:type",Object)],Ru.prototype,"buttonOverrides",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ru.prototype,"modern",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ru.prototype,"data",void 0);Ru=_.x([_.Q({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Ru);
_.C(Ru,"ytd-live-chat-purchased-product-message-renderer",function(){if(dI9!==void 0)return dI9;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return dI9=K},{mode:1});var fg4;var Huk;var FI=function(){var K=_.q.apply(this,arguments)||this;K.isContainerDeleted=!1;return K};
_.O(FI,_.q);FI.prototype.onContextMenuClick=function(K){this.ytLiveChatItemBehavior.showContextMenu(K)};
FI.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))};
FI.prototype.isContainerDeletedChanged=FI.prototype.isContainerDeletedChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],FI.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],FI.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],FI.prototype,"isContainerDeleted",void 0);
_.x([_.A(),_.B("design:type",String)],FI.prototype,"deletedStateMessage",void 0);_.x([_.SP("isContainerDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FI.prototype,"isContainerDeletedChanged",null);FI=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],FI);
_.C(FI,"ytd-sponsorships-live-chat-header-renderer",function(){if(Huk!==void 0)return Huk;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Huk=K},{mode:1});var zx=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("web_button_rework_with_live");K.buttonOverrides={style:"overlay",type:"filled"};return K};
_.O(zx,_.q);zx.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]]"}}}}}};
zx.prototype.onCtaButtonClick=function(){var K,d=_.P((K=this.data)==null?void 0:K.optInPrompt,_.tQ);if(K=this.maybeGetButtonCommand(d)){var f;(f=_.cv())==null||f.clickCommand(K)}};
zx.prototype.maybeGetButtonCommand=function(K){return!K||!K.command||_.P(K.command,v5s)===void 0&&_.P(K.command,X3N)===void 0?null:K.command};
zx.prototype.shouldHideOptinPrompt=function(K,d){return!K||d};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],zx.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],zx.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],zx.prototype,"modern",void 0);zx=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],zx);
_.C(zx,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(fg4!==void 0)return fg4;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return fg4=K},{mode:1});var DIL;var XI=function(){return _.q.apply(this,arguments)||this};
_.O(XI,_.q);XI.prototype.onContextMenuClick=function(K){this.ytLiveChatItemBehavior.showContextMenu(K)};
XI.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))};
XI.prototype.isDeletedChanged=XI.prototype.isDeletedChanged;_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],XI.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],XI.prototype,"data",void 0);_.x([_.SP("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XI.prototype,"isDeletedChanged",null);XI=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],XI);
_.C(XI,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(DIL!==void 0)return DIL;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return DIL=K},{mode:1});var vw=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return K};
_.O(vw,_.q);_.V=vw.prototype;
_.V.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"}}}};
_.V.handleLiveChatAction=function(K){_.P(K,W94)?this.handleMarkChatItemAsDeletedAction(_.P(K,W94)):_.P(K,lh2)&&this.handleRemoveChatItemAction(_.P(K,lh2))};
_.V.handleLiveChatActions=function(K){K.forEach(this.handleLiveChatAction,this)};
_.V.handleMarkChatItemAsDeletedAction=function(K){var d=this,f;((f=this.data)==null?0:f.items)&&this.data.items.forEach(function(H,D){var S=Object.keys(H)[0];Object.values(H)[0].id===K.targetItemId&&d.markAsDeleted("data.items",D,S,K.deletedStateMessage,K.showOriginalContentMessage)})};
_.V.handleRemoveChatItemAction=function(K){var d=this,f;((f=this.data)==null?0:f.items)&&this.data.items.forEach(function(H,D){Object.values(H)[0].id===K.targetItemId&&d.splice("data.items",D,1)})};
_.V.markAsDeleted=function(K,d,f,H,D){K=[K,d,f].join(".");this.set(K+".deletedStateMessage",H);this.set(K+".showOriginalContentMessage",D)};
_.x([_.A(),_.B("design:type",Object)],vw.prototype,"data",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],vw.prototype,"ytActionHandlerBehavior",void 0);vw=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],vw);
_.C(vw,"yt-live-chat-item-display-list-renderer",function(){if(GJs===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;W0L===void 0&&(W0L=document.createElement("template"));var H=W0L;f.call(d,H.content.cloneNode(!0),K.content.firstChild);GJs=K}K=GJs;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var V5H;var Sfv,yiJ=function(){if(Sfv!==void 0)return Sfv;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;V5H===void 0&&(V5H=document.createElement("template"));var H=V5H;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return Sfv=K};var M3=function(){var K=_.q.apply(this,arguments)||this;K.isHeader=!1;return K};
_.O(M3,_.q);M3.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.x$.Object.defineProperties(M3,{template:{configurable:!0,enumerable:!0,get:function(){return yiJ()}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],M3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],M3.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],M3.prototype,"isHeader",void 0);M3=_.x([_.N7({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],M3);_.C(M3,"yt-live-chat-item-display-renderer",function(){return yiJ()},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var n9s,iuk,UI4,IgL;
n9s={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}};iuk={home:"eohps",search:"eosps",watch:"eowps"};_.cit=["watch","search","home"];
_.Pw=function(){this.JSC$12168_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12168_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.mD("PRECONSTRUCTION_DELAY",0);this.signals_=_.ov();this.targetPage_=""};
_.Pw.prototype.init=function(K,d){K=K===void 0?"":K;d=d===void 0?null:d;if(this.JSC$12168_isInitialized_)this.abort();else if(this.JSC$12168_isInitialized_=!0,K&&_.uxf(this,K),d){var f=_.$f(this.signals_,"pcl")?0:10,H=function(){for(var D=0,S;S=_.cit[D++];)S!=K&&S!=d&&this.pendingPages_.push(S);_.ag8(this)}.bind(this);
this.signals_.parkOrScheduleJob(H,f,"pcl")}};
_.Pw.prototype.abort=function(){this.fragmentJobId_&&(_.oc.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);IgL(this)};
_.uxf=function(K,d){K.JSC$12168_isInitialized_&&!K.targetPage_&&(K.targetPage_=d,UI4(K,d),K.isInitialPass_=!1,UI4(K,d),K.signals_.processSignal(iuk[K.targetPage_]),IgL(K),_.ag8(K))};
_.ag8=function(K){K.pendingPages_.length&&!K.pagePreparerJobId_&&(K.pagePreparerJobId_=_.va(_.oc,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.uxf(this,this.pendingPages_.shift())}.bind(K),K.DEFAULT_DELAY_))};
UI4=function(K,d){if(d=n9s[d])for(var f in d){var H=!1,D=f;f.charAt(0)=="~"&&(H=!0,D=f.substring(1));var S=d[f];S=typeof S=="object"?S:{count:S};d[f]=S;S.componentName=D;S.count>0&&(K.isInitialPass_?H||K.isSeenDuringInitialPass_[D]||(K.JSC$12168_queue_.push({componentName:D,count:1,signals:S.signals}),K.isSeenDuringInitialPass_[D]=!0,S.count--):K.JSC$12168_queue_.push(S))}};
IgL=function(K){K.JSC$12168_queue_.length=0;K.targetPage_="";K.isInitialPass_=!0;K.signals_.processSignal("eop")};
_.Pw.getInstance=function(){return _.w3(_.Pw)};var Rv4=function(){this.signals=_.ov();this.init()};
Rv4.prototype.startPreconstruction=function(){_.Pw.getInstance().init(_.lx("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Rv4.prototype.init=function(){FTJ(this);window.Polymer&&dXB&&drG();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var K=_.Hu.ytcsi;if(K&&K.gt&&(K=K.gt())&&K.tick&&(K.tick.aft>0||K.tick.pbs>0)&&(_.lx("IS_HOMEPAGE_COLD")||_.lx("IS_RESULTS_PAGE_COLD")||_.lx("IS_WATCH_PAGE_COLD"))){zv8(this);break a}UQJ(wtS,this.onNotifications,this)}};
var FTJ=function(K){var d=function(){K.signals.processSignal("dl")};
document.readyState==="complete"?(_.rF(Error("rh"),"WARNING"),d()):_.xnO(window,"load",d)};
Rv4.prototype.onNotifications=function(K){K.timer||(_.lx("IS_HOMEPAGE_COLD")||_.lx("IS_RESULTS_PAGE_COLD")||_.lx("IS_WATCH_PAGE_COLD"))&&zv8(this)};
var zv8=function(K){K.signals.parkOrScheduleJob(function(){K.signals.processSignal("eocs")},10,"eor")};
new Rv4;var OL,N3=function(){return _.cP.apply(this,arguments)||this};
_.O(N3,_.cP);_.V=N3.prototype;_.V.enableActiveViewMeasurement=function(K){if(this.isActiveViewEnabled(K)){var d=this.getUrlPrefixesFromCommand(K.viewableCommands);K=this.getUrlPrefixesFromCommand(K.endOfSessionCommands);if(!OL){var f=_.di("custom_active_view_tos_timeout_ms");OL=f>0&&f!==36E5?new UAX(this.getVersion(),f):new UAX(this.getVersion())}FGo(OL,this.hostElement);zOY(OL,this.hostElement,d,K)}};
_.V.stopActiveViewMeasurement=function(){OL&&FGo(OL,this.hostElement)};
_.V.isActiveViewEnabled=function(K){return!!K&&(this.hasAtLeastOneUrl(K.viewableCommands)||this.hasAtLeastOneUrl(K.endOfSessionCommands))};
_.V.hasAtLeastOneUrl=function(K){return!!K&&K.length>0&&K[0].loggingUrls!=null&&K[0].loggingUrls.length>0};
_.V.getVersion=function(){var K=_.mD("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(K==null?void 0:K.length)===2?K[1]:null};
_.V.getUrlPrefixesFromCommand=function(K){if(!K)return[];var d=[];K=_.y(K);for(var f=K.next();!f.done;f=K.next())if(f=f.value,f.loggingUrls){f=_.y(f.loggingUrls);for(var H=f.next();!H.done;H=f.next())H=H.value,H.baseUrl&&d.push(H.baseUrl)}return d};
N3=_.x([_.uL()],N3);var YV=[N3.prototype];var tV=function(){return _.cP.apply(this,arguments)||this};
_.O(tV,_.cP);_.x$.Object.defineProperties(tV.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_entity_store_from_dependency_injection")?_.TC():_.j3()}}});
tV=_.x([_.uL()],tV);_.ou=[vn.prototype,tV.prototype];var XbH=["ytd-rich-shelf-renderer"],$V=function(){var K=_.cP.apply(this,arguments)||this;K._noAccessors=!0;K.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";K.followUpDialogPromise=null;K.followUpDialogPromiseResolve=null;K.followUpDialogPromiseReject=null;return K};
_.O($V,_.cP);_.V=$V.prototype;_.V.dismissibleItemIsDismissedChanged_=function(K){_.M("kevlar_fluid_dismiss")&&(K?_.Zp(this.hostElement,"yt-dismissible-item-dismissed"):_.Zp(this.hostElement,"yt-dismissible-item-undismissed"))};
_.V.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.V.dismissibleItemReset_=function(){var K=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 _.ip(function(d,f){K.followUpDialogPromiseResolve=d;K.followUpDialogPromiseReject=f});
_.Zp(this.hostElement,"yt-enable-lockup-interaction")};
_.V.dismissibleItemOnYtServiceRequestSent_=function(K,d){d.actions&&this.dismissibleItemProcessActions(d.actions,K)};
_.V.dismissibleItemOnRequestSent=function(K){if(_.M("web_button_rework"))for(var d=_.y(K.detail),f=d.next();!f.done;f=d.next()){var H=void 0;(f=(H=_.P(f.value,_.y$))==null?void 0:H.actions)&&this.dismissibleItemProcessActions(f,K)}};
_.V.dismissibleItemOnCommandSent=function(K,d){d&&this.dismissibleItemProcessActions(d,K)};
_.V.setAndGetDismissedContentId=function(K){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+K};
_.V.replayDismissAction=function(K){this.dismissibleItemProcessActions([K])};
_.V.dismissibleItemProcessActions=function(K,d){for(var f=0;f<K.length;f++){var H=K[f],D=void 0;((D=_.P(H,_.DE))==null?0:D.commands)&&this.dismissibleItemProcessActions(_.P(H,_.DE).commands,d);if(_.P(H,_.Ia)){if(D=_.P(H,_.Ia),!D.replaceParentSection||XbH.includes(this.hostElement.nodeName.toLowerCase()))_.M("web_see_fewer_shorts_reactive_dismissal")&&D.groupDismissal&&OCG(this,D.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(D),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.nt("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:H})),H=void 0,(H=d)==null||H.stopPropagation()}else if(_.P(H,xjv))this.dismissibleItemHandleHideEnclosingAction_(),H=void 0,(H=d)==null||H.stopPropagation();else if(_.P(H,fbs))_.M("web_see_fewer_shorts_reactive_dismissal")&&(H=_.P(H,fbs),D=void 0,((D=H)==null?0:D.targetGroupId)&&OCG(this,{targetGroupId:H.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.nt("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),H=void 0,(H=d)==null||H.stopPropagation();else if(_.P(H,_.y$))(H=_.P(H,_.y$).actions)&&_.fd(this.hostElement,H,this.hostElement),H=void 0,(H=d)==null||H.stopPropagation();else{var S=D=void 0;((D=_.P(H,_.GE))==null?void 0:D.signal)!=="TELL_US_WHY"||((S=_.P(H,_.GE))==null?0:S.targetId)&&_.M("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),H=void 0,(H=d)==null||H.stopPropagation())}}};
_.V.dismissibleItemOnYtServiceRequestCompleted_=function(K,d){var f=this.get("feedbackResponses.0.followUpDialog",d.data);f?this.followUpDialogPromiseResolve(f):d.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(d.actions,K)};
_.V.dismissibleItemHandleReplaceEnclosingAction_=function(K){this.dismissedRenderer=K.item;this.isDismissed=!0;var d=null;(d=_.E(this.hostElement).querySelector("#dismissed"))&&_.jW(this,function(){_.BA(d)});
_.Zp(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.V.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.V.dismissibleItemHandleUndoFeedbackAction_=function(){_.Zp(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.V.dismissibleItemHandleTellUsWhySignalAction_=function(){var K=this;this.followUpDialogPromise.then(function(d){K.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:d}})})};
$V.prototype.dismissibleItemOnYtServiceRequestCompleted_=$V.prototype.dismissibleItemOnYtServiceRequestCompleted_;$V.prototype.dismissibleItemOnCommandSent=$V.prototype.dismissibleItemOnCommandSent;$V.prototype.dismissibleItemOnRequestSent=$V.prototype.dismissibleItemOnRequestSent;$V.prototype.dismissibleItemOnYtServiceRequestSent_=$V.prototype.dismissibleItemOnYtServiceRequestSent_;$V.prototype.dismissibleItemDataChanged_=$V.prototype.dismissibleItemDataChanged_;
$V.prototype.dismissibleItemIsDismissedChanged_=$V.prototype.dismissibleItemIsDismissedChanged_;_.x([_.l(_.r8),_.B("design:type",Object)],$V.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],$V.prototype,"ytdReduxBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],$V.prototype,"isDismissed",void 0);_.x([_.A(),_.B("design:type",Object)],$V.prototype,"dismissedRenderer",void 0);
_.x([_.SP("isDismissed"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],$V.prototype,"dismissibleItemIsDismissedChanged_",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$V.prototype,"dismissibleItemDataChanged_",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],$V.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.x([_.VV("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$V.prototype,"dismissibleItemOnRequestSent",null);
_.x([_.VV("yt-dismissible-item-action"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Array]),_.B("design:returntype")],$V.prototype,"dismissibleItemOnCommandSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],$V.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);$V=_.x([_.uL()],$V);_.EL=[_.r8,_.ou,$V.prototype];var hV=function(){var K=_.cP.apply(this,arguments)||this;K.disableGridStateAware=!1;K.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};K.currentGridClass="";return K};
_.O(hV,_.cP);hV.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.jW(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var K=this.gridStateAwareGetElement();_.pU(K,"grid",!0)}};
hV.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
hV.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.E(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
hV.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var K="grid-disabled";else{K=_.PZH.getInstance();var d=this.get("pageSubtype");K=d&&XI4.includes(d)?"grid-disabled":K.currentSnapState_?K.currentSnapState_.className:null}(d=this.gridStateAwareGetElement())&&K!==this.currentGridClass&&(K&&_.pU(d,K,!0),this.currentGridClass&&_.pU(d,this.currentGridClass,!1),this.currentGridClass=K)};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],hV.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",String)],hV.prototype,"gridStateAwareSizingElementSelector",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],hV.prototype,"disableGridStateAware",void 0);hV=_.x([_.uL()],hV);_.bO=[hV.prototype,_.kc.YtActionHandlerBehavior];_.mr=new _.xn("GUIDE_TOKEN");var Ww;_.lO={};Ww=function(){var K=_.cP.apply(this,arguments)||this;K.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 K};
_.O(Ww,_.cP);_.V=Ww.prototype;_.V.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.V.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var K=_.eq().resolve(_.Zd(_.mr));K&&(this.guidePersistentAndVisible=K.getGuidePersistentAndVisible(),this.activeEndpoint=K.getActiveEndpoint(),this.guideOpened=K.getGuideOpened(),this.miniGuideVisible=K.getMiniGuideVisible())};
_.V.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.V.handleGuideStateAction=function(K){this.guidePersistentAndVisible=K};
_.V.handleMiniGuideStateAction=function(K){this.miniGuideVisible=K};
_.V.handleGuideOpenedAction=function(K){this.guideOpened=K};
_.V.handleActiveEndpointAction=function(K){this.activeEndpoint=K};
Ww.prototype.onActiveEndpointChange=Ww.prototype.onActiveEndpointChange;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Ww.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ww.prototype,"guidePersistentAndVisible",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ww.prototype,"miniGuideVisible",void 0);_.x([_.A(),_.B("design:type",Object)],Ww.prototype,"activeEndpoint",void 0);
_.x([_.SP("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"onActiveEndpointChange",null);_.x([_.A(),_.B("design:type",Boolean)],Ww.prototype,"guideOpened",void 0);Ww=_.x([_.uL()],Ww);_.lO.YtdGuideStateAwareBehavior=[];_.lO.YtdGuideStateAwareBehavior.push(Ww.prototype,_.kc.YtActionHandlerBehavior);var v98=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Gx=function(){var K=_.cP.apply(this,arguments)||this;K.hoverJobId=0;K.JSC$12199_touched=!1;return K};
_.O(Gx,_.cP);_.V=Gx.prototype;_.V.created=function(){this.useExpandableTooltip=!v98.includes(this.is)};
_.V.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.V.detached=function(){this.useExpandableTooltip=!1};
_.V.lockupOnDown=function(K){this.interactionElement&&!_.qa(_.qn(K),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.V.lockupOnUp=function(K){this.interactionElement&&!_.qa(_.qn(K),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.V.onTouchStart=function(){this.JSC$12199_touched=!0};
_.V.lockupOnMouseEnter=function(){var K=this,d=_.di("kevlar_lockup_hover_delay",-1);this.JSC$12199_touched&&d>=0?(_.oc.cancelJob(this.hoverJobId),this.hoverJobId=_.oc.addJob(function(){K.lockupIsHovered=!0},8,d),this.JSC$12199_touched=!1):this.lockupIsHovered=!0};
_.V.lockupOnMouseLeave=function(){this.hoverJobId&&(_.oc.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.V.lockupOnPopupClosed=function(K,d){var f;((f=d.popupRenderer)==null?void 0:f.is)==="ytd-menu-popup-renderer"&&(K=d.popupRenderer.veData,d=_.te(),K&&d&&_.Tu(d,[K]))};
_.V.lockupOnLockupRequested=function(K){var d=K.detail.videoIds[0],f;K.detail&&d===((f=this.data)==null?void 0:f.videoId)&&(K.detail.returnValue=[this.data])};
_.V.lockupOnYtServiceRequestSent=function(K,d){if(K=d.actions)for(var f=0;f<K.length;f++){var H=K[f];if(H.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&d.ajaxPromise){var D=void 0,S=(D=_.P(d.endpoint,_.OI))==null?void 0:D.playlistId;D=void 0;H=(D=H.removedVideoId)!=null?D:"";x3k(_.h_(),H,S)}else H.action==="ACTION_REMOVE_VIDEO"&&d.ajaxPromise&&(S=void 0,H=(S=H.setVideoId)!=null?S:"",_.LrL(_.h_(),H))}};
_.V.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.V.lockupOnLockupEnabled=function(){if(!this.$){var K=_.eq().resolve(_.jC).getCurrentPage(),d=this.getParentRenderer?this.getParentRenderer():void 0;_.h3(new _.X4("component not ready",this.is,this.isAttached,K==null?void 0:K.is,d==null?void 0:d.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Gx.prototype.lockupOnLockupEnabled=Gx.prototype.lockupOnLockupEnabled;Gx.prototype.lockupOnLockupDisabled=Gx.prototype.lockupOnLockupDisabled;Gx.prototype.lockupOnYtServiceRequestSent=Gx.prototype.lockupOnYtServiceRequestSent;Gx.prototype.lockupOnLockupRequested=Gx.prototype.lockupOnLockupRequested;Gx.prototype.lockupOnPopupClosed=Gx.prototype.lockupOnPopupClosed;Gx.prototype.lockupOnMouseLeave=Gx.prototype.lockupOnMouseLeave;Gx.prototype.lockupOnMouseEnter=Gx.prototype.lockupOnMouseEnter;
Gx.prototype.onTouchStart=Gx.prototype.onTouchStart;Gx.prototype.lockupOnUp=Gx.prototype.lockupOnUp;Gx.prototype.lockupOnDown=Gx.prototype.lockupOnDown;_.x([_.A(),_.B("design:type",Object)],Gx.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],Gx.prototype,"lockupIsHovered",void 0);_.x([_.A(),_.B("design:type",Boolean)],Gx.prototype,"lockupTouchTriggered",void 0);_.x([_.A(),_.B("design:type",Boolean)],Gx.prototype,"useExpandableTooltip",void 0);
_.x([_.n8("#interaction"),_.B("design:type",Object)],Gx.prototype,"interactionElement",void 0);_.x([_.VV("down"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Gx.prototype,"lockupOnDown",null);_.x([_.VV("up"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Gx.prototype,"lockupOnUp",null);
_.x([_.VV("touchstart"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gx.prototype,"onTouchStart",null);_.x([_.VV("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gx.prototype,"lockupOnMouseEnter",null);_.x([_.VV("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gx.prototype,"lockupOnMouseLeave",null);
_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Gx.prototype,"lockupOnPopupClosed",null);_.x([_.VV("yt-lockup-requested"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Gx.prototype,"lockupOnLockupRequested",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],Gx.prototype,"lockupOnYtServiceRequestSent",null);_.x([_.VV("yt-disable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gx.prototype,"lockupOnLockupDisabled",null);
_.x([_.VV("yt-enable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gx.prototype,"lockupOnLockupEnabled",null);Gx=_.x([_.uL()],Gx);_.AV=[Gx.prototype];_.M5s={YtdReduxBehavior:[]};_.M5s.YtdReduxBehavior.push.apply(_.M5s.YtdReduxBehavior,_.ou);var Tx=function(){var K=_.cP.apply(this,arguments)||this;K._noAccessors=!0;K.disableNowPlaying=!1;K.disableTooltips=!1;K.useHoveredProperty=!1;K.hovered=!1;K.isThumbnailHovered_=!1;K.addBackground=_.M("kevlar_thumbnail_bg");K.nowPlaying=!1;K.disableRounding=!1;K.size="small";return K};
_.O(Tx,_.cP);_.V=Tx.prototype;_.V.computeThumbnailOverlaySidePanelWidth_=function(K,d){return K-d};
_.V.computeSize=function(K,d){if(!this.disableRounding){if(!K&&!d)return"small";K=Math.max(K||0,d||0);return K>=256?"large":K>=96?"medium":"small"}};
_.V.computeFinalHoveredState_=function(K,d,f){return this.nowPlaying?!1:_.M("kevlar_thumbnail_fluid")&&K?d:f};
_.V.computeHoverOverlays_=function(K,d){return K&&d?d:void 0};
_.V.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.V.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.V.checkMiniplayer_=function(){var K;if(((K=this.data)==null?0:K.playlistSetVideoId)&&_.M("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{K=_.SJ();var d=K.currentEndpoint;!this.disableNowPlaying&&d&&_.P(d,_.qu)&&this.data?(d=_.P(d,_.qu),this.nowPlaying=this.data.playlistId?d.playlistId===this.data.playlistId:d.videoId===this.data.videoId,this.isVideoPlaying=K==null?void 0:K.isVideoPlaying):this.nowPlaying=!1}};
Tx.prototype.checkMiniplayer_=Tx.prototype.checkMiniplayer_;Tx.prototype.onMouseLeave_=Tx.prototype.onMouseLeave_;Tx.prototype.onMouseEnter_=Tx.prototype.onMouseEnter_;Tx.prototype.computeHoverOverlays_=Tx.prototype.computeHoverOverlays_;Tx.prototype.computeFinalHoveredState_=Tx.prototype.computeFinalHoveredState_;Tx.prototype.computeSize=Tx.prototype.computeSize;Tx.prototype.computeThumbnailOverlaySidePanelWidth_=Tx.prototype.computeThumbnailOverlaySidePanelWidth_;
_.x([_.l(_.ou),_.B("design:type",Object)],Tx.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Tx.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Number)],Tx.prototype,"height",void 0);_.x([_.A(),_.B("design:type",Boolean)],Tx.prototype,"bottomSidePanel",void 0);_.x([_.A(),_.B("design:type",Number)],Tx.prototype,"width",void 0);_.x([_.A(),_.B("design:type",Object)],Tx.prototype,"disableNowPlaying",void 0);
_.x([_.A({selector:_.Yo}),_.B("design:type",Boolean)],Tx.prototype,"miniplayerIsActive",void 0);_.x([_.A(),_.B("design:type",Object)],Tx.prototype,"disableTooltips",void 0);_.x([_.A(),_.B("design:type",Object)],Tx.prototype,"useHoveredProperty",void 0);_.x([_.A(),_.B("design:type",Object)],Tx.prototype,"hovered",void 0);_.x([_.A(),_.B("design:type",Object)],Tx.prototype,"isThumbnailHovered_",void 0);
_.x([_.A({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.B("design:type",Boolean)],Tx.prototype,"finalHoveredState_",void 0);_.x([_.A({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.B("design:type",Number)],Tx.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Tx.prototype,"addBackground",void 0);
_.x([_.A({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.B("design:type",Object)],Tx.prototype,"hoverOverlays_",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Tx.prototype,"nowPlaying",void 0);_.x([_.A(),_.B("design:type",Boolean)],Tx.prototype,"isVideoPlaying",void 0);_.x([_.A(),_.B("design:type",Object)],Tx.prototype,"disableRounding",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.B("design:type",Object)],Tx.prototype,"size",void 0);_.x([_.VV("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tx.prototype,"onMouseEnter_",null);_.x([_.VV("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tx.prototype,"onMouseLeave_",null);
_.x([_.SP("data","disableNowPlaying","miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tx.prototype,"checkMiniplayer_",null);Tx=_.x([_.uL()],Tx);var P7s=[Tx.prototype];_.ra={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(K,d){return K+":"+_.DL(d)},
getPlayerListener_:function(K,d,f){K=this.getPlayerListenerKey_(K,d);d=this.playerListeners_.get(K);f&&this.playerListeners_.delete(K);return d},
savePlayerListener_:function(K,d){var f=d.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(K,d),f);return f},
listenToPlayerEvent:function(K,d,f){f=this.savePlayerListener_(d,f);K.addEventListener(d,f)},
listenToPlayerEvents:function(K,d){d.forEach(function(f,H){this.listenToPlayerEvent(K,H,f)}.bind(this))},
unlistenFromPlayerEvent:function(K,d,f){f=this.getPlayerListener_(d,f,!0);K.removeEventListener(d,f)},
unlistenFromPlayerEvents:function(K,d){d.forEach(function(f,H){this.unlistenFromPlayerEvent(K,H,f)}.bind(this))}}};
_.q3=function(){};_.g96=new _.xn("PLAYER_API_TOKEN");var EEu=!1,lcz,bCJ=!1,GPG;var Jh=function(K,d,f,H,D){_.gG.call(this);var S=this;this.playerId=d;this.webPlayerContextConfig=H;this.tBK=D;this.cPZ=!1;this.api={};this.jFx=this.qOk=null;this.hQH=new _.uH;this.sM={};this.cNV=this.i0V=this.elementId=this.io3=this.config=null;this.pMH=!1;this.ep=this.r6O=null;this.iGZ={};this.wzK=["onReady"];this.lastError=null;this.uJS=NaN;this.hPZ={};this.wxQ=0;this.nt=this.targetElement=K;_.cy(this,this.hQH);Ou2(this);f?this.wxQ=setTimeout(function(){S.loadNewVideoConfig(f)},0):H&&(NY8(this),
Yf6(this))};
_.O(Jh,_.gG);Jh.prototype.getId=function(){return this.playerId};
Jh.prototype.loadNewVideoConfig=function(K){if(!this.isDisposed()){this.wxQ&&(clearTimeout(this.wxQ),this.wxQ=0);var d=K||{};d instanceof KMs||(d=new KMs(d));this.config=d;this.setConfig(K);Yf6(this);this.isReady()&&t5s(this)}};
var NY8=function(K){var d;K.webPlayerContextConfig?d=K.webPlayerContextConfig.rootElementId:d=K.config.attrs.id;K.elementId=d||K.elementId;K.elementId==="video-player"&&(K.elementId=K.playerId,K.webPlayerContextConfig?K.webPlayerContextConfig.rootElementId=K.playerId:K.config.attrs.id=K.playerId);var f;((f=K.nt)==null?void 0:f.id)===K.elementId&&(K.elementId+="-player",K.webPlayerContextConfig?K.webPlayerContextConfig.rootElementId=K.elementId:K.config.attrs.id=K.elementId)};
Jh.prototype.setConfig=function(K){this.io3=K;this.config=o9v(K);NY8(this);if(!this.i0V){var d;this.i0V=$IB(this,((d=this.config.args)==null?void 0:d.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var f;if((f=this.config)==null?0:f.attrs)K=this.config.attrs,(d=K.width)&&this.nt&&(this.nt.style.width=YW(Number(d)||d,!0)),(K=K.height)&&this.nt&&(this.nt.style.height=YW(Number(K)||K,!0))};
var t5s=function(K){if(K.config&&K.config.loaded!==!0)if(K.config.loaded=!0,!K.config.args||K.config.args.autoplay!=="0"&&K.config.args.autoplay!==0&&K.config.args.autoplay!==!1){var d;K.api.loadVideoByPlayerVars((d=K.config.args)!=null?d:null)}else K.api.cueVideoByPlayerVars(K.config.args)},hv2=function(K){var d=!0,f=K.getPlayerElement();
f&&K.config&&(d=f.dataset.version===E9k(K));return d&&!!_.T2("yt.player.Application.create")},Yf6=function(K){if(!K.isDisposed()&&!K.pMH){var d=hv2(K);
if(d&&(K.getPlayerElement()?"html5":null)==="html5")K.cNV="html5",K.isReady()||buv(K);else if(mIk(K),K.cNV="html5",d&&K.ep&&K.targetElement)K.targetElement.appendChild(K.ep),buv(K);else{K.config&&(K.config.loaded=!0);var f=!1;K.r6O=function(){f=!0;var H=lgk(K,"player_bootstrap_method")?_.T2("yt.player.Application.createAlternate")||_.T2("yt.player.Application.create"):_.T2("yt.player.Application.create");var D=K.config?o9v(K.config):void 0;H&&H(K.targetElement,D,K.webPlayerContextConfig,K.tBK);buv(K)};
K.pMH=!0;d?K.r6O():(_.mV(E9k(K),K.r6O),(d=WTH(K))&&F8p(d||""),Ge8(K)&&!f&&_.B6("yt.player.Application.create",null))}}};
Jh.prototype.getPlayerElement=function(){var K=_.Bp(document,this.elementId);!K&&this.nt&&this.nt.querySelector&&(K=this.nt.querySelector("#"+this.elementId));return K};
var buv=function(K){if(!K.isDisposed()){var d=K.getPlayerElement(),f=!1;d&&d.getApiInterface&&d.getApiInterface()&&(f=!0);if(f){K.pMH=!1;if(!lgk(K,"html5_remove_not_servable_check_killswitch")){var H;if((d==null?0:d.isNotServable)&&K.config&&(d==null?0:d.isNotServable((H=K.config.args)==null?void 0:H.video_id)))return}Ai2(K)}else K.uJS=setTimeout(function(){buv(K)},50)}},Ai2=function(K){Ou2(K);
K.cPZ=!0;var d=K.getPlayerElement();if(d){K.qOk=TY6(K,d,"addEventListener");K.jFx=TY6(K,d,"removeEventListener");var f=d.getApiInterface();f=f.concat(d.getInternalApiInterface());for(var H=K.api,D=0;D<f.length;D++){var S=f[D];H[S]||(H[S]=TY6(K,d,S))}}for(var n in K.sM)K.sM.hasOwnProperty(n)&&K.qOk&&K.qOk(n,K.sM[n]);t5s(K);K.i0V&&K.i0V(K.api);K.hQH.publish("onReady",K.api)},TY6=function(K,d,f){var H=d[f];
return function(){var D=_.Pg.apply(0,arguments);try{return K.lastError=null,H.apply(d,D)}catch(S){if(f!=="sendAbandonmentPing")throw S.params=f,K.lastError=S,D=new _.X4("PlayerProxy error in method call",{error:S,method:f,playerId:K.playerId}),D.level="WARNING",D;}}},Ou2=function(K){K.cPZ=!1;
if(K.jFx)for(var d in K.sM)K.sM.hasOwnProperty(d)&&K.jFx(d,K.sM[d]);for(var f in K.hPZ)K.hPZ.hasOwnProperty(f)&&clearTimeout(Number(f));K.hPZ={};K.qOk=null;K.jFx=null;d=K.api;for(var H in d)d.hasOwnProperty(H)&&(d[H]=null);d.addEventListener=function(D,S){K.addEventListener(D,S)};
d.removeEventListener=function(D,S){K.removeEventListener(D,S)};
d.destroy=function(){K.dispose()};
d.getLastError=function(){return K.getLastError()};
d.getPlayerType=function(){return K.getPlayerType()};
d.getCurrentVideoConfig=function(){return K.io3};
d.loadNewVideoConfig=function(D){K.loadNewVideoConfig(D)};
d.isReady=function(){return K.isReady()}};
Jh.prototype.isReady=function(){return this.cPZ};
Jh.prototype.addEventListener=function(K,d){var f=this;this.isDisposed();var H=$IB(this,d);H&&(_.Bu(this.wzK,K)||this.sM[K]||(d=rik(this,K),this.qOk&&this.qOk(K,d)),this.hQH.subscribe(K,H),K==="onReady"&&this.isReady()&&setTimeout(function(){H(f.api)},0))};
Jh.prototype.removeEventListener=function(K,d){this.isDisposed()||(d=$IB(this,d))&&this.hQH.unsubscribe(K,d)};
var $IB=function(K,d){var f=d;if(typeof d==="string"){if(K.iGZ[d])return K.iGZ[d];f=function(){var H=_.Pg.apply(0,arguments),D=_.T2(d);if(D)try{D.apply(_.Hu,H)}catch(S){throw H=new _.X4("PlayerProxy error when executing callback",{error:S}),H.level="ERROR",H;}};
K.iGZ[d]=f}return f?f:null},rik=function(K,d){var f=function(H){var D=function(){K.isDisposed();
if(!K.isDisposed())try{K.hQH.publish(d,H!=null?H:void 0)}catch(u){var n=new _.X4("PlayerProxy error when creating global callback",{error:u.message,event:d,playerId:K.playerId,data:H,originalStack:u.stack,componentStack:u.componentStack});n.level="WARNING";throw n;}};
if(lgk(K,"web_player_publish_events_immediately"))D();else{var S=setTimeout(function(){D();_.PR.remove(K.hPZ,String(S))},0);
_.PR.add(K.hPZ,String(S),!0)}};
return K.sM[d]=f};
Jh.prototype.getPlayerType=function(){return this.cNV||(this.getPlayerElement()?"html5":null)};
Jh.prototype.getLastError=function(){return this.lastError};
var mIk=function(K){K.cancel();Ou2(K);K.cNV=null;K.config&&(K.config.loaded=!1);var d=K.getPlayerElement();d&&(hv2(K)||!Ge8(K)?K.ep=d:(d&&d.destroy&&d.destroy(),K.ep=null));K.targetElement&&_.X_(K.targetElement)};
Jh.prototype.cancel=function(){this.r6O&&_.Lo5(E9k(this),this.r6O);clearTimeout(this.uJS);this.pMH=!1};
Jh.prototype.disposeInternal=function(){mIk(this);if(this.ep&&this.config&&this.ep.destroy)try{this.ep.destroy()}catch(d){var K=new _.X4("PlayerProxy error during disposal",{error:d});K.level="ERROR";throw K;}this.iGZ=null;for(K in this.sM)this.sM.hasOwnProperty(K)&&delete this.sM[K];this.io3=this.config=this.api=null;delete this.targetElement;delete this.nt;_.gG.prototype.disposeInternal.call(this)};
var Ge8=function(K){var d,f;K=(d=K.config)==null?void 0:(f=d.args)==null?void 0:f.fflags;return!!K&&K.indexOf("player_destroy_old_version=true")!==-1},E9k=function(K){return K.webPlayerContextConfig?K.webPlayerContextConfig.jsUrl:(K=K.config.assets)?K.js:""},WTH=function(K){return K.webPlayerContextConfig?K.webPlayerContextConfig.cssUrl:(K=K.config.assets)?K.css:""},lgk=function(K,d){if(K.webPlayerContextConfig)var f=K.webPlayerContextConfig.serializedExperimentFlags;
else{var H;if((H=K.config)==null?0:H.args)f=K.config.args.fflags}return(f||"").split("&").includes(d+"=true")},o9v=function(K){for(var d={},f=_.y(Object.keys(K)),H=f.next();!H.done;H=f.next()){H=H.value;
var D=K[H];d[H]=typeof D==="object"?_.PR.clone(D):D}return d};var QI5={},qlX="player_uid_"+(Math.random()*1E9>>>0);var QA=function(K,d,f,H,D,S){d=d===void 0?document.createElement("div"):d;this.webPlayerContextConfig=K;this.container=d;this.commandResolver=f;this.apiResolver=x1p();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.fU;H||S?qfN(this):Q78(this);this.pendingPlayerResponse=H;this.pendingWatchNextResponse=D;this.pendingPlayerVars=S;j7v(this)};
QA.prototype.loadVideoWithPlayerResponse=function(K,d,f){this.loadVideo(K,d,f)};
QA.prototype.loadVideoWithPlayerVars=function(K){return this.loadVideo(void 0,void 0,K)};
QA.prototype.destroy=function(K){if(K=_.Bp(document,K))K=qlX+"_"+_.DL(K),(K=QI5[K])&&K.dispose()};
var xI4=function(K,d){var f;_.c(function(H){if(H.nextAddress==1)return K.pendingWatchNextResponse=d,K.synchronousApi?(f=K.synchronousApi,H.jumpTo(2)):_.I(H,K.api,3);H.nextAddress!=2&&(f=H.yieldResult);C7B(K,f);K.pendingWatchNextResponse&&(f.updateVideoData({raw_watch_next_response:K.pendingWatchNextResponse}),K.pendingWatchNextResponse=void 0);_.iQ(H)})},C7B=function(K,d){var f;
if(!(d==null?0:(f=d.isReady)==null?0:f.call(d))){var H;K=new _.X4("playerApi is falsey",{synchronousApi:K.synchronousApi,apiResolved:K.apiResolver.resolved,playerApiUndefined:d===void 0,playerApiNull:d===null,playerApiReady:(d==null?void 0:(H=d.isReady)==null?void 0:H.call(d))===!0,playerApiMethods:d?Object.keys(d):[]});_.$7(K)}},LTk=function(K,d){if(typeof K[d]==="function")return K[d]()},BYs=function(K){var d=window,f,H=(f=d.ytplayer)==null?void 0:f.bootstrapPlayerContainer;
if((f=H==null?void 0:H.firstElementChild)&&_.hD(f,"html5-video-player")){var D,S,n=(D=d.ytplayer)==null?void 0:(S=D.bootstrapWebPlayerContextConfig)==null?void 0:S.contextId;D=K.webPlayerContextConfig.contextId;if(n&&n===D){H!==K.container&&(H=!1,LTk(f,"getPlayerState")===2&&(H=!0),K.container.appendChild(f),H||LTk(f,"playVideo"));var u;if((u=d.ytplayer)==null?0:u.bootstrapPlayerResponse)K.bootstrapPlayerResponse=d.ytplayer.bootstrapPlayerResponse}}},j7v=function(K){var d,f,H,D,S;
_.c(function(n){if(n.nextAddress==1)return K.pageReadyOrDataAvailable?n.jumpTo(2):_.I(n,K.pageReadyOrDataAvailableResolver.promise,2);if(n.nextAddress!=4)return!_.M("kevlar_player_unified_player_loading")||hfX()&&m1p()?n.jumpTo(4):_.I(n,Tqu(),4);BYs(K);if(K.pendingPlayerResponse||K.pendingPlayerVars)d=rOX(K.pendingPlayerResponse,K.pendingWatchNextResponse,K.pendingPlayerVars),K.pendingPlayerResponse&&K.pendingPlayerResponse===K.bootstrapPlayerResponse&&(d.loaded=!0),K.bootstrapPlayerResponse=void 0;
f=Cko(K.container,d,K.webPlayerContextConfig);((H=d)==null?0:H.loaded)&&K.pendingWatchNextResponse?(xI4(K,K.pendingWatchNextResponse),K.pendingPlayerResponse=void 0,K.pendingPlayerVars=void 0):Ji4(K);D=function(u){f.removeEventListener("onReady",D);K.synchronousApi=u;K.apiResolver.resolve(u)};
f.addEventListener("onReady",D);K.commandResolver!==void 0&&(S=K.commandResolver,f.addEventListener("innertubeCommand",function(u){S(u)}));
_.iQ(n)})};
QA.prototype.loadVideo=function(K,d,f){var H=this,D,S,n,u,a,R,F,z,v;return _.c(function(g){if(g.nextAddress==1)return H.pendingPlayerResponse=K,H.pendingWatchNextResponse=d,H.pendingPlayerVars=f,qfN(H),H.synchronousApi?(D=H.synchronousApi,g.jumpTo(2)):_.I(g,H.api,3);g.nextAddress!=2&&(D=g.yieldResult);C7B(H,D);n=new Promise(function(N){S=N});
u=function(){var N=D.getPlayerResponse();N&&(D.removeEventListener("onVideoDataChange",u),S(N))};
D.addEventListener("onVideoDataChange",u);if(H.pendingPlayerResponse||H.pendingPlayerVars)H.pendingPlayerResponse&&H.pendingPlayerResponse===H.bootstrapPlayerResponse?(S(H.pendingPlayerResponse),H.pendingWatchNextResponse&&xI4(H,H.pendingWatchNextResponse)):(a=rOX(H.pendingPlayerResponse,H.pendingWatchNextResponse,H.pendingPlayerVars),(v=(R=H.pendingPlayerResponse)==null?void 0:(F=R.playerConfig)==null?void 0:(z=F.playbackStartConfig)==null?void 0:z.startPaused)?D.cueVideoByPlayerVars(a.args):D.loadVideoByPlayerVars(a.args)),
Ji4(H),H.bootstrapPlayerResponse=void 0;return g.return(n)})};
var Q78=function(K){if(document.readyState==="complete"||document.readyState==="interactive")qfN(K);else{var d=function(){document.removeEventListener("DOMContentLoaded",d);qfN(K)};
document.addEventListener("DOMContentLoaded",d)}},qfN=function(K){K.pageReadyOrDataAvailable=!0;
K.pageReadyOrDataAvailableResolver.resolve()},Ji4=function(K){K.pendingPlayerResponse=void 0;
K.pendingWatchNextResponse=void 0;K.pendingPlayerVars=void 0};
_.x$.Object.defineProperties(QA.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var j_=function(K){gh.call(this,K===void 0?"document_active":K);var d=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(f){d.transition("document_disposed",{event:f})});
window.addEventListener("beforeunload",function(f){d.transition("document_disposed_preventable",{event:f})});
window.addEventListener("unload",function(f){d.transition("document_disposed",{event:f});d.hasRun=new Map})};
_.O(j_,gh);
j_.prototype.runPreventableDispose=function(K,d){if(!this.hasRun.get("document_disposed_preventable")){K(d==null?void 0:d.event);var f,H;if((d==null?0:(f=d.event)==null?0:f.defaultPrevented)||(d==null?0:(H=d.event)==null?0:H.returnValue)){d.event.returnValue||(d.event.returnValue=!0);d.event.defaultPrevented||d.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
j_.prototype.runDispose=function(K,d){this.hasRun.get("document_disposed")?this.transition("document_active"):(K(d==null?void 0:d.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
j_.prototype.runFlush=function(K,d){K(d==null?void 0:d.event);this.transition("document_active")};
j_.prototype.runActive=function(){};var CD=function(K){gh.call(this,K===void 0?"document_visibility_unknown":K);var d=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(f){document.visibilityState==="visible"?d.transition("document_visible",{event:f}):d.transition("document_hidden",
{event:f})});
_.M("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(f){d.transition("document_backgrounded",{event:f})}),window.addEventListener("focus",function(f){d.transition("document_foregrounded",{event:f})}))};
_.O(CD,gh);CD.prototype.runVisible=function(K,d){K(d==null?void 0:d.event);_.M("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
CD.prototype.runHidden=function(K,d){K(d==null?void 0:d.event);_.M("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
CD.prototype.runBackgrounded=function(K,d){K(d==null?void 0:d.event)};
CD.prototype.runForegrounded=function(K,d){K(d==null?void 0:d.event)};var xV=function(){this.teardownLifecycle=new j_;this.visibilityLifecycle=new CD};
xV.prototype.install=function(){var K=_.Pg.apply(0,arguments),d=this;K.forEach(function(f){d.teardownLifecycle.install(f)});
K.forEach(function(f){d.visibilityLifecycle.install(f)})};var LD=function(){xV.call(this);var K={};this.install((K.document_disposed={callback:this.abortSlisAndFlush},K));_.M("combine_ve_grafts")&&(K={},this.install((K.document_disposed={callback:this.flushInteractionLoggingAttachVes},K)));K={};this.install((K.flush_logs={callback:this.logFinalPayload},K));_.M("web_log_cfg_cee_ks")||_.va(_.oc,s72)};
_.O(LD,xV);var L_J=function(){LD.loggingInstance||(LD.loggingInstance=new LD);return LD.loggingInstance};
LD.prototype.logFinalPayload=function(){if(_.M("web_fp_via_jspb")){var K=new EKf,d=_.te();d&&_.aL(K,1,d);d=_.M("jspb_sparse_encoded_pivot")?new Xb([{}]):new Xb;_.Hg(d,380,hnt,K);Az5("finalPayload",d);_.M("web_fp_via_jspb_and_json")&&_.t3("finalPayload",{csn:_.te()})}else _.t3("finalPayload",{csn:_.te()})};
LD.prototype.abortSlisAndFlush=function(){Tdv(mv);lq!=null&&lq.flush()};
LD.prototype.flushInteractionLoggingAttachVes=function(){Dr4(_.cv())};
var s72=function(){var K=_.mD("CLIENT_EXPERIMENT_EVENTS");if(K){var d=rNo();K=_.y(K);for(var f=K.next();!f.done;f=K.next())f=f.value,d(f)&&_.t3("genericClientExperimentEvent",{eventType:f});delete _.hR.CLIENT_EXPERIMENT_EVENTS}};var ke9={};
ke9.YtPlayerBehavior=[_.ra.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 K=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.fU;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;Bqz(function(){K.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.td(this,"pan-down"),_.M("kevlar_pinch_fullscreen")&&_.IC().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.M("kevlar_pinch_fullscreen")&&_.IC().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(K,d,f){var H=this;s5(this.useUnifiedPlayer_());if(this.mainAppPlayer_)s5(!1,"MainAppPlayer already created.");else{var D=_.M("kevlar_player_container_query_killswitch")?this.$.container:_.E(this.hostElement).querySelector("#container");this.mainAppPlayer_=new QA(this.getWebPlayerContextConfig_(),D,function(S){return _.SV(S,H.hostElement)},K,d,f);
this.mainAppPlayer_.api.then(function(S){H.player_=S;H.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&HDH.resolve(S)})}},
loadVideoWithPlayerResponse:function(K,d){var f=this;if(this.useUnifiedPlayer_()){var H=this.watchNextData,D,S=(D=K.videoDetails)==null?void 0:D.videoId,n,u,a;(D=(n=this.watchNextData)==null?void 0:(u=n.currentVideoEndpoint)==null?void 0:(a=u.watchEndpoint)==null?void 0:a.videoId)&&S!=D&&(H=void 0,_.M("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(K,H,d):this.createMainAppPlayer_(K,H,d);this.mainAppPlayer_.api.then(function(){_.Zp(f.hostElement,
"yt-player-updated")})}else this.update(tnz(K,d))},
loadVideoWithPlayerVars:function(K){var d=this;this.useUnifiedPlayer_()?(_.M("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(K):this.createMainAppPlayer_(void 0,void 0,K),this.mainAppPlayer_.api.then(function(){_.Zp(d.hostElement,"yt-player-updated")})):this.update({args:K})},
update:function(K){var d=this;if(this.useUnifiedPlayer_())s5(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(K);var f=K8Y(K.args);f&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==f&&Object.assign(K.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(K).then(function(H){_.Zp(d.hostElement,"yt-player-updated",_.M("kevlar_player_updated_obsolete_player_killswitch")?
H:void 0)})}_.EN(new _.X4("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,d.getPlayerPromise(),2);f=H.yieldResult;if(!f)throw Error("th");K&&d.updatePlayerPlaylist_(K);_.iQ(H)})},
acquireApi_:function(K){var d=this;if(this.useUnifiedPlayer_())s5(!1,"Invalid method call in kevlar_unified_player.");else return _.oc.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(s5(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(f){d.shouldAutoplay_(K)?f.loadVideoByPlayerVars(K.args):f.cueVideoByPlayerVars(K.args)})):this.initPlayerPromise_=this.initPlayerContainer_(K),this.initPlayerPromise_},
initPlayerContainer_:function(K){var d=this;if(this.useUnifiedPlayer_())s5(!1,"Invalid method call in kevlar_unified_player.");else return s5(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.h3(Error("uh")),s5(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.M("kevlar_player_container_query_killswitch")?this.$.container:_.E(this.hostElement).querySelector("#container"),Tqu().then(function(){var f=d.initPlayer_(K);d.playerResolver_.resolve(f);
return f})},
onPlayerReady_:function(K,d){this.useUnifiedPlayer_()?s5(!1,"Invalid method call in kevlar_unified_player."):(K.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&HDH.resolve(K),d(K))},
maybeCallApiMethodOnElement_:function(K,d){if(typeof K[d]==="function")return K[d]()},
maybeAdoptBootstrapPlayer_:function(){var K=window,d,f=(d=K.ytplayer)==null?void 0:d.bootstrapPlayerContainer;if((d=f==null?void 0:f.firstElementChild)&&d.classList.contains("html5-video-player")){var H,D,S=(H=K.ytplayer)==null?void 0:(D=H.bootstrapWebPlayerContextConfig)==null?void 0:D.contextId;H=this.getWebPlayerContextConfig_().contextId;if(S&&S===H){f!==this.playerContainer_&&(f=!1,this.maybeCallApiMethodOnElement_(d,"getPlayerState")===2&&(f=!0),this.playerContainer_.appendChild(d),f||this.maybeCallApiMethodOnElement_(d,
"playVideo"));var n;if((n=K.ytplayer)==null?0:n.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=K.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(K){var d=this;if(this.useUnifiedPlayer_())s5(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(f){d.maybeAdoptBootstrapPlayer_();var H=K?oEN(K):void 0;H&&H==d.bootstrapPlayerResponse_&&(K.loaded=!0);H=d.playerContainer_;var D=d.getWebPlayerContextConfig_();H=Cko(H,K,D);d.player_=H;d.onPlayerReadyEvent_=d.onPlayerReady_.bind(d,d.player_,f);d.player_.addEventListener("onReady",d.onPlayerReadyEvent_);d.player_.addEventListener("innertubeCommand",
d.onPlayerInnerTubeCommand_.bind(d))})},
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(K){K.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(K){K.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var K=_.eq().resolve(_.jC).getCurrentPage();K&&K.getScrollTop()<=0?_.td(this,"pan-down"):_.td(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(K){K.isFullscreen()||K.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(K){K.isFullscreen()&&K.toggleFullscreen()})},
updatePlayerPlaylist_:function(K){var d=this,f,H,D;return _.c(function(S){if(S.nextAddress==1)return f=_.eq().resolve(_.Zd(_.Yf)),H=!!(f&&f.playlistComponent&&f.playlistComponent.loopOn),_.I(S,d.getPlayerPromise(),2);var n=D=S.yieldResult,u=n.updatePlaylist,a=[];if(_.M("kevlar_player_playlist_use_local_index")){var R,F;var z=(F=(R=K.localCurrentIndex)!=null?R:K.currentIndex)!=null?F:0}else{var v;z=(v=K.currentIndex)!=null?v:0}if(K.contents)for(R=0;R<K.contents.length;R++)if((F=K.contents[R])&&F.playlistPanelVideoRenderer)if(Bxp(F)){F=
F.playlistPanelVideoRenderer;v="";F.shortBylineText&&(v=_.qQ(F.shortBylineText));var g="";F.title?g=_.qQ(F.title):F.unplayableText&&(g=_.qQ(F.unplayableText));a.push({author:v,title:g,encrypted_id:F.videoId})}else R<z&&--z;u.call(n,{index:z,list:K.playlistId?K.playlistId:"",loop:H,playlist_title:K.title,playlist_length:a.length,video:a,fetch:0,external_list:"1",title:K.title?K.title:"",playlist_author:K.ownerName?_.qQ(K.ownerName):void 0});_.iQ(S)})},
focusOnPlayer:function(){_.jW(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var K=this.playerContainer_.querySelector(".html5-video-player");K&&(_.Bw(_.eq().resolve(_.Pp)),K.focus())}})},
preparePlayer:function(){var K=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(d){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")d();else{var f=function(){document.removeEventListener("DOMContentLoaded",f);d()};
document.addEventListener("DOMContentLoaded",f)}})).then(function(){return Tqu()}).then(function(){K.initPlayerPromise_||K.preparePlayerJobId_||(K.preparePlayerJobId_=_.va(_.oc,function(){K.initPlayerPromise_||(K.initPlayerPromise_=K.initPlayerContainer_())}))}):_.EN(new _.X4("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(K){this.useUnifiedPlayer_()?s5(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(K)||(K.args.autoplay="0")},
shouldAutoplay_:function(K){if(this.useUnifiedPlayer_())s5(!1,"Invalid method call in kevlar_unified_player.");else{var d=this.get("args.el",K);return d&&d!="detailpage"&&this.isMiniplayerActive_()||d&&(d=="sponsorshipsoffer"||d=="handlesclaiming")&&this.get("args.autoplay",K)=="0"?!1:(K=oEN(K))&&this.get("playerConfig.playbackStartConfig.startPaused",K)?!1:!0}},
isMiniplayerActive_:function(){return _.eq().resolve(_.$b).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var K=this.getPlayer();if(K){var d=K.getPlayerState();_.M("kevlar_player_check_ad_state_on_stop")&&(d=K.getPlayerState(K.getPresentingPlayerType()));d!=5&&K.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(K,d,f){f=f===void 0?!1:f;var H=this,D,S,n,u;return _.c(function(a){if(a.nextAddress==1)return d||(d=H.hostElement),D=H.useUnifiedPlayer_()?!!H.mainAppPlayer_:!!H.initPlayerPromise_,D?_.I(a,H.getPlayerPromise(),2):(f?K.insertBefore(d,K.firstChild):K.appendChild(d),a.return());S=a.yieldResult;n=S.getPlayerState(S.getPresentingPlayerType());u=!1;if(n==-1||n==1||n==3)u=!0;f?K.insertBefore(d,K.firstChild):K.appendChild(d);u&&S.playVideo();S.setSize(NaN,NaN);_.iQ(a)})},
watchNextDataChanged_:function(K){var d=this;K&&(this.useUnifiedPlayer_()&&_.M("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&xI4(this.mainAppPlayer_,K):this.getPlayerPromise().then(function(f){f.updateVideoData(d.computeWatchNextPlayerVars_(K))}))},
computeWatchNextPlayerVars_:function(K){if(this.useUnifiedPlayer_()&&_.M("kevlar_unified_player_update_watch_next_killswitch"))s5(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:K}},
maybeSendAbandonmentPing_:function(){var K=this.getPlayer();K&&K.getPlayerState()!=5&&K.getPlayerState()!=0&&K.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var K=_.mD("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(K=Object.assign({},K),K.rootElementId=this.playerId);K.serializedExperimentIds&&K.serializedExperimentFlags||_.h3(Error("vh"));return K},
hasWebPlayerContextConfig_:function(){return!!_.mD("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(K){this.useUnifiedPlayer_()?s5(!1,"Invalid method call in kevlar_unified_player."):_.SV(K,this.hostElement)},
useUnifiedPlayer_:function(){var K=_.M("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.M("kevlar_unified_player")||K}}];var wbN={};wbN.YtPlaylistPanelBehavior=[_.p.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(K){K=K.detail;if(K.actions.loop!=void 0||K.actions["yt-icons:loop"]!=void 0)this.loopOn=K.actions.loop||K.actions["yt-icons:loop"];if(K.actions.shuffle!=void 0||K.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=K.actions.shuffle||K.actions["yt-icons:shuffle"]},
setMenuData_:function(K){if(!K||!K.playlistButtons||K.isInfinite)return null;for(var d=K.playlistButtons.menuRenderer.topLevelButtons,f=d.length,H=0;H<f;H++)if(d[H].toggleButtonRenderer){var D=d[H].toggleButtonRenderer;D.defaultIcon.iconType=="LOOP"&&this.loopOn?D.isToggled=this.loopOn:D.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(D.isToggled=this.shuffleOn)}return K.playlistButtons}}];var ZuJ=function(K){eW.call(this,K,132);this.isDocument=K===document.documentElement};
_.O(ZuJ,eW);ZuJ.prototype.calculateScrollDelta=function(K,d,f){var H=0;K<d?H=K<d-100?-48:-8:K>d+f&&(H=K>d+f+100?48:8);return H};
ZuJ.prototype.JSC$9296_onMouseMove=function(K){this.isDocument||(K.clientX=K.event_.pageX,K.clientY=K.event_.pageY);eW.prototype.JSC$9296_onMouseMove.call(this,K)};var JV=function(){var K=_.cP.apply(this,arguments)||this;K._noAccessors=!0;K.scrollElement=document.documentElement;K.JSC$12258_dragListGroup=null;K.dragScrollSupport=null;K.onDraggerCreated=function(d){var f=d.JSC$9292_dragger;f.scrollTarget_=K.scrollElement;d=d.draggerEl;f&&d.menuOpened&&f.setEnabled(!1)};
K.onDragStart=function(d){var f=d.draggerEl;d=d.currDragItem;var H=Object.assign({},d==null?void 0:d.data);H.trackingParams=void 0;f.data=H;f.style.position="absolute";f.style.width=(d==null?void 0:d.clientWidth)+"px";f.style.zIndex="2030";f.onDrag&&f.onDrag();_.M("web_owner_document_fallback_killswitch")?(d=document.querySelector("ytd-app"))&&_.E(d).appendChild(f):(d=_.oL(f),(H=d.querySelector("ytd-app"))?_.E(H).appendChild(f):d.body.appendChild(f));K.dragScrollSupport=new ZuJ(K.scrollElement);K.dragScrollSupport.horizontalScrolling_=
!1;f=K.dragScrollSupport;f.constrainScroll_=!!f.margin_&&!1};
K.onDrop=function(d){K.handleDrop(d);K.dragScrollSupport&&(_.kh(K.dragScrollSupport),K.dragScrollSupport=null)};
K.onReorderableScroll=function(){if(K.JSC$12258_dragListGroup){var d=K.JSC$12258_dragListGroup;OdL(d,d.currDragItem_)}};
return K};
_.O(JV,_.cP);JV.prototype.detached=function(){_.evJ(this)};
_.evJ=function(K){K.JSC$12258_dragListGroup&&(_.nx(K.JSC$12258_dragListGroup,UYH,K.onDragStart),_.nx(K.JSC$12258_dragListGroup,XGt,K.onDragStart),K.JSC$12258_dragListGroup.dispose(),K.JSC$12258_dragListGroup=null);K.dragScrollSupport&&(_.kh(K.dragScrollSupport),K.dragScrollSupport=null);K.scrollElement.removeEventListener("scroll",K.onReorderableScroll)};
_.pbB=function(K,d,f,H){H=H===void 0?"":H;_.evJ(K);f&&(K.scrollElement=f);K.JSC$12258_dragListGroup=new $1;K.JSC$12258_dragListGroup.hysteresisDistance_=2;Msf(K.JSC$12258_dragListGroup,d);K.JSC$12258_dragListGroup.draggerElClasses_=UY("dragging").split(" ");H&&PBN(K.JSC$12258_dragListGroup,function(D){var S=D||document,n=null;S.getElementsByClassName?n=S.getElementsByClassName(H)[0]:n=UJs("*",H,D);return n||D});
_.zG(K.JSC$12258_dragListGroup,aEs,K.onDraggerCreated);_.zG(K.JSC$12258_dragListGroup,UYH,K.onDragStart);_.zG(K.JSC$12258_dragListGroup,XGt,K.onDrop);K.JSC$12258_dragListGroup.init();K.scrollElement.addEventListener("scroll",K.onReorderableScroll,{passive:!0})};
JV.prototype.handleDrop=function(){};
_.x$.Object.defineProperties(JV.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.x([_.A({value:100}),_.B("design:type",Number)],JV.prototype,"scrollMargin",void 0);JV=_.x([_.uL()],JV);_.K_8=[JV.prototype];_.sL={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(K,d,f){var H=this.getClickTarget_(d);if(H&&this.isClickAllowed_(H)){d.preventDefault();K=(0,_.PR.unsafeClone)(K);var D=this.getContainerBoundingRect();d=this.getRelativeClickXy_(d,D);this.expandEndpointUrlMacros_(K,{NX:d[0],NY:d[1],NB:H.code});f&&this.truncateWebCommendMetadataUrl_(K);_.Zp(this.hostElement,"yt-navigate",{endpoint:K})}},
getClickTarget_:function(K){if(!this.clickTargetMap)return null;K=_.qn(K)||[];K=_.y(K);for(var d=K.next();!d.done;d=K.next()){d=d.value;if(d===_.E(this.hostElement).querySelector("#menu"))break;if(d=this.clickTargetMap.get(d.id))return d}return null},
getRelativeClickXy_:function(K,d){var f=K.detail.x,H=K.detail.y;_.M("use_on_click_for_desktop_display_ad")&&K.clientX!=null&&K.clientY!=null&&(f=K.clientX,H=K.clientY);K=Math.round(f-d.left);d=Math.round(H-d.top);return K<0||d<0?[null,null]:[K,d]},
getContainerBoundingRect:function(){return _.E(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(K,d){for(var f=_.y(K.loggingUrls||[]),H=f.next();!H.done;H=f.next())H=H.value,H.baseUrl&&(H.baseUrl=g0(H.baseUrl,d));K.urlEndpoint&&K.urlEndpoint.url&&(K.urlEndpoint.url=g0(K.urlEndpoint.url,d));K.commandMetadata&&K.commandMetadata.webCommandMetadata&&K.commandMetadata.webCommandMetadata.url&&(K.commandMetadata.webCommandMetadata.url=g0(K.commandMetadata.webCommandMetadata.url,d))},
truncateWebCommendMetadataUrl_:function(K){if(K.commandMetadata&&K.commandMetadata.webCommandMetadata&&K.commandMetadata.webCommandMetadata.url){var d=K.commandMetadata.webCommandMetadata.url,f=d.indexOf("&pp=");if(f>0){var H=d.indexOf("&",f+1);K.commandMetadata.webCommandMetadata.url=H>f&&H<d.length?d.slice(0,f)+d.slice(H):d.slice(0,f)}}},
configureClickTargets:function(K,d,f){this.containerId=K;this.clickTargetMap=new Map;K=_.y(d);for(d=K.next();!d.done;d=K.next())if(d=d.value,d.location){var H=f.get(d.location);H&&(_.pU(_.E(this.hostElement).querySelector("#"+H),"yt-simple-endpoint",this.isClickAllowed_(d)),this.clickTargetMap.set(H,d))}},
isClickAllowed_:function(K){return K.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||K.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||K.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||K.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.kV={};
_.kV.YtLazyListBehavior=[_.xc.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 K=(this.constructor.generatedFrom||this).observers;K||(K=[]);K.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
K}},
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 K=this.renderElementsOutsideVisibleArea_;K&&(a_v(K,4),K.processSignal())},
deepLazyListObserver_:function(K){var d=this;if(K){var f=K.value||[];if(this.itemsPath==K.path){var H=this.nonDeferredItemCount;K=0;H>-1&&f.length>H&&(K=_.mD("REMAINING_DOVA_DEFERRED_CHUNKS",-1));K>0?(H>0&&(H=f.slice(0,H),this.setInitialItemsOnDataChanged(H)),(H=this.renderElementsOutsideVisibleArea_)?H.cancel():(H=this.renderElementsOutsideVisibleArea_=new _.Bn(2,"eocs"),_.xnO(window,"scroll",function(){return d.renderDeferredElements()})),_.Jj(H,function(){d.setInitialItemsOnDataChanged(f)}),_.bx("REMAINING_DOVA_DEFERRED_CHUNKS",
K-1)):this.setInitialItemsOnDataChanged(f)}else if(this.itemsPath+".splices"==K.path)this.onItemsUpdated_(f);
else H="shownItems"+K.path.substr(this.itemsPath.length),this.useSignals&&H==="shownItems.length"||this.notifyPath(H,K.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(K){K&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(K),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(K){K=K.indexSplices;for(var d=0,f=K.length;d<f;d++){var H=K[d];if(H.index<this.shownCount&&(H.removed&&this.splice("shownItems",H.index,H.removed.length),H.addedCount)){var D=H.object.slice(H.index,H.index+H.addedCount);H=["shownItems",H.index,0];H.push.apply(H,D);this.splice.apply(this,H)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(K){this.cancelPendingTasks_();K||(K=[]);this.items_=K;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&&(_.lx("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.jW(this,this.tryRenderChunk_)))},
fillRange_:function(K,d){this.canShowMore&&this.items_&&(K=this.items_.slice(K,d),K.unshift("shownItems"),this.push.apply(this,K),this.shownCount=d,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var K=this;this.canShowMore&&_.mx(this,"renderChunk",function(){K.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.lx("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.uX(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var K=this.renderElementsOutsideVisibleArea_;K&&(K.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var K=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(K-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=K;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(K){return Math.ceil(1E3/K)},
onCanShowMoreUpdated_:function(K){this.data&&this.items_!==null&&(K?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(K){!this.shouldUseTaskManager()&&this.data&&(!K&&this.canShowMore?(_.g4O(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):K&&this.partiallyRenderedItems_.has(this.items_)&&(_.M("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var e_;_.wa={};
e_=function(){var K=_.cP.apply(this,arguments)||this;K.atStart=!0;K.atEnd=!0;K.startIndex=0;K.endIndex=0;K.scrollCount=0;K.initialStartIndex=0;K.disableScrollEventListener=!1;K.useFloorScrolling=!1;K.isSearch=!1;K.dragging=!1;K.dragMouseStart=0;K.dragOffsetStart=0;K.disableWheelScroll=!1;K.centerListItems=!1;K.offset=0;K.minComponentWidth=0;K.marginWidthRight=0;K.marginWidthLeft=0;K.setButtonsStateRequested=!1;K.itemsVisibilityObserver=null;K.fullyVisibleItemsIndices=[];K.JSC$12269_onWheelScroll=function(d){if(K.isSearch&&
!K.disableWheelScroll&&_.M("desktop_enable_dmpanel_wheel_scroll")){var f=d.shiftKey?Math.abs(d.deltaY)>Math.abs(d.deltaX)?d.deltaY:d.deltaX:d.deltaX;f!==0&&(d.preventDefault(),K.ytLazyListBehavior.fillRemainingListItems(),K.offset+=f,Zv(K),K.reposition_())}};
K.onPointerDown=function(d){d18(K)&&(K.dragMouseStart=d.clientX,K.dragOffsetStart=K.offset,K.dragging=!0)};
K.onPointerMove=function(d){d18(K)&&K.dragging&&(K.ytLazyListBehavior.fillRemainingListItems(),K.offset=K.dragOffsetStart-(d.clientX-K.dragMouseStart),Zv(K),K.reposition_())};
K.onPointerUp=function(){d18(K)&&(K.dragging=!1)};
return K};
_.O(e_,_.cP);var fcJ=function(K){var d=_.E(K.hostElement).querySelector("#items").children;if(!d)return 0;var f=0;K=_.y(K.fullyVisibleItemsIndices);for(var H=K.next();!H.done;H=K.next())f+=d[H.value].clientWidth;return f},d18=function(K){return K.isSearch&&_.M("desktop_enable_dmpanel_click_drag_scroll")};
e_.prototype.created=function(){this.cachedViewportWidth=_.mD("initialInnerWidth")||window.innerWidth;this.JSC$12269_cachedViewportHeight=_.mD("initialInnerHeight")||window.innerHeight;_.mD("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.bx("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
e_.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.M("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();HC8(this)};
e_.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.M("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var K;(K=this.itemsVisibilityObserver)==null||K.disconnect();this.itemsVisibilityObserver=null;var d;(d=this.itemsObserver)==null||d.disconnect()};
var HC8=function(K){var d=_.E(K.hostElement).querySelector("#scroll-container");if(d){if(!K.itemsVisibilityObserver){var f=window.getComputedStyle(d).marginRight;K.itemsVisibilityObserver=new IntersectionObserver(function(H){D1J(K,H)},{root:d,
rootMargin:f,threshold:.98})}if(d=_.E(K.hostElement).querySelector("#items"))K.itemsObserver=new du9(d,function(H){Vns(K,H)})}},Vns=function(K,d){SlB(K)&&(Array.from(d.addedNodes).filter(function(f){return f.nodeType===Node.ELEMENT_NODE}).forEach(function(f){K.itemsVisibilityObserver&&K.itemsVisibilityObserver.observe(f)}),Array.from(d.removedNodes).filter(function(f){return f.nodeType===Node.ELEMENT_NODE}).forEach(function(f){K.itemsVisibilityObserver&&K.itemsVisibilityObserver.unobserve(f)}))},
D1J=function(K,d){var f=new Set(K.fullyVisibleItemsIndices);
d=_.y(d);for(var H=d.next();!H.done;H=d.next()){H=H.value;var D=H.target.parentElement;D?(D=Array.from(D.children).indexOf(H.target),H.isIntersecting?f.add(D):f.has(D)&&f.delete(D)):_.h3(new _.X4("Parent element not found",H.target.nodeName))}K.fullyVisibleItemsIndices=Array.from(f).sort(function(S,n){return S-n});
f.size===0?_.h3(new _.X4("No visible entries in horizontal list")):(K.startIndex=K.fullyVisibleItemsIndices[0],K.endIndex=K.fullyVisibleItemsIndices[K.fullyVisibleItemsIndices.length-1])},SlB=function(K){K.data?K=(K=K.data)&&K.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===K.itemSizeConstraint:!1:K=!1;
return K};
_.V=e_.prototype;_.V.addScrollEventListeners=function(){var K=_.E(this.hostElement).querySelector("#scroll-container");K.style.touchAction="pan-y";K.addEventListener("wheel",this.JSC$12269_onWheelScroll);K.addEventListener("pointerdown",this.onPointerDown);K.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.V.removeScrollEventListeners=function(){var K=_.E(this.hostElement).querySelector("#scroll-container");K.removeEventListener("wheel",this.JSC$12269_onWheelScroll);K.removeEventListener("pointerdown",this.onPointerDown);K.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.V.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.jW(this,this.setStartIndex,[this.initialStartIndex])};
_.V.reposition_=function(){var K=_.mD("HTML_DIR")=="rtl"?"":"-",d=_.E(this.hostElement).querySelector("#items");d&&(d.style.transform="translateX("+K+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.V.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.jW(this,this.setButtonsState_))};
_.V.setButtonsState_=function(){this.setButtonsStateRequested=!1;var K=_.E(this.hostElement).querySelector("#items").firstElementChild;if(K){this.minComponentWidth||(this.minComponentWidth=yO4(this,K));K=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;var d=_.E(this.hostElement).querySelector("#items").clientWidth,f=this.get(this.ytLazyListBehavior.itemsPath,this);if(f){var H=Math.round(K/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+H,f.length)-1)}this.ytLazyListBehavior.canShowMore?d+this.minComponentWidth>=this.offset+K&&(this.atEnd=!1):this.atEnd=this.offset+K>=d-20?!0:!1;this.atStart=this.offset<=20}};
_.V.setStartIndex=function(K){if(!this.minComponentWidth){var d=_.E(this.hostElement).querySelector("#items").firstElementChild;if(!d)return;this.minComponentWidth=yO4(this,d)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*K;Zv(this);this.reposition_()};
_.V.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.fT();var K=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;_.M("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=yO4(this,_.E(this.hostElement).querySelector("#items").firstElementChild));K=this.useFloorScrolling?Math.floor(K/this.minComponentWidth)||1:Math.round(K/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&nEs(this);this.offset+=SlB(this)?
fcJ(this):K*this.minComponentWidth;Zv(this);this.reposition_();this.scrollCount++};
_.V.prevClick_=function(){var K=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;K=this.useFloorScrolling?Math.floor(K/this.minComponentWidth)||1:Math.round(K/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=SlB(this)?fcJ(this):this.minComponentWidth*this.scrollCount-1):this.offset-=SlB(this)?fcJ(this):K*this.minComponentWidth;this.centerListItems&&nEs(this);Zv(this);this.reposition_()};
_.V.onIronResize_=function(){this.resizeSupportEnabled&&_.jW(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.V.onItemsTransitionEnd_=function(K){_.Qm(K)===_.E(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.V.onChildElementFocus_=function(K){K=K.target.closest("#items > *");var d=_.E(this.hostElement).querySelector("#scroll-container");if(d.contains(K)){if(_.M("web_horizontal_list_behavior_focus_killswitch"))if(K.offsetLeft<this.offset)this.offset=Math.abs(K.offsetLeft)<K.clientWidth?0:K.offsetLeft;else if(K.offsetLeft+K.clientWidth>this.offset+d.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.fT(),this.offset=K.offsetLeft+K.clientWidth-d.clientWidth;else return;else{var f=_.E(this.hostElement).querySelector("#items"),
H=_.mD("HTML_DIR")==="rtl",D=H?f.clientWidth-K.offsetLeft:K.offsetLeft;f=H?f.clientWidth-(K.offsetLeft+K.clientWidth):K.offsetLeft+K.clientWidth;var S=H?D>this.offset+d.clientWidth:D<this.offset,n=H?f<this.offset:f>this.offset+d.clientWidth,u=H?S:n;if(H?n:S)d=H?f:D,this.offset=Math.abs(d)<K.clientWidth?0:d;else if(u)this.ytLazyListBehavior.fillRemainingListItems(),_.fT(),this.offset=(H?D:f)-d.clientWidth;else return}Zv(this);this.reposition_()}};
_.V.observeShownItems_=function(){this.reset()};
_.V.checkComponentWidthResize=function(){var K=_.E(this.hostElement).querySelector("#items").firstElementChild;K&&(K=yO4(this,K),this.centerListItems||K!==this.minComponentWidth)&&(this.minComponentWidth=K,this.offset=K*this.scrollCount,this.centerListItems&&nEs(this),Zv(this),this.reposition_())};
var yO4=function(K,d){var f=window.getComputedStyle(d).marginRight;f=Math.floor(Number(f.replace("px","")));var H=window.getComputedStyle(d).marginLeft;H=Math.floor(Number(H.replace("px","")));K.centerListItems&&!K.marginWidthRight&&(K.marginWidthRight=f,K.marginWidthLeft=H);return K.resizeSupportEnabled?d.getBoundingClientRect().width+f:d.offsetWidth+f},Zv=function(K){var d=_.E(K.hostElement).querySelector("#scroll-container").clientWidth,f=_.E(K.hostElement).querySelector("#items").clientWidth;
K.offset<0?K.offset=0:K.offset+d>=f&&(K.offset=f-d)},nEs=function(K){K.offset-=(_.E(K.hostElement).querySelector("#scroll-container").clientWidth+K.marginWidthRight-K.minComponentWidth)/2-K.marginWidthLeft};
_.x$.Object.defineProperties(e_.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var K=_.mD("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(K==-1)K=this.JSC$12269_cachedViewportHeight,K=K>1320?5:K>1020?4:K>730?3:K>430?2:1;else if(K==0)return 0;_.bx("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",K-1);K=_.mD("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(K>-1)return K;K=this.cachedViewportWidth;K=K>1600?6:K>1400?5:K>1300?4:K>1090?5:K>870?4:K>660?3:2;_.bx("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
K);return K},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.M("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
e_.prototype.observeShownItems_=e_.prototype.observeShownItems_;e_.prototype.onChildElementFocus_=e_.prototype.onChildElementFocus_;e_.prototype.onItemsTransitionEnd_=e_.prototype.onItemsTransitionEnd_;e_.prototype.onIronResize_=e_.prototype.onIronResize_;e_.prototype.prevClick_=e_.prototype.prevClick_;e_.prototype.nextClick_=e_.prototype.nextClick_;e_.prototype.setButtonsState_=e_.prototype.setButtonsState_;e_.prototype.requestButtonsStateUpdate_=e_.prototype.requestButtonsStateUpdate_;
e_.prototype.reposition_=e_.prototype.reposition_;e_.prototype.reset=e_.prototype.reset;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kV.YtLazyListBehavior),_.B("design:type",Object)],e_.prototype,"ytLazyListBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],e_.prototype,"atStart",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],e_.prototype,"atEnd",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"startIndex",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"endIndex",void 0);_.x([_.A({value:6}),_.B("design:type",Number)],e_.prototype,"initialCount",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"scrollCount",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"initialStartIndex",void 0);
_.x([_.A(),_.B("design:type",Object)],e_.prototype,"disableScrollEventListener",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"supportComponentResize",void 0);_.x([_.A({value:function(){var K=this;return function(){return K.prevClick_()}}}),
_.B("design:type",Function)],e_.prototype,"boundPrevClick",void 0);_.x([_.A({value:function(){var K=this;return function(){return K.nextClick_()}}}),
_.B("design:type",Function)],e_.prototype,"boundNextClick",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"useFloorScrolling",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"isSearch",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"dragging",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"dragMouseStart",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"dragOffsetStart",void 0);
_.x([_.A(),_.B("design:type",Object)],e_.prototype,"disableWheelScroll",void 0);_.x([_.A(),_.B("design:type",Object)],e_.prototype,"centerListItems",void 0);_.x([_.VV("iron-resize"),_.SP("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e_.prototype,"onIronResize_",null);_.x([_.VV("transitionend"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],e_.prototype,"onItemsTransitionEnd_",null);
_.x([_.VV("focusin"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],e_.prototype,"onChildElementFocus_",null);_.x([_.SP("shownItems"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e_.prototype,"observeShownItems_",null);e_=_.x([_.uL()],e_);_.wa.YtdHorizontalListBehavior=[];_.wa.YtdHorizontalListBehavior.push(_.Mg,_.p.YtRendererBehavior,_.kV.YtLazyListBehavior,_.lO.YtdGuideStateAwareBehavior,e_.prototype);var sIG=["APP_STATE","PI"];var iC2=_.Am(["about:blank"]),cOs={pushState:window.history.pushState,replaceState:window.history.replaceState};var pD=function(K){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=K;this.internalPushState=K.pushState.bind(K);this.internalReplaceState=K.replaceState.bind(K)};
pD.prototype.init=function(){this.initialized=!0};
pD.prototype.pushState=function(K,d){this.initialized||this.init();this.internalPushState&&this.internalPushState(K,"",d)};
pD.prototype.replaceState=function(K,d){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(K,"",d)};
pD.prototype.getState=function(){return this.history&&this.history.state};var uZk=function(K){var d=function(){var f=K.apply(this,arguments)||this;f.boundHistoryPushState=!1;f.boundHistoryReplaceState=!1;f.debugInfo={};return f};
_.O(d,K);d.prototype.init=function(){var f=_.RQ("IFRAME");_.$G(f,_.p7(iC2));f.sandbox="allow-same-origin";f.style.display="none";this.iframe=f;document.body.appendChild(f);this.bindHistoryStateFunctions();K.prototype.init.call(this)};
d.prototype.bindHistoryStateFunctions=function(){var f=this,H=[],D;this.iframe&&((D=this.iframe.contentWindow)==null?0:D.history)&&(D=this.iframe.contentWindow.history)&&(H.push(D),Object.getPrototypeOf(D)&&H.push(Object.getPrototypeOf(D)));window.history&&H.push(window.history);D=window.history;Object.getPrototypeOf(D)&&H.push(Object.getPrototypeOf(D));H.push(cOs);D=function(n){for(var u=null,a=0;a<H.length;a++){var R=H[a][n];if(typeof R==="function"){u=R.bind(window.history);f.debugInfo[n]=a;break}}return u};
if(!this.boundHistoryReplaceState){var S=D("replaceState");S&&(this.internalReplaceState=S,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(D=D("pushState"))&&(this.internalPushState=D,this.boundHistoryPushState=!0)};
return d}(pD),acf=function(){return uZk.call(this,window.history)||this};
_.O(acf,uZk);acf.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Kv=function(K){this.browserHistory=K;this.initialized=!1};
Kv.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Kv.prototype.pushState=function(K,d){this.initialized||this.init();this.browserHistory.pushState(K,d)};
Kv.prototype.replaceState=function(K,d){this.initialized||this.init();this.browserHistory.replaceState(K,d)};
Kv.prototype.handlePopstate=function(K){return K.state};_.Ic6=function(K,d,f,H,D){this.endpoint=K;this.forward=d;this.historyEntry=f;this.JSC$26542_savedComponentState=H;this.legacyBorder=D===void 0?!1:D};var U1s=function(K,d){this.rootData=K;this.scrollTop=d};var R1=new _.xn("PAGE_REQUEST_TOKEN"),CZH=new _.xn("FETCH_PBJ_TOKEN");_.dJ=new _.xn("EPHEMERAL_STORE_TOKEN");_.fv=function(K){this.data=Object.assign({},K);var d;(d=this.data.innertubeResponse)==null||delete d.frameworkUpdates};
_.fv.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.k_)()};
_.ed=function(K){return Object.assign({},K.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var Rff=function(){this.maxSize=100;this.timeToDataCache=new Map};
Rff.prototype.get=function(K){var d=this.timeToDataCache.get(K);d&&(this.timeToDataCache.delete(K),this.timeToDataCache.set(K,d));if(d&&d.rootData&&(_.M("web_use_response_store_for_history_cache")||_.M("mweb_use_new_history_manager"))){var f=_.eq().resolve(_.dJ),H=F_t(d),D=!!H;if(H){if(H.content){var S=HI(f,H.content);D&&S?d.rootData.response=_.ed(S):D=!1}H.player&&(S=HI(f,H.player),D&&S?d.rootData.playerResponse=_.ed(S):D=!1);H.reelSequence&&(f=HI(f,H.reelSequence),D&&f?d.rootData.reelWatchSequenceResponse=
_.ed(f):D=!1)}D||(this.timeToDataCache.delete(K),d=void 0)}return d};
Rff.prototype.set=function(K,d){if(d.rootData&&(_.M("web_use_response_store_for_history_cache")||_.M("mweb_use_new_history_manager"))){var f=F_t(d),H=Object.assign({},d.rootData);f&&(f.content&&d.rootData.response&&(zf6(this,f.content,d.rootData.response),H.response=null),f.player&&d.rootData.playerResponse&&(zf6(this,f.player,d.rootData.playerResponse),H.playerResponse=null),f.reelSequence&&d.rootData.reelWatchSequenceResponse&&(zf6(this,f.reelSequence,d.rootData.reelWatchSequenceResponse),H.reelWatchSequenceResponse=
null));d=new U1s(H,d.scrollTop)}this.timeToDataCache.has(K)?this.timeToDataCache.delete(K):this.timeToDataCache.size>=this.maxSize&&(f=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(f.value));this.maxSize!==0&&this.timeToDataCache.set(K,d)};
Rff.prototype.clear=function(){this.timeToDataCache.clear()};
var F_t=function(K){var d=_.eq().resolve(_.Zd(R1)),f;if((f=K.rootData)==null?0:f.endpoint)return d==null?void 0:kcX(d,K.rootData.endpoint);var H;_.h3(new _.X4("History snapshot response data does not contain endpoint",(H=K.rootData)==null?void 0:H.url));return null},zf6=function(K,d,f){if(K.maxSize>0){var H;
(K=(H=f.responseContext)==null?void 0:H.maxAgeSeconds)&&Number(K)>0&&(H=_.eq().resolve(_.dJ),f=ZW(f,K),H.put(d,new _.fv(f)))}};var XVL=function(K,d,f){this.endpoint=d;this.JSC$26547_savedComponentState=f===void 0?null:f;this.entryTime=K};var KJo=1;var DG=function(K){var d=function(){var f=K.apply(this,[].concat(_.Me(_.Pg.apply(0,arguments))))||this;f.historyEntryTime=0;f.historySnapshotCache=f.createHistoryCache();return f};
_.O(d,K);d.prototype.createHistoryCache=function(){return new Rff};
d.prototype.saveAndReplace=function(f,H,D){var S=window.location.href;var n=n===void 0?{}:n;var u=(u=this.browserHistory.getState())&&u.entryTime?u.entryTime:dPo();f=this.createNewHistoryEntry(f,n,u);this.saveSnapshot(u,H,D);this.replaceState(f,S||window.location.href)};
d.prototype.saveAndPush=function(f,H,D,S,n){n=n===void 0?{}:n;this.saveSnapshot(this.historyEntryTime,D,S);D=this.historySnapshotCache;S=this.historyEntryTime;var u=D.timeToDataCache.keys();u=_.y(u);for(var a=u.next();!a.done;a=u.next())a=a.value,a>S&&D.timeToDataCache.delete(a);H=this.createNewHistoryEntry(H,n);this.pushState(H,f)};
d.prototype.saveSnapshot=function(f,H,D){this.historySnapshotCache.set(f,new U1s(H,D))};
d.prototype.createNewHistoryEntry=function(f,H,D){D=D===void 0?dPo():D;return new XVL(D,f,H)};
d.prototype.handlePopstate=function(f){var H=K.prototype.handlePopstate.call(this,f),D=null,S=null,n=!1,u=null;H&&H.entryTime&&(u=this.historySnapshotCache.get(H.entryTime)||null,n=H.entryTime>this.historyEntryTime,this.historyEntryTime=H.entryTime,D=H.endpoint,S=H.JSC$26547_savedComponentState);this.handleHistoryCacheLoad(new _.Ic6(D,n,u,S),f);return H};
d.prototype.pushState=function(f,H){Number(f==null?void 0:f.entryTime)>=0&&(this.historyEntryTime=f.entryTime);K.prototype.pushState.call(this,f,H)};
d.prototype.replaceState=function(f,H){Number(f==null?void 0:f.entryTime)>=0&&(this.historyEntryTime=f.entryTime);K.prototype.replaceState.call(this,f,H)};
d.prototype.handleHistoryCacheLoad=function(){};
return d}(Kv),vEH=function(){var K=DG.call(this,new acf)||this;
K.dispatchElement=null;K.entryIndex=0;return K};
_.O(vEH,DG);_.V=vEH.prototype;_.V.init=function(K){K=K===void 0?!0:K;DG.prototype.init.call(this);this.initialized||(K||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.V.handlePopstate=function(K){var d=null;K.state||(d="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return DG.prototype.handlePopstate.call(this,K);var f=new CustomEvent("yt-history-pop",{cancelable:!0});_.ev(this.dispatchElement,"yt-history-pop",[f,{errorMsg:d}]);_.p1(this.dispatchElement,"yt-close-all-popups-action");if(!f.defaultPrevented){f=_.eq().resolve(_.jC);d=f.getCurrentData();var H=f.getCurrentPage();f=0;H?(H=_.ev(this.dispatchElement,"yt-get-page-offset",
[H]),H.length>0&&(f=H[0])):_.h3(new _.X4("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:d?d.page:"undefined"}));d&&(d.csn=_.te());this.saveSnapshot(this.historyEntryTime,d,f)}return DG.prototype.handlePopstate.call(this,K)};
_.V.handleHistoryCacheLoad=function(K,d){K.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.y(_.p1(this.dispatchElement,"yt-history-will-navigate",[d])).next().value||_.ev(this.dispatchElement,"yt-history-load",[d,K]))};
_.V.pushState=function(K,d){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var f=new _.X4("history.pushState is not a function",this.getDebugString());_.$7(f)}DG.prototype.pushState.call(this,K,d)};
_.V.replaceState=function(K,d){if(!this.browserHistory.boundHistoryReplaceState){var f=new _.X4("history.replaceState is not a function",this.getDebugString());_.$7(f)}DG.prototype.replaceState.call(this,K,d)};
_.V.saveAndPush=function(K,d,f,H,D){D=D===void 0?{}:D;f&&(f.csn=_.te());DG.prototype.saveAndPush.call(this,K,d,f,H,D)};
_.V.getDebugString=function(){var K=[];this.initialized&&K.push("i");this.browserHistory.boundHistoryReplaceState&&K.push("bhr");this.browserHistory.boundHistoryPushState&&K.push("bhs");"replaceState"in this.browserHistory.debugInfo&&K.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&K.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&K.push("ei:"+String(this.entryIndex));return K.join(",")};
_.V3=function(K,d){K.init(!0);var f=K.browserHistory.getState();K.replaceState(f,wH(d))};
vEH.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.SE=new _.xn("DESKTOP_HISTORY_MANAGER_TOKEN");var MnH=[10,20,30,40,50,60],y3=function(){this.currentPartitionIndex=0},Pkf=function(K){JQL({mainAppWeb:_.Go(),
survivalSli:{partitionMinute:K,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},gEs=function(K){JQL({mainAppWeb:_.Go(),
survivalSli:{partitionMinute:K,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},OCB=function(K){return K.currentPartitionIndex>=0&&K.currentPartitionIndex<MnH.length?MnH[K.currentPartitionIndex]:-1},Nqf=function(K){return K.currentPartitionIndex>0&&K.currentPartitionIndex-1<MnH.length?MnH[K.currentPartitionIndex-1]:-1};
y3.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var K=Nqf(this);K>0&&gEs(K);K=OCB(this);K>0&&Pkf(K);Yls(this)}};
var Yls=function(K){var d=OCB(K);if(d>0){var f=Nqf(K);f<0&&(f=0);K.intervalId=_.oc.addJob(function(){var H=Nqf(K);H>0&&gEs(H);H=OCB(K);H>0&&Pkf(H);Yls(K)},3,(d-f)*6E4);
K.currentPartitionIndex+=1}else K.currentPartitionIndex=-1};var tn2=function(){this.skipNextNavigation=!1},oE6=function(K,d,f){if(!d)return!1;
if(K.skipNextNavigation)return K.skipNextNavigation=!1;if(_.P(f,_.TE))return!1;var H,D,S;if((H=_.P(f,_.is))==null?0:(D=H.browseEndpointContextSupportedConfigs)==null?0:(S=D.browseEndpointContextMainConfig)==null?0:S.skipConfirmation)return!1;var n;return((n=_.P(d.commandMetadata,_.B0))==null?void 0:n.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
tn2.prototype.showConfirmationDialog=function(K,d){this.navigateParams=d;this.customConfirmationCommand?_.eq().resolve(_.pQ).resolveCommand(this.customConfirmationCommand):(d={openPopupAction:{popup:{confirmDialogRenderer:{title:_.rB(_.iB("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.rB(_.iB("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.rB(_.iB("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.rB(_.iB("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.rU.getInstance().triggerAction("yt-open-popup-action",d,K))};
tn2.prototype.cancelPendingNavigation=function(){var K;((K=this.navigateParams)==null?void 0:K.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var $1f=function(){},hff=function(K,d,f,H,D,S,n){f=f===void 0?{}:f;
n=n===void 0?{}:n;var u=_.im.instance,a,R=(a=_.P(d,_.TE))==null?void 0:a.url;return R?YCY(u,R,f,window.location.href,function(F,z){EE4(K,F,z,!1,!0,f,S,H)},function(){return!1}):bf(u,d,f,window.location.href,us(d),function(F,z){EE4(K,F,z,!1,!0,f,S,H)},D,n)},EE4=function(K,d,f,H,D,S,n,u){if(!K.JSC$12327_chunkHandler)if(f.page==="watch"||f.page==="learning_journey_watch")if(D||H){if(_.M("kevlar_continue_playback_without_player_response")){var a;
var R=(a=_.P(u,_.qu))==null?void 0:a.videoId}K.JSC$12327_chunkHandler=new UZf(_.xP,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:H,previousVideoId:R},tempData:S},n)}else K.JSC$12327_chunkHandler=new ivL(_.xP);else f.page==="shorts"&&D&&!H?K.JSC$12327_chunkHandler=new IGs(_.xP,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:S},n):K.JSC$12327_chunkHandler=new cS8(n);K.JSC$12327_chunkHandler.processChunk({endpoint:d,data:f});return K.JSC$12327_chunkHandler.eL.promise},
bCs=function(K,d,f,H,D){(f=_.HWJ(f))&&EE4(K,d,f,!1,!0,H,void 0,D)};var m1t=function(){this.pendingNavigationPromise=null};
_.V=m1t.prototype;_.V.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.V.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.V.addEventListener=function(){throw Error("wh");};
_.V.dispatchEvent=function(){throw Error("wh");};
_.V.removeEventListener=function(){throw Error("wh");};var lc2=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],nv=function(){_.iJ.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];W_f(this)};
_.O(nv,_.iJ);nv.prototype.verifyUser=function(){var K=W_f(this),d=K.logout;if(!K.sessionChange)return!0;this.dispatchEvent("ytsessionchange");d&&this.dispatchEvent("ytuserinvalid");return!1};
var W_f=function(K){var d=lc2.map(function(D){var S;return(S=_.I0.get(D))!=null?S:""}),f=d.some(function(D,S){return K.sessionCookies&&K.sessionCookies[S]!==""&&D===""}),H=d.some(function(D,S){return K.sessionCookies&&K.sessionCookies[S]!==D});
K.sessionCookies=d;return{logout:f,sessionChange:H}};
nv.prototype.clearTimeout=function(){this.scheduledJobId&&(_.oc.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var Sen=new _.xn("POSTMESSAGE_TUNNEL_TOKEN");var HSX=["/parent_tools","/file_download","/artist_roster"],iSN=[siz,kKo,wNz,ern,ZpB,J$p,pNB,KuO];var GPB=new _.xn("APP_ROOT");var iZ=new _.xn("NAVIGATION_CONFIRMATION_SERVICE");var AOB="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),Tq4=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
cI=function(K,d){this.pendingNavigationPromise=null;this.JSC$12345_clientRoot=K;this.historyManager=d;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new $1f;this.debugString=K.is;K={"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};_.qF(_.rU.getInstance(),K,this.JSC$12345_clientRoot)},Ck9,x1t,L_s,Bq2,jIv;
_.O(cI,m1t);cI.prototype.reload=function(){_.WW(window.location.href)};
var S$H=function(K){K.currentEndpoint&&_.P(K.currentEndpoint,_.IM)?K.reload():K.currentEndpoint&&K.navigate(K.currentEndpoint,!0,void 0,{disableCache:!0})};
cI.prototype.navigate=function(K,d,f,H,D,S,n,u){d=d===void 0?!1:d;f=f===void 0?{}:f;H=H===void 0?{}:H;var a=_.eq().resolve(iZ),R;if(!n&&oE6(a,(R=this.currentEndpoint)!=null?R:void 0,K))return a.showConfirmationDialog(this.JSC$12345_clientRoot.parentElement,{endpoint:K,reload:d,params:f,tempData:H,requestType:D,createScreenConfig:S}),!1;var F=_.ov();_.$f(F,"eocs")||F.parkOrScheduleJob(function(){F.processSignal("eocs")},10,"eor");
n=us(K);a=H.autonav==="1";R=_.te();nv.instance||(nv.instance=new nv);var z=nv.instance.verifyUser(),v;if(_.M("enable_dark_theme_only_on_shorts")){var g=document.documentElement.hasAttribute("dark"),N=_.X7(!0)==="USER_INTERFACE_THEME_DARK";if(n==="shorts"){if(!g)if(_.M("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var h;_.WW((h=_.P(K==null?void 0:K.commandMetadata,_.B0))==null?void 0:h.url,void 0,void 0,window.top)}}else{var m;_.WW(_.xM((m=_.P(K==null?
void 0:K.commandMetadata,_.B0))==null?void 0:m.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.M("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!g){var T;_.WW(_.xM((T=_.P(K==null?void 0:K.commandMetadata,_.B0))==null?void 0:T.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(N!==g){var r;_.WW(_.xM((r=_.P(K==null?void 0:K.commandMetadata,_.B0))==null?void 0:r.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(n==="watch"){if(rOH(_.eq().resolve(_.$b),
K)&&(z||_.M("fix_miniplayer_navigation_killswitch")))return!1;_.M("block_all_player_prefetch_requests")||(v=D9s(_.w3(_.cn),K,a))}else{var J,L=(J=_.P(this.currentEndpoint,_.qu))==null?void 0:J.videoId;L&&_.Rv.getInstance().then(function(hN){hN&&hN.set("yt-miniplayer-shown-video-id",L)})}v&&(f.frags=v.missingFragments_.join(","));
h=null;var fB;m=(fB=_.P(K==null?void 0:K.commandMetadata,_.B0))==null?void 0:fB.ignoreNavigation;if(!m)if(_.M("kevlar_command_url")){var w;h=(w=_.P(K==null?void 0:K.commandMetadata,_.B0))==null?void 0:w.url}else h=_.h25(K,f);if(h&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&h==this.lastNavigationUrl)return _.Ox({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Df(bw(),"CANCELLED")}h&&(this.lastNavigationUrl=h);eLX();_.bx("IS_HOMEPAGE_COLD",
!1);_.bx("IS_RESULTS_PAGE_COLD",!1);_.bx("IS_WATCH_PAGE_COLD",!1);K.loggingUrls&&K.loggingUrls.forEach(function(hN){hN.baseUrl&&_.T7(hN.baseUrl)});
_.I3z(K,S?S.layer:0)&&_.M("kevlar_flush_logs_on_away_navigation")&&_.oB();if(cwu(K))return!1;TW8(n,D);if(!h)return m||_.h3(new _.X4("Can't construct url for endpoint",K)),_.Df(bw(),"FAILURE"),!1;_.f3Y();fB=K&&_.P(K,_.is)&&_.P(K,_.is).browseId.startsWith("UC");f=(w=_.M("enable_dark_theme_only_on_shorts")&&n==="shorts"?!1:_.vW()&&document.documentElement.hasAttribute("dark")!==_.zo())?{themeRefresh:1}:{};w&&!_.R0()&&_.X7()==="USER_INTERFACE_THEME_DARK"&&(f.theme="dark");fB=w||qlH(h)&&!fB&&!_.M("kevlar_disable_url_allowlist");
z||(fB=!0);if(fB||_.mD("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var yO;var FX=(yO=window.top)==null?void 0:yO.location.href}catch(hN){var NJ;FX=(NJ=hN)==null?void 0:NJ.message}_.h3(new _.X4("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:FX}))}K=_.M("kevlar_redirect_on_window_killswitch")?window.top:window;ls(h);_.WW(_.xM(h,f),void 0,void 0,K);_.Df(bw(),"ABORTED");return!1}_.M("kevlar_early_popup_close")&&_.ev(this.JSC$12345_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12327_chunkHandler=void 0;var $z;FX=us(($z=this.currentEndpoint)!=null?$z:void 0);($z=n==="shorts"&&FX==="shorts")||_.KwY();_.AR(jZO)("nr",void 0);a&&_.Ox({webInfo:{navigationReason:"an"}});K.clickTrackingParams&&(H.itct=K.clickTrackingParams,H.csn=R);iD5(H);H.endpoint=JSON.stringify(K);_.M("enable_unknown_lact_fix_on_html5")&&(_.eq().resolve(_.Pp),H.lact=_.pA());_.PR.isEmpty(H)||_.xZ(h,H);!_.M("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(S=Object.assign({},{layer:0},S,{parentLayer:3}));this.pendingNavigationPromise=S=hff(this.pageFetcher,K,H,this.currentEndpoint,this.JSC$12345_isNetworkPromiseStale.bind(this),S,u);S=S.then(this.handleNavigateSuccess.bind(this,S,K,v,H),this.handleNavigateFail.bind(this,S,K));_.SJ().navigationFinishPromise=S;d={endpoint:K,pageType:n,url:wH(h),reload:!!d,noProgressBar:_.M("web_disable_page_navigation_progress")||$z};D&&(d.type=D);this.fireEvent("yt-navigate-start",d);v&&
bCs(this.pageFetcher,K,v,H,this.currentEndpoint);return!0};
cI.prototype.JSC$12345_isNetworkPromiseStale=function(K){return K!=this.pendingNavigationPromise};
var QIN=function(K,d,f,H,D){var S=us(d);d={endpoint:d,pageType:S};D&&(d.errorMessage=D);_.h3(f);d.navigationDoneMs=_.YJ("nd");d.navigationErrorReason=H;K.fireEvent("yt-navigate-error",d)};
cI.prototype.handleNavigateFail=function(K,d,f){var H=void 0;f instanceof _.mf&&(H=f,$dz(f));if(this.JSC$12345_isNetworkPromiseStale(K))return _.vv(H);_.Df(bw(),"FAILURE");QIN(this,d,f,"101");return _.vv(f)};
cI.prototype.handleNavigateSuccess=function(K,d,f,H,D){if(this.JSC$12345_isNetworkPromiseStale(K))return _.HG();this.pendingNavigationPromise=null;if(!D)return d=new _.X4("Missing data in response for navigation endpoint",d),_.vv(d);if(D.reload)return window.location.reload(!0),_.HG();f&&(K={},_.PR.extend(K,_.HWJ(f),D),D=K);var S,n;f=(S=D)==null?void 0:(n=S.timing)==null?void 0:n.responseStart;f!=null&&_.YJ("srt",f);_.YJ("pdc");var u,a;S=(u=D)==null?void 0:(a=u.timing)==null?void 0:a.info;S!=null&&
(u=_.AR(_.BTB)(S),_.Ox(u));_.Df(bw(),"SUCCESS");jIv(this,d,D,1,H);return _.HG()};
var qlH=function(K){var d=K;_.M("kevlar_no_redirect_to_classic_2_ks")||(d=(new _.Q8(K)).getPath());if(d==="/"||d==="/red")return!1;var f=!0;AOB.forEach(function(H){K.indexOf(H)===0&&(f=!1)});
Tq4.forEach(function(H){var D=H.url;_.M(H.expFlag)&&K.indexOf(D)===0&&(f=!1)});
return f};
cI.prototype.publishPageData=function(K){this.fireEvent("yt-page-data-fetched",{pageData:K})};
Ck9=function(K,d,f,H,D,S){var n=null;d.page!=="watch"&&d.page!=="learning_journey_watch"||H?d.filler||_.ev(K.JSC$12345_clientRoot,"yt-stop-old-player",[d]):n=EE4(K.pageFetcher,D,d,f,!1,S,void 0,K.currentEndpoint);if(n)return n.then(K.publishPageData.bind(K,d));K.publishPageData(d);return _.HG()};
x1t=function(K,d,f){var H=null;if(!f)return H=new _.X4("Empty data",K.debugString,d);var D=f.response;if(!D)return H;var S={endpointType:us(d)||"unknown"};D.responseContext?(D=D.responseContext.errors)&&(H=new _.X4("Errors in response context",K.debugString,d,D,S)):H=D.error||D.errorMetadata?new _.X4("Errors in response",K.debugString,d,D.error,D.errorMetadata,S):new _.X4("responseContext missing",K.debugString,d,Object.keys(D).sort().join(","),S);var n,u,a,R;if(K=f==null?void 0:(n=f.response)==null?
void 0:(u=n.responseContext)==null?void 0:(a=u.webResponseContextExtensionData)==null?void 0:(R=a.webResponseContextDebugData)==null?void 0:R.debugErrorMessages)for(n=0;n<K.length;n++);return H};
L_s=function(K){var d,f,H,D;return K==null?void 0:(d=K.response)==null?void 0:(f=d.responseContext)==null?void 0:(H=f.errors)==null?void 0:(D=H.error)==null?void 0:D["0"]};
Bq2=function(K,d){var f;if(f=d.url&&!d.url.startsWith("/clip"))f=d.url,f=!_.M("webfe_parse_debug_param_in_resolveurl_service")&&K.searchDebugUrlMatcher.test(f)||GFX(f)?!0:!1;if(f)GFX(d.url)&&_.CQ(window.location.href).themeRefresh?(d=_.L1(d.url,"themeRefresh"),_.V3(K.historyManager,d)):d.url&&!efN(d.url)&&_.V3(K.historyManager,d.url);else if(d.endpoint){var H,D,S;(f=(H=d.endpoint)==null?void 0:(D=H.commandMetadata)==null?void 0:(S=D.webCommandMetadata)==null?void 0:S.url)&&!efN(f)&&_.V3(K.historyManager,
f);f&&d.url&&f!=d.url&&!d.url.match("playnext=1")&&new _.X4("Response url mismatch in response data",K.debugString,f,d.url)}};
_.JOs=function(K,d,f,H,D,S,n,u){S=S===void 0?!1:S;var a=_.eq().resolve(iZ),R;if(!u&&oE6(a,(R=K.currentEndpoint)!=null?R:void 0,d))return a.showConfirmationDialog(K.JSC$12345_clientRoot.parentElement,{endpoint:d,data:f,navigationType:H,tempData:D,isMiniplayer:S,isForwardHistoryNavigation:n==null?void 0:n.forward}),_.HG();K.pageFetcher.JSC$12327_chunkHandler=void 0;return jIv(K,d,f,H,D,S)};
jIv=function(K,d,f,H,D,S){S=S===void 0?!1:S;K.isMiniplayerExpansion=S;var n=H===2;K.currentEndpoint=d;K.numNavigations++;K.numNavigations&&(wUG.navigationCount=K.numNavigations);_.bx("NUM_NAV",K.numNavigations);var u=x1t(K,d,f);if(u)return QIN(K,d,u,"102",L_s(f)),_.vv(u);var a,R,F,z;u=f.rootVe||(f==null?void 0:(a=f.response)==null?void 0:(R=a.responseContext)==null?void 0:(F=R.webResponseContextExtensionData)==null?void 0:(z=F.ytConfigData)==null?void 0:z.rootVisualElementType);!n&&f&&Bq2(K,f);var v,
g;a=f==null?void 0:(v=f.response)==null?void 0:(g=v.responseContext)==null?void 0:g.maxAgeSeconds;if(!n&&!isNaN(a)){var N;_.M("kevlar_use_response_ttl_to_invalidate_cache")?N=(0,_.k_)()+1E3*a:_.M("kevlar_always_invalidate_cache")&&(N=0);isNaN(N)||(f.expirationTime=N)}_.M("html5_enable_ssap_entity_id")&&n&&f.playerResponse&&(f.playerResponse.cacheMetadata={isCacheHit:!0});_.w3(_.cn).prefetchCache_.clear();n||f.page!=="watch"||f.type!=="reduced"&&H!==1?H=Ck9(K,f,n,!!S,d,D):(K.publishPageData(f),H=_.HG());
D=H.then(function(){var h=us(d);h={endpoint:d,pageType:h,fromHistory:n,response:f};h.navigationDoneMs=_.YJ("nd");K.fireEvent("yt-navigate-finish",h)});
f.csn&&u&&f.clientSideGrafts&&H.then(K.attachClientSideGrafts.bind(K,f,_.YZ()));return D};
_.V=cI.prototype;_.V.attachClientSideGrafts=function(K,d){K.clientSideGrafts&&d&&K.clientSideGrafts.forEach(function(f){if(d&&f){var H=_.RG(f);_.M("combine_ve_grafts")?_.cv().graftServerVe(f,d):_.lB(K.csn,d,H)}})};
_.V.handleSignalActionHistoryBack=function(){window.history.back()};
_.V.handleSignalActionCloseWindow=function(){window.close()};
_.V.handleSignalActionReloadPage=function(){this.reload()};
_.V.handleSignalActionSoftReloadPage=function(){S$H(this)};
_.V.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.V.fireEvent=function(K,d){K=new CustomEvent(K,{bubbles:!0,cancelable:!1,composed:!0,detail:d});this.dispatchEvent(K)};
_.V.addEventListener=function(K,d){this.JSC$12345_clientRoot.addEventListener(K,d)};
_.V.dispatchEvent=function(K){return this.JSC$12345_clientRoot.dispatchEvent(K)};
_.V.removeEventListener=function(K,d){this.JSC$12345_clientRoot.removeEventListener(K,d)};
cI[CG]=[GPB,_.SE];_.GcX=new J_("browse","h8y2qb");_.Aqn=new J_("search","JzFVk");_.T_X=new J_("shorts","xwEKAe");_.rqu=new J_("watchFixie","nmfa2d");_.qUo=new J_("watchFlexy","CF909");_.QP5=new J_("watchGrid","Tm0L3c");_.jPX=new J_("watchLearningJourney","L3n37");var sIB;var uZ=function(){return _.q.apply(this,arguments)||this};
_.O(uZ,_.q);_.x$.Object.defineProperties(uZ,{template:{configurable:!0,enumerable:!0,get:function(){if(sIB===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);sIB=K}K=sIB;return K}}});
_.x([_.l(ke9.YtPlayerBehavior),_.B("design:type",Object)],uZ.prototype,"ytPlayerBehavior",void 0);uZ=_.x([_.Q({is:"ytd-player"})],uZ);var kP2;var wV4;var ZCs;var aT=function(){var K=_.q.apply(this,arguments)||this;K.forceModernIconButton=!1;K.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return K};
_.O(aT,_.q);aT.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]]"}}}}}};
aT.prototype.handleAccountLinkingStateChangedCommand=function(K){if(K=_.P(K,igJ)){var d,f=(d=this.data)==null?void 0:d.providerKey;d=K.providerKey;f&&d&&f.id===d.id&&f.subject===d.subject&&(K=K.linked,K!==void 0&&(this.set("data.linked",K),this.notifyPath("data.linked"),_.M("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(K)))}};
aT.prototype.setPlayerAccountLinkState=function(K){var d=new oyX;tjp(d,$Gn(new Eyz,K));var f=_.xP();f&&f.getPlayerPromise().then(function(H){H.setAccountLinkState(_.eS(d.JSC$10069_serializeBinary(),4));H.updateAccountLinkingConfig(K)})};
aT.prototype.handleShowAccountLinkDialog=function(){var K=this.get("button.buttonRenderer.command");K&&_.V$([K],this.hostElement)};
_.x$.Object.defineProperties(aT.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}}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],aT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);_.x([_.l([_.kc.YtActionHandlerBehavior]),_.B("design:type",Object)],aT.prototype,"actionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],aT.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],aT.prototype,"overrides",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],aT.prototype,"forceModernIconButton",void 0);_.x([_.A({value:"bottom"}),_.B("design:type",String)],aT.prototype,"buttonTooltipPosition",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],aT.prototype,"forceIconButton",void 0);_.x([_.A(),_.B("design:type",Boolean)],aT.prototype,"disableTextTransform",void 0);
_.x([_.W("data","data.linked","data.isWarning"),_.B("design:type",Object),_.B("design:paramtypes",[])],aT.prototype,"button",null);aT=_.x([_.Q({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],aT);
_.C(aT,"ytd-account-link-button-renderer",function(){if(ZCs!==void 0)return ZCs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ZCs=K},{mode:1});var ef6;var pVB=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],IT=function(){return _.q.apply(this,arguments)||this};
_.O(IT,_.q);IT.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
IT.prototype.updateButtonActiveState=function(){var K=this,d=!!pVB.find(function(f){return K.currentState===f});
this.button&&(this.button.isPressed=d)};
_.x$.Object.defineProperties(IT.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.playlistLoopStateEntity)==null?void 0:K.state)||((d=this.data)==null?void 0:d.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var K=void 0,d;if(this.currentState&&((d=this.data)==null?0:d.states)){d=_.y(this.data.states);for(var f=d.next();!f.done;f=d.next()){f=_.P(f.value,_.$i9);var H=void 0;if(((H=f)==null?void 0:H.state)===this.currentState){K=f;break}}}return K}}});
IT.prototype.updateButtonActiveState=IT.prototype.updateButtonActiveState;_.x([_.l(_.ou),_.B("design:type",Object)],IT.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.MMz}),_.B("design:type",Object)],IT.prototype,"playlistLoopStateEntity",void 0);_.x([_.A(),_.B("design:type",Object)],IT.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],IT.prototype,"forceIconOnly",void 0);_.x([_.n8("ytd-button-renderer"),_.B("design:type",_.Qr)],IT.prototype,"button",void 0);
_.x([_.W("data","playlistLoopStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],IT.prototype,"currentState",null);_.x([_.SP("currentButtonStateRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IT.prototype,"updateButtonActiveState",null);_.x([_.W("currentState"),_.B("design:type",Object),_.B("design:paramtypes",[])],IT.prototype,"currentButtonStateRenderer",null);
IT=_.x([_.Q({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],IT);
_.C(IT,"ytd-playlist-loop-button-renderer",function(){if(ef6!==void 0)return ef6;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ef6=K},
{mode:1});var KJ9;var dP9=_.iB("DOWNLOAD",{},"Download"),f3s=_.iB("DOWNLOADING",{},"Downloading"),HSf=_.iB("DOWNLOADED",{},"Downloaded"),DPL=_.iB("RETRY",{},"Retry"),UO=function(){var K=_.q.apply(this,arguments)||this;K.forceIconButton=!1;K.forceIconOnly=!1;K.overrides=!1;K.buttonTooltipPosition=!1;K.styleActionButton=!1;K.disableTextTransform=!1;K.downloadProgress=0;K.isDownloadComplete=!1;K.isHidden=!0;K.transferState="TRANSFER_STATE_UNKNOWN";K.isVideoDeletedByUser=!1;K.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return K};
_.O(UO,_.q);_.V=UO.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.dataChanged=function(){var K;(K=this.data)!=null&&K.text||(K=_.oO(_.j3().getState(),this.videoId),this.updateButtonState(K))};
_.V.computeVideoId=function(K){return K};
_.V.showHideButton=function(){this.updateButtonVisibility()};
_.V.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.V.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.V.updateButtonState=function(K){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==f3s||!_.IO(K))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(K){case "TRANSFER_STATE_UNKNOWN":K=dP9;var d="OFFLINE_DOWNLOAD";var f="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":K=DPL;d="OFFLINE_DOWNLOAD";f="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":K=HSf;d="OFFLINE_PIN";f="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":K=
f3s;d="OFFLINE_DOWNLOADING_ZERO";f="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":K=DPL;d="OFFLINE_DOWNLOAD";f="ACTION_RETRY";break;default:K=dP9,d="OFFLINE_DOWNLOAD",f="ACTION_ADD"}this.isVideoDeletedByUser&&(K=dP9,d="OFFLINE_DOWNLOAD",f="ACTION_ADD");var H=Object.assign({},this.data);H.text=_.rB(K);H.tooltip=K;H.icon={iconType:d};H.size="SIZE_DEFAULT";H.style="STYLE_DEFAULT";_.P(H.command,_.DS)&&(_.P(H.command,_.DS).action=f);this.set("data",H)}};
_.V.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var K="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?K="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?K="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?K="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?K="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?K="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(K="OFFLINE_PIN",this.isDownloadComplete=!0);var d;K!==((d=this.data.icon)==null?void 0:d.iconType)&&(d=Object.assign({},this.data),d.text=_.rB(f3s),d.tooltip=f3s,d.icon={iconType:K},_.P(d.command,_.DS)&&(_.P(d.command,_.DS).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",d))}};
UO.prototype.updateProgress=UO.prototype.updateProgress;UO.prototype.onTransferStateChanged=UO.prototype.onTransferStateChanged;UO.prototype.showHideButton=UO.prototype.showHideButton;UO.prototype.dataChanged=UO.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],UO.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],UO.prototype,"forceIconButton",void 0);
_.x([_.A(),_.B("design:type",Object)],UO.prototype,"forceIconOnly",void 0);_.x([_.A(),_.B("design:type",Object)],UO.prototype,"overrides",void 0);_.x([_.A(),_.B("design:type",Object)],UO.prototype,"buttonTooltipPosition",void 0);_.x([_.A(),_.B("design:type",Object)],UO.prototype,"styleActionButton",void 0);_.x([_.A(),_.B("design:type",Object)],UO.prototype,"disableTextTransform",void 0);
_.x([_.A({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.B("design:type",String)],UO.prototype,"videoId",void 0);_.x([_.A(),_.B("design:type",Object)],UO.prototype,"data",void 0);_.x([_.A({selector:EV,selectorArgs:["videoId"]}),_.B("design:type",Object)],UO.prototype,"downloadProgress",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],UO.prototype,"isDownloadComplete",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],UO.prototype,"isHidden",void 0);_.x([_.A({selector:_.oO,selectorArgs:["videoId"]}),_.B("design:type",String)],UO.prototype,"transferState",void 0);_.x([_.A({selector:_.lDo,selectorArgs:["videoId"]}),_.B("design:type",Object)],UO.prototype,"isVideoDeletedByUser",void 0);_.x([_.A({selector:$VG,selectorArgs:["videoId"]}),_.B("design:type",Object)],UO.prototype,"offlineabilityState",void 0);
_.x([_.A({value:!0}),_.B("design:type",Boolean)],UO.prototype,"showTooltips",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],UO.prototype,"sendCommandWhenDisabled",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],UO.prototype,"disabled",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UO.prototype,"dataChanged",null);
_.x([_.an("offlineabilityState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UO.prototype,"showHideButton",null);_.x([_.an("transferState","isVideoDeletedByUser"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UO.prototype,"onTransferStateChanged",null);_.x([_.an("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UO.prototype,"updateProgress",null);
UO=_.x([_.Q({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],UO);
_.C(UO,"ytd-download-button-renderer",function(){if(KJ9!==void 0)return KJ9;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return KJ9=K},{mode:2});var VM9;var SeL,ywN=function(){if(SeL!==void 0)return SeL;var K=document.createElement("template");_.Y(K,'\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 SeL=K};var nuL=_.M("web_button_rework")&&_.lx("BUTTON_REWORK")||_.M("web_button_rework_with_live"),iS6=_.di("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,RT=function(){var K=_.q.apply(this,arguments)||this;K.isPressed=!1;K.forceIconButton=!1;K.forceIconOnly=!1;K.forceModernIconButton=!1;K.alignByText=!1;K.isShorts=!1;K.animatedText=!1;K.shouldAnimate=!1;K.JSC$12383_browserSupportsAnimation=_.M("web_supports_animations_api");K.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};K.onTap=function(){var d;if((d=K.data)==null||!d.defaultNavigationEndpoint){var f;d=!((f=K.data)==null?0:f.isToggled);var H;if((H=K.data)==null||!H.preventAutoToggle){K.shouldAnimate=!1;K.disableTextUpdateJobId&&_.oc.cancelJob(K.disableTextUpdateJobId);K.disableTextUpdateJobId=_.oc.addLowPriorityJob(function(){K.disableTextUpdateJobId=void 0},iS6);
var D;K.set("data.isToggled",!((D=K.data)==null?0:D.isToggled));f=K.getInnertubeIcon();H={toggled:d,actions:{}};f&&(H.actions[f.toLowerCase()]=d);_.Zp(K.hostElement,"yt-toggle-button",H)}}};
return K};
_.O(RT,_.q);_.V=RT.prototype;_.V.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.oc.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.toggle=function(K){var d;this.set("data.isToggled",K!==void 0?K:!((d=this.data)==null?0:d.isToggled))};
_.V.handleUpdateToggleButtonStateCommand=function(K){if(this.data){K=_.P(K,v2f);var d,f,H,D=(d=this.data)==null?void 0:(f=d.toggleButtonSupportedData)==null?void 0:(H=f.toggleButtonIdData)==null?void 0:H.id;D&&K&&D===(K==null?void 0:K.buttonId)&&this.set("data.isToggled",K.toggled)}};
_.V.handleUpdateToggleButtonTextAction=function(K){if(this.data){K=_.P(K,Kv9);var d,f,H,D=(d=this.data)==null?void 0:(f=d.toggleButtonSupportedData)==null?void 0:(H=f.toggleButtonIdData)==null?void 0:H.id;D&&K&&D===(K==null?void 0:K.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=K.defaultNumericalValue,this.set("data.defaultText",K.defaultText),this.set("data.toggledText",K.toggledText),this.shouldAnimate=!1)}};
_.V.getInnertubeIcon=function(){var K=this.data;if(K){var d,f,H=((d=K.defaultIcon)==null?0:d.iconType)?(f=K.defaultIcon)==null?void 0:f.iconType:null,D,S;d=((D=K.toggledIcon)==null?0:D.iconType)?(S=K.toggledIcon)==null?void 0:S.iconType:H;return K.isToggled?d:H}};
_.V.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.x$.Object.defineProperties(RT.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K={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$12383_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var d=K.renderer;var f=K.element;var H=K.toggled;var D=K.onTapCallback;var S=K.commandClientArgs;var n=K.overrides;var u=K.forceIcon;var a=K.forceModernIconButton;var R=K.forceDisabled;var F=K.useAnimatedText;var z=K.animatedTextProps;K=N$Y(d,H);u=!d.defaultIcon||!u&&d.defaultText?d.defaultIcon?"leading":void 0:a?"icon-only":"icon-only-40";u==="icon-only-40"&&(K.type="text");var v;a=Object;var g=a.assign,N;a:switch((N=
d.style)==null?void 0:N.styleType){case "STYLE_COMPACT_GRAY":N={size:"S"};break a;default:N={size:"M"}}var h=!!H;var m=(m=H&&d.toggledText||d.defaultText)?_.Nd(m):void 0;F?(F=_.qQ(H&&d.toggledText||d.defaultText))&&z&&!isNaN(Number(z.numberValue))?(z.numberText=F,H&&(z.numberValue+=1),F=z):F=void 0:F=void 0;var T,r,J,L;var fB=(z=((r=H?d.toggledAccessibilityData||((fB=d.toggledText)==null?void 0:fB.accessibility):d.accessibilityData||((T=d.defaultText)==null?void 0:T.accessibility))==null?void 0:(J=
r.accessibilityData)==null?void 0:J.label)||((L=d.accessibility)==null?void 0:L.label))?z:_.qQ(H&&d.toggledText||d.defaultText);R=R===void 0?d.isDisabled:R;f=OSY(d,H,D,f,S);H=guX(d,H);H!=null&&H.length?(H=_.hJ({innertubeCommand:M1S(H),forceNewState:!0}),H=bz(H)?H:void 0):H=void 0;d=g.call(a,{},K,N,{iconPosition:u},n,{focused:!1,toggled:h,toggleable:!0,formattedButtonText:m,animatedTextProps:F,accessibilityLabel:fB,disabled:R,onTap:f,aTagConfig:H},qf5((v=d.colorData)==null?void 0:v.basicColorPaletteData));
d.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(d.type="filled");return d}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var K=this.getInnertubeIcon();if(K)return _.Hv(K)}}});
RT.prototype.resetAnimation=RT.prototype.resetAnimation;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],RT.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],RT.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],RT.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],RT.prototype,"isPressed",void 0);_.x([_.A(),_.B("design:type",Object)],RT.prototype,"forceIconButton",void 0);_.x([_.A(),_.B("design:type",Object)],RT.prototype,"forceIconOnly",void 0);_.x([_.A(),_.B("design:type",Object)],RT.prototype,"forceModernIconButton",void 0);_.x([_.A(),_.B("design:type",Object)],RT.prototype,"alignByText",void 0);_.x([_.A(),_.B("design:type",Object)],RT.prototype,"overrides",void 0);
_.x([_.A(),_.B("design:type",Boolean)],RT.prototype,"disabled",void 0);_.x([_.A(),_.B("design:type",Object)],RT.prototype,"isShorts",void 0);_.x([_.A(),_.B("design:type",Object)],RT.prototype,"buttonTooltipPosition",void 0);_.x([_.A(),_.B("design:type",Object)],RT.prototype,"animatedText",void 0);_.x([_.A(),_.B("design:type",String)],RT.prototype,"textNumberValue",void 0);_.x([_.A({computed:"computeTooltip(data, data.isToggled)"}),_.B("design:type",Object)],RT.prototype,"tooltip",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RT.prototype,"resetAnimation",null);_.x([_.W("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.B("design:type",Object),_.B("design:paramtypes",[])],RT.prototype,"computedButtonShape",null);_.x([_.W("data.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],RT.prototype,"computedIcon",null);
RT=_.x([_.Q({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],RT);nuL&&_.C(RT,"ytd-toggle-button-renderer",ywN,{mode:_.p8("kevlar_poly_si_batch_j081")?1:2});var NT=_.C8(function(K){function d(R){var F;return _.c(function(z){if(z.nextAddress==1)return(F=!tMX(R,u())||!u().enabled)?z.jumpTo(2):_.I(z,bS5(),3);z.nextAddress!=2&&(F=z.yieldResult);if(F)return z.return();f();setTimeout(function(){n(!1)},1500);
_.iQ(z)})}
function f(){setTimeout(function(){n(!0);var R;(R=H.lottieEl)==null||R.goToAndPlay(0)},150)}
var H=_.ft(),D=_.y(_.cC(!1,void 0,"JJXzp")),S=D.next().value,n=D.next().value,u=_.QV(K.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.tR(function(){var R,F;((R=K.settings)==null?void 0:(F=R.call(K))==null?void 0:F.uniqueId)==="this is not intended behavior"&&_.h3(new _.X4("Smartimation Settings is undefined"))});
_.ol(function(){u().experimentEnabled&&(u().enabled?ouz(d):(n(!1),$Pz(d)),_.$F(function(){$Pz(d)}))});
_.ol(function(){u().timings.join("");u().experimentEnabled&&(EuB(u()),_.$F(function(){hYu(u())}))});
var a=_.zh(function(){var R=H,F=u().uniqueId+"-border",z,v;var g="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((v=(z=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:z())!=null&&v?"dark":"light")+"_v2.json";return{animationRef:R,animationConfig:{name:F,autoplay:!1,loop:!1,path:g}}},void 0,"tgykab");
D={};return _.U("yt-smartimation",{class:_.SC(K.className,"smartimation",(D["smartimation--experiment-enabled"]=function(){return u().experimentEnabled},D["smartimation--active-border"]=S,D["smartimation--enable-masking"]=mPz(),D))},_.U(_.X,{cond:function(){return u().experimentEnabled},
then:function(){return _.U("div",{class:"smartimation__border"},_.U(_.yC,{className:"smartimation__border-gradient",data:a,animationName:function(){return a().animationConfig.name}}))}}),_.U("div",{class:"smartimation__content"},K.children))},"x");
NT.idomCompat=!0;_.sP(NT,"yt-smartimation",{props:{className:_.rs,settings:_.rs}});var FM=function(){var K=_.q.apply(this,arguments)||this;K.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};K.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};K.shouldEnableSmartimation=!1;return K};
_.O(FM,_.q);FM.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
FM.prototype.onDataChanged=function(){var K,d;this.shouldEnableSmartimation=(((K=this.data)==null?void 0:(d=K.timedAnimationData)==null?void 0:d.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
FM.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var K=_.P(this.data.likeButton,_.oa),d=_.P(this.data.dislikeButton,_.oa);return!!((K==null?0:K.isToggled)||(d==null?0:d.isToggled))};
FM.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]]"}}}}}};
_.x$.Object.defineProperties(FM.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var K,d,f=((K=this.data)==null?void 0:(d=K.timedAnimationData)==null?void 0:d.animationTiming)||[];return{uniqueId:"like-dislike",timings:f,enabled:this.shouldEnableSmartimation,experimentEnabled:f.length>0}}}});
FM.prototype.onDataChanged=FM.prototype.onDataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],FM.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],FM.prototype,"likeButtonOverride",void 0);_.x([_.A(),_.B("design:type",Object)],FM.prototype,"dislikeButtonOverride",void 0);
_.x([_.W("shouldEnableSmartimation"),_.B("design:type",Object),_.B("design:paramtypes",[])],FM.prototype,"smartimationSettings",null);_.x([_.SP("data"),_.VV("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FM.prototype,"onDataChanged",null);FM=_.x([_.Q({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],FM);
_.C(FM,"ytd-segmented-like-dislike-button-renderer",function(){if(VM9!==void 0)return VM9;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return VM9=K},{mode:1});var cw4;var uL8;(uL8=document.body)==null||uL8.setAttribute("rounded-container","");var a3s={};a3s.YtToggleButtonBehavior=[_.kc.YtActionHandlerBehavior,aF.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 K=this.data.isToggled;if(!this.isModal_(K)){if(!this.data.preventAutoToggle){this.toggle();var d={toggled:this.data.isToggled,actions:{}};d.actions[this.buttonIcon]=this.data.isToggled;_.Zp(this.hostElement,"yt-toggle-button",d)}d=this.data.defaultServiceEndpoint||null;var f=this.data.toggledServiceEndpoint||null;if(d&&f||d&&this.data.preventAutoToggle)K=K?f:d,d=this.disableCommandHandlerOverride,_.M("killswitch_toggle_button_behavior_resolve_command")||d?_.dN(this.hostElement,
[K]):_.SV(K,this.hostElement),_.Zp(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:K})}},
stateChanged_:function(){var K=this.data;if(K){var d=K.isToggled;this._setEndpoint(this.computeEndpoint_(K));this._setServiceEndpoint(this.computeServiceEndpoint_(K));this._setButtonIcon(this.computeButtonIcon_(K,d));this._setButtonText(this.computeButtonText_(K,d));this._setButtonAccessibility(this.computeAccessibility_(K,d));this._setButtonTooltip(this.computeTooltip_(K,d));this._setButtonClass(this.computeButtonClass_(K,d));this._setIconPositionType(this.computeIconPositionType_(K));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=d):this.elements_.button.setAttribute("aria-pressed",d));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=d)}},
shouldSetIconActiveState_:function(){return _.M("kevlar_system_icons")},
toggle:function(K){this.set("data.isToggled",K!==void 0?K:!this.data.isToggled);_.M("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(K){if(K){var d,f;return!!((d=this.data)==null?0:(f=d.toggledServiceEndpoint)==null?0:f.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(K){return K&&K.defaultNavigationEndpoint||null},
computeButtonIcon_:function(K,d){var f=K&&K.defaultIcon?_.Hv(K.defaultIcon.iconType):null;K=K&&K.toggledIcon?_.Hv(K.toggledIcon.iconType):f;return d?K:f},
handleUpdateToggleButtonStateCommand_:function(K){K=K.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==K.buttonId&&this.toggle(K.toggled)},
computeButtonText_:function(K,d){return K?d&&K.toggledText||K.defaultText||null:null},
computeAccessibility_:function(K,d){return K?(d?this.get("toggledAccessibilityData.accessibilityData",K):this.get("accessibilityData.accessibilityData",K))||K.accessibility||null:null},
computeTooltip_:function(K,d){return K?d&&K.toggledTooltip||K.defaultTooltip||null:null},
computeButtonClass_:function(K,d){if(!K)return"";var f="",H=K.toggledStyle||K.style;if(d=d?H:K.style){d.styleType&&(d=d.styleType);try{f+=d.toLowerCase().replace(/_/g,"-")+" "}catch(D){_.bp(D,d,typeof d),_.h3(D)}}if(K=K.size){K.sizeType&&(K=K.sizeType);try{f+=K.toLowerCase().replace(/_/g,"-")+" "}catch(D){_.bp(D,K,typeof K),_.h3(D)}}return f.trim()},
computeIconPositionType_:function(K){return K&&K.iconPosition||null},
computeServiceEndpoint_:function(K){var d=K&&K.serviceEndpoint,f=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return d?d:f&&K.command?K.command:null},
handleUpdateToggleButtonTextAction_:function(K){K=K.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==K.buttonId&&(this.set("data.defaultText",K.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",K.toggledText),this.notifyPath("data.toggledText"))}}];_.Na("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var I32=_.M("web_button_rework")&&_.lx("BUTTON_REWORK")||_.M("web_button_rework_with_live"),zT=function(){var K=_.q.apply(this,arguments)||this;K.systemIcons=_.M("kevlar_system_icons");K.roundedContainer=!0;return K};
_.O(zT,_.q);zT.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
zT.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var K=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var d={toggled:!!this.data.isToggled,actions:{}};d.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var f,H;d.actions.playlistId=(f=this.data.defaultServiceEndpoint)==null?void 0:(H=f.playlistEditEndpoint)==null?void 0:H.playlistId;_.Zp(this.hostElement,"yt-toggle-button",d)}(K=K?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(K)}};
zT.prototype.onYtNavigate=function(K){var d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(K.detail.endpoint);d&&(K.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(d))};
_.x$.Object.defineProperties(zT,{template:{configurable:!0,enumerable:!0,get:function(){if(cw4===void 0){var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);cw4=K}K=cw4;return K}}});
zT.prototype.onYtNavigate=zT.prototype.onYtNavigate;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],zT.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],zT.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(a3s.YtToggleButtonBehavior),_.B("design:type",Object)],zT.prototype,"ytToggleButtonBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],zT.prototype,"data",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],zT.prototype,"showTooltips",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],zT.prototype,"systemIcons",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],zT.prototype,"roundedContainer",void 0);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],zT.prototype,"onYtNavigate",null);
zT=_.x([_.Q({is:"ytd-toggle-button-renderer",disableElementRegistration:I32})],zT);var UP4;_.XM=new _.xn("PANEL_CONTROLLER_TOKEN");_.vI=new _.xn("SHEET_CONTROLLER_TOKEN");_.MZ=new _.xn("DIALOG_CONTROLLER_TOKEN");UP4=new _.xn("DIALOG_CONTAINER_TOKEN");var jNO=_.iB("DOWNLOAD",{},"Download"),CrS=_.iB("DOWNLOADING",{},"Downloading"),xPz=_.iB("DOWNLOADED",{},"Downloaded"),LJG=_.iB("RETRY",{},"Retry");var JwJ=[],sNu=!1;var RYs=_.C8(function(K){var d=HiY,f=function(){return""},H=p1J(K.data),D=KIn(K.data),S=dWG(K.data),n=fio(K.data);
d=function(){var u=K.data(),a=qeJ(u,H(),D(),S(),n()),R=!!u.videoId,F=a.text;return{title:R?F:void 0,tooltip:R?void 0:F,accessibilityText:F,onTap:a.onTap,iconName:a.iconType,style:u.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:a.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:u.buttonSize}};
f={};f=_.SC("ytDownloadButtonViewModelHost",(f.ytDownloadButtonViewModelIsHidden=function(){var u=K.data(),a=n();return u.playlistId||a()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||a()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},f));
return _.U("download-button-view-model",{class:f},_.U(_.oY,{data:d}))},"y");
RYs.idomCompat=!0;var zY6=_.C8(function(K){var d=K.backgroundLottieRef;var f=K.foregroundLottieRef;var H=K.children;var D=K.wrapperClass;var S=K.disableAnimation;K=function(){return(_.M("web_animated_actions")||_.M("web_animated_actions_v2"))&&!(S==null?0:S())};
return _.U("yt-animated-action",{class:_.SC("animated-action__container",D)},_.U("div",{class:"animated-action__content-with-background"},_.U(_.X,{cond:K,then:function(){return _.U(FJs,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:d==null?void 0:d(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(DWS()?"dark":"light")+"_v5.json"}}}})}}),H),_.U(_.X,{cond:K,
then:function(){return _.U(FJs,{lottiePlayerProps:function(){return{animationRef:f==null?void 0:f(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(DWS()?"dark":"light")+"_v4.json"}}}})}}))},"z");
zY6.idomCompat=!0;var FJs=_.C8(function(K){var d=K.wrapperClass;var f=K.lottieClass;var H=K.lottiePlayerProps;return _.U("div",{class:_.SC("animated-action__lottie",d),"aria-hidden":"true"},_.U(_.yC,{className:f,data:H,animationName:function(){return H().animationConfig.name}}))},"A");var V85={isOpen:!1};var y7N={isAllowed:!1};var iio={errorMessage:"",title:"",privacy:"",isDisabled:!0};var uAB={isOpen:!1};var IiS={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var X1s={response:void 0};var R9B=function(K,d){K=K===void 0?X1s:K;switch(d.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},K,{response:d.payload});default:return K}};var vuB={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var FIn=function(K,d){K=K===void 0?vuB:K;switch(d.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},K,{nextDisabled:d.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},K,{nextCommand:d.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},K,{footerSubmissionData:d.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},K,{isImpersonationValid:d.payload});default:return K}};var MM2={reportFormData:void 0,reportDetailsFormData:void 0};var z9X=function(K,d){K=K===void 0?MM2:K;switch(d.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},K,{reportFormData:d.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},K,{reportDetailsFormData:d.payload});default:return K}};var Pr6=void 0;_.M("mweb_enable_redux_store_on_demand")||(Pr6=new Qj(XQo()));var guf=_.C8(function(K){K=_.jP(K,{themeOverride:void 0,animationRef:{}});var d=K.animatedIconType,f=K.active,H=K.themeOverride,D=K.animationRef;K=K.staticIconFn;var S=_.y(_.cC(void 0,void 0,"P5a72b")),n=S.next().value,u=S.next().value,a=function(){a:{var m=d();var T=H==null?void 0:H();var r;T=(T==null?void 0:T.useDarkTheme)||((r=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:r());switch(m){case "LIKE":Pr6||(Pr6=new Qj(XQo()));m=(m=oTO(Pr6.getState()))&&m.animationLightUrl&&m.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:T?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:T?m.animationDarkUrl:m.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0}:void 0;if(m){T=m;break a}T="animated_like_icon_"+(T?"dark_v4":"light_v4");T={lottiePlayerProps:{animationConfig:{name:T,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+T+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":T={lottiePlayerProps:{animationConfig:{name:T?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(T?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}T=void 0}return T},R=function(){var m,T;
return(T=(m=a())==null?void 0:m.lottiePlayerProps.animationConfig.name)!=null?T:""},F=function(){if(a()){var m=a().lottiePlayerProps.animationConfig.path;
return VC.get(m)||n()}};
S=_.y(_.cC(!1,void 0,"h6xR3c"));var z=S.next().value;S=S.next().value;var v=M8Y(S),g=function(){var m=a(),T,r,J;return(J=m==null?void 0:(T=m.lottiePlayerProps.animationConfig)==null?void 0:(r=T.rendererSettings)==null?void 0:r.className)!=null?J:""},N=void 0,h=void 0;
_.ol(function(){var m=a(),T=R(),r=F(),J=z(),L=f();if(m&&(h!==T&&(h=T,N=L,T=D(),v.animationConfig=m.lottiePlayerProps.animationConfig,v.animationRef=T,r&&(v.animationConfig.animationData=r,v.animationConfig.path=void 0),T=m.lottiePlayerProps.animationConfig.path,!VC.get(T)&&m.lazyLoad&&T&&vjY(T,u)),!(J||m.lazyLoad&&!r))){if(r=!D().lottieEl)L?(J=m.totalFrames,v.animationConfig.initialSegment=[J-1,J]):v.animationConfig.initialSegment=void 0;if(N!==L&&!r)if(r=D(),L){var fB;(fB=r.lottieEl)==null||fB.playSegments([0,
m.totalFrames],!0)}else{var w;(w=r.lottieEl)==null||w.playSegments([0,1],!0)}N=L}});
return _.U("animated-icon",{class:"ytAnimatedIconHost"},_.U(_.X,{cond:function(){var m,T;return!((m=a())==null||!m.lottiePlayerProps.animationConfig.path||((T=a())==null?0:T.lazyLoad)&&!F()||z())},
then:function(){return _.U(_.yC,{data:v,animationName:R,className:g,animationRef:D})},
else:K}))},"B");_.PI=_.C8(function(K){var d=_.Co(),f=_.Co(),H=_.Co(),D=_.ft(),S=_.ft(),n=_.ft(),u=_.yF(UPu,function(){return K.data().stateEntityStoreKey}),a=_.yF(RYY,function(){var af,i9;
return(i9=(af=K.data().notificationStateEntityStoreKeys)==null?void 0:af.subsNotificationStateKey)!=null?i9:""}),R=function(){return!K.data().enableSubscribeButtonPostClickAnimation},F=_.y(_.cC(0,void 0,"eTsWvc")),z=F.next().value,v=F.next().value;
F=_.y(_.cC(0,void 0,"dniDQ"));var g=F.next().value,N=F.next().value;F=_.y(_.cC(!1,void 0,"EluPic"));var h=F.next().value,m=F.next().value;F=_.y(_.cC(!1,void 0,"r0jnre"));var T=F.next().value,r=F.next().value;F=_.y(_.cC(!1,void 0,"KMvoQe"));var J=F.next().value,L=F.next().value,fB;F=_.y(_.cC(!1,void 0,"aSENce"));var w=F.next().value,yO=F.next().value,FX=function(){r(!0);_.uX(_.oc,function(){r(!1)},1500)};
_.ol(function(){var af=T();i8(function(){af&&!R()&&u()&&h9z(D,S,n)})});
_.ol(function(){var af=u();i8(function(){if(!R()&&af){var i9;((i9=K.animateWidth)==null?0:i9.call(K))&&Eju(d.value,!!af.subscribed,z(),g());var KE,c4;((KE=fB)==null?0:KE.subscribed)||!af.subscribed||af.key!==((c4=fB)==null?void 0:c4.key)||FX();fB=af}})});
F=_.zh(function(){var af,i9,KE,c4=K.data(),cx=!((af=u())==null||!af.subscribed);af=!((i9=K.isOverlay)==null||!i9.call(K));i9=h()?d:void 0;var Oj=(KE=a())==null?void 0:KE.state;KE=w();$Wn(c4,Oj);return Oio({model:c4,subscribed:cx,isOverlay:af,element:i9,notificationState:Oj,disableTextEllipsis:!0,focused:KE})},void 0,"yGQGue");
var NJ=function(){var af;if(!R()&&((af=K.animateWidth)==null?0:af.call(K))&&(f==null?0:f.value)&&(H==null?0:H.value)&&!J()){af=u();var i9=_.y((af==null?0:af.subscribed)?[f,H]:[H,f]),KE=i9.next().value;i9=i9.next().value;KE=Math.ceil(KE.value.getBoundingClientRect().width);i9=Math.ceil(i9.value.getBoundingClientRect().width);v(KE);N(i9);Eju(d.value,!(af==null||!af.subscribed),KE,i9);L(!0)}},$z=_.cp(function(af){NJ();
var i9=u();i9&&(af.detail.endpoint.subscribeEndpoint||af.detail.endpoint.unsubscribeEndpoint)&&YBJ(d.value,!i9.subscribed,i9)}),hN=function(){var af=_.eq().resolve(_.Zd(_.eb));
af&&yO(af.isKeyBoardInUse())},bo=function(){yO(!1)};
_.j7("yt-player-subscribe",function(af){var i9=u();i9&&af===K.data().channelId&&YBJ(d.value,!0,i9)});
_.j7("yt-player-unsubscribe",function(af){var i9=u();i9&&af===K.data().channelId&&YBJ(d.value,!1,i9)});
_.j7("yt-update-subscribe-button-action",function(af){af=_.P(af,Di9);var i9=u();i9&&af&&af.channelId===K.data().channelId&&YBJ(d.value,!!af.subscribed,i9)});
_.tR(function(){d.value&&(d.value.addEventListener("focusin",hN),d.value.addEventListener("focusout",bo));var af=_.va(_.oc,function(){NJ()});
m(!0);_.$F(function(){_.oc.cancelJob(af);d.value&&(d.value.removeEventListener("focusin",hN),d.value.removeEventListener("focusout",bo))})});
var xz=function(){var af,i9,KE;if(KE=!((af=u())==null||!af.subscribed))af=!!K.data().disableNotificationBell,KE=(i9=a())==null?void 0:i9.state,KE=!af&&!!KE;return KE},qJ=function(){var af;
return!((af=u())==null?0:af.subscribed)},Y8=function(){var af,i9;
if(i9=qJ()){i9=!!K.data().disableNotificationBell;var KE=(af=a())==null?void 0:af.state;i9=!i9&&!!KE}return i9},Iz={},qs={};
return _.U("yt-subscribe-button-view-model",{class:_.SC(K.className,"yt-subscribe-button-view-model-wiz",(Iz["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var af,i9;return!((af=u())==null||!af.subscribed)&&((i9=K.animateWidth)==null?void 0:i9.call(K))&&T()},Iz["yt-subscribe-button-view-model-wiz--hidden"]=function(){var af;
return!((af=u())==null?0:af.subscribed)&&K.data().hideWhenUnsubscribed},Iz)),
el:d,"on:yt-service-request-sent":$z},_.U(zY6,{backgroundLottieRef:D,foregroundLottieRef:S,wrapperClass:_.SC("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(qs["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var af;return((af=K.animateWidth)==null?void 0:af.call(K))&&T()},qs["yt-subscribe-button-view-model-wiz__static-width"]=function(){var af;
return!((af=K.animateWidth)==null?0:af.call(K))},qs)),
disableAnimation:R},_.U("div",{el:f,class:"yt-subscribe-button-view-model-wiz__container"},_.U(xB,{data:F,icon:function(){return _.U(_.X,{cond:xz,then:function(){var af=function(){var i9;return NKo((i9=a())==null?void 0:i9.state)};
return _.U(_.X,{cond:function(){return R()||af()!=="NOTIFICATIONS_NONE"},
then:function(){return _.U(_.U5,{icon:af})},
else:function(){return _.U(guf,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:n})}})}})},
secondaryIconName:function(){return xz()?"EXPAND":void 0}}))),_.U("div",{el:H,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.U(_.X,{cond:function(){var af;return((af=K.animateWidth)==null?void 0:af.call(K))&&!R()&&!J()},
then:function(){return _.U(xB,{data:_.zh(function(){var af;return Oio({model:K.data(),subscribed:qJ(),isOverlay:!((af=K.isOverlay)==null||!af.call(K)),element:d,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var af;return Y8()?NKo((af=a())==null?void 0:af.state):void 0},
secondaryIconName:function(){return Y8()?"EXPAND":void 0}})}})))},"C");
_.PI.idomCompat=!0;var bip=new _.xn("RENDERER_STAMPER_OPTIONS_TOKEN");var RY;_.Uk=new KWt;RY=new Map;var spp="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),wQz=["notificationTextRenderer","notificationMultiActionRenderer"],kNO="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
J7J=qBN(function(K){return _.hc(K==null?void 0:K.targetId)}).useUpdatableData;var BKX=0;_.z1.debugName="EjJbCe";var OSs=_.C8(function(K){var d=K.data;var f=_.yF(UPu,function(){return d().subscriptionStateEntityKey});
return _.U(_.X,{cond:function(){var H=d(),D=f();return!H.hideWhenUnsubscribed||(D==null?0:D.subscribed)?_.P(d().button,_.XN):void 0},
then:function(H){return _.U("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.U(_.oY,{data:H,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var pQO=_.IY({buttonViewModel:_.oY,subscribeButtonViewModel:_.PI,downloadButtonViewModel:RYs,toggleButtonViewModel:_.MT,subscribePlusButtonViewModel:OSs});_.Zx(dGB);var N$s=_.C8(function(K){return _.U(_.z1,{data:function(){return K.actionRow().actions}},{buttonViewModel:function(d){var f=d.data;
return _.U(gJ,{isRow:K.isRow,isIconOnlyButton:function(){return fXz(f())},
useIntrinsicWidth:K.useIntrinsicWidth},_.U(_.oY,{data:f}))},
subscribeButtonViewModel:function(d){return _.U(gJ,{isRow:K.isRow},_.U(_.PI,{data:d.data,isOverlay:!1,animateWidth:function(){return!K.isRow()}}))},
downloadButtonViewModel:function(d){var f=d.data;return _.U(gJ,{isRow:K.isRow,isIconOnlyButton:function(){return!!f().playlistId}},_.U(RYs,{data:f}))},
toggleButtonViewModel:function(d){var f=d.data;return _.U(gJ,{isRow:K.isRow,isIconOnlyButton:function(){var H=f();return fXz(_.P(H.isToggled?H.toggledButtonViewModel:H.defaultButtonViewModel,_.XN))}},_.U(_.MT,{data:f}))},
subscribePlusButtonViewModel:function(d){return _.U(gJ,{isRow:K.isRow},_.U(OSs,{data:d.data}))}})},"E"),gJ=_.C8(function(K){var d={};
return _.U("div",{class:_.SC("yt-flexible-actions-view-model-wiz__action",(d["yt-flexible-actions-view-model-wiz__action--row-action"]=K.isRow,d["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=K.useIntrinsicWidth,d["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,d["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=K.isIconOnlyButton,d))},K.children)},"F"),Ye6=_.C8(function(K){var d=function(){var H;
return((H=K.layout)==null?void 0:H.call(K))===1},f={};
return _.U("yt-flexible-actions-view-model",{class:_.SC("yt-flexible-actions-view-model-wiz",K.className,(f["yt-flexible-actions-view-model-wiz--inline"]=function(){return!d()},f["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return K.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},f))},_.U(_.v_,{each:function(){return K.data().actionsRows||[]}},function(H){return _.U(_.X,{cond:d,
then:function(){return _.U("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.U(N$s,{actionRow:H,isRow:d,useIntrinsicWidth:function(){return!!K.data().respectActionIntrinsicWidth}}))},
else:function(){return _.U(N$s,{actionRow:H,isRow:d})}})}))},"G"),OO=_.M("web_enable_sink_yt_flexible_actions_view_model")?Ye6:_.ih(dGB);
Ye6.idomCompat=!0;_.sP(OO,"yt-flexible-actions-view-model",{props:{data:_.rs,layout:_.rs,justifyContentOverride:_.rs,className:_.rs}});_.Zx(H$X);var tMH,nyY;tMH=_.C8(function(K){var d=_.yF(om,function(){var D;return(D=K.data().dislikeEntityKey)!=null?D:""}),f=_.zh(function(){var D=d();
return D?D.likeStatus==="DISLIKE":_.P(K.data().toggleButtonViewModel,_.v9).isToggled},void 0,"D8oIFb"),H=_.zh(function(){return Object.assign({},_.P(K.data().toggleButtonViewModel,_.v9),{isToggled:f()})},void 0,"shaCXe");
return _.U("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.U(_.MT,{data:H,buttonShapeOverrides:K.buttonShapeOverrideables,onToggle:function(D){var S=d();S&&D!==(S.likeStatus==="DISLIKE")&&S.key&&_.q7(_.P9("likeStatusEntity",S.key,{likeStatus:D?"DISLIKE":"INDIFFERENT",hadUserInteraction:D}))}}))},"H");
nyY=_.M("web_enable_sink_dislike_button_view_model")?tMH:H$X;_.NZ=_.M("web_enable_sink_dislike_button_view_model")?tMH:_.ih(H$X);tMH.idomCompat=!0;_.Zx(VjB);var ou8,yUS;ou8=_.C8(function(K){var d=_.M("web_supports_animations_api"),f=LZ(function(v){var g=R(),N,h=(g==null?void 0:(N=g.likeCountIfIndifferent)==null?void 0:N.content)!==v.numberText;if(u()||!h)return v;var m,T;return{numberText:(g==null?void 0:(m=g.likeCountIfIndifferent)==null?void 0:m.content)||"",numberValue:Number((T=g==null?void 0:g.likeCountIfIndifferentNumber)!=null?T:0),heightPx:36,shouldAnimate:!!g}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),H=LZ(function(v){var g=R(),N,h=(g==null?void 0:(N=g.likeCountIfIndifferent)==null?void 0:N.content)!==v.numberText;if(u()||!h)return v;var m,T;return{numberText:(g==null?void 0:(m=g.likeCountIfLiked)==null?void 0:m.content)||"",numberValue:Number((T=g==null?void 0:g.likeCountIfLikedNumber)!=null?T:0),heightPx:36,shouldAnimate:!!g}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),D=_.y(_.cC(void 0,void 0,"T6jMHc")),S=D.next().value,n=D.next().value,u=S,a=_.yF(om,function(){var v,g;return(g=(v=K.data())==null?void 0:v.likeStatusEntityKey)!=null?g:""}),R=_.yF(BYJ,function(){var v,g;
return((v=K.likeCountEntity)==null?void 0:(g=v.call(K))==null?void 0:g.key)||""}),F=_.zh(function(){var v;
return((v=a())==null?void 0:v.likeStatus)==="LIKE"},void 0,"WxQBcd"),z=function(){var v;
return d&&!((v=K.likeCountEntity)==null||!v.call(K))};
return _.U("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.U(_.MT,{data:function(){var v=Object,g=v.assign,N;var h=_.P((N=K.data())==null?void 0:N.toggleButtonViewModel,_.v9);return g.call(v,{},h||{},{isToggled:F()})},
buttonShapeOverrides:K.buttonShapeOverrideables,animatedTextPropsDefault:function(){return z()?f():void 0},
animatedTextPropsToggled:function(){return z()?H():void 0},
onToggle:function(v){Sgz(v,a(),u(),n)},
style:function(){var v;return((v=K.disableIconAnimation)==null?0:v.call(K))?void 0:{animateIcon:"true"}}}))},"I");
yUS=_.M("web_enable_sink_like_button_view_model")?ou8:VjB;_.YY=_.M("web_enable_sink_like_button_view_model")?ou8:_.ih(VjB);_.Zx(i$5);var $P2=_.C8(function(K){var d=function(){return _.P(K.data().likeButtonViewModel,_.gP)},f=function(){var D;
return((D=d())==null?void 0:D.likeStatusEntityKey)||""},H=_.zh(function(){var D,S;
var n=(S=_.yF(om,f)())!=null?S:(D=d())==null?void 0:D.likeStatusEntity;D=K.data();var u;D=(D==null?void 0:(u=D.timedAnimationData)==null?void 0:u.animationTiming)||[];return{uniqueId:"like-dislike",timings:D,enabled:(n==null?void 0:n.likeStatus)==="INDIFFERENT"&&D.length>0,experimentEnabled:D.length>0}},void 0,"e1fsz");
return _.U("segmented-like-dislike-button-view-model",{class:_.SC("ytSegmentedLikeDislikeButtonViewModelHost",K.className),"button-renderer":!0},_.U(NT,{settings:H},_.U("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.U(_.X,{cond:d,then:function(D){return _.U(_.YY,{data:D,likeCountEntity:function(){return K.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.U(_.X,{cond:function(){return _.P(K.data().dislikeButtonViewModel,_.Ok)},
then:function(D){return _.U(_.NZ,{data:D,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"J"),EuJ=_.M("web_enable_sink_segmented_like_dislike_button_view_model")?$P2:i$5;
$P2.idomCompat=!0;_.M("web_enable_sink_segmented_like_dislike_button_view_model")?_.sP(EuJ,"segmented-like-dislike-button-view-model",{props:{data:_.rs,className:_.rs}}):_.fK(EuJ,"segmented-like-dislike-button-view-model",{propNames:["data"]});var RUN=0;_.sP(hUJ,"account-link-button-view-model",{props:{data:_.rs,className:_.JJ,setMinWidth:_.JJ,forceIconOnly:_.JJ}});_.Na("menuRenderer","menuRenderer","ytd-menu-renderer");
var hY4={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"}},
bSN=_.M("web_fix_missing_action_buttons")?100:200,tS=function(){var K=_.q.apply(this,arguments)||this;K.safeArea=!_.M("kevlar_flex_menu_safe_area_killswitch");K.tonalOverride=!1;K.threeDotSize="M";K.isOverlay=!1;K.useOverlayDark=!1;K.topLevelIconsOnly=!1;K.JSC$12527_lastWidth=0;K.maybeUpdateFlexibleMenu=function(){_.M("web_fix_missing_action_buttons")?requestAnimationFrame(K.maybeUpdateFlexibleMenuImpl):K.maybeUpdateFlexibleMenuImpl()};
K.maybeUpdateFlexibleMenuImpl=function(){var d;if((d=K.data)!=null&&d.flexibleItems){K.maybeFlushDebouncer();d=K.hostElement.clientWidth;var f=d>K.JSC$12527_lastWidth,H,D=((H=K.topLevelButtonsContainer)==null?void 0:H.scrollHeight)||0,S;H=((S=K.flexibleItemButtonsContainer)==null?void 0:S.scrollHeight)||0;S=K.hostElement.scrollHeight>Math.max(D,H)+8;f?(K.resetFlexibleItems(),K.JSC$12527_lastWidth=K.hostElement.clientWidth,K.maybeUpdateFlexibleMenu()):S&&(K.shrinkFlexibleMenu(),K.JSC$12527_lastWidth=
d)}};
K.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){K.onOverflowTap()},
iconPosition:"icon-only",style:K.isOverlay?K.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:K.threeDotSize,state:"active",accessibilityLabel:K.computeAccessibilityLabel(K.data)},K.threeDotButtonOverride)};
K.onOverflowTap=function(){if(K.data.fetchMenuCommand)_.eq().resolve(_.pQ).resolveCommand(K.data.fetchMenuCommand,{form:{element:K.hostElement}});else if(K.data.isDisabled&&K.data.disabledCommand)_.SV(K.data.disabledCommand,K.hostElement);else{var d=K.createMenuRendererVe(),f={items:K.items};K.data.menuPopupAccessibility&&(f.menuPopupAccessibility=K.data.menuPopupAccessibility);K.data.footer&&(f.footer=K.data.footer);d={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:f},veData:d}};
_.eq().resolve(_.vI).openSheet({openPopupActionCommand:d},K.hostElement)}};
return K};
_.O(tS,_.q);_.V=tS.prototype;_.V.updateButtonOverrides=function(){if(!_.M("menu_renderer_label_update_upkillswitch")){var K=_.E(this.hostElement).querySelector("yt-button-view-model");K&&(K.buttonOverrides=this.buttonOverrides)}};
_.V.computeHasItems=function(){var K;return((K=this.topLevelButtonData)==null?void 0:K.length)||this.hasFlexibleItems};
_.V.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.V.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.f8(this.hostElement,{"--ytd-menu-renderer-button-color":_.E1(this.data.iconColor)}))};
_.V.onStamperFinished=function(){this.JSC$12527_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.V.setupFlexibleMenu=function(){var K=this,d;(d=this.data)!=null&&d.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Ct(this.maybeUpdateFlexibleMenu,bSN,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){K.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))};
_.V.maybeFlushDebouncer=function(){if(_.M("web_replace_formatted_with_attributed_string")){var K;(K=this.topLevelButtons)==null||K.forEach(function(f){var H;(f=(H=f.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0])&&OeJ(f)});
var d;(d=this.flexibleItemButtons)==null||d.forEach(function(f){var H;(f=(H=f.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0])&&OeJ(f)})}};
_.V.resetFlexibleItems=function(){var K;if((K=this.data)!=null&&K.flexibleItems){_.M("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var d;this.flexAsTopLevelButtons=(d=this.data.flexibleItems)==null?void 0:d.map(function(f){return _.P(f,_.oSH).topLevelButton});
_.M("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.V.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.V.shrinkFlexibleMenu=function(){var K;(K=this.flexAsTopLevelButtons)!=null&&K.length&&(this.flexAsTopLevelButtons=[].concat(_.Me(this.flexAsTopLevelButtons.slice(0,-1))))};
_.V.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:hY4,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:hY4,events:!0}}};
_.V.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.V.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.V.detached=function(){this.icon="yt-icons:more_vert"};
_.V.computeTopLevelButtonData=function(K){if(!K)return[];var d;K=(d=K==null?void 0:K.topLevelButtons)!=null?d:[];return _.PR.unsafeClone([].concat(_.Me(K)))};
_.V.computeItems=function(K,d){if(!K)return[];var f=[];if(d){var H=(K.flexibleItems||[]).map(function(n){return _.P(n,_.oSH)});
H=_.y(H);for(var D=H.next();!D.done;D=H.next())D=D.value,d.includes(D.topLevelButton)||(D=D.menuItem)&&f.push(D)}var S;K=(S=K==null?void 0:K.items)!=null?S:[];return[].concat(_.Me(f),_.Me(K))};
_.V.computeMenuActive=function(K,d){return K||d};
_.V.onPopupOpened=function(){this.overlayOpen=!0;_.Zp(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.V.onPopupClosed=function(){this.overlayOpen=!1;_.Zp(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.V.onPopupCanceled=function(){this.overlayOpen=!1;_.Zp(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.V.computeAccessibilityLabel=function(K){return this.get("accessibility.accessibilityData.label",K)};
_.V.isHidden=function(K,d){return this.tonalOverride||!K?!0:K.fetchMenuCommand||K.isDisabled&&K.disabledCommand?!1:!(d==null?0:d.length)};
_.V.isModernOverflowHidden=function(K,d){return this.tonalOverride&&K?K.fetchMenuCommand?!1:!(d==null?0:d.length):!0};
_.V.createMenuRendererVe=function(){var K=this.data.trackingParams,d=_.te(),f=_.YZ();return K&&d&&f?(K=_.RG(K),f=_.vp(7591),_.M("combine_ve_grafts")?_.p2(_.cv(),f,K):_.lB(d,K,f),f):null};
_.x$.Object.defineProperties(tS.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.flexAsTopLevelButtons)==null||!K.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
tS.prototype.onPopupCanceled=tS.prototype.onPopupCanceled;tS.prototype.onPopupClosed=tS.prototype.onPopupClosed;tS.prototype.onPopupOpened=tS.prototype.onPopupOpened;tS.prototype.tonalOverrideChanged=tS.prototype.tonalOverrideChanged;tS.prototype.resetFlexibleItems=tS.prototype.resetFlexibleItems;tS.prototype.setupFlexibleMenu=tS.prototype.setupFlexibleMenu;tS.prototype.iconButtonColorChanged=tS.prototype.iconButtonColorChanged;tS.prototype.updateButtonOverrides=tS.prototype.updateButtonOverrides;
_.x([_.l(_.r8),_.B("design:type",Object)],tS.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],tS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.n8("#button-shape"),_.B("design:type",fL)],tS.prototype,"buttonShape",void 0);_.x([_.n8("#button"),_.B("design:type",Object)],tS.prototype,"button",void 0);
_.x([_.A(),_.B("design:type",Object)],tS.prototype,"data",void 0);_.x([_.A({computed:"computeTopLevelButtonData(data)"}),_.B("design:type",Array)],tS.prototype,"topLevelButtonData",void 0);_.x([_.A(),_.B("design:type",Array)],tS.prototype,"flexAsTopLevelButtons",void 0);_.x([_.A({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.B("design:type",Array)],tS.prototype,"items",void 0);_.x([_.A({value:"yt-icons:more_vert"}),_.B("design:type",String)],tS.prototype,"icon",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],tS.prototype,"safeArea",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.B("design:type",Boolean)],tS.prototype,"menuActive",void 0);_.x([_.A(),_.B("design:type",Boolean)],tS.prototype,"menuFocused",void 0);_.x([_.A({value:"bottom"}),_.B("design:type",String)],tS.prototype,"buttonTooltipPosition",void 0);_.x([_.A(),_.B("design:type",Boolean)],tS.prototype,"overlayOpen",void 0);
_.x([_.A({value:!0}),_.B("design:type",Boolean)],tS.prototype,"forceIconButton",void 0);_.x([_.A(),_.B("design:type",Boolean)],tS.prototype,"styleActionButton",void 0);_.x([_.A(),_.B("design:type",Boolean)],tS.prototype,"disableTextTransformOnButtons",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],tS.prototype,"tonalOverride",void 0);_.x([_.A(),_.B("design:type",Object)],tS.prototype,"threeDotSize",void 0);
_.x([_.A(),_.B("design:type",Object)],tS.prototype,"threeDotButtonOverride",void 0);_.x([_.A(),_.B("design:type",Object)],tS.prototype,"isOverlay",void 0);_.x([_.A(),_.B("design:type",Object)],tS.prototype,"useOverlayDark",void 0);_.x([_.A({computed:"computeButtonOverride(tonalOverride)"}),_.B("design:type",Object)],tS.prototype,"buttonOverride",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],tS.prototype,"hasCustomIconColor",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("flexAsTopLevelButtons"),_.B("design:type",Object),_.B("design:paramtypes",[])],tS.prototype,"hasFlexibleItems",null);_.x([_.A({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.B("design:type",Boolean)],tS.prototype,"hasItems",void 0);_.x([_.A(),_.B("design:type",Object)],tS.prototype,"topLevelIconsOnly",void 0);
_.x([_.SP("topLevelIconsOnly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tS.prototype,"updateButtonOverrides",null);_.x([_.W("topLevelIconsOnly"),_.B("design:type",Object),_.B("design:paramtypes",[])],tS.prototype,"buttonOverrides",null);_.x([_.n8("#top-level-buttons-computed"),_.B("design:type",HTMLElement)],tS.prototype,"topLevelButtonsContainer",void 0);_.x([_.iL(".top-level-buttons > *"),_.B("design:type",Array)],tS.prototype,"topLevelButtons",void 0);
_.x([_.n8("#flexible-item-buttons"),_.B("design:type",HTMLElement)],tS.prototype,"flexibleItemButtonsContainer",void 0);_.x([_.iL("#flexible-item-buttons > *"),_.B("design:type",Array)],tS.prototype,"flexibleItemButtons",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tS.prototype,"iconButtonColorChanged",null);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tS.prototype,"setupFlexibleMenu",null);_.x([_.an("topLevelIconsOnly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tS.prototype,"resetFlexibleItems",null);_.x([_.SP("tonalOverride"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tS.prototype,"tonalOverrideChanged",null);
_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tS.prototype,"onPopupOpened",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tS.prototype,"onPopupClosed",null);_.x([_.VV("yt-popup-canceled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tS.prototype,"onPopupCanceled",null);
_.C(tS,"ytd-menu-renderer",function(){if(wV4===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);wV4=K}K=wV4;return K},{mode:_.p8("kevlar_poly_si_batch_j030")?1:2});var mP8;var l38;_.qT=_.C8(function(K){var d=K.data;var f=function(){if(d().icon)a:{var H={iconName:d().icon};for(var D=_.eq().resolve(_.DF),S=_.y([12,24]),n=S.next();!n.done;n=S.next()){var u=n.value;n=Object.assign({},H,{iconStyle:"youtube_fill",iconSize:u});u=Object.assign({},H,{iconStyle:"youtube_outline",iconSize:u});if(D.resolveIcon(n)){H=n;break a}if(D.resolveIcon(u)){H=u;break a}}H=void 0}else H=void 0;return H};
K={};return _.U("badge-shape",{class:_.SC("badge-shape-wiz",function(){return lXz(d().type)},(K["badge-shape-wiz--overlay"]=function(){return d().isOverlay},K["badge-shape-wiz--ads-include-dot"]=function(){return d().adsIncludeDot},K["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(d().type){case 16:case 17:case 18:var H=!0;
break a;default:H=!1}return H},K["badge-shape-wiz--status-badge"]=function(){a:switch(d().type){case 11:case 12:case 13:case 14:case 15:var H=!0;
break a;default:H=!1}return H},K["badge-shape-wiz--no-text"]=function(){return!d().text},K["badge-shape-wiz--modern"]=function(){return d().modern},K)),
style:_.Im({"background-color":function(){var H;return(H=d().customColors)==null?void 0:H.backgroundColor}}),
role:function(){return d().accessibilityText?"img":void 0},
"aria-label":function(){return d().accessibilityText}},_.U(_.X,{cond:function(){return d().animation},
then:function(H){return _.U(_.yC,{className:"badge-shape-wiz__icon",data:H,animationName:function(){return H().animationConfig.name||""}})}}),_.U(_.X,{cond:function(){var H;
return f()&&!((H=d())==null?0:H.animation)},
then:function(){return _.U("div",{class:"badge-shape-wiz__icon"},_.U(qdX,{data:function(){return f()}}))}}),_.U("div",{class:"badge-shape-wiz__text"},function(){var H;
return(H=d())==null?void 0:H.text}))},"K");
_.qT.idomCompat=!0;_.sP(_.qT,"badge-shape",{props:{data:_.rs}});var oT=function(){var K=_.q.apply(this,arguments)||this;K.systemIcons=_.M("kevlar_system_icons");K.animated=_.M("animated_live_badge_icon");K.useBadgeShape=_.M("web_badge_shape_defrag");return K};
_.O(oT,_.q);_.V=oT.prototype;_.V.addTooltips=function(){for(var K=_.E(this.hostElement).querySelectorAll(".badge"),d=0,f;f=K[d++];){var H=this.repeatElement.itemForElement(f);f=_.E(f);f.lastChild&&f.lastChild.is==="tp-yt-paper-tooltip"&&f.removeChild(f.lastChild);if(H=H.metadataBadgeRenderer&&H.metadataBadgeRenderer.tooltip){var D=_.LI("tp-yt-paper-tooltip");(0,_.dj)(D).textContent=H;D.setAttribute("position","top");f.appendChild(D)}}};
_.V.badgesChanged=function(){var K=this;_.ov().parkOrScheduleJob(function(){K.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.V.standaloneRoundedBadgeChanged=function(){var K=this.useRoundedBadge?this.useRoundedBadge:void 0;K&&(this.useRoundedBadge=K)};
_.V.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.V.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.V.computeStyle=function(K){_.M("enable_html5_teal_ad_badge")&&K==="BADGE_STYLE_TYPE_AD"&&(K="badge-style-type-ad-alternate");_.M("kevlar_ytb_live_badges")&&K==="BADGE_STYLE_TYPE_LIVE_NOW"&&(K="badge-style-type-live-now-alternate");return K?K.toLowerCase().replace(/_/g,"-"):""};
_.V.computeRole=function(K){return this.computeAriaLabel(K)?"img":"status"};
_.V.computeAriaLabel=function(K){var d;return(K==null?void 0:(d=K.accessibilityData)==null?void 0:d.label)||(K==null?void 0:K.label)};
_.V.computeBadgeShape=function(K){var d;if(K){var f,H=b$X(K.style),D=mGu(K.style),S=K.label,n=((f=K.accessibilityData)==null?void 0:f.label)||K.label;K=(d=K.icon)==null?void 0:d.iconType;d={type:H,brNzRatingBadgeType:D,text:S,accessibilityText:n,icon:K!=="PREMIUM"?K:void 0}}else d={};return d};
_.V.updateComputedBadges=function(K,d,f){var H=this;(d=d?[d]:f?[f]:void 0)?this.computedBadges=d:this.computedBadges=K==null?void 0:K.filter(function(D){var S;if((S=D.metadataBadgeRenderer)==null?0:S.groups){S=!1;D=_.y(D.metadataBadgeRenderer.groups);for(var n=D.next();!n.done;n=D.next()){n=n.value;var u=void 0;S=S||((u=H.hiddenBadgeGroups)==null?void 0:u.includes(n))}return!S}return!0})};
_.V.useFilledIcons=function(K){return _.M("kevlar_system_icons")&&(K==="AUDIO_BADGE"||K==="CHECK_CIRCLE_THICK"||K==="OFFICIAL_ARTIST_BADGE"||K==="SPONSORSHIP_STAR"||K==="PERSON_RADAR_FILLED"||K==="PERSON_RADAR")};
_.V.computeIcon=function(K){var d,f;K=K==null?void 0:(d=K.metadataBadgeRenderer)==null?void 0:(f=d.icon)==null?void 0:f.iconType;if(K!=="PREMIUM"&&K)return _.Hv(K)};
_.V.computeStandaloneBadge=function(K){var d;K=K==null?void 0:(d=K.icon)==null?void 0:d.iconType;return K==="PREMIUM_STANDALONE"||K==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
oT.prototype.hiddenBadgeGroupsChanged=oT.prototype.hiddenBadgeGroupsChanged;oT.prototype.standaloneBadgeChanged=oT.prototype.standaloneBadgeChanged;oT.prototype.standaloneRoundedBadgeChanged=oT.prototype.standaloneRoundedBadgeChanged;oT.prototype.badgesChanged=oT.prototype.badgesChanged;_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],oT.prototype,"hidden",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],oT.prototype,"componentBehavior",void 0);
_.x([_.A(),_.B("design:type",Array)],oT.prototype,"badges",void 0);_.x([_.A(),_.B("design:type",Object)],oT.prototype,"topStandaloneBadge",void 0);_.x([_.A(),_.B("design:type",Object)],oT.prototype,"bottomStandaloneBadge",void 0);_.x([_.A(),_.B("design:type",Object)],oT.prototype,"computedBadges",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],oT.prototype,"mediumFontAdBadge",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],oT.prototype,"useRoundedBadge",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],oT.prototype,"largeFontAdBadge",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],oT.prototype,"overlayAd",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],oT.prototype,"overlayPremium",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],oT.prototype,"noDotAdBadge",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],oT.prototype,"collectionTruncate",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],oT.prototype,"isThumbnailBadge",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],oT.prototype,"wrapBadges",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],oT.prototype,"systemIcons",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],oT.prototype,"animated",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],oT.prototype,"useBadgeShape",void 0);_.x([_.A({value:[]}),_.B("design:type",Array)],oT.prototype,"hiddenBadgeGroups",void 0);_.x([_.n8("#repeat"),_.B("design:type",M7)],oT.prototype,"repeatElement",void 0);_.x([_.an("badges"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oT.prototype,"badgesChanged",null);
_.x([_.an("useRoundedBadge"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oT.prototype,"standaloneRoundedBadgeChanged",null);_.x([_.an("topStandaloneBadge","bottomStandaloneBadge"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oT.prototype,"standaloneBadgeChanged",null);_.x([_.an("hiddenBadgeGroups"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oT.prototype,"hiddenBadgeGroupsChanged",null);
oT=_.x([_.Q({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],oT);
var WJN=_.eP()(oT,"ytd-badge-supported-renderer",function(){if(l38===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);l38=K}K=l38;return K},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.p8("kevlar_poly_si_batch_j053")?1:2});var $Y=function(){var K=_.q.apply(this,arguments)||this;K.iconType="STAR";K.standardizeIconSize=_.M("kevlar_system_icons");K.mediaHoverOverlayInitialVisibility=_.M("enable_top_landscape_image_button_command_web");K.noBottomMargin=!1;K.thumbnailObjectFit="CONTAIN";K.thumbnailFitHeight=!0;K.actionMap={"yt-mute-ad-action":"handleMuteAd"};return K};
_.O($Y,_.q);_.V=$Y.prototype;
_.V.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"}}}};
_.V.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",$Y.JSC$12539_DEFAULT_CLICK_LOCATION_BEHAVIOR,$Y.JSC$12539_CLICK_LOCATION_ID_MAP))};
_.V.onTap=function(K){if(!_.M("use_on_click_for_desktop_display_ad"))this.onTapOrClick(K)};
_.V.onClick=function(K){if(_.M("use_on_click_for_desktop_display_ad"))this.onTapOrClick(K)};
_.V.onTapOrClick=function(K){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,K,!1)};
_.V.updateMediaBackgroundImage=function(){var K=this.get("data.image.thumbnail.thumbnails");K&&(K=_.kA(K,0))&&_.f8(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+K+")"})};
_.V.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var K=0;K<this.data.impressionEndpoints.length;K++){var d=this.data.impressionEndpoints[K];d.clickTrackingParams&&delete d.clickTrackingParams;_.eq().resolve(_.pQ).resolveCommand(d,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var f;((f=this.data)==null?0:f.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.V.handleMuteAd=function(){};
_.V.attached=function(){var K=this;_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){_.M("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.x$.Object.defineProperties($Y.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.titleText)return"";var d;return _.iB("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((d=this.data)==null?void 0:d.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.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 K;return!((K=this.data)==null||!K.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"}}});
$Y.prototype.onClick=$Y.prototype.onClick;$Y.prototype.onTap=$Y.prototype.onTap;$Y.prototype.dataChanged=$Y.prototype.dataChanged;
$Y.JSC$12539_CLICK_LOCATION_ID_MAP=_.M("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"]]);
$Y.JSC$12539_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.M("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"}];_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.EL),_.B("design:type",Object)],$Y.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],$Y.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.sL.YtSparklesClickLocationBehavior),_.B("design:type",Object)],$Y.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.l(YV),_.B("design:type",Object)],$Y.prototype,"ytdActiveViewBehavior",void 0);_.x([_.l([_.kc.YtActionHandlerBehavior]),_.B("design:type",Object)],$Y.prototype,"actionHandlerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],$Y.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],$Y.prototype,"clickCommand",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],$Y.prototype,"miniMode",void 0);_.x([_.A(),_.B("design:type",String)],$Y.prototype,"iconType",void 0);_.x([_.W("data.titleText"),_.B("design:type",String),_.B("design:paramtypes",[])],$Y.prototype,"titleAriaLabel",null);
_.x([_.W("data.rating"),_.B("design:type",Object),_.B("design:paramtypes",[])],$Y.prototype,"getRating",null);_.x([_.W("data.price"),_.B("design:type",Object),_.B("design:paramtypes",[])],$Y.prototype,"getPrice",null);_.x([_.W("data.thirdLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],$Y.prototype,"getThirdLine",null);_.x([_.W("data.fourthLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],$Y.prototype,"getFourthLine",null);
_.x([_.W("data.fifthLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],$Y.prototype,"getFifthLine",null);_.x([_.W("getRating"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$Y.prototype,"computeRatingHidden",null);_.x([_.W("getPrice"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$Y.prototype,"computePriceHidden",null);_.x([_.W("getThirdLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$Y.prototype,"computeThirdLineHidden",null);
_.x([_.W("getFourthLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$Y.prototype,"computeFourthLineHidden",null);_.x([_.W("getFifthLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$Y.prototype,"computeFifthLineHidden",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.energyIcon"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$Y.prototype,"hasEnergyIcon",null);
_.x([_.W("computePriceHidden","computeRatingHidden"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$Y.prototype,"computeSecondaryTextHidden",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],$Y.prototype,"standardizeIconSize",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],$Y.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],$Y.prototype,"noBottomMargin",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data.layout"),_.B("design:type",String),_.B("design:paramtypes",[])],$Y.prototype,"layout",null);_.x([_.W("data.layout"),_.B("design:type",Object),_.B("design:paramtypes",[])],$Y.prototype,"mediaThumbnailWidth",null);_.x([_.W("layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$Y.prototype,"useRoundedBadge",null);_.x([_.A(),_.B("design:type",String)],$Y.prototype,"thumbnailObjectFit",void 0);
_.x([_.A(),_.B("design:type",Object)],$Y.prototype,"thumbnailFitHeight",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$Y.prototype,"dataChanged",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$Y.prototype,"onTap",null);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$Y.prototype,"onClick",null);
$Y=_.x([_.Q({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],$Y);
_.C($Y,"ytd-display-ad-renderer",function(){if(mP8!==void 0)return mP8;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return mP8=K},{mode:1});var GBk;var Awt;var T$k;var W7p=new Map;var rwf=!1;var EO=function(){var K=_.q.apply(this,arguments)||this;K.DEFAULT_TOOLTIP_OFFSET="10";K.TOOLTIP_OFFSET_NO_BANNER="-8";K.badges=null;K.noEndpoints=!1;K.wrapText=!1;K.forceVerified=!1;K.tooltipPosition="top";K.compactStyle=!1;K.height=0;K.lineHeight=0;return K};
_.O(EO,_.q);_.V=EO.prototype;_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.V.attached=function(){var K=this;this.observer=new MutationObserver(function(d,f){K.handleResized();f.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.V.detached=function(){this.observer&&this.observer.disconnect()};
_.V.logTooltipEvent=function(){_.M("kevlar_wiz_tooltip_event_killswitch")||rwf||(_.GmO("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),rwf=!0)};
_.V.handleWindowResized=function(){this.handleResized()};
_.V.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")))};
_.V.onHeightChanged=function(){if(this.verified){var K=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.mD("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=K:this.textContainerEl.style.marginRight=K}};
_.V.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.mD("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.V.handleResized=function(){var K=this;this.verified&&_.oc.addLowPriorityJob(function(){K.fitBackgroundToText();var d=getComputedStyle(K.hostElement).lineHeight;d&&(d=d.match(/\d+/))&&d.length&&(K.lineHeight=Number(d[0]));K.height=K.lineHeight&&!K.wrapText?K.lineHeight:K.textEl.offsetHeight})};
_.V.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var K=document.createRange(),d=_.E(this.textEl).children;d.length>0?K.selectNodeContents(d[0]):K.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(K.getBoundingClientRect().width)+"px"}};
_.V.computeChannelBadgeStyle=function(K){var d;if((K==null?0:(d=K.runs)==null?0:d.length)&&K.runs[0].textColor)return"--ytd-badge-icon-color:"+_.E1(K.runs[0].textColor)+";"};
_.x$.Object.defineProperties(EO.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"?_.rB(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var K=this.get("badges.0.metadataBadgeRenderer.tooltip");if(K)return K}return _.qQ(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
EO.prototype.onLineHeightChanged=EO.prototype.onLineHeightChanged;EO.prototype.onHeightChanged=EO.prototype.onHeightChanged;EO.prototype.onChannelNameChanged=EO.prototype.onChannelNameChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],EO.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],EO.prototype,"badges",void 0);_.x([_.A(),_.B("design:type",Object)],EO.prototype,"channelName",void 0);
_.x([_.A(),_.B("design:type",Object)],EO.prototype,"noEndpoints",void 0);_.x([_.A(),_.B("design:type",Object)],EO.prototype,"wrapText",void 0);_.x([_.A(),_.B("design:type",Object)],EO.prototype,"forceVerified",void 0);_.x([_.A(),_.B("design:type",Object)],EO.prototype,"tooltipPosition",void 0);_.x([_.A(),_.B("design:type",String)],EO.prototype,"tooltip",void 0);_.x([_.A(),_.B("design:type",Boolean)],EO.prototype,"hasChannelArt",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],EO.prototype,"compactStyle",void 0);_.x([_.n8("#text-container"),_.B("design:type",HTMLElement)],EO.prototype,"textContainerEl",void 0);_.x([_.n8("#text"),_.B("design:type",Object)],EO.prototype,"textEl",void 0);_.x([_.n8("#verified-tooltip"),_.B("design:type",HTMLElement)],EO.prototype,"verifiedTooltip",void 0);_.x([_.A(),_.B("design:type",Object)],EO.prototype,"height",void 0);
_.x([_.A(),_.B("design:type",Object)],EO.prototype,"lineHeight",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("badges","forceVerified"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],EO.prototype,"verified",null);_.x([_.W("badges","verified"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],EO.prototype,"hideBadges",null);_.x([_.W("channelName"),_.B("design:type",Object),_.B("design:paramtypes",[])],EO.prototype,"formattedName",null);
_.x([_.W("badges","verified","formattedName"),_.B("design:type",String),_.B("design:paramtypes",[])],EO.prototype,"tooltipText",null);_.x([_.W("hasChannelArt"),_.B("design:type",String),_.B("design:paramtypes",[])],EO.prototype,"tooltipOffset",null);_.x([_.SP("channelName"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EO.prototype,"onChannelNameChanged",null);
_.x([_.SP("height"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EO.prototype,"onHeightChanged",null);_.x([_.SP("lineHeight","height"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EO.prototype,"onLineHeightChanged",null);EO=_.x([_.Q({is:"ytd-channel-name",disableElementRegistration:!0})],EO);
_.C(EO,"ytd-channel-name",function(){if(T$k!==void 0)return T$k;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return T$k=K},{mode:_.p8("kevlar_poly_si_batch_j036")?1:2});var hS=function(){var K=_.q.apply(this,arguments)||this;K.standardizeIconSize=_.M("kevlar_system_icons");K.enableModernCommentBadges=_.M("enable_modern_comment_badges");return K};
_.O(hS,_.q);hS.prototype.basicPaletteChanged=function(){var K;(K=this.data.color)!=null&&K.basicColorPaletteData&&_.gH(this.hostElement,this.data.color.basicColorPaletteData)};
hS.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var K,d=this.get("basicColorPaletteData.backgroundColor",(K=this.data)==null?void 0:K.color),f;K=this.get("basicColorPaletteData.foregroundTitleColor",(f=this.data)==null?void 0:f.color);f={};d?(d=_.E1(d),f["--ytd-author-comment-badge-background-color"]=d):(f["--ytd-author-comment-badge-icon-background-color"]="transparent",f["--ytd-author-comment-badge-background-color"]="transparent");K?(d=_.E1(K),f["--ytd-author-comment-badge-name-color"]=
d,f["--ytd-author-comment-badge-icon-color"]=d):f["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(f).length>0&&_.f8(this.hostElement,f)}};
hS.prototype.useFilledIcons=function(K){return _.M("kevlar_system_icons")&&(K==="CHECK_CIRCLE_THICK"||K==="OFFICIAL_ARTIST_BADGE")};
_.x$.Object.defineProperties(hS.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
hS.prototype.colorChanged=hS.prototype.colorChanged;hS.prototype.basicPaletteChanged=hS.prototype.basicPaletteChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],hS.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],hS.prototype,"standardizeIconSize",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],hS.prototype,"enableModernCommentBadges",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data.authorUnifiedVerified"),_.B("design:type",Object),_.B("design:paramtypes",[])],hS.prototype,"verified",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],hS.prototype,"creator",null);_.x([_.SP("data.color.basicColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hS.prototype,"basicPaletteChanged",null);
_.x([_.SP("data.color"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hS.prototype,"colorChanged",null);hS=_.x([_.Q({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],hS);
_.C(hS,"ytd-author-comment-badge-renderer",function(){if(Awt!==void 0)return Awt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Awt=K},{mode:1});var qes;var bZ=function(){return _.q.apply(this,arguments)||this};
_.O(bZ,_.q);bZ.prototype.computeThumbnailWidth=function(K){if(K==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],bZ.prototype,"data",void 0);_.x([_.A({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],bZ.prototype,"icon",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],bZ.prototype,"surface",void 0);
_.x([_.A({reflectToAttribute:!0,value:_.M("enable_shrink_image_size_on_web_posts_singleton")}),_.B("design:type",Boolean)],bZ.prototype,"searchSxsUx",void 0);bZ=_.x([_.Q({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],bZ);
_.C(bZ,"ytd-backstage-image-renderer",function(){if(qes!==void 0)return qes;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return qes=K},{mode:1});var QNf;var mX=function(){var K=_.q.apply(this,arguments)||this;K.isLoading=!1;K.selectedItemIndex=-1;return K};
_.O(mX,_.q);_.V=mX.prototype;_.V.computeIsChannelOwner=function(K){if(!K)return!0;K=K[0];return!(K&&(K.signinEndpoint||K.selectServiceEndpoint))};
_.V.computeIsImagePoll=function(K){return(K==null?void 0:K.type)==="POLL_TYPE_IMAGE"};
_.V.computeIsTotalVotesDisabled=function(K){return!(K==null?0:K.totalVotes)};
_.V.thumbnailSrc=function(K){var d,f,H,D;return(K==null?0:(d=K.thumbnails)==null?0:(f=d[0])==null?0:f.url)?_.Xa((H=K.thumbnails)==null?void 0:(D=H[0])==null?void 0:D.url):void 0};
_.V.progressWidth=function(K){return"width:"+(K?K*100:0)+"%;"};
_.V.textAreaWidth=function(K){return this.isImagePoll?null:"width:"+(K?K*100:0)+"%;"};
_.V.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.V.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var K=this.data.choices,d=0;d<K.length;d++)if(K[d].selected){this.selectedItemIndex=d;break}};
_.V.onPopupClosed=function(K,d){K=Number(this.pollVotes.selected);d.confirmed&&(this.selectChoice(K,!1),_.ev(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.V.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.V.onYtCommentPollRevert=function(K,d){d&&(this.selectChoice(d.selectedChoiceIndex,!0),this.set("data.totalVotes",d.totalVotes))};
_.V.onYtServiceRequestSent=function(K,d){if(d.actions)for(K=0;K<d.actions.length;K++){var f=d.actions[K];_.P(f,zI)&&this.set("data.totalVotes",_.P(f,zI).totalVotes)}};
_.V.onYtServiceRequestCompleted=function(K){var d=this.get("detail.data.actionResults.0.feedback",K);K=this.get("detail.data.actionResults.0.status",K);if(d==="FEEDBACK_DESELECT"||d==="FEEDBACK_SELECT")this.isLoading=!1,K==="STATUS_FAILED"?_.Zp(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.V.getEndpoint=function(K,d){return d===K?this.data.choices[d].deselectServiceEndpoint||null:this.data.choices[K].selectServiceEndpoint||null};
_.V.selectChoice=function(K,d){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var f=0;f<this.data.choices.length;f++){var H;if(K===this.selectedItemIndex){var D=!1;var S=H=null}else H=(D=f===K)?this.data.choices[f].voteRatioIfSelected:this.data.choices[f].voteRatioIfNotSelected,S=D?this.data.choices[f].votePercentageIfSelected:this.data.choices[f].votePercentageIfNotSelected;this.set("data.choices."+f+".voteRatio",H);
this.set("data.choices."+f+".votePercentage",S);this.set("data.choices."+f+".selected",D)}d||(this.isLoading=!0,(d=this.getEndpoint(K,this.selectedItemIndex))&&_.eq().resolve(_.pQ).resolveCommand(d,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===K?-1:K};
_.x$.Object.defineProperties(mX.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
mX.prototype.onYtServiceRequestCompleted=mX.prototype.onYtServiceRequestCompleted;mX.prototype.onYtServiceRequestSent=mX.prototype.onYtServiceRequestSent;mX.prototype.onYtCommentPollRevert=mX.prototype.onYtCommentPollRevert;mX.prototype.onPopupClosed=mX.prototype.onPopupClosed;mX.prototype.dataChanged=mX.prototype.dataChanged;_.x([_.l(_.rO),_.B("design:type",Object)],mX.prototype,"paperItemBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],mX.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],mX.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],mX.prototype,"isLoading",void 0);_.x([_.A({computed:"computeIsChannelOwner(data.choices)"}),_.B("design:type",Boolean)],mX.prototype,"isChannelOwner",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.B("design:type",Boolean)],mX.prototype,"isImagePoll",void 0);_.x([_.A({computed:"computeIsTotalVotesDisabled(data)"}),_.B("design:type",Boolean)],mX.prototype,"isTotalVotesDisabled",void 0);_.x([_.A(),_.B("design:type",Object)],mX.prototype,"previousPollInfo",void 0);_.x([_.A(),_.B("design:type",Object)],mX.prototype,"selectedItemIndex",void 0);_.x([_.n8("#poll-votes"),_.B("design:type",Object)],mX.prototype,"pollVotes",void 0);
_.x([_.W("isChannelOwner"),_.B("design:type",Object),_.B("design:paramtypes",[])],mX.prototype,"endpointStyle",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mX.prototype,"dataChanged",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],mX.prototype,"onPopupClosed",null);
_.x([_.VV("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],mX.prototype,"onYtCommentPollRevert",null);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],mX.prototype,"onYtServiceRequestSent",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],mX.prototype,"onYtServiceRequestCompleted",null);mX=_.x([_.Q({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],mX);
_.C(mX,"ytd-backstage-poll-renderer",function(){if(QNf!==void 0)return QNf;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return QNf=K},{mode:2});var jNv;var Crk={autoplay:!1,loop:!1},xP8={simpleText:""},lZ=function(){var K=_.q.apply(this,arguments)||this;K.isLoading=!1;K.usesPanelLockup=!1;K.selectedItemIndex=-1;K.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Crk,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});K.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Crk,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});K.correctnessAnimationProps=[];K.correctnessAnimationRefs=[];return K};
_.O(lZ,_.q);_.V=lZ.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.V.computeIsChannelOwner=function(K){if(!K)return!0;K=K[0];return!(K&&(K.signinEndpoint||K.selectServiceEndpoint))};
_.V.computeIsTotalVotesDisabled=function(K){return!(K==null?0:K.totalVotes)};
_.V.computeIsImageQuiz=function(K){return(K==null?void 0:K.type)==="POLL_TYPE_IMAGE"};
_.V.onExplanationChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var K=this.data.choices;if(K){this.maybeInitializeQuizLotties(K);for(var d=0;d<K.length;d++)if(K[d].isSelected||this.isChannelOwner&&K[d].isCorrect){this.selectedItemIndex=d;return}this.selectedItemIndex=-1}}};
_.V.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var K=this.selectedItemIndex,d=Number(this.quizVotes.selected);this.selectChoice(d);this.sendVoteAction(d,K);this.quizVotes.selected=-1;var f;K=!((f=this.data)==null?0:f.enableAnimation);this.maybePlayAnswerAnimations(K)}};
_.V.onYtCommentPollRevert=function(K,d){d&&(this.selectChoice(d.selectedChoiceIndex),this.set("data.totalVotes",d.totalVotes))};
_.V.onYtServiceRequestSent=function(K,d){if(d.actions)for(K=_.y(d.actions),d=K.next();!d.done;d=K.next())(d=_.P(d.value,zI))&&this.set("data.totalVotes",d.totalVotes)};
_.V.onYtServiceRequestCompleted=function(K){var d=this.get("detail.data.actionResults.0.feedback",K);K=this.get("detail.data.actionResults.0.status",K);if(d==="FEEDBACK_DESELECT"||d==="FEEDBACK_SELECT")this.isLoading=!1,K==="STATUS_FAILED"?_.Zp(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.V.getAnimationPropsForChoiceIndex=function(K,d){return d[K]};
_.V.maybePlayAnswerAnimations=function(K){K=K===void 0?!1:K;var d;if((d=this.data)!=null&&d.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){d=_.y(this.correctnessAnimationRefs);for(var f=d.next();!f.done;f=d.next()){var H=void 0,D=void 0;(H=f.value)==null||(D=H.lottieEl)==null||D.stop()}if(!(this.selectedItemIndex<0)){d=0;K&&(d=this.isCorrect?37:25);var S,n;(S=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(n=S.lottieEl)==null||n.goToAndPlay(K?d:0,!0);if(!(this.isCorrect||
(S=this.data.choices.findIndex(function(F){return F.isCorrect}),S<0))){var u,a;
(a=(u=this.correctnessAnimationRefs[S])==null?void 0:u.lottieEl)==null||a.goToAndPlay(37,!0);var R;u=(R=this.fadeContainers)==null?void 0:R.item(S);!K&&u&&this.fadeIn(u)}}}};
_.V.thumbnailSrc=function(K){var d,f,H,D;return(K==null?0:(d=K.thumbnails)==null?0:(f=d[0])==null?0:f.url)?_.Xa((H=K.thumbnails)==null?void 0:(D=H[0])==null?void 0:D.url):void 0};
_.V.a11yVotedText=function(K,d){var f,H,D=((f=this.data)==null?void 0:(H=f.correctVotedText)==null?void 0:H.simpleText)||"",S,n;f=((S=this.data)==null?void 0:(n=S.votedText)==null?void 0:n.simpleText)||"";if(!d)return"";var u,a;if((u=this.data)==null?0:(a=u.choices)==null?0:a[K].isCorrect)return D;var R,F;return((R=this.data)==null?0:(F=R.choices)==null?0:F[K].isSelected)?f:""};
_.V.getEndpoint=function(K,d){return d===K?this.data.choices[K].deselectServiceEndpoint||null:this.data.choices[K].selectServiceEndpoint||null};
_.V.sendVoteAction=function(K,d){if(K=this.getEndpoint(K,d))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(K)};
_.V.selectChoice=function(K){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var d=0;d<this.data.choices.length;d++)this.set("data.choices."+d+".isSelected",K===this.selectedItemIndex?!1:d===K);this.selectedItemIndex=this.selectedItemIndex===K?-1:K};
_.V.maybeInitializeQuizLotties=function(K){var d=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=K.map(function(f){return{animationConfig:f.isCorrect?d.baseCorrectLottiePlayerAnimationConfig:d.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){d.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(f){return f.animationRef||{}})};
_.V.fadeIn=function(K){K.classList.add("fade-in");_.pZ(_.oc,function(){K.classList.remove("fade-in")},900)};
_.x$.Object.defineProperties(lZ.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.qQ(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 K,d;return((K=this.data)==null?void 0:(d=K.choices)==null?void 0:d.some(function(f){return f.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null||!K.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?xP8:this.data.choices[this.selectedItemIndex].explanation||xP8}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null||!K.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
lZ.prototype.onYtServiceRequestCompleted=lZ.prototype.onYtServiceRequestCompleted;lZ.prototype.onYtServiceRequestSent=lZ.prototype.onYtServiceRequestSent;lZ.prototype.onYtCommentPollRevert=lZ.prototype.onYtCommentPollRevert;lZ.prototype.dataChanged=lZ.prototype.dataChanged;lZ.prototype.onExplanationChanged=lZ.prototype.onExplanationChanged;_.x([_.l(_.rO),_.B("design:type",Object)],lZ.prototype,"paperItemBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],lZ.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.xc.YtTaskEmitterBehavior),_.B("design:type",Object)],lZ.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],lZ.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],lZ.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],lZ.prototype,"isLoading",void 0);_.x([_.A(),_.B("design:type",Object)],lZ.prototype,"usesPanelLockup",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.B("design:type",Boolean)],lZ.prototype,"isChannelOwner",void 0);_.x([_.A({computed:"computeIsTotalVotesDisabled(data)"}),_.B("design:type",Boolean)],lZ.prototype,"isTotalVotesDisabled",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.B("design:type",Boolean)],lZ.prototype,"isImageQuiz",void 0);_.x([_.A(),_.B("design:type",Object)],lZ.prototype,"previousQuizInfo",void 0);_.x([_.A(),_.B("design:type",Object)],lZ.prototype,"selectedItemIndex",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data","usesPanelLockup"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],lZ.prototype,"shouldUseModernUi",null);
_.x([_.iL(".fade-container"),_.B("design:type",Object)],lZ.prototype,"fadeContainers",void 0);_.x([_.A(),_.B("design:type",Array)],lZ.prototype,"correctnessAnimationProps",void 0);_.x([_.W("explanation","showCorrectAnswer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],lZ.prototype,"showExplanation",null);_.x([_.W("isChannelOwner","isAttempted"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],lZ.prototype,"showCorrectAnswer",null);
_.x([_.W("isChannelOwner","isAttempted","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],lZ.prototype,"isQuizAnsweringDisabled",null);_.x([_.W("isQuizAnsweringDisabled"),_.B("design:type",Object),_.B("design:paramtypes",[])],lZ.prototype,"endpointStyle",null);_.x([_.W("data","selectedItemIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],lZ.prototype,"isAttempted",null);
_.x([_.W("data","selectedItemIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],lZ.prototype,"explanation",null);_.x([_.W("data","selectedItemIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],lZ.prototype,"isCorrect",null);_.x([_.n8("ytd-expander"),_.B("design:type",Object)],lZ.prototype,"expander",void 0);_.x([_.n8("#quiz-votes"),_.B("design:type",Object)],lZ.prototype,"quizVotes",void 0);
_.x([_.SP("explanation"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lZ.prototype,"onExplanationChanged",null);_.x([_.SP("data","isChannelOwner"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lZ.prototype,"dataChanged",null);_.x([_.VV("yt-comment-quiz-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],lZ.prototype,"onYtCommentPollRevert",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],lZ.prototype,"onYtServiceRequestSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],lZ.prototype,"onYtServiceRequestCompleted",null);lZ=_.x([_.Q({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],lZ);
_.C(lZ,"ytd-backstage-quiz-renderer",function(){if(jNv!==void 0)return jNv;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return jNv=K},{mode:1});var LJB;var WI=function(){return _.q.apply(this,arguments)||this};
_.O(WI,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],WI.prototype,"data",void 0);WI=_.x([_.Q({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],WI);
_.C(WI,"ytd-post-uploaded-video-renderer",function(){if(LJB!==void 0)return LJB;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return LJB=K},{mode:1});var B$9;var GT=function(){return _.q.apply(this,arguments)||this};
_.O(GT,_.q);GT.prototype.useFilledIcons=function(K){return K==="SPONSORSHIP_STAR"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],GT.prototype,"data",void 0);GT=_.x([_.Q({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],GT);
_.C(GT,"ytd-sponsors-only-badge-renderer",function(){if(B$9!==void 0)return B$9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return B$9=K},{mode:1});var Jws;var AS=function(){return _.q.apply(this,arguments)||this};
_.O(AS,_.q);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],AS.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],AS.prototype,"data",void 0);AS=_.x([_.Q({is:"ytd-child-video-renderer",disableElementRegistration:!0})],AS);
_.C(AS,"ytd-child-video-renderer",function(){if(Jws!==void 0)return Jws;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Jws=K},{mode:1});var sN4;var kBH;var TT=function(){var K=_.q.apply(this,arguments)||this;K.size=0;K.enableWebModernCollectionsV2=_.M("web_modern_collections_v2");K.fallbackImageSize={height:void 0,width:9999};K.webModernCollections=!1;return K};
_.O(TT,_.q);_.V=TT.prototype;_.V.computeBlurredImageSize=function(K){return K?{height:K*2,width:K*2}:this.fallbackImageSize};
_.V.computeImageSize=function(K){return K?{height:K,width:K}:this.fallbackImageSize};
_.V.computeObjectFit=function(K){return K?"FILL":"CONTAIN"};
_.V.computePreserve=function(K){return K?!0:!1};
_.V.setBackground=function(){var K,d;_.M("web_modern_collections_v2")&&((K=this.data)==null?0:(d=K.thumbnail)==null?0:d.sampledThumbnailColor)&&(K=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+K.red+","+K.green+","+K.blue+",1)")};
TT.prototype.setBackground=TT.prototype.setBackground;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],TT.prototype,"watchFeedThumbnail",void 0);_.x([_.A(),_.B("design:type",Object)],TT.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],TT.prototype,"size",void 0);
_.x([_.A({computed:"computeBlurredImageSize(size)"}),_.B("design:type",Object)],TT.prototype,"blurredImageSize",void 0);_.x([_.A({computed:"computeImageSize(size)"}),_.B("design:type",Object)],TT.prototype,"imageSize",void 0);_.x([_.A({computed:"computePreserve(size)"}),_.B("design:type",String)],TT.prototype,"preserve",void 0);_.x([_.A({computed:"computeObjectFit(size)"}),_.B("design:type",String)],TT.prototype,"objectFit",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],TT.prototype,"enableWebModernCollectionsV2",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],TT.prototype,"webModernCollections",void 0);_.x([_.SP("data.thumbnail.sampledThumbnailColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TT.prototype,"setBackground",null);TT=_.x([_.Q({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],TT);
_.C(TT,"ytd-playlist-custom-thumbnail-renderer",function(){if(kBH!==void 0)return kBH;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return kBH=K},{mode:1});var w1N;var rJ=function(){return _.q.apply(this,arguments)||this};
_.O(rJ,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],rJ.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Number)],rJ.prototype,"width",void 0);rJ=_.x([_.Q({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],rJ);
_.C(rJ,"ytd-playlist-video-thumbnail-renderer",function(){if(w1N!==void 0)return w1N;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return w1N=K},{mode:1});var ZSk;var qZ=function(){return _.q.apply(this,arguments)||this};
_.O(qZ,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qZ.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Number)],qZ.prototype,"width",void 0);qZ=_.x([_.Q({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],qZ);
_.C(qZ,"ytd-show-custom-thumbnail-renderer",function(){if(ZSk!==void 0)return ZSk;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ZSk=K},{mode:1});var eYs;var Q3=function(){return _.q.apply(this,arguments)||this};
_.O(Q3,_.q);Q3.prototype.useFilledIcons=function(K){return K==="MUSIC"||K==="COURSE"};
Q3.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=bs(this.overlayColor,"0.8");else if(this.overlayColor){var K=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+K.red+","+K.green+","+K.blue+",0.8)"}};
_.x$.Object.defineProperties(Q3.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)}}});
Q3.prototype.overlayColorChanged=Q3.prototype.overlayColorChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Q3.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Q3.prototype,"overlayColor",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data.icon","data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],Q3.prototype,"overlayStyle",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data.icon","data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],Q3.prototype,"overlayTextStyle",null);_.x([_.SP("overlayColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q3.prototype,"overlayColorChanged",null);Q3=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Q3);
_.C(Q3,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(eYs!==void 0)return eYs;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return eYs=K},{mode:1});var p1s;var jE=function(){var K=_.q.apply(this,arguments)||this;K.active=!1;return K};
_.O(jE,_.q);jE.prototype.computeIsSpinnerHidden=function(K){return(K==null?void 0:K.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
jE.prototype.computeOverlayIcon=function(K){return(K==null?void 0:K.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(K==null?void 0:K.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],jE.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],jE.prototype,"active",void 0);jE=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],jE);
_.C(jE,"ytd-thumbnail-overlay-downloading-renderer",function(){if(p1s!==void 0)return p1s;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return p1s=K},{mode:1});var KIL;var Cv=function(){return _.q.apply(this,arguments)||this};
_.O(Cv,_.q);_.x$.Object.defineProperties(Cv.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Cv.prototype,"data",void 0);_.x([_.W("data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],Cv.prototype,"text",null);Cv=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Cv);
_.C(Cv,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(KIL!==void 0)return KIL;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return KIL=K},{mode:1});var dWB,fi9=function(){if(dWB!==void 0)return dWB;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return dWB=K};var xY=function(){return _.q.apply(this,arguments)||this};
_.O(xY,_.q);_.x$.Object.defineProperties(xY,{template:{configurable:!0,enumerable:!0,get:function(){return fi9()}}});
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],xY.prototype,"animateEqualizer",void 0);xY=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],xY);_.eP()(xY,"ytd-thumbnail-overlay-equalizer",function(){return fi9()},{allowedProps:["animateEqualizer"],
mode:1});var His;var Lv=function(){var K=_.q.apply(this,arguments)||this;K.nowPlayingBadge=_.M("web_now_playing_badge");K.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return K};
_.O(Lv,_.q);Lv.prototype.activeChanged=function(){var K=this;_.M("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.jW(this,function(){_.Zp(K.hostElement,"yt-playlist-lockup-now-playing-active",K)})};
Lv.prototype.onMiniplayerPlayStateChanged=function(K){var d,f=(d=_.P(_.SJ().currentEndpoint,_.qu))==null?void 0:d.videoId;this.isVideoPlaying=K&&(_.M("web_limit_now_playing_animation_killswitch")||this.videoId===f)};
Lv.prototype.activeChanged=Lv.prototype.activeChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Lv.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Lv.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],Lv.prototype,"isVideoPlaying",void 0);_.x([_.A(),_.B("design:type",String)],Lv.prototype,"videoId",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Lv.prototype,"equalizerOnly",void 0);_.x([_.A(),_.B("design:type",Boolean)],Lv.prototype,"isActive",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lv.prototype,"nowPlayingBadge",void 0);_.x([_.SP("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lv.prototype,"activeChanged",null);
Lv=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Lv);
_.C(Lv,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(His!==void 0)return His;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return His=K},{mode:1});var DWk;var BI=function(){return _.q.apply(this,arguments)||this};
_.O(BI,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],BI.prototype,"data",void 0);BI=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],BI);
_.C(BI,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(DWk!==void 0)return DWk;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return DWk=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var V8N;var JS=function(){return _.q.apply(this,arguments)||this};
_.O(JS,_.q);JS.prototype.onDurationChanged=function(){var K,d;_.E(this.hostElement).querySelector("#progress").style.width=((d=(K=this.data)==null?void 0:K.percentDurationWatched)!=null?d:0)+"%"};
JS.prototype.onDurationChanged=JS.prototype.onDurationChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],JS.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],JS.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],JS.prototype,"isLive",void 0);_.x([_.SP("data.percentDurationWatched"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JS.prototype,"onDurationChanged",null);
JS=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],JS);
_.C(JS,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(V8N!==void 0)return V8N;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return V8N=K},{mode:1});var SB8;var sO=function(){var K=_.q.apply(this,arguments)||this;K.bottomPanel=!1;K.richGridOverlay=!1;K.watchFeedOverlay=!1;K.isCompact=!1;return K};
_.O(sO,_.q);sO.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.x$.Object.defineProperties(sO.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:(d=K.icon)==null?void 0:d.iconType)==="PLAY_ALL"&&_.M("kevlar_system_icons")}}});
sO.prototype.widthChanged=sO.prototype.widthChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],sO.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Number)],sO.prototype,"width",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],sO.prototype,"bottomPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],sO.prototype,"richGridOverlay",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],sO.prototype,"watchFeedOverlay",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],sO.prototype,"isCompact",void 0);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],sO.prototype,"isIconFilled",null);_.x([_.SP("width","watchFeedOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sO.prototype,"widthChanged",null);
sO=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],sO);
_.C(sO,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(SB8!==void 0)return SB8;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return SB8=K},{mode:1});var y76;var njL=["CLIP","SHORTS"],kY=function(){var K=_.q.apply(this,arguments)||this;K.animated=_.M("animated_live_badge_icon");K.hasIcon=!1;K.updateTimerIntervalId=0;K.timeSinceLive=0;return K};
_.O(kY,_.q);_.V=kY.prototype;_.V.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.V.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.V.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.V.hasIconOrText=function(){var K,d;return!!(((K=this.data)==null?0:K.icon)||((d=this.data)==null?0:d.text))};
_.V.initializeLiveBadgeTimer=function(){var K=this,d,f=(d=this.liveBadgeData)==null?void 0:d.startTimestampSec;if(f&&this.canShowLiveBadgeTimer()){var H;d=Number((H=this.liveBadgeData)==null?void 0:H.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(f);this.updateTimerIntervalId=_.SQ(function(){K.canShowLiveBadgeTimer()?K.timeSinceLive++:(K.timeSinceLive=0,window.clearInterval(K.updateTimerIntervalId))},d)}else this.timeSinceLive=0};
_.V.canShowLiveBadgeTimer=function(){var K=Date.now(),d,f;return K<(Number((d=this.liveBadgeData)==null?void 0:d.endTimestampSec)-1)*1E3&&K>Number((f=this.liveBadgeData)==null?void 0:f.startTimestampSec)*1E3};
_.x$.Object.defineProperties(kY.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K=this.data;var d=this.timeSinceLive;var f,H,D,S;a:{var n=K.style;if(n===void 0)n=16;else switch(n){case "LIVE":n=17;break a;default:n=16}}d={type:n,text:d?rQp({seconds:d}):_.qQ(K.text),accessibilityText:(f=K.text)==null?void 0:(H=f.accessibility)==null?void 0:(D=H.accessibilityData)==null?void 0:D.label,icon:(S=K.icon)==null?void 0:S.iconType}}else d={};return d}},
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 K;return(K=this.data)==null?void 0:K.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 njL.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
kY.prototype.initializeLiveBadgeTimer=kY.prototype.initializeLiveBadgeTimer;kY.prototype.dataChanged=kY.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],kY.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],kY.prototype,"data",void 0);_.x([_.A({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],kY.prototype,"icon",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],kY.prototype,"animated",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.B("design:type",Boolean)],kY.prototype,"hideTimeStatus",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],kY.prototype,"hasIcon",void 0);_.x([_.A(),_.B("design:type",Object)],kY.prototype,"timeSinceLive",void 0);_.x([_.W("data","timeSinceLive"),_.B("design:type",Object),_.B("design:paramtypes",[])],kY.prototype,"badgeShapeData",null);
_.x([_.W("data","overlayType"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kY.prototype,"hideBadgeShape",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kY.prototype,"dataChanged",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],kY.prototype,"overlayStyle",null);
_.x([_.W("data.liveBadgeData"),_.B("design:type",Object),_.B("design:paramtypes",[])],kY.prototype,"liveBadgeData",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.type"),_.B("design:type",Object),_.B("design:paramtypes",[])],kY.prototype,"overlayType",null);_.x([_.W("overlayType","overlayStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kY.prototype,"useFilledIcon",null);
_.x([_.an("liveBadgeData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kY.prototype,"initializeLiveBadgeTimer",null);kY=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],kY);
_.C(kY,"ytd-thumbnail-overlay-time-status-renderer",function(){if(y76!==void 0)return y76;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return y76=K},{mode:_.p8("kevlar_poly_si_batch_j035")?1:2});var ii9;var wJ=function(){return _.q.apply(this,arguments)||this};
_.O(wJ,_.q);wJ.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"}}}}};
wJ.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(K){if(this.hasPlaybackProgressBar)return{percentDurationWatched:K.percentDurationWatched}};
wJ.prototype.computeHasPlaybackProgressBar=function(K){return!!K.percentDurationWatched&&K.percentDurationWatched>0};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],wJ.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.B("design:type",Boolean)],wJ.prototype,"hasPlaybackProgressBar",void 0);
wJ=_.x([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],wJ);
_.C(wJ,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(ii9!==void 0)return ii9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ii9=K},{mode:1});var c72;var uAJ=_.C8(function(K){var d=K.data;var f=K.children;var H=function(){return!!d().doubleStack};
return _.U("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!d().experimentEnabled}},_.U(_.X,{cond:d,
then:function(){return _.U("div",null,_.U(_.X,{cond:H,then:function(){var D={};return _.U("div",{class:_.SC("collections-stack-wiz__collection-stack2",function(){return d().customClassName2ndStack},(D["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return d().enableResponsiveMode},D)),
style:_.Im({"background-color":function(){return TeS(d())}})})}}),_.U("div",{class:_.SC("collections-stack-wiz__collection-stack1",function(){return d().customClassName1stStack},function(){return AUz(d().thumbnailSize?d().thumbnailSize:"medium")}),
style:_.Im({"background-color":function(){return TeS(d())}})}),f)}}))},"L");_.sP(uAJ,"yt-collections-stack",{props:{data:_.rs}});var ZG=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};K.webModernCollections=!1;K.isSearch=!1;K.isDoubleStack=!1;K.thumbnailSize="medium";K.enableWebModernCollectionsV2=_.M("web_modern_collections_v2");return K};
_.O(ZG,_.q);_.V=ZG.prototype;
_.V.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]]"}}}}}};
_.V.getThumbnailDetails=function(K){if(K!=null&&K.thumbnailRenderer){var d=K.thumbnailRenderer,f;if((f=d.playlistVideoThumbnailRenderer)==null?0:f.thumbnail)return d.playlistVideoThumbnailRenderer.thumbnail;var H;if((H=d.playlistCustomThumbnailRenderer)==null?0:H.thumbnail)return d.playlistCustomThumbnailRenderer.thumbnail;K=K.thumbnailRenderer;var D;if((D=K.showCustomThumbnailRenderer)==null?0:D.thumbnail)return K.showCustomThumbnailRenderer.thumbnail}};
_.V.computeOverlayColor=function(K){var d,f;if((d=this.getThumbnailDetails(K))==null?0:(f=d.darkColorPalette)==null?0:f.section2Color)return this.getThumbnailDetails(K).darkColorPalette.section2Color;var H;return(H=this.getThumbnailDetails(K))==null?void 0:H.sampledThumbnailColor};
_.V.computeWebModernCollections=function(K){if(K==null||!K.thumbnailOverlays)return!1;K=_.y(K.thumbnailOverlays);for(var d=K.next();!d.done;d=K.next()){var f=void 0;if((f=d.value)==null?0:f.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.V.computeNavigationEndpoint=function(K){return Cep(K==null?void 0:K.navigationEndpoint)};
_.x$.Object.defineProperties(ZG.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var K=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:K==null?void 0:K.sampledThumbnailColor,vibrantColorPalette:K==null?void 0:K.vibrantColorPalette,darkColorPalette:K==null?void 0:K.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ZG.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(P7s),_.B("design:type",Object)],ZG.prototype,"ytdThumbnailBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ZG.prototype,"componentBehavior",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],ZG.prototype,"watchFeedThumbnail",void 0);_.x([_.A(),_.B("design:type",Number)],ZG.prototype,"customThumbnailSize",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],ZG.prototype,"hideAria",void 0);_.x([_.A(),_.B("design:type",Object)],ZG.prototype,"data",void 0);_.x([_.A({computed:"computeOverlayColor(data)"}),_.B("design:type",Object)],ZG.prototype,"overlayColor",void 0);
_.x([_.A({computed:"computeWebModernCollections(data)"}),_.B("design:type",Object)],ZG.prototype,"webModernCollections",void 0);_.x([_.A({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],ZG.prototype,"computedNavigationEndpoint",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ZG.prototype,"isSearch",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ZG.prototype,"isDoubleStack",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],ZG.prototype,"thumbnailSize",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ZG.prototype,"enableWebModernCollectionsV2",void 0);_.x([_.W("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZG.prototype,"collectionStack",null);ZG=_.x([_.Q({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],ZG);
_.C(ZG,"ytd-playlist-thumbnail",function(){if(c72!==void 0)return c72;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return c72=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var aiB;var eE=function(){var K=_.q.apply(this,arguments)||this;K.noEndpoints=!1;K.amsterdamPostMvp=_.M("web_amsterdam_post_mvp_playlists");K.badges=[];K.transferState="TRANSFER_STATE_UNKNOWN";return K};
_.O(eE,_.q);_.V=eE.prototype;_.V.getMetadata=function(K){if(!K)return[];var d=[],f=K.shortViewCountText||K.viewCountText;f&&d.push(_.qQ(f));K.publishedTimeText&&d.push(_.qQ(K.publishedTimeText));K.upcomingEventData&&K.upcomingEventData.upcomingEventText&&d.push(_.$B(_.qQ(K.upcomingEventData.upcomingEventText),Number(K.upcomingEventData.startTime)));return d};
_.V.observeDataForBylineSeparator=function(){this.data&&_.pU(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.V.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.E1(this.metadataColor)};
_.V.getSimpleString=function(K){return _.qQ(K)};
_.V.isBylineHidden=function(K){return this.noByline||!((K==null?0:K.longBylineText)||(K==null?0:K.shortBylineText))};
_.V.isMetadataHidden=function(K){var d;return((d=this.getMetadata(K))==null?void 0:d.length)===0};
_.V.isBylineMetadataSeparatorHidden=function(K){return this.isMetadataHidden(K)||!this.shouldShowVideoInfo};
_.V.isLongByline=function(K,d){return d&&!(K==null||!K.longBylineText)};
_.x$.Object.defineProperties(eE.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var K;return this.amsterdamPostMvp&&!((K=this.data)==null||!K.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
eE.prototype.metadataColorChanged=eE.prototype.metadataColorChanged;eE.prototype.observeDataForBylineSeparator=eE.prototype.observeDataForBylineSeparator;_.x([_.l(_.ou),_.B("design:type",Object)],eE.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],eE.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],eE.prototype,"noEndpoints",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],eE.prototype,"isSlimShort",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],eE.prototype,"radioMeta",void 0);_.x([_.A({selector:_.Ek}),_.B("design:type",Object)],eE.prototype,"isGridViewEnabled",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],eE.prototype,"richMeta",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],eE.prototype,"amsterdamPostMvp",void 0);_.x([_.A(),_.B("design:type",Boolean)],eE.prototype,"noByline",void 0);
_.x([_.A({computed:"isLongByline(data, radioMeta)"}),_.B("design:type",Boolean)],eE.prototype,"longByline",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],eE.prototype,"truncateMetadataLine",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],eE.prototype,"miniMode",void 0);_.x([_.A(),_.B("design:type",Number)],eE.prototype,"metadataColor",void 0);_.x([_.A(),_.B("design:type",Array)],eE.prototype,"badges",void 0);
_.x([_.A({selector:_.oO,selectorArgs:["data.videoId"]}),_.B("design:type",String)],eE.prototype,"transferState",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],eE.prototype,"isDownloading",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],eE.prototype,"typographyBump",void 0);_.x([_.n8("#metadata-line"),_.B("design:type",HTMLElement)],eE.prototype,"metadataLine",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eE.prototype,"observeDataForBylineSeparator",null);_.x([_.SP("metadataColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eE.prototype,"metadataColorChanged",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],eE.prototype,"shouldShowVideoInfo",null);
_.x([_.W("badges"),_.B("design:type",String),_.B("design:paramtypes",[])],eE.prototype,"inlineBadgeClass",null);_.x([_.W("longByline"),_.B("design:type",String),_.B("design:paramtypes",[])],eE.prototype,"longBylineClass",null);_.x([_.W("data","longByline"),_.B("design:type",Object),_.B("design:paramtypes",[])],eE.prototype,"bylineText",null);_.x([_.W("isGridViewEnabled","data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],eE.prototype,"watchFeedBigThumbs",null);
eE=_.x([_.Q({is:"ytd-video-meta-block",disableElementRegistration:!0})],eE);
_.C(eE,"ytd-video-meta-block",function(){if(aiB!==void 0)return aiB;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return aiB=K},{mode:_.p8("kevlar_poly_si_batch_j080")?1:2});_.Na("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var pv=function(){var K=_.q.apply(this,arguments)||this;K.displayItemCount=2;K.isBackstagePlaylist=!1;K.isPostCompactPlaylist=!1;K.shouldShowChannelThumbnail=!1;K.useModernCollectionsV2=_.M("web_modern_collections_v2");return K};
_.O(pv,_.q);_.V=pv.prototype;_.V.computeFirstVideos=function(K,d){return K===void 0||d===void 0?[]:K.slice(0,d)};
_.V.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var K=this.data.thumbnailRenderer;K.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",K.playlistVideoThumbnailRenderer.thumbnail);K.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",K.playlistCustomThumbnailRenderer.thumbnail)}};
_.V.computeThumbnailHeight=function(K,d,f,H,D){return H?D==="BIG"?280:D==="MASSIVE"?337:234:f?240:d?72:K?118:138};
_.V.computeThumbnailWidth=function(K,d,f,H,D){return H?D==="MEDIUM"?450:D==="BIG"?500:D==="MASSIVE"?600:420:f?360:d?128:K?210:246};
_.V.computeUseBiggerThumbs=function(K){return K&&_.M("enable_desktop_search_bigger_thumbs")};
_.V.computeShouldShowChannelThumbnail=function(K,d){return K&&!(d==null||!d.channelThumbnail)};
_.x$.Object.defineProperties(pv.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
pv.prototype.dataChanged=pv.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],pv.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],pv.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],pv.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],pv.prototype,"displayItemCount",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],pv.prototype,"isBackstagePlaylist",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],pv.prototype,"isPostCompactPlaylist",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],pv.prototype,"isSearch",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.B("design:type",Boolean)],pv.prototype,"useBiggerThumbs",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.fy("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],pv.prototype,"biggerThumbsStyle",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],pv.prototype,"isDownloads",void 0);_.x([_.A({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.B("design:type",Object)],pv.prototype,"shouldShowChannelThumbnail",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],pv.prototype,"useModernCollectionsV2",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pv.prototype,"dataChanged",null);_.x([_.W("isSearch"),_.B("design:type",String),_.B("design:paramtypes",[])],pv.prototype,"stackThumbnailSize",null);pv=_.x([_.Q({is:"ytd-playlist-renderer",disableElementRegistration:!0})],pv);
_.C(pv,"ytd-playlist-renderer",function(){if(sN4===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);sN4=K}K=sN4;return K},{mode:1});var Iik;var UWH;var KW=function(){var K=_.q.apply(this,arguments)||this;K.collections=!!_.M("web_modern_collections_v2");K.startX=0;return K};
_.O(KW,_.q);KW.prototype.onEndpointMouseDown=function(K){this.startX=K.clientX};
KW.prototype.onEndpointClick=function(K){this.startX!==K.clientX&&(K.preventDefault(),K.stopPropagation())};
KW.prototype.computeObjectFit=function(K){return K==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||K==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||K==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
KW.prototype.computeCardStyle=function(K){return K?K.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.x$.Object.defineProperties(KW.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var K,d;return this.collections&&((K=this.data)==null?void 0:(d=K.searchRefinementCardRendererStyle)==null?void 0:d.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],KW.prototype,"data",void 0);_.x([_.A({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.B("design:type",Number)],KW.prototype,"objectFit",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.B("design:type",String)],KW.prototype,"cardStyle",void 0);
_.x([_.A({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],KW.prototype,"roundContainer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],KW.prototype,"collections",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],KW.prototype,"isAlbumCard",null);_.x([_.W("data","collections","isAlbumCard"),_.B("design:type",Object),_.B("design:paramtypes",[])],KW.prototype,"collectionStack",null);
KW=_.x([_.Q({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],KW);
_.C(KW,"ytd-search-refinement-card-renderer",function(){if(UWH!==void 0)return UWH;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return UWH=K},{mode:1});var R9J;var dW=function(){var K=_.q.apply(this,arguments)||this;K.isRichGrid=!1;return K};
_.O(dW,_.q);_.x([_.A(),_.B("design:type",Object)],dW.prototype,"data",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],dW.prototype,"componentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],dW.prototype,"ytdReduxBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],dW.prototype,"isRichGrid",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],dW.prototype,"miniMode",void 0);
dW=_.x([_.Q({is:"ytd-game-details-renderer",disableElementRegistration:!0})],dW);
_.C(dW,"ytd-game-details-renderer",function(){if(R9J!==void 0)return R9J;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return R9J=K},{mode:1});var FIL;var z9H;var fW=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return K};
_.O(fW,_.q);_.V=fW.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.currentStateData=function(K){var d=K||this.data;return d&&d.states&&d.currentStateId!=null?d.states.find(function(f){return f.stateId===d.currentStateId})||null:null};
_.V.currentStateRendererData=function(K){return(K=this.currentStateData(K))&&K.state&&K.state.buttonRenderer?K.state.buttonRenderer:null};
_.V.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())};
_.V.computeButtonIcon=function(K){K=this.currentStateRendererData(K);var d;return(K==null?0:(d=K.icon)==null?0:d.iconType)?K.icon.iconType.toLowerCase():null};
_.V.computeAccessibility=function(K){return(K=this.currentStateRendererData(K))&&K.accessibilityData?K.accessibilityData.accessibilityData||null:null};
_.V.computeButtonClass=function(K){var d=this.currentStateRendererData(K);if(!d)return"";K="";var f=d.style;f&&(K+=f.toLowerCase().replace(/_/g,"-")+" ");(d=d.size)&&(K+=d.toLowerCase().replace(/_/g,"-")+" ");return K.trim()};
_.V.computeServiceEndpoint=function(K){if(!K)return null;var d=K&&K.serviceEndpoint,f=this.get("command.commandMetadata.webCommandMetadata.sendPost",K);return d?d:f&&K.command?K.command:null};
_.V.computeBellMenuItemParams=function(K){var d;K=(d=_.P(K==null?void 0:K.command,_.DE))==null?void 0:d.commands;if(!K||K.length===0)return null;d=_.P(K[0],_.X3);var f,H;return(d==null?0:(f=d.popup)==null?0:(H=f.menuPopupRenderer)==null?0:H.items)?d.popup.menuPopupRenderer.items.map(function(D){return D.menuServiceItemRenderer.trackingParams}):null};
_.V.handleBellMenuOpenSelectedAction=function(K){var d=K.trackingParams,f=this.computeBellMenuItemParams(this.data);this.data&&d&&f&&f.includes(d)&&this.ytRenderButtonBehavior._setButtonIcon(K.icon.iconType.toLowerCase())};
_.V.onYtServiceRequestCompleted=function(K,d){(K=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",d))&&this.set("data",K)};
_.V.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.V.resetState=function(){this.set("data.currentStateId",3)};
_.V.onYtButtonTapHandler=function(){if(this.data){var K=this.currentStateRendererData(this.data);K&&this.ytRendererBehavior.logExplicitClick(K)}};
fW.prototype.onYtServiceRequestError=fW.prototype.onYtServiceRequestError;fW.prototype.onYtServiceRequestCompleted=fW.prototype.onYtServiceRequestCompleted;fW.prototype.stateChanged=fW.prototype.stateChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],fW.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(aF.YtRenderButtonBehavior),_.B("design:type",Object)],fW.prototype,"ytRenderButtonBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],fW.prototype,"data",void 0);_.x([_.an("data","data.currentStateId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fW.prototype,"stateChanged",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],fW.prototype,"onYtServiceRequestCompleted",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fW.prototype,"onYtServiceRequestError",null);fW=_.x([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],fW);
_.C(fW,"ytd-subscription-notification-toggle-button-renderer",function(){if(z9H!==void 0)return z9H;var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return z9H=K},{mode:1});var XQ9;var Hz=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};K.tapHandler=function(){if(K.data){var d=K.currentStateRendererData();d&&K.ytRendererBehavior.logExplicitClick(d)}};
return K};
_.O(Hz,_.q);_.V=Hz.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.currentStateData=function(){var K=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(d){return d.stateId===K.data.currentStateId})||null:null};
_.V.currentStateRendererData=function(){var K=this.currentStateData();return K&&K.state&&K.state.buttonRenderer?K.state.buttonRenderer:null};
_.V.computeAccessibilityLabel=function(){var K,d,f;return(K=this.currentStateRendererData())==null?void 0:(d=K.accessibilityData)==null?void 0:(f=d.accessibilityData)==null?void 0:f.label};
_.V.computeBellMenuItemParams=function(){var K,d,f=(d=_.P((K=this.data)==null?void 0:K.command,_.DE))==null?void 0:d.commands;if(!f||f.length===0)return null;K=_.P(f[0],_.X3);var H,D;return(K==null?0:(H=K.popup)==null?0:(D=H.menuPopupRenderer)==null?0:D.items)?K.popup.menuPopupRenderer.items.map(function(S){return S.menuServiceItemRenderer.trackingParams}):null};
_.V.handleBellMenuOpenSelectedAction=function(K){var d=K.trackingParams,f=this.computeBellMenuItemParams();if(this.data&&d&&f&&f.includes(d)&&(K==null||!K.isDisabled)){var H;((H=_.P(K.serviceEndpoint,_.y$))==null?void 0:H.signal)!=="CLIENT_SIGNAL"&&(this.icon=K.icon.iconType)}};
_.V.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.V.onYtServiceRequestCompleted=function(K,d){if(K=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",d))this.icon=void 0,this.set("data",K)};
_.V.onYtServiceRequestError=function(){this.icon=void 0};
_.x$.Object.defineProperties(Hz.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K=this.data,d=this.textLabel,f=this.hostElement,H=this.computeAccessibilityLabel(),D=this.tapHandler,S=this.isOverlay?"overlay":"mono",n=(K==null?0:K.disableButton)?"disabled":"active";d=d?_.Nd(d):void 0;return{style:S,type:"tonal",state:n,size:"M",focused:!1,formattedButtonText:d,iconPosition:"leading-trailing",onTap:QeJ(K,D,f),accessibilityLabel:H}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var K=this.currentStateRendererData(),d,f,H=(f=this.icon)!=null?f:K==null?void 0:(d=K.icon)==null?void 0:d.iconType;if(H)return _.Hv(H)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(K=this.data)==null?void 0:(d=K.secondaryIcon)==null?void 0:d.iconType;if(f)return _.Hv(f)}}});
Hz.prototype.onYtServiceRequestError=Hz.prototype.onYtServiceRequestError;Hz.prototype.onYtServiceRequestCompleted=Hz.prototype.onYtServiceRequestCompleted;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Hz.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Hz.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Hz.prototype,"textLabel",void 0);
_.x([_.A(),_.B("design:type",String)],Hz.prototype,"icon",void 0);_.x([_.A(),_.B("design:type",Boolean)],Hz.prototype,"isOverlay",void 0);_.x([_.W("data.*","textLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hz.prototype,"computedButtonShape",null);_.x([_.W("data.*","icon"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hz.prototype,"computedIcon",null);_.x([_.W("data.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hz.prototype,"computedSecondaryIcon",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],Hz.prototype,"onYtServiceRequestCompleted",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Hz.prototype,"onYtServiceRequestError",null);Hz=_.x([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Hz);
_.C(Hz,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(XQ9!==void 0)return XQ9;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return XQ9=K},{mode:_.p8("kevlar_poly_si_batch_j081")?1:2});var vjs;_.sP(zY6,"yt-animated-action",{props:{backgroundLottieRef:_.rs,foregroundLottieRef:_.rs,wrapperClass:_.rs,disableAnimation:_.rs},unsafeExternallySettableAttributes:new Set(["key"])});var Du=function(){var K=_.q.apply(this,arguments)||this;K.animatedActionEnabled=_.M("web_animated_actions");K.foregroundLottieRef={};K.backgroundLottieRef={};K.forceIconOnly=!1;K.showTextWhileAnimating=!1;K.keyboardFocused=!1;K.isAnimating=!1;K.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return K};
_.O(Du,_.q);_.V=Du.prototype;_.V.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.V.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]]"}}}}}};
_.V.attached=function(){this.keyboardFocused=!1};
_.V.onYtServiceRequestSent=function(K,d){(this.get("endpoint.subscribeEndpoint",d)||this.get("endpoint.unsubscribeEndpoint",d))&&this.updateSubscriptionState(!this.subscribed)};
_.V.onYtServiceRequestCompleted=function(K,d){(K=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",d.data))&&this.bellButton&&(this.bellButton.data=K)};
_.V.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.f8(this.hostElement)};
_.V.onPlayerSubscribe=function(K){this.isCompactRed()||K!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.V.onPlayerUnsubscribe=function(K){this.isCompactRed()||K!==this.data.channelId||this.updateSubscriptionState(!1)};
_.V.handleUpdateSubscribeButtonAction=function(K){K=_.P(K,Di9);var d;K&&K.channelId===((d=this.data)==null?void 0:d.channelId)&&this.updateSubscriptionState(!!K.subscribed)};
_.V.computeButtonStyle=function(K){return this.get("style.styleType",K)||null};
_.V.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.V.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.V.updateSubscriptionState=function(K){if(K!==this.subscribed){this.set("data.subscribed",K);var d,f=(d=this.data)==null?void 0:d.subscribedEntityKey;f&&this.ytdReduxBehavior.dispatch(_.nt("subscriptionStateEntity",f,{key:f,subscribed:K}));this.isCompactRed()||_.Zp(this.hostElement,"yt-subscription-changed",K);K||(_.ev(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!K),K&&this.hasBellButton&&this.startAnimation())}};
_.V.startAnimation=function(){var K=this;if(!this.isAnimating){var d=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var f;(f=this.backgroundLottieRef.lottieEl)==null||f.goToAndPlay(0);var H;(H=this.foregroundLottieRef.lottieEl)==null||H.goToAndPlay(0);_.oc.addJob(function(){K.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.oc.addJob(function(){K.updateContainerToFitContent(!!K.subscribed,!0)},2,1500);
_.oc.addJob(function(){K.isAnimating=!1},2,d)}};
_.V.maybeAnimateBellIcon=function(){var K=_.eZ(this.hostElement).querySelector("yt-animated-icon");if(K){var d;(d=K.animationRef.lottieEl)==null||d.goToAndPlay(0)}};
_.V.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.V.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.V.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var K;this.unsubscribedWidth=(K=this.subscribeButtonShape)==null?void 0:K.getBoundingClientRect().width}var d;this.subscribedWidth=(d=this.bellButton)==null?void 0:d.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.V.updateContainerToFitContent=function(K,d){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(K?(K=this.subscribedWidth,d=this.isAnimating&&!d,this.subscribedIconOnlyWidth===void 0||d||(K=this.subscribedIconOnlyWidth),this.hostElement.style.width=K+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.V.clearContainerSize=function(){this.hostElement.style.width=""};
_.V.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.V.maybeSetSubscribedButtonIconOnlyWidth=function(){var K=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 d;K.subscribedIconOnlyWidth=(d=K.bellButton)==null?void 0:d.getBoundingClientRect().width;requestAnimationFrame(function(){if(K.bellButton){var f;K.bellButton.textLabel=
(f=K.data)==null?void 0:f.subscribedButtonText}})})))};
_.x$.Object.defineProperties(Du.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 K;return(K=this.data)==null?void 0:K.subscribedButtonText}var d;return this.forceIconOnly?void 0:(d=this.data)==null?void 0:d.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var K,d,f=((K=this.data)==null?void 0:(d=K.timedAnimationData)==null?void 0:d.animationTiming)||[];return{uniqueId:"subscribe",timings:f,enabled:f.length>0&&!this.subscribed,experimentEnabled:f.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var K;return!this.subscribed&&((K=this.data)==null?void 0:K.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 K={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var d=K.renderer;var f=K.element;var H=K.subscribed;var D=K.commandController;var S=K.isOverlay;K=K.config;var n=L7N(d,H);S&&(n.style="overlay");S=Object;var u=S.assign,a;a:switch((a=d.style)==null?void 0:a.styleType){case "COMPACT_GRAY":case "COMPACT_RED":a={size:"S"};break a;default:a={size:"M"}}var R=xGO(d,H);var F=
(F=H?d.subscribedButtonText:d.unsubscribedButtonText)?_.Nd(F):void 0;return u.call(S,{},n,a,{focused:!1,toggled:H,accessibilityLabel:R,formattedButtonText:F,onTap:C5z(d,K,H,f,D)})}}}});
Du.prototype.onMouseDown=Du.prototype.onMouseDown;Du.prototype.onDataChanged=Du.prototype.onDataChanged;Du.prototype.observedSubscribed=Du.prototype.observedSubscribed;Du.prototype.onYtServiceRequestCompleted=Du.prototype.onYtServiceRequestCompleted;Du.prototype.onYtServiceRequestSent=Du.prototype.onYtServiceRequestSent;Du.prototype.maybeUpdateBellButtonText=Du.prototype.maybeUpdateBellButtonText;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Du.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Du.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Du.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Du.prototype,"data",void 0);
_.x([_.A({selectorArgs:["data.subscribedEntityKey"],selector:UPu}),_.B("design:type",Object)],Du.prototype,"subscriptionStateEntity",void 0);_.x([_.A({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Du.prototype,"subscribed",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Du.prototype,"branded",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Du.prototype,"animatedActionEnabled",void 0);
_.x([_.A(),_.B("design:type",Object)],Du.prototype,"foregroundLottieRef",void 0);_.x([_.A(),_.B("design:type",Object)],Du.prototype,"backgroundLottieRef",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Du.prototype,"overlayButton",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.B("design:type",Object)],Du.prototype,"buttonStyle",void 0);_.x([_.A(),_.B("design:type",Object)],Du.prototype,"forceIconOnly",void 0);
_.x([_.A(),_.B("design:type",Object)],Du.prototype,"showTextWhileAnimating",void 0);_.x([_.A({value:function(){return!!_.eq().resolve(_.Zd(_.eb))&&_.M("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.B("design:type",Boolean)],Du.prototype,"useKeyboardFocused",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Du.prototype,"keyboardFocused",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Du.prototype,"isAnimating",void 0);_.x([_.W("data.notificationPreferenceButton.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],Du.prototype,"hasBellButton",null);
_.x([_.SP("subscribedButtonText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Du.prototype,"maybeUpdateBellButtonText",null);_.x([_.W("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],Du.prototype,"subscribedButtonText",null);_.x([_.W("data.timedAnimationData.animationTiming","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],Du.prototype,"smartimationSettings",null);
_.x([_.A({reflectToAttribute:!0}),_.W("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],Du.prototype,"subscribeButtonHidden",null);_.x([_.A({reflectToAttribute:!0}),_.W("subscribed","hasBellButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],Du.prototype,"subscribeButtonInvisible",null);
_.x([_.A({reflectToAttribute:!0}),_.W("subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],Du.prototype,"unsubscribeButtonHidden",null);_.x([_.n8("ytd-subscription-notification-toggle-button-renderer-next"),_.B("design:type",Object)],Du.prototype,"bellButton",void 0);_.x([_.n8("#subscribe-button-shape"),_.B("design:type",HTMLElement)],Du.prototype,"subscribeButtonShape",void 0);
_.x([_.W("overlayButton","subscribed","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Du.prototype,"buttonShape",null);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],Du.prototype,"onYtServiceRequestSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],Du.prototype,"onYtServiceRequestCompleted",null);
_.x([_.SP("subscribed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Du.prototype,"observedSubscribed",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Du.prototype,"onDataChanged",null);_.x([_.VV("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Du.prototype,"onMouseDown",null);
Du=_.x([_.Q({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Du);
_.C(Du,"ytd-subscribe-button-renderer",function(){if(vjs!==void 0)return vjs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return vjs=K},{mode:1});var V4=function(){var K=_.q.apply(this,arguments)||this;K.isRichGrid=!1;return K};
_.O(V4,_.q);V4.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],V4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],V4.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],V4.prototype,"isRichGrid",void 0);V4=_.x([_.Q({is:"ytd-game-card-renderer",disableElementRegistration:!0})],V4);
_.C(V4,"ytd-game-card-renderer",function(){if(FIL!==void 0)return FIL;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return FIL=K},{mode:1});var Sf={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.M("defer_menus")&&!PnL?0:void 0,waitForSignal:"eocs"};var M8s;var P0J;var y4=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return K};
_.O(y4,_.q);_.V=y4.prototype;_.V.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.V.onSeriesReminderStateEntityChange=function(){var K,d,f;((K=this.eventReminderStateEntity)==null?0:K.key)&&((d=this.seriesReminderStateEntity)==null?void 0:d.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((f=this.eventReminderStateEntity)==null?void 0:f.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.nt("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.V.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.V.onYtServiceRequestError=function(){var K;this.updateReminderStateEntitiesFromButtonState((K=this.data)==null?void 0:K.currentState)};
_.V.handleUpdateUpcomingEventReminderButtonStateCommand=function(K){if(K=_.P(K,P4B)){var d,f=(d=this.data)==null?void 0:d.targetId;f&&K.targetId===f&&_.bL(this.updateReminderStateEntitiesFromButtonState.bind(this,K.state))}};
_.V.getButtonStateFromReminderState=function(){var K;if(((K=this.seriesReminderStateEntity)==null?void 0:K.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var d;if(((d=this.eventReminderStateEntity)==null?void 0:d.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var f,H;if(((f=this.seriesReminderStateEntity)==null?void 0:f.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((H=this.eventReminderStateEntity)==
null?void 0:H.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var D;return(D=this.data)==null?void 0:D.currentState};
_.V.updateReminderStateEntitiesFromButtonState=function(K){if(K){switch(K){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":K="UPCOMING_EVENT_REMINDER_STATE_NONE";var d="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":K="UPCOMING_EVENT_REMINDER_STATE_SINGLE";d="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":K="UPCOMING_EVENT_REMINDER_STATE_NONE";d="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var f;
((f=this.eventReminderStateEntity)==null?0:f.key)&&this.ytdReduxBehavior.dispatch(_.nt("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:K})));var H;((H=this.seriesReminderStateEntity)==null?0:H.key)&&this.ytdReduxBehavior.dispatch(_.nt("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:d})))}};
_.x$.Object.defineProperties(y4.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var K=this.getButtonStateFromReminderState(),d,f;if(K&&((d=this.data)==null?0:(f=d.states)==null?0:f.length))for(d=_.y(this.data.states),f=d.next();!f.done;f=d.next()){f=f.value;var H=void 0;if(((H=_.P(f,g5H))==null?void 0:H.state)===K)return _.P(f,g5H)}}}});
y4.prototype.onYtServiceRequestError=y4.prototype.onYtServiceRequestError;y4.prototype.onYtServiceRequestCompleted=y4.prototype.onYtServiceRequestCompleted;y4.prototype.onSeriesReminderStateEntityChange=y4.prototype.onSeriesReminderStateEntityChange;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],y4.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],y4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],y4.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],y4.prototype,"data",void 0);_.x([_.A({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:FJY}),_.B("design:type",Object)],y4.prototype,"eventReminderStateEntity",void 0);
_.x([_.A({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(K,d){return _.DR(K.entities,"sportsSeriesReminderStateEntity",d)}}),
_.B("design:type",Object)],y4.prototype,"seriesReminderStateEntity",void 0);_.x([_.W("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],y4.prototype,"currentButtonStateRenderer",null);_.x([_.SP("seriesReminderStateEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],y4.prototype,"onSeriesReminderStateEntityChange",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],y4.prototype,"onYtServiceRequestCompleted",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],y4.prototype,"onYtServiceRequestError",null);y4=_.x([_.Q({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],y4);
_.C(y4,"ytd-upcoming-event-reminder-button-renderer",function(){if(P0J!==void 0)return P0J;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
return P0J=K},{mode:1});var gjL;var nW=function(){return _.q.apply(this,arguments)||this};
_.O(nW,_.q);nW.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.x$.Object.defineProperties(nW.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(_.M("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],nW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],nW.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],nW.prototype,"shelfDismissal",void 0);_.x([_.W("data.responseText"),_.B("design:type",Object),_.B("design:paramtypes",[])],nW.prototype,"text",null);
_.x([_.W("data.responseText"),_.B("design:type",Object),_.B("design:paramtypes",[])],nW.prototype,"textAriaLabel",null);nW=_.x([_.Q({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],nW);
_.C(nW,"ytd-notification-multi-action-renderer",function(){if(gjL!==void 0)return gjL;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return gjL=K},{mode:1});var Oi9;var cz=function(){return _.q.apply(this,arguments)||this};
_.O(cz,_.q);cz.prototype.ready=function(){var K=this;_.E(this.hostElement).querySelector("#undo").addEventListener("tap",function(){K.onUndoTap()})};
cz.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.eq().resolve(_.pQ).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],cz.prototype,"data",void 0);cz=_.x([_.Q({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],cz);
_.C(cz,"ytd-notification-text-renderer",function(){if(Oi9!==void 0)return Oi9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Oi9=K},{mode:1});var NK9;var un=function(){var K=_.q.apply(this,arguments)||this;K.mouseOverDelayJobId=0;K.fadeInImageDelayJobId=0;K.startTimeMs=-1;K.loadingStartTimeMs=-1;K.loadingEndTimeMs=-1;K.hasVideoPreview=!1;return K};
_.O(un,_.q);_.V=un.prototype;_.V.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.V.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.V.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.V.showThumbnail=function(){var K=this;this.csn=_.te();_.ty("fmth");_.oc.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.pZ(_.oc,function(){K.loadingStartTimeMs=(0,_.k_)();var d=_.E(K.hostElement).querySelector("#thumbnail");d.complete?K.displayMouseOverImage():d.addEventListener("load",_.Dm(K,K.displayMouseOverImage))},150):_.pU(_.E(this.hostElement).querySelector("#play"),"show",!0)};
_.V.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.V.onTap=function(){this.removeVideoPreview()};
_.V.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var K=this.videoId,d=this.csn,f=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,H=this.startTimeMs,D=this.hasVideoPreview,S=_.RG(this.trackingParams),n={isMovingThumbnail:D};D&&H>0&&(f>0&&(n.movingThumbnailLoadingDurationMs=Math.round(f)),n.durationHoveredMs=Math.round((0,_.k_)()-H));K&&(n.videoId=K);_.qY(d,S,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:n});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.V.removeVideoPreview=function(){_.oc.cancelJob(this.mouseOverDelayJobId);_.oc.cancelJob(this.fadeInImageDelayJobId);var K=_.E(this.hostElement).querySelector("#thumbnail");_.pU(K,"fade-in",!1);K.removeEventListener("load",_.Dm(this,this.displayMouseOverImage));K=_.E(this.hostElement).querySelector("#play");_.pU(K,"fade-in",!1);_.pU(K,"show",!1)};
_.V.displayMouseOverImage=function(){var K=_.E(this.hostElement).querySelector("#thumbnail"),d=_.E(this.hostElement).querySelector("#play");this.isImageAvailable(K)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.k_)(),this.startTimeMs=(0,_.k_)(),this.fadeInImageDelayJobId=_.pZ(_.oc,function(){_.pU(K,"fade-in",!0)},50)):_.pU(d,"fade-in",!0)};
_.V.computeThumbnail=function(K,d){var f;K&&K.movingThumbnailDetails&&K.movingThumbnailDetails.thumbnails&&d?f=_.kA(K.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):f=d?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(f)return _.Xa(f)};
_.V.isImageAvailable=function(K){return!(!K.src||K.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||K.naturalWidth===120)};
un.prototype.onTap=un.prototype.onTap;un.prototype.dataChanged=un.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],un.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],un.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],un.prototype,"csn",void 0);_.x([_.A(),_.B("design:type",Object)],un.prototype,"trackingParams",void 0);
_.x([_.A(),_.B("design:type",String)],un.prototype,"videoId",void 0);_.x([_.A(),_.B("design:type",Boolean)],un.prototype,"isAttachedAndDataSet",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],un.prototype,"dataChanged",null);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],un.prototype,"onTap",null);un=_.x([_.Q({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],un);
_.C(un,"ytd-moving-thumbnail-renderer",function(){if(NK9!==void 0)return NK9;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return NK9=K},{mode:1});var YBs;_.fs=function(K){this.hostElement=K;this.eventSink=null;this.eventList=[]};
_.fs.prototype.shouldForward=function(){var K,d;return(d=(K=this.eventSink)==null?void 0:K.isConnected)!=null?d:document.body.contains(this.eventSink)};
_.fs.prototype.start=function(K,d){this.eventSink&&this.stop();for(var f=0;f<K.length;f++)this.hostElement.addEventListener(K[f],_.Dm(this,this.forwardEvent));var H;this.eventSink=(H=d.hostElement)!=null?H:d;this.eventList=K};
_.fs.prototype.stop=function(){for(var K=0;K<this.eventList.length;K++)this.hostElement.removeEventListener(this.eventList[K],_.Dm(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.fs.prototype.forwardEvent=function(K,d){this.shouldForward()&&(K.stopPropagation(),this.eventSink instanceof Element?_.Zp(this.eventSink,K.type,d):_.h3(new _.X4("eventSink is not an element")))};_.aJ={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.fs(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(K,d){this.forwarder_.start(K,d)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var IJ=function(){return _.q.apply(this,arguments)||this};
_.O(IJ,_.q);_.V=IJ.prototype;_.V.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=_.mD("HTML_DIR")==="rtl"?"right":"left"};
_.V.dataChanged=function(){this.popupOpen=!1};
_.V.computeAriaLabel=function(K){return _.P(K,AbN).label};
_.V.onTap=function(K){K.stopPropagation();K.preventDefault();this.data.command&&_.eq().resolve(_.pQ).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.V.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.V.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
IJ.prototype.onPopupClosed=IJ.prototype.onPopupClosed;IJ.prototype.onPopupOpened=IJ.prototype.onPopupOpened;IJ.prototype.onTap=IJ.prototype.onTap;IJ.prototype.dataChanged=IJ.prototype.dataChanged;_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],IJ.prototype,"eventForwardingBehavior",void 0);_.x([_.l(_.gO),_.B("design:type",Object)],IJ.prototype,"ironButtonState",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],IJ.prototype,"componentBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],IJ.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:-1}),_.B("design:type",Number)],IJ.prototype,"tabindex",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.B("design:type",Object)],IJ.prototype,"ariaLabel",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],IJ.prototype,"disableTooltips",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],IJ.prototype,"popupOpen",void 0);
_.x([_.A(),_.B("design:type",Element)],IJ.prototype,"eventSink",void 0);_.x([_.n8("#tooltip"),_.B("design:type",Object)],IJ.prototype,"tooltip",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IJ.prototype,"dataChanged",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],IJ.prototype,"onTap",null);
_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IJ.prototype,"onPopupOpened",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IJ.prototype,"onPopupClosed",null);IJ=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],IJ);
_.C(IJ,"ytd-thumbnail-overlay-button-renderer",function(){if(YBs!==void 0)return YBs;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return YBs=K},{mode:1});var t8H;var U$=function(){return _.q.apply(this,arguments)||this};
_.O(U$,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],U$.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],U$.prototype,"disableAnimation",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],U$.prototype,"rounded",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],U$.prototype,"transparentBackground",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],U$.prototype,"noPadding",void 0);U$=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],U$);
_.C(U$,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(t8H!==void 0)return t8H;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return t8H=K},{mode:1});var ojs;var RJ=function(){return _.q.apply(this,arguments)||this};
_.O(RJ,_.q);RJ.prototype.computeIconPosition=function(K){return this.get("iconPosition",K)||null};
RJ.prototype.computeIconStyle=function(K){return this.get("iconStyle",K)||null};
RJ.prototype.computeIsIconStyleFilled=function(K){if(!K)return!1;var d;return K.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((d=K.icon)==null?void 0:d.iconType)==="ERROR_BLACK"};
_.x([_.A(),_.B("design:type",Object)],RJ.prototype,"data",void 0);_.x([_.A({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.B("design:type",Object)],RJ.prototype,"iconPosition",void 0);_.x([_.A({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.B("design:type",Object)],RJ.prototype,"iconStyle",void 0);_.x([_.A({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],RJ.prototype,"iconStyleFilled",void 0);
RJ=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],RJ);
_.C(RJ,"ytd-thumbnail-overlay-icon-renderer",function(){if(ojs!==void 0)return ojs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ojs=K},{mode:1});var $WL;var F9=function(){return _.q.apply(this,arguments)||this};
_.O(F9,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],F9.prototype,"data",void 0);F9=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],F9);
_.C(F9,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if($WL!==void 0)return $WL;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return $WL=K},{mode:1});var Ej4;var z5=function(){var K=_.q.apply(this,arguments)||this;K.isPreviewLoading=!1;return K};
_.O(z5,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],z5.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],z5.prototype,"isPreviewLoading",void 0);z5=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],z5);
_.C(z5,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Ej4!==void 0)return Ej4;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Ej4=K},{mode:1});var h98;var X9=function(){return _.q.apply(this,arguments)||this};
_.O(X9,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],X9.prototype,"data",void 0);X9=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],X9);
_.C(X9,"ytd-thumbnail-overlay-pinking-renderer",function(){if(h98!==void 0)return h98;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return h98=K},{mode:1});var bit;var vz=function(){var K=_.q.apply(this,arguments)||this;K.disableTooltips=!1;K.isLoading=!1;K.useExpandableTooltip=!1;K.toggled=!1;K.hovered=!1;K.mouseoverDelayJobId=0;K.toggleDelayJobId=0;K.expandAnimationDelayJobId=0;return K};
_.O(vz,_.q);_.V=vz.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.E(this.hostElement).querySelector("#tooltip").position=_.mD("HTML_DIR")==="rtl"?"right":"left"};
_.V.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.oc.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.oc.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.oc.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.V.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.oc.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.oc.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.oc.cancelJob(this.expandAnimationDelayJobId)};
_.V.computeIcon=function(K,d,f){return(K=f?d:K)&&K.iconType?_.Hv(K.iconType):void 0};
_.V.computeAriaLabel=function(K,d,f){return _.P(f?d:K,AbN).label};
_.V.computeTooltip=function(K,d,f){return f?d:K};
_.V.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.V.computeIconOnHover=function(K,d){if((K==null?0:K.iconType)&&!d)return _.Hv(K.iconType)};
_.V.onTap=function(K){var d=this;K.stopPropagation();K.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(K=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(K),this.useExpandableTooltip&&(this.toggleDelayJobId=_.pZ(_.oc,function(){d.hovered=!1;d.data&&!d.data.toggledServiceEndpoint&&(d.expandAnimationDelayJobId=_.pZ(_.oc,function(){d.set("data.isToggled",
!1)},200))},2E3))};
_.V.onMouseenter=function(){var K=this;this.mouseoverDelayJobId=_.pZ(_.oc,function(){K.hovered=!0},300)};
_.V.onMouseleave=function(){_.oc.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.V.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.V.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.V.onServiceRequestCompleted=function(K,d){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(d)||this.set("data.isToggled",!this.data.isToggled)};
_.V.serviceRequestWasSuccessful=function(K){return _.P(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.OI)?K.data.status==="STATUS_SUCCEEDED":!0};
vz.prototype.onServiceRequestCompleted=vz.prototype.onServiceRequestCompleted;vz.prototype.onPopupClosed=vz.prototype.onPopupClosed;vz.prototype.onPopupOpened=vz.prototype.onPopupOpened;vz.prototype.onMouseleave=vz.prototype.onMouseleave;vz.prototype.dataChanged=vz.prototype.dataChanged;_.x([_.l(_.gO),_.B("design:type",Object)],vz.prototype,"ironButtonState",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],vz.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],vz.prototype,"ytEventForwardingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vz.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.B("design:type",Object)],vz.prototype,"ariaLabel",void 0);_.x([_.A(),_.B("design:type",Object)],vz.prototype,"disableTooltips",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],vz.prototype,"popupOpen",void 0);_.x([_.A(),_.B("design:type",Object)],vz.prototype,"isLoading",void 0);_.x([_.A(),_.B("design:type",Element)],vz.prototype,"eventSink",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],vz.prototype,"useExpandableTooltip",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.B("design:type",Object)],vz.prototype,"toggled",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],vz.prototype,"hovered",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.B("design:type",Object)],vz.prototype,"iconOnHover",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vz.prototype,"dataChanged",null);
_.x([_.VV("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vz.prototype,"onMouseleave",null);_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vz.prototype,"onPopupOpened",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vz.prototype,"onPopupClosed",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],vz.prototype,"onServiceRequestCompleted",null);vz=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],vz);
_.C(vz,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(bit!==void 0)return bit;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return bit=K},{mode:_.p8("kevlar_poly_si_batch_j053")?1:2});var mWv;var li4=_.C8(function(K){var d=K.data;var f=function(){return d().enableSegmentView};
return _.U("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.U(_.X,{cond:f,then:function(){return _.U("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.U("div",{class:_.nK("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+d().startPercent+"%"}}),_.U("div",{class:_.nK("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+d().segmentDurationPercent+"%"}},_.U("div",{class:_.nK("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.U("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.U("div",null," ",function(){return d().segmentLabel})),_.U("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.U("div",{class:_.nK("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.U(_.X,{cond:function(){return!f()&&d().startPercent},
then:function(){var H={};return _.U("div",{class:_.nK("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(H.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.M("web_enable_modern_progress_bar_overlay"),H))},_.U("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+d().startPercent+"%"}}))}}))},"M");
li4.idomCompat=!0;var WIB=_.C8(function(K){var d=_.ft(),f=_.th(function(D){var S,n,u;a:{var a=(S=K.data())==null?void 0:S.animationActivationTargetId;S=((n=K.data())==null?void 0:n.animationActivationEntityKey)||"";n=(u=K.data())==null?void 0:u.animationActivationEntitySelectorType;if(S&&a)switch(n){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":D=_.DR(D.entities,"playerStateEntity",S);u=_.eq().resolve(_.Zd(_.$b));a=!!(D&&D.videoId===a&&(u==null?0:u.isMiniplayerActive()));a={activated:a,playAnimation:a&&
D.playerState==="PLAYER_STATE_PLAYING"};break a}a=void 0}return a});
_.ol(function(){var D;if((D=f())==null?0:D.activated){var S;if((S=f())==null?0:S.playAnimation){var n;(n=d.lottieEl)==null||n.goToAndPlay(0)}else{var u;(u=d.lottieEl)==null||u.goToAndStop(0)}}});
var H=function(){var D,S=!((D=f())==null||!D.activated);if(K.data()){D=K.data();var n=void 0;D.icon&&(n=_.cYJ(D.icon),n=zSz(n));var u=void 0,a;if((a=D.backgroundColor)==null?0:a.lightTheme){var R;u={backgroundColor:bs((R=D.backgroundColor)==null?void 0:R.lightTheme,"0.8")}}if(D.text||n||S){if(S&&D.lottieData&&d){R=D.lottieData;var F,z,v;a={animationConfig:{name:R.url,path:R.url,autoplay:(F=R.settings)==null?void 0:F.autoplay,loop:(v=(z=R.settings)==null?void 0:z.loop)!=null?v:!0},animationRef:d}}else a=
void 0;if(S)F=16;else b:switch(D.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":F=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":F=18;break b;default:F=16}S={type:F,text:S&&D.animatedText?D.animatedText:D.text,icon:n,customColors:u,animation:a}}else S=void 0}else S=void 0;return S};
return _.U("yt-thumbnail-badge-view-model",{class:_.SC("yt-thumbnail-badge-view-model-wiz",K.class)},_.U(_.X,{cond:H,then:function(){return _.U(_.qT,{data:function(){return H()}})}}))},"N");var GNH=_.C8(function(K){var d={};return _.U("yt-thumbnail-bottom-overlay-view-model",{class:_.SC("ytThumbnailBottomOverlayViewModelHost",(d.ytThumbnailBottomOverlayViewModelHostBackground=function(){return K.data().enableGradientBackground},d))},_.U("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.U(_.z1,{data:function(){return K.data().progressBar}},{thumbnailOverlayProgressBarViewModel:li4}),_.U(_.z1,{data:function(){return K.data().badge}},{thumbnailBadgeViewModel:function(f){return _.U(WIB,
{data:f.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.U(_.z1,{data:function(){return K.data().badges}},{thumbnailBadgeViewModel:function(f){return _.U(WIB,{data:f.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"O");
GNH.idomCompat=!0;_.sP(GNH,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.JJ}});var HPS={calledOnce:!1,state:"visible"},Dcn={calledOnce:!1,state:"hidden"};var M9=_.C8(function(K){var d=K.data;var f=K.className;K=K.alwaysShow;var H=_.Co();_.W9(H,function(){return d().rendererContext});
var D=_.sen(),S={};return _.U("thumbnail-hover-overlay-view-model",{el:H,class:_.SC("ytThumbnailHoverOverlayViewModelHost",f,(S.ytThumbnailHoverOverlayViewModelHostForceHover=K,S)),"aria-label":function(){var n;return(n=_.P(d().rendererContext,_.uq))==null?void 0:n.label},
role:function(){return _.mR(d().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.mR(d().rendererContext)!==void 0?0:void 0},
"on:keypress":D},_.U("div",{class:_.SC("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(d().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var n="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:n="ytThumbnailHoverOverlayViewModelStyleCover"}return n})},_.U(_.X,{cond:function(){return d().icon},
then:function(n){return _.U(_.jV,{data:n,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.U(_.X,{cond:function(){return d().text},
then:function(n){return _.U(_.ji,{text:n,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"P");
M9.idomCompat=!0;var A79=_.C8(function(K){var d=K.data;return _.U(_.z1,{data:function(){return d==null?void 0:d().overlays}},{thumbnailHoverOverlayViewModel:M9})},"Q");
A79.idomCompat=!0;var TKs={};var r7H=_.C8(function(K){var d=K.data;var f=K.image;var H=K.state;var D=K.iconType;var S=K.overlays;var n=K.isOverlay;var u=_.x7();K=_.y(_.cC(!0,void 0,"sUzEZ"));var a=K.next().value,R=K.next().value,F=function(){return!!d().onTap},z=_.QV(D,"LIVE");
_.ol(function(){var g=d();requestAnimationFrame(function(){if(u.value===null)var N=!0;else{var h=u.value;N=g.badgeText;var m=yZX(g.size);N in TKs?h=TKs[N]:(h=h.clientWidth,TKs[N]=h);(N=h>m)?u.value.style.display="none":u.value.style.visibility="visible"}R(N)})});
var v=function(){var g={};return g["yt-spec-avatar-shape__image"]=!0,g["yt-spec-avatar-shape__image--ads-app"]=d().type===1,g};
return _.U("yt-avatar-shape",null,_.U("div",{el:_.xA(iP5(F,{keydown:function(g){if(g.key==="Enter"){var N;(N=g.currentTarget)==null||N.click()}},
click:function(g){var N,h;return void((h=(N=d()).onTap)==null?void 0:h.call(N,g))}})),
class:function(){var g={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},N=d();g=(g[N.clusterLayoutConfig?aop(N.clusterLayoutConfig):IoS(N.size)]=!0,g["yt-spec-avatar-shape__button--tappable"]=F(),g);(N=d().avatarButtonCustomClassName)&&(g[N]=!0);return _.nK(g)},
"aria-label":function(){return F()?d().accessibilityText:""},
role:function(){return F()?"button":void 0},
tabindex:function(){return F()?0:void 0}},_.U("div",{class:function(){var g,N=d(),h=H==null?void 0:H(),m=n==null?void 0:n(),T=!((g=N.decorations)==null||!g.includes(2)||N.size!=="medium"&&N.size!=="large"),r=N.size==="tiny"||N.size==="extra-small",J,L,fB,w,yO={};
g=(yO["yt-spec-avatar-shape--live-ring"]=!!(((J=N.decorations)==null?0:J.includes(0))&&Ra5(N.size)),yO["yt-spec-avatar-shape--stories-watched"]=T&&!(h==null||!h.storiesWatched),yO["yt-spec-avatar-shape--stories-unwatched"]=T&&!(h==null?0:h.storiesWatched),yO["yt-spec-avatar-shape--background-border"]=FCJ(N.decorations)&&!r,yO["yt-spec-avatar-shape--background-border-thin"]=FCJ(N.decorations)&&r,yO["yt-spec-avatar-shape__on-select-border"]=!((L=N.decorations)==null||!L.includes(4)),yO["yt-spec-avatar-shape__white-border"]=
!((fB=N.decorations)==null||!fB.includes(5)),yO["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((w=N.decorations)==null?0:w.includes(5))&&r),yO["yt-spec-avatar-shape--is-overlay"]=!!m,yO);return _.nK(g)},
style:function(){a:{var g=d().clusterLayoutConfig;if(g){b:{var N=g.numAvatarsInCluster;var h=g.avatarIndex;if(h!==N-1){switch(g.clusterSize){case "small":g="32";break;case "medium":g="36";break;case "40":g="40";break;default:N=void 0;break b}N="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+g+"x"+g+"_avatars_"+N+"_index_"+h+".svg"}else N=void 0}if(N){N=_.Im({"-webkit-mask-image":"url("+N+")","mask-image":"url("+N+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}N=void 0}return N}},_.U("div",{class:function(){var g={};
var N=d();g=(g[N.clusterLayoutConfig?cZ5(N.clusterLayoutConfig):upz(N.size)]=!0,g["yt-spec-avatar-shape--no-margin"]=FCJ(d().decorations),g);return _.nK(g)}},_.U(_.jV,{data:f,
alt:function(){return!F()&&d().accessibilityText?d().accessibilityText:""},
targetWidth:function(){return UcN(d().size)},
targetHeight:function(){return UcN(d().size)},
className:function(){return _.nK(v())}}),_.U(_.X,{cond:function(){var g;
return((g=d().decorations)==null?void 0:g.includes(0))&&Ra5(d().size)},
then:function(){return _.U("div",{class:function(){var g={};g=(g["yt-spec-avatar-shape__live-badge"]=!0,g["yt-spec-avatar-shape__live-badge--badge-small"]=d().size==="small",g["yt-spec-avatar-shape__live-badge--badge-medium"]=d().size==="medium"||d().size==="48",g["yt-spec-avatar-shape__live-badge--badge-large"]=d().size==="large",g["yt-spec-avatar-shape__live-badge--badge-extra-large"]=d().size==="extra-large"||d().size==="extra-extra-large"||d().size==="giant",g);return _.nK(g)}},_.U(_.X,{cond:function(){return d().badgeText},
then:function(g){return _.U("div",{class:"yt-spec-avatar-shape__badge-text",el:u},g)}}),_.U(_.X,{cond:a,
then:function(){return _.U("div",{class:"yt-spec-avatar-shape__badge-icon"},_.U(_.U5,{icon:z,size:function(){a:switch(d().size){case "extra-large":var g=16;break a;default:g=13}return g}}))}}))}}),_.U(_.X,{cond:function(){var g,N;
return((g=d().decorations)==null?void 0:g.includes(1))||((N=d().decorations)==null?void 0:N.includes(0))&&!Ra5(d().size)},
then:function(){return _.U("div",{class:function(){var g=d(),N,h,m={};var T=(m["yt-spec-avatar-shape__live-dot"]=!((N=g.decorations)==null||!N.includes(0)||Ra5(g.size)),m["yt-spec-avatar-shape__new-content"]=!((h=g.decorations)==null||!h.includes(1)),m);return _.nK(T)}})}}),_.U(_.X,{cond:function(){return!!S},
then:function(){return _.U("div",{class:function(){var g={};g=Object.assign((g["yt-spec-avatar-shape__image-overlays"]=!0,g),v());return _.nK(g)}},S==null?void 0:S())}})))))},"R");
r7H.idomCompat={callbacks:{overlays:!0}};_.Pz=_.C8(function(K){function d(){f().endpoint&&_.me(f().endpoint)}
var f=K.data;var H=K.decorations;var D=K.avatarButtonCustomClassName;var S=K.isOverlay;var n=K.clusterLayoutConfig;return _.U("avatar-view-model",null,_.U(_.X,{cond:function(){return f().image},
then:function(u){return _.U(r7H,{data:function(){return Xjo({data:f(),onTap:f().endpoint?d:void 0,decorations:H==null?void 0:H(),badgeText:void 0,accessibilityText:f().accessibilityText,avatarButtonCustomClassName:D==null?void 0:D(),clusterLayoutConfig:n==null?void 0:n()})},
image:u,iconType:"RADAR_LIVE",overlays:function(){return _.U(A79,{data:f})},
isOverlay:S})}}))},"S");
_.Pz.idomCompat=!0;_.gW=_.C8(function(K){var d=K.data;K=K.className;var f=_.x7(),H=function(){return _.P(d().avatar,_.G1)},D=_.zh(function(){var S,n=d(),u=H(),a=_.mR(d().rendererContext),R=(S=f.value)!=null?S:void 0,F;
if(u){R={data:n,avatar:u,onTap:a,element:R};S=R.data;n=R.avatar;u=R.onTap;a=R.element;R=R.commandController;u=u?gqu(u,a,R):void 0;a=[];S.liveData&&a.push(0);var z;R=(z=S.liveData)==null?void 0:z.liveBadgeText;z=(F=_.P(S.rendererContext,_.uq))==null?void 0:F.label;F=Xjo({data:n,onTap:u,decorations:a,badgeText:R,accessibilityText:z?z:S.a11yLabel})}else F={size:"medium"};return F},void 0,"H8tk9d");
return _.U("yt-decorated-avatar-view-model",{class:_.SC("yt-decorated-avatar-view-model-wiz",K),el:f},_.U(_.X,{cond:function(){var S;return(S=H())==null?void 0:S.image},
then:function(S){return _.U(r7H,{data:D,image:S,iconType:"RADAR_LIVE",overlays:function(){return _.U(A79,{data:H})}})}}))},"T");
_.gW.idomCompat=!0;_.O$=_.C8(function(K){var d=function(){var a;return Object.assign({},K.data(),(a=K.overrides)==null?void 0:a.call(K))},f=_.Co(),H=function(){return f&&_.lX(d().rendererContext)};
_.W9(f,function(){return d().rendererContext});
var D=function(){var a=d().avatars,R,F;return(F=(R=(a==null?0:a[0])?_.P(a[0],_.G1):void 0)==null?void 0:R.avatarImageSize)!=null?F:"AVATAR_SIZE_UNKNOWN"},S=function(){return PCz(d())},n=function(){if(d().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var a=void 0;
else if((a=K.decorations)==null?0:a.call(K))a=K.decorations();else{a=d();var R=0;a.avatars&&(R+=a.avatars.length);a.decoratedText&&(R+=1);a=R>1?[3]:[]}return a},u={};
return _.U("yt-avatar-stack-view-model",{el:f,class:_.SC("yt-avatar-stack-view-model-wiz",K.className,(u["yt-avatar-stack-view-model-wiz--tappable"]=H,u["yt-avatar-stack-view-model-wiz--is-overlay"]=K.isOverlay,u["yt-avatar-stack-view-model-wiz--medium-text"]=K.useMediumText,u)),tabindex:function(){return H()?0:void 0},
role:function(){return H()?"link":void 0},
"aria-label":function(){var a,R;return(R=(a=_.P(d().rendererContext,_.uq))==null?void 0:a.label)!=null?R:""}},_.U(_.X,{cond:function(){var a;
return d().avatars&&!((a=K.hideAvatar)==null?0:a.call(K))},
then:function(){return _.U("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.U(_.X,{cond:function(){return d().decoratedText},
then:function(a){var R={};return _.U("div",{class:_.SC("yt-avatar-stack-view-model-wiz__text-container",(R["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return D()==="AVATAR_SIZE_XXS"||D()==="AVATAR_SIZE_XS"},R["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var F;
return((F=K.isOverlay)==null?void 0:F.call(K))&&(D()==="AVATAR_SIZE_XXS"||D()==="AVATAR_SIZE_XS")},R)),
style:_.Im({width:function(){return S().avatarSizeInPx+"px"},
height:function(){return S().avatarSizeInPx+"px"}})},_.U(_.ji,{text:a,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.U("div",{style:function(){return _.Im(S().avatarStackStyle)()},
class:function(){return S().avatarStackClass}},_.U(_.z1,{data:function(){return S().avatars.reverse()}},{avatarViewModel:function(a,R){return _.U("div",{style:function(){var F,z;
return _.Im((z=(F=S()).avatarStyle)==null?void 0:z.call(F,R()))()},
class:function(){return S().avatarClass}},_.U(_.Pz,{data:a.data,
decorations:n,avatarButtonCustomClassName:function(){return S().avatarButtonCustomClassName},
isOverlay:K.isOverlay,clusterLayoutConfig:function(){var F,z;return(z=(F=S()).clusterLayoutConfig)==null?void 0:z.call(F,R())}}))},
decoratedAvatarViewModel:function(a,R){return _.U("div",{style:function(){var F,z;return _.Im((z=(F=S()).avatarStyle)==null?void 0:z.call(F,R()))()},
class:function(){return S().avatarClass}},_.U(_.gW,{data:a.data}))}})))}}),_.U(_.X,{cond:function(){return d().text},
then:function(a){return _.U(_.ji,{text:a,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"U");
_.O$.idomCompat=!0;_.sP(_.C8(function(K){var d=K.data;var f=K.thumbnailSize;return _.U("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.U("div",{class:_.SC("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return OPz(f==null?void 0:f())})},_.U(_.z1,{data:function(){return d().avatarStack}},{avatarStackViewModel:function(H){return _.U(_.O$,{data:H.data,
decorations:[5]})}})))},"V"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.rs,
thumbnailSize:_.rs}});var qB6=_.C8(function(K){K=_.jP(K,{hidden:!1});var d=K.data;return _.U("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:K.hidden},_.U(_.ji,{text:function(){return d().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.U(_.X,{cond:function(){return d().subtitle},
then:function(){return _.U(_.ji,{text:function(){return d().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"W");
qB6.idomCompat=!0;_.sP(qB6,"yt-thumbnail-overlay-title-view-model",{props:{data:_.rs,hidden:_.rs}});var Qpt=_.C8(function(K){K=_.jP(K,{isClip:!1});var d=K.data,f=K.thumbnailSize,H={};return _.U("yt-thumbnail-overlay-badge-view-model",{class:_.SC("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(d().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var D="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:D="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return D},function(){return NfN(f==null?void 0:f())},(H["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
K.isClip,H))},_.U(_.z1,{data:function(){return d().thumbnailBadges}},{thumbnailBadgeViewModel:function(D){return _.U(WIB,{data:D.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"X");
Qpt.idomCompat=!0;_.sP(Qpt,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.rs,thumbnailSize:_.rs,isClip:_.rs}});_.Zx(YTp);_.fK(YTp,"yt-page-indicator-view-model",{propNames:["data"]});var N9=function(){var K=_.q.apply(this,arguments)||this;K.eventSink=function(){return K};
K.disableInteraction=!1;K.noRoundedCorners=!1;K.isPreviewLoading=!1;K.isOriginalAspectRatio=!1;K.computedObjectFit=!1;K.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return K};
_.O(N9,_.q);_.V=N9.prototype;
_.V.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:_.M("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"}}};
_.V.onImageLoaded=function(){this.loaded=!0};
_.V.onImageUnloaded=function(){this.loaded=!1};
_.V.computeRichThumbnail=function(K,d,f,H){if(K&&d&&!H&&!_.M("disable_moving_thumbs_handling")&&!f)return d};
_.V.computeImageWidth=function(K,d){return d||9999};
_.V.computeIsOriginalAspectRatio=function(K){return K};
_.V.computeIsLive=function(K){if(K==null?0:K.badges)for(var d=0;d<K.badges.length;d++){var f=K.badges[d];if(f.metadataBadgeRenderer&&f.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(K==null?0:K.thumbnailOverlays)for(d=0;d<K.thumbnailOverlays.length;d++)if(f=K.thumbnailOverlays[d],f.thumbnailOverlayTimeStatusRenderer&&f.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.V.computeObjectFit=function(K,d){return d||(K?"CONTAIN":"")};
_.V.computeNavigationEndpoint=function(K,d,f){return K?d:f};
_.V.computeHasClip=function(K){K=_.y(K||[]);for(var d=K.next();!d.done;d=K.next())if(d.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.V.computeOverlayColor=function(K){var d;return(K==null?0:(d=K.darkColorPalette)==null?0:d.section2Color)?K.darkColorPalette.section2Color:K==null?void 0:K.sampledThumbnailColor};
_.x$.Object.defineProperties(N9.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return NqX(this.width)}}});
N9.prototype.onImageUnloaded=N9.prototype.onImageUnloaded;N9.prototype.onImageLoaded=N9.prototype.onImageLoaded;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],N9.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(P7s),_.B("design:type",Object)],N9.prototype,"ytdThumbnailBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],N9.prototype,"componentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],N9.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],N9.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],N9.prototype,"circular",void 0);
_.x([_.A({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.B("design:type",Object)],N9.prototype,"richThumbnail",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.B("design:type",Boolean)],N9.prototype,"hasClip",void 0);_.x([_.A(),_.B("design:type",Object)],N9.prototype,"eventSink",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],N9.prototype,"queued",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],N9.prototype,"richGridThumbnail",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],N9.prototype,"useExpandableTooltip",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],N9.prototype,"useUntranslatedNavigationEndpoint",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],N9.prototype,"disableInteraction",void 0);
_.x([_.A({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.B("design:type",Object)],N9.prototype,"computedNavigationEndpoint",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],N9.prototype,"nowPlayingEqualizerOnly",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],N9.prototype,"hidePlaybackStatus",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],N9.prototype,"objectFit",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],N9.prototype,"noRoundedCorners",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],N9.prototype,"watchFeedThumbnail",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],N9.prototype,"isPreviewLoading",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.B("design:type",Object)],N9.prototype,"isOriginalAspectRatio",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.B("design:type",Object)],N9.prototype,"computedObjectFit",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.B("design:type",Boolean)],N9.prototype,"isLiveVideo",void 0);
_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],N9.prototype,"loaded",void 0);_.x([_.A({computed:"computeOverlayColor(data.thumbnail)"}),_.B("design:type",Object)],N9.prototype,"overlayColor",void 0);_.x([_.A({selector:_.Fvo}),_.B("design:type",Boolean)],N9.prototype,"inlinePreviewIsEnabled",void 0);_.x([_.A(),_.B("design:type",Number)],N9.prototype,"width",void 0);
_.x([_.W("inlinePreviewIsEnabled"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],N9.prototype,"isPreviewDisabled",null);_.x([_.W("width"),_.B("design:type",String),_.B("design:paramtypes",[])],N9.prototype,"thumbnailSize",null);_.x([_.VV("image-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],N9.prototype,"onImageLoaded",null);
_.x([_.VV("image-unloaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],N9.prototype,"onImageUnloaded",null);N9=_.x([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail"})],N9);
var jp6=_.eP()(N9,"ytd-thumbnail",function(){if(mWv===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);mWv=K}K=mWv;return K},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var EqX=function(K){var d=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12803_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12803_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(f){C09(d,f)};
this.onLockupMouseLeaveFn=function(f){f=f.relatedTarget;var H,D;((H=document.getElementsByTagName("ytd-video-preview"))==null?0:(D=H.item(0))==null?0:D.contains(f))||(d.terminateVideoPreview(),Yd(d))};
this.onThumbnailMouseDownFn=function(){d.terminateVideoPreview();Yd(d)};
this.onTouchStart=function(){d.JSC$12803_touched=!0};
this.mediaRenderer=K.mediaRenderer;this.thumbnailElement=K.thumbnailElement;this.lockupElement=K.lockupElement;this.videoPreviewOptsInput=K.videoPreviewOpts;xWs(this);tH(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)):
_.h3(Error("Ah")):_.h3(Error("Bh")):LIf(this)},s8=function(K){LIf(K);
var d;(d=K.lockupElement)==null||d.removeEventListener("mouseenter",K.onMouseMoveFn);var f;(f=K.lockupElement)==null||f.removeEventListener("mouseleave",K.onLockupMouseLeaveFn);var H;(H=K.lockupElement)==null||H.removeEventListener("touchstart",K.onTouchStart);var D;(D=K.thumbnailElement)==null||D.removeEventListener("mousedown",K.onThumbnailMouseDownFn);Yd(K)},xWs=function(K){K.inlinePreviewIsEnabledForUser=_.j3().getState().ui.inlinePreviewIsEnabled;
K.unsubscribeFromInlinePreviewIsEnabled=_.n5(_.j3(),_.Fvo,function(d){(K.inlinePreviewIsEnabledForUser=d)||Yd(K)});
K.JSC$12803_unsubscribeFromInlinePreviewIsActive=_.n5(_.j3(),_.RxO,function(d){(K.inlinePreviewIsActive=d)||Yd(K)})},LIf=function(K){K.unsubscribeFromInlinePreviewIsEnabled();
K.unsubscribeFromInlinePreviewIsEnabled=function(){};
K.JSC$12803_unsubscribeFromInlinePreviewIsActive();K.JSC$12803_unsubscribeFromInlinePreviewIsActive=function(){}},C09=function(K,d){d.buttons>0||(d=_.di("kevlar_lockup_hover_delay",-1),K.JSC$12803_touched&&d>=0?(_.oc.cancelJob(K.videoPreviewJobId),K.videoPreviewJobId=_.pZ(_.oc,function(){BKf(K)},d),K.JSC$12803_touched=!1):BKf(K))},J7s=function(K){K.videoPreviewJobId=_.pZ(_.oc,function(){var d,f,H,D;
return _.c(function(S){if(S.nextAddress==1){if(!tH(K))return S.return();d=K.getVideoPreviewOpts();if(!d)return S.return();d.isAutoplay=!0;return(H=(f=_.p1(K.mediaRenderer.hostElement,"yt-open-video-preview-action",[d]))&&f[0])?_.I(S,f[0],3):S.jumpTo(2)}S.nextAddress!=2&&(H=S.yieldResult===1);H&&oqn((D=K.mediaRenderer)==null?void 0:D.data);_.iQ(S)})})},BKf=function(K){!K.previewTriggered&&tH(K)&&(K.inlinePreviewIsActive&&K.terminateVideoPreview(),K.previewTriggered=!0,K.mediaRenderer.isInlinePreviewTriggered=
!0,_.oc.cancelJob(K.videoPreviewJobId),K.videoPreviewJobId=_.pZ(_.oc,function(){var d,f,H,D;
return _.c(function(S){if(S.nextAddress==1){if(!tH(K))return S.return();d=K.getVideoPreviewOpts();return d?(H=(f=_.p1(K.mediaRenderer.hostElement,"yt-open-video-preview-action",[d]))&&f[0])?_.I(S,f[0],3):S.jumpTo(2):S.return()}S.nextAddress!=2&&(H=S.yieldResult===1);H&&oqn((D=K.mediaRenderer)==null?void 0:D.data);_.iQ(S)})}))};
EqX.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var K,d;if((d=(K=this.videoPreviewOptsInput)==null?void 0:K.videoPreviewData)!=null)K=d;else if(K=this.mediaRenderer.data)if(taX(K))K={inlinePlaybackEndpoint:_.$A(K.inlinePlayerData.onVisible),navigationEndpoint:_.$A(K.onTap),thumbnail:"image"in K?K.image:K.thumbnail,thumbnailOverlays:void 0,accessibilityText:$co(K)};else if("multipleInlinePlaybackEndpoint"in K){var f=_.P(_.P(K.multipleInlinePlaybackEndpoint,Tc6),rIL);if(f!=
null&&f.playerDescriptors){d=[];f=_.y(f.playerDescriptors);for(var H=f.next();!H.done;H=f.next())H=H.value,d.push({inlinePlaybackEndpoint:H.inlinePlaybackEndpoint,navigationEndpoint:H.navigationEndpoint,thumbnail:H.thumbnail,thumbnailOverlays:H.thumbnailOverlays,accessibilityText:$co(K)});K=d}else K=void 0}else K={inlinePlaybackEndpoint:K.inlinePlaybackEndpoint,navigationEndpoint:K.navigationEndpoint,thumbnail:K.thumbnail,thumbnailOverlays:K.thumbnailOverlays,accessibilityText:$co(K)};else K=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:K,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var tH=function(K){var d;if(d=K.inlinePreviewIsEnabledForUser)d=(K=K.mediaRenderer.data)?"inlinePlaybackEndpoint"in K&&K.inlinePlaybackEndpoint||taX(K)&&K.inlinePlayerData||"multipleInlinePlaybackEndpoint"in K&&K.multipleInlinePlaybackEndpoint?!0:!1:!1;return d};
EqX.prototype.terminateVideoPreview=function(){_.ev(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Yd=function(K){_.oc.cancelJob(K.videoPreviewJobId);K.inlinePreviewIsActive=!1;K.previewTriggered=!1;K.mediaRenderer.isInlinePreviewTriggered=!1};var spt=_.Am(["#"]),oJ=function(){var K=_.q.apply(this,arguments)||this;K.isDisabled=!1;return K};
_.O(oJ,_.q);_.V=oJ.prototype;_.V.configureRendererStamper=function(){return{"data.menu":Sf,"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"}}}};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.getMetadata=function(K){var d=[];if(K.metadataText&&Object.keys(K.metadataText).length>0){var f=this.ytRendererBehavior.getSimpleString(K.metadataText);K.upcomingEventData&&K.upcomingEventData.upcomingEventText&&(f=_.$B(f,Number(K.upcomingEventData.startTime)));d.push(f)}else K.shortViewCountText&&d.push(this.ytRendererBehavior.getSimpleString(K.shortViewCountText)),K.publishedTimeText&&d.push(this.ytRendererBehavior.getSimpleString(K.publishedTimeText)),K.upcomingEventData&&K.upcomingEventData.upcomingEventText&&
(f=this.ytRendererBehavior.getSimpleString(K.upcomingEventData.upcomingEventText),d.push(_.$B(f,Number(K.upcomingEventData.startTime))));return d};
_.V.calculateBylineText=function(K){return K.shortBylineText?K.shortBylineText:K.bylineText?K.bylineText:null};
_.V.calculateIsDisabled=function(K){return!!K.isDisabled};
_.V.computeHrefWithDefault=function(K){return this.ytComponentBehavior.computeHref_(K)||_.g5(spt)};
_.V.onDetailsTap=function(K){var d=this.data&&this.data.navigationEndpoint;d&&!_.qa(_.qn(K)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.M("kevlar_grid_video_renderer_killswitch")?_.Zp(this.hostElement,"yt-navigate",{endpoint:d}):this.ytComponentBehavior.resolveCommand(d))};
_.V.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12808_inlinePreviewHoverListener=Av({mediaRenderer:this,lockupElement:_.E(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.E(this.hostElement).querySelector("ytd-thumbnail")})};
_.V.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$12808_inlinePreviewHoverListener)==null||s8(K)};
_.V.computeThumbnailWidth=function(K,d){return d&&d>0?d:K?360:210};
_.V.computeShowChannelThumbnail=function(K,d){var f;return d&&!!(K==null?0:(f=K.channelThumbnailSupportedRenderers)==null?0:f.channelThumbnailWithLinkRenderer)};
_.x$.Object.defineProperties(oJ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$12808_inlinePreviewHoverListener)==null?0:tH(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
oJ.prototype.dataChanged=oJ.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],oJ.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],oJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],oJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.l(_.AV),_.B("design:type",Object)],oJ.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],oJ.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],oJ.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],oJ.prototype,"noEndpoints",void 0);_.x([_.A({computed:"calculateBylineText(data)"}),_.B("design:type",Object)],oJ.prototype,"bylineText",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],oJ.prototype,"isSearch",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],oJ.prototype,"isDownloading",void 0);_.x([_.A({reflectToAttribute:!0,value:0}),_.B("design:type",Number)],oJ.prototype,"width",void 0);_.x([_.A({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.B("design:type",Object)],oJ.prototype,"isDisabled",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oJ.prototype,"dataChanged",null);_.x([_.W("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oJ.prototype,"isHovered",null);oJ=_.x([_.Q({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],oJ);
_.C(oJ,"ytd-grid-video-renderer",function(){if(M8s!==void 0)return M8s;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return M8s=K},{mode:_.p8("kevlar_poly_si_batch_j047")?1:2});var kNv;var $d=function(){var K=_.q.apply(this,arguments)||this;K.roundedContainer=!0;K.skipRoundingTop=!1;K.disableTopPadding=!1;K.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");return K};
_.O($d,_.q);$d.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$d.prototype.onClick=function(K){var d,f=(d=this.data)==null?void 0:d.sourceEndpoint;!_.qa(_.qn(K),this.hostElement,["A".toString()])&&f&&_.Zp(this.hostElement,"yt-navigate",{endpoint:f})};
_.x$.Object.defineProperties($d.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 K;return!((K=this.data)==null||!K.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var K,d;return(d=(K=this.data)==null?void 0:K.paragraphMaxLines)!=null?d:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],$d.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$d.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],$d.prototype,"showVerticalDividers",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],$d.prototype,"roundedContainer",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],$d.prototype,"skipRoundingTop",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],$d.prototype,"disableTopPadding",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],$d.prototype,"amsterdamEnabled",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],$d.prototype,"showMetadataAtTop",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],$d.prototype,"showMetadataBelowTitle",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],$d.prototype,"hasMenu",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.truncateParagraphs"),_.B("design:type",Object),_.B("design:paramtypes",[])],$d.prototype,"truncateParagraphs",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data.paragraphMaxLines"),_.B("design:type",Number),_.B("design:paramtypes",[])],$d.prototype,"paragraphMaxLines",null);_.x([_.A({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.background"),_.B("design:type",Object),_.B("design:paramtypes",[])],$d.prototype,"background",null);$d=_.x([_.Q({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],$d);
_.C($d,"ytd-info-panel-content-renderer",function(){if(kNv!==void 0)return kNv;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return kNv=K},{mode:_.p8("kevlar_poly_si_batch_j076")?1:2});var wQ2;var Zi9;var e9J;var pQv;var E$=function(){return _.q.apply(this,arguments)||this};
_.O(E$,_.q);E$.prototype.computeStyle=function(K){return K};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],E$.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],E$.prototype,"style_",void 0);E$=_.x([_.N7({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],E$);
_.C(E$,"yt-channel-thumbnail-with-link-renderer",function(){if(pQv===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;e9J===void 0&&(e9J=document.createElement("template"));var H=e9J;f.call(d,H.content.cloneNode(!0),K.content.firstChild);pQv=K}K=pQv;return K},{mode:2});var hH=function(){var K=_.q.apply(this,arguments)||this;K.modernTypography=_.M("web_modern_typography");return K};
_.O(hH,_.q);hH.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"}}}};
hH.prototype.computeTitleStyle=function(K){return K||null};
hH.prototype.computeAvatarStyle=function(K){return K||null};
hH.prototype.computeShowNavigationButton=function(K,d){return!(K==null||!K.navigationButton||d)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],hH.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.B("design:type",String)],hH.prototype,"titleStyle",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.B("design:type",String)],hH.prototype,"avatarStyle",void 0);_.x([_.A(),_.B("design:type",Boolean)],hH.prototype,"hideNavigationButton",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],hH.prototype,"isModernSd",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],hH.prototype,"modernTypography",void 0);
hH=_.x([_.Q({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],hH);
_.C(hH,"ytd-rich-list-header-renderer",function(){if(Zi9!==void 0)return Zi9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Zi9=K},{mode:_.p8("kevlar_poly_si_batch_j058")?1:2});var bn=function(){return _.q.apply(this,arguments)||this};
_.O(bn,_.q);bn.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]]"}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],bn.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],bn.prototype,"isSearch",void 0);bn=_.x([_.Q({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],bn);
_.C(bn,"ytd-preview-card-renderer",function(){if(wQ2!==void 0)return wQ2;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return wQ2=K},{mode:1});var K7s;var mi=function(){return _.q.apply(this,arguments)||this};
_.O(mi,_.q);mi.prototype.configureRendererStamper=function(){return{"data.menu":Sf}};
mi.prototype.dataChanged=function(){var K=this.get("colorExtractionPalette.section1Color",this.data);K=_.E1(K);_.f8(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":K})};
mi.prototype.computeCardStyle=function(K){return this.get("style.value",K)||null};
mi.prototype.dataChanged=mi.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],mi.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],mi.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.B("design:type",String)],mi.prototype,"cardStyle",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mi.prototype,"dataChanged",null);mi=_.x([_.Q({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],mi);
_.C(mi,"ytd-compact-channel-recommendation-card-renderer",function(){if(K7s!==void 0)return K7s;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return K7s=K},{mode:1});var dGJ;var fX8;var ln=function(){var K=_.q.apply(this,arguments)||this;K.alignAuto=!1;K.collapsed=!0;K.isToggled=!1;K.alwaysCollapsed=!1;K.canToggle=!0;K.collapsedHeight=80;K.disableToggle=!1;K.alwaysToggleable=!1;K.reversed=!1;K.shouldUseNumberOfLines=!1;K.recomputeOnResize=!1;K.canToggleJobId=0;K.lastReversed=!1;return K};
_.O(ln,_.q);_.V=ln.prototype;_.V.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.V.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.V.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var K=_.E(this.hostElement),d=K.childNodes,f=document.createDocumentFragment(),H=K.childNodes.length-1;H>=0;H--)_.E(f).appendChild(d[H]);_.M("enable_shadydom_free_scoped_node_methods")?_.eZ(this.hostElement).appendChild(f):K.appendChild(f)}};
_.V.ready=function(){var K=this;_.bL(function(){K.initChildrenObserver()},1)};
_.V.detached=function(){this.detachObserver()};
_.V.toggle=function(K,d){this.canToggle&&(this.isToggled=d,_.Zp(this.hostElement,"yt-refit"),K&&K.stopPropagation())};
_.V.reset=function(){this.childrenChanged()};
_.V.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.V.computeIsMoreVisible=function(K,d){return K&&!d};
_.V.computeShouldUseNumberOfLines=function(K){try{return!!K&&window.CSS.supports("-webkit-line-clamp","1")}catch(d){}return!1};
_.V.computeIsLessVisible=function(K,d){return K&&d};
_.V.observeCollapsedHeightAndMaxLines=function(){var K=this.collapsedHeight,d=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.f8(this.hostElement,{"--ytd-expander-max-lines":""+d,"--ytd-expander-collapsed-height":""}):_.f8(this.hostElement,{"--ytd-expander-collapsed-height":K+"px","--ytd-expander-max-lines":""})};
_.V.handleMoreTap=function(K){this.disableToggle||(_.Zp(this.hostElement,"yt-expander-more-tapped"),this.toggle(K,!0))};
_.V.handleLessTap=function(K){_.Zp(this.hostElement,"yt-expander-less-tapped");this.toggle(K,!1)};
_.V.initChildrenObserver=function(){var K=this;this.observer=new MutationObserver(function(){K.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.V.childrenChanged=function(){var K=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){eV(function(){K.canToggleJobId=0;K.calculateCanCollapse()})}))};
_.V.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};
_.V.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.V.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("collapsed-changed",this.collapsed))};
_.V.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("is-toggled-changed",this.isToggled))};
_.V.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("can-toggle-changed",this.canToggle))};
_.x$.Object.defineProperties(ln.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
ln.prototype.canToggleChangedForBinding=ln.prototype.canToggleChangedForBinding;ln.prototype.isToggledChangedForBinding=ln.prototype.isToggledChangedForBinding;ln.prototype.collapsedChangedForBinding=ln.prototype.collapsedChangedForBinding;ln.prototype.observeCollapsedHeightAndMaxLines=ln.prototype.observeCollapsedHeightAndMaxLines;ln.prototype.onIronResize=ln.prototype.onIronResize;ln.prototype.reversedChanged=ln.prototype.reversedChanged;ln.prototype.toggledChanged=ln.prototype.toggledChanged;
ln.prototype.alwaysToggleableChanged=ln.prototype.alwaysToggleableChanged;_.x([_.l(_.Mg),_.B("design:type",Object)],ln.prototype,"ironResizableBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ln.prototype,"alignAuto",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ln.prototype,"collapsed",void 0);_.x([_.A(),_.B("design:type",Object)],ln.prototype,"isToggled",void 0);_.x([_.A(),_.B("design:type",Object)],ln.prototype,"alwaysCollapsed",void 0);
_.x([_.A(),_.B("design:type",Object)],ln.prototype,"canToggle",void 0);_.x([_.A(),_.B("design:type",Object)],ln.prototype,"collapsedHeight",void 0);_.x([_.A(),_.B("design:type",Object)],ln.prototype,"disableToggle",void 0);_.x([_.A(),_.B("design:type",Object)],ln.prototype,"alwaysToggleable",void 0);_.x([_.A(),_.B("design:type",Object)],ln.prototype,"reversed",void 0);_.x([_.A(),_.B("design:type",Number)],ln.prototype,"maxNumberOfLines",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.B("design:type",Object)],ln.prototype,"shouldUseNumberOfLines",void 0);_.x([_.A(),_.B("design:type",Object)],ln.prototype,"recomputeOnResize",void 0);_.x([_.n8("#content"),_.B("design:type",HTMLDivElement)],ln.prototype,"content",void 0);_.x([_.an("alwaysToggleable"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ln.prototype,"alwaysToggleableChanged",null);
_.x([_.an("isToggled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ln.prototype,"toggledChanged",null);_.x([_.W("canToggleJobId"),_.B("design:type",Object),_.B("design:paramtypes",[])],ln.prototype,"isResetting",null);_.x([_.SP("reversed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ln.prototype,"reversedChanged",null);
_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ln.prototype,"onIronResize",null);_.x([_.SP("maxNumberOfLines","collapsedHeight"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ln.prototype,"observeCollapsedHeightAndMaxLines",null);_.x([_.SP("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ln.prototype,"collapsedChangedForBinding",null);
_.x([_.SP("isToggled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ln.prototype,"isToggledChangedForBinding",null);_.x([_.SP("canToggle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ln.prototype,"canToggleChangedForBinding",null);ln=_.x([_.Q({disableElementRegistration:!0,is:"ytd-expander"})],ln);
_.C(ln,"ytd-expander",function(){if(fX8!==void 0)return fX8;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return fX8=K},{mode:1});var Wz=function(){return _.q.apply(this,arguments)||this};
_.O(Wz,_.q);Wz.prototype.computeIsCarousel=function(K){return!!K.isCarousel};
Wz.prototype.observeLightsourcePalette=function(){var K,d=(K=this.data)==null?void 0:K.vibrantsourceColorPaletteData;d&&_.gH(this.hostElement,d)};
Wz.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Wz.prototype.observeLightsourcePalette=Wz.prototype.observeLightsourcePalette;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Wz.prototype,"data",void 0);_.x([_.A({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Wz.prototype,"isCarousel",void 0);
_.x([_.SP("data.vibrantsourceColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wz.prototype,"observeLightsourcePalette",null);Wz=_.x([_.Q({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Wz);
_.C(Wz,"ytd-media-upsell-renderer",function(){if(dGJ!==void 0)return dGJ;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return dGJ=K},{mode:2});var H$H;var G5=function(){var K=_.q.apply(this,arguments)||this;K.JSC$12836_playerEvents=new Map;K.listeningToPlayer=!1;K.startX=0;K.active=!1;K.shouldShowButtons=_.M("web_buttons_hidden_killswitch");K.isHighlighted=!1;K.useHighlightStyling=_.M("web_enable_deeper_metadata_highlight_styling");K.modern=_.M("kevlar_modern_sd");K.enableProblemWalkthrough=_.M("problem_walkthrough_sd");return K};
_.O(G5,_.q);_.V=G5.prototype;
_.V.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}}}}}};
_.V.created=function(){this.JSC$12836_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.V.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Dm(this,this.onRepeatButtonToggle));_.M("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Dm(this,this.onActiveUpdate))};
_.V.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Dm(this,this.onRepeatButtonToggle));_.M("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Dm(this,this.onActiveUpdate))};
_.V.onDataChanged=function(){this.removePlayerListeners()};
_.V.onColorPaletteChange=function(){var K={},d;if(_.X7()==="USER_INTERFACE_THEME_DARK"&&((d=this.data)==null?0:d.darkColorPalette)){var f=this.data.darkColorPalette;K["--ytd-macro-markers-list-item-background-color"]=_.hG(this.get("section2Color",f))}else{var H;_.X7()==="USER_INTERFACE_THEME_LIGHT"&&((H=this.data)==null?0:H.lightColorPalette)&&(f=this.data.lightColorPalette,K["--ytd-macro-markers-list-item-background-color"]=_.hG(this.get("section3Color",f)))}f?(K["--ytd-macro-markers-list-item-title-color"]=
_.hG(this.get("primaryTitleColor",f)),K["--ytd-macro-markers-list-item-secondary-color"]=_.hG(this.get("secondaryTitleColor",f)),K["--ytd-macro-markers-list-item-timestamp-background-color"]=_.hG(this.get("section1Color",f)),this.customButtonProperties={customColors:{color:_.hG(this.get("primaryTitleColor",f))}},this.useColorSampling=!0):(K["--ytd-macro-markers-list-item-background-color"]="initial",K["--ytd-macro-markers-list-item-title-color"]="initial",K["--ytd-macro-markers-list-item-secondary-color"]=
"initial",K["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.f8(this.hostElement,K)};
_.V.onEndpointMouseDown=function(K){this.startX=K.clientX};
_.V.onEndpointClick=function(K){var d=this,f,H,D;return _.c(function(S){if(S.nextAddress==1){if(d.startX!==K.clientX)return K.preventDefault(),S.return();d.data&&d.ytRendererBehavior.logExplicitClick(d.data);if(!d.seekWithAnimationOnClick)return S.jumpTo(0);if(K.button!==0||K.shiftKey||K.altKey||K.metaKey||K.ctrlKey||_.qa(_.qn(K),d.hostElement,["BUTTON".toString()]))return S.return();K.stopPropagation();K.preventDefault();return d.data?_.I(S,_.LK().getPlayerPromise(),3):S.return()}f=S.yieldResult;
D=(H=_.P(d.data.onTap,_.qu))==null?void 0:H.startTimeSeconds;D!==void 0&&f.seekToTimeWithAnimation(D*1E3,_.qQ(d.data.title));_.iQ(S)})};
_.V.computeLayout=function(K){return K};
_.V.computeIsHighlighted=function(K){return!!K};
_.V.computeCarouselType=function(K){return K};
_.V.hideModernCarousel=function(K){return this.modern&&this.hideThumbnail(K)};
_.V.hideThumbnail=function(K){return this.enableProblemWalkthrough&&K!==null&&K==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.V.onRepeatButtonToggle=function(K){var d=this;K.detail.toggled&&_.LK().getPlayerPromise().then(function(f){d.ytPlayerListenerBehavior.listenToPlayerEvents(f,d.JSC$12836_playerEvents);d.listeningToPlayer=!0})};
_.V.onLoopRangeChange=function(K){var d=_.E(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(d){var f=d.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",d.polymerController.data);if(f){var H=Number(f.endTimeMs);if(Number(f.startTimeMs)!==(K==null?void 0:K.startTimeMs)||H!==(K==null?void 0:K.endTimeMs))d.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.V.removePlayerListeners=function(){var K=this;this.listeningToPlayer&&_.LK().getPlayerPromise().then(function(d){K.ytPlayerListenerBehavior.unlistenFromPlayerEvents(d,K.JSC$12836_playerEvents);K.listeningToPlayer=!1})};
_.V.onActiveUpdate=function(K){this.active=K.detail.active};
G5.prototype.onColorPaletteChange=G5.prototype.onColorPaletteChange;G5.prototype.onDataChanged=G5.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],G5.prototype,"ytPlayerListenerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],G5.prototype,"data",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],G5.prototype,"useCustomColors",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],G5.prototype,"active",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],G5.prototype,"shouldShowButtons",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.B("design:type",String)],G5.prototype,"layout",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.B("design:type",Object)],G5.prototype,"isHighlighted",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],G5.prototype,"useHighlightStyling",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],G5.prototype,"modern",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],G5.prototype,"enableProblemWalkthrough",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.B("design:type",String)],G5.prototype,"carouselType",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],G5.prototype,"useColorSampling",void 0);_.x([_.A(),_.B("design:type",Boolean)],G5.prototype,"seekWithAnimationOnClick",void 0);_.x([_.A(),_.B("design:type",Object)],G5.prototype,"customButtonProperties",void 0);
_.x([_.n8("#repeat-button"),_.B("design:type",HTMLElement)],G5.prototype,"repeatButton",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G5.prototype,"onDataChanged",null);_.x([_.SP("data.lightColorPalette","data.darkColorPalette"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G5.prototype,"onColorPaletteChange",null);
G5=_.x([_.Q({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],G5);
_.C(G5,"ytd-macro-markers-list-item-renderer",function(){if(H$H!==void 0)return H$H;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return H$H=K},{mode:1});var DGN;var VjJ;var AH=function(){var K=_.q.apply(this,arguments)||this;K.modernTypography=_.M("web_modern_typography");return K};
_.O(AH,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],AH.prototype,"modernTypography",void 0);_.x([_.A(),_.B("design:type",Object)],AH.prototype,"data",void 0);AH=_.x([_.Q({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],AH);
_.C(AH,"ytd-title-and-button-list-header-renderer",function(){if(VjJ!==void 0)return VjJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return VjJ=K},{mode:1});var Sg8;var yUk=new _.xn("BUTTON_RENDERER_WIZ_TOKEN"),nys=new _.xn("BUTTON_RENDERER_TOKEN");_.T5=_.C8(function(K){var d=_.eq().resolve(_.Zd(yUk));if(d)return _.U(d,Object.assign({},K));var f=_.eq().resolve(nys);return f?_.U(Ro5,null,function(){return _.U(Lo,null,function(){var H,D,S,n,u,a,R,F,z,v,g,N;return void f(K.data(),{onButtonClickCallback:K.onButtonClickCallback,shouldShowIcons:(H=K.shouldShowIcons)==null?void 0:H.call(K),icon:(D=K.icon)==null?void 0:D.call(K),processAllEndpoints:(S=K.processAllEndpoints)==null?void 0:S.call(K),preventDefault:(n=K.preventDefault)==null?void 0:n.call(K),
stopPropagation:(u=K.stopPropagation)==null?void 0:u.call(K),disableButtonRendererClickHandling:(a=K.disableButtonRendererClickHandling)==null?void 0:a.call(K),className:(R=K.className)==null?void 0:R.call(K),buttonOverrides:(F=K.buttonOverrides)==null?void 0:F.call(K),forceModernIconButton:(z=K.forceModernIconButton)==null?void 0:z.call(K),isSubscribe:(v=K.isSubscribe)==null?void 0:v.call(K),alignByText:(g=K.alignByText)==null?void 0:g.call(K),forceDisabled:(N=K.forceDisabled)==null?void 0:N.call(K)})})}):
_.U(_.dF,null)},"Y");
_.T5.idomCompat=!0;var i$N=_.C8(function(K){var d=K.data,f=_.QV(K.useSquareAspectRatio,!1);return _.U("dismissed-mini-game-card-view-model",null,_.U(_.X,{cond:function(){var H,D;return(H=d().responseText)==null?void 0:(D=H.runs)==null?void 0:D.length},
then:function(){var H={};return _.U("div",{class:_.SC("yt-mini-game-card-view-model__dismissed-card",(H["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!f()},H["yt-mini-game-card-view-model--dismissed-square-card"]=f,H))},_.U("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.U(_.X,{cond:function(){return d().responseText.runs[0].text},
then:function(D){return _.U("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:D},D)}}),_.U(_.z1,{data:function(){return d().buttons}},{buttonRenderer:_.T5,
buttonViewModel:_.oY})))}}))},"Z");var RU6=_.C8(function(K){K=_.jP(K,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var d=K.data,f=K.useFullWidth,H=K.isDesktopWeb,D=K.addSearchResultTopMargin,S=function(){return d().layout},n=function(){return d().title},u=function(){return d().metadataText?d().metadataText:d().genre},a=function(){return d().channelName},R=function(){return d().image},F=function(){return d().colorPalette},z=function(){return d().actionButton},v=function(){return d().overflowButton},
g=function(){return d().avatar},N=function(){var r={};
r=_.SC("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(r["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return H()},r));
return _.U("div",{class:r},_.U(cUk,{imageData:R,colorPalette:F}),_.U(u5J,{onTap:function(){return d().onTap},
imageData:R,accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
isDesktopWeb:H}),_.U(_.X,{cond:function(){return!H()},
then:function(){return _.U(_.dF,null,_.U(aXf,{layout:S,colorPalette:F,isDesktopWeb:H,overflowButton:v,avatar:g,onTap:function(){return d().onTap},
genre:u,title:n,channelName:a,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}),_.U(rW,{actionButton:z}))}}))},h=function(){var r={};
r=_.SC((r["yt-mini-game-card-view-model--search-result-desktop"]=function(){return H()},r["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!H()},r["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return D()},r));
return _.U("div",{class:r},N(),_.U(IXL,{description:function(){return d().description},
isDesktopWeb:H,title:n,genre:u,onTap:function(){return d().onTap},
actionButton:z,overflowButton:v,avatar:g,channelName:a}))},m=function(){var r=function(){var L;
return(L=d().entityRedesignExperiments)==null?void 0:L.changePlayablesLayoutWithCta},J={};
J=_.SC("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(J["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return r()},J["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return H()},J["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return H()&&d().width===135},J["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return H()},J["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!r()&&H()&&d().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},J["yt-mini-game-card-view-model--big-metadata-font"]=function(){return d().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},J["yt-mini-game-card-view-model--use-full-width"]=function(){return f()},J["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!z()},J));
return _.U("div",{class:J},_.U(_.X,{cond:function(){return r()},
then:function(){return _.U(_.dF,null,_.U(UGf,{entityRedesignExperiments:function(){return d().entityRedesignExperiments},
colorPalette:F,isDesktopWeb:H,onTap:function(){return d().onTap},
accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
actionButton:z,imageData:R}),_.U(aXf,{layout:S,colorPalette:F,isDesktopWeb:H,overflowButton:v,avatar:g,onTap:function(){return d().onTap},
genre:u,title:n,channelName:a,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}),_.U(_.X,{cond:function(){return!!r()===!1&&z()},
then:function(){return _.U(rW,{actionButton:z})}}))},
else:function(){return _.U(_.dF,null,_.U(cUk,{imageData:R,colorPalette:F}),_.U(u5J,{onTap:function(){return d().onTap},
imageData:R,accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
isDesktopWeb:H}),_.U(aXf,{layout:S,colorPalette:F,isDesktopWeb:H,overflowButton:v,avatar:g,onTap:function(){return d().onTap},
genre:u,title:n,channelName:a,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}),_.U(rW,{actionButton:z}))}}))},T=function(){var r={};
r=_.SC("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(r["yt-mini-game-card-view-model--square-card-desktop"]=function(){return H()},r["yt-mini-game-card-view-model--use-full-width"]=function(){return f()},r));
return _.U("div",{class:r},_.U(u5J,{onTap:function(){return d().onTap},
imageData:R,accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
isDesktopWeb:H}),_.U(aXf,{layout:S,colorPalette:F,isDesktopWeb:H,overflowButton:v,avatar:g,onTap:function(){return d().onTap},
genre:u,title:n,channelName:a,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}))};
return _.U("mini-game-card-view-model",{class:K.className},_.U(_.gF,null,_.U(_.Mk,{when:function(){return S()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return m()}),_.U(_.Mk,{when:function(){return S()==="MINI_APP_LAYOUT_SQUARE"}},function(){return T()}),_.U(_.Mk,{when:function(){return S()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return h()})))},"$");
RU6.idomCompat=!0;var rW=_.C8(function(K){var d=_.QV(K.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.U(_.z1,{data:K.actionButton},{buttonViewModel:function(f){return _.U("div",{class:d},_.U(_.oY,{data:f.data}))}})},"aa"),u5J=_.C8(function(K){var d=K.onTap;
var f=K.imageData;var H=K.accessibilityText;var D=K.overlayBadgeText;var S=K.iconName;var n=K.unplayableInlinePlaybackIconName;K=K.isDesktopWeb;return _.U(_.pI,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:d},_.U(_.jV,{data:f,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(H==null?void 0:H())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.U(F7s,{overlayBadgeText:D,iconName:S,unplayableInlinePlaybackIconName:n,isDesktopWeb:K}))},"ba"),F7s=_.C8(function(K){var d=K.overlayBadgeText;
var f=K.iconName;var H=K.unplayableInlinePlaybackIconName;var D=K.isDesktopWeb;return _.U("div",{class:"yt-mini-game-card-view-model__badge-container"},_.U(_.X,{cond:f,then:function(S){return _.U("div",{class:"yt-mini-game-card-view-model__badge"},_.U("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.U(_.U5,{icon:S,className:"yt-mini-game-card-view-model__icon"}),_.U("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},d)))}}),_.U(_.X,{cond:function(){return!f()&&
d()},
then:function(){return _.U("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},d)}}),_.U(_.X,{cond:function(){return H()&&D()},
then:function(){return _.U("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.U(_.U5,{icon:H,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ca"),cUk=_.C8(function(K){var d=K.colorPalette;
var f=K.imageData;var H=function(){return d().vibrantColorPalette?d().vibrantColorPalette.section2Color:d().sectionTwoColor};
return _.U(_.dF,null,_.U("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Im({"background-color":function(){return bs(H(),"1")}})}),_.U("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Im({"background-image":function(){return"url("+f().sources[0].url+")"}})}),_.U("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Im({background:function(){return"linear-gradient(180deg,\n    "+bs(H(),".8")+" 0%,\n    "+bs(H(),".4")+" 25%,\n    "+bs(d().vibrantColorPalette?d().vibrantColorPalette.section4Color:d().sectionFourColor,".8")+" 100%)"}})}))},"da"),aXf=_.C8(function(K){var d=K.layout;
var f=K.colorPalette;var H=K.overflowButton;var D=K.avatar;var S=K.onTap;var n=K.title;var u=K.channelName;var a=K.entityRedesignExperiments;var R=K.genre;var F=function(){var v;return d()!=="MINI_APP_LAYOUT_SQUARE"&&((v=f())==null?0:v.textPrimaryColor)?"color: "+bs(f().textPrimaryColor,".7"):""},z=function(){var v;
return a==null?void 0:(v=a())==null?void 0:v.changePlayablesLayoutWithCta};
return _.U("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.U(_.X,{cond:D,then:function(){return _.U("div",{class:"yt-mini-game-card-view-model__avatar"},_.U(_.z1,{data:D},{avatarViewModel:_.Pz}))}}),_.U(_.pI,{command:S,
className:"yt-mini-game-card-view-model__metadata-details"},_.U("h3",{class:"yt-mini-game-card-view-model__title",title:n},n),_.U(_.X,{cond:D,then:function(){return _.U("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.U("span",{class:"yt-mini-game-card-view-model__genre",title:u,style:F},u),_.U("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:F},R))},
else:function(){return _.U(_.X,{cond:z,then:function(){return _.U("span",{class:"yt-mini-game-card-view-model__genre",title:R},R)},
else:function(){return _.U("span",{class:"yt-mini-game-card-view-model__genre",title:R,style:F},R)}})}})),_.U("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.U(_.z1,{data:H},{buttonViewModel:function(v){var g=v.data;
return _.U(_.oY,{data:function(){return Object.assign({},g(),{customFontColor:z()?void 0:g().customFontColor})}})}})))},"ea"),UGf=_.C8(function(K){var d=K.entityRedesignExperiments;
var f=K.colorPalette;var H=K.isDesktopWeb;var D=K.onTap;var S=K.accessibilityText;var n=K.overlayBadgeText;var u=K.iconName;var a=K.unplayableInlinePlaybackIconName;var R=K.actionButton;K=K.imageData;var F=function(){var z;return d==null?void 0:(z=d())==null?void 0:z.changePlayablesLayoutWithCta};
return _.U("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.U(cUk,{imageData:K,colorPalette:f}),_.U(u5J,{onTap:D,imageData:K,accessibilityText:S,overlayBadgeText:n,iconName:u,unplayableInlinePlaybackIconName:a,isDesktopWeb:H}),_.U(_.X,{cond:function(){return(F==null?void 0:F())&&(R==null?void 0:R())},
then:function(){return _.U(rW,{actionButton:R})}}))},"fa"),IXL=_.C8(function(K){var d=K.description;
var f=K.isDesktopWeb;var H=K.title;var D=K.genre;var S=K.onTap;var n=K.actionButton;var u=K.overflowButton;var a=K.avatar;K=K.channelName;var R={};R=_.SC("yt-mini-game-card-view-model--search-result-metadata-wrapper",(R["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=f,R["yt-mini-game-card-view-model--show-unplayable-on-hover"]=f,R["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!f()},R));
var F={};F=_.SC("yt-mini-game-card-view-model__search-result-info-row",(F["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!f()},F));
return _.U("div",{class:R},_.U("div",{class:F},_.U(_.pI,{command:S,className:"yt-mini-game-card-view-model__metadata-details"},_.U("h3",{class:"yt-mini-game-card-view-model__title",title:H},H),_.U("span",{class:"yt-mini-game-card-view-model__genre",title:D},D)),_.U(rW,{actionButton:n,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.U("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.U(_.z1,{data:u},{buttonViewModel:_.oY}))),_.U("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.U("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.U("div",{class:"yt-mini-game-card-view-model__avatar"},_.U(_.z1,{data:a},{avatarViewModel:function(z){var v=z.data;return _.U(_.Pz,{data:function(){return Object.assign({},v(),{avatarImageSize:f()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.U(_.pI,{command:S,
className:"yt-mini-game-card-view-model__description"},_.U("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},K)),_.U(_.pI,{command:S,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.U("div",null)))),_.U(_.X,{cond:f,then:function(){return _.U(_.pI,{command:S,className:"yt-mini-game-card-view-model__description"},d)}}))},"ga");_.sP(RU6,"mini-game-card-view-model",{props:{data:_.rs,className:_.rs,useFullWidth:_.rs,isDesktopWeb:_.rs,addSearchResultTopMargin:_.rs}});_.sP(i$N,"dismissed-mini-game-card-view-model",{props:{data:_.rs,useSquareAspectRatio:_.rs}});var q9=function(){var K=_.q.apply(this,arguments)||this;K.isSearch=!1;K.isRichGrid=!1;return K};
_.O(q9,_.q);_.V=q9.prototype;_.V.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.V.dismissibleItemOnYtServiceRequestSent=function(K,d){d.actions&&this.dismissibleItemProcessActions(K,d.actions)};
_.V.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.V.dataChanged=function(){this.dismissibleItemReset()};
_.V.dismissibleItemProcessActions=function(K,d){for(var f=0;f<d.length;f++){var H=d[f];_.P(H,_.Ia)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.P(H,_.Ia)),K.stopPropagation())}};
_.V.dismissibleItemHandleReplaceEnclosingAction=function(K){this.dismissedRenderer=K.item;this.isDismissed=!0};
_.V.experimentalPropertiesChanged=function(){_.M("kevlar_mini_game_card_c3po_to_wiz")||this.ytIdomTemplatingBehavior.debounceRender()};
_.V.renderIdom=function(){if(!_.M("kevlar_mini_game_card_c3po_to_wiz")&&this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var K=!!this.useSquareAspectRatio;qd(i$N)({data:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:K===void 0?!1:K})}else qd(RU6)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0})};
_.x$.Object.defineProperties(q9.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){if(!_.M("kevlar_mini_game_card_c3po_to_wiz"))return!1;var K;return!!this.data&&!((K=this.dismissedRenderer)==null?0:K.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){if(!_.M("kevlar_mini_game_card_c3po_to_wiz"))return!1;var K;return!((K=this.dismissedRenderer)==null||!K.notificationMultiActionRenderer)}}});
q9.prototype.experimentalPropertiesChanged=q9.prototype.experimentalPropertiesChanged;q9.prototype.dataChanged=q9.prototype.dataChanged;q9.prototype.dismissibleItemOnRequestSent=q9.prototype.dismissibleItemOnRequestSent;q9.prototype.dismissibleItemOnYtServiceRequestSent=q9.prototype.dismissibleItemOnYtServiceRequestSent;_.x([_.l(_.M("kevlar_mini_game_card_c3po_to_wiz")?{}:yXB),_.B("design:type",Object)],q9.prototype,"ytIdomTemplatingBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],q9.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"isSearch",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],q9.prototype,"isDismissed",void 0);_.x([_.A(),_.B("design:type",Object)],q9.prototype,"dismissedRenderer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"isRichGrid",void 0);
_.x([_.W("data.layout"),_.B("design:type",Object),_.B("design:paramtypes",[])],q9.prototype,"useSquareAspectRatio",null);_.x([_.W("data","dismissedRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],q9.prototype,"showCard",null);_.x([_.W("data","dismissedRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],q9.prototype,"showDismissed",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],q9.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.x([_.VV("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],q9.prototype,"dismissibleItemOnRequestSent",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q9.prototype,"dataChanged",null);_.x([_.SP("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q9.prototype,"experimentalPropertiesChanged",null);q9=_.x([_.N7({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],q9);
_.C(q9,"ytd-mini-game-card-view-model",function(){if(Sg8!==void 0)return Sg8;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Sg8=K},{mode:_.p8("kevlar_poly_si_batch_j081")?1:2});var zUH;var XXH;var Q4=function(){return _.L3.apply(this,arguments)||this};
_.O(Q4,_.L3);Q4.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Q4.prototype.getContinuationUrl=function(K){var d={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(d.itct=this.data.clickTrackingParams);return _.LQ(K,d)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Q4.prototype,"data",void 0);Q4=_.x([_.N7({is:"yt-reload-continuation",noInjection:!0})],Q4);var vyB;var Mj4;var jf=function(){var K=_.q.apply(this,arguments)||this;K.notificationData={};return K};
_.O(jf,_.q);_.V=jf.prototype;_.V.isMenuExpanded=function(K){return K&&K.length<=1?"undefined":"false"};
_.V.dataChanged_=function(){this.selected=void 0;var K=this.computeSelectedIndex_(this.data);K>=0&&(this.selected=K);K=this.data&&this.data.length>1;_.pU(this.hostElement,"has-items",K);_.E(this.hostElement).querySelector("#label").tabIndex=K?0:-1};
_.V.onDropdownOpen=function(){var K=_.te();if(this.parentTrackingParams&&this.data){var d=_.RG(this.parentTrackingParams);this.data.forEach(function(f){K&&d&&f.trackingParams&&(f=_.RG(f.trackingParams),_.lB(K,d,f),_.Ay(K,[f]))})}else this.parentTrackingParams||_.h3(new _.X4("No parent tracking params passed in for yt-dropdown-menu."))};
_.V.hasNotification=function(K){var d;if(K.targetId&&((d=this.notificationData)==null?0:d.targetId)){var f;return K.targetId===((f=this.notificationData)==null?void 0:f.targetId)}};
_.V.computeSelectedIndex_=function(K){if(K)for(var d=0,f=K.length;d<f;d++)if(K[d].selected)return d;return-1};
_.V.computeLabel_=function(K){return this.data&&K!=void 0?this.data[K].title:""};
_.V.computeShowIcon_=function(K,d){return!d&&!!K};
_.V.computeVerticalOffset_=function(K){return K?36:0};
_.V.computeEndpoint_=function(K){return K.endpoint||K.navigationEndpoint};
_.V.onLabelClick_=function(K){this.data&&this.data.length<=1?K.stopPropagation():this.menuExpanded="true"};
_.V.onIronActivate_=function(K){K=K.detail.item;var d=_.E(this.hostElement).querySelector("#repeat").itemForElement(K);if(d&&d.trackingParams){var f=_.te(),H=_.RG(d.trackingParams);f&&_.rN(f,H)}if(d&&d.serviceEndpoint)_.M("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(d.serviceEndpoint):_.dN(this.hostElement,[d.serviceEndpoint]),_.Zp(this.hostElement,"yt-playlist-reloading");else a:{if((d=K.querySelector("yt-supported-renderers"))&&(d=
d.rendererElement)&&d.is=="yt-reload-continuation"){d.trigger();break a}(K=K.querySelector("yt-reload-continuation"))&&K.trigger()}};
_.V.onTap_=function(K){K.preventDefault()};
_.V.onItemTap_=function(K){this.ytEndpointBehavior.onEndpointTap_(K)};
_.V.onLinkFocus_=function(K){try{var d=K.target}catch(H){}if(d){var f=d.querySelector("tp-yt-paper-item");f&&_.mx(this,"focus",function(){f.focus()})}};
_.V.onMenuClose_=function(){this.menuExpanded="false"};
_.V.isLabelIconActive_=function(K){return K==="true"};
_.V.computeHasSubtitle_=function(K){return!!K};
_.V.computeHrefForItem_=function(K){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(K))};
_.V.updateSelectedFromBinding=function(K){this.selected=K.detail.value};
_.x$.Object.defineProperties(jf.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
jf.prototype.onMenuClose_=jf.prototype.onMenuClose_;jf.prototype.onTap_=jf.prototype.onTap_;jf.prototype.onIronActivate_=jf.prototype.onIronActivate_;jf.prototype.onDropdownOpen=jf.prototype.onDropdownOpen;jf.prototype.dataChanged_=jf.prototype.dataChanged_;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],jf.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.SY.YtEndpointBehavior),_.B("design:type",Object)],jf.prototype,"ytEndpointBehavior",void 0);
_.x([_.A(),_.B("design:type",Array)],jf.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],jf.prototype,"parentTrackingParams",void 0);_.x([_.A(),_.B("design:type",Object)],jf.prototype,"selected",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],jf.prototype,"useLabel",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],jf.prototype,"useComputedAriaLabel",void 0);_.x([_.A(),_.B("design:type",String)],jf.prototype,"icon",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],jf.prototype,"iconLabel",void 0);_.x([_.A(),_.B("design:type",String)],jf.prototype,"ariaLabel",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],jf.prototype,"disabled",void 0);_.x([_.A({computed:"isMenuExpanded(data)"}),_.B("design:type",String)],jf.prototype,"menuExpanded",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],jf.prototype,"closeOnActivate",void 0);
_.x([_.A({reflectToAttribute:!0,value:_.M("web_modern_buttons")}),_.B("design:type",Boolean)],jf.prototype,"modernButtons",void 0);_.x([_.A(),_.B("design:type",Object)],jf.prototype,"notificationData",void 0);_.x([_.W("ariaLabel, selected"),_.A(),_.B("design:type",String),_.B("design:paramtypes",[])],jf.prototype,"computedAriaLabel",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jf.prototype,"dataChanged_",null);
_.x([_.VV("paper-dropdown-open"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],jf.prototype,"onDropdownOpen",null);_.x([_.VV("iron-activate"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],jf.prototype,"onIronActivate_",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],jf.prototype,"onTap_",null);
_.x([_.VV("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],jf.prototype,"onMenuClose_",null);jf=_.x([_.N7({is:"yt-dropdown-menu",disableElementRegistration:!0})],jf);
_.C(jf,"yt-dropdown-menu",function(){if(Mj4===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;vyB===void 0&&(vyB=document.createElement("template"));var H=vyB;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Mj4=K}K=Mj4;return K},{mode:2});var CW=function(){var K=_.q.apply(this,arguments)||this;K.hasNotification=!1;return K};
_.O(CW,_.q);CW.prototype.computeId=function(K){return K};
CW.prototype.computeHorizontalAlign=function(K){return K?"right":"left"};
CW.prototype.computeAccessibilityLabel=function(K){var d,f;return((d=K.accessibility)==null?void 0:(f=d.accessibilityData)==null?void 0:f.label)||null};
CW.prototype.notificationDataChanged=function(){var K;this.hasNotification=!!this.notificationData&&!((K=this.data)==null?0:K.icon)};
CW.prototype.notificationDataChanged=CW.prototype.notificationDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.E9.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],CW.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],CW.prototype,"data",void 0);_.x([_.A({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",String)],CW.prototype,"id",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],CW.prototype,"isRightAligned",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],CW.prototype,"disabled",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],CW.prototype,"closeOnActivate",void 0);_.x([_.A(),_.B("design:type",Object)],CW.prototype,"notificationData",void 0);_.x([_.A(),_.B("design:type",Object)],CW.prototype,"hasNotification",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],CW.prototype,"useComputedAriaLabel",void 0);_.x([_.SP("notificationData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CW.prototype,"notificationDataChanged",null);CW=_.x([_.N7({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],CW);
_.C(CW,"yt-sort-filter-sub-menu-renderer",function(){if(XXH===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;zUH===void 0&&(zUH=document.createElement("template"));var H=zUH;f.call(d,H.content.cloneNode(!0),K.content.firstChild);XXH=K}K=XXH;return K},{mode:2});_.Zx(bP5);
var P59=_.C8(function(K){var d=K.children;var f=K.className;var H=K.style;var D=K.role;var S=K.ariaSelected;var n=K.ariaLabel;var u=K.ariaHidden;var a=K.ariaLabelledby;var R=K.ariaDescribedby;var F=K.command;var z=K.elementsCommand;var v=K.forceNewState;var g=K.tabIdentifier;var N=K.target;var h=K.tabIndex;var m=K.stopPropagation;K=_.zh(function(){var T=_.hJ({innertubeCommand:F==null?void 0:F(),elementsCommand:z==null?void 0:z(),forceNewState:v==null?void 0:v(),stopPropagation:(m==null?void 0:m())!==
!1});T||(T={});T["aria-hidden$"]=u==null?void 0:u();var r;T.tabindex$=(r=h==null?void 0:h())!=null?r:T.tabindex$;var J;T["force-new-state$"]=(J=v==null?void 0:v())!=null?J:T["force-new-state$"];var L;T.role$=(L=D==null?void 0:D())!=null?L:T.role$;var fB;T["aria-hidden$"]=(fB=u==null?void 0:u())!=null?fB:T["aria-hidden$"];var w;T.target$=(w=N==null?void 0:N())!=null?w:T.target$;return T},void 0,"SU0Mnc");
return _.U(_.pI,{aTagConfig:K,className:f,style:H,ariaLabel:n,ariaLabelledby:a,ariaDescribedby:R,ariaSelected:S,tabIdentifier:g},d)},"ha");var gyL=_.ih(mcz);_.Zx(mcz);_.sP(gyL,"place-data-view-model",{props:{data:_.rs}});var O$s=new _.xn("INLINE_PLAYBACK_HOOK_TOKEN");var Ne8=function(K){this.setActiveSlideIndex=K;this.jobIds=[];this.isSlideshowPlaying=!1},oyH=function(K,d){K.isSlideshowPlaying||(K.isSlideshowPlaying=!0,Ygv(K),tjt(K,d,0))},Ygv=function(K){_.pZ(_.oc,function(){K.setActiveSlideIndex(0)},1)},tjt=function(K,d,f){K.jobIds.push(_.pZ(_.oc,function(){var H=f<d-1?f+1:0;
K.setActiveSlideIndex(H);tjt(K,d,H)},1800))};var $GL=new _.xn("IMAGE_ON_LOAD_HANDLER_TOKEN");var Ey8=_.C8(function(K){return _.U("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.U(_.X,{cond:function(){var d;return(d=K.data())==null?void 0:d.thumbnail},
then:function(d){return _.U(_.jV,{data:d,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ia");_.hUs=_.C8(function(K){var d=K.data;var f=K.lockupExperiments;K={};return _.U("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.U("div",{class:_.SC("ytThumbnailOverlayButtonViewModelButton",(K.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var H;return f&&((H=f())==null?void 0:H.useLegacySizedIconButton)},K))},_.U(_.z1,{data:function(){return d().overlayButton}},{buttonViewModel:function(H){return _.U(_.oY,{data:H.data,
buttonOverrides:function(){var D;return f&&((D=f())==null?0:D.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ja");
_.hUs.idomCompat=!0;var b$f=_.C8(function(K){return _.U("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.cp(function(d){d.preventDefault();return!1})},_.U(_.z1,{data:function(){return K.data().buttons}},{toggleButtonViewModel:function(d){return _.U("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.U(_.MT,{data:d.data}))}}))},"ka");
b$f.idomCompat=!0;var mG4=_.C8(function(K){var d=function(){var f;return((f=_.P(K.data().rendererContext,_.uq))==null?void 0:f.label)||""};
return _.U("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.U(_.X,{cond:function(){return K.data().image},
then:function(){return _.U("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.U(_.jV,{data:function(){return K.data().image},
alt:d}))}}),_.U(_.X,{cond:function(){return K.data().text},
then:function(){return _.U("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return K.data().text})}}))},"la");_.xd=_.C8(function(K){var d=[],f=function(){var v,g;return NqX((v=K.width)==null?void 0:v.call(K),(g=K.height)==null?void 0:g.call(K))},H=_.eq().resolve(_.Zd($GL)),D=_.Co(function(){d.push("elRef.value set");
var v;(v=K.playbackRef)==null||v.call(K,{thumbnailElRef:D,thumbnail:K.data().image,thumbnailOverlays:K.data().overlays,thumbnailSize:f()})});
_.tR(function(){d.push("onInit");_.$F(function(){d.push("onCleanup")})});
var S=_.th(WCn),n=function(){var v,g;return(g=(v=K.aspectRatio)==null?void 0:v.call(K))!=null?g:0},u=function(){return(K.data().image?_.irp(K.data().image):n())<=1&&n()===0},a=function(){return u()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},R=function(){D.value||_.h3(new _.X4("Thumbnail elRef.value is null",d.join("\n")));
H&&D.value&&H(D.value)},F=function(){var v,g;
return((v=K.hovered)==null?void 0:v.call(K))&&f()!=="large"&&((g=K.data().overlays)==null?void 0:g.some(function(N){return _.P(N,qKs)}))},z={};
return _.U("yt-thumbnail-view-model",{class:_.SC("yt-thumbnail-view-model",K.className,function(){return TfX(n())},function(){var v,g;
a:{var N=f(),h=(v=K.disableRounding)==null?void 0:v.call(K);v=(g=K.isClip)==null?void 0:g.call(K);if(!h&&!v)switch(N){case "large":g="yt-thumbnail-view-model--large";break a;case "small":g="yt-thumbnail-view-model--small";break a;default:g="yt-thumbnail-view-model--medium";break a}g=void 0}return g},(z["yt-thumbnail-view-model--cinematic"]=u,z)),
style:_.Im({"background-color":function(){var v,g=u()?(v=K.data().backgroundColor)==null?void 0:v.lightTheme:void 0;return g?bs(g,"1"):void 0}}),
el:D},_.U(_.X,{cond:u,then:function(){return _.U("div",{class:"yt-thumbnail-view-model__blurred-image"},_.U(_.jV,{data:function(){return K.data().image},
alt:"",contentMode:a,targetWidth:K.width,onload:R}))}}),_.U("div",{class:"yt-thumbnail-view-model__image"},_.U(_.jV,{data:function(){return K.data().image},
alt:"",contentMode:a,targetWidth:K.width,onload:R}),null),_.U(_.z1,{data:function(){return F()?void 0:K.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:qB6,thumbnailOverlayBadgeViewModel:function(v){return _.U(Qpt,{data:v.data,thumbnailSize:f,isClip:K.isClip})},
thumbnailBottomOverlayViewModel:GNH,thumbnailOverlayFullViewModel:mG4,thumbnailOverlayButtonViewModel:function(v){return _.U(_.hUs,{data:v.data,lockupExperiments:K.lockupExperiments})}}),_.U(_.z1,{data:function(){var v;
return((v=K.hovered)==null?0:v.call(K))?K.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(v){return _.U(M9,{data:v.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:b$f}),_.U(_.z1,{data:function(){var v;return((v=K.hovered)==null?0:v.call(K))&&S()?K.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Ey8}),_.U(_.X,{cond:K.isClip,then:function(){return _.U("div",{class:"yt-pinking"},_.U("svg",{class:"yt-pinking__pinking-left"},_.U("defs",null,_.U("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.U("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.U("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.U("svg",{class:"yt-pinking__pinking-right"},_.U("defs",null,_.U("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.U("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.U("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ma");
_.xd.idomCompat={callbacks:{playbackRef:!0}};var lX2=_.C8(function(K){var d=_.y(_.cC(-1,void 0,"IOLZ0b")),f=d.next().value,H=d.next().value;_.tR(function(){var D=new Ne8(H);oyH(D,K.data().thumbnails.length);_.$F(function(){if(D.isSlideshowPlaying){D.isSlideshowPlaying=!1;for(var S=D.jobIds,n=0,u=S.length;n<u;n++)_.oc.cancelJob(S[n]);D.jobIds.length=0}})});
return _.U("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.U(_.z1,{data:function(){return K.data().thumbnails}},{thumbnailViewModel:function(D,S){return _.U("div",{class:function(){var n=!K.data().primaryThumbnail,u=S(),a=f(),R=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
n&&u===0&&R.push("yt-collection-thumbnail-slideshow--first-slide");u<=a&&R.push("yt-collection-thumbnail-slideshow--show-slide");return R.join(" ")}},_.U(_.xd,{data:D.data,
disableRounding:K.disableRounding}))}}))},"na");
lX2.idomCompat=!0;var rZX=new _.xn("DWELL_DETECTOR_REGISTRY_TOKEN");var Gmv=_.C8(function(K){var d=qT5(K.triggeringElement),f=function(){return!!K.data().primaryThumbnail};
return _.U("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.U(W7t,{stackEnabled:f,thumbnailSize:function(){var H,D;return NqX((H=K.width)==null?void 0:H.call(K),(D=K.height)==null?void 0:D.call(K))},
doubleStack:K.doubleStack,stackColor:function(){return K.data().stackColor}},_.U("div",null,_.U(_.z1,{data:function(){return K.data().primaryThumbnail}},{thumbnailViewModel:function(H){var D={};
return _.U(_.xd,{data:H.data,width:K.width,height:K.height,aspectRatio:K.aspectRatio,disableRounding:K.disableRounding,className:_.SC((D["yt-collection-thumbnail-view-model--has-stacks"]=f,D)),hovered:K.hovered,playbackRef:K.playbackRef})}}),_.U(_.X,{cond:function(){var H;
return d()&&((H=K.data().thumbnails)==null?void 0:H.length)},
then:function(){return _.U("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.U(lX2,{data:K.data,disableRounding:function(){return!f()}}))}}))))},"oa");
Gmv.idomCompat={callbacks:{playbackRef:!0}};
var W7t=_.C8(function(K){var d=K.children;var f=K.stackEnabled;var H=K.thumbnailSize;var D=K.doubleStack;var S=K.stackColor;var n,u=(n=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:n();return _.U(_.X,{cond:f,then:function(){return _.U(uAJ,{data:function(){var a,R;return{experimentEnabled:!0,thumbnailSize:H(),doubleStack:D==null?void 0:D(),color:u?S==null?void 0:(a=S())==null?void 0:a.darkTheme:S==null?void 0:(R=S())==null?void 0:R.lightTheme,enableResponsiveMode:!1}}},d)},
else:function(){return d}})},"pa");var AU8=new _.xn("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Bz;_.LW={calledOnce:!0,state:"visible"};Bz={calledOnce:!0,state:"hidden"};_.JH=_.C8(function(K){var d=K.data;var f=K.customCommandResolver;var H=K.className;var D=K.delayedClassName;K=K.animationEntityKey;var S=_.Co(),n=_.QV(K,""),u=_.yF(YdY,n),a=function(){var w,yO;return(yO=(w=u())==null?void 0:w.value)!=null?yO:!1},R=function(){_.q7(_.nt("booleanEntity",n(),{key:n(),
value:!0}));T=void 0};
K=_.y(_.am(a));var F=K.next().value,z=K.next().value;K=_.y(_.am(a));var v=K.next().value,g=K.next().value;K=_.y(_.am(function(){var w;return a()?(w=d().styleTransitionConfig)==null?void 0:w.destinationStyle:void 0}));
var N=K.next().value,h=K.next().value,m=function(){var w=Object.assign({},d(),N()&&{style:N()}),yO,FX,NJ=w.label,$z=(yO=w.interaction)==null?void 0:(FX=yO.accessibility)==null?void 0:FX.label;yO=w.iconImage?w.label&&w.label.content?w.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:NJ,accessibilityLabel:$z,style:xcS(w.style),type:LCY(w.style),state:"active",size:CCG(w.size),iconPosition:yO,disabled:!1,aTagConfig:j5J(w,f)}},T;
_.wU(S,{visibilityCallback:function(w){var yO,FX=(yO=d().interaction)==null?void 0:yO.onFirstVisible;w&&FX&&_.me(FX)},
showOption:_.LW});var r=function(){return Rm(m(),!!d().iconImage)};
H=_.SC(function(){return"ytwAdButtonViewModelHost"},function(){return d().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var w=!!d().delayedAppearanceConfig,yO=F();
return w?yO?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var w=!!d().delayedAppearanceConfig,yO=v();
return w?yO?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!d().delayedAppearanceConfig||F()?D==null?void 0:D():""},H!=null?H:"");
var J=function(){var w,yO=(w=d().delayedAppearanceConfig)==null?void 0:w.delayedInvisibleSeconds;yO&&(T=_.uX(_.oc,function(){z(!0);L()},yO*1E3))},L=function(){var w,yO=(w=d().delayedAppearanceConfig)==null?void 0:w.delayedVisibleSeconds;
yO&&(T=_.uX(_.oc,function(){g(!0);fB()},yO*1E3))},fB=function(){var w,yO=(w=d().styleTransitionConfig)==null?void 0:w.styleTransitionSeconds,FX,NJ=(FX=d().styleTransitionConfig)==null?void 0:FX.destinationStyle;
yO&&NJ?T=_.uX(_.oc,function(){h(NJ);R()},yO*1E3):R()};
_.tR(function(){var w;((w=d().delayedAppearanceConfig)==null?0:w.transitionDurationSeconds)&&S.value.style.setProperty("transition-duration",d().delayedAppearanceConfig.transitionDurationSeconds+"s");J()});
_.$F(function(){T&&_.oc.cancelJob(T)});
return _.U("ad-button-view-model",{class:H,el:S},_.U(_.X,{cond:m,then:function(){return _.U(xB,{data:m,icon:function(){return _.U(_.X,{cond:function(){return d().iconImage},
then:function(w){return _.U(_.jV,{data:w,alt:"",targetWidth:r,targetHeight:r,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"qa");var Tek=_.C8(function(K){var d=K.data;K=_.Co();_.wU(K,{visibilityCallback:function(H){var D,S=(D=d().interaction)==null?void 0:D.onFirstVisible;H&&S&&_.me(S)},
showOption:_.LW});var f={};return _.U("ad-button-group-view-model",{class:_.SC("ytwAdButtonGroupViewModelHost",(f.ytwAdButtonGroupViewModelHostCompactWidth=function(){return d().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},f)),
el:K},_.U("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.U(_.z1,{data:function(){return d().secondaryAdButton}},{adButtonViewModel:function(H){return _.U(_.JH,{data:H.data})}})),_.U("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.U(_.z1,{data:function(){return d().primaryAdButton}},{adButtonViewModel:function(H){return _.U(_.JH,{data:H.data})}})))},"ra");var rU9=_.C8(function(K){var d=function(){var f;return((f=K.data())==null?void 0:f.answers)||[]};
return _.U("yt-survey-icons",{class:"ytSurveyIconsHost"},_.U("div",{class:"ytSurveyIconsHeader"},_.U("div",{class:"ytSurveyIconsTitle"},function(){var f;return(f=K.data())==null?void 0:f.text}),_.U("div",null,_.U(xB,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var f;(f=K.onDismiss)==null||f.call(K)}}},
iconName:"DISMISSAL"}))),_.U("div",null,_.U("div",{class:"ytSurveyIconsAnswers"},_.U(_.v_,{each:function(){return d()},
keyBy:"INDEX"},function(f,H){return _.U("div",null,_.U(xB,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var D;(D=K.onSelect)==null||D.call(K,f(),H)}}},
icon:function(){return _.U(_.U5,{icon:function(){var D,S;return(D=f())==null?void 0:(S=D.icon)==null?void 0:S.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.U("div",{class:"ytSurveyIconsAnswersText"},_.U("div",null,function(){return d().length?d()[0].text:""}),_.U("div",null,function(){return d().length?d()[d().length-1].text:""}))))},"sa");var qgs=_.C8(function(K){var d=_.y(_.cC(!1,void 0,"s8HkOb")),f=d.next().value,H=d.next().value,D=_.yF(O$J,function(){var u;return(u=K.data().keys)==null?void 0:u.surveyEntityKey}),S=_.yF(Nez,function(){var u;
return(u=K.data().keys)==null?void 0:u.surveyStateEntityKey});
_.j7("ytd-slimline-survey-show-action",function(){H(!1)});
var n=function(){var u,a;var R=(u=S())==null?void 0:(a=u.questionStack)==null?void 0:a[0];if(R!==void 0){var F,z;return(F=D())==null?void 0:(z=F.questions)==null?void 0:z[R]}};
d={};return _.U("yt-slimline-survey-view-model",{class:_.SC("ytSlimlineSurveyViewModelHost",(d.ytSlimlineSurveyViewModelCollapsed=function(){return f()},d))},_.U("div",{class:"ytSlimlineSurveyViewModelContainer"},_.U(_.X,{cond:function(){var u;
return((u=n())==null?void 0:u.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.U(rU9,{data:function(){return n()},
onSelect:function(u,a){var R,F;return _.c(function(z){H(!0);if(F=(R=K.data())==null?void 0:R.onSelectRating)_.me(F),_.q7(iDN(a));_.iQ(z)})},
onDismiss:function(){H(!0)}})}})))},"ta");var Qes=_.C8(function(K){return _.U("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.U(_.z1,{data:function(){var d;return(d=K.data())==null?void 0:d.attachments}},{flexibleActionsViewModel:function(d){return _.U("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.U(Ye6,{data:d.data,
layout:function(){var f;return((f=K.lockupStyle())==null?void 0:f.arrangement)===1?0:1},
justifyContentOverride:function(){var f;return((f=K.lockupStyle())==null?void 0:f.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(d){return _.U("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.U(qgs,{data:d.data}))},
expandableMetadataViewModel:function(d){d=d.data;var f;return _.U("div",{class:"ytLockupAttachmentsViewModelAttachment"},(f=_.eq().resolve(_.Zd(AU8)))==null?void 0:f({data:d}))},
adButtonGroupViewModel:function(d){return _.U("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.U(Tek,{data:d.data}))}}))},"ua");var ZPO=_.di("rich_grid_min_item_width",310),kaN=_.di("rich_grid_max_item_width",500);var icz=_.C8(function(K){var d=K.data;return _.U("br-nz-badge-shape",{class:_.SC(function(){return VgJ(d().brNzRatingBadgeType)}),
role:function(){return d().accessibilityText?"img":void 0},
"aria-label":function(){return d().accessibilityText}},function(){var f;
return(f=d())==null?void 0:f.text})},"va");_.Zx(cKG);var je9,C52;je9=_.C8(function(K){var d=function(){var f=K.data(),H,D;return f?niB(f,!((H=K.workaroundShortsIsThumbnailBadge)==null||!H.call(K)),(D=K.modern)==null?void 0:D.call(K)):void 0};
return _.U("yt-badge-view-model",{class:_.SC("yt-badge-view-model-wiz",K.class)},_.U(_.gF,null,_.U(_.Mk,{when:function(){var f;return!((f=d())==null||!f.brNzRatingBadgeType)}},function(){return _.U(icz,{data:function(){return d()}})}),_.U(_.Mk,{when:function(){return!!d()&&!d().brNzRatingBadgeType}},function(){return _.U(_.qT,{data:function(){return d()}})})))},"wa");
C52=_.M("web_enable_sink_yt_badge_view_model")?je9:cKG;_.s$=_.M("web_enable_sink_yt_badge_view_model")?je9:_.ih(cKG);je9.idomCompat=!0;var a$J,uSB;a$J=16/9;uSB=2/3;_.kd=_.C8(function(K){var d=K.data;var f=K.className;var H=K.imageSizeConfig;var D=K.notifyOnLoaded;K=_.Co();var S=function(){return d().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},n=function(){var g;
return _.lX((g=d())==null?void 0:g.rendererContext)},u={};
u=(u["yt-content-preview-image-view-model-wiz"]=!0,u["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return S()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},u["yt-content-preview-image-view-model-wiz--tappable"]=function(){return n()},u);
var a=function(){var g,N;return(N=(g=_.P(d().rendererContext,_.uq))==null?void 0:g.label)!=null?N:""},R=function(){return U6X(d())},F=function(){var g=I$Y(S(),d().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",H==null?void 0:H(),RzY(R()),d().layoutWidth,d().layoutHeight),N=Object.assign({},g);
g.width&&(N.width=Math.round(g.width));g.height&&(N.height=Math.round(g.height));g.maxWidth&&(N.maxWidth=Math.round(g.maxWidth));g.maxHeight&&(N.maxHeight=Math.round(g.maxHeight));return N},z=_.zh(function(){return F().height},void 0,"QOtei"),v=_.zh(function(){return F().width},void 0,"rKpuNc");
_.W9(K,function(){var g;return(g=d())==null?void 0:g.rendererContext});
return _.U("yt-content-preview-image-view-model",{el:K,role:function(){return n()?"link":void 0},
tabindex:function(){return n()?0:void 0},
class:_.SC(f,u,function(){var g=S();var N=H==null?void 0:H();g=g==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||g==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||g==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||g==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(N==null?void 0:N.size)!=null&&N.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(N==null?void 0:N.size)!=null&&N.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return g}),
style:function(){var g=F(),N=[];g.width&&N.push("width: "+g.width+"px");g.height&&N.push("height: "+g.height+"px");g.maxWidth&&N.push("max-width: "+g.maxWidth+"px");g.maxHeight&&N.push("max-height: "+g.maxHeight+"px");g.fullWidth&&N.push("width: 100%");return N.join(";")}},_.U(_.X,{cond:R,
then:function(g){return _.U(_.jV,{data:g,alt:a,"data-disabled$":function(){return!a()},
notifyOnLoaded:D,targetWidth:v,targetHeight:z,preserveWidth:function(){return!!v()},
preserveHeight:function(){return!!z()}})}}),_.U(_.z1,{data:function(){var g;
return(g=d())==null?void 0:g.overlays}},{thumbnailHoverOverlayViewModel:M9,
thumbnailOverlayButtonViewModel:_.hUs}))},"xa");
_.kd.idomCompat=!0;var L76=_.C8(function(K){var d=K.data;var f=K.className;var H=K.useSmallLayout;var D=K.useMediumText;K=_.Co();var S={};D=(S["yt-attribution-view-model-wiz"]=!0,S["yt-attribution-view-model-wiz--medium-text"]=D,S);_.W9(K,function(){var n;return(n=d())==null?void 0:n.rendererContext});
return _.U("yt-attribution-view-model",{el:K,class:_.SC(f,D)},_.U(_.X,{cond:function(){return _.lX(d().rendererContext)},
then:function(){return _.U("button",{class:"yt-attribution-view-model-wiz--tappable"},_.U(xGv,{data:d,useSmallLayout:H}))},
else:function(){return _.U(xGv,{data:d,useSmallLayout:H})}}))},"ya"),xGv=_.C8(function(K){var d=K.data;
var f=K.useSmallLayout;var H=function(){return{size:(f==null?0:f())?16:24}};
return _.U(_.dF,null,_.U(_.z1,{data:function(){return d().contentPreviewImage}},{contentPreviewImageViewModel:function(D){return _.U(_.kd,{data:D.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:H})}}),_.U(_.z1,{data:function(){return d().badge}},{badgeViewModel:function(D){return _.U(_.s$,{data:D.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.U(_.X,{cond:function(){return d().text},
then:function(){return _.U(_.ji,{text:function(){return d().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.U(_.X,{cond:function(){return d().suffix},
then:function(){return _.U(_.ji,{text:function(){return d().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"za");
L76.idomCompat=!0;var giB=_.IY({avatarStackViewModel:_.O$,badgeViewModel:C52});_.Zx(YqO);var BeN,JUB,seL,kmv,wXB,Z$6;BeN=_.C8(function(K){var d=K.delimiter;var f=K.max;var H=K.index;var D=K.isStandalone;return _.U(_.X,{cond:function(){return f()-1>H()},
then:function(){var S={};return _.U("span",{class:_.SC("yt-content-metadata-view-model-wiz__delimiter",(S["yt-content-metadata-view-model-wiz__delimiter--standalone"]=D,S)),"aria-hidden":!0},d)}})},"Aa");
JUB=_.C8(function(K){var d=K.metadataPart;var f=K.maxLines;return _.U(_.ji,{text:function(){return d().text},
linkInheritColor:!0,className:function(){return tgX(f())},
userInput:!0})},"Ba");
seL=_.C8(function(K){var d=K.metadataPart;var f=K.maxLines;return _.U(_.X,{cond:function(){return d().tooltip},
then:function(H){return _.U("span",{title:H,role:"tooltip"},_.U(JUB,{metadataPart:d,maxLines:f}))},
else:function(){return _.U(JUB,{metadataPart:d,maxLines:f})}})},"Ca");
kmv=_.C8(function(K){var d=K.metadataPart;var f=K.isOverlay;var H=K.useMediumText;var D=K.hideAvatar;var S=function(){return d().maxLines!==void 0?d().maxLines:1};
return _.U(_.dF,null,_.U(_.z1,{data:function(){return d().avatarStack}},{avatarStackViewModel:function(n){return _.U(_.O$,{data:n.data,
isOverlay:f,useMediumText:H,hideAvatar:D})},
badgeViewModel:_.s$}),_.U(_.X,{cond:function(){return d().text},
then:function(){return _.U(seL,{metadataPart:d,maxLines:S})}}))},"Da");
wXB=_.C8(function(K){var d=K.metadataRow;var f=K.isInline;var H=K.delimiter;var D=K.isOverlay;var S=K.useMediumText;var n=K.extensions;var u=function(){var R;return zzN(n==null?void 0:(R=n())==null?void 0:R.lockupMetadata,d())},a=function(){return d().metadataParts||[]};
K={};return _.U("div",{class:_.SC("yt-content-metadata-view-model-wiz__metadata-row",(K["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=f,K["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var R;return Xf5(n==null?void 0:(R=n())==null?void 0:R.lockupMetadata,d())},K["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var R;
return!!(n==null?0:(R=n())==null?0:R.lockupMetadata)&&d().badges&&!d().metadataParts},K))},_.U(_.z1,{data:function(){return d().badges}},{badgeViewModel:function(R){return _.U("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.U(_.s$,{data:R.data}))}}),_.U(_.v_,{each:a},function(R,F){return _.U(_.dF,null,_.U(kmv,{metadataPart:R,
isOverlay:D,useMediumText:S,hideAvatar:u}),_.U(BeN,{delimiter:H,max:function(){return a().length},
index:F,isStandalone:!1}))}),_.U(_.X,{cond:function(){return d().isSpacerRow&&!f()},
then:function(){return _.U("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ea");
Z$6=_.C8(function(K){var d=_.jP(K,{layout:0,isOverlay:!1});K=d.className;var f=d.data,H=d.layout,D=d.isOverlay,S=d.useMediumText,n=d.extensions;d=_.Co();var u=function(){return H()===0};
_.W9(d,function(){return f().rendererContext});
var a=function(){return f().metadataRows||[]},R={};
return _.U("yt-content-metadata-view-model",{class:_.SC(K,"yt-content-metadata-view-model-wiz",(R["yt-content-metadata-view-model-wiz--inline"]=u,R["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.lX(f().rendererContext)},R["yt-content-metadata-view-model-wiz--medium-text"]=S,R)),
el:d},_.U(_.v_,{each:a},function(F,z){return _.U(_.dF,null,_.U(wXB,{metadataRow:F,isInline:u,delimiter:function(){return f().delimiter},
isOverlay:D,useMediumText:S,extensions:n}),_.U(_.X,{cond:function(){return u()&&!F.isSpacerRow},
then:function(){return _.U(BeN,{delimiter:function(){return f().delimiter},
max:function(){return a().length},
index:z,isStandalone:!0})}}))}))},"Fa");
_.eUt=_.M("web_enable_sink_yt_content_metadata_view_model")?Z$6:_.ih(YqO);Z$6.idomCompat=!0;var pX2=_.C8(function(K){var d={};return _.U("yt-lockup-metadata-view-model",{class:_.SC("yt-lockup-metadata-view-model-wiz",function(){a:{var f=K.lockupStyle();if(f==null?0:f.isOverlay)f="yt-lockup-metadata-view-model-wiz--overlay";else switch(f==null?void 0:f.arrangement){case 1:f="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:f="yt-lockup-metadata-view-model-wiz--vertical"}}return f},function(){a:{var f=K.lockupStyle();
if(f==null?0:f.isTiny)f="yt-lockup-metadata-view-model-wiz--tiny";else switch(f==null?void 0:f.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":f="yt-lockup-metadata-view-model-wiz--compact";break a;default:f="yt-lockup-metadata-view-model-wiz--standard"}}return f},(d["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var f;
return(f=K.lockupStyle())==null?void 0:f.isOverlay},d["yt-lockup-metadata-view-model-wiz--card"]=function(){var f;
return(f=K.lockupStyle())==null?void 0:f.isCard},d["yt-lockup-metadata-view-model-wiz--centered"]=function(){var f;
return(f=K.lockupStyle())==null?void 0:f.isCentered},d["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var f;
return(f=K.lockupStyle())==null?void 0:f.typographyBump},d["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var f;
return(f=K.lockupStyle())==null?void 0:f.useLegacyTypography},d["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var f;
return(f=K.lockupStyle())==null?void 0:f.useRichGridLegacyTypography},d))},_.U(_.z1,{data:function(){return K.data().image}},{avatarStackViewModel:function(f){return _.U("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.U(_.O$,{data:f.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(f){return _.U("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.U(_.Pz,{data:f.data}))},
decoratedAvatarViewModel:function(f){return _.U("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.U(_.gW,{data:f.data}))}}),_.U("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.U("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var f;return(f=K.data().title)==null?void 0:f.content}},_.U(_.X,{cond:function(){return K.data().title},
then:function(f){return _.U(_.pI,{command:K.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:K.lockupAccessibilityLabel},_.U(_.ji,{text:f}))}})),_.U("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.U(_.z1,{data:function(){return K.data().metadata}},{contentMetadataViewModel:function(f){return _.U(_.eUt,{data:f.data,
layout:1,useMediumText:function(){var H,D;return((H=K.lockupStyle())==null?void 0:H.typographyBump)||((D=K.lockupStyle())==null?void 0:D.useRichGridLegacyTypography)},
extensions:function(){var H,D;return{lockupMetadata:{byline:{hideAvatar:((H=K.lockupStyle())==null?void 0:H.arrangement)===0,addPadding:((D=K.lockupStyle())==null?void 0:D.arrangement)===1}}}}})}})),_.U(_.z1,{data:function(){return K.data().attribution}},{attributionViewModel:function(f){return _.U("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.U(L76,{data:f.data,
useSmallLayout:!0}))}})),_.U("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.U(_.z1,{data:function(){return K.data().menuButton}},{buttonViewModel:function(f){return _.U(_.oY,{data:f.data,
buttonOverrides:function(){var H;return((H=K.lockupStyle())==null?0:H.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ga");
pX2.idomCompat=!0;var KCL=_.C8(function(K){var d=_.Co();_.Nk(function(){requestAnimationFrame(function(){_.BA(d.value)})});
var f={},H={},D={};return _.U("notification-multi-action-renderer",{class:_.SC("ytNotificationMultiActionRendererHost",(f.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var S;return(S=K.useLegacyShelfStyle)==null?void 0:S.call(K)},f)),
el:d},_.U("span",{"aria-live":"polite",class:_.SC("ytNotificationMultiActionRendererTextContainer",(H.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var S;return(S=K.useLegacyShelfStyle)==null?void 0:S.call(K)},H))},_.U(_.ji,{text:function(){return K.data().responseText}})),_.U("div",{class:_.SC("ytNotificationMultiActionRendererButtonContainer",(D.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var S;
return(S=K.useLegacyShelfStyle)==null?void 0:S.call(K)},D))},_.U(_.z1,{data:function(){var S;
return(S=K.data().buttons)==null?void 0:S.map(function(n){if(n=n.buttonRenderer){var u,a=Object,R=a.assign,F=(u=n.icon)==null?void 0:u.iconType;u=(u=n.command||n.serviceEndpoint||n.navigationEndpoint)?{innertubeCommand:u}:void 0;n={buttonViewModel:R.call(a,{},{iconName:F,onTap:u,trackingParams:n.trackingParams,titleFormatted:n.text?_.Nd(n.text):void 0},oio(n))}}else n=void 0;return n}).filter(function(n){return!!n})}},{buttonViewModel:function(S,n){return _.U("div",null,_.U(_.oY,{data:S.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var u;return((u=K.useModernStyles)==null?0:u.call(K))?{type:n()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ha");var dcJ=_.C8(function(K){var d=_.Co();_.Nk(function(){requestAnimationFrame(function(){_.BA(d.value)})});
return _.U("notification-text-renderer",{el:d,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.U(_.ji,{text:function(){return K.data().successResponseText}}))},"Ia");_.fo6=_.C8(function(K){var d=_.yF(PrN,function(){var H;return $6X((H=K.contentId)==null?void 0:H.call(K))}),f=function(){var H;
return _.P((H=d())==null?void 0:H.command,_.Ia)};
return _.U(_.X,{cond:function(){var H;if(!(H=f())){var D;H=_.P((D=d())==null?void 0:D.command,xjv)}return H},
then:function(){return _.U(_.X,{cond:f,then:function(){var H={};return _.U("div",{class:_.SC("ytDismissibleItemReplacedContent",function(){var D;return Eiu((D=K.aspectRatio)==null?void 0:D.call(K))})},_.U("div",{class:_.SC((H.ytDismissibleItemAspectRatioContainer=function(){var D;
return((D=K.aspectRatio)==null?void 0:D.call(K))!==void 0},H))},_.U(_.z1,{data:function(){var D;
return(D=f())==null?void 0:D.item}},{notificationMultiActionRenderer:function(D){return _.U(KCL,{data:D.data,
useModernStyles:K.useModernStyle,useLegacyShelfStyle:K.useLegacyShelfStyle})},
notificationTextRenderer:dcJ})))}})},
else:K.children})},"Ja");_.HPk=_.C8(function(K){var d=K.data;var f=K.customCommandResolver;K=_.x7();var H=function(){var S;return((S=d().interaction)==null?0:S.onTap)?function(n){var u;Q5z(n,(u=d().interaction)==null?void 0:u.onTap,f)}:void 0},D=function(){var S,n=d(),u=H(),a=(S=_.P(d().rendererContext,_.uq))==null?void 0:S.label;
a:switch(n.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":S=1;break a;default:S=0}return{size:m6Y(n.size),type:S,onTap:u,accessibilityText:a}};
_.wU(K,{visibilityCallback:function(S){var n,u=(n=d().interaction)==null?void 0:n.onFirstVisible;S&&u&&_.me(u)},
showOption:_.LW});return _.U("ad-avatar-view-model",{class:function(){var S;return((S=d().interaction)==null?0:S.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:K},_.U(_.X,{cond:function(){return d().image},
then:function(S){return _.U(r7H,{data:D,image:S})}}))},"Ka");_.wW=_.C8(function(K){K=_.jP(K,{hasDot:!1});var d=Object.assign({},K),f=K.data,H=K.hasDot;K=K.customCommandResolver;var D=(delete d.data,delete d.hasDot,delete d.customCommandResolver,d);d=function(){return f().style};
d!==void 0&&d!==null||_.rF(Error("Ch"));d=_.Co();_.T1(d,function(){return f().interaction},K);
return _.U("ad-badge-view-model",{class:_.SC(function(){var S;return((S=f().interaction)==null?0:S.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var S=D.adRenderingContextType();
f();return S==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:d},_.U(_.qT,{data:function(){var S;f();return{type:2,text:(S=f().label)==null?void 0:S.content,adsIncludeDot:H(),isOverlay:f().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"La");var DcL;_.Zu=_.C8(function(K){var d=K.data;var f=K.customCommandResolver;var H=K.adRenderingContextType;K=_.Co();_.T1(K,function(){return d().interaction},f);
_.wU(K,{visibilityCallback:function(D){var S,n=(S=d().interaction)==null?void 0:S.onFirstVisible;D&&n&&_.me(n)},
showOption:_.LW});return _.U("ad-details-line-view-model",{class:function(){var D;return((D=d().interaction)==null?0:D.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:K},_.U(_.X,{cond:function(){return d().style},
then:function(D){return _.U(_.v_,{each:function(){var S;return((S=d())==null?void 0:S.attributes)||[]},
keyBy:"INDEX"},function(S){return _.U(DcL,{attribute:S,style:D,adRenderingContextType:function(){return H()}})})}}))},"Ma");
DcL=_.C8(function(K){var d=K.attribute;var f=K.style;var H=K.adRenderingContextType;return _.U(_.X,{cond:function(){return d().text},
then:function(D){return _.U(_.ji,{text:D,className:function(){var S=H();f();return S==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Na");var Va9=_.C8(function(K){var d=K.data;var f=K.typographyBump;var H=function(){return d().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
K={};return _.U(_.dF,null,_.U("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.U(_.ji,{text:function(){return d().headline},
className:_.SC("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(K.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return H==null?void 0:H()},K.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(f==null?void 0:f())&&!(H==null?0:H())},K)),
linkInheritColor:!0}),_.U(_.X,{cond:function(){return d().description},
then:function(D){var S={};return _.U(_.ji,{text:D,className:_.SC("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(S.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return H==null?void 0:H()},S.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(f==null?void 0:f())&&!(H==null?0:H())},S)),
linkInheritColor:!0})}}),_.U(_.X,{cond:function(){return d().secondaryDescription},
then:function(D){var S={};return _.U(_.ji,{text:D,className:_.SC("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(S.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return f==null?void 0:f()},S)),
linkInheritColor:!0})}}),_.U("div",{class:function(){return H()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.U(_.X,{cond:function(){return d().adAvatar},
then:function(){return _.U("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.U(_.z1,{data:function(){return d().adAvatar}},{adAvatarViewModel:_.HPk}))}}),_.U(_.z1,{data:function(){return d().adBadge}},{adBadgeViewModel:function(D){return _.U(_.wW,{data:D.data,
hasDot:function(){return!!d().adDetailsLine},
adRenderingContextType:function(){return d().adRenderingContextType}})}}),_.U(_.z1,{data:function(){return d().adDetailsLine}},{adDetailsLineViewModel:function(D){return _.U(_.Zu,{data:D.data,
adRenderingContextType:function(){return d().adRenderingContextType}})}}))),_.U("div",{class:function(){return H()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.U(_.z1,{data:function(){return d().menu}},{buttonViewModel:function(D){return _.U(_.oY,{data:D.data,
buttonOverrides:function(){a:switch(d().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var S="S";break a;default:S="M"}return{size:S}}})}})))},"Oa"),ST2=_.C8(function(K){var d=K.data;
var f=K.noBottomMargin;var H=K.useVideoLockupTopPadding;var D=K.typographyBump;K={};K=_.SC("ytwFeedAdMetadataViewModelHostMetadata",(K.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return f==null?void 0:f()},K.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return H==null?void 0:H()},K));
var S=function(){return d().adBadge};
S!==void 0&&S!==null||_.rF(Error("Dh"));S={};var n={};return _.U(_.dF,null,_.U(_.X,{cond:function(){return d().adAvatar},
then:function(){return _.U("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.U(_.z1,{data:function(){return d().adAvatar}},{adAvatarViewModel:function(u){return _.U(_.HPk,{data:u.data})}}))}}),_.U("div",{class:K},_.U("div",{class:_.SC("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(S.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return D==null?void 0:D()},S.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(D==
null?void 0:D())&&_.M("web_enable_typography_bump_v2")},S))},_.U(_.ji,{text:function(){return d().headline},
linkInheritColor:!0})),_.U(_.X,{cond:function(){return d().description},
then:function(u){return _.U(_.ji,{text:u,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.U("div",{class:function(){return d().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.M("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.U(_.z1,{data:function(){return d().adBadge}},
{adBadgeViewModel:function(u){return _.U(_.wW,{data:u.data,
hasDot:function(){return!!d().adDetailsLine},
adRenderingContextType:function(){return d().adRenderingContextType}})}}),_.U(_.z1,{data:function(){return d().adDetailsLine}},{adDetailsLineViewModel:function(u){return _.U(_.Zu,{data:u.data,
adRenderingContextType:function(){return d().adRenderingContextType}})}})),_.U(_.X,{cond:function(){return d().secondaryDescription},
then:function(u){return _.U(_.ji,{text:u,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.U("div",{class:_.SC("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(n.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return H==null?void 0:H()},n))},_.U(_.z1,{data:function(){return d().menu}},{buttonViewModel:_.oY})))},"Pa"),yZH=_.C8(function(K){var d=K.data;
var f=K.noBottomMargin;var H=K.listenToTapEvent;var D=K.setTouchEndHandler;var S=K.useVideoLockupTopPadding;var n=K.typographyBump;var u=_.Co();_.T1(u,function(){return d().interaction},void 0,function(){return H==null?void 0:H()});
K=_.y(_.cC(!1,void 0,"qjt0Xc"));var a=K.next().value,R=K.next().value;K=_.cp(function(){(D==null?0:D())&&!a()&&(u.value.click(),R(!0),setTimeout(function(){R(!1)},100));
return!1});
_.wU(u,{visibilityCallback:function(F){var z,v=(z=d().interaction)==null?void 0:z.onFirstVisible;F&&v&&_.me(v)},
showOption:_.LW});return _.U("feed-ad-metadata-view-model",{class:function(){var F;return((F=d().interaction)==null?0:F.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:u,"on:touchend":K},_.U(_.gF,null,_.U(_.Mk,{when:function(){return d().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.U(Va9,{data:d,
typographyBump:n})}),_.U(_.Mk,{when:function(){return d().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.U(ST2,{data:d,
noBottomMargin:f,useVideoLockupTopPadding:S,typographyBump:n})})))},"Qa");var nqB;_.ef=_.C8(function(K){return _.U("yt-lockup-view-model",{class:_.SC(K.className)},_.U(_.fo6,{contentId:function(){return K.data().contentId},
useModernStyle:!0,aspectRatio:function(){var d,f;return((d=K.containerType)==null?void 0:d.call(K))!==3?HcB(K.data().contentType,(f=K.force16By9ThumbnailAspectRatio)==null?void 0:f.call(K)):void 0}},function(){return _.U(nqB,Object.assign({},K))}))},"Ra");
nqB=_.C8(function(K){K=_.jP(K,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var d=K.data,f=K.containerLayoutConfig,H=K.containerType,D=K.sizing,S=K.protectBackground,n=K.typographyBump,u=K.force16By9ThumbnailAspectRatio,a=K.thumbnailFixedWidth,R=K.thumbnailTargetWidth,F=K.lockupExperiments,z=K.elementsPerRow;
K=_.Co();_.W9(K,function(){var bo;return(bo=d())==null?void 0:bo.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var v=_.th(Gap),g=_.eq().resolve(_.Zd(O$s)),N=g?{}:void 0,h=function(){var bo,xz,qJ;return(qJ=(xz=_.P((bo=d())==null?void 0:bo.rendererContext,_.uq))==null?void 0:xz.label)!=null?qJ:void 0},m=function(){var bo=f==null?void 0:f(),xz;
if(bo==null?0:bo.containerType){var qJ=(xz=d())==null?void 0:xz.contentType;xz=F();var Y8=n(),Iz=R(),qs=S();bo=Object.assign({},D6o(K6X(bo),eap(bo.responsiveSize),Y8,qJ,bo.force16By9ThumbnailAspectRatio,Iz,qs,xz),{thumbnailFixedWidth:bo.contentPreviewWidth})}else bo=D6o(H(),D(),n(),(qJ=d())==null?void 0:qJ.contentType,u(),R(),S(),F());return bo};
g&&N&&g({enabled:function(){return v()},
itemPlaybackModel:function(){return d().itemPlayback},
thumbnailElRef:function(){return N.thumbnailElRef},
containerElRef:K,options:function(){var bo,xz=(bo=_.P(d().metadata,lPf))==null?void 0:bo.endorsement;bo=N.thumbnailOverlays||[];xz&&bo.push(xz);var qJ,Y8;return{thumbnail:N.thumbnail,thumbnailOverlays:bo,accessibilityText:h(),thumbnailSize:N.thumbnailSize,enableRounding:m().isCollection,containPlayerWithinThumbnail:m().isCollection,trackingParams:(qJ=_.P(d().rendererContext,_.uz))==null?void 0:(Y8=qJ.loggingDirectives)==null?void 0:Y8.trackingParams}}});
var T=0;g=_.y(_.cC(!1,void 0,"HzAs3"));var r=g.next().value,J=g.next().value;g=_.y(_.cC(!1,void 0,"ujOXud"));var L=g.next().value,fB=g.next().value;g=_.cp(function(){var bo=v()&&d().itemPlayback;L()?(_.oc.cancelJob(T),T=_.oc.addJob(function(){J(!bo)},8,32)):J(!bo);
return!0});
var w=_.cp(function(){T&&(_.oc.cancelJob(T),T=0);J(!1)});
_.$F(function(){T&&(_.oc.cancelJob(T),T=0)});
var yO=bc5(function(){fB(!0)}),FX=yO.touchFeedbackEvents,NJ=yO.touchFeedbackOnPointerUp,$z=yO.touchFeedbackOnPointerDown;
yO=yO.touchFeedbackOnPointerLeave;var hN={};return _.U("div",{el:K,class:_.SC("yt-lockup-view-model-wiz",function(){a:{var bo=m();if(bo.isOverlay)bo="yt-lockup-view-model-wiz--overlay";else switch(bo.arrangement){case 1:bo="yt-lockup-view-model-wiz--horizontal";break a;default:bo="yt-lockup-view-model-wiz--vertical"}}return bo},function(){a:{var bo=m();
if(bo.isOverlay)bo="yt-lockup-view-model-wiz--overlay";else{switch(bo.collectionStackNumber){case 1:bo="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:bo="yt-lockup-view-model-wiz--collection-stack-2";break a}bo=void 0}}return bo},(hN["yt-lockup-view-model-wiz--card"]=function(){return m().isCard},hN["yt-lockup-view-model-wiz--compact"]=function(){return m().isTiny||m().sizing!=="STANDARD"},hN["yt-lockup-view-model-wiz--protect-background"]=S,hN["yt-lockup-view-model-wiz--add-margins"]=
function(){return m().addMarginForFullbleed},hN["yt-lockup-view-model-wiz--centered"]=function(){return m().isCentered},hN["yt-lockup-view-model-wiz--fullbleed"]=function(){return m().fullbleed},hN["yt-lockup-view-model-wiz--single-column-grid"]=function(){return z()===1&&H()===2},hN["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var bo;
return(bo=F())==null?void 0:bo.useRichGridLegacyMargin},hN)),
"on:mousedown":$z,"on:mouseleave":w,"on:mouseup":NJ,"on:mouseover":g,"on:touchstart":$z,"on:touchend":NJ,"on:pointerleave":yO},_.U(_.pI,{command:function(){var bo;return _.mR((bo=d())==null?void 0:bo.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return a()&&m().arrangement===1?"width: "+a():""}},_.U(_.z1,{data:function(){var bo;
return(bo=d())==null?void 0:bo.contentImage}},{thumbnailViewModel:function(bo){return _.U(_.xd,{data:bo.data,
aspectRatio:function(){return m().aspectRatio},
disableRounding:function(){return m().disableRounding},
width:R,hovered:r,isClip:function(){var xz;return((xz=d())==null?void 0:xz.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:loO(N),lockupExperiments:function(){return F()}})},
collectionThumbnailViewModel:function(bo){return _.U(Gmv,{data:bo.data,aspectRatio:function(){return m().aspectRatio},
disableRounding:function(){return m().disableRounding},
width:R,doubleStack:function(){return m().collectionStackNumber===2},
hovered:r,playbackRef:loO(N)})},
decoratedAvatarViewModel:_.gW})),_.U("div",{class:"yt-lockup-view-model-wiz__metadata"},_.U(_.z1,{data:function(){var bo;return(bo=d())==null?void 0:bo.metadata}},{lockupMetadataViewModel:function(bo){return _.U(pX2,{data:bo.data,
lockupStyle:m,lockupCommand:function(){var xz;return _.mR((xz=d())==null?void 0:xz.rendererContext)},
lockupAccessibilityLabel:function(){return h()}})},
feedAdMetadataViewModel:function(bo){return _.U(yZH,{data:bo.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:n})}}),_.U(_.z1,{data:function(){var bo;
return(bo=d())==null?void 0:bo.attachmentSlot}},{lockupAttachmentsViewModel:function(bo){return _.U(Qes,{data:bo.data,
lockupStyle:m})}})),_.U(_.zz,{model:function(){a:{switch(m().collectionStackNumber){case 1:var bo=8;
break a;case 2:bo=12;break a}bo=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:bo}},
pointerDownEvent:FX.pointerDownEvent,pointerUpEvent:FX.pointerUpEvent,pointerLeaveEvent:FX.pointerLeaveEvent}))},"Sa");
_.ef.idomCompat=!0;_.sP(_.ef,"yt-lockup-view-model",{props:{data:_.rs,containerLayoutConfig:_.rs,containerType:_.rs,sizing:_.rs,protectBackground:_.rs,typographyBump:_.rs,thumbnailFixedWidth:_.rs,thumbnailTargetWidth:_.rs,force16By9ThumbnailAspectRatio:_.rs,className:_.rs,lockupExperiments:_.rs,elementsPerRow:_.rs}});_.Zx(rKz);var iPN=_.ih(rKz,{callbacks:{onExpandClick:!0}});var L6G=_.IY({buttonViewModel:_.oY}),cZN=_.ih(CEG);_.Zx(CEG);_.Zx(QKo);_.Zx(jKn);_.sP(cZN,"yt-video-attribute-view-model",{props:{data:_.rs,className:_.rs}});var pW=function(){var K=_.q.apply(this,arguments)||this;K.useHighlightStyling=_.M("web_enable_deeper_metadata_highlight_styling");K.isSearch=!1;K.JSC$13042_lastScrollContainerWidth=NaN;K.pageLoadingFromNavigation=!1;K.currentIndex=0;K.supportComponentResize=!1;return K};
_.O(pW,_.q);_.V=pW.prototype;
_.V.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}}}}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.Dm(this,this.onPageChange))};
_.V.detached=function(){document.removeEventListener("yt-page-type-changed",_.Dm(this,this.onPageChange))};
_.V.getItemsPath=function(){return"data.cards"};
_.V.onIronResize=function(){this.updateListStyles()};
_.V.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var K;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(K=this.data)==null?void 0:K.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.M("problem_walkthrough_sd")&&!!this.centerItems};
_.V.computeCardListStyle=function(K){return K||null};
_.V.computeEmpty=function(K){return!this.get("cards.length",K)};
_.V.computeThumbnailStyle=function(K){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",K)||null};
_.V.computeHasSubtitle=function(K){return!!this.get("header.richListHeaderRenderer.subtitle",K)};
_.V.computeInitialCountNumber=function(K){return this.hasSquareMiniApp&&K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.V.computeUseFloorScrolling=function(K){return K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.V.computeHasGameCard=function(K){return(K=this.get("cards",K))?K.some(function(d){return d.gameCardRenderer}):!1};
_.V.computeCenterHeaderTitle=function(K){return!(K==null||!K.centerHeaderTitle)};
_.V.computeHasPortraitMiniApp=function(K){return(K=K==null?void 0:K.cards)?K.some(function(d){return d.miniGameCardViewModel&&d.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.V.computeHasSquareMiniApp=function(K){return(K=K==null?void 0:K.cards)?K.some(function(d){return d.miniGameCardViewModel&&d.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.V.computeHasSkinnyWidthPortraitMiniApp=function(K){return(K=K==null?void 0:K.cards)?K.some(function(d){return d.miniGameCardViewModel&&d.miniGameCardViewModel.width===135}):!1};
_.V.computeCenterItems=function(K){return!!K};
_.V.computeHasInfoPanel=function(K){var d;return K==null?void 0:(d=K.cards)==null?void 0:d.some(function(f){return f.infoPanelContentRenderer})};
_.V.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.V.getItemByIndex=function(K){var d=this.items.children;return d&&d.length>K?d[K]:void 0};
_.V.onPageChange=function(){var K=this;this.pageLoadingFromNavigation=!0;_.oc.addJob(function(){K.pageLoadingFromNavigation=!1;_.p1(K.hostElement,"yt-terminate-video-preview-action")},8)};
_.V.updateListStyles=function(){if(_.M("problem_walkthrough_sd")&&this.JSC$13042_scrollContainer!==void 0){var K=this.JSC$13042_scrollContainer.clientWidth;K!==this.JSC$13042_lastScrollContainerWidth&&(this.JSC$13042_lastScrollContainerWidth=K,_.f8(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(K*.8,415)+"px"}),_.Zp(this.hostElement,"iron-resize"))}};
_.x$.Object.defineProperties(pW.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.M("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return!!((K=this.data)==null?0:(d=K.cards)==null?0:(f=d[0])==null?0:f.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return!!((K=this.data)==null?0:(d=K.cards)==null?0:(f=d[0])==null?0:f.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return _.M("enable_desktop_amsterdam_info_panels")&&!!((K=this.data)==null?0:(d=K.cards)==null?0:(f=d[0])==null?0:f.infoPanelContentRenderer)}}});
pW.prototype.dataChanged=pW.prototype.dataChanged;pW.prototype.onIronResize=pW.prototype.onIronResize;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.wa.YtdHorizontalListBehavior),_.B("design:type",Object)],pW.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.l(_.EL),_.B("design:type",Object)],pW.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],pW.prototype,"data",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],pW.prototype,"useCustomColors",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],pW.prototype,"useHighlightStyling",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.B("design:type",Object)],pW.prototype,"cardListStyle",void 0);_.x([_.A({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.B("design:type",Boolean)],pW.prototype,"empty",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.B("design:type",Boolean)],pW.prototype,"hasSubtitle",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.B("design:type",Boolean)],pW.prototype,"thumbnailStyle",void 0);_.x([_.A({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.B("design:type",Boolean)],pW.prototype,"hasGameCard",void 0);_.x([_.A({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.B("design:type",Boolean)],pW.prototype,"centerHeaderTitle",void 0);
_.x([_.A({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.B("design:type",Boolean)],pW.prototype,"hasPortraitMiniApp",void 0);_.x([_.A({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.B("design:type",Boolean)],pW.prototype,"hasSquareMiniApp",void 0);_.x([_.A({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.B("design:type",Boolean)],pW.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.x([_.A({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.B("design:type",Boolean)],pW.prototype,"hasInfoPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],pW.prototype,"isSearch",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],pW.prototype,"inlineStructuredDescription",void 0);_.x([_.n8("#scroll-container"),_.B("design:type",HTMLDivElement)],pW.prototype,"JSC$13042_scrollContainer",void 0);
_.x([_.A({computed:"computeInitialCountNumber(data.style.type)"}),_.B("design:type",Number)],pW.prototype,"initialCount",void 0);_.x([_.A({computed:"computeUseFloorScrolling(data.style.type)"}),_.B("design:type",Boolean)],pW.prototype,"useFloorScrolling",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.B("design:type",Boolean)],pW.prototype,"centerItems",void 0);_.x([_.A(),_.B("design:type",Object)],pW.prototype,"pageLoadingFromNavigation",void 0);
_.x([_.A(),_.B("design:type",Object)],pW.prototype,"currentIndex",void 0);_.x([_.A(),_.B("design:type",Number)],pW.prototype,"scrollCount",void 0);_.x([_.A(),_.B("design:type",Object)],pW.prototype,"supportComponentResize",void 0);_.x([_.n8("#items"),_.B("design:type",HTMLDivElement)],pW.prototype,"items",void 0);_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pW.prototype,"onIronResize",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pW.prototype,"dataChanged",null);_.x([_.A({reflectToAttribute:!0}),_.W("inlineStructuredDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pW.prototype,"hideNavigationButton",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pW.prototype,"modernChapters",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pW.prototype,"hasVideoAttributeViewModels",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pW.prototype,"modernInfoPanels",null);pW=_.x([_.Q({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],pW);
_.C(pW,"ytd-horizontal-card-list-renderer",function(){if(DGN!==void 0)return DGN;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return DGN=K},{mode:_.p8("kevlar_poly_si_batch_j072")?1:2});var up8=_.C8(function(K){var d=K.data;var f={};return _.U("video-summary-content-view-model",{class:_.SC("video-summary-content-view-model-wiz",K.className,(f["video-summary-content-view-model-wiz--is-search"]=K.isSearch,f))},_.U(_.v_,{each:function(){var H=[],D=d().paragraphs;if(D==null||!D.length)return[];for(var S=0;S<D.length;S++){var n=_.P(D[S],qvf),u=void 0;S>0&&(u=_.P(D[S-1],qvf));u&&!!u.marker===!!n.marker?H[H.length-1].paragraphs.push(n):H.push({isList:!!n.marker,paragraphs:[n]})}return H},
keyBy:"INDEX"},function(H){return _.U(_.X,{cond:function(){return H().isList},
then:function(){return _.U("ul",{class:"video-summary-content-view-model-wiz__list"},_.U(_.v_,{each:function(){return H().paragraphs},
keyBy:"INDEX"},function(D){return _.U("li",{class:"video-summary-content-view-model-wiz__list-item"},_.U(_.ji,{text:function(){return D().text}}))}))},
else:function(){return _.U(_.v_,{each:function(){return H().paragraphs},
keyBy:"INDEX"},function(D){return _.U("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.U(_.ji,{text:function(){return D().text}}))})}})}),_.U(_.X,{cond:function(){return!!_.P(d().likeButtonViewModel,_.gP)&&!!_.P(d().dislikeButtonViewModel,_.Ok)},
then:function(){return _.U("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.U("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.U(_.YY,{data:function(){return _.P(d().likeButtonViewModel,_.gP)},
disableIconAnimation:!0})),_.U(_.NZ,{data:function(){return _.P(d().dislikeButtonViewModel,_.Ok)}}))}}))},"Ta");
up8.idomCompat=!0;_.sP(up8,"video-summary-content-view-model",{props:{data:_.rs,isSearch:_.rs,className:_.rs}});var Ke=function(){var K=_.q.apply(this,arguments)||this;var d,f;K.isExpanded=(f=(d=K.data)==null?void 0:d.isExpanded)!=null?f:!1;K.disableExpand=!1;K.showProminentLabel=!1;K.showRightSideLabel=!0;K.toggleExpandableContent=function(H){K.disableExpand||(H.stopPropagation(),_.QC(_.qn(H),K.hostElement,["info","expanded-subtitle"])||(K.isExpanded=!K.isExpanded,K.ytRendererBehavior.logExplicitClick(K.data),K.JSC$13053_cardList&&!_.M("expandable_metadata_a11y_fix_ks")&&_.jW(K,function(){_.LA(K.hostElement)})))};
K.useSquareThumbnail=!1;K.startX=0;return K};
_.O(Ke,_.q);_.V=Ke.prototype;_.V.computeUseSquareThumbnail=function(){var K;return(K=this.data)==null?void 0:K.useSquareThumbnail};
_.V.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"}}}}};
_.V.dataChanged=function(){if(this.data){var K,d;this.isExpanded=(d=(K=this.data)==null?void 0:K.isExpanded)!=null?d:!1;var f,H,D,S;if(K=this.isDarkTheme()?(f=this.data)==null?void 0:(H=f.colorData)==null?void 0:H.darkColorPalette:(D=this.data)==null?void 0:(S=D.colorData)==null?void 0:S.lightColorPalette){var n,u;if((n=this.data)==null?0:(u=n.colorData)==null?0:u.vibrantColorPalette)K.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.gH(this.hostElement,K)}}};
_.V.isExpandedChanged=function(){this.isExpanded&&this.JSC$13053_cardList&&_.Zp(this.JSC$13053_cardList,"iron-resize")};
_.V.computeIsExpanded=function(K){return!!K.isExpanded};
_.V.computeShowProminentLabel=function(K,d){var f;return!!(K==null?0:(f=K.header)==null?0:f.showLeadingCollapsedLabel)&&!d};
_.V.computeShowRightSideLabel=function(K,d){var f;return!(K==null?0:(f=K.header)==null?0:f.showLeadingCollapsedLabel)&&!d};
_.V.captureContentClick=function(K){if(!this.disableExpand)if(_.M("expandable_metadata_fix_killswitch")){var d=K.target;_.rN9(d,"ytd-macro-markers-list-item-renderer")||K.stopPropagation();(d==null?void 0:d.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.QC(_.qn(K),this.hostElement,["items"])||_.qa(_.qn(K),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.V.timestampClick=function(K){K.stopPropagation();var d,f;(K=(d=this.data)==null?void 0:(f=d.header)==null?void 0:f.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(K)};
_.V.onDown=function(K){K.stopPropagation();this.startX=K.detail?K.detail.x:0};
_.V.onUp=function(K){this.skipKeyInteraction(K)&&K.stopPropagation()};
_.V.skipKeyInteraction=function(K){var d=K.target;if((d==null?void 0:d.id)==="scroll-container"||(d==null?void 0:d.id)==="items"||K.detail&&K.detail.x!==this.startX)return!0;K=_.qn(K);K=_.y(K);for(d=K.next();!d.done;d=K.next()){d=d.value;if(d===this.hostElement)break;if(d.hasAttribute&&d.hasAttribute("skip-key-interaction"))return!0}return!1};
_.V.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.x$.Object.defineProperties(Ke.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var K;return!!_.P((K=this.data)==null?void 0:K.expandedContent,rD4)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var K;return!!_.P((K=this.data)==null?void 0:K.expandedContent,_.WlJ)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var K,d;return!((K=this.data)==null||!K.useCustomColors)&&!((d=this.data)==null||!d.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var K,d;return!!((K=this.data)==null?0:(d=K.header)==null?0:d.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var K,d;return!!((K=this.data)==null?0:(d=K.header)==null?0:d.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var K,d;return!!((K=this.data)==null?0:(d=K.header)==null?0:d.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Ke.prototype.onUp=Ke.prototype.onUp;Ke.prototype.onDown=Ke.prototype.onDown;Ke.prototype.isExpandedChanged=Ke.prototype.isExpandedChanged;Ke.prototype.dataChanged=Ke.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Ke.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ke.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ke.prototype,"isExpanded",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ke.prototype,"disableExpand",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],Ke.prototype,"isSearch",void 0);
_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Ke.prototype,"isWatch",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.B("design:type",Object)],Ke.prototype,"showProminentLabel",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.B("design:type",Object)],Ke.prototype,"showRightSideLabel",void 0);
_.x([_.A({value:!1,reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ke.prototype,"hasVideoSummary",null);_.x([_.A({value:!1,reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ke.prototype,"hasLockupViewModel",null);_.x([_.A({reflectToAttribute:!0}),_.W("data","isWatch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ke.prototype,"useCustomColors",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ke.prototype,"showInfoButton",null);_.x([_.W("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ke.prototype,"showTimestamp",null);_.x([_.W("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ke.prototype,"showExpandedSubtitle",null);
_.x([_.W("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ke.prototype,"showThumbnail",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ke.prototype,"useVppShoppingDestinationStyle",null);_.x([_.A(),_.B("design:type",Object)],Ke.prototype,"toggleExpandableContent",void 0);_.x([_.n8("ytd-horizontal-card-list-renderer"),_.B("design:type",Object)],Ke.prototype,"JSC$13053_cardList",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.B("design:type",Object)],Ke.prototype,"useSquareThumbnail",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ke.prototype,"dataChanged",null);_.x([_.SP("isExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ke.prototype,"isExpandedChanged",null);
_.x([_.VV("down"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ke.prototype,"onDown",null);_.x([_.VV("up"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ke.prototype,"onUp",null);Ke=_.x([_.Q({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Ke);
_.C(Ke,"ytd-expandable-metadata-renderer",function(){if(Iik!==void 0)return Iik;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Iik=K},{mode:1});var aot,Iok=function(){if(aot!==void 0)return aot;var K=document.createElement("template");_.Y(K,'\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      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return aot=K};_.sP(_.O$,"yt-avatar-stack-view-model",{props:{className:_.rs,data:_.rs,overrides:_.rs,isOverlay:_.rs,useMediumText:_.rs,decorations:_.rs,hideAvatar:_.rs}});_.Na("itemSectionRenderer","videoRenderer","ytd-video-renderer");var dC=function(){var K=_.q.apply(this,arguments)||this;K.disableExpand=!1;K.shouldShowChannelInfo=!1;K.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return K};
_.O(dC,_.q);_.V=dC.prototype;_.V.computeUseSearchUi=function(){var K,d;return this.isSearch||((K=this.data)==null?void 0:(d=K.style)==null?void 0:d.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.V.computeUseThreeLineTitle=function(){var K;return((K=this.data)==null?void 0:K.maxTitleLines)===3};
_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.M("polymer_video_renderer_defer_menu")&&!PnL?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"}}}};
_.V.attached=function(){_.pU(this.hostElement,"blue-links",_.M("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.K8(_.E(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var K=this.get("data.buttons.buttonRenderer.serviceEndpoint"),d;K&&((d=_.P(K.commandMetadata,_.vr))==null?0:d.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(K);this.updateInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13058_inlinePreviewHoverListener=Av({mediaRenderer:this,lockupElement:this.JSC$13058_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.V.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13058_inlinePreviewHoverListener)==null||s8(K)};
_.V.onTextWrapperClick=function(K){var d,f,H=this.hideTranslation?(d=this.data)==null?void 0:d.untranslatedNavigationEndpoint:(f=this.data)==null?void 0:f.navigationEndpoint;d=_.QC(_.qn(K),this.hostElement,["expandable-metadata"]);!H||d&&!_.M("expandable_metadata_fix_killswitch")||_.qa(_.qn(K),this.hostElement,["A".toString(),"BUTTON".toString()])||_.Zp(this.hostElement,"yt-navigate",{endpoint:H})};
_.V.computeThumbnailWidth=function(K,d,f,H,D){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:H?D==="MASSIVE"?600:D==="BIG"?500:D==="MEDIUM"?450:420:f?360:d?128:K?210:246};
_.V.computeUseBiggerThumbs=function(K){return K&&_.M("enable_desktop_search_bigger_thumbs")};
_.V.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.V.computeVideoStyle=function(){if(_.M("enable_video_style")){var K,d;return(K=this.data)==null?void 0:(d=K.style)==null?void 0:d.value}};
_.V.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.V.handleHideItemSectionVideosByIdCommand=function(K){var d;K=(d=_.P(K,yDJ))==null?void 0:d.videoId;this.data&&this.data.videoId===K&&(this.isHidden=!0)};
_.V.getMetadataSnippetContainerClass=function(K){return K?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.V.computeTitleText=function(K,d,f){return K?f:d};
_.V.computeDescriptionSnippet=function(K,d,f){return K?f:d};
_.V.computeSnippetText=function(K,d,f){return K?f:d};
_.V.computeNavigationEndpoint=function(K,d){return K?d==null?void 0:d.untranslatedNavigationEndpoint:d==null?void 0:d.navigationEndpoint};
_.V.hideInlineTitleIcon=function(K,d){return K||!d};
_.x$.Object.defineProperties(dC.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 K;return(K=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?K:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return!!(this==null?0:(K=this.data)==null?0:(d=K.channelThumbnailSupportedRenderers)==null?0:(f=d.channelThumbnailWithLinkRenderer)==null?0:f.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var K;return!!_.P((K=this.data)==null?void 0:K.avatar,GHJ)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13058_inlinePreviewHoverListener)==null?0:tH(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.x$.Object.defineProperties(dC,{template:{configurable:!0,enumerable:!0,get:function(){return Iok()}}});
dC.prototype.dataChanged=dC.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],dC.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],dC.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.l(_.AV),_.B("design:type",Object)],dC.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],dC.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],dC.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],dC.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],dC.prototype,"isBackstageVideo",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],dC.prototype,"isPostCompactVideo",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],dC.prototype,"isHistory",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],dC.prototype,"isRichGridVideoPost",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],dC.prototype,"isHidden",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],dC.prototype,"isSearch",void 0);_.x([_.A({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.B("design:type",Boolean)],dC.prototype,"useSearchUi",void 0);_.x([_.A({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.B("design:type",Boolean)],dC.prototype,"useThreeLineTitle",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.B("design:type",Boolean)],dC.prototype,"useBiggerThumbs",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.B("design:type",Object)],dC.prototype,"videoStyle",void 0);_.x([_.A({computed:"computeDisableExpand(videoStyle)"}),_.B("design:type",Object)],dC.prototype,"disableExpand",void 0);
_.x([_.A({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.B("design:type",Object)],dC.prototype,"shouldShowChannelInfo",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.fy("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],dC.prototype,"biggerThumbsStyle",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.B("design:type",String)],dC.prototype,"inlineTitleIcon",void 0);_.x([_.A({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.B("design:type",Object)],dC.prototype,"computedNavigationEndpoint",void 0);_.x([_.A({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(K,d){return _.DR(K.entities,"searchVideoResultEntity",d)}}),
_.B("design:type",Object)],dC.prototype,"searchVideoResultEntity",void 0);_.x([_.n8("ytd-thumbnail"),_.B("design:type",HTMLElement)],dC.prototype,"thumbnail",void 0);_.x([_.n8("#dismissible"),_.B("design:type",HTMLElement)],dC.prototype,"JSC$13058_dismissibleMedia",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dC.prototype,"dataChanged",null);
_.x([_.W("searchVideoResultEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dC.prototype,"hideTranslation",null);_.x([_.W("searchVideoResultEntity"),_.B("design:type",Array),_.B("design:paramtypes",[])],dC.prototype,"hiddenBadgeGroups",null);_.x([_.W("data","useAvatar"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dC.prototype,"shouldShowChannelThumbnail",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dC.prototype,"useAvatar",null);
_.x([_.W("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dC.prototype,"isHovered",null);dC=_.x([_.Q({is:"ytd-video-renderer",disableElementRegistration:!0})],dC);_.C(dC,"ytd-video-renderer",function(){return Iok()},{mode:_.p8("kevlar_poly_si_batch_j047")?1:2});var fe=function(){var K=_.q.apply(this,arguments)||this;K.editDialog=null;K.roundedContainer=!0;K.isLoading=!1;K.isRichGrid=!1;K.isRichGridRepost=!1;K.reduceSidePaddings=_.M("reduce_side_paddings_in_shelf");K.JSC$13065_spinnerEl=null;return K};
_.O(fe,_.q);_.V=fe.prototype;
_.V.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"}}}};
_.V.contentTextChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){var K=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var d=0,f=this.data.actions&&this.data.actions.length;d<f;d++)this.openEditDialog(_.P(this.data.actions[d],hC9));if((d=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(d=this.get("buttonRenderer.hint.hintRenderer.hintId",d))&&d.startsWith("share-post-hint")){var H=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(H){_.xf.getInstance();var D=L5(_.rB(_.iB("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.oc.addLowPriorityJob(function(){_.fd(K.hostElement,D,H)})}}}};
_.V.updatePoll=function(K){K>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.V.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13065_spinnerEl||(this.JSC$13065_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.hostElement).appendChild(this.JSC$13065_spinnerEl));this.JSC$13065_spinnerEl&&(this.JSC$13065_spinnerEl.active=this.isLoading)};
_.V.onYtNavigate=function(K){var d=this.get("updateCommentDialogEndpoint",K.detail.endpoint);d&&(this.openEditDialog(d),K.stopPropagation())};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.onYtCommentPollRevert=function(K,d){d&&this.updatePoll(d.selectedChoiceIndex)};
_.V.onYtServiceRequestSent=function(K,d){var f;d.endpoint&&(_.P(d.endpoint,pEf)||_.P(d.endpoint,eef)&&((f=_.P(d.endpoint,eef))==null||!f.clientActions))&&(this.isLoading=!0);if(d.actions)for(K=0;K<d.actions.length;K++)f=d.actions[K],_.P(f,zI)&&(f=this.get("updateBackstagePollAction.selectedChoiceIndex",f),f==void 0&&(f=-1),this.updatePoll(f))};
_.V.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.V.openEditDialog=function(K){K&&K.dialog&&(this.editDialog=K.dialog,K=this.editDialogEl.firstElementChild)&&(K.focus(),K.openDialog&&K.openDialog())};
_.V.computeIsPostHidden=function(K,d){return!!K||d};
_.V.computeSurfaceType=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.V.computeUsesCompactLockup=function(K){return K==="BACKSTAGE_SURFACE_TYPE_HOME"||K==="BACKSTAGE_SURFACE_TYPE_SEARCH"||K==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||K==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||K==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||K==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.V.computeShowWithoutToolbar=function(K){return!K.actionButtons&&!K.actionMenu};
_.V.computePostAttachment=function(K){if(K.backstageAttachment){if(_.P(K.backstageAttachment,$hH))return"poll";if(_.P(K.backstageAttachment,aT8))return"quiz";if(_.P(K.backstageAttachment,_.$H))return"video";if(_.P(K.backstageAttachment,ITJ))return"uploaded-videos";if(_.P(K.backstageAttachment,VH9))return K.contentText?"image":"image-only";if(_.P(K.backstageAttachment,nS2))return"playlist"}return"none"};
_.V.computePostTabIndex=function(K){return K?0:-1};
_.V.computeButtonTooltipPosition=function(K){return this.computeUsesCompactLockup(K)?"top":"bottom"};
_.V.computeHasText=function(K){return!(K==null||!K.contentText)};
_.V.onTap=function(K){var d,f;if(((d=this.data)==null?0:d.navigationEndpoint)&&((f=this.data)==null?void 0:f.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var H;((H=this.data)==null?0:H.navigationEndpoint)&&!_.qa(_.qn(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.x$.Object.defineProperties(fe.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.voteCount)||_.rB("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.P(this.data.backstageAttachment,$hH))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.P(this.data.backstageAttachment,ITJ))}}});
fe.prototype.onYtServiceRequestCompleted=fe.prototype.onYtServiceRequestCompleted;fe.prototype.onYtServiceRequestSent=fe.prototype.onYtServiceRequestSent;fe.prototype.onYtCommentPollRevert=fe.prototype.onYtCommentPollRevert;fe.prototype.onYtCommentboxDismiss=fe.prototype.onYtCommentboxDismiss;fe.prototype.onYtNavigate=fe.prototype.onYtNavigate;fe.prototype.isLoadingChanged=fe.prototype.isLoadingChanged;fe.prototype.dataChanged=fe.prototype.dataChanged;fe.prototype.contentTextChanged=fe.prototype.contentTextChanged;
_.x([_.l(_.EL),_.B("design:type",Object)],fe.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],fe.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],fe.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],fe.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],fe.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],fe.prototype,"editDialog",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],fe.prototype,"roundedContainer",void 0);_.x([_.A(),_.B("design:type",Object)],fe.prototype,"isLoading",void 0);_.x([_.A({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.B("design:type",String)],fe.prototype,"surface",void 0);
_.x([_.A({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.B("design:type",Boolean)],fe.prototype,"usesCompactLockup",void 0);_.x([_.A({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],fe.prototype,"showWithoutToolbar",void 0);_.x([_.A({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.B("design:type",String)],fe.prototype,"attachment",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],fe.prototype,"isRichGrid",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],fe.prototype,"isRichGridRepost",void 0);_.x([_.A({reflectToAttribute:!0,value:_.M("use_better_post_dismissals")}),_.B("design:type",Boolean)],fe.prototype,"useBetterPostDismissals",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],fe.prototype,"reduceSidePaddings",void 0);
_.x([_.A({computed:"computeHasText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],fe.prototype,"hasText",void 0);_.x([_.n8("#expander"),_.B("design:type",Object)],fe.prototype,"expander",void 0);_.x([_.n8("#action-buttons"),_.B("design:type",Object)],fe.prototype,"actionButtons",void 0);_.x([_.n8("#edit-dialog"),_.B("design:type",HTMLElement)],fe.prototype,"editDialogEl",void 0);
_.x([_.SP("data.contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fe.prototype,"contentTextChanged",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fe.prototype,"dataChanged",null);_.x([_.SP("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fe.prototype,"isLoadingChanged",null);
_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fe.prototype,"onYtNavigate",null);_.x([_.VV("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fe.prototype,"onYtCommentboxDismiss",null);_.x([_.VV("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],fe.prototype,"onYtCommentPollRevert",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],fe.prototype,"onYtServiceRequestSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],fe.prototype,"onYtServiceRequestCompleted",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],fe.prototype,"voteCount",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],fe.prototype,"commentCount",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fe.prototype,"hasPoll",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fe.prototype,"hasUploadedVideo",null);fe=_.x([_.Q({is:"ytd-post-renderer",disableElementRegistration:!0})],fe);
_.C(fe,"ytd-post-renderer",function(){if(GBk!==void 0)return GBk;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return GBk=K},{mode:1});var Uc6;var RaN;var Hs=function(){return _.q.apply(this,arguments)||this};
_.O(Hs,_.q);Hs.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.wa.YtdHorizontalListBehavior),_.B("design:type",Object)],Hs.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Hs.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Hs.prototype,"data",void 0);
_.x([_.A({value:"$.items.children"}),_.B("design:type",String)],Hs.prototype,"itemsPath",void 0);_.x([_.A({value:1}),_.B("design:type",Number)],Hs.prototype,"initialCount",void 0);_.x([_.A(),_.B("design:type",String)],Hs.prototype,"surface",void 0);Hs=_.x([_.Q({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Hs);
_.C(Hs,"ytd-post-multi-image-renderer",function(){if(RaN!==void 0)return RaN;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return RaN=K},{mode:_.p8("kevlar_poly_si_batch_j079")?1:2});var FCs={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},DV=function(){var K=_.q.apply(this,arguments)||this;K.hasInlineCommentSection=!1;K.editDialog=null;K.isLoading=!1;K.shouldHideAuthor=!1;K.shouldShowVideoTime=!1;
K.isInEngagementPanel=!1;K.hideBorder=!1;K.usesFullLockup=!1;K.shouldShowMenuInCompactView=!1;K.JSC$13081_spinnerEl=null;K.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return K};
_.O(DV,_.q);_.V=DV.prototype;_.V.configureRendererStamper=function(){return FCs};
_.V.computeIsPollHeaderEnabled=function(K){return(K==null?void 0:K.pollMetadataIcon)!=null};
_.V.getPublishTimeStampString=function(K,d){d=new Date((Number(d)-60*((new Date).getTimezoneOffset()-(new Date(Number(d)*1E3)).getTimezoneOffset()))*1E3);d=(new Ap(10)).format(d);if(K&&K.runs&&K.runs.length)for(var f=0;f<K.runs.length;f++)K.runs[f].text&&(K.runs[f].text=K.runs[f].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",d));return K};
_.V.created=function(){this.JSC$13081_spinnerEl=null};
_.V.contentTextChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var K;if((K=this.data)==null?0:K.actions){K=_.y(this.data.actions);for(var d=K.next();!d.done;d=K.next())this.openEditDialog(_.P(d.value,hC9))}};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){_.E(this.hostElement).querySelector("#action-buttons").reply()};
_.V.updatePoll=function(K,d){d&&this.set("data.pollMetadataVoteCountText",d);this.hasInlineCommentSection&&(K=K>=0,d=_.E(this.hostElement).querySelector("#action-buttons"),K?d.reply():d.hideReplyDialog())};
_.V.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13081_spinnerEl||(this.JSC$13081_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.hostElement).appendChild(this.JSC$13081_spinnerEl));this.JSC$13081_spinnerEl&&(this.JSC$13081_spinnerEl.active=this.isLoading)};
_.V.onYtNavigate=function(K){var d=this.get("updateCommentDialogEndpoint",K.detail.endpoint);d&&(this.openEditDialog(d),K.stopPropagation())};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.onYtCommentPollRevert=function(K,d){d&&this.updatePoll(d.selectedChoiceIndex,d.totalVotes)};
_.V.onYtServiceRequestSent=function(K,d){K.stopPropagation();K=_.P(d.endpoint,eef);if(_.P(d.endpoint,pEf)||K&&!K.clientActions)this.isLoading=!0;if(d.actions)for(K=0;K<d.actions.length;K++){var f=d.actions[K],H=_.P(f,zI);H&&(f=this.get("updateBackstagePollAction.selectedChoiceIndex",f),f===void 0&&(f=-1),this.updatePoll(f,H.totalVotes))}};
_.V.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.V.openEditDialog=function(K){K&&K.dialog&&(this.editDialog=K.dialog,K=this.editDialogElement.firstElementChild)&&(K.focus(),K.openDialog&&K.openDialog())};
_.V.computeIsBodyHidden=function(K,d){return!!K||d};
_.x$.Object.defineProperties(DV.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var K,d;if((K=this.data)==null?0:(d=K.pollMetadataIcon)==null?0:d.iconType)return _.Hv(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.voteCount)||_.rB("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.P(this.data.backstageAttachment,$hH))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.P(this.data.backstageAttachment,aT8))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.P(this.data.backstageAttachment,ITJ))}}});
DV.prototype.onYtServiceRequestCompleted=DV.prototype.onYtServiceRequestCompleted;DV.prototype.onYtServiceRequestSent=DV.prototype.onYtServiceRequestSent;DV.prototype.onYtCommentPollRevert=DV.prototype.onYtCommentPollRevert;DV.prototype.onYtCommentboxDismiss=DV.prototype.onYtCommentboxDismiss;DV.prototype.onYtNavigate=DV.prototype.onYtNavigate;DV.prototype.isLoadingChanged=DV.prototype.isLoadingChanged;DV.prototype.dataChanged=DV.prototype.dataChanged;DV.prototype.contentTextChanged=DV.prototype.contentTextChanged;
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],DV.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],DV.prototype,"rendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],DV.prototype,"rendererstamperBehavior",void 0);_.x([_.n8("#contentTextExpander"),_.B("design:type",Object)],DV.prototype,"expander",void 0);
_.x([_.n8("#edit-dialog"),_.B("design:type",Element)],DV.prototype,"editDialogElement",void 0);_.x([_.A(),_.B("design:type",Object)],DV.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],DV.prototype,"hasInlineCommentSection",void 0);_.x([_.A(),_.B("design:type",Object)],DV.prototype,"editDialog",void 0);_.x([_.A(),_.B("design:type",Object)],DV.prototype,"isLoading",void 0);
_.x([_.A({computed:"computeIsPollHeaderEnabled(data)"}),_.B("design:type",Boolean)],DV.prototype,"isPollHeaderEnabled",void 0);_.x([_.A(),_.B("design:type",Object)],DV.prototype,"shouldHideAuthor",void 0);_.x([_.A(),_.B("design:type",Object)],DV.prototype,"shouldShowVideoTime",void 0);_.x([_.A(),_.B("design:type",Object)],DV.prototype,"isInEngagementPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],DV.prototype,"hideBorder",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],DV.prototype,"usesFullLockup",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],DV.prototype,"shouldShowMenuInCompactView",void 0);_.x([_.W("isInEngagementPanel"),_.B("design:type",Number),_.B("design:paramtypes",[])],DV.prototype,"postTextMaxLines",null);_.x([_.W("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],DV.prototype,"pollIcon",null);
_.x([_.SP("data.contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DV.prototype,"contentTextChanged",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DV.prototype,"dataChanged",null);_.x([_.SP("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DV.prototype,"isLoadingChanged",null);
_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DV.prototype,"onYtNavigate",null);_.x([_.VV("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DV.prototype,"onYtCommentboxDismiss",null);_.x([_.VV("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],DV.prototype,"onYtCommentPollRevert",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],DV.prototype,"onYtServiceRequestSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DV.prototype,"onYtServiceRequestCompleted",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],DV.prototype,"voteCount",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],DV.prototype,"commentCount",null);_.x([_.W("data.backstageAttachment"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DV.prototype,"hasPoll",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DV.prototype,"hasQuiz",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DV.prototype,"hasUploadedVideo",null);
DV=_.x([_.Q({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],DV);
_.C(DV,"ytd-backstage-post-renderer",function(){if(Uc6!==void 0)return Uc6;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Uc6=K},{mode:1});var za6;var VZ=function(){var K=_.q.apply(this,arguments)||this;K.editDialog=null;K.showExpandButton=!1;K.isRichGrid=!1;K.usesFullLockup=!1;return K};
_.O(VZ,_.q);_.V=VZ.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.V.computeShowExpandButton=function(K){return this.usesCompactLockup||K&&K.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.V.computeUsesCompactLockup=function(K){return!!K.condensedContent};
_.V.computeShowFullContentText=function(K){return!K};
_.V.onYtNavigate=function(K){K=this.get("updateCommentDialogEndpoint",K.detail.endpoint);this.openEditDialog(K)};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.openEditDialog=function(K){K&&K.dialog&&(this.editDialog=K.dialog,K=this.repostEditDialogEl.firstElementChild)&&(K.focus(),K.openDialog&&K.openDialog())};
_.V.onTap=function(K){if(this.data){var d=null;this.usesCompactLockup&&!_.qa(_.qn(K)||[],this.hostElement,["YT-IMG-SHADOW"])?d=this.get("navigationEndpoint",this.data):K.target===this.moreButtonEl&&(d=this.get("navigationEndpoint",K.target.data));d&&_.Zp(this.hostElement,"yt-navigate",{endpoint:d})}};
VZ.prototype.onYtCommentboxDismiss=VZ.prototype.onYtCommentboxDismiss;VZ.prototype.onYtNavigate=VZ.prototype.onYtNavigate;VZ.prototype.dataChanged=VZ.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],VZ.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],VZ.prototype,"editDialog",void 0);_.x([_.A({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],VZ.prototype,"usesCompactLockup",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],VZ.prototype,"showExpandButton",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],VZ.prototype,"isRichGrid",void 0);
_.x([_.A({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.B("design:type",Boolean)],VZ.prototype,"showFullContentText",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],VZ.prototype,"usesFullLockup",void 0);_.x([_.n8("#more"),_.B("design:type",Object)],VZ.prototype,"moreButtonEl",void 0);_.x([_.n8("#repost-content-text"),_.B("design:type",HTMLElement)],VZ.prototype,"repostContentTextEl",void 0);
_.x([_.n8("#repost-edit-dialog"),_.B("design:type",HTMLElement)],VZ.prototype,"repostEditDialogEl",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VZ.prototype,"dataChanged",null);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],VZ.prototype,"onYtNavigate",null);
_.x([_.VV("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VZ.prototype,"onYtCommentboxDismiss",null);VZ=_.x([_.Q({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],VZ);
_.C(VZ,"ytd-shared-post-renderer",function(){if(za6!==void 0)return za6;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return za6=K},{mode:1});var Xj9;var vqJ;var So=function(){return _.q.apply(this,arguments)||this};
_.O(So,_.q);So.prototype.attached=function(){var K=this;this.networkStatusManager||(this.networkStatusManager=new _.jc,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){K.onlineHandler()}))};
So.prototype.detached=function(){var K=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){K.onlineHandler()}),delete this.networkStatusManager)};
So.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],So.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],So.prototype,"data",void 0);So=_.x([_.Q({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],So);
_.C(So,"ytd-reload-page-button-renderer",function(){if(vqJ!==void 0)return vqJ;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
return vqJ=K},{mode:1});var Mas={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"},yZ=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(yZ,_.q);_.V=yZ.prototype;_.V.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.V.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.V.computeHasBodyText=function(K){return!!K.bodyText};
_.V.computeButtons=function(K){var d=[];K.ctaButton&&d.push(K.ctaButton);K.secondaryButton&&d.push(K.secondaryButton);return d};
_.V.computeRendererStyle=function(K){return K.style?K.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():K.icon?"":"no-icon"};
_.V.getIconName=function(K,d){d=d===void 0?!1:d;if(K===void 0)return"";K=this.get("icon.iconType",K);var f;_.M("enable_hlp_client_icon_pick")?f=this.getThemedIcon(K,d):f=K;(d=Mas[f])||(d="yt-icons");return[d,f].join(":")};
_.V.getThemedIcon=function(K,d){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(K)?d?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(K)?d?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":K};
_.V.isThumbnail=function(K){return!!K.thumbnail};
_.V.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],yZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],yZ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],yZ.prototype,"data",void 0);
_.x([_.A({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],yZ.prototype,"rendererStyle",void 0);_.x([_.A({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.B("design:type",String)],yZ.prototype,"iconName",void 0);_.x([_.A({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],yZ.prototype,"thumbnail",void 0);_.x([_.A({computed:"computeButtons(data)"}),_.B("design:type",Array)],yZ.prototype,"buttons",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],yZ.prototype,"isDarkTheme",void 0);_.x([_.A({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],yZ.prototype,"hasBodyText",void 0);yZ=_.x([_.Q({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],yZ);
_.C(yZ,"ytd-background-promo-renderer",function(){if(Xj9!==void 0)return Xj9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Xj9=K},{mode:1});var PC8;var ne=function(){var K=_.q.apply(this,arguments)||this;K.collections=_.M("web_modern_collections_v2");return K};
_.O(ne,_.q);_.x$.Object.defineProperties(ne.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H,D,S;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(K=this.data)==null?void 0:(d=K.thumbnail)==null?void 0:d.sampledThumbnailColor,vibrantColorPalette:(f=this.data)==null?void 0:(H=f.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(D=this.data)==null?void 0:(S=D.thumbnail)==null?void 0:S.darkColorPalette,experimentEnabled:this.collections}}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ne.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ne.prototype,"collections",void 0);_.x([_.W("data","collections"),_.B("design:type",Object),_.B("design:paramtypes",[])],ne.prototype,"collectionStack",null);ne=_.x([_.Q({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],ne);
_.C(ne,"ytd-compact-station-renderer",function(){if(PC8!==void 0)return PC8;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return PC8=K},{mode:1});var gq4;var iY=function(){var K=_.q.apply(this,arguments)||this;K.isRichGrid=!1;return K};
_.O(iY,_.q);iY.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]]"}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],iY.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],iY.prototype,"isRichGrid",void 0);iY=_.x([_.Q({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],iY);
_.C(iY,"ytd-grid-channel-renderer",function(){if(gq4!==void 0)return gq4;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return gq4=K},{mode:1});var OP8;var cs=function(){return _.q.apply(this,arguments)||this};
_.O(cs,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],cs.prototype,"data",void 0);cs=_.x([_.Q({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],cs);
_.C(cs,"ytd-grid-movie-playlist-renderer",function(){if(OP8!==void 0)return OP8;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return OP8=K},{mode:1});var Nf6;var uY=function(){var K=_.q.apply(this,arguments)||this;K.downloadProgress=0;K.transferState="TRANSFER_STATE_UNKNOWN";K.modernButtons=_.M("web_modern_buttons");K.useModernCollectionsV2=_.M("web_modern_collections_v2");return K};
_.O(uY,_.q);uY.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
uY.prototype.configureRendererStamper=function(){return{"data.menu":Sf}};
uY.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
uY.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.M("woffle_playlist_renderer_killswitch")){var K,d=c_u(this.entityInfo,this.transferState,this.downloadProgress,(K=this.data)==null?void 0:K.playlistId,this.isOnline);K=d.viewPlaylistText;var f=d.badges;d=d.thumbnailOverlays;this.isDownloads=!!K||!!f;this.set("data.viewPlaylistText",K);f&&f.length>0&&this.set("data.badges",f);d&&d.length>0&&this.set("data.thumbnailOverlays",
d)}};
_.x$.Object.defineProperties(uY.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 K;return!((K=this.data)==null?0:K.menu)}}});
uY.prototype.transferStateChanged=uY.prototype.transferStateChanged;uY.prototype.dataChanged=uY.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],uY.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],uY.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A({selector:_.YIn,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],uY.prototype,"downloadProgress",void 0);_.x([_.A({selector:_.$o,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],uY.prototype,"transferState",void 0);_.x([_.A({selector:Nd5,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],uY.prototype,"entityInfo",void 0);_.x([_.A({selector:XrX}),_.B("design:type",Boolean)],uY.prototype,"isOnline",void 0);
_.x([_.A(),_.B("design:type",Object)],uY.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],uY.prototype,"downloadRenderData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],uY.prototype,"modernButtons",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],uY.prototype,"isDownloads",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],uY.prototype,"useModernCollectionsV2",void 0);
_.x([_.W("transferState"),_.A({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],uY.prototype,"downloadState",null);_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],uY.prototype,"menuHidden",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uY.prototype,"dataChanged",null);
_.x([_.an("transferState","downloadProgress","isOnline"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uY.prototype,"transferStateChanged",null);uY=_.x([_.Q({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],uY);
_.C(uY,"ytd-grid-playlist-renderer",function(){if(Nf6!==void 0)return Nf6;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Nf6=K},{mode:1});var YTt;var aW=function(){var K=_.q.apply(this,arguments)||this;K.collections=_.M("web_modern_collections_v2");return K};
_.O(aW,_.q);aW.prototype.configureRendererStamper=function(){return{"data.menu":Sf,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.x$.Object.defineProperties(aW.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H,D,S;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(K=this.data)==null?void 0:(d=K.thumbnail)==null?void 0:d.sampledThumbnailColor,vibrantColorPalette:(f=this.data)==null?void 0:(H=f.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(D=this.data)==null?void 0:(S=D.thumbnail)==null?void 0:S.darkColorPalette,experimentEnabled:this.collections}}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],aW.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],aW.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],aW.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],aW.prototype,"collections",void 0);_.x([_.W("data","collections"),_.B("design:type",Object),_.B("design:paramtypes",[])],aW.prototype,"collectionStack",null);aW=_.x([_.Q({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],aW);
_.C(aW,"ytd-grid-radio-renderer",function(){if(YTt!==void 0)return YTt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return YTt=K},{mode:1});var taf;var IW=function(){var K=_.q.apply(this,arguments)||this;K.useModernCollectionsV2=_.M("web_modern_collections_v2");return K};
_.O(IW,_.q);IW.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
IW.prototype.computeNavigationEndpoint=function(K){return Cep(K==null?void 0:K.navigationEndpoint)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],IW.prototype,"ytdLockupBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],IW.prototype,"data",void 0);_.x([_.A({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],IW.prototype,"computedNavigationEndpoint",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],IW.prototype,"useModernCollectionsV2",void 0);IW=_.x([_.Q({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],IW);
_.C(IW,"ytd-grid-show-renderer",function(){if(taf!==void 0)return taf;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return taf=K},{mode:1});var oqL;_.UR=function(K){this.playerClient=K};
_.$c9=function(K,d,f){f=f===void 0?{}:f;return K.playerClient.setOption("ad",d,f)};
_.UR.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.UR.prototype.executeCommand=function(K,d){this.getOptions().includes("executeCommand")?_.$c9(this,"executeCommand",{command:K,layoutId:d}):_.Lt("Calling executeCommand when adModule is not loaded")};var RW=function(){return _.q.apply(this,arguments)||this};
_.O(RW,_.q);RW.prototype.getLayoutId=function(){var K=_.T2("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.layoutId:null};
RW.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var K=_.xP(),d=this.getLayoutId(),f=this.data.clickthroughEndpoint;K&&d&&_.M("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?K.getPlayerPromise().then(function(H){(new _.UR(H)).executeCommand(f,d)}):_.Zp(this.hostElement,"yt-navigate",{endpoint:f})}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],RW.prototype,"data",void 0);RW=_.x([_.Q({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],RW);
_.C(RW,"ytd-shopping-companion-item-renderer",function(){if(oqL!==void 0)return oqL;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return oqL=K},{mode:1});var EqH;var XV=function(){var K=_.q.apply(this,arguments)||this;K.isExpandableContent=!1;return K};
_.O(XV,_.q);_.x$.Object.defineProperties(XV.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((K=this.data)==null?void 0:K.price)||((d=this.data)==null?void 0:(f=d.dealsData)==null?void 0:f.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var K,d;if((K=this.data)!=null&&K.dealsData&&((d=this.data)==null||!d.priceReplacementText)){K=this.data.dealsData;var f,H,D;return((f=K.salesData)==null?void 0:f.originalPrice)||((H=K.priceDropData)==null?void 0:H.referencePrice)||((D=K.promotionData)==null?void 0:D.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var K,d;return(K=this.data)==null?void 0:(d=K.dealsData)==null?void 0:d.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],XV.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],XV.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],XV.prototype,"isExpandableContent",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"showCta",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"ctaText",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"hasPriceTopPosition",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"hasPriceBottomPosition",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"useNewStyle",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"showPriceReplacementText",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"priceValue",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"showDeal",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"showAffiliateDisclaimer",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"useSaleStyle",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"useFromBrandCtaStyle",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"useFromVendorCtaStyle",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XV.prototype,"useShoppingCollectionCtaStyle",null);XV=_.x([_.Q({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],XV);
_.C(XV,"ytd-vertical-product-card-renderer",function(){if(EqH!==void 0)return EqH;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return EqH=K},{mode:1});var has;var vs=function(){return _.q.apply(this,arguments)||this};
_.O(vs,_.q);vs.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],vs.prototype,"ytdLockupBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vs.prototype,"data",void 0);vs=_.x([_.Q({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],vs);
_.C(vs,"ytd-grid-movie-renderer",function(){if(has!==void 0)return has;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return has=K},{mode:1});var bPN;var MK=function(){var K=_.q.apply(this,arguments)||this;K.rounded=!0;K.itemStyle="small-item";return K};
_.O(MK,_.q);MK.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var K,d,f,H,D=(d=_.P((K=this.data)==null?void 0:K.buttonCommand,_.aa))==null?void 0:(f=d.item)==null?void 0:(H=f.notificationTextRenderer)==null?void 0:H.successResponseText;D&&_.BoB(this.hostElement,D)}};
_.x$.Object.defineProperties(MK.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:K.isProductPlaceholder)!==void 0&&((d=this.data)==null?void 0:d.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.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}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],MK.prototype,"rounded",void 0);_.x([_.A(),_.B("design:type",Object)],MK.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],MK.prototype,"itemStyle",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],MK.prototype,"hasPrice",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],MK.prototype,"hasPriceReplacementText",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],MK.prototype,"hasAdditionalFeesText",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],MK.prototype,"hasAffiliateDisclaimer",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],MK.prototype,"isProductPlaceholder",null);
_.x([_.A(),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],MK.prototype,"hideOpenInNewIcon",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],MK.prototype,"ariaLabel",null);MK=_.x([_.Q({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],MK);
_.C(MK,"ytd-merch-shelf-item-renderer",function(){if(bPN!==void 0)return bPN;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return bPN=K},{mode:1});var mc2=_.C8(function(K){var d=_.Co();_.W9(d,function(){return K.data().rendererContext});
return _.U("button-card-view-model",{el:d,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return K.data().title},
role:"button"},_.U(_.zz,{model:{}}),_.U("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.U("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.U(_.X,{cond:function(){return K.data().image},
then:function(f){return _.U(_.jV,{data:f,alt:function(){var H;return(H=K.data().title)!=null?H:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.U("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return K.data().title})))},"Ua");_.M("web_button_view_model_wcw_registration_killswitch")||_.sP(mc2,"button-card-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){K=_.jP(K,{className:void 0});var d=K.data;K=K.className;var f=_.zh(function(){return d().onTapCommand},void 0,"NprDr");
return _.U("ytd-shopping-item-card",{class:_.SC("ytdShoppingItemCardHost",K)},_.U(_.pI,{command:f,className:"ytdShoppingItemCardHostLink"},_.U("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.U(_.z1,{data:function(){return d().thumbnailViewModel}},{thumbnailViewModel:function(H){return _.U(_.xd,{data:H.data,
aspectRatio:3})}})),_.U("div",null,_.U("p",{class:"ytdShoppingItemCardHostItemTitle"},_.U(_.ji,{text:function(){return d().itemTitle}})),_.U("p",{class:"ytdShoppingItemCardHostPrice"},_.U(_.ji,{text:function(){return d().priceOrStatus}})))))},"Va"),"ytd-shopping-item-card",{props:{data:_.rs,
className:_.rs}});var lov={isAdsVideo:!0},WCL={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},Gat={showPlayerControls:!1,videoPreviewDurationMs:15E3},AZ4={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.M("web_shorts_imp_fullwidth_killswitch")};var Jv=null,JKO={};var wfz="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(" "),Ps={},Zcz=(Ps.FEwhat_to_watch="home",Ps.FEhashtag="hashtag",Ps.FEtrending="trending",Ps.FEhistory="history",Ps.SPunlimited="premium",Ps.FEmemberships_and_purchases="paid_memberships",Ps.SPredeem_code="redeem",Ps.SPverify_location="locate",Ps.SPminor_moment="minor_moment",
Ps.FEmini_app_container="mini_app",Ps.FEnews_destination="news",Ps.SPopen_in_app="open_in_app",Ps.FEexplore="explore",Ps.FEsubscriptions="subscriptions",Ps.FEsfv_audio_pivot="sfv_audio_pivot",Ps.FEplaylist_aggregation="playlist_aggregation",Ps);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");_.HG("init");var Tff=function(){},j5s=_.C8(function(K){var d=K.data;
var f=K.inlineMetadata;var H=K.aspectRatio;var D=K.scrimStyle;var S=K.className;var n=K.useDefaultStyle;var u=new Tff,a=_.M("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",R=_.zh(function(){return(n==null?0:n())?a==="SHORTS_LOCKUP_STYLE_SLIM":d().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),F=_.zh(function(){return _.hc(f)||R()||!1},void 0,"pcPnBf"),z=function(){return(D==null?void 0:D())!==void 0?D==null?void 0:D():1};
K=_.Co(function(J){u&&(u.hostElement=J,h())});
_.wU(K,{visibilityCallback:function(J){var L=d().onFirstVisible;J&&L&&_.me(L)},
showOption:{calledOnce:!0,state:"visible"}});S=_.SC("shortsLockupViewModelHost",S);var v=_.Co(),g={};g=_.SC(function(){return R(),"shortsLockupViewModelHostThumbnailContainer"},(g.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.hc(H)===1},g.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.hc(H)===2},g.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!R()},g.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.M("web_shorts_2_by_3_lockups_study")&&!_.M("desktop_search_enable_two_by_three_shorts_aspect_ratio")},g));
var N,h=function(){if(u){var J;(J=N)==null||s8(J);var L;u.hostElement&&((L=u.data)==null?0:L.inlinePlayerData)&&(N=Av({mediaRenderer:u,lockupElement:u.hostElement,thumbnailElement:v.value,videoPreviewOpts:AZ4}))}};
_.ol(function(){u&&(u.data=d(),h())});
var m=_.zh(function(){return d().thumbnail},void 0,"FXJKOd"),T=_.zh(function(){return d().badge},void 0,"RHSDwe"),r=_.zh(function(){return d().onTap},void 0,"twXQme");
return _.U("ytm-shorts-lockup-view-model",{el:K,class:S},_.U(_.dF,null,_.U(_.pI,{command:r,className:_.SC("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!F()},
tabIndex:function(){return F()?0:-1}},_.U("div",{el:v,
class:g},_.U(_.X,{cond:m,then:function(){return _.U(_.jV,{data:function(){var J;return(J=m==null?void 0:m())!=null?J:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.U(_.X,{cond:F,
then:function(){return _.U(rZH,{data:d,scrimStyle:z,useDefaultStyle:n})}}),_.U(_.z1,{data:T},{badgeViewModel:function(J){return _.U(_.s$,{data:J.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.U(_.X,{cond:function(){return F()&&d().menuOnTap},
then:function(){return _.U(qTN,{data:d,inlineMetadata:!0})}}),_.U(_.X,{cond:function(){return!F()},
then:function(){return _.U(Q52,{data:d,useDefaultStyle:n})}})))},"Wa"),rZH=_.C8(function(K){var d=K.data;
var f=K.scrimStyle;var H=K.useDefaultStyle;var D=_.M("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",S=H&&_.M("web_hide_primary_text_for_pivot_panel"),n=_.zh(function(){return(H==null?0:H())?D==="SHORTS_LOCKUP_STYLE_SLIM":d().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"Pk4erb");
K={};K=_.SC("shortsLockupViewModelHostInlineMetadata",(K.shortsLockupViewModelHostMetadataRounded=function(){return!n()},K.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(f==null?void 0:f())===3&&!_.M("enable_shorts_lockup_new_scrim")},K.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(f==null?void 0:f())===3&&_.M("enable_shorts_lockup_new_scrim")},K.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(f==null?void 0:f())===2||(f==null?void 0:
f())===4},K.shortsLockupViewModelHostShowOverPlayer=function(){return!0},K),"image-overlay-text");
var u={};return _.U("div",{class:K},_.U("h3",{class:_.SC("shortsLockupViewModelHostMetadataTitle",(u.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(f==null?void 0:f())===4},u)),
"aria-label":function(){return d().accessibilityText}},_.U(_.X,{cond:function(){var a;
return!((a=d().overlayMetadata)==null||!a.primaryText)&&!S},
then:function(){return _.U(_.ji,{text:function(){var a;return(a=d().overlayMetadata)==null?void 0:a.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.U(_.X,{cond:function(){var a;
return(a=d().overlayMetadata)==null?void 0:a.secondaryText},
then:function(){return _.U(CCB,{data:d,scrimStyle:f,className:void 0})}}))},"Xa"),Q52=_.C8(function(K){var d=K.data;
var f=K.useDefaultStyle;var H=_.M("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",D=_.zh(function(){return(f==null?0:f())?H==="SHORTS_LOCKUP_STYLE_SLIM":d().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"bpc8ed"),S;
K={};return _.U("div",{class:_.SC(function(){return D()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text"),
"on:click":_.cp(function(){var n;(n=S)==null||n.click();return!1})},_.U("h3",{class:_.SC("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(K.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var n,u;
return!((n=d().overlayMetadata)==null?0:(u=n.primaryText)==null?0:u.content)},K)),
"aria-label":function(){return d().accessibilityText}},_.U(_.pI,{ref:function(n){return void(S=n)},
command:function(){return d().onTap},
className:_.SC("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var n,u;return(n=d().overlayMetadata)==null?void 0:(u=n.primaryText)==null?void 0:u.content}},_.U(_.X,{cond:function(){return!!d().overlayMetadata},
then:function(){return _.U(_.ji,{text:function(){var n;return(n=d().overlayMetadata)==null?void 0:n.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.U(_.X,{cond:function(){var n;
return(n=d().overlayMetadata)==null?void 0:n.secondaryText},
then:function(){return _.U(CCB,{data:d,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.U(_.X,{cond:function(){return d().menuOnTap},
then:function(){return _.U(qTN,{data:d,inlineMetadata:!1})}}))},"Ya"),CCB=_.C8(function(K){var d=K.data;
var f=K.scrimStyle;K=K.className;var H={};return _.U("div",{class:_.SC((H.shortsLockupViewModelHostMetadataSubhead=function(){return(f==null?void 0:f())!==4},H.shortsLockupViewModelHostMetadataSubheadNew=_.M("enable_shorts_lockup_new_scrim"),H.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(f==null?void 0:f())===4},H),K),
"aria-hidden":"true"},_.U(_.ji,{text:function(){var D;return(D=d().overlayMetadata)==null?void 0:D.secondaryText},
noStyleRuns:!0}))},"Za"),qTN=_.C8(function(K){var d=K.data;
var f=K.inlineMetadata;K={};K=_.SC((K.shortsLockupViewModelHostInlineMetadataMenu=function(){return f()},K.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!f()},K.shortsLockupViewModelHostShowOverPlayer=function(){return!0},K),"image-overlay-text");
return _.U("div",{class:K},_.U(xB,{data:function(){return{style:f()?"overlay":"mono",accessibilityLabel:d().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(H){H.preventDefault();H.stopPropagation();var D=_.hJ({elementsCommand:d().menuOnTap,forceNewState:!0});if(D==null?0:D.onclick)D.onclick(H)}}},
iconName:"MORE_VERT"}))},"$a");var xck=_.C8(function(K){var d=K.data;var f=K.inlineMetadata;var H=K.aspectRatio;var D=K.scrimStyle;var S=K.className;var n=K.useDefaultStyle;K=_.zh(function(){var u=d().entityId;return u?u.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.U("ytm-shorts-lockup-view-model-v2",{class:_.SC("shortsLockupViewModelHost",S)},_.U(_.fo6,{contentId:K,aspectRatio:function(){return(H==null?void 0:H())===1?1:(H==null?void 0:H())===2?2:4}},function(){return _.U(j5s,{data:d,
inlineMetadata:f,aspectRatio:H,scrimStyle:D,className:S,useDefaultStyle:n})}))},"ab");_.sP(xck,"ytm-shorts-lockup-view-model-v2",{props:{data:_.JJ,inlineMetadata:_.JJ,aspectRatio:_.JJ,scrimStyle:_.JJ,className:_.JJ,useDefaultStyle:_.JJ}});var LCs=16/9*210,gC=function(){var K=_.q.apply(this,arguments)||this;K.isExpandableContent=!1;K.hideShelfHeader=!1;K.engagementPanel=!1;K.buttonClasses=["arrow"];K.isSearch=!1;K.disableScrollEventListener=!1;K.containsLockup=!1;K.overrideArrowPositionForProductCard=!1;K.overrideArrowPositionForShoppingItemCard=!1;K.overrideArrowPositionForReelItems=!1;K.overrideArrowPositionForGridMovie=!1;K.overrideArrowPositionToCenter=!1;K.isSearchPostShelf=!1;K.overrideArrowPositionForMixedShelf=!1;K.overrideArrowPositionForMixedShelfShortsOnly=
!1;K.hasBigThumbsReelItems=!1;K.shouldUseMixedListHeight=!1;K.shouldUseShortsListHeight=!1;K.gridVideoWidth=0;K.isSearchVodShelf=!1;K.disableWheelScroll=!1;K.sizing="COMPACT";K.shortsLockupAspectRatio=0;return K};
_.O(gC,_.q);_.V=gC.prototype;
_.V.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]]"}}}}};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.M("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.V.computeInitialCountNumber=function(K){if(!K)return 6;var d=K.items.some(function(S){return!!S.topicRecommendationsChipRenderer}),f=K.items.some(function(S){return!!S.displayAdRenderer}),H=this.computeShouldListItemsHaveEqualHeight(K),D=K.items.some(function(S){return!!S.gridPlaylistRenderer});
K=K.items.some(function(S){return!!S.shoppingItemCardViewModel});
return d?9:f?8:D||H?10:K?7:6};
_.V.computeContainsPost=function(K){return!!K&&!!K.items&&K.items.some(function(d){return!!d.postRenderer})};
_.V.computeContainsLockup=function(){if(_.M("web_horizontal_list_lockup_arrow_killswitch"))return!1;var K,d;return(K=this.data)==null?void 0:(d=K.items)==null?void 0:d.some(function(f){return!!f.lockupViewModel})};
_.V.maybeUpdateLockupAspectRatio=function(){var K,d;if(this.computeContainsLockup()&&((K=this.data)==null?0:(d=K.items)==null?0:d.length)){var f;K=HcB((f=this.data.items[0].lockupViewModel)==null?void 0:f.contentType,this.data.force16By9ThumbnailAspectRatio);f=YlY(K);f=this.computeLockupWidth()/f;_.f8(this.hostElement,{"--yt-horizontal-list-content-height":f+"px"})}};
_.V.computeOverrideArrowPositionForProductCard=function(K){if(this.isExpandableContent)return!1;var d;return!!(K==null?0:(d=K.items)==null?0:d.some(function(f){return!!f.verticalProductCardRenderer}))};
_.V.computeOverrideArrowPositionForShoppingItemCard=function(K){var d;return!!(K==null?0:(d=K.items)==null?0:d.some(function(f){return!!f.shoppingItemCardViewModel}))};
_.V.computeOverrideArrowPositionForReelItemRenderer=function(K){return this.containsReelItemRenderer(K)};
_.V.computeHasBigThumbsReelItems=function(K,d){return K&&this.containsReelItemRenderer(d)};
_.V.computeShouldListItemsHaveEqualHeight=function(K){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(K==null?void 0:K.itemSizeConstraint)};
_.V.computeShouldListItemsHaveShortsHeight=function(K){return this.computeShouldListItemsHaveEqualHeight(K)&&!this.containsGridVideoRenderer(K)};
_.V.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.V.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.V.containsReelItemRenderer=function(K){var d;return!!(K==null?0:(d=K.items)==null?0:d.some(function(f){return!(!f.reelItemRenderer&&!f.shortsLockupViewModel)}))};
_.V.containsGridVideoRenderer=function(K){var d;return!!(K==null?0:(d=K.items)==null?0:d.some(function(f){return!!f.gridVideoRenderer||!!f.lockupViewModel}))};
_.V.computeContainsGridMovieRenderer=function(K){var d;return!!(K==null?0:(d=K.items)==null?0:d.some(function(f){return!!f.gridMovieRenderer}))};
_.V.computeOverrideArrowPositionToCenter=function(K){return this.computeIsSearchPostShelf(K)};
_.V.computeIsSearchPostShelf=function(K){var d;return!!(K==null?0:(d=K.items)==null?0:d.some(function(f){var H,D;return((D=(H=f.postRenderer)==null?void 0:H.surface)!=null?D:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.V.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(K){var d;return!!(K==null?0:(d=K.items)==null?0:d.some(function(f){var H,D,S;return((S=(H=f.backgroundPromoRenderer)==null?void 0:(D=H.style)==null?void 0:D.value)!=null?S:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.V.computeIsSearchVodShelf=function(K,d){return K&&this.containsGridVideoRenderer(d)};
_.V.computeDisableWheelScroll=function(K,d){return this.computeIsSearchVodShelf(K,d)};
_.V.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.V.computeShortsLockupAspectRatio=function(K){return K&&_.M("web_shorts_2_by_3_lockups_no_search")&&!_.M("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.V.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.f8(this.hostElement,{"--ytd-reel-item-thumbnail-height":LCs+"px"})};
gC.prototype.dataChanged=gC.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.wa.YtdHorizontalListBehavior),_.B("design:type",Object)],gC.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gC.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],gC.prototype,"isExpandableContent",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"hideShelfHeader",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"engagementPanel",void 0);_.x([_.A(),_.B("design:type",Array)],gC.prototype,"buttonClasses",void 0);_.x([_.A(),_.B("design:type",Object)],gC.prototype,"isSearch",void 0);
_.x([_.A(),_.B("design:type",Object)],gC.prototype,"disableScrollEventListener",void 0);_.x([_.A({computed:"computeInitialCountNumber(data)"}),_.B("design:type",Number)],gC.prototype,"initialCount",void 0);_.x([_.A({computed:"computeContainsPost(data)"}),_.B("design:type",Boolean)],gC.prototype,"supportComponentResize",void 0);_.x([_.A({computed:"computeContainsPost(data)"}),_.B("design:type",Boolean)],gC.prototype,"containsPost",void 0);
_.x([_.A({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"containsLockup",void 0);_.x([_.A({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],gC.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.x([_.A({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"overrideArrowPositionForProductCard",void 0);_.x([_.A({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.x([_.A({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"overrideArrowPositionForReelItems",void 0);_.x([_.A({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"overrideArrowPositionForGridMovie",void 0);
_.x([_.A({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"overrideArrowPositionToCenter",void 0);_.x([_.A({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"isSearchPostShelf",void 0);_.x([_.A({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.x([_.A({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.x([_.A({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"hasBigThumbsReelItems",void 0);
_.x([_.A({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"shouldUseMixedListHeight",void 0);_.x([_.A({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"shouldUseShortsListHeight",void 0);_.x([_.A({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"gridVideoWidth",void 0);
_.x([_.A({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"isSearchVodShelf",void 0);_.x([_.A({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"disableWheelScroll",void 0);_.x([_.A({computed:"computeSizing(isSearch)"}),_.B("design:type",Object)],gC.prototype,"sizing",void 0);
_.x([_.A({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.B("design:type",Object)],gC.prototype,"shortsLockupAspectRatio",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gC.prototype,"dataChanged",null);
_.C(gC,"yt-horizontal-list-renderer",function(){if(kP2===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);kP2=K}K=kP2;return K},{mode:1});var Bf8;var JZ2=[10,12,14,16,18,20,24,28,32,36],s5t=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],OR=function(){var K=_.q.apply(this,arguments)||this;K.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";K.hideOverflow=!1;K.useRoboto=!1;K.fontClass="";K.overflown=!1;K.actionMap={"yt-window-resized":"resize"};return K};
_.O(OR,_.q);_.V=OR.prototype;
_.V.attached=function(){var K=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();_.jW(this,function(){K.resize()});
if(!_.kb){var d,f,H;(d=document)==null||(f=d.fonts)==null||(H=f.ready)==null||H.then(function(){K.resize()})}};
_.V.dataChanged=function(){this.resize()};
_.V.guideIsExpandedChanged=function(){this.resize()};
_.V.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 K=this.getMaxNumLines(),d=this.getMinFont(),f=this.getMaxFont(),H=this.useRoboto?JZ2:s5t;for(H=H.filter(function(S){return S<=f&&S>=d});H.length>1;){var D=Math.floor(H.length/2);
this.updateFontSize(H[D]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=K)H=H.slice(D,H.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>K)H=H.slice(0,D);else break}this.updateFontSize(H[H.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(K)}};
_.V.handleOverflow=function(K){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>K&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",K.toString()))};
_.V.updateFontSize=function(K){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+K;this.textNode.classList.add(this.fontClass)};
_.V.getMaxFont=function(){var K=this.useRoboto?JZ2:s5t;K=K[K.length-1];return this.maxFontSize&&this.maxFontSize<=K?this.maxFontSize:K};
_.V.getMinFont=function(){var K=(this.useRoboto?JZ2:s5t)[0];return this.minFontSize&&this.minFontSize>=K?this.minFontSize:K};
_.V.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.V.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.V.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.qQ(this.text).split("\n").length-1:Infinity};
_.V.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("Eh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
OR.prototype.guideIsExpandedChanged=OR.prototype.guideIsExpandedChanged;OR.prototype.dataChanged=OR.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],OR.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],OR.prototype,"actionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],OR.prototype,"text",void 0);
_.x([_.A(),_.B("design:type",String)],OR.prototype,"fontFamily",void 0);_.x([_.A(),_.B("design:type",Number)],OR.prototype,"maxWidth",void 0);_.x([_.A(),_.B("design:type",Number)],OR.prototype,"maxHeight",void 0);_.x([_.A(),_.B("design:type",Number)],OR.prototype,"maxFontSize",void 0);_.x([_.A(),_.B("design:type",Number)],OR.prototype,"minFontSize",void 0);_.x([_.A(),_.B("design:type",Number)],OR.prototype,"maxLines",void 0);_.x([_.A(),_.B("design:type",Object)],OR.prototype,"hideOverflow",void 0);
_.x([_.A({selector:_.aDp}),_.B("design:type",Boolean)],OR.prototype,"guideIsExpanded",void 0);_.x([_.n8("#container"),_.B("design:type",HTMLElement)],OR.prototype,"containerNode",void 0);_.x([_.n8("#text"),_.B("design:type",HTMLElement)],OR.prototype,"textNode",void 0);_.x([_.an("text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OR.prototype,"dataChanged",null);
_.x([_.an("guideIsExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OR.prototype,"guideIsExpandedChanged",null);OR=_.x([_.Q({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],OR);
_.C(OR,"yt-dynamic-sizing-formatted-string",function(){if(Bf8!==void 0)return Bf8;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Bf8=K},{mode:1});var ka6;_.wjB=function(K){_.KB.call(this,K)};
_.O(_.wjB,_.KB);var ZPv=function(K){_.KB.call(this,K)};
_.O(ZPv,_.wjB);var NK=function(){return _.q.apply(this,arguments)||this};
_.O(NK,_.q);NK.prototype.onTapSuspendedChannel=function(){var K;if((K=this.data)!=null&&K.serviceEndpoint){var d,f;(K=(f=_.P((d=this.data)==null?void 0:d.serviceEndpoint,_.TE))==null?void 0:f.url)?_.WW(K,void 0,void 0,window.top):(d=new ZPv("Did not handle suspended account tap. No appealUrl."),_.$7(d))}else d=new ZPv("Did not handle suspended account tap. No serviceEndpoint."),_.$7(d)};
NK.prototype.onTap=function(){var K=this,d=_.cv(),f,H=(f=_.iz(d,{veType:7116}))!=null?f:void 0;_.bh(d,{visualElement:H});_.mW();this.saveRoleText();var D;if((D=this.data)==null?0:D.youtubeSuspended)this.onTapSuspendedChannel();else{var S=!1,n,u;(d=(u=_.P((n=this.data)==null?void 0:n.serviceEndpoint,_.Vxk))==null?void 0:u.supportedTokens)&&d.forEach(function(a){if(a.accountSigninToken)if(S=!0,K.onAccountItemTap)K.onAccountItemTap(a.accountSigninToken.signinUrl);else _.WW(a.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!S){if(n=this.get("serviceEndpoint",this.data))S=!0,this.ytComponentBehavior.resolveCommand(n);S||_.EN(new ZPv("Did not handle account switch tap. No token."))}}};
NK.prototype.saveRoleText=function(){if(this.data){var K=this.data,d=K.channelDelegationRole;if(d){var f,H=(f=_.P(K==null?void 0:K.serviceEndpoint,_.Vxk))==null?void 0:f.supportedTokens;if(!H){var D,S,n,u;H=(D=_.P(K==null?void 0:K.serviceEndpoint,_.X3))==null?void 0:(S=D.popup)==null?void 0:(n=S.confirmDialogRenderer)==null?void 0:(u=n.confirmButton)==null?void 0:u.buttonRenderer;var a;H=(a=_.P(H==null?void 0:H.command,_.DE))==null?void 0:a.commands;if(!H)return;var R;H=(R=_.P(H[1],_.Vxk))==null?
void 0:R.supportedTokens}if(H){a=void 0;R=_.y(H);for(H=R.next();!H.done;H=R.next())if(H=H.value,H.datasyncIdToken){a=H.datasyncIdToken.datasyncIdToken;break}if(a){var F;a:{if(_.fvN()&&(R=_.FVp(a+"::pom"))){R=new U9(R);break a}R=void 0}(F=R)==null||F.set("role_text",d);if((Rpp?Rpp:window.location).href.indexOf("studio")!==-1&&(F=HDX())){R=F.src?(new URL(F.src)).origin:"*";var z;(z=F.contentWindow)==null||z.postMessage({action:"save_pom_role",datasyncId:a,roleText:d},R)}}}}}};
_.x$.Object.defineProperties(NK.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(K=this.data)==null?void 0:(d=K.accountPhoto)==null?void 0:d.thumbnails;return f&&f.length>0&&(f[0].height===36||f[0].height===48)?f[0].height:40}}});
NK.prototype.onTap=NK.prototype.onTap;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],NK.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],NK.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!1}),_.B("design:type",Function)],NK.prototype,"onAccountItemTap",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],NK.prototype,"enableRingForActiveAccount",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],NK.prototype,"thumbnailSize",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NK.prototype,"onTap",null);NK=_.x([_.Q({is:"ytd-account-item-renderer",disableElementRegistration:!0})],NK);
_.C(NK,"ytd-account-item-renderer",function(){if(ka6!==void 0)return ka6;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ka6=K},{mode:1});var eat;var Y4=function(){return _.q.apply(this,arguments)||this};
_.O(Y4,_.q);Y4.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.eq().resolve(_.pQ).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Y4.prototype,"data",void 0);Y4=_.x([_.Q({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Y4);
_.C(Y4,"ytd-identity-chip-renderer",function(){if(eat!==void 0)return eat;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return eat=K},{mode:1});var pj4;var K6H;var d62;var f$2;var t2=function(){var K=_.q.apply(this,arguments)||this;K.richItemMinWidth=_.di("wn_grid_min_item_width",310);K.isShorts=!1;K.isWatchNext=!1;K.isExploreHub=!1;return K};
_.O(t2,_.q);_.x$.Object.defineProperties(t2.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var K=[],d=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.f8(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var f;if(((f=this.data)==null?0:f.rows)&&d)for(d*=this.data.rows,f=0;f<d;f++)K.push({});return K}}});
_.x([_.l(_.ou),_.B("design:type",Object)],t2.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],t2.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.NQ,value:3}),_.B("design:type",Number)],t2.prototype,"itemsPerRow",void 0);_.x([_.A({selector:_.u3o,value:6}),_.B("design:type",Number)],t2.prototype,"slimItemsPerRow",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Number)],t2.prototype,"richItemMinWidth",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],t2.prototype,"miniMode",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],t2.prototype,"isShorts",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],t2.prototype,"isWatchNext",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],t2.prototype,"isExploreHub",void 0);
_.x([_.W("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.B("design:type",Array),_.B("design:paramtypes",[])],t2.prototype,"cardItems",null);t2=_.x([_.Q({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],t2);
_.HcJ=_.eP()(t2,"ytd-ghost-grid-renderer",function(){if(f$2===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);f$2=K}K=f$2;return K},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.sP(_.C8(function(K){var d=_.jP(K,{numberOfComments:3}).numberOfComments,f=_.jP(K,{isInitialLoad:!1}).isInitialLoad,H=_.jP(K,{engagementPanel:!1}).engagementPanel,D=function(){return Math.min(Number(d==null?void 0:d())||20,20)};
return _.U("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.U(_.X,{cond:function(){return!(H==null?0:H())&&(f==null?void 0:f())},
then:function(){return _.U("div",{class:"ytGhostCommentsComments"},_.U("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.U("div",{class:_.SC("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.U("div",{class:_.SC("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.U("div",{class:"ytGhostCommentsGhostCard"},_.U("div",{class:"ytGhostCommentsAvatar"},_.U("div",{class:"ytGhostCommentsCircle"})),_.U("div",{class:"ytGhostCommentsComments"},_.U("div",{class:"ytGhostCommentsMeta"},
_.U("div",{class:_.SC("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.U("div",{class:_.SC("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.U("div",{class:"ytGhostCommentsComments"},_.U(_.v_,{each:function(){return Array((D==null?void 0:D())||3)}},function(){return _.U("div",{class:"ytGhostCommentsGhostCard"},_.U("div",{class:"ytGhostCommentsAvatar"},_.U("div",{class:"ytGhostCommentsCircle"})),_.U("div",{class:"ytGhostCommentsHost"},_.U("div",{class:"ytGhostCommentsMeta"},
_.U("div",{class:_.SC("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.U("div",{class:_.SC("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.U("div",{class:_.SC("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.U("div",{class:"ytGhostCommentsGhostLikeDislike"},_.U("div",{class:_.SC("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.U("div",{class:_.SC("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"bb"),"yt-ghost-comments",{props:{numberOfComments:_.rs,
isInitialLoad:_.rs,engagementPanel:_.rs}});_.Na("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var oW=function(){var K=_.q.apply(this,arguments)||this;K.isOverridable=!1;K.spinnerActive=!1;K.showButton=!1;K.isCommentsSection=!1;K.engagementPanel=!0;K.isShortsGrid=!1;K.isShortsPage=!1;K.isWatchPage=!1;K.ghostCardExperimentEnabled=_.M("show_ghost_comments_shorts_watch")||_.M("show_ghost_comments_desktop_watch");K.originalShowButton=!1;K.endOfList=!1;return K};
_.O(oW,_.q);_.V=oW.prototype;_.V.resetIntersectionObserver=function(){var K;(K=this.observer)==null||K.disconnect();this.observer=void 0};
_.V.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var K,d;((K=this.data)==null?void 0:K.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((d=this.data)==null?0:d.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.V.initializeIntersectionObserver=function(){var K=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(d){d=_.y(d);for(var f=d.next();!f.done;f=d.next())f.value.isIntersecting&&(K.triggerContinuation(),K.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.V.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{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]]"}}}}}};
_.V.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var K;((K=this.data)==null?0:K.continuationEndpoint)&&(K=_.P(this.data.continuationEndpoint,_.$P))&&this.ytdReduxBehavior.dispatch(_.es({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:K}}))};
_.V.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.V.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.V.onServiceRequestCompleted=function(K,d){if(!_.M("kevlar_hide_spinner_on_empty_continuation_killswitch")){var f;(f=d.actions)!=null&&f.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.V.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.V.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.V.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.V.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var K=3;if(this.engagementPanel){var d,f,H;K=Math.floor(((((d=this.hostElement)==null?void 0:(f=d.parentElement)==null?void 0:(H=f.parentElement)==null?void 0:H.scrollHeight)||108)-108)/108);K=this.isInitialLoad?Math.max(K,3):3}d=[].concat(_.Me(this.hostElement.querySelectorAll("yt-ghost-comments")));d=_.y(d);for(f=d.next();!f.done;f=d.next())f=f.value,f.numberOfComments=K,f.isInitialLoad=this.isInitialLoad,f.engagementPanel=
this.engagementPanel}};
_.V.detached=function(){this.resetIntersectionObserver()};
_.x$.Object.defineProperties(oW.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.M("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.M("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
oW.prototype.numberOfGhostCommentsChanged=oW.prototype.numberOfGhostCommentsChanged;oW.prototype.continuationTriggerOffsetChanged=oW.prototype.continuationTriggerOffsetChanged;oW.prototype.showButtonChanged=oW.prototype.showButtonChanged;oW.prototype.onYtServiceRequestCompletedForButtonRenderer=oW.prototype.onYtServiceRequestCompletedForButtonRenderer;oW.prototype.onServiceRequestCompleted=oW.prototype.onServiceRequestCompleted;oW.prototype.onYtServiceRequestSentForButtonRenderer=oW.prototype.onYtServiceRequestSentForButtonRenderer;
oW.prototype.observeData=oW.prototype.observeData;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.lm.YtVisibilityBehavior),_.B("design:type",Object)],oW.prototype,"ytVisibilityBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],oW.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.ou),_.B("design:type",Object)],oW.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],oW.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],oW.prototype,"isOverridable",void 0);_.x([_.A(),_.B("design:type",Object)],oW.prototype,"spinnerActive",void 0);_.x([_.A(),_.B("design:type",Object)],oW.prototype,"showButton",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],oW.prototype,"isCommentsSection",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],oW.prototype,"engagementPanel",void 0);_.x([_.A(),_.B("design:type",Object)],oW.prototype,"isShortsGrid",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.UVX}),_.B("design:type",Object)],oW.prototype,"isShortsPage",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.tp}),_.B("design:type",Object)],oW.prototype,"isWatchPage",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],oW.prototype,"ghostCardExperimentEnabled",void 0);
_.x([_.A(),_.B("design:type",Number)],oW.prototype,"continuationTriggerOffset",void 0);_.x([_.A(),_.B("design:type",Object)],oW.prototype,"endOfList",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],oW.prototype,"isInitialLoad",void 0);_.x([_.n8("ytd-button-renderer"),_.B("design:type",_.Qr)],oW.prototype,"buttonRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],oW.prototype,"buttonOverrides",void 0);
_.x([_.A(),_.W("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.B("design:type",Object),_.B("design:paramtypes",[])],oW.prototype,"isShortsCommentsSection",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oW.prototype,"observeData",null);
_.x([_.VV("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oW.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],oW.prototype,"onServiceRequestCompleted",null);
_.x([_.VV("yt-service-request-completed-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oW.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.x([_.an("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oW.prototype,"showButtonChanged",null);
_.x([_.an("continuationTriggerOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oW.prototype,"continuationTriggerOffsetChanged",null);_.x([_.SP("isInitialLoad","engagementPanel"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oW.prototype,"numberOfGhostCommentsChanged",null);oW=_.x([_.Q({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],oW);
_.C(oW,"ytd-continuation-item-renderer",function(){if(d62!==void 0)return d62;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return d62=K},{mode:1});var D69;var $4=function(){var K=_.q.apply(this,arguments)||this;K.downloadProgress=0;K.transferState="TRANSFER_STATE_UNKNOWN";K.downloadState="DOWNLOAD_STATE_UNKNOWN";K.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";K.offlineVideoPolicyExpirationTimestamp=0;K.downloadedVideoPlaybackPosition=0;return K};
_.O($4,_.q);$4.prototype.dataChanged=function(){var K;this.videoData=_.P((K=this.data)==null?void 0:K.renderer,lTv);this.transferStateChanged()};
$4.prototype.downloadProgressChanged=function(){if(this.entityInfo){var K=Object.assign({},this.videoData),d=uvG(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),f=d.publishedTimeText,H=d.badges;K.shortViewCountText=d.shortViewCountText;K.publishedTimeText=f;K.badges=H;this.set("videoData",K)}};
$4.prototype.transferStateChanged=function(){if(this.entityInfo){var K=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",d=_.IO(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!aO(this.entityInfo.policyEntity),f=Object.assign({},this.videoData),H=uvG(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),D=H.publishedTimeText,S=H.badges;f.shortViewCountText=
H.shortViewCountText;f.publishedTimeText=D;f.badges=S;f.isDisabled=d;f.isWatched=this.downloadedVideoPlaybackPosition>0;f.navigationEndpoint=d?void 0:Qs5(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var n;K&&((n=this.videoData)==null?0:n.videoId)&&!_.M("dl_resume_click_killswitch")&&(f.isDisabled=!1,f.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});f.thumbnailOverlays=i5X(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",f)}};
$4.prototype.transferStateChanged=$4.prototype.transferStateChanged;$4.prototype.downloadProgressChanged=$4.prototype.downloadProgressChanged;$4.prototype.dataChanged=$4.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],$4.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$4.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],$4.prototype,"videoData",void 0);_.x([_.A({selector:EV,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$4.prototype,"downloadProgress",void 0);_.x([_.A(),_.B("design:type",Number)],$4.prototype,"relativeDateReference",void 0);_.x([_.A({selector:_.oO,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$4.prototype,"transferState",void 0);
_.x([_.A({selector:Wvz,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$4.prototype,"downloadState",void 0);_.x([_.A({selector:MAG,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$4.prototype,"offlinePolicyAction",void 0);_.x([_.A({selector:PqX,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$4.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.x([_.A({selector:hp,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$4.prototype,"downloadedVideoPlaybackPosition",void 0);_.x([_.A({selector:O2B,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$4.prototype,"entityInfo",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],$4.prototype,"isDownloading",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$4.prototype,"dataChanged",null);
_.x([_.an("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$4.prototype,"downloadProgressChanged",null);_.x([_.an("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$4.prototype,"transferStateChanged",null);
$4=_.x([_.Q({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],$4);
_.C($4,"ytd-downloaded-video-grid-video-renderer",function(){if(D69!==void 0)return D69;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return D69=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var Vgs;var ER=function(){};
ER.prototype.resolve=function(K,d){var f=this;return _.c(function(H){return _.I(H,f.resolveCommand(K,d),0)})};var SqB,h2;SqB=qBN(function(K){return K.targetId},{shouldPersist:!1});
h2=SqB.updateData;_.yKf=SqB.useUpdatableData;var niJ,ic2;niJ=qBN(function(K){return K.targetId});
ic2=niJ.updateData;_.cKB=niJ.useUpdatableData;var uSJ=KGB.bind(null,h2),a$s=KGB.bind(null,ic2);(function(K,d,f){var H=_.P(f==null?void 0:f.updatedRenderer,_.iff);return H?K({targetId:d},function(){return H}):!1}).bind(null,h2);var bY=function(){};
_.O(bY,ER);bY.prototype.resolveCommand=function(K){var d;return _.c(function(f){d=_.P(K,_.RfX);if(!d)return f.return();uSJ(d.targetId,d);_.iQ(f)})};var ma=function(){var K=_.cP.apply(this,arguments)||this;K.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return K};
_.O(ma,_.cP);_.V=ma.prototype;_.V.configureContinuationPathMap=function(){return{}};
_.V.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.V.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.V.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.V.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.V.handleAppendContinuationItemsAction=function(K){var d=_.P(K,_.Q1s);if(this.data&&this.data.targetId&&d&&this.continuationPathMap&&d.targetId===this.data.targetId){var f=Wen(K);if((K=f&&this.continuationPathMap[f])&&f){f=this.get(K,this.data);var H;a:{for(H=0;H<f.length;H++){var D=f[H],S=void 0,n=!!_.P((S=_.P(D,NcB))==null?void 0:S.content,_.ESv);if(_.P(D,_.k6)||n)break a}H=f.length}K="data."+K;d.continuationItems?H===f.length-1?(this.pop(K),this.push.apply(this,[K].concat(_.Me(d.continuationItems)))):
H===f.length?this.push.apply(this,[K].concat(_.Me(d.continuationItems))):this.splice.apply(this,[K,H,1].concat(_.Me(d.continuationItems))):this.splice(K,H,1);(_.M("web_enable_voting_animation")||_.M("enable_music_web_cairo_voting_animation"))&&_.Zp(this.hostElement,"yt-append-continuation-items-action-finished");_.Zp(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.h3(new _.X4("append continuation path does not exist",f))}};
_.V.handleReloadContinuationItemsCommand=function(K){var d=_.P(K,_.RfX);if(this.data&&d){if(_.M("web_explore_hub")||_.M("web_client_explore_hub")||_.M("web_explore_hub_on_hover")||_.M("web_client_explore_hub_on_hover"))try{_.eq().resolve(bY).resolveCommand(K)}catch(S){}if(this.data.targetId&&this.continuationPathMap&&d.targetId===this.data.targetId&&(!_.M("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||d.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var f,H=
(f=d.slot)==null?void 0:f.replace("RELOAD_CONTINUATION_SLOT_","");f=(K=Wen(K)+"-"+(H==null?void 0:H.toLowerCase()))&&this.continuationPathMap[K];if(!f||!K||!H)_.h3(new _.X4("reload continuation path does not exist",K));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(d)){if(d.replaceWithFirstItem){var D;this.set("data."+f,((D=d.continuationItems)==null?0:D.length)?d.continuationItems[0]:{})}else this.set("data."+f,d.continuationItems?d.continuationItems:
[]);this.continuationIsReloading=!1;_.Zp(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.V.handleShowReloadUiCommand=function(K){K=_.P(K,dit);var d;((d=this.data)==null?0:d.targetId)&&(K==null?0:K.targetId)&&K.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
ma.prototype.observeData=ma.prototype.observeData;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ma.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ma.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ma.prototype,"data",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],ma.prototype,"continuationIsReloading",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ma.prototype,"observeData",null);ma=_.x([_.uL()],ma);_.lY=[_.hj.YtComponentBehavior,_.kc.YtActionHandlerBehavior,ma.prototype];_.Ws={};_.Ws.YtNextContinuationBehavior=[_.xc.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",_.Dm(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Dm(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(K,d){K.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,d,{}):(K={locationRetrieved:function(f){this.makeNextContinuationRequest_(f,d,{})}.bind(this)},_.Zp(this.hostElement,"yt-retrieve-location",K))},
makeNextContinuationRequest_:function(K,d,f){_.ty("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();K=d(K);var H;this.canUseContextualNetworkManager_()&&(H=this.getNetworkManager());H||(H=_.eq().resolve(_.O1));d=_.md.instance;if(_.mD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&d){H=_.CF([K.startsWith("/")?K.substr(1):K]);var D,S;f=_.Np(d,{},H,f==null?void 0:(D=f.context)==null?void 0:(S=D.clickTracking)==null?void 0:S.clickTrackingParams).then(function(n){return{response:n}})}else f=
this.nextContinuation.usePost?H.postData(K,f):H.fetchData(K);
f.then(this.updateNextContinuationData_.bind(this,K));this.pendingContinuationRequest_=f;this.startListeningForNavigate_()},
updateNextContinuationData_:function(K,d){var f=this;_.ty("ncl");this.pendingContinuationRequest_=void 0;if(d){var H={};this.nextContinuation&&(H=this.nextContinuation);if(d.response&&d.response.continuationContents&&d.response.continuationContents[H.continuationType]){K=d.response.continuationContents[H.continuationType];var D=H.header||"data.header",S=K[H.responseHeaderKey||"header"];S&&this.set(D,S);D=H.contentsArray||"data.contents";S=this.getContents_(K,H.responseContentsKey||"contents")||[];
this.pathExists_(D)?(S.unshift(D),this.push.apply(this,S)):this.set(D,S);S&&(dAX(_.cv(),d.response,this.hostElement,function(n){_.ev(f.hostElement,"yt-store-grafted-ve-action",[n])}),_.Zp(this.hostElement,"yt-next-continuation-data-updated",{continuationData:d,
page:this,contentsArray:D}));this.set(H.continuationsArray||"data.continuations",K[H.responseContinuationsKey||"continuations"]||[])}else d.reload?_.h3(new _.X4("Reloading from continuation is unsupported")):d.responseContext&&d.responseContext.errors||(delete d.xsrf_token,delete d.timing,delete d.endpoint,delete d.csn,d.responseContext&&delete d.responseContext.serviceTrackingParams,D={request:_.xM(K,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(d).sort()},d.response&&(D.responseContentKeys=
Object.keys(d.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(D.continuationType=this.nextContinuation.continuationType.substr(0,256)),d=new _.X4("Malformed continuation",D),K.indexOf("/comment_service_ajax")==0?_.h3(d):_.$7(d)),this.set(H.continuationsArray||"data.continuations",[])}else _.EN(new _.X4("Missing continuation response",K))},
getContents_:function(K,d){d=d.split(".");return _.PR.getValueByKeys(K,d)},
pathExists_:function(K){var d=this;K=K.toString().split(".");for(var f=0;f<K.length;f++)if(d=d[K[f]],d===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var I$s;var U6f;var Gt=function(){var K=_.q.apply(this,arguments)||this;K.triggered_=!1;return K};
_.O(Gt,_.q);_.V=Gt.prototype;_.V.attached=function(){this.maybeTriggerAutoload()};
_.V.detached=function(){this.hasBeenTriggered_=!1};
_.V.onPrescanVisible=function(){this.onShow()};
_.V.onShow=function(){this.showButton||this.trigger()};
_.V.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Zp(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.V.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.V.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.V.computeLabel_=function(K,d){return K===void 0?null:K.label||!d?K.label:this.showMoreText_};
_.V.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.V.getContinuationUrl=function(K){var d={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(d.itct=this.data.clickTrackingParams);return _.LQ(K,d)};
_.V.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Gt.prototype.showButtonChanged_=Gt.prototype.showButtonChanged_;Gt.prototype.observeData_=Gt.prototype.observeData_;_.x([_.l(_.lm.YtVisibilityBehavior),_.B("design:type",Object)],Gt.prototype,"ytVisibilityBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Gt.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],Gt.prototype,"showButton",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],Gt.prototype,"showIcon",void 0);_.x([_.A({computed:"computeLabel_(data, showButton)"}),_.B("design:type",Object)],Gt.prototype,"label",void 0);_.x([_.A({value:_.rB(_.iB("SHOW_MORE",void 0,"Show More"))}),_.B("design:type",Object)],Gt.prototype,"showMoreText_",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],Gt.prototype,"spinnerActive_",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],Gt.prototype,"hasBeenTriggered_",void 0);
_.x([_.A({value:void 0}),_.B("design:type",String)],Gt.prototype,"observeVisibleOption",void 0);_.x([_.A({value:void 0}),_.B("design:type",String)],Gt.prototype,"observeHiddenOption",void 0);_.x([_.A({value:"observe_once"}),_.B("design:type",Object)],Gt.prototype,"observePrescanOption",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gt.prototype,"observeData_",null);
_.x([_.SP("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gt.prototype,"showButtonChanged_",null);Gt=_.x([_.N7({is:"yt-next-continuation",disableElementRegistration:!0})],Gt);
_.C(Gt,"yt-next-continuation",function(){if(U6f===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;I$s===void 0&&(I$s=document.createElement("template"));var H=I$s;f.call(d,H.content.cloneNode(!0),K.content.firstChild);U6f=K}K=U6f;return K},{mode:2});var Rzs;var F6H;var A2=function(){return _.q.apply(this,arguments)||this};
_.O(A2,_.q);A2.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],A2.prototype,"data",void 0);A2=_.x([_.N7({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],A2);
_.C(A2,"yt-music-pass-small-feature-info-renderer",function(){if(F6H===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Rzs===void 0&&(Rzs=document.createElement("template"));var H=Rzs;f.call(d,H.content.cloneNode(!0),K.content.firstChild);F6H=K}K=F6H;return K},{mode:2});_.Na("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Tt=function(){var K=_.q.apply(this,arguments)||this;K.isCollapsible=!1;K.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return K};
_.O(Tt,_.q);_.V=Tt.prototype;_.V.computeIsCollapsible=function(K){return!!(((K==null?0:K.showMoreText)||(K==null?0:K.visibleRowCount))&&(K==null?0:K.isCollapsible))};
_.V.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"}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.V.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.V.onIronResize=function(){var K=this;_.mx(this,"updateGridInitItems",function(){K.maybeUpdateInitialItemsDisplayed()})};
_.V.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var K=this.getVisibleWidth();K!==0&&(K=Math.floor(K/214)*(this.data.visibleRowCount||2),K!==this.initialCount&&(this.initialCount=K,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.V.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.V.computeExpandVisible=function(K,d,f,H){return K&&d&&f&&!!H&&!!H.showMoreText};
_.V.computeShowMoreButton=function(K){return{text:K,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.V.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.V.initCollapsed=function(){var K=this;this.ytLazyListBehavior.canShowMore=!1;var d;(this.collapsed=!((d=this.data)==null||!d.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.jW(this,function(){_.p1(K.hostElement,"yt-refit-popups-action")})};
_.V.fillRestIfNotCollapsible=function(){var K=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!K||this.ytLazyListBehavior.fillRemainingListItems()};
_.V.computeViewAllHidden=function(K,d){return K||!d.viewAllEndpoint};
Tt.prototype.fillRestIfNotCollapsible=Tt.prototype.fillRestIfNotCollapsible;Tt.prototype.initCollapsed=Tt.prototype.initCollapsed;Tt.prototype.onIronResize=Tt.prototype.onIronResize;Tt.prototype.persistentGuideChanged=Tt.prototype.persistentGuideChanged;_.x([_.l(_.Mg),_.B("design:type",Object)],Tt.prototype,"ironResizableBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Tt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kV.YtLazyListBehavior),_.B("design:type",Object)],Tt.prototype,"ytLazyListBehavior",void 0);_.x([_.l(_.Ws.YtNextContinuationBehavior),_.B("design:type",Object)],Tt.prototype,"ytNextContinuationBehavior",void 0);_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Tt.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.l(_.lY),_.B("design:type",Object)],Tt.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Tt.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],Tt.prototype,"collapsed",void 0);_.x([_.A(),_.B("design:type",Number)],Tt.prototype,"initialCount",void 0);_.x([_.A({computed:"computeShowMoreButton(data.showMoreText)"}),_.B("design:type",Object)],Tt.prototype,"showMoreButton",void 0);
_.x([_.A({computed:"computeIsCollapsible(data)"}),_.B("design:type",Object)],Tt.prototype,"isCollapsible",void 0);_.x([_.n8("#items"),_.B("design:type",HTMLElement)],Tt.prototype,"items",void 0);_.x([_.an("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"persistentGuideChanged",null);_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"onIronResize",null);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"initCollapsed",null);_.x([_.an("canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"fillRestIfNotCollapsible",null);Tt=_.x([_.Q({is:"ytd-grid-renderer",disableElementRegistration:!0})],Tt);
_.C(Tt,"ytd-grid-renderer",function(){if(Vgs!==void 0)return Vgs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Vgs=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var rC=function(){return _.q.apply(this,arguments)||this};
_.O(rC,_.q);
rC.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"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],rC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],rC.prototype,"data",void 0);rC=_.x([_.Q({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],rC);
_.C(rC,"ytd-carousel-ad-renderer",function(){if(K6H!==void 0)return K6H;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return K6H=K},{mode:1});var zz6;var qK=function(){return _.q.apply(this,arguments)||this};
_.O(qK,_.q);_.V=qK.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,qK.JSC$13254_CLICK_LOCATION_ID_MAP))};
_.V.onSitelinkTap=function(K){K.stopPropagation();var d,f,H=K==null?void 0:(d=K.model)==null?void 0:(f=d.item)==null?void 0:f.onTap;H&&this.ytSparklesClickLocationBehavior.handleClick(H,K,!1)};
_.V.onTap=function(K){var d=this.data&&this.data.content&&this.data.content.navigationEndpoint;d&&this.ytSparklesClickLocationBehavior.handleClick(d,K,!1)};
_.V.sendImpression=function(){if(this.data&&this.data.content)for(var K=_.y(this.data.content.impressionEndpoints||[]),d=K.next();!d.done;d=K.next()){d=_.y(d.value.loggingUrls||[]);for(var f=d.next();!f.done;f=d.next())f=f.value,f.baseUrl&&rR(f.baseUrl,f.attributionSrcMode)}};
qK.prototype.onTap=qK.prototype.onTap;qK.prototype.dataChanged=qK.prototype.dataChanged;qK.JSC$13254_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"]]);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.sL.YtSparklesClickLocationBehavior),_.B("design:type",Object)],qK.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qK.prototype,"data",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qK.prototype,"dataChanged",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qK.prototype,"onTap",null);qK=_.x([_.Q({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],qK);
_.C(qK,"ytd-promoted-sparkles-text-search-renderer",function(){if(zz6!==void 0)return zz6;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return zz6=K},{mode:1});var XfN;var QZ=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-mute-ad-action":"handleMuteAd"};return K};
_.O(QZ,_.q);_.V=QZ.prototype;
_.V.configureRendererStamper=function(){return{"data.menu":{id:_.M("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]]"}}}}}};
_.V.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.V.computeHasAdBadge=function(K){return!(K==null||!K.adBadge)};
_.V.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",QZ.JSC$13263_DEFAULT_AD_BADGE_RENDERER),_.pU(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,QZ.JSC$13263_CLICK_LOCATION_ID_MAP))};
_.V.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var K;(((K=this.data)==null?void 0:K.impressionCommands)||[]).forEach(function(d){d=_.y(d.loggingUrls||[]);for(var f=d.next();!f.done;f=d.next())f=f.value,f.baseUrl&&rR(f.baseUrl,f.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.V.onTap=function(K){var d,f=(d=this.data)==null?void 0:d.navigationEndpoint,H;(d=(H=this.data)==null?void 0:H.thumbnailNavigationEndpoint)&&_.QC(_.qn(K),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(d,K,!1):f&&this.ytSparklesClickLocationBehavior.handleClick(f,K,!1)};
_.V.handleMuteAd=function(){this.collapsed=!0};
_.V.attached=function(){var K=this;_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){_.M("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.x$.Object.defineProperties(QZ.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var K;return!(((K=this.data)==null?void 0:K.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var K;return!(((K=this.data)==null?void 0:K.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.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}}});
QZ.prototype.dataChanged=QZ.prototype.dataChanged;
QZ.JSC$13263_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"]]);
QZ.JSC$13263_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iB("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.x([_.l(YV),_.B("design:type",Object)],QZ.prototype,"ytdActiveViewBehavior",void 0);
_.x([_.l([_.kc.YtActionHandlerBehavior]),_.B("design:type",Object)],QZ.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.sL.YtSparklesClickLocationBehavior),_.B("design:type",Object)],QZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],QZ.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],QZ.prototype,"collapsed",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],QZ.prototype,"useBiggerThumbs",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.fy("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],QZ.prototype,"biggerThumbsStyle",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.B("design:type",Boolean)],QZ.prototype,"fixAlignmentSmallScreens",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs_square")}}),
_.B("design:type",Boolean)],QZ.prototype,"useBiggerThumbsSquare",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data.mediaHoverOverlay"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QZ.prototype,"hideHoverOverlay",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QZ.prototype,"webSearchLayout",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QZ.prototype,"webSearchLayoutLandscape",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QZ.prototype,"webSearchLayoutSquare",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QZ.prototype,"sparklesCtaNoBackground",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.actionButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QZ.prototype,"hideActionButton",null);_.x([_.A({computed:"computeButtonOverride(uiUpdate)"}),_.B("design:type",Object)],QZ.prototype,"buttonOverride",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.B("design:type",Boolean)],QZ.prototype,"hasNewAdBadge",void 0);_.x([_.W("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QZ.prototype,"useRoundedBadge",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QZ.prototype,"dataChanged",null);QZ=_.x([_.Q({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],QZ);
_.C(QZ,"ytd-promoted-sparkles-web-renderer",function(){if(XfN!==void 0)return XfN;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return XfN=K},{mode:1});var vi2;var jo=function(){return _.q.apply(this,arguments)||this};
_.O(jo,_.q);_.V=jo.prototype;_.V.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]]"}}}}}};
_.V.computeShowCta=function(K){return!(K==null||!K.ctaRenderer)};
_.V.onCtaClick=function(){var K,d,f,H=(K=this.data)==null?void 0:(d=K.ctaRenderer)==null?void 0:(f=d.buttonRenderer)==null?void 0:f.command;H&&this.ytComponentBehavior.resolveCommand(H)};
_.V.onWatchButtonClick=function(){var K,d,f,H=(K=this.data)==null?void 0:(d=K.watchButtonRenderer)==null?void 0:(f=d.buttonRenderer)==null?void 0:f.command;H&&this.ytComponentBehavior.resolveCommand(H)};
_.V.onTap=function(){};
_.V.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",jo.JSC$13266_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",jo.JSC$13266_DEFAULT_CLICK_LOCATION_BEHAVIOR,jo.JSC$13266_CLICK_LOCATION_ID_MAP),this.thumbnail)){var K=this.thumbnail.getElementsByTagName("a");K.length>0&&(K=K.namedItem("thumbnail"))&&K.removeAttribute("href")}};
_.V.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var K=_.y(this.data.impressionUrls),d=K.next();!d.done;d=K.next())d=d.value,XWO(d,MZn(d));this.data.impressionsFired=!0}};
_.V.maybeComputeHref=function(){return null};
_.V.computeIsShortDR=function(K){return!(K==null||!K.watchButtonRenderer)&&!(K==null||!K.ctaRenderer)&&!!this.enableShortDR};
_.V.computeIsNewUiOrShortDr=function(K){return!!this.enableUiUpdate||this.computeIsShortDR(K)};
_.V.computeIsNewUiAndNotShortDr=function(K){return!!this.enableUiUpdate&&!this.computeIsShortDR(K)};
_.V.computeHideAvatar=function(K){return!((K==null?0:K.channelThumbnail)&&this.computeIsNewUiOrShortDr(K))};
_.V.onClick=function(K){var d,f=(d=this.data)==null?void 0:d.navigationEndpoint;if(this.enableShortDR&&f&&(_.P(f,_.qu)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(f,K,!!_.P(f,_.qu)),K.stopPropagation();else if(f&&_.P(f,_.qu))this.ytSparklesClickLocationBehavior.handleClick(f,K,!0),K.stopPropagation();else if(f){var H,D;((H=this.data)==null?0:H.navigationEndpoint)&&((D=this.data)==null?0:D.adPlaybackContextParams)&&StG(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(f)}};
_.V.computeButtonOverride=function(K){if(this.computeIsNewUiOrShortDr(K))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.V.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.V.onThumbnailContainerClick=function(K){this.onClick(K)};
_.V.computeThumbnailWidth=function(K,d){return K?d==="MASSIVE"?600:d==="BIG"?500:d==="MEDIUM"?450:420:360};
_.V.attached=function(){var K=this;_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){_.M("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
jo.prototype.dataChanged=jo.prototype.dataChanged;jo.prototype.onTap=jo.prototype.onTap;jo.JSC$13266_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iB("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};jo.JSC$13266_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
jo.JSC$13266_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"}];_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.x([_.l(YV),_.B("design:type",Object)],jo.prototype,"ytdActiveViewBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],jo.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.sL.YtSparklesClickLocationBehavior),_.B("design:type",Object)],jo.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],jo.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],jo.prototype,"useBiggerThumbs",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("enable_video_display_compact_button_group_for_desktop_search")}}),
_.B("design:type",Boolean)],jo.prototype,"enableShortDR",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("enable_vac_ui_update_for_desktop_search")}}),
_.B("design:type",Boolean)],jo.prototype,"enableUiUpdate",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.fy("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],jo.prototype,"biggerThumbsStyle",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.B("design:type",Boolean)],jo.prototype,"showCta",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.B("design:type",Boolean)],jo.prototype,"isShortDr",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.B("design:type",Boolean)],jo.prototype,"isShortDrOrNewUi",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.B("design:type",Boolean)],jo.prototype,"isNewUiAndNotShortDr",void 0);_.x([_.A({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],jo.prototype,"buttonOverride",void 0);_.x([_.A({computed:"computeSecondaryButtonOverride(data)"}),_.B("design:type",Object)],jo.prototype,"secondaryButtonOverride",void 0);_.x([_.n8("ytd-thumbnail"),_.B("design:type",HTMLElement)],jo.prototype,"thumbnail",void 0);
_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jo.prototype,"onTap",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jo.prototype,"dataChanged",null);jo=_.x([_.Q({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],jo);
_.C(jo,"ytd-promoted-video-renderer",function(){if(vi2!==void 0)return vi2;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return vi2=K},{mode:1});var MgB;var Ce=function(){var K=_.q.apply(this,arguments)||this;K.useRoundedBadge=!0;K.sitelinkIds=[];return K};
_.O(Ce,_.q);_.V=Ce.prototype;
_.V.configureRendererStamper=function(){return{"data.menu":{id:_.M("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]]"}}}}}};
_.V.dataChanged=function(){var K;(K=this.data)!=null&&K.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Ce.JSC$13273_CLICK_LOCATION_ID_MAP)};
_.V.onTap=function(K){var d,f=(d=this.data)==null?void 0:d.navigationCommand;f&&!_.QC(_.qn(K),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(f,K,!1)};
_.V.onSitelinkTap=function(K){var d,f,H=K==null?void 0:(d=K.model)==null?void 0:(f=d.item)==null?void 0:f.onTap;H&&this.ytSparklesClickLocationBehavior.handleClick(H,K,!1)};
_.V.configureSitelinkClickTargets=function(){var K=this,d,f,H=(d=this.data)==null?void 0:(f=d.clickLocationTargets)==null?void 0:f.find(function(D){return D.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
H&&_.E(this.hostElement).querySelectorAll(".sitelink").forEach(function(D){_.pU(D,"yt-simple-endpoint",!0);K.sitelinkIds.push(D.id);var S,n;(S=K.ytSparklesClickLocationBehavior)==null||(n=S.clickTargetMap)==null||n.set(D.id,H)})};
_.V.sendImpression=function(){var K,d,f=((K=this.data)==null?void 0:(d=K.impressionCommand)==null?void 0:d.loggingUrls)||[];K=_.y(f);for(d=K.next();!d.done;d=K.next())d=d.value,d.baseUrl&&rR(d.baseUrl,d.attributionSrcMode)};
_.V.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.x$.Object.defineProperties(Ce.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Ce.prototype.onTap=Ce.prototype.onTap;Ce.prototype.dataChanged=Ce.prototype.dataChanged;Ce.JSC$13273_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"]]);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.sL.YtSparklesClickLocationBehavior),_.B("design:type",Object)],Ce.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ce.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ce.prototype,"showFavicon",null);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],Ce.prototype,"useBiggerThumbs",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.fy("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],Ce.prototype,"biggerThumbsStyle",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.B("design:type",Boolean)],Ce.prototype,"enableThumbnailScalingFix",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ce.prototype,"dataChanged",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ce.prototype,"onTap",null);Ce=_.x([_.Q({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Ce);
_.C(Ce,"ytd-text-image-no-button-layout-renderer",function(){if(MgB!==void 0)return MgB;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return MgB=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var PEJ;var x4=function(){var K=_.q.apply(this,arguments)||this;K.isInlinePlaybackState=!1;K.uiUpdate=_.M("web_modern_buttons");K.hideCta=_.M("hide_cta_for_home_web_video_ads");K.noBottomMargin=!1;K.animateInTimeStamp=_.di("hide_cta_for_home_web_video_ads_animate_in_time");K.animateInCta=!1;K.isHovered=!1;K.player=null;K.JSC$13280_playerEvents=new Map;K.JSC$13280_preventProgressSaveTimer=null;K.delayedCtaJobId=null;return K};
_.O(x4,_.q);_.V=x4.prototype;_.V.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]]"}}}}}};
_.V.attached=function(){this.JSC$13280_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13280_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.M("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.V.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13280_playerEvents)};
_.V.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",x4.JSC$13279_DEFAULT_CLICK_LOCATION_BEHAVIOR,x4.JSC$13279_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.V.hoverChanged=function(){var K=this;this.delayedCtaJobId&&(_.oc.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.M("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.uX(_.oc,function(){K.buttonContainer.classList.add("show-delayed-buttons")},_.di("delayed_cta_on_web_delay_milliseconds")))};
_.V.setPlayer=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return(d=_.p1(K.hostElement,"yt-get-inline-preview-player-action"))&&d[0]?_.I(f,d[0].getPlayerPromise(),3):f.jumpTo(0);K.player=f.yieldResult;K.ytPlayerListenerBehavior.listenToPlayerEvents(K.player,K.JSC$13280_playerEvents);_.iQ(f)})};
_.V.onPlaybackStart=function(){var K=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13280_preventProgressSaveTimer=_.pZ(_.oc,function(){K.JSC$13280_preventProgressSaveTimer=null},1E4))};
_.V.onVideoProgress=function(K){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&K>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.V.resetPreventProgressSaveTimer=function(){_.oc.cancelJob(this.JSC$13280_preventProgressSaveTimer);this.JSC$13280_preventProgressSaveTimer=null};
_.V.getSimpleString=function(K){return _.qQ(K)};
_.V.onClick=function(K){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var d,f=(d=this.data)==null?void 0:d.navigationEndpoint,H;d=(H=this.data)==null?void 0:H.channelEndpoint;var D,S;(H=(S=_.P((D=this.data)==null?void 0:D.adCtaButton,_.tQ))==null?void 0:S.command)&&_.QC(_.qn(K),this.hostElement,["call-to-action"])?_.M("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(H,K,!1):d&&_.QC(_.qn(K),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(d,K,!1):!_.QC(_.qn(K),this.hostElement,["secondary-button"])&&f&&(_.M("enable_short_dr_for_desktop_launchable")?(D=!!_.P(f,_.qu),this.isInlinePlaybackState&&D&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(f,K,D)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(f,K,!0)))}};
_.V.updateWatchEndpointStartTime=function(){var K,d;this.player&&((K=this.data)==null?0:K.inlinePlaybackEndpoint)&&((d=this.data)==null?0:d.navigationEndpoint)&&!this.JSC$13280_preventProgressSaveTimer&&(K=Math.floor(this.player.getCurrentTime()),_.P(this.data.navigationEndpoint,_.qu).startTimeSeconds=K,_.P(this.data.inlinePlaybackEndpoint,_.qu).startTimeSeconds=K)};
_.V.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.V.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.x$.Object.defineProperties(x4.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.M("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var K,d;return!((K=this.data)==null||!K.watchButton)&&!((d=this.data)==null||!d.adCtaButton)}}});
x4.prototype.hoverChanged=x4.prototype.hoverChanged;x4.prototype.dataChanged=x4.prototype.dataChanged;
x4.JSC$13279_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"]]);
x4.JSC$13279_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"}];
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],x4.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.sL.YtSparklesClickLocationBehavior),_.B("design:type",Object)],x4.prototype,"ytSparklesClickLocationBehavior",void 0);
_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],x4.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],x4.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x4.prototype,"isInlinePlaybackState",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],x4.prototype,"miniMode",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x4.prototype,"uiUpdate",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x4.prototype,"hideCta",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x4.prototype,"noBottomMargin",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x4.prototype,"animateInCta",void 0);_.x([_.A({computed:"computeButtonOverride(uiUpdate)"}),_.B("design:type",Object)],x4.prototype,"buttonOverride",void 0);
_.x([_.A({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.B("design:type",Object)],x4.prototype,"secondaryButtonOverride",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x4.prototype,"isHovered",void 0);_.x([_.n8("#button-container"),_.B("design:type",HTMLElement)],x4.prototype,"buttonContainer",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],x4.prototype,"typographyBump",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("typographyBump"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],x4.prototype,"typographyBumpV2",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x4.prototype,"dataChanged",null);_.x([_.SP("isHovered"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x4.prototype,"hoverChanged",null);
_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],x4.prototype,"isButtonGroup",null);x4=_.x([_.Q({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],x4);
_.C(x4,"ytd-ad-inline-playback-meta-block",function(){if(PEJ!==void 0)return PEJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return PEJ=K},{mode:_.p8("kevlar_poly_si_batch_j065")?1:2});var giJ;var Le=function(){var K=_.q.apply(this,arguments)||this;K.noBottomMargin=!1;K.isInlinePreviewTriggered=!1;K.JSC$13285_activeViewMeasurementDataResolver=_.Gz();return K};
_.O(Le,_.q);_.V=Le.prototype;_.V.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){var K=this;this.updateInlinePreviewHoverListeners();this.JSC$13285_activeViewMeasurementDataResolver.promise.then(function(d){K.ytdActiveViewBehavior.enableActiveViewMeasurement(d,15)});
_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){this.clearInlinePreviewHoverListeners();_.M("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13285_inlinePreviewHoverListener=Av({mediaRenderer:this,lockupElement:this.JSC$13285_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:lov})};
_.V.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13285_inlinePreviewHoverListener)==null||s8(K)};
_.V.onDataChanged=function(){var K;((K=this.data)==null?0:K.activeView)&&this.JSC$13285_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Le.JSC$13284_DEFAULT_CLICK_LOCATION_BEHAVIOR,Le.JSC$13284_CLICK_LOCATION_ID_MAP);this.thumbnail&&(K=this.thumbnail.getElementsByTagName("a"),K.length>0&&(K=K.namedItem("thumbnail"))&&K.removeAttribute("href"));var d,f;if(((d=this.data)==
null?0:d.hasAutoplay)||((f=this.data)==null?0:f.forceImpAutoplay)){var H;(H=this.JSC$13285_inlinePreviewHoverListener)==null||J7s(H)}};
_.V.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.V.onThumbnailContainerClick=function(K){if(this.data&&this.data.navigationEndpoint){var d,f=(d=this.data)==null?void 0:d.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(f,K,!!_.P(f,_.qu));K.stopPropagation()}};
_.V.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.V.impressionLog=function(){var K=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var d,f,H=(f=_.P((d=this.data)==null?void 0:d.onImpression,_.DE))==null?void 0:f.commands;H&&(H.forEach(function(D){D.clickTrackingParams&&delete D.clickTrackingParams;K.ytComponentBehavior.resolveCommand(D)}),this.data.impressionsFired=!0)}};
_.x$.Object.defineProperties(Le.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13285_inlinePreviewHoverListener)==null?0:tH(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Le.prototype.onTypographyBumpChanged=Le.prototype.onTypographyBumpChanged;Le.prototype.onDataChanged=Le.prototype.onDataChanged;Le.JSC$13284_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Le.JSC$13284_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"}];
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Le.prototype,"ytComponentBehavior",void 0);_.x([_.l(YV),_.B("design:type",Object)],Le.prototype,"ytdActiveViewBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],Le.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.l(_.AV),_.B("design:type",Object)],Le.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Le.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.sL.YtSparklesClickLocationBehavior),_.B("design:type",Object)],Le.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Le.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Le.prototype,"noBottomMargin",void 0);
_.x([_.A(),_.B("design:type",Object)],Le.prototype,"isInlinePreviewTriggered",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],Le.prototype,"miniMode",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],Le.prototype,"typographyBump",void 0);_.x([_.n8("ytd-thumbnail"),_.B("design:type",HTMLElement)],Le.prototype,"thumbnail",void 0);_.x([_.n8("#dismissible"),_.B("design:type",HTMLElement)],Le.prototype,"JSC$13285_dismissibleMedia",void 0);
_.x([_.n8("ytd-ad-inline-playback-meta-block"),_.B("design:type",HTMLElement)],Le.prototype,"adInlinePlaybackMetaBlock",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Le.prototype,"onDataChanged",null);_.x([_.an("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Le.prototype,"onTypographyBumpChanged",null);
_.x([_.W("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Le.prototype,"isHovered",null);Le=_.x([_.Q({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Le);
_.C(Le,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(giJ!==void 0)return giJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return giJ=K},{mode:1});var Ock;var Bs=function(){var K=_.q.apply(this,arguments)||this;K.isInlinePreviewTriggered=!1;K.JSC$13288_activeViewMeasurementDataResolver=_.Gz();return K};
_.O(Bs,_.q);_.V=Bs.prototype;_.V.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){var K=this;this.updateInlinePreviewHoverListeners();this.JSC$13288_activeViewMeasurementDataResolver.promise.then(function(d){K.ytdActiveViewBehavior.enableActiveViewMeasurement(d,15)})};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13288_inlinePreviewHoverListener=Av({mediaRenderer:this,lockupElement:this.JSC$13288_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:lov})};
_.V.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13288_inlinePreviewHoverListener)==null||s8(K)};
_.V.onDataChanged=function(){var K;((K=this.data)==null?0:K.activeView)&&this.JSC$13288_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Bs.JSC$13287_DEFAULT_CLICK_LOCATION_BEHAVIOR,Bs.JSC$13287_CLICK_LOCATION_ID_MAP);this.thumbnail&&(K=this.thumbnail.getElementsByTagName("a"),K.length>0&&(K=K.namedItem("thumbnail"))&&K.removeAttribute("href"))};
_.V.onThumbnailContainerClick=function(K){if(this.data&&this.data.navigationEndpoint){var d,f=(d=this.data)==null?void 0:d.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(f,K,!0);K.stopPropagation()}};
_.V.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.V.impressionLog=function(){var K=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var d,f,H=(f=_.P((d=this.data)==null?void 0:d.onImpression,_.DE))==null?void 0:f.commands;H&&(H.forEach(function(D){D.clickTrackingParams&&delete D.clickTrackingParams;_.eq().resolve(_.pQ).resolveCommand(D,{form:{element:K.hostElement}})}),this.data.impressionsFired=!0)}};
_.x$.Object.defineProperties(Bs.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13288_inlinePreviewHoverListener)==null?0:tH(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Bs.prototype.onDataChanged=Bs.prototype.onDataChanged;Bs.JSC$13287_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Bs.JSC$13287_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"}];_.x([_.l(YV),_.B("design:type",Object)],Bs.prototype,"ytdActiveViewBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Bs.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],Bs.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],Bs.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Bs.prototype,"ytdReduxBehavior",void 0);
_.x([_.l(_.sL.YtSparklesClickLocationBehavior),_.B("design:type",Object)],Bs.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Bs.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Bs.prototype,"isInlinePreviewTriggered",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],Bs.prototype,"miniMode",void 0);_.x([_.n8("ytd-thumbnail"),_.B("design:type",HTMLElement)],Bs.prototype,"thumbnail",void 0);
_.x([_.n8("#dismissible"),_.B("design:type",HTMLElement)],Bs.prototype,"JSC$13288_dismissibleMedia",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bs.prototype,"onDataChanged",null);_.x([_.W("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Bs.prototype,"isHovered",null);Bs=_.x([_.Q({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Bs);
_.C(Bs,"ytd-video-display-full-buttoned-renderer",function(){if(Ock!==void 0)return Ock;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Ock=K},{mode:1});var KY=function(K,d,f,H){H=H===void 0?!1:H;_.KB.call(this,K);this.adsClientErrorMessage=f;this.aggressivelySample=H;this.args=[];d&&this.args.push(d)};
_.O(KY,_.KB);var ei=function(K,d,f,H){H=H===void 0?!1:H;_.KB.call(this,K);this.adsClientErrorMessage=f;this.aggressivelySample=H;this.args=[];d&&this.args.push(d)};
_.O(ei,_.KB);var Nof=function(K){_.gG.call(this);var d=this;this.initializationFunction=K;this.instance=null;this.addOnDisposeCallback(function(){_.kh(d.instance);d.instance=null})};
_.O(Nof,_.gG);Nof.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Lt("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var iaz=function(){var K=new Map;[].forEach(function(d){K.set(d.JSC$26862_getType(),d)})};new Promise(function(){});var DAn=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"]]),f0G=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"}]]),Yqv=function(K){this.experimentApiProvider=K;K=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=K<.1};var J2=function(K,d,f,H){_.gG.call(this);this.adsControlFlowEventListeners=d;this.adEventLogger=f;this.experimentApiProvider=H;this.adsControlFlowManagerHelper=K(this,this,this,this,this);_.cy(this,this.adsControlFlowManagerHelper);K=_.y(d);for(d=K.next();!d.done;d=K.next())_.cy(this,d.value)};
_.O(J2,_.gG);var tgH=function(K,d,f,H){sR(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",d,f,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H);K=_.y(K.adsControlFlowEventListeners);for(H=K.next();!H.done;H=K.next())tgH(H.value,d,f)};
_.V=J2.prototype;_.V.onOpportunityProcessedExternallyManaged=function(K,d,f,H){sR(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",K,f,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H)};
_.V.onSlotReceivedExternallyManaged=function(K,d){k4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",K,d)};
_.V.onSlotEntered=function(K){if(wC(this.adsControlFlowManagerHelper,K)!=null){k4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",K);this.adsControlFlowManagerHelper.onSlotEntered(K);for(var d=_.y(this.adsControlFlowEventListeners),f=d.next();!f.done;f=d.next())f.value.onSlotEntered(K);if(wC(this.adsControlFlowManagerHelper,K)!=null&&wC(this.adsControlFlowManagerHelper,K).isOccupyingSlotType()&&ZV(this.adsControlFlowManagerHelper,K)&&!oi9(this.adsControlFlowManagerHelper,K)){var H;eo(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",K,(H=ZV(this.adsControlFlowManagerHelper,K))!=null?H:void 0);K=wC(this.adsControlFlowManagerHelper,K);K.slotLifecycleStage!=="entered"&&pe(K.slot,K.slotLifecycleStage,"enterLayoutForSlot");K.slotLifecycleStage="rendering";K.registeredLayoutRenderingAdapter.startRendering(K.layout)}}};
_.V.onSlotExited=function(K){if(wC(this.adsControlFlowManagerHelper,K)!=null){k4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",K);this.adsControlFlowManagerHelper.onSlotExited(K);for(var d=_.y(this.adsControlFlowEventListeners),f=d.next();!f.done;f=d.next())f.value.onSlotExited(K);wC(this.adsControlFlowManagerHelper,K)!=null&&wC(this.adsControlFlowManagerHelper,K).markedForUnscheduleAfterOutboundAdapterRequests&&$6H(this,K)}};
_.V.onLayoutReceivedExternallyManaged=function(K,d,f){K.managerLayer!=="core"&&eo(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",K,d,f)};
var Ei4=function(K,d,f){if(wC(K.adsControlFlowManagerHelper,d)!=null){eo(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",d,f);K=_.y(K.adsControlFlowEventListeners);for(var H=K.next();!H.done;H=K.next())Ei4(H.value,d,f)}};
J2.prototype.onLayoutExited=function(K,d,f){if(wC(this.adsControlFlowManagerHelper,K)!=null){eo(this.adEventLogger,Hao(f),K,d);this.adsControlFlowManagerHelper.onLayoutExited(K,d);for(var H=_.y(this.adsControlFlowEventListeners),D=H.next();!D.done;D=H.next())D.value.onLayoutExited(K,d,f);(f=ZV(this.adsControlFlowManagerHelper,K))&&d.layoutId===f.layoutId&&hzv(this,K)}};
J2.prototype.disposeInternal=function(){var K=bcN(this.adsControlFlowManagerHelper);K=_.y(K);for(var d=K.next();!d.done;d=K.next())$6H(this,d.value);_.gG.prototype.disposeInternal.call(this)};
var $6H=function(K,d){if(wC(K.adsControlFlowManagerHelper,d)!=null)if(wC(K.adsControlFlowManagerHelper,d).JSC$26893_isSlotExitRequested()||wC(K.adsControlFlowManagerHelper,d).JSC$26893_isLayoutExitRequested())wC(K.adsControlFlowManagerHelper,d).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(wC(K.adsControlFlowManagerHelper,d).isOccupyingSlotType())wC(K.adsControlFlowManagerHelper,d).markedForUnscheduleAfterOutboundAdapterRequests=!0,hzv(K,d);else if(wC(K.adsControlFlowManagerHelper,d).JSC$26893_isSlotFillRequested())wC(K.adsControlFlowManagerHelper,
d).markedForUnscheduleAfterOutboundAdapterRequests=!0,wC(K.adsControlFlowManagerHelper,d)!=null&&(k4(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",d),d=wC(K.adsControlFlowManagerHelper,d),d.fulfillmentLifecycleStage="fill_cancel_requested",d.registeredFulfillmentAdapter.cancelSlotFilling());else{var f=ZV(K.adsControlFlowManagerHelper,d),H;K.experimentApiProvider.get();(H=_.M("h5_enable_layout_unscheduling_events"))&&(f?m6s(K,d,f):_.Lt(Error("Gh"),d,f,void 0,!1));k4(K.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",d);var D=wC(K.adsControlFlowManagerHelper,d),S=d.slotEntryTrigger,n=D.registeredSlotEntryTriggerAdapters.get(S.triggerId);n&&(n.unregisterTrigger(S),D.registeredSlotEntryTriggerAdapters.delete(S.triggerId));S=_.y(d.slotFulfillmentTriggers);for(n=S.next();!n.done;n=S.next()){n=n.value;var u=D.registeredFulfillmentTriggerAdapters.get(n.triggerId);u&&(u.unregisterTrigger(n),D.registeredFulfillmentTriggerAdapters.delete(n.triggerId))}S=_.y(d.slotExpirationTriggers);
for(n=S.next();!n.done;n=S.next())if(n=n.value,u=D.registeredExpirationTriggerAdapters.get(n.triggerId))u.unregisterTrigger(n),D.registeredExpirationTriggerAdapters.delete(n.triggerId);D.hasLayout()&&(S=D.layout,K9(D,S.layoutExitNormalTriggers),K9(D,S.layoutExitSkipTriggers),K9(D,S.layoutExitMuteTriggers),K9(D,S.layoutExitUserInputSubmittedTriggers),K9(D,S.layoutExitUserCancelledTriggers));D.registeredFulfillmentAdapter=void 0;D.registeredSlotAdapter!=null&&(D.registeredSlotAdapter.release(),D.registeredSlotAdapter=
void 0);D.registeredLayoutRenderingAdapter!=null&&(D.registeredLayoutRenderingAdapter.release(),D.registeredLayoutRenderingAdapter=void 0);D=K.adsControlFlowManagerHelper;wC(D,d)&&(D=l$t(D,d.slotType+"_"+d.slotPhysicalPosition))&&D.delete(d.slotId);k4(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",d);K=_.y(K.adsControlFlowEventListeners);for(D=K.next();!D.done;D=K.next())D=D.value,D.onSlotUnscheduled(d),f&&!H&&m6s(D,d,f)}},m6s=function(K,d,f){eo(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
d,f);
eo(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",d,f);K=_.y(K.adsControlFlowEventListeners);for(var H=K.next();!H.done;H=K.next())H=H.value,f&&m6s(H,d,f)},hzv=function(K,d){if(wC(K.adsControlFlowManagerHelper,d)!=null&&wC(K.adsControlFlowManagerHelper,d).isOccupyingSlotType()){var f=ZV(K.adsControlFlowManagerHelper,d);
if(f&&oi9(K.adsControlFlowManagerHelper,d)){if(wC(K.adsControlFlowManagerHelper,d)!=null){var H=K.adEventLogger,D;var S=((D=f0G.get("abandoned"))==null?void 0:D.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";eo(H,S,d,f);K=wC(K.adsControlFlowManagerHelper,d);K.slotLifecycleStage!=="rendering"&&pe(K.slot,K.slotLifecycleStage,"exitLayout");K.slotLifecycleStage="rendering_stop_requested";K.registeredLayoutRenderingAdapter.stopRendering(f,"abandoned")}}else{k4(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
d);try{H=wC(K.adsControlFlowManagerHelper,d);if(!H)throw new ei("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");H.slotLifecycleStage!=="enter_requested"&&H.slotLifecycleStage!=="entered"&&H.slotLifecycleStage!=="rendering"&&pe(H.slot,H.slotLifecycleStage,"exitSlot");H.slotLifecycleStage="exit_requested";if(H.registeredSlotAdapter===void 0)throw H.slotLifecycleStage="scheduled",new ei("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
H.registeredSlotAdapter.exit()}catch(n){n instanceof ei&&n.adsClientErrorMessage?(W6J(K.adEventLogger,n.adsClientErrorMessage,d),_.Lt(n,d,void 0,void 0,n.aggressivelySample)):(W6J(K.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",d),_.Lt(n,d))}}}};var dt=function(K,d,f,H,D,S){_.gG.call(this);this.registry=K;this.experimentApiProvider=S;this.slotMap=new Map};
_.O(dt,_.gG);var l$t=function(K,d){return(K=K.slotMap.get(d))?K:new Map},wC=function(K,d){return l$t(K,d.slotType+"_"+d.slotPhysicalPosition).get(d.slotId)},bcN=function(K){var d=[];
K.slotMap.forEach(function(f){f=_.y(f.values());for(var H=f.next();!H.done;H=f.next())d.push(H.value.slot)});
return d};
dt.prototype.onSlotEntered=function(K){K=wC(this,K);K.slotLifecycleStage!=="enter_requested"&&pe(K.slot,K.slotLifecycleStage,"onSlotEntered");K.slotLifecycleStage="entered"};
var oi9=function(K,d){K=wC(K,d);return K.hasLayout()&&K.isRendering()},ZV=function(K,d){(K=wC(K,d))?K.hasLayout()&&!K.layout&&_.Lt("Unexpected empty layout",d):_.Lt("Unexpected undefined slotState",d);
return(K==null?void 0:K.layout)||null};
dt.prototype.onSlotExited=function(K){K=wC(this,K);K.slotLifecycleStage!=="exit_requested"&&pe(K.slot,K.slotLifecycleStage,"onSlotExited");K.slotLifecycleStage="scheduled"};
dt.prototype.onLayoutExited=function(K,d){K=wC(this,K);K.isPrimaryLayout(d)&&(K.slotLifecycleStage!=="rendering_stop_requested"&&pe(K.slot,K.slotLifecycleStage,"onLayoutExited"),K.slotLifecycleStage="entered")};
var K9=function(K,d){d=_.y(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var H=K.registeredLayoutExitTriggerAdapters.get(f.triggerId);H&&(H.unregisterTrigger(f),K.registeredLayoutExitTriggerAdapters.delete(f.triggerId))}},pe=function(K,d,f){_.Lt("Slot stage was "+d+" when calling method "+f,K)};var AK2=function(K){_.gG.call(this);this.deps=K;this.JSC$13337_adsControlFlowManager=GRf(this)};
_.O(AK2,_.gG);var GRf=function(K){var d=new J2(function(f,H,D,S){return new dt(K.deps.registry,f,H,D,S,K.deps.experimentApiProvider)},new Set(nOG(K.deps.registry).concat(K.deps.listeners)),K.deps.adEventLogger,K.deps.experimentApiProvider);
_.cy(K,d);return d};var To6=function(K,d){_.gG.call(this);this.experimentApiProvider=K;this.eventLoggingSettingsProvider=d;this.eventCount=0};
_.O(To6,_.gG);To6.prototype.logEvent=function(K){sR(this,K)};
var k4=function(K,d,f,H){sR(K,d,void 0,void 0,void 0,f,void 0,void 0,void 0,f.adSlotLoggingData,void 0,void 0,H)},eo=function(K,d,f,H,D){sR(K,d,void 0,void 0,void 0,f,H?H:void 0,void 0,void 0,f.adSlotLoggingData,H?H.adLayoutLoggingData:void 0,void 0,D)},W6J=function(K,d,f){sR(K,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,f,void 0,void 0,void 0,f.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:d})},sR=function(K,d,f,H,D,S,n,u,a,R,F,z,v){v=v===void 0?0:v;
rK2(K.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+d,"slot:",S,"layout:",n,"ping:",u,"Opportunity:",{opportunityType:f,associatedSlotId:H,slotsFromOpportunity:D,triggerBundle:a,adSlotLoggingData:R,adLayoutLoggingData:F});try{var g=function(){K.experimentApiProvider.get();if(d!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){d||_.Lt("Empty PACF event type",S,n);var N=K.eventLoggingSettingsProvider.get();var h;(h=N.alwaysIncludeDebugData)||(N.experimentApiProvider.get(),h=
!1);N=h;h={eventType:d,eventOrder:++K.eventCount};var m={};S&&(m.slotData=SD5(N,S));if(n){var T={type:n.layoutType,controlFlowManagerLayer:DAn.get(n.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};N&&(T.debugData={layoutId:n.layoutId});m.layoutData=T}u&&(m.pingData={pingDispatchStatus:u.dispatchStatus,serializedAdPingMetadata:u.ping.serializedAdPingMetadata,pingIndex:u.index});a&&(m.triggerData=VF5(a.trigger,a.category));f&&(m.opportunityData=yEz(N,f,H,D));h.adClientData=m;R&&(h.serializedSlotAdServingData=
R.serializedSlotAdServingDataEntry);F&&(h.serializedAdServingData=F.serializedAdServingDataEntry);z&&(h.errorInfo=z);_.t3("adsClientStateChange",{adsClientEvent:h})}};
v&&v>0?_.va(_.Xm(),function(){return g()},v):g()}catch(N){rK2(K.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.va(_.Xm(),function(){_.Lt(N instanceof Error?N:String(N),S,n,{pacf_message:"exception during pacf logging"})})}};var qq4=function(K,d){To6.call(this,K,d)};
_.O(qq4,To6);var QK9=function(){},rK2=function(K,d){return _.M(d)};var CEB=function(){var K=new jKL;this.JSC$13356_adsControlFlowManager=(new AK2(K)).JSC$13337_adsControlFlowManager},jKL=function(){_.gG.call(this);
var K=this;this.experimentApiProvider=new Nof(function(){return new QK9});
var d=new Nof(function(){return new Yqv(K.experimentApiProvider)});
this.adEventLogger=new qq4(this.experimentApiProvider,d);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.O(jKL,_.gG);var x6s=function(){},L6B,f9=function(){L6B||(L6B=new x6s);
return L6B},HS=function(K){if(!K.JSC$13367_externallyManagedSlotAdapterCallback){var d=(new CEB).JSC$13356_adsControlFlowManager;
K.JSC$13367_externallyManagedSlotAdapterCallback=d}return K.JSC$13367_externallyManagedSlotAdapterCallback},BoJ=function(K,d,f){var H=d.opportunityType,D=Error("Hh");
if(H!==void 0){var S=HS(K);tgH(S,H,void 0,f)}else _.Lt(D,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});S=[];if(d.adSlotAndLayoutMetadata!==void 0){d=_.y(d.adSlotAndLayoutMetadata);for(var n=d.next();!n.done;n=d.next()){var u=n.value;if(n=u.adSlotMetadata)if(S.push(n),K.onSlotReceivedExternallyManaged(n,f),u.adLayoutMetadata){u=_.y(u.adLayoutMetadata);for(var a=u.next();!a.done;a=u.next())K.onLayoutReceivedExternallyManaged(n,a.value,f)}else f>0&&_.Lt("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else f>0&&_.Lt("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else f>0&&_.Lt("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(H!==void 0)K.onOpportunityProcessedExternallyManaged(H,S,void 0,f);else _.Lt(D,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
x6s.prototype.onSlotReceivedExternallyManaged=function(K,d){K=pt(K);if(K instanceof ei)_.Lt(K,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else HS(this).onSlotReceivedExternallyManaged(K,d)};
x6s.prototype.onLayoutReceivedExternallyManaged=function(K,d,f){K=pt(K);d=cEz(d);if(K instanceof ei)_.Lt(K,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(d instanceof KY)_.Lt(d,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else HS(this).onLayoutReceivedExternallyManaged(K,d,f)};
x6s.prototype.onOpportunityProcessedExternallyManaged=function(K,d,f,H){var D=[];d=_.y(d);for(var S=d.next();!S.done;S=d.next())S=pt(S.value),S instanceof ei?_.Lt(S,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):D.push(S);HS(this).onOpportunityProcessedExternallyManaged(K,D,f,H)};
var JKv=function(K,d){d=pt(d);if(d instanceof ei)_.Lt(d,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var f=HS(K);k4(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",d);f=_.y(f.adsControlFlowEventListeners);for(var H=f.next();!H.done;H=f.next())H=wC(H.value,d),H.slotLifecycleStage!=="not_scheduled"&&pe(H.slot,H.slotLifecycleStage,"onSlotScheduled"),H.slotLifecycleStage="scheduled";K=HS(K);k4(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",d);K=_.y(K.adsControlFlowEventListeners);
for(f=K.next();!f.done;f=K.next())f.value.onSlotEntered(d)}},sK6=function(K,d){d=pt(d);
if(d instanceof ei)_.Lt(d,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var f=HS(K);k4(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",d);f=_.y(f.adsControlFlowEventListeners);for(var H=f.next();!H.done;H=f.next())H.value.onSlotExited(d);K=HS(K);k4(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",d);K=_.y(K.adsControlFlowEventListeners);for(f=K.next();!f.done;f=K.next())f.value.onSlotUnscheduled(d)}},kRN=function(K,d,f){d=pt(d);
f=cEz(f);if(d instanceof ei)_.Lt(d,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(f instanceof KY)_.Lt(f,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var H=HS(K);eo(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",d,f);H=_.y(H.adsControlFlowEventListeners);for(var D=H.next();!D.done;D=H.next())D.value.onLayoutScheduled(d,f);K=HS(K);eo(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",d,f);K=_.y(K.adsControlFlowEventListeners);
for(H=K.next();!H.done;H=K.next())Ei4(H.value,d,f)}},DJ=function(K,d,f){d=pt(d);
f=cEz(f);if(d instanceof ei)_.Lt(d,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(f instanceof KY)_.Lt(f,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var H=HS(K);eo(H.adEventLogger,Hao("normal"),d,f);H=_.y(H.adsControlFlowEventListeners);for(var D=H.next();!D.done;D=H.next())D.value.onLayoutExited(d,f,"normal");K=HS(K);K=_.y(K.adsControlFlowEventListeners);for(H=K.next();!H.done;H=K.next())m6s(H.value,d,f)}};_.Vy=_.C8(function(K){var d=_.jP(K,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});K=Object.assign({},d);var f=d.data;d=d.customCommandResolver;var H=(delete K.data,delete K.customCommandResolver,K),D=_.Co();_.T1(D,function(){return f().interaction},d,function(){var u;
return(u=H.listenToTapEvent)==null?void 0:u.call(H)});
_.wU(D,{visibilityCallback:function(u){var a,R=(a=f().interaction)==null?void 0:a.onFirstVisible;u&&(R&&_.me(R),H.setOnErrorHandler()&&uPz(D))},
showOption:_.LW});K=_.y(_.cC(!1,void 0,"eiYvIe"));var S=K.next().value,n=K.next().value;return _.U("ad-image-view-model",{class:function(){var u,a=[((u=f().interaction)==null?0:u.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],R;((R=H.isGridViewEnabled)==null?0:R.call(H))&&a.push("ytwAdImageViewModelHostInGridView");return a.join(" ")},
el:D,"on:touchend":_.cp(function(){var u;((u=H.setTouchEndHandler)==null?0:u.call(H))&&!S()&&(D.value.click(),n(!0),setTimeout(function(){n(!1)},100));
return!1})},_.U("div",{class:"ytwAdImageViewModelHostImageContainer"},_.U(_.jV,{data:function(){var u;
return{sources:f().imageSources,contentMode:(u=f().imageProperties)==null?void 0:u.contentMode}},
alt:function(){var u,a;return((u=f().interaction)==null?void 0:(a=u.accessibility)==null?void 0:a.label)||""},
targetHeight:H.targetHeight,targetWidth:H.targetWidth,preserveHeight:H.preserveHeight,preserveWidth:H.preserveWidth,useWidth:H.useWidth,style:function(){var u,a;return"vertical-align: bottom;"+(((u=f().background)==null?0:u.color)?"background-color:"+_.E1((a=f().background)==null?void 0:a.color)+";":"")},
className:function(){return H.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var u,a;return(a=(u=H.setDraggable)==null?void 0:u.call(H))!=null?a:void 0}})))},"cb");var wf8=_.C8(function(K){var d=K.data,f=K.listenToTapEvent,H=_.Co();_.M("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.T1(H,function(){return d().interaction},void 0,function(){return f==null?void 0:f()});
_.wU(H,{visibilityCallback:function(S){var n,u=(n=d().interaction)==null?void 0:n.onFirstVisible;S&&u&&_.me(u)},
showOption:_.LW});var D=function(){};
return _.U("ad-button-hover-overlay-view-model",{"on:click":_.cp(function(){if(_.M("enable_web_home_top_landscape_image_layout_legacy_click_command")){var S,n=(S=d().interaction)==null?void 0:S.onTap;n&&_.Zp(H.value,"yt-navigate",{endpoint:_.$A(n)})}}),
class:function(){var S;return((S=d().interaction)==null?0:S.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:H},function(){return _.M("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.U(_.z1,{data:function(){return d().button}},{adButtonViewModel:function(S){return _.U(_.JH,{data:S.data,
customCommandResolver:D})}}):_.U(_.z1,{data:function(){return d().button}},{adButtonViewModel:_.JH})}())},"db");var d3;_.sP(_.C8(function(K){var d=K.data;var f=_.Co();_.M("stop_av_measurement_on_detach")&&_.$F(function(){H$(f)});
_.T1(f,function(){return d().interaction},void 0,function(){return!0});
_.wU(f,{visibilityCallback:function(S){if(S){var n;(S=(n=d().interaction)==null?void 0:n.onFirstVisible)&&_.me(S);var u;if(n=(u=d().adLayoutData)==null?void 0:u.activeViewData)fY(f,n),_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&H$(f)})}else _.M("stop_av_measurement_on_detach")&&H$(f)},
showOption:_.LW,hideOption:Bz});K=_.y(_.cC(!1,void 0,"yzu6qe"));var H=K.next().value,D=K.next().value;return _.U("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:f,"on:mouseenter":_.cp(function(){D(!0)}),
"on:mouseleave":_.cp(function(){D(!1)})},_.U("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.Im({"max-width":function(){return _.M("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.U("div",{class:function(){var S;
a:{var n;switch((S=_.P(d().thumbnailImage,UI))==null?void 0:(n=S.imageProperties)==null?void 0:n.renderingAspect){case "RENDERING_ASPECT_SQUARE":S="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":S="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}S=void 0}return S}},_.U(_.z1,{data:function(){return d().thumbnailImage}},{adImageViewModel:function(S){return _.U(_.Vy,
{data:S.data,
listenToTapEvent:!0,setTouchEndHandler:_.M("enable_top_landscape_image_experiment_dom_id_web")})}})),_.U("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.U(_.X,{cond:function(){var S,n,u;
return(S=_.P(d().thumbnailImage,UI))==null?void 0:(n=S.imageProperties)==null?void 0:(u=n.overlayIcon)==null?void 0:u.iconImage},
then:function(S){return _.U(_.jV,{data:S,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.U("div",{class:function(){return H()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.U(_.z1,{data:function(){return d().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(S){return _.U(wf8,
{data:S.data,
listenToTapEvent:!0})}}))),_.U("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.U(_.z1,{data:function(){return d().feedAdMetadata}},{feedAdMetadataViewModel:function(S){return _.U(yZH,{data:S.data,
listenToTapEvent:!0,setTouchEndHandler:_.M("enable_top_landscape_image_experiment_dom_id_web")})}})))},"eb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=K.data;var f=_.Co();_.M("stop_av_measurement_on_detach")&&_.$F(function(){H$(f)});
var H=_.th(_.Ek);_.T1(f,function(){return d().interaction});
_.wU(f,{visibilityCallback:function(R){if(R){var F;(R=(F=d().interaction)==null?void 0:F.onFirstVisible)&&_.me(R);var z;if(F=(z=d().adLayoutData)==null?void 0:z.activeViewData)fY(f,F),_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&H$(f)})}else _.M("stop_av_measurement_on_detach")&&H$(f)},
showOption:_.LW,hideOption:Bz});var D=_.cp(function(R){var F,z,v=(F=_.P(d().adImage,UI))==null?void 0:(z=F.interaction)==null?void 0:z.onTap;v&&(_.M("enable_square_image_components_ui_web_with_custom_event")?_.Zp(f.value,"yt-navigate",{endpoint:_.$A(v)}):Q5z(R,v))}),S=_.cp(function(){var R,F,z=(R=_.P(d().adButton,dvs))==null?void 0:(F=R.interaction)==null?void 0:F.onTap;
z&&_.Zp(f.value,"yt-navigate",{endpoint:_.$A(z)})}),n=function(){};
K={};var u={},a={};return _.U("square-image-layout-view-model",{class:_.SC("ytwSquareImageLayoutViewModelHost",(K.ytwSquareImageLayoutViewModelHostColumn=H,K)),el:f},_.U("div",{class:_.SC("ytwSquareImageLayoutViewModelHostImage",(u.ytwSquareImageLayoutViewModelHostColumnImage=H,u))},function(){return _.M("enable_square_image_components_ui_web_with_native_img")?_.U("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var R,F,z;return((R=_.P(d().adImage,UI))==null?void 0:(F=R.imageSources)==
null?void 0:(z=F[0])==null?void 0:z.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":D}):_.U(_.z1,{data:function(){return d().adImage}},{adImageViewModel:function(R){return _.U(_.Vy,{data:R.data,
isGridViewEnabled:H,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.U("div",{class:_.SC("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(a.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=H,a))},_.U(_.z1,{data:function(){return d().feedAdMetadata}},{feedAdMetadataViewModel:yZH}),function(){return _.M("enable_square_image_components_ui_web_with_float_button")?_.U("div",{"on:click":S},_.U(_.z1,{data:function(){return d().adButton}},
{adButtonViewModel:function(R){var F={};
return _.U(_.JH,{data:R.data,customCommandResolver:n,className:_.SC((F.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,F.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=H,F))})}})):_.U(_.z1,{data:function(){return d().adButton}},{adButtonViewModel:function(R){var F={};
return _.U(_.JH,{data:R.data,className:_.SC((F.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,F.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=H,F))})}})}()))},"fb"),"square-image-layout-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=K.data;var f=K.noBottomMargin;var H=K.typographyBump;var D=_.Co();_.M("stop_av_measurement_on_detach")&&_.$F(function(){H$(D)});
_.M("enable_web_home_top_landscape_image_layout_level_click")&&_.T1(D,function(){return d().interaction},void 0,function(){return!0});
K=function(){return d().interaction};
K!==void 0&&K!==null||_.rF(Error("Ih"));_.wU(D,{visibilityCallback:function(R){if(R){var F;(R=(F=d().interaction)==null?void 0:F.onFirstVisible)&&_.me(R);var z;if(F=(z=d().adLayoutData)==null?void 0:z.activeViewData)fY(D,F),_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&H$(D)})}else _.M("stop_av_measurement_on_detach")&&H$(D)},
showOption:_.LW,hideOption:Bz});var S=function(){var R,F,z;return(R=_.P(d().thumbnailImage,UI))==null?void 0:(F=R.background)==null?void 0:(z=F.backgroundImageSource)==null?void 0:z.imageSources};
K=_.y(_.cC(!1,void 0,"GIwTMc"));var n=K.next().value,u=K.next().value,a=function(){return n()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.U("top-landscape-image-layout-view-model",{class:function(){var R;return((R=d().interaction)==null?0:R.onTap)&&_.M("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:D,"on:mouseenter":_.cp(function(){u(!0)}),
"on:mouseleave":_.cp(function(){u(!1)})},_.U("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.U(_.X,{cond:function(){return S()&&S().length>0},
then:function(){return _.U("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Im({top:"0","background-image":function(){return"url("+String(S()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.U(_.X,{cond:function(){return!!d().adButtonHoverOverlay},
then:function(){return _.U("div",{class:a},_.U(_.z1,{data:function(){return d().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:wf8}))}}),_.U("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.U(_.z1,{data:function(){return d().thumbnailImage}},{adImageViewModel:function(R){return _.U(_.Vy,{data:R.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.M("enable_web_home_top_landscape_image_layout_level_click")})}})),_.U("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.U(_.jV,{data:{sources:[{clientResource:{imageName:_.M("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.U("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.U(_.z1,{data:function(){return d().feedAdMetadata}},{feedAdMetadataViewModel:function(R){return _.U(yZH,{data:R.data,
noBottomMargin:function(){return f==null?void 0:f()},
listenToTapEvent:function(){return _.M("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return H==null?void 0:H()}})}})))},"gb"),"top-landscape-image-layout-view-model",{props:{data:_.rs,
noBottomMargin:_.rs,typographyBump:_.rs}});_.sP(_.C8(function(K){var d=K.data;var f=K.typographyBump;var H=_.Co();_.M("stop_av_measurement_on_detach")&&_.$F(function(){H$(H)});
_.wU(H,{visibilityCallback:function(D){if(D){var S;(D=(S=d().interaction)==null?void 0:S.onFirstVisible)&&_.me(D);var n;if(S=(n=d().adLayoutData)==null?void 0:n.activeViewData)fY(H,S),_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&H$(H)})}else _.M("stop_av_measurement_on_detach")&&H$(H)},
showOption:_.LW,hideOption:Bz});return _.U("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:H},_.U("div",null,_.U(_.z1,{data:function(){return d().videoLockup}},{lockupViewModel:function(D){return _.U(_.ef,{data:D.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:f})}})))},"hb"),"video-display-button-group-layout-view-model",{props:{data:_.rs,
noBottomMargin:_.rs,typographyBump:_.rs}});_.sP(_.C8(function(K){var d=K.data;var f=K.className;var H=K.typographyBump;var D=_.Co();_.wU(D,{visibilityCallback:function(S){if(S){var n;(S=(n=d().interaction)==null?void 0:n.onFirstVisible)&&_.me(S);var u;(n=(u=d().adLayoutData)==null?void 0:u.activeViewData)&&fY(D,n)}},
showOption:_.LW});return _.U("video-display-compact-button-group-layout-view-model",{el:D,class:_.SC("videoDisplayCompactButtonGroupLayoutViewModelHost",f)},_.U(_.z1,{data:function(){return d().videoLockup}},{lockupViewModel:function(S){return _.U(_.ef,{data:S.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:H})}}))},"ib"),"video-display-compact-button-group-layout-view-model",{props:{data:_.rs,
className:_.rs,typographyBump:_.rs}});_.sP(_.C8(function(K){var d=K.data;var f=K.typographyBump;var H=_.Co();_.M("stop_av_measurement_on_detach")&&_.$F(function(){H$(H)});
_.wU(H,{visibilityCallback:function(D){if(D){var S;(D=(S=d().interaction)==null?void 0:S.onFirstVisible)&&_.me(D);var n;if(S=(n=d().adLayoutData)==null?void 0:n.activeViewData)fY(H,S),_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&H$(H)})}else _.M("stop_av_measurement_on_detach")&&H$(H)},
showOption:_.LW,hideOption:Bz});return _.U("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:H},_.U("div",null,_.U(_.z1,{data:function(){return d().videoLockup}},{lockupViewModel:function(D){return _.U(_.ef,{data:D.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:f})}})))},"jb"),"video-display-full-layout-view-model",{props:{data:_.rs,
noBottomMargin:_.rs,typographyBump:_.rs}});_.Zc2=_.C8(function(K){var d=K.data;K=_.Co();return _.U("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:K},_.U(_.X,{cond:function(){return d().imageBadge},
then:function(f){return _.U(_.jV,{data:f,alt:""})}}))},"kb");var ezs=_.C8(function(K){var d=K.data;var f=K.customCommandResolver;K=_.Co();_.T1(K,function(){return d().interaction},f);
_.wU(K,{visibilityCallback:function(H){var D,S=(D=d().interaction)==null?void 0:D.onFirstVisible;H&&S&&_.me(S)},
showOption:_.LW});return _.U("carousel-ad-card-image-view-model",{class:function(){var H;return((H=d().interaction)==null?0:H.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:K,"aria-label":function(){var H,D;return(H=d().interaction)==null?void 0:(D=H.accessibility)==null?void 0:D.label}},_.U(_.z1,{data:function(){return d().adImage}},{adImageViewModel:function(H){return _.U(_.Vy,{data:H.data,
customCommandResolver:f})}}),_.U("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.U(_.z1,{data:function(){return d().badge}},{adCardBadgeViewModel:_.Zc2})),_.U(_.zz,{model:{color:4}}))},"lb");var pff=_.C8(function(K){var d=_.y(_.cC(0,void 0,"o9Bzd")),f=d.next().value;d.next();var H=d.next().value,D=_.y(_.cC(!1,void 0,"KLdzYe"));d=D.next().value;var S=D.next().value,n;_.$F(function(){clearTimeout(n)});
D=_.cp(function(){var R;((R=K.animate)==null?0:R.call(K))?(S(!0),n=setTimeout(function(){S(!1);u()},200)):u();
return!1});
var u=function(){H(function(R){return(R+K.numShownItems())%K.data().length})},a={};
return _.U("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.U("div",{class:_.SC("ytwHorizontalCarouselCarouselWrapper")},_.U("div",{class:_.SC("ytwHorizontalCarouselCarouselInnerWrapper",(a.ytwHorizontalCarouselAnimating=d,a))},_.U(_.v_,{each:K.data,keyBy:"INDEX"},function(R,F){return _.U("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Im({"flex-basis":function(){return"calc((100% - (8px * "+(K.numShownItems()-1)+")) / "+K.numShownItems()+")"},
order:function(){var z=F-f();z<0&&(z+=K.data().length);return z}})},K.children(R,F))}))),_.U("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":D},K.nextButton()))},"mb");var KGJ=_.C8(function(K){var d=K.data;var f=K.customCommandResolver;var H=K.expansive;K=_.Co();_.wU(K,{visibilityCallback:function(D){var S,n=(S=d().interaction)==null?void 0:S.onFirstVisible;D&&n&&_.me(n)},
showOption:_.LW});return _.U("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:K},_.U(pff,{data:function(){var D;return((D=d())==null?void 0:D.carouselAdCards)||[]},
nextButton:function(){return _.U(_.z1,{data:function(){return d().nextButton}},{buttonViewModel:function(D){var S=D.data;
return _.U(_.oY,{data:function(){return(H==null?0:H())?Object.assign({},S(),{style:"mono"}):S()},
className:_.M("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(D){return _.U(_.z1,{data:D},{carouselAdCardImageViewModel:function(S){return _.U(ezs,{data:S.data,customCommandResolver:f})}})}))},"nb");var dAH=_.C8(function(K){var d=K.data;var f=K.customCommandResolver;var H=K.className;var D=K.buttonClassName;var S=K.animationEntityKey;var n=K.expansive;return _.U("carousel-button-view-model",{class:_.SC("ytwCarouselButtonViewModelHost",H)},_.U(_.z1,{data:function(){return d().carousel}},{carouselAdCardCollectionViewModel:function(u){return _.U(KGJ,{data:u.data,
customCommandResolver:f,expansive:n})}}),_.U(_.z1,{data:function(){return d().button}},{adButtonViewModel:function(u){var a=u.data;
return _.U(_.JH,{data:function(){return(n==null?0:n())?Object.assign({},a(),{style:"AD_BUTTON_STYLE_TONAL"}):a()},
className:D,customCommandResolver:f,animationEntityKey:S})}}))},"ob");_.f0B=_.C8(function(K){var d=K.data;K=K.className;var f=_.Co();_.tR(function(){var H;((H=d())==null?0:H.backgroundColor)&&f.value.setAttribute("data-background-color",String(d().backgroundColor))});
return _.U("pivot-button-view-model",{el:f,class:_.SC("ytwPivotButtonViewModelHost",K)},_.U(_.pI,{command:function(){var H=d();H=H.onClickCommand?_.$A(H.onClickCommand):H.contentDescription?_.LF(H.contentDescription):void 0;return H},
ariaLabel:function(){return d().contentDescription}},_.U(_.X,{cond:function(){return d().thumbnail},
then:function(H){return _.U(_.jV,{data:H,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.U(_.X,{cond:function(){return d().icon},
then:function(H){return _.U(_.U5,{icon:function(){return H().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"pb");_.Ha9=_.C8(function(K){var d=K.data;var f=K.buttonShapeOverrideables;return _.U("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.U(_.z1,{data:function(){return d().buttonViewModels}},{buttonViewModel:function(H){return _.U(_.oY,{data:H.data,
buttonOverrides:f})},
likeButtonViewModel:function(H){return _.U(_.YY,{data:H.data,buttonShapeOverrideables:f})},
dislikeButtonViewModel:function(H){return _.U(_.NZ,{data:H.data,buttonShapeOverrideables:f})}}))},"qb");var DAL=_.C8(function(K){var d=K.avatar;var f=K.headline;var H=K.badge;var D=K.description;var S=K.expansive;K={};return _.U("yt-ad-metadata-shape",{class:_.SC("ytAdMetadataShapeHost",(K.ytAdMetadataShapeHostLarge=S,K))},_.U("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.U(_.X,{cond:d,then:function(n){return _.U(_.HPk,{data:function(){return(S==null?0:S())?Object.assign({},n(),{size:"AD_AVATAR_SIZE_MPLUS"}):n()}})}}),_.U("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.U(_.ji,{text:f,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.U(_.X,{cond:H,then:function(n){return _.U(_.wW,{data:function(){return(S==null?0:S())?Object.assign({},n(),{style:"AD_BADGE_STYLE_STARK"}):n()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.U("h2",{class:"ytAdMetadataShapeHostDescription"},_.U(_.ji,{text:D,
linkInheritColor:!0})))},"rb");var VFN=_.C8(function(K){var d=K.data;var f=K.onShow;var H=K.expansive;K=_.Co();_.T1(K,function(){return d().interaction});
_.tR(function(){var S,n=(S=d().animatedRenderingConfig)==null?void 0:S.delayedSecondsToVisible;if(n){var u=setTimeout(f,n*1E3);_.$F(function(){clearTimeout(u)})}});
var D={};return _.U("reels-ad-card-buttoned-view-model",{class:_.SC(function(){var S;return((S=d().interaction)==null?0:S.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(D.ytwReelsAdCardButtonedViewModelHostExpansive=H,D)),
el:K},_.U(DAL,{avatar:function(){return _.P(d().avatar,p$t)},
headline:function(){return d().headline},
badge:function(){return _.P(d().adBadge,K46)},
description:function(){return d().description},
expansive:H}),_.U(_.z1,{data:function(){return d().ctaButton}},{adButtonViewModel:function(S){var n=S.data;
return _.U(_.JH,{data:function(){return(H==null?0:H())?Object.assign({},n(),{style:"AD_BUTTON_STYLE_FILLED"}):n()}})}}))},"sb");var SDN=_.C8(function(K){var d=K.data;K=K.expansive;var f=_.Co();_.M("web_ad_metadata_clickable")&&_.T1(f,function(){return d().interaction});
var H={};H=_.nK("ytwReelsAdMetadataViewModelHost",(H.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.M("web_ad_metadata_clickable"),H));return _.U("reels-ad-metadata-view-model",{class:H,el:f},_.U(DAL,{avatar:function(){return _.P(d().avatar,p$t)},
headline:function(){return d().headline},
badge:function(){return _.P(d().adBadge,K46)},
description:function(){return d().description},
expansive:K}))},"tb");var yE8={iconPosition:"icon-with-label",size:"L"},nOB=_.C8(function(K){var d=K.data;var f=K.overlayDensity;K=_.Co();var H=_.QV(f,0),D=function(){var z;return(z=d().reelsAdCardButtonedEntityKey)!=null?z:""},S=function(){return D()+"/ad_button"},n=_.yF(YdY,D),u=function(){var z,v;
return(v=(z=n())==null?void 0:z.value)!=null?v:!1},a=_.th(X2z),R=function(){return Object.assign({},yE8,(a()||H()===2)&&{style:"overlay-dark"})};
f={};var F={};return _.U("reels-player-overlay-layout-view-model",{class:_.SC("ytwReelsPlayerOverlayLayoutViewModelHost",(f.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!d().extension},f.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},f)),
"overlay-density":function(){return String(H())},
el:K},_.U("div",{class:_.SC("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(F.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},F))},_.U("div",{"aria-hidden":function(){return u()},
class:_.SC("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Im({"transition-duration":function(){return PvG(d())}})},_.U(_.z1,{data:function(){return d().adMetadata}},{reelsAdMetadataViewModel:function(z){return _.U(SDN,{data:z.data,
expansive:function(){return H()===1}})}}),_.U(_.X,{cond:function(){return d().extension},
then:function(z){return _.U("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.U(_.z1,{data:z},{adButtonViewModel:function(v){return _.U(_.JH,{data:v.data,animationEntityKey:S,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(v){return _.U(dAH,{data:v.data,animationEntityKey:S,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return H()===1}})}}))}})),_.U("div",{"aria-hidden":function(){return!u()},
class:_.SC("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Im({"transition-duration":function(){return PvG(d())}})},_.U(_.z1,{data:function(){return d().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(z){return _.U(VFN,{data:z.data,
onShow:function(){_.q7(_.nt("booleanEntity",D(),{key:D(),value:!0}))},
expansive:function(){return H()===1}})}}))),_.U("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.U(_.z1,{data:function(){return d().actions}},{reelActionBarViewModel:function(z){return _.U(_.Ha9,{data:z.data,
buttonShapeOverrideables:R})}}),_.U(_.z1,{data:function(){return d().menu}},{buttonViewModel:function(z){return _.U(_.oY,{data:z.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},R(),{type:"tonal"})}})}}),_.U(_.z1,{data:function(){return d().pivotButton}},{pivotButtonViewModel:function(z){return _.U(_.f0B,{data:z.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"ub");_.sP(nOB,"reels-player-overlay-layout-view-model",{props:{data:_.rs,overlayDensity:_.rs}});var SN=function(){var K=_.q.apply(this,arguments)||this;K.noBottomMargin=!1;K.overlayDensity=0;return K};
_.O(SN,_.q);_.V=SN.prototype;
_.V.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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.M("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]]"}}}}}};
_.V.ready=function(){var K=this;Bqz(function(){K.isAttached&&wP(K.JSC$13413_storedAdSlotMetadata,K.JSC$13413_storedAdLayoutMetadata,K.adSlotMetadata,K.adLayoutMetadata)&&DJ(f9(),K.JSC$13413_storedAdSlotMetadata,K.JSC$13413_storedAdLayoutMetadata)})};
_.V.attached=function(){wP(this.JSC$13413_storedAdSlotMetadata,this.JSC$13413_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&kRN(f9(),this.JSC$13413_storedAdSlotMetadata,this.JSC$13413_storedAdLayoutMetadata)};
_.V.detached=function(){wP(this.JSC$13413_storedAdSlotMetadata,this.JSC$13413_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&DJ(f9(),this.JSC$13413_storedAdSlotMetadata,this.JSC$13413_storedAdLayoutMetadata)};
_.V.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.V.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13413_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13413_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13413_storedAdLayoutMetadata!==void 0&&this.JSC$13413_storedAdSlotMetadata!==void 0&&DJ(f9(),this.JSC$13413_storedAdSlotMetadata,this.JSC$13413_storedAdLayoutMetadata),kRN(f9(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13413_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13413_storedAdSlotMetadata=this.adSlotMetadata)};
_.x$.Object.defineProperties(SN.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.adLayoutMetadata}}});
SN.prototype.onAdMetadataChanged=SN.prototype.onAdMetadataChanged;SN.prototype.onTypographyBumpChanged=SN.prototype.onTypographyBumpChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],SN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],SN.prototype,"rendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],SN.prototype,"ytComponentBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],SN.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],SN.prototype,"noBottomMargin",void 0);_.x([_.A(),_.B("design:type",Object)],SN.prototype,"overlayDensity",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],SN.prototype,"typographyBump",void 0);_.x([_.W("data.adLayoutMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],SN.prototype,"adLayoutMetadata",null);_.x([_.A(),_.B("design:type",Object)],SN.prototype,"adSlotMetadata",void 0);
_.x([_.n8("ytd-video-display-full-buttoned-and-button-group-renderer"),_.B("design:type",HTMLElement)],SN.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.x([_.SP("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SN.prototype,"onTypographyBumpChanged",null);_.x([_.SP("adLayoutMetadata","adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SN.prototype,"onAdMetadataChanged",null);
SN=_.x([_.Q({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],SN);
_.C(SN,"ytd-in-feed-ad-layout-renderer",function(){if(pj4!==void 0)return pj4;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return pj4=K},
{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var ia2;var cE2;var yy=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return K};
_.O(yy,_.q);_.V=yy.prototype;_.V.computeHasLiveDescription=function(K){return!(K==null||!K.liveDescription)};
_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.V.onYtToggleButton=function(K){var d,f=(d=this.data)==null?void 0:d.videoReminderEntityKey;f&&this.ytdReduxBehavior.dispatch(_.nt("upcomingEventReminderStateEntity",f,{key:f,state:K.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.V.attached=function(){this.updateChannelBanner()};
_.V.dataChanged=function(){this.updateChannelBanner()};
_.V.videoReminderStateChanged=function(){var K;this.videoReminderState&&_.P((K=this.data)==null?void 0:K.cta,_.oa)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.V.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var K=_.kA(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);K&&(K.startsWith("//")&&(K="https:"+K),this.hostElement.classList.add("channel-banner"),_.f8(this.hostElement,{"--ytvmh-channel-banner":"url("+K+")"}))}else _.M("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.V.onPlayerReady=function(){this.onIronResize()};
_.V.maybeFlushDebouncer=function(){_.M("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(K){var d;K=(d=K.getElementsByTagName("yt-attributed-string"))==null?void 0:d[0];OeJ(K==null?void 0:K.polymerController)})};
_.V.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var K=_.E(this.hostElement).querySelector("#live-description"),d;K&&((d=this.data)==null?0:d.shortLiveDescription)&&K.clientWidth<K.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
yy.prototype.onIronResize=yy.prototype.onIronResize;yy.prototype.videoReminderStateChanged=yy.prototype.videoReminderStateChanged;yy.prototype.dataChanged=yy.prototype.dataChanged;yy.prototype.onYtToggleButton=yy.prototype.onYtToggleButton;_.x([_.l(_.Mg),_.B("design:type",Object)],yy.prototype,"ironResizableBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],yy.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],yy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],yy.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],yy.prototype,"data",void 0);_.x([_.A({selectorArgs:["data.videoReminderEntityKey"],selector:FJY}),_.B("design:type",Object)],yy.prototype,"videoReminderState",void 0);
_.x([_.A({reflectToAttribute:!0,value:_.M("web_modern_buttons")}),_.B("design:type",Boolean)],yy.prototype,"rounded",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.B("design:type",Boolean)],yy.prototype,"hasLiveDescription",void 0);_.x([_.A({reflectToAttribute:!0,value:_.M("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.B("design:type",Boolean)],yy.prototype,"resizableAdBannerSafariFix",void 0);
_.x([_.A({reflectToAttribute:!0,value:_.M("align_three_dot_menu_with_title_description")}),_.B("design:type",Boolean)],yy.prototype,"menuFix",void 0);_.x([_.iL("yt-formatted-string"),_.B("design:type",Array)],yy.prototype,"formattedStrings",void 0);_.x([_.n8("#cta-button"),_.B("design:type",HTMLElement)],yy.prototype,"ctaButton",void 0);_.x([_.VV("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],yy.prototype,"onYtToggleButton",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yy.prototype,"dataChanged",null);_.x([_.SP("videoReminderState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yy.prototype,"videoReminderStateChanged",null);_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yy.prototype,"onIronResize",null);
yy=_.x([_.Q({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],yy);
_.C(yy,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(cE2!==void 0)return cE2;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return cE2=K},{mode:1});var uP2;var n9=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};K.isLocked=!1;return K};
_.O(n9,_.q);_.V=n9.prototype;_.V.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.V.onExpandedChanged=function(){this.expanded&&_.p1(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.V.onMouseOver=function(){this.maybeExpand()};
_.V.onTap=function(){this.maybeExpand()};
_.V.onExpandableTileExpanding=function(K){K!==this&&(this.expanded=!1)};
_.V.onExpandableTileLockAndCollapse=function(K){this.isLocked=!0;K!==this&&(this.expanded=!1)};
_.V.onExpandableTileUnlock=function(){this.isLocked=!1};
n9.prototype.onTap=n9.prototype.onTap;n9.prototype.onMouseOver=n9.prototype.onMouseOver;n9.prototype.onExpandedChanged=n9.prototype.onExpandedChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],n9.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],n9.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],n9.prototype,"expanded",void 0);_.x([_.an("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n9.prototype,"onExpandedChanged",null);_.x([_.VV("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n9.prototype,"onMouseOver",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n9.prototype,"onTap",null);
n9=_.x([_.Q({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],n9);
_.C(n9,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(uP2!==void 0)return uP2;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return uP2=K},{mode:1});var a0s;var iG=function(){var K=_.q.apply(this,arguments)||this;K.buttonOverrides={style:"overlay"};K.useYtdPlayer=_.M("use_ytd_player_for_desktop_masthead");K.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};K.playbackFinished=!1;K.JSC$13425_playerManager=null;K.JSC$13425_mastheadCounter=new Dek;return K};
_.O(iG,_.q);_.V=iG.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$13425_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13425_playerManager=new RC)};
_.V.ready=function(){var K=this;this.JSC$13425_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var d=_.E(this.hostElement).querySelector("#player");this.useYtdPlayer?d.style.display="none":(this.ytdPlayer.style.display="none",Wi4(this.JSC$13425_playerManager,d,function(){K.onPlaybackEnded()}),_.E(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var f;
((f=K.data)==null?0:f.navigationEndpoint)&&_.Zp(K.hostElement,"yt-navigate",{endpoint:K.data.navigationEndpoint})}))};
_.V.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13425_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.V.attached=function(){var K=this;_.bL(function(){K.maybePlayVideo()})};
_.V.maybePlayVideo=function(){var K=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$13425_playerManager.playVideo(),this.getPlayerPromise().then(function(){K.JSC$13425_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.V.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13425_playerManager.stopVideo()};
_.V.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var K,d={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((K=this.data.playbackStartMs)!=null?K:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(d);this.setupYtdPlayer()}else AHN(this.JSC$13425_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(G5H(this.JSC$13425_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.V.getPlayerPromise=function(){return this.JSC$13425_playerManager.getPlayerPromise()};
_.V.onYtToggleButton=function(K){this.useYtdPlayer?this.toggleMute(K.detail.toggled):K.detail.toggled?this.JSC$13425_playerManager.mute():this.JSC$13425_playerManager.unMute()};
_.V.onYtNavigate=function(K){var d=zpN(K.detail.endpoint),f=Xwp(this.data.clickthroughReportingData);d&&f&&(K.detail.endpoint.watchEndpoint?K.detail.tempData=f:_.xZ(d,f,30))};
_.V.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.V.onExpandedChanged=function(){this.expanded?(_.p1(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.V.onMouseOver=function(){this.maybeExpand()};
_.V.onTap=function(){this.maybeExpand()};
_.V.onExpandableTileExpanding=function(K){K!==this&&(this.stopVideo(),this.expanded=!1)};
_.V.onExpandableTileLockAndCollapse=function(K){K!==this&&(this.isLocked=!0,this.expanded=!1)};
_.V.onExpandableTileUnlock=function(){this.isLocked=!1};
_.V.lockAndCollapseExpandableTiles=function(){_.ev(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.V.unlockExpandableTiles=function(){_.ev(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.V.setupYtdPlayer=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,K.ytdPlayer.getPlayerPromise(),2);d=f.yieldResult;d.addEventListener("onStateChange",function(H){K.onPlayerStateChange(H)});
d.addEventListener("onCueRangeExit",function(H){K.onCueRangeExit(H)});
_.iQ(f)})};
_.V.onPlayerStateChange=function(K){if(K===1&&(K=this.ytdPlayer.getPlayer())){var d=K.getCurrentTime(),f,H,D=d+((H=(f=this.data)==null?void 0:f.playbackDurationMs)!=null?H:0)/1E3;K.addCueRange("playback",d,D);this.JSC$13425_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.V.onCueRangeExit=function(K){K==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.V.toggleMute=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,d.ytdPlayer.getPlayerPromise(),2);f=H.yieldResult;K?f.mute():f.unMute();_.iQ(H)})};
iG.prototype.onTap=iG.prototype.onTap;iG.prototype.onMouseOver=iG.prototype.onMouseOver;iG.prototype.onExpandedChanged=iG.prototype.onExpandedChanged;iG.prototype.onYtNavigate=iG.prototype.onYtNavigate;iG.prototype.onYtToggleButton=iG.prototype.onYtToggleButton;iG.prototype.dataChanged=iG.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],iG.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],iG.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],iG.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],iG.prototype,"expanded",void 0);_.x([_.A(),_.B("design:type",Object)],iG.prototype,"buttonOverrides",void 0);
_.x([_.A(),_.B("design:type",Object)],iG.prototype,"useYtdPlayer",void 0);_.x([_.n8("#ytd-player"),_.B("design:type",Object)],iG.prototype,"ytdPlayer",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iG.prototype,"dataChanged",null);_.x([_.VV("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],iG.prototype,"onYtToggleButton",null);
_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],iG.prototype,"onYtNavigate",null);_.x([_.an("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iG.prototype,"onExpandedChanged",null);_.x([_.VV("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iG.prototype,"onMouseOver",null);
_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iG.prototype,"onTap",null);iG=_.x([_.Q({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],iG);
_.C(iG,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(a0s!==void 0)return a0s;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return a0s=K},{mode:1});var I0t;var cS=function(){return _.q.apply(this,arguments)||this};
_.O(cS,_.q);cS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
cS.prototype.onShow=function(){var K=_.E(this.hostElement).querySelector("#live-description"),d;K&&((d=this.data)==null?0:d.shortLiveDescription)&&K.clientWidth<K.scrollWidth&&this.hostElement.classList.add("short-live-description")};
cS.prototype.onYtToggleButton=function(K){var d,f=(d=this.data)==null?void 0:d.videoReminderEntityKey;f&&this.ytdReduxBehavior.dispatch(_.nt("upcomingEventReminderStateEntity",f,{key:f,state:K.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
cS.prototype.videoReminderStateChanged=function(){var K;this.videoReminderState&&_.P((K=this.data)==null?void 0:K.cta,_.oa)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
cS.prototype.videoReminderStateChanged=cS.prototype.videoReminderStateChanged;cS.prototype.onYtToggleButton=cS.prototype.onYtToggleButton;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],cS.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],cS.prototype,"data",void 0);
_.x([_.A({selectorArgs:["data.videoReminderEntityKey"],selector:FJY}),_.B("design:type",Object)],cS.prototype,"videoReminderState",void 0);_.x([_.VV("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],cS.prototype,"onYtToggleButton",null);_.x([_.SP("videoReminderState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cS.prototype,"videoReminderStateChanged",null);
cS=_.x([_.Q({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],cS);
_.C(cS,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(I0t!==void 0)return I0t;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return I0t=K},{mode:_.p8("kevlar_poly_si_batch_j065")?1:2});var UAH;var uG=function(){var K=_.q.apply(this,arguments)||this;K.useYtdPlayer=_.M("use_ytd_player_for_desktop_masthead");K.buttonOverrides={style:"overlay"};K.JSC$13433_playerManager=null;K.JSC$13433_mastheadCounter=new Dek;K.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return K};
_.O(uG,_.q);_.V=uG.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$13433_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13433_playerManager=new RC)};
_.V.ready=function(){var K=this;this.JSC$13433_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var d;(d=this.embeddedPlayer)==null||d.remove()}else{var f;(f=this.ytdPlayer)==null||f.remove();Wi4(this.JSC$13433_playerManager,this.embeddedPlayer,function(){K.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){K.data&&K.data.navigationEndpoint&&_.Zp(K.hostElement,"yt-navigate",{endpoint:K.data.navigationEndpoint})})}};
_.V.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13433_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.V.dataChanged=function(){var K=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var d=!this.data.disableAutoPlayback,f,H={autoplay:d,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((f=this.data.playbackStartMs)!=null?f:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(d?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(H);this.setupYtdPlayer()}else AHN(this.JSC$13433_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(G5H(this.JSC$13433_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13433_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.ev(K.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");K.JSC$13433_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.V.getPlayerPromise=function(){return this.JSC$13433_playerManager.getPlayerPromise()};
_.V.onYtToggleButton=function(K){this.useYtdPlayer?this.toggleMute(K.detail.toggled):K.detail.toggled?this.JSC$13433_playerManager.mute():this.JSC$13433_playerManager.unMute()};
_.V.onYtNavigate=function(K){var d=zpN(K.detail.endpoint),f=Xwp(this.data.clickthroughReportingData);d&&f&&(K.detail.endpoint.watchEndpoint?K.detail.tempData=f:_.xZ(d,f,30))};
_.V.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13433_playerManager.stopVideo()};
_.V.setupYtdPlayer=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,K.ytdPlayer.getPlayerPromise(),2);d=f.yieldResult;d.addEventListener("onStateChange",function(H){K.onPlayerStateChange(H)});
d.addEventListener("onCueRangeExit",function(H){K.onCueRangeExit(H)});
_.iQ(f)})};
_.V.onPlayerStateChange=function(K){if(K===1&&(K=this.ytdPlayer.getPlayer())){var d=K.getCurrentTime(),f,H,D=d+((H=(f=this.data)==null?void 0:f.playbackDurationMs)!=null?H:0)/1E3;K.addCueRange("playback",d,D);_.ev(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13433_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.V.onCueRangeExit=function(K){K==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.V.toggleMute=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,d.ytdPlayer.getPlayerPromise(),2);f=H.yieldResult;K?f.mute():f.unMute();_.iQ(H)})};
_.x$.Object.defineProperties(uG.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var K,d;if(!((K=this.data)==null?0:(d=K.accessibilityData)==null?0:d.label))return"Ad primary link";var f,H;return _.iB("AD_TITLE",{title:(f=this.data)==null?void 0:(H=f.accessibilityData)==null?void 0:H.label})}}});
uG.prototype.onYtMastheadHidden=uG.prototype.onYtMastheadHidden;uG.prototype.onYtNavigate=uG.prototype.onYtNavigate;uG.prototype.onYtToggleButton=uG.prototype.onYtToggleButton;uG.prototype.dataChanged=uG.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],uG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],uG.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],uG.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],uG.prototype,"useYtdPlayer",void 0);_.x([_.n8("ytd-toggle-button-renderer"),_.B("design:type",Object)],uG.prototype,"muteButton",void 0);_.x([_.A(),_.B("design:type",Object)],uG.prototype,"buttonOverrides",void 0);
_.x([_.W("data.accessibilityData.label"),_.B("design:type",String),_.B("design:paramtypes",[])],uG.prototype,"titleAriaLabel",null);_.x([_.n8("#replay-button"),_.B("design:type",Object)],uG.prototype,"replayButton",void 0);_.x([_.n8("#player-container"),_.B("design:type",Object)],uG.prototype,"playerContainer",void 0);_.x([_.n8("#player"),_.B("design:type",Object)],uG.prototype,"embeddedPlayer",void 0);_.x([_.n8("#ytd-player"),_.B("design:type",Object)],uG.prototype,"ytdPlayer",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uG.prototype,"dataChanged",null);_.x([_.VV("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],uG.prototype,"onYtToggleButton",null);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],uG.prototype,"onYtNavigate",null);
_.x([_.VV("yt-masthead-hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uG.prototype,"onYtMastheadHidden",null);uG=_.x([_.Q({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],uG);
_.C(uG,"ytd-video-masthead-ad-primary-video-renderer",function(){if(UAH!==void 0)return UAH;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return UAH=K},{mode:2});var ROL;var aj=function(){var K=_.q.apply(this,arguments)||this;K.collapsed=!1;K.impressionResolver=_.Gz();K.JSC$13437_activeViewMeasurementDataResolver=_.Gz();K.actionMap={"yt-mute-ad-action":"handleMuteAd"};return K};
_.O(aj,_.q);_.V=aj.prototype;_.V.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"}}}};
_.V.ready=function(){var K=this;_.E(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){K.expandAd()});
this.hostElement.addEventListener("yt-action",function(d){if(d.detail.actionName==="yt-service-request"){var f=d.detail.args[1];f.videoMastheadAdMuteCommand&&(K.collapseAd(f.videoMastheadAdMuteCommand.encryptedMastheadId),d.stopPropagation())}})};
_.V.attached=function(){var K=this;_.bL(function(){K.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(d){if(!K.collapsed){d=_.y(d);for(var f=d.next();!f.done;f=d.next())f=f.value,rR(f.baseUrl,f.attributionSrcMode);K.data.impressionCommand=void 0}});
this.JSC$13437_activeViewMeasurementDataResolver.promise.then(function(d){K.ytdActiveViewBehavior.enableActiveViewMeasurement(d,15)});
_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.dataChanged=function(){var K;((K=this.data.impressionCommand)==null?0:K.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var d;((d=this.data)==null?0:d.activeView)&&this.JSC$13437_activeViewMeasurementDataResolver.resolve(this.data.activeView);(K=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(K.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.V.computeWidescreen=function(K){var d;return!!(K&&((d=_.P(K,s9f))==null?0:d.isWidescreen))};
_.V.computeExpandable=function(K){return!!(K&&K.length>0)};
_.V.onIronResize=function(){if(this.expandable){var K=_.E(this.hostElement).querySelector("#expandable-tile-container :first-child");K&&!K.expanded&&(K.expanded=!0)}};
_.V.handleMuteAd=function(){this.collapseAd(null)};
_.V.restoreCollapsedState=function(K){this.collapsed=_.aS().get("HIDDEN_MASTHEAD_ID")===K};
_.V.collapseAd=function(K){if(K){var d=_.aS();d.set("HIDDEN_MASTHEAD_ID",K);d.save()}(K=_.E(this.hostElement).querySelector("#video"))&&_.Zp(K,"yt-masthead-hidden");this.collapsed=!0};
_.V.expandAd=function(){var K=_.aS();K.set("HIDDEN_MASTHEAD_ID",!1);K.save();location.reload()};
_.V.detached=function(){_.M("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
aj.prototype.onIronResize=aj.prototype.onIronResize;aj.prototype.dataChanged=aj.prototype.dataChanged;_.x([_.l(_.Mg),_.B("design:type",Object)],aj.prototype,"ironResizableBehavior",void 0);_.x([_.l(YV),_.B("design:type",Object)],aj.prototype,"ytdActiveViewBehavior",void 0);_.x([_.l(_.bO),_.B("design:type",Object)],aj.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],aj.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],aj.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.B("design:type",Boolean)],aj.prototype,"widescreen",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.B("design:type",Boolean)],aj.prototype,"expandable",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],aj.prototype,"collapsed",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aj.prototype,"dataChanged",null);
_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aj.prototype,"onIronResize",null);aj=_.x([_.Q({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],aj);
_.C(aj,"ytd-video-masthead-ad-v3-renderer",function(){if(ROL!==void 0)return ROL;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ROL=K},{mode:2});var Ij=function(){return _.q.apply(this,arguments)||this};
_.O(Ij,_.q);_.V=Ij.prototype;_.V.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.V.ready=function(){var K=this;Bqz(function(){K.isAttached&&wP(K.JSC$13442_storedAdSlotMetadata,K.JSC$13442_storedAdLayoutMetadata,K.adSlotMetadata,K.adLayoutMetadata)&&DJ(f9(),K.JSC$13442_storedAdSlotMetadata,K.JSC$13442_storedAdLayoutMetadata)})};
_.V.attached=function(){wP(this.JSC$13442_storedAdSlotMetadata,this.JSC$13442_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&kRN(f9(),this.JSC$13442_storedAdSlotMetadata,this.JSC$13442_storedAdLayoutMetadata)};
_.V.detached=function(){wP(this.JSC$13442_storedAdSlotMetadata,this.JSC$13442_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&DJ(f9(),this.JSC$13442_storedAdSlotMetadata,this.JSC$13442_storedAdLayoutMetadata)};
_.V.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13442_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13442_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13442_storedAdLayoutMetadata!==void 0&&this.JSC$13442_storedAdSlotMetadata!==void 0&&DJ(f9(),this.JSC$13442_storedAdSlotMetadata,this.JSC$13442_storedAdLayoutMetadata),kRN(f9(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13442_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13442_storedAdSlotMetadata=this.adSlotMetadata)};
_.x$.Object.defineProperties(Ij.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.adLayoutMetadata}}});
Ij.prototype.onAdMetadataChanged=Ij.prototype.onAdMetadataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ij.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Ij.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ij.prototype,"data",void 0);_.x([_.W("data.adLayoutMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ij.prototype,"adLayoutMetadata",null);
_.x([_.A(),_.B("design:type",Object)],Ij.prototype,"adSlotMetadata",void 0);_.x([_.SP("adLayoutMetadata","adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ij.prototype,"onAdMetadataChanged",null);Ij=_.x([_.Q({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Ij);
_.C(Ij,"ytd-page-top-ad-layout-renderer",function(){if(ia2!==void 0)return ia2;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ia2=
K},{mode:_.p8("kevlar_poly_si_batch_j070")?1:2});var FG9;var U4=function(){var K=_.q.apply(this,arguments)||this;K.noBottomMargin=!1;K.overlayDensity=0;K.typographyBump=!1;return K};
_.O(U4,_.q);_.V=U4.prototype;
_.V.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]]"}},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]]"}}}}}};
_.V.ready=function(){var K=this;Bqz(function(){K.isAttached&&K.adSlotMetadata&&sK6(f9(),K.adSlotMetadata)})};
_.V.attached=function(){if(this.adSlotMetadata){var K;if(this.adSlotMetadata===((K=this.data)==null?void 0:K.adSlotMetadata))JKv(f9(),this.adSlotMetadata);else{var d;_.h3(Error("Jh`"+this.adSlotMetadata+"`"+((d=this.data)==null?void 0:d.adSlotMetadata)))}}};
_.V.detached=function(){this.adSlotMetadata&&sK6(f9(),this.adSlotMetadata)};
_.V.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.V.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&sK6(f9(),this.adSlotMetadata),JKv(f9(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.x$.Object.defineProperties(U4.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var K,d,f=_.P((K=this.data)==null?void 0:(d=K.fulfillmentContent)==null?void 0:d.fulfilledLayout,_.w$k),H;return(K=(H=_.P(f==null?void 0:f.renderingContent,kDs))==null?void 0:H.layout)?K.toLowerCase().replace(/_/g,"-"):""}}});
U4.prototype.onAdSlotMetadataChanged=U4.prototype.onAdSlotMetadataChanged;U4.prototype.onTypographyBumpChanged=U4.prototype.onTypographyBumpChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],U4.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],U4.prototype,"rendererBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],U4.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],U4.prototype,"noBottomMargin",void 0);_.x([_.A(),_.B("design:type",Object)],U4.prototype,"overlayDensity",void 0);_.x([_.A(),_.B("design:type",Object)],U4.prototype,"typographyBump",void 0);_.x([_.n8("ytd-in-feed-ad-layout-renderer"),_.B("design:type",HTMLElement)],U4.prototype,"inFeedAdLayoutRenderer",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",String),_.B("design:paramtypes",[])],U4.prototype,"layout",null);_.x([_.SP("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U4.prototype,"onTypographyBumpChanged",null);_.x([_.SP("data.adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U4.prototype,"onAdSlotMetadataChanged",null);
U4=_.x([_.Q({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],U4);
_.C(U4,"ytd-ad-slot-renderer",function(){if(FG9!==void 0)return FG9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return FG9=K},{mode:_.p8("kevlar_poly_si_batch_j077")?
1:2});var zOs;var Rj=function(){return _.q.apply(this,arguments)||this};
_.O(Rj,_.q);_.V=Rj.prototype;_.V.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"}}}};
_.V.onTap=function(){_.M("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&StG(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.V.onThumbnailContainerClick=function(K){this.onClick(K)};
_.V.onClick=function(K){if(_.M("enable_handle_watch_endpoint_click_for_vdc")){var d,f=(d=this.data)==null?void 0:d.navigationEndpoint;f&&_.P(f,_.qu)&&(this.ytSparklesClickLocationBehavior.handleClick(f,K,!0),K.stopPropagation())}};
_.V.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var K=_.y(this.data.impressionUrls),d=K.next();!d.done;d=K.next())d=d.value,XWO(d,MZn(d));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.V.attached=function(){var K=this;_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){_.M("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.x$.Object.defineProperties(Rj.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Rj.prototype.dataChanged=Rj.prototype.dataChanged;Rj.prototype.onTap=Rj.prototype.onTap;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.x([_.l(YV),_.B("design:type",Object)],Rj.prototype,"ytdActiveViewBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Rj.prototype,"ytdReduxBehavior",void 0);
_.x([_.l(_.sL.YtSparklesClickLocationBehavior),_.B("design:type",Object)],Rj.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.A({selector:_.Ek}),_.B("design:type",Object)],Rj.prototype,"isGridViewEnabled",void 0);_.x([_.W("isGridViewEnabled"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rj.prototype,"watchFeedBigThumbs",null);
_.x([_.W("isGridViewEnabled"),_.A({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],Rj.prototype,"thumbnailWidth",null);_.x([_.A(),_.B("design:type",Object)],Rj.prototype,"data",void 0);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rj.prototype,"onTap",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rj.prototype,"dataChanged",null);
Rj=_.x([_.Q({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Rj);
_.C(Rj,"ytd-compact-promoted-video-renderer",function(){if(zOs!==void 0)return zOs;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" 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-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return zOs=K},{mode:1});var X22;_.Na("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var F$=function(){return _.q.apply(this,arguments)||this};
_.O(F$,_.q);F$.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],F$.prototype,"data",void 0);F$=_.x([_.Q({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],F$);
_.C(F$,"ytd-search-pyv-renderer",function(){if(X22!==void 0)return X22;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return X22=K},{mode:1});var vO8;_.Na("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var zU=function(){var K=_.q.apply(this,arguments)||this;K.roundedContainer=!0;K.JSC$13458_handleOpenPostCommentDialogActionAfterStamp=!1;K.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return K};
_.O(zU,_.q);_.V=zU.prototype;
_.V.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}}};
_.V.onStampFinished=function(){this.JSC$13458_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){var K=_.E(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");K?K.openDialog():this.JSC$13458_handleOpenPostCommentDialogActionAfterStamp=!0};
_.V.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.V.computeHideBorder=function(){return this.isInEngagementPanel};
_.V.computeIsCompact=function(){return this.isInEngagementPanel};
_.V.computeUsesCompactLockup=function(K){return K==="BACKSTAGE_SURFACE_TYPE_HOME"||K==="BACKSTAGE_SURFACE_TYPE_SEARCH"||K==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||K==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||K==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||K==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.V.computeUsesFullLockup=function(){var K,d=(K=this.data)==null?void 0:K.post,f;K=(f=_.P(d,SaB))==null?void 0:f.surface;var H;f=(H=_.P(d,nb9))==null?void 0:H.originalPost;var D;if(H=K||((D=_.P(f,SaB))==null?void 0:D.surface))return!this.computeUsesCompactLockup(H)&&this.useUpdatedRepostUi;var S;return((S=_.P(d,nb9))==null?void 0:S.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.x$.Object.defineProperties(zU.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var K,d;return((d=_.P((K=this.data)==null?void 0:K.post,SaB))==null?void 0:d.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.useUpdatedRepostUi}}});
zU.prototype.onYtCommentModerationPanelEmpty=zU.prototype.onYtCommentModerationPanelEmpty;zU.prototype.onStampFinished=zU.prototype.onStampFinished;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],zU.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],zU.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],zU.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],zU.prototype,"roundedContainer",void 0);_.x([_.A({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.B("design:type",Boolean)],zU.prototype,"hideBorder",void 0);_.x([_.A({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.B("design:type",Boolean)],zU.prototype,"isCompact",void 0);
_.x([_.A({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.B("design:type",Boolean)],zU.prototype,"usesFullLockup",void 0);_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zU.prototype,"onStampFinished",null);
_.x([_.VV("ytd-comment-moderation-panel-empty"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],zU.prototype,"onYtCommentModerationPanelEmpty",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zU.prototype,"isInEngagementPanel",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zU.prototype,"useUpdatedRepostUi",null);
zU=_.x([_.Q({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],zU);
_.C(zU,"ytd-backstage-post-thread-renderer",function(){if(vO8!==void 0)return vO8;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return vO8=K},{mode:1});var MF9;var X$=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(X$,_.q);X$.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
X$.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var K=this.data.thumbnail.thumbnails;this.isDarkTheme&&(K=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(K=_.kA(K,24,void 0,"height"))?K:void 0}};
X$.prototype.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
X$.prototype.computeHasText=function(){var K;return!((K=this.data)==null||!K.text)};
_.x$.Object.defineProperties(X$.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Xa(this.bannerImageUrl))+'");'}}});
X$.prototype.computeHasText=X$.prototype.computeHasText;X$.prototype.computeBannerImageUrl=X$.prototype.computeBannerImageUrl;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],X$.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],X$.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],X$.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],X$.prototype,"isDarkTheme",void 0);_.x([_.A(),_.B("design:type",String)],X$.prototype,"bannerImageUrl",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.B("design:type",Boolean)],X$.prototype,"hasText",void 0);_.x([_.SP("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],X$.prototype,"computeBannerImageUrl",null);
_.x([_.SP("data.text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],X$.prototype,"computeHasText",null);_.x([_.W("bannerImageUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],X$.prototype,"bannerStyle",null);X$=_.x([_.Q({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],X$);
_.C(X$,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(MF9!==void 0)return MF9;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return MF9=K},{mode:1});var PvB;var vS=function(){return _.q.apply(this,arguments)||this};
_.O(vS,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vS.prototype,"data",void 0);vS=_.x([_.Q({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],vS);
_.C(vS,"ytd-backstage-zero-state-renderer",function(){if(PvB!==void 0)return PvB;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return PvB=K},{mode:1});var gOf;var MC=function(){return _.q.apply(this,arguments)||this};
_.O(MC,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],MC.prototype,"data",void 0);_.x([_.A({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],MC.prototype,"icon",void 0);MC=_.x([_.Q({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],MC);
_.C(MC,"ytd-post-filter-zero-state-renderer",function(){if(gOf!==void 0)return gOf;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return gOf=K},{mode:1});var OaJ;var NSB={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},PS=function(){return _.q.apply(this,arguments)||this};
_.O(PS,_.q);PS.prototype.configureRendererStamper=function(){return NSB};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],PS.prototype,"rendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],PS.prototype,"data",void 0);_.x([_.A({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],PS.prototype,"icon",void 0);PS=_.x([_.Q({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],PS);
_.C(PS,"ytd-post-scheduling-zero-state-renderer",function(){if(OaJ!==void 0)return OaJ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return OaJ=K},{mode:1});var YD4;var gt=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return K};
_.O(gt,_.q);gt.prototype.onTabsActivate=function(K){this.data&&this.data.tabs&&_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[K.detail.selected].navigationEndpoint})};
gt.prototype.shouldShowTotalCount=function(K){return K&&K.totalCount!==void 0};
gt.prototype.handleUpdatePostsTotalCountAction=function(K){var d=this.get(["data.tabs",1,"totalCount"]),f=this.get("updatePostsTotalCountAction.updateType",K);K=this.get("updatePostsTotalCountAction.number",K);d!==void 0&&f!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&K&&(f==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(d)+K):f==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(d)-K))};
_.x$.Object.defineProperties(gt.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var K=0,d=this.data.tabs.length;K<d;K++)if(this.data.tabs[K].selected)return K;return 0}}});
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],gt.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gt.prototype,"rendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gt.prototype,"data",void 0);_.x([_.W("data.tabs"),_.B("design:type",Number),_.B("design:paramtypes",[])],gt.prototype,"selected",null);gt=_.x([_.Q({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],gt);
_.C(gt,"ytd-post-stream-filter-renderer",function(){if(YD4!==void 0)return YD4;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return YD4=K},{mode:1});var tF9;var O4=function(){return _.q.apply(this,arguments)||this};
_.O(O4,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],O4.prototype,"kevlarBehaviors",void 0);_.x([_.A(),_.B("design:type",Object)],O4.prototype,"data",void 0);O4=_.x([_.Q({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],O4);
_.C(O4,"ytd-channel-age-gate-renderer",function(){if(tF9!==void 0)return tF9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return tF9=K},{mode:1});var oO9;_.Na("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var NC=function(){var K=_.q.apply(this,arguments)||this;K.data=null;return K};
_.O(NC,_.q);NC.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x$.Object.defineProperties(NC.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((K=this.data)==null?0:(d=K.title)==null?0:(f=d.runs)==null?0:f.length)?147:160}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],NC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],NC.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],NC.prototype,"imageSizePx",null);NC=_.x([_.Q({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],NC);
_.C(NC,"ytd-channel-owner-empty-state-renderer",function(){if(oO9!==void 0)return oO9;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return oO9=K},{mode:1});var $AJ;var EOH;var Y3=function(){var K=_.q.apply(this,arguments)||this;K.boundSubmitSearch=function(){K.submitSearch()};
K.boundClearSearch=function(){K.clearSearch()};
return K};
_.O(Y3,_.q);_.V=Y3.prototype;_.V.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]]"}}}}}};
_.V.toggleClearButton=function(){this.hideClearButton=dBX||!this.input.value};
_.V.submitOnEnterKeyUp=function(K){K.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.V.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.V.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.V.submit=function(){_.Zp(this.hostElement,"search-query-changed",this.input.value)};
Y3.prototype.toggleClearButton=Y3.prototype.toggleClearButton;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Y3.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Y3.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Y3.prototype,"hideClearButton",void 0);_.x([_.A(),_.B("design:type",Object)],Y3.prototype,"boundSubmitSearch",void 0);_.x([_.A(),_.B("design:type",Object)],Y3.prototype,"boundClearSearch",void 0);_.x([_.n8("#input"),_.B("design:type",Object)],Y3.prototype,"input",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Y3.prototype,"toggleClearButton",null);
Y3=_.x([_.Q({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Y3);
_.C(Y3,"ytd-channel-switcher-search-box-renderer",function(){if(EOH!==void 0)return EOH;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return EOH=K},{mode:1});var hOJ;var tX=function(){var K=_.q.apply(this,arguments)||this;K.boundSubmit=function(){K.submit()};
return K};
_.O(tX,_.q);_.V=tX.prototype;_.V.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"}}}}};
_.V.ready=function(){var K=this;this.form.addEventListener("submit",function(d){return K.onSubmit(d)})};
_.V.onSubmit=function(K){K.preventDefault();return!1};
_.V.toggleClearButton=function(){this.hideClearButton=dBX||!this.input.value};
_.V.submitOnEnterKeyUp=function(K){K.keyCode===13&&this.submit()};
_.V.submit=function(){var K=this.data.endpoint,d=(0,_.PR.unsafeClone)(K);_.P(d,_.is)?_.P(d,_.is).query=this.input.value:_.P(d,_.cW)&&(_.P(d,_.cW).query=this.input.value);var f=_.P(d.commandMetadata,_.B0);(f==null?0:f.url)?(f.url=_.lp(f.url,"query",this.input.value),_.Zp(this.hostElement,"yt-navigate",{endpoint:d})):_.P(d,CcH)?(_.P(d,CcH).channelSwitcherQuery=this.input.value,_.eq().resolve(_.pQ).resolveCommand(d,{form:{element:this.hostElement}})):(K=Error("Kh`"+JSON.stringify(K)),_.$7(K))};
_.V.getUrl=function(K){return this.get("commandMetadata.webCommandMetadata.url",K)};
tX.prototype.toggleClearButton=tX.prototype.toggleClearButton;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],tX.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],tX.prototype,"hideClearButton",void 0);
_.x([_.A(),_.B("design:type",Object)],tX.prototype,"boundSubmit",void 0);_.x([_.n8("#form"),_.B("design:type",HTMLFormElement)],tX.prototype,"form",void 0);_.x([_.n8("#input"),_.B("design:type",Object)],tX.prototype,"input",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tX.prototype,"toggleClearButton",null);tX=_.x([_.Q({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],tX);
_.C(tX,"ytd-search-box-renderer",function(){if(hOJ!==void 0)return hOJ;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return hOJ=K},{mode:2});var oj=function(){var K=_.q.apply(this,arguments)||this;K.showSearchBox=!0;return K};
_.O(oj,_.q);oj.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],oj.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],oj.prototype,"showSearchBox",void 0);oj=_.x([_.Q({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],oj);
_.C(oj,"ytd-channel-switcher-header-renderer",function(){if($AJ!==void 0)return $AJ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return $AJ=K},{mode:1});var baN;var mAN;var $3=function(){var K=_.q.apply(this,arguments)||this;K.isDisplayed=!0;return K};
_.O($3,_.q);_.V=$3.prototype;_.V.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.dataChanged=function(){this.isDisplayed=!0};
_.V.computeType=function(K){return K||"UNKNOWN"};
_.V.onYtServiceRequestCompleted=function(K){K.stopPropagation();this.isDisplayed=!1};
_.V.onClose=function(){this.isDisplayed=!1};
$3.prototype.onYtServiceRequestCompleted=$3.prototype.onYtServiceRequestCompleted;$3.prototype.dataChanged=$3.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],$3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$3.prototype,"data",void 0);
_.x([_.A({computed:"computeType(data.type)",reflectToAttribute:!0}),_.B("design:type",String)],$3.prototype,"type",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],$3.prototype,"isDisplayed",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$3.prototype,"dataChanged",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$3.prototype,"onYtServiceRequestCompleted",null);$3=_.x([_.Q({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],$3);
_.C($3,"ytd-alert-with-button-renderer",function(){if(mAN!==void 0)return mAN;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return mAN=K},{mode:1});var E4=function(){var K=_.q.apply(this,arguments)||this;K.noResult=!1;K.enableAlertBanner=!1;K.dismissedAlertBanner=!1;K.hideCreateChannelButton=!1;K.boundDismissAlertBanner=function(){K.dismissAlertBanner()};
K.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return K};
_.O(E4,_.q);_.V=E4.prototype;_.V.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.V.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.V.updateChannelSwitcherAction=function(K){var d;K=(d=_.P(K,OOJ))==null?void 0:d.page;_.P(K,g2v)!==void 0&&(this.data=_.P(K,g2v))};
_.V.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]]"}}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V.searchQueryChanged=function(K,d){if(this.data&&this.data.contents&&this.data.contents.length){K=[];var f=[];this.hideCreateChannelButton=this.noResult=!1;for(var H=document.querySelectorAll("ytd-account-item-renderer"),D=_.y(H),S=D.next();!S.done;S=D.next())S=S.value,f.push(S),S.style.display="block";this.resetRightBorder(f);if(d){this.hideCreateChannelButton=!0;for(f=1;f<this.data.contents.length;f++)if(S=this.data.contents[f],_.P(S,q8f)){var n=void 0,u=void 0;D=(n=_.P(S,q8f))==null?void 0:(u=
n.accountName)==null?void 0:u.simpleText;u=n=void 0;S=(n=_.P(S,q8f))==null?void 0:(u=n.channelHandle)==null?void 0:u.simpleText;(n=H[f-1])&&D&&_.IX(D,d)?K.push(n):_.M("enable_handle_search_on_channel_switcher")&&n&&S&&_.IX(S.toString(),d.toString())?K.push(n):n.style.display="none"}K.length===0&&(this.noResult=!0);this.resetRightBorder(K)}}};
_.V.resetRightBorder=function(K){for(var d=0;d<K.length;d++)K[d].style.borderRight=!this.hideCreateChannelButton&&(d+2)%3===0||this.hideCreateChannelButton&&(d+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.V.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.V.setShowSearchBox=function(K){if(K&&K.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var d=0;d<K.contents.length;d++)_.P(K.contents[d],_.k6)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.V.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.x$.Object.defineProperties(E4.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null?0:K.contents)}}});
E4.prototype.onContinuationItemsUpdated=E4.prototype.onContinuationItemsUpdated;E4.prototype.searchQueryChanged=E4.prototype.searchQueryChanged;E4.prototype.onDataChanged=E4.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],E4.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],E4.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.lY),_.B("design:type",Object)],E4.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],E4.prototype,"data",void 0);_.x([_.n8("ytd-channel-switcher-header-renderer"),_.B("design:type",Object)],E4.prototype,"channelSwitcherHeaderRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],E4.prototype,"noResult",void 0);
_.x([_.A(),_.B("design:type",Object)],E4.prototype,"enableAlertBanner",void 0);_.x([_.A(),_.B("design:type",Object)],E4.prototype,"dismissedAlertBanner",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],E4.prototype,"hideCreateChannelButton",void 0);_.x([_.W("data.contents"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],E4.prototype,"isLoading",null);_.x([_.A(),_.B("design:type",Object)],E4.prototype,"boundDismissAlertBanner",void 0);
_.x([_.A({computed:"computeButtonOverride()"}),_.B("design:type",Object)],E4.prototype,"buttonOverride",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],E4.prototype,"onDataChanged",null);_.x([_.VV("search-query-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],E4.prototype,"searchQueryChanged",null);
_.x([_.VV("yt-next-continuation-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],E4.prototype,"onContinuationItemsUpdated",null);E4=_.x([_.Q({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],E4);
_.C(E4,"ytd-channel-switcher-page-renderer",function(){if(baN!==void 0)return baN;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return baN=K},{mode:1});var l0H;var WG6;var hX=function(){var K=_.q.apply(this,arguments)||this;K.images=[];K.selectedImageIndex=0;return K};
_.O(hX,_.q);_.V=hX.prototype;
_.V.ready=function(){_.zG(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.zG(this.JSC$13503_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.zG(this.JSC$13503_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.zG(this.JSC$13503_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.V.onThumbnailClick=function(K){if(K=K.event_.detail)this.selectedImageIndex=this.images.indexOf(K)};
_.V.updateImageThumbnails=function(K){K=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:K.event_.detail});this.images.splice(this.selectedImageIndex,1,K);this.images=[].concat(_.Me(this.images))};
_.V.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Zp(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.V.saveImageRepositions=function(){this.selectedImageIndex=0;_.Zp(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.x$.Object.defineProperties(hX.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var K=this;return(this.images||[]).map(function(d,f){return{image:d,selected:f===K.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.n8("ytd-backstage-image-preview-renderer"),_.B("design:type",Object)],hX.prototype,"JSC$13503_imagePreviewContainer",void 0);_.x([_.n8(".thumbnail-images-container"),_.B("design:type",HTMLElement)],hX.prototype,"thumbnailImagesContainer",void 0);_.x([_.A(),_.B("design:type",Array)],hX.prototype,"images",void 0);
_.x([_.A(),_.B("design:type",Object)],hX.prototype,"repositionInstructions",void 0);_.x([_.A(),_.B("design:type",Object)],hX.prototype,"selectedImageIndex",void 0);_.x([_.W("images","selectedImageIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],hX.prototype,"thumbnailRendererDatas",null);_.x([_.W("images","selectedImageIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],hX.prototype,"selectedImageData",null);
hX=_.x([_.Q({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],hX);
_.C(hX,"ytd-backstage-multi-image-reposition-renderer",function(){if(WG6!==void 0)return WG6;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return WG6=K},{mode:1});var bG=function(K,d){_.iJ.call(this);this.uploadUrl=K;this.channelId=d;this.imagesUploadData=[]};
_.O(bG,_.iJ);bG.prototype.getAllUploadStatuses=function(){var K=this,d,f,H;return _.c(function(D){if(D.nextAddress==1)return _.I(D,Gb6(K),2);d=D.yieldResult;f=d.get("succeed");H=d.get("failed");return D.return(f.concat(H))})};
var TSs=function(K){var d,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,Gb6(K),2);d=H.yieldResult;f=d.get("failed");f.length>0&&AEs(K,f);return H.return(K.getAllUploadStatuses())})},Gb6=function(K){var d,f,H,D,S,n,u;
return _.c(function(a){if(a.nextAddress==1)return d=new Map,_.I(a,Promise.allSettled(K.imagesUploadData.map(function(R){return R.uploadPromise})),2);
f=a.yieldResult;H=[];D=_.y(f);for(S=D.next();!S.done;S=D.next())n=S.value,n.status==="fulfilled"&&H.push(n.value);u=K.imagesUploadData.map(function(R){return R.image}).filter(function(R){return H.every(function(F){return F.id!==R.id})});
d.set("succeed",H);d.set("failed",u);return a.return(d)})},AEs=function(K,d){d=_.y(d);
for(var f=d.next();!f.done;f=d.next()){var H=K;f=f.value;rEN(H,f.id)>=0&&H.cancel(f.id);var D=new qDN(f),S=_.o6s(H.uploadUrl,{"X-YouTube-ChannelId":H.channelId},f.imageBlob);D.transfer=S;D.uploadPromise=QqB(S,f);H.imagesUploadData.push(D);S.run()}};
bG.prototype.cancel=function(K){var d=rEN(this,K);d!==-1&&((d=this.imagesUploadData[d].transfer)&&d.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(f){return f.image.id!==K}))};
var rEN=function(K,d){return K.imagesUploadData.findIndex(function(f){return f.image.id===d})},QqB=function(K,d){return new Promise(function(f,H){K.listen("l",function(){var D=K.getResponseText();
D?(D=JSON.parse(D).encryptedBlobId,d.encryptedBlobId=D,f(d)):H("upload failed")});
K.listen("n",function(){H("upload failed")})})},qDN=function(K){this.image=K};var gOX=function(K,d,f,H,D){this.id=K;this.imageBlob=d;this.localImageSrc=f;this.naturalWidth=H;this.naturalHeight=D;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 jq4=[".jpeg",".jpg",".png"],ms=function(){var K=_.q.apply(this,arguments)||this;K.showImagesPreview=!1;K.pollOptions=[];K.errorMessage="";K.optionPlaceholderText="";K.optionDefaultText="";K.JSC$13514_imageId=0;K.maxFileSizeMb=0;K.maxAspectRatio=0;K.invalidFileSizeError="";K.invalidAspectRatioError="";K.invalidFileTypeError="";K.imageSelector=new Hr(null,"single_file",jq4);return K};
_.O(ms,_.q);_.V=ms.prototype;_.V.ready=function(){_.zG(this.imageSelector,"j",this.onImageSelect,!1,this);_.zG(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.zG(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.V.dataChanged=function(){var K,d,f=_.P((K=this.data)==null?void 0:(d=K.cellTemplate)==null?void 0:d.onEmptyCellTap,gn4);if(f&&f.uploadUrl&&f.channelId){var H;this.maxFileSizeMb=((H=f.imageValidationInfo)==null?void 0:H.maxFileSizeMb)||0;var D;this.maxAspectRatio=((D=f.imageValidationInfo)==null?void 0:D.allowedMaxAspectRatio)||0;var S;this.invalidFileSizeError=this.getSimpleString((S=this.data)==null?void 0:S.invalidFileSizeError);var n;this.invalidAspectRatioError=this.getSimpleString((n=this.data)==
null?void 0:n.invalidAspectRatioError);var u;this.invalidFileTypeError=this.getSimpleString((u=this.data)==null?void 0:u.invalidFileTypeError);this.uploadManager=new bG(f.uploadUrl,f.channelId)}};
_.V.onEditorInfoChange=function(){this.optionPlaceholderText=_.qQ(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.qQ(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.V.observeAddImageError=function(){this.errorMessage!==""&&_.Zp(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.V.onPollOptionsChange=function(){for(var K=!1,d=[],f=0;f<this.pollOptions.length;f++){var H=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(f+1);this.pollOptions[f].placeholderText!==H?(K=!0,d.push(Object.assign({},this.pollOptions[f],{placeholderText:H}))):d.push(this.pollOptions[f])}K&&(this.pollOptions=d);this.isValid()?_.Zp(this.hostElement,"yt-commentbox-post-enable"):_.Zp(this.hostElement,"yt-commentbox-post-disable")};
_.V.createPollOptions=function(K){var d=[],f;K=(f=K==null?void 0:K.minPollOptions)!=null?f:0;for(f=0;f<K;f++)d.push(this.createPollOption());return d};
_.V.onImageSelect=function(K){var d=this,f,H,D,S,n,u;return _.c(function(a){if(a.nextAddress==1){if(d.selectedImageIndex===void 0)return a.jumpTo(0);f=K.files[0];d.errorMessage="";H=d.validateImage(f);if(H!=="")return d.errorMessage=H,a.return();D=new AQ(d.maxAspectRatio,!1,!0);return _.I(a,D.transform(f),3)}if(a.nextAddress!=4)return S=a.yieldResult,S.transformedData?S.invalidAspectRatio?(d.errorMessage=d.invalidAspectRatioError,a.return()):_.I(a,OaB(d.JSC$13514_imageId,K.files[0],S.transformedData),
4):(d.errorMessage=d.invalidFileTypeError,a.return());n=a.yieldResult;d.JSC$13514_imageId++;AEs(d.uploadManager,[n]);u=Object.assign({},d.pollOptions[d.selectedImageIndex],{image:n});d.pollOptions.splice(d.selectedImageIndex,1,u);d.refreshPollOptions();_.Zp(d.hostElement,"yt-backstage-poll-image-select");_.iQ(a)})};
_.V.validateImage=function(K){return K.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.V.refreshPollOptions=function(){this.pollOptions=[].concat(_.Me(this.pollOptions))};
_.V.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Me(this.pollOptions),[this.createPollOption()]))};
_.V.onRemovePollOption=function(K){var d=this.pollOptions[K.model.index];d&&d.image&&this.uploadManager.cancel(d.image.id);this.pollOptions.splice(K.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Zp(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.V.onTextInput=function(){this.refreshPollOptions()};
_.V.onImageButtonClick=function(K){this.selectedImageIndex=K.model.index;this.imageSelector.click()};
_.V.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.V.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.V.saveImageRepositions=function(K){K=K.event_.detail;for(var d=0,f=[],H=_.y(this.pollOptions),D=H.next();!D.done;D=H.next())D=D.value,D.image!==void 0?(D=Object.assign({},D,{image:K[d]}),f.push(D),d++):f.push(D);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Me(f))};
_.V.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 K=0,d=_.y(this.pollOptions),f=d.next();!f.done;f=d.next())if(f=f.value,f.optionText.trim()!==""||f.image!==void 0){if(!f.image||this.hasCustomOptionText&&f.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;K++}return K>=Number(this.editorInfo.minPollOptions)};
_.V.getAllUploadStatuses=function(){var K=this,d,f,H,D;return _.c(function(S){if(S.nextAddress==1)return _.I(S,K.uploadManager.getAllUploadStatuses(),2);d=S.yieldResult;f=_.y(d);for(H=f.next();!H.done;H=f.next())if(D=H.value,D.encryptedBlobId===void 0)return S.return(TSs(K.uploadManager));return S.return(d)})};
_.V.getPostCreateOptions=function(){for(var K=[],d=_.y(this.pollOptions),f=d.next();!f.done;f=d.next())f=f.value,f.image!==void 0&&K.push({text:this.hasCustomOptionText?f.optionText:f.placeholderText,image:f.image});return K};
_.V.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.V.createButtonRenderer=function(K,d){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:K,accessibilityData:{accessibilityData:{label:this.getSimpleString(K)}},isDisabled:d}};
_.V.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.V.computeThumbnailRendererData=function(K){return K?{image:K,selected:!1}:void 0};
_.V.getSimpleString=function(K){return _.qQ(K)};
_.V.updateOptionTextFromBinding=function(K){if(K.target){var d=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(K.target);if(d>=0){var f;this.pollOptions[d].optionText=(f=K.detail.value)!=null?f:""}}};
_.x$.Object.defineProperties(ms.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var K,d;return this.pollOptions.length<((d=(K=this.editorInfo)==null?void 0:K.maxPollOptions)!=null?d:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(K){return K.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(K){return K.image}).map(function(K){return K.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(K){return K.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var K,d=(K=this.data)==null?void 0:K.addOptionButtonText;return d?this.createButtonRenderer(d,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var K,d=(K=this.data)==null?void 0:K.repositionImagesButtonLabel;return d?this.createButtonRenderer(d,!this.hasImages):void 0}}});
ms.prototype.onPollOptionsChange=ms.prototype.onPollOptionsChange;ms.prototype.observeAddImageError=ms.prototype.observeAddImageError;ms.prototype.onEditorInfoChange=ms.prototype.onEditorInfoChange;ms.prototype.dataChanged=ms.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.x([_.n8("ytd-backstage-multi-image-reposition-renderer"),_.B("design:type",Object)],ms.prototype,"imageRepositionContainer",void 0);
_.x([_.A(),_.B("design:type",Object)],ms.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],ms.prototype,"editorInfo",void 0);_.x([_.A(),_.B("design:type",bG)],ms.prototype,"uploadManager",void 0);_.x([_.A(),_.B("design:type",Object)],ms.prototype,"showImagesPreview",void 0);_.x([_.A(),_.B("design:type",Array)],ms.prototype,"pollOptions",void 0);_.x([_.A(),_.B("design:type",Object)],ms.prototype,"errorMessage",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ms.prototype,"dataChanged",null);_.x([_.an("editorInfo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ms.prototype,"onEditorInfoChange",null);_.x([_.SP("errorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ms.prototype,"observeAddImageError",null);
_.x([_.an("pollOptions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ms.prototype,"onPollOptionsChange",null);_.x([_.W("pollOptions","editorInfo"),_.B("design:type",Object),_.B("design:paramtypes",[])],ms.prototype,"isAllowedToAddOption",null);_.x([_.W("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],ms.prototype,"hasImages",null);
_.x([_.W("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],ms.prototype,"imagesToReposition",null);_.x([_.W("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],ms.prototype,"hasCustomOptionText",null);_.x([_.W("data","isAllowedToAddOption"),_.B("design:type",Object),_.B("design:paramtypes",[])],ms.prototype,"addOptionButton",null);_.x([_.W("data","hasImages"),_.B("design:type",Object),_.B("design:paramtypes",[])],ms.prototype,"repositionImagesButton",null);
ms=_.x([_.Q({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],ms);
_.C(ms,"ytd-backstage-image-poll-editor-renderer",function(){if(l0H!==void 0)return l0H;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return l0H=K},{mode:2});var Cv9={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 xA6;var lG=function(){var K=_.q.apply(this,arguments)||this;K.a11yConfig=Cv9;K.imageDisplayOffsetTop=0;K.imageDisplayOffsetLeft=0;K.pickerDisplayOffsetTop=0;K.pickerDisplayOffsetLeft=0;K.showPreviewContainer=!0;K.startPicker=!1;K.repositionOptional=!1;K.editOnlyMode=!1;K.savedImageDisplayOffsetTop=0;K.savedImageDisplayOffsetLeft=0;return K};
_.O(lG,_.q);_.V=lG.prototype;_.V.created=function(){_.hf.requestAvailability()};
_.V.ready=function(){};
_.V.onArrowKeysDown=function(K){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){K.detail.keyboardEvent.preventDefault();var d=0,f=0,H="";switch(K.detail.keyboardEvent.key){case "ArrowUp":NSG(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?H=this.a11yConfig.reachBottomOfImage:d=this.imageHeight*.05*-1;break;case "ArrowDown":NSG(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?H=this.a11yConfig.reachTopOfImage:
d=this.imageHeight*.05;break;case "ArrowLeft":NSG(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?H=this.a11yConfig.reachRightOfImage:f=this.imageWidth*.05*-1;break;case "ArrowRight":NSG(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?H=this.a11yConfig.reachLeftOfImage:f=this.imageWidth*.05}H&&_.iB(H)&&_.Zp(this.hostElement,"iron-announce",{text:_.iB(H)});if(f||d)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+d)),K=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),K=_.iB(this.a11yConfig.imageVerticalPosition,{x_percent:""+K,y_percent:""+(100-K)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+f)),K=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),K=_.iB(this.a11yConfig.imageHorizontalPosition,{x_percent:""+K,y_percent:""+(100-K)})),K&&_.Zp(this.hostElement,"iron-announce",{text:K})}};
_.V.getPreviewPosition=function(K,d,f,H){return Math.round(100*(K+d*.5-f)/H)};
_.V.calculateDisplayPosition=function(){var K=this.imageData.naturalWidth,d=this.imageData.naturalHeight;this.displayScale=Math.max(200/K,200/d);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var f=K*this.displayScale*this.imageData.previewCoordinates.left,H=d*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=d>K?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-f;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=K>d?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-H;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=K*this.displayScale;this.imageHeight=d*this.displayScale};
_.V.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.V.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.V.getSignedPosition=function(K,d,f){return d==="X"&&_.mD("HTML_DIR")==="rtl"?f==="-"?K+"px":K*-1+"px":f==="-"?K*-1+"px":K+"px"};
_.V.pickerMove=function(K){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var d=this.pickerOffsetX-K.clientX,f=this.pickerOffsetY-K.clientY;this.pickerOffsetX=K.clientX;this.pickerOffsetY=K.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
f)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-d))}};
_.V.pickerMoveStart=function(K){this.startPicker=!0;this.pickerOffsetX=K.clientX;this.pickerOffsetY=K.clientY};
_.V.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var K=this.generateCropPreview();K&&_.Zp(this.hostElement,"ytd-backstage-image-preview-coordinates-update",K)};
_.V.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Zp(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.V.deleteImage=function(){_.Zp(this.hostElement,"ytd-backstage-image-preview-delete")};
_.V.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.V.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var K=this.generateCropPreview();K&&_.Zp(this.hostElement,"ytd-backstage-image-preview-coordinates-save",K)};
_.V.getPreviewOffset=function(K,d,f){return d&&K?(f==="X"&&_.mD("HTML_DIR")==="rtl"?300/d*K:300/d*K*-1)+"px":"0px"};
_.V.getSimpleText=function(K){return K?_.qQ(K):""};
_.V.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}};
_.x$.Object.defineProperties(lG.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var K=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.iB(this.a11yConfig.imageVerticalPosition,{x_percent:""+K,y_percent:""+(100-K)})+"\n"+_.iB(this.a11yConfig.verticalRepositionInstruction)}K=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.iB(this.a11yConfig.imageHorizontalPosition,{x_percent:""+K,y_percent:""+(100-K)})+"\n"+_.iB(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 K,d,f=(K=this.instruction)==null?void 0:(d=K.previewInstruction)==null?void 0:d.editButtonLabel;return f?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleText(f)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H,D=this.editOnlyMode?(K=this.instruction)==null?void 0:(d=K.editInstruction)==null?void 0:d.saveImagesButtonLabel:(f=this.instruction)==null?void 0:(H=f.editInstruction)==null?void 0:H.saveButtonLabel;return D?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleText(D)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(K=this.instruction)==null?void 0:(d=K.previewInstruction)==null?void 0:d.deleteButtonLabel;return f?{size:"SIZE_SMALL",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleText(f)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(K=this.instruction)==null?void 0:(d=K.editInstruction)==null?void 0:d.cancelButtonLabel;K=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return f?{style:K,size:"SIZE_SMALL",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleText(f)}}}: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"}}});
lG.prototype.onEditOnlyModeUpdate=lG.prototype.onEditOnlyModeUpdate;lG.prototype.onImageChange=lG.prototype.onImageChange;_.x([_.A(),_.B("design:type",gOX)],lG.prototype,"imageData",void 0);_.x([_.A(),_.B("design:type",Object)],lG.prototype,"instruction",void 0);_.x([_.A(),_.B("design:type",Object)],lG.prototype,"a11yConfig",void 0);_.x([_.A(),_.B("design:type",Number)],lG.prototype,"imageWidth",void 0);_.x([_.A(),_.B("design:type",Number)],lG.prototype,"imageHeight",void 0);
_.x([_.A(),_.B("design:type",Number)],lG.prototype,"displayScale",void 0);_.x([_.A(),_.B("design:type",Object)],lG.prototype,"imageDisplayOffsetTop",void 0);_.x([_.A(),_.B("design:type",Object)],lG.prototype,"imageDisplayOffsetLeft",void 0);_.x([_.A(),_.B("design:type",Object)],lG.prototype,"pickerDisplayOffsetTop",void 0);_.x([_.A(),_.B("design:type",Object)],lG.prototype,"pickerDisplayOffsetLeft",void 0);_.x([_.A(),_.B("design:type",Object)],lG.prototype,"showPreviewContainer",void 0);
_.x([_.A(),_.B("design:type",Object)],lG.prototype,"startPicker",void 0);_.x([_.A(),_.B("design:type",Number)],lG.prototype,"pickerOffsetX",void 0);_.x([_.A(),_.B("design:type",Number)],lG.prototype,"pickerOffsetY",void 0);_.x([_.A(),_.B("design:type",Object)],lG.prototype,"repositionOptional",void 0);_.x([_.A(),_.B("design:type",Object)],lG.prototype,"editOnlyMode",void 0);_.x([_.n8("#picker-container"),_.B("design:type",HTMLElement)],lG.prototype,"JSC$13527_pickerContainer",void 0);
_.x([_.n8("#picker"),_.B("design:type",HTMLElement)],lG.prototype,"picker",void 0);_.x([_.n8("#preview-clipper"),_.B("design:type",HTMLElement)],lG.prototype,"previewClipper",void 0);_.x([_.n8("#image-in-picker-background"),_.B("design:type",HTMLImageElement)],lG.prototype,"JSC$13527_imageInBackground",void 0);_.x([_.n8("#image-in-picker"),_.B("design:type",HTMLImageElement)],lG.prototype,"JSC$13527_imageInPicker",void 0);
_.x([_.n8("#image-in-preview-clipper"),_.B("design:type",HTMLImageElement)],lG.prototype,"JSC$13527_imageInPreviewClipper",void 0);_.x([_.W("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],lG.prototype,"altLabelForImage",null);_.x([_.W("imageHeight","imageWidth"),_.B("design:type",Number),_.B("design:paramtypes",[])],lG.prototype,"pickerSize",null);
_.x([_.W("imageHeight","imageWidth"),_.B("design:type",Object),_.B("design:paramtypes",[])],lG.prototype,"imageOrientationStyle",null);_.x([_.W("instruction"),_.B("design:type",Object),_.B("design:paramtypes",[])],lG.prototype,"editButton",null);_.x([_.W("instruction","editOnlyMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],lG.prototype,"saveButton",null);_.x([_.W("instruction"),_.B("design:type",Object),_.B("design:paramtypes",[])],lG.prototype,"deleteButton",null);
_.x([_.W("instruction","editOnlyMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],lG.prototype,"cancelButton",null);_.x([_.W("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.B("design:type",Number),_.B("design:paramtypes",[])],lG.prototype,"cropOffsetTop",null);_.x([_.W("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.B("design:type",Number),_.B("design:paramtypes",[])],lG.prototype,"cropOffsetLeft",null);
_.x([_.W("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],lG.prototype,"pickerBackgroundStyle",null);_.x([_.W("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],lG.prototype,"pickerDisplayStyle",null);_.x([_.W("cropOffsetLeft","cropOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],lG.prototype,"imageInPickerStyle",null);
_.x([_.W("cropOffsetLeft","cropOffsetTop","pickerSize"),_.B("design:type",String),_.B("design:paramtypes",[])],lG.prototype,"previewClipperStyle",null);_.x([_.an("imageData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lG.prototype,"onImageChange",null);_.x([_.an("editOnlyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lG.prototype,"onEditOnlyModeUpdate",null);
_.x([_.W("showPreviewContainer"),_.B("design:type",String),_.B("design:paramtypes",[])],lG.prototype,"pickerModeStyle",null);lG=_.x([_.Q({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],lG);
_.C(lG,"ytd-backstage-image-preview-renderer",function(){if(xA6!==void 0)return xA6;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return xA6=K},{mode:1});var LGL;var BSL={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 JEk;var sqt;var WS=function(){var K=_.q.apply(this,arguments)||this;K.a11yConfig=BSL;K.imageDisplayOffsetTop=0;K.imageDisplayOffsetLeft=0;K.pickerDisplayOffsetTop=0;K.pickerDisplayOffsetLeft=0;K.cropCoordinatesSaved=!1;K.previewSize=0;K.startPicker=!1;K.repositionOptional=!1;return K};
_.O(WS,_.q);_.V=WS.prototype;_.V.created=function(){_.hf.requestAvailability()};
_.V.ready=function(){};
_.V.onArrowKeysDown=function(K){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){K.detail.keyboardEvent.preventDefault();var d=0,f=0,H="";switch(K.detail.keyboardEvent.key){case "ArrowUp":YDu(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?H=this.a11yConfig.reachBottomOfImage:d=this.imageHeight*.05*-1;break;case "ArrowDown":YDu(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?H=this.a11yConfig.reachTopOfImage:
d=this.imageHeight*.05;break;case "ArrowLeft":YDu(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?H=this.a11yConfig.reachRightOfImage:f=this.imageWidth*.05*-1;break;case "ArrowRight":YDu(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?H=this.a11yConfig.reachLeftOfImage:f=this.imageWidth*.05}H&&_.iB(H)&&_.Zp(this.hostElement,"iron-announce",{text:_.iB(H)});if(f||d)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+d)),K=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),K=_.iB(this.a11yConfig.imageVerticalPosition,{x_percent:""+K,y_percent:""+(100-K)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+f)),K=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),K=_.iB(this.a11yConfig.imageHorizontalPosition,{x_percent:""+K,y_percent:""+(100-K)})),K&&_.Zp(this.hostElement,"iron-announce",{text:K})}};
_.V.getPreviewPosition=function(K,d,f,H){return Math.round(100*(K+d*.5-f)/H)};
_.V.displayImage=function(){var K=this.JSC$13538_pickerContainer.getBoundingClientRect().width,d=this.JSC$13538_pickerContainer.getBoundingClientRect().height,f=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),H=this.JSC$13538_imageInBackground.naturalWidth,D=this.JSC$13538_imageInBackground.naturalHeight;this.displayScale=Math.max(f/H,f/D);this.imageWidth=H*this.displayScale;this.imageHeight=D*this.displayScale;this.pickerDisplayOffsetLeft=(K-f)/2;this.pickerDisplayOffsetTop=
(d-f)/2;this.imageDisplayOffsetLeft=D>H?this.pickerDisplayOffsetLeft:(K-this.imageWidth)/2;this.imageDisplayOffsetTop=H>D?this.pickerDisplayOffsetTop:(d-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.V.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13538_imageInBackground.src=this.imageData.toString(),this.JSC$13538_imageInPicker.src=this.imageData.toString(),this.JSC$13538_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.V.getSignedPosition=function(K,d,f){return d==="X"&&_.mD("HTML_DIR")==="rtl"?f==="-"?K+"px":K*-1+"px":f==="-"?K*-1+"px":K+"px"};
_.V.pickerMove=function(K){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var d=this.pickerOffsetX-K.clientX,f=this.pickerOffsetY-K.clientY;this.pickerOffsetX=K.clientX;this.pickerOffsetY=K.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
f)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-d))}};
_.V.pickerMoveStart=function(K){this.startPicker=!0;this.pickerOffsetX=K.clientX;this.pickerOffsetY=K.clientY};
_.V.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.V.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Zp(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.V.getPreviewOffset=function(K,d,f,H){return d&&K&&f?(H==="X"&&_.mD("HTML_DIR")==="rtl"?f/d*K:f/d*K*-1)+"px":"0px"};
_.V.getSimpleText=function(K){return K?_.qQ(K):""};
_.V.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var K=this.cropOffsetTop/this.imageHeight,d=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,f=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,H=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.E(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Zp(this.hostElement,"yt-img-crop-coordinates-update",{top:K,right:d,bottom:f,left:H})}};
_.x$.Object.defineProperties(WS.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var K=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.iB(this.a11yConfig.imageVerticalPosition,{x_percent:""+K,y_percent:""+(100-K)})+"\n"+_.iB(this.a11yConfig.verticalRepositionInstruction)}K=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.iB(this.a11yConfig.imageHorizontalPosition,{x_percent:""+K,y_percent:""+(100-K)})+"\n"+_.iB(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 K,d=(K=this.learnMore.runs[0])==null?void 0:K.navigationEndpoint,f;return((f=_.P(d,_.TE))==null?void 0:f.url)||void 0}}}});
WS.prototype.onImageDataChange=WS.prototype.onImageDataChange;_.x([_.A(),_.B("design:type",Object)],WS.prototype,"imageData",void 0);_.x([_.A(),_.B("design:type",Object)],WS.prototype,"instruction",void 0);_.x([_.A(),_.B("design:type",Object)],WS.prototype,"a11yConfig",void 0);_.x([_.A(),_.B("design:type",Number)],WS.prototype,"imageWidth",void 0);_.x([_.A(),_.B("design:type",Number)],WS.prototype,"imageHeight",void 0);_.x([_.A(),_.B("design:type",Number)],WS.prototype,"displayScale",void 0);
_.x([_.A(),_.B("design:type",Object)],WS.prototype,"imageDisplayOffsetTop",void 0);_.x([_.A(),_.B("design:type",Object)],WS.prototype,"imageDisplayOffsetLeft",void 0);_.x([_.A(),_.B("design:type",Object)],WS.prototype,"pickerDisplayOffsetTop",void 0);_.x([_.A(),_.B("design:type",Object)],WS.prototype,"pickerDisplayOffsetLeft",void 0);_.x([_.A(),_.B("design:type",Object)],WS.prototype,"cropCoordinatesSaved",void 0);_.x([_.A(),_.B("design:type",Object)],WS.prototype,"previewSize",void 0);
_.x([_.A(),_.B("design:type",Object)],WS.prototype,"startPicker",void 0);_.x([_.A(),_.B("design:type",Number)],WS.prototype,"pickerOffsetX",void 0);_.x([_.A(),_.B("design:type",Number)],WS.prototype,"pickerOffsetY",void 0);_.x([_.A(),_.B("design:type",Object)],WS.prototype,"repositionOptional",void 0);_.x([_.n8("#picker-container"),_.B("design:type",HTMLElement)],WS.prototype,"JSC$13538_pickerContainer",void 0);_.x([_.n8("#picker"),_.B("design:type",HTMLElement)],WS.prototype,"picker",void 0);
_.x([_.n8("#image-in-picker-background"),_.B("design:type",HTMLImageElement)],WS.prototype,"JSC$13538_imageInBackground",void 0);_.x([_.n8("#image-in-picker"),_.B("design:type",HTMLImageElement)],WS.prototype,"JSC$13538_imageInPicker",void 0);_.x([_.n8("#image-in-preview-clipper"),_.B("design:type",HTMLImageElement)],WS.prototype,"JSC$13538_imageInPreviewClipper",void 0);_.x([_.n8("#full-image-as-preview"),_.B("design:type",HTMLImageElement)],WS.prototype,"imageAsPreview",void 0);
_.x([_.W("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],WS.prototype,"altLabelForImage",null);_.x([_.W("imageHeight","imageWidth"),_.B("design:type",Number),_.B("design:paramtypes",[])],WS.prototype,"pickerSize",null);_.x([_.W("imageHeight","imageWidth"),_.B("design:type",Object),_.B("design:paramtypes",[])],WS.prototype,"imageOrientationStyle",null);
_.x([_.W("instruction.previewInstruction.editButtonLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],WS.prototype,"editButton",null);_.x([_.W("instruction.editInstruction.saveButtonLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],WS.prototype,"saveButton",null);_.x([_.W("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.B("design:type",Number),_.B("design:paramtypes",[])],WS.prototype,"cropOffsetTop",null);
_.x([_.W("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.B("design:type",Number),_.B("design:paramtypes",[])],WS.prototype,"cropOffsetLeft",null);_.x([_.W("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],WS.prototype,"pickerBackgroundStyle",null);_.x([_.W("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],WS.prototype,"pickerDisplayStyle",null);
_.x([_.W("cropOffsetLeft","cropOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],WS.prototype,"imageInPickerStyle",null);_.x([_.W("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.B("design:type",String),_.B("design:paramtypes",[])],WS.prototype,"previewClipperStyle",null);_.x([_.SP("imageData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WS.prototype,"onImageDataChange",null);
_.x([_.W("cropCoordinatesSaved"),_.B("design:type",String),_.B("design:paramtypes",[])],WS.prototype,"pickerModeStyle",null);_.x([_.W("instruction.editInstruction.learnMore"),_.B("design:type",Object),_.B("design:paramtypes",[])],WS.prototype,"learnMore",null);_.x([_.W("learnMore"),_.B("design:type",Object),_.B("design:paramtypes",[])],WS.prototype,"learnMoreUrl",null);WS=_.x([_.N7({is:"yt-img-crop-picker",disableElementRegistration:!0})],WS);
_.C(WS,"yt-img-crop-picker",function(){if(sqt===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;JEk===void 0&&(JEk=document.createElement("template"));var H=JEk;f.call(d,H.content.cloneNode(!0),K.content.firstChild);sqt=K}K=sqt;return K},{mode:2});var GU=function(){var K=_.q.apply(this,arguments)||this;K.errorMessage="";K.hasPreview=!1;K.isBackstagePost=!1;K.dismissButtonOverrides={size:"XS"};return K};
_.O(GU,_.q);_.V=GU.prototype;_.V.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"}}}};
_.V.detached=function(){this.removeOverlay()};
_.V.setPreview=function(K){_.E(this.hostElement).querySelector("#preview-picker").imageData=K;this.hasPreview=!0;_.Zp(this.hostElement,"yt-backstage-image-select-preview")};
_.V.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var K=_.E(this.hostElement).querySelector("#dropzone");K.classList.remove("dragover");K.classList.remove("error");_.Zp(this.hostElement,"yt-backstage-image-select-cancel")};
_.V.setupOverlay=function(){var K=this.imageUploadEndpoint;this.removeOverlay();if(K&&K.imageValidationInfo){var d=_.E(this.hostElement).querySelector("#dropzone"),f=_.E(this.hostElement).querySelector("#select");this.overlay=new rd(K.uploadUrl,K.channelId,K.imageValidationInfo.maxFileSizeMb,K.imageValidationInfo.allowedMaxAspectRatio,d,f,!0);_.zG(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.zG(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.zG(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.zG(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.zG(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.V.removeOverlay=function(){this.overlay&&(_.nx(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.nx(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.nx(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.nx(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.nx(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.V.onDragOver=function(K){var d=_.E(this.hostElement).querySelector("#dropzone");_.pU(d,"dragover",K.value)};
_.V.onPreview=function(K){this.setPreview(K.value)};
_.V.onImageError=function(K){if(K.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var d;K=(d=this.data)==null?void 0:d.fileSizeError}else if(K.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var f;K=(f=this.data)==null?void 0:f.invalidError}else if(K.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var H;K=(H=this.data)==null?void 0:H.invalidAspectRatioError}else return;this.errorMessage=_.qQ(K);_.E(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.V.onImageAlert=function(K){this.onImageError(K)};
_.V.uploadPromise=function(){var K=this,d=this.overlay&&this.overlay.uploadPromise();if(d)return d.catch(function(){throw Error(K.data?_.qQ(K.data.uploadFailureError):"");})};
_.x$.Object.defineProperties(GU.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var K,d;if((K=this.data)==null?0:(d=K.icon)==null?0:d.iconType)return _.Hv(this.data.icon.iconType)}}});
GU.prototype.setupOverlay=GU.prototype.setupOverlay;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],GU.prototype,"rendererStamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],GU.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],GU.prototype,"imageUploadEndpoint",void 0);_.x([_.A(),_.B("design:type",Object)],GU.prototype,"errorMessage",void 0);
_.x([_.A(),_.B("design:type",rd)],GU.prototype,"overlay",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],GU.prototype,"hasPreview",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],GU.prototype,"isBackstagePost",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],GU.prototype,"selectionCancel",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],GU.prototype,"previewCancel",null);
_.x([_.W("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],GU.prototype,"icon",null);_.x([_.A(),_.B("design:type",Object)],GU.prototype,"dismissButtonOverrides",void 0);_.x([_.SP("imageUploadEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GU.prototype,"setupOverlay",null);GU=_.x([_.Q({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],GU);
_.C(GU,"ytd-backstage-image-select-renderer",function(){if(LGL!==void 0)return LGL;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return LGL=K},{mode:1});var kbJ;var w28;var jN=function(){var K=_.q.apply(this,arguments)||this;K.selected=!1;return K};
_.O(jN,_.q);_.V=jN.prototype;_.V.computeSelected=function(K){return K==null?void 0:K.selected};
_.V.computeTransform=function(K,d,f){var H,D,S=(D=(H=this.imageContainer)==null?void 0:H.getBoundingClientRect())!=null?D:{width:0,height:0};H=Math.max(S.width/d,S.height/f);f=f*H*K.top;return"translateX("+this.getSignedPosition(d*H*K.left,"X","-")+") translateY("+this.getSignedPosition(f,"Y","-")+")"};
_.V.getSignedPosition=function(K,d,f){return d==="X"&&_.mD("HTML_DIR")==="rtl"?f==="-"?K+"px":K*-1+"px":f==="-"?K*-1+"px":K+"px"};
_.V.onClick=function(){var K;_.Zp(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(K=this.data)==null?void 0:K.image)};
_.V.onKeyPress=function(K){if(K.keyCode===13)this.onClick()};
_.x$.Object.defineProperties(jN.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:(d=K.image)==null?void 0:d.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)!=null&&K.image){var d;K=(d=this.data)==null?void 0:d.image;return K.previewCoordinates.top!==0||K.previewCoordinates.left!==0?(d=this.computeTransform(K.previewCoordinates,K.naturalWidth,K.naturalHeight),K.naturalHeight>=K.naturalWidth?"width:inherit;transform:"+d+";":"height:inherit;transform:"+d+";"):K.naturalHeight>=K.naturalWidth?"width:inherit;":"height:inherit;"}}}});
jN.prototype.onKeyPress=jN.prototype.onKeyPress;_.x([_.n8(".image-container"),_.B("design:type",HTMLElement)],jN.prototype,"imageContainer",void 0);_.x([_.A(),_.B("design:type",Object)],jN.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.B("design:type",Object)],jN.prototype,"selected",void 0);_.x([_.W("data.image"),_.B("design:type",Object),_.B("design:paramtypes",[])],jN.prototype,"thumbnailUrl",null);
_.x([_.W("data.image","data.image.previewCoordinates"),_.B("design:type",Object),_.B("design:paramtypes",[])],jN.prototype,"thumbnailStyle",null);_.x([_.VV("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],jN.prototype,"onKeyPress",null);jN=_.x([_.Q({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],jN);
_.C(jN,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(w28!==void 0)return w28;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return w28=K},{mode:2});var C9=function(K,d,f){f=f===void 0?!1:f;_.iJ.call(this);var H=this;this.dropZoneOverlay=new f2(K);this.selectOverlay=f?new Hr(d,"multiple_file",["image/*"]):new Hr(d,"single_file",["image/*"]);this.handler=new _.Zt(this);_.cy(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(d,"click",function(){H.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.O(C9,_.iJ);C9.prototype.onChange=function(K){var d;(d=K.files)!=null&&d.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:K.files}))};var x3=function(){var K=_.q.apply(this,arguments)||this;K.addImageErrorMessage="";K.errorMessage="";K.images=[];K.selectedImageIndex=0;K.modern=_.M("web_modern_buttons");K.maxNumImagesPerPost=_.di("max_num_images_per_post_web_ui");K.JSC$13553_imageId=0;return K};
_.O(x3,_.q);_.V=x3.prototype;_.V.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Zp(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.V.observeDragToReorder=function(){var K=this;if(this.showImagesPreview){var d,f=NJ6(_.xf.getInstance(),(d=this.data)==null?void 0:d.dragToReorderTooltip);_.oc.addLowPriorityJob(function(){_.fd(K.hostElement,f,K.thumbnailDragDropArea)})}};
_.V.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}}};
_.V.computeThumbnail=function(K){return(K==null?void 0:K.localImageSrc)||void 0};
_.V.onRendererstamperFinished=function(){_.pbB(this.ytReorderableBehavior,_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.V.handleDrop=function(K){var d=K.currDragItem;if(d!=null&&d.data){K=this.images[this.selectedImageIndex];var f=d.data.image,H=this.images.indexOf(f)||0;d=_.CB(d.parentNode.children,d);this.images.splice(H,1);this.images.splice(d,0,f);this.images=[].concat(_.Me(this.images));this.selectedImageIndex=this.images.indexOf(K)}};
_.V.setUpImagePicker=function(){var K=this.imageUploadEndpoint;K&&K.imageValidationInfo&&(this.uploadManager=new bG(K.uploadUrl,K.channelId),this.initialPicker||(this.initialPicker=new C9(this.dropzone,this.selectLink,!0),_.zG(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new C9(this.addImageButtonContainer,this.addImageSelectButton),_.zG(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.zG(this.JSC$13553_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.zG(this.JSC$13553_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.zG(_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.V.detached=function(){this.initialPicker&&(_.nx(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.nx(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.V.onInitialSelectImages=function(K){var d=this;return _.c(function(f){return _.I(f,d.onSelectImages(K,!1),0)})};
_.V.onAddImage=function(K){var d=this;return _.c(function(f){return _.I(f,d.onSelectImages(K,!0),0)})};
_.V.onSelectImages=function(K,d){var f=this,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J,L,fB,w;return _.c(function(yO){switch(yO.nextAddress){case 1:d?f.addImageErrorMessage="":(f.images=[],f.errorMessage="");H=K.detail;D=f.validateImages([].concat(_.Me(H)));if(D!=="")return d?f.addImageErrorMessage=D:f.errorMessage=D,yO.return();S=[].concat(_.Me(H)).map(function(FX){return(new AQ(f.maxAspectRatio,!1,!0)).transform(FX)});
return _.I(yO,Promise.allSettled(S),2);case 2:n=yO.yieldResult,u=_.y(n.entries()),a=u.next();case 3:if(a.done){yO.jumpTo(5);break}R=a.value;F=_.y(R);z=F.next().value;v=F.next().value;g=z;N=v;if(N.status!=="fulfilled"){T=m=h=void 0;d?f.addImageErrorMessage=_.qQ((h=f.data)==null?void 0:h.invalidError):f.errorMessage=f.errorMessage===""?_.qQ((m=f.data)==null?void 0:m.invalidError):_.qQ((T=f.data)==null?void 0:T.multiFileError);yO.jumpTo(4);break}r=N.value;r.cropped&&_.Zp(f.hostElement,"yt-backstage-multi-image-cropped");
if(r.invalidAspectRatio){fB=L=J=void 0;d?f.addImageErrorMessage=_.qQ((J=f.data)==null?void 0:J.invalidAspectRatioError):f.errorMessage=f.errorMessage===""?_.qQ((L=f.data)==null?void 0:L.invalidAspectRatioError):_.qQ((fB=f.data)==null?void 0:fB.multiFileError);yO.jumpTo(4);break}return _.I(yO,OaB(f.JSC$13553_imageId,K.detail[g],r.transformedData),8);case 8:w=yO.yieldResult,f.images.push(w),f.JSC$13553_imageId++;case 4:a=u.next();yO.jumpTo(3);break;case 5:if(f.errorMessage!==""||f.addImageErrorMessage!==
"")return yO.return();d?AEs(f.uploadManager,[f.images[f.images.length-1]]):AEs(f.uploadManager,f.images);f.images=[].concat(_.Me(f.images));f.selectedImageIndex=d?Math.max(f.images.length-1,0):0;_.Zp(f.hostElement,"yt-backstage-multi-image-select");_.iQ(yO)}})};
_.V.onThumbnailClick=function(K){if(K=K.event_.detail)this.selectedImageIndex=this.images.indexOf(K)};
_.V.validateImages=function(K){if(K.length>this.maxNumImagesPerPost){var d;return _.qQ((d=this.data)==null?void 0:d.multiImageExceedMaxImageCountError)}var f=1048576*this.maxFileSizeMb;K=K.filter(function(S){return S.size>f}).length;
if(K===0)return"";var H,D;K=K>1?(H=this.data)==null?void 0:H.multiFileError:(D=this.data)==null?void 0:D.fileSizeError;return _.qQ(K)};
_.V.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Me(this.images));this.selectedImageIndex=0};
_.V.repositionImage=function(K){this.images[this.selectedImageIndex].previewCoordinates=K.event_.detail;this.images=[].concat(_.Me(this.images))};
_.V.getAllUploadStatuses=function(){var K=this,d,f,H,D;return _.c(function(S){if(S.nextAddress==1)return _.I(S,K.uploadManager.getAllUploadStatuses(),2);d=S.yieldResult;f=_.y(d);for(H=f.next();!H.done;H=f.next())if(D=H.value,D.encryptedBlobId===void 0)return S.return(TSs(K.uploadManager));return S.return(d)})};
_.V.hasImages=function(){return this.images.length>0};
_.V.cancel=function(){for(var K=this.uploadManager,d=_.y(K.imagesUploadData),f=d.next();!f.done;f=d.next())K.cancel(f.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Zp(this.hostElement,"yt-backstage-multi-image-cancel")};
_.x$.Object.defineProperties(x3.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.imageUploadEndpoint)==null?void 0:(d=K.imageValidationInfo)==null?void 0:d.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.imageUploadEndpoint)==null?void 0:(d=K.imageValidationInfo)==null?void 0:d.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var K,d;if((K=this.data)==null?0:(d=K.icon)==null?0:d.iconType)return _.Hv(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.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 K=this;return(this.images||[]).map(function(d,f){return{renderer:{image:d,selected:f===K.selectedImageIndex}}})}}});
x3.prototype.setUpImagePicker=x3.prototype.setUpImagePicker;x3.prototype.onRendererstamperFinished=x3.prototype.onRendererstamperFinished;x3.prototype.observeDragToReorder=x3.prototype.observeDragToReorder;x3.prototype.observeAddImageError=x3.prototype.observeAddImageError;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],x3.prototype,"rendererStamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.K_8),_.B("design:type",Object)],x3.prototype,"ytReorderableBehavior",void 0);_.x([_.n8("#dropzone"),_.B("design:type",HTMLElement)],x3.prototype,"dropzone",void 0);_.x([_.n8("#select-link"),_.B("design:type",HTMLElement)],x3.prototype,"selectLink",void 0);_.x([_.n8("#thumbnail-drag-drop-area"),_.B("design:type",HTMLElement)],x3.prototype,"thumbnailDragDropArea",void 0);_.x([_.n8("#add-image-button-container"),_.B("design:type",HTMLElement)],x3.prototype,"addImageButtonContainer",void 0);
_.x([_.n8("#add-image-button"),_.B("design:type",HTMLElement)],x3.prototype,"addImageSelectButton",void 0);_.x([_.n8("#image-preview-container"),_.B("design:type",Object)],x3.prototype,"JSC$13553_imagePreviewContainer",void 0);_.x([_.A(),_.B("design:type",Object)],x3.prototype,"addImageErrorMessage",void 0);_.x([_.A(),_.B("design:type",Object)],x3.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],x3.prototype,"errorMessage",void 0);
_.x([_.A(),_.B("design:type",Object)],x3.prototype,"imageUploadEndpoint",void 0);_.x([_.A(),_.B("design:type",Array)],x3.prototype,"images",void 0);_.x([_.A(),_.B("design:type",C9)],x3.prototype,"initialPicker",void 0);_.x([_.A(),_.B("design:type",C9)],x3.prototype,"addImagePicker",void 0);_.x([_.A(),_.B("design:type",bG)],x3.prototype,"uploadManager",void 0);_.x([_.A(),_.B("design:type",Object)],x3.prototype,"selectedImageIndex",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x3.prototype,"modern",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x3.prototype,"maxNumImagesPerPost",void 0);_.x([_.W("imageUploadEndpoint"),_.B("design:type",Number),_.B("design:paramtypes",[])],x3.prototype,"maxAspectRatio",null);_.x([_.W("imageUploadEndpoint"),_.B("design:type",Number),_.B("design:paramtypes",[])],x3.prototype,"maxFileSizeMb",null);
_.x([_.W("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],x3.prototype,"dropIcon",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],x3.prototype,"selectionCancel",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],x3.prototype,"previewCancel",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],x3.prototype,"dataForAddImageButton",null);
_.x([_.W("errorMessage"),_.B("design:type",String),_.B("design:paramtypes",[])],x3.prototype,"dropzoneClass",null);_.x([_.W("images"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],x3.prototype,"showImagesPreview",null);_.x([_.W("images"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],x3.prototype,"containMaxImages",null);_.x([_.SP("addImageErrorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x3.prototype,"observeAddImageError",null);
_.x([_.SP("showImagesPreview"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x3.prototype,"observeDragToReorder",null);_.x([_.W("images","selectedImageIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],x3.prototype,"selectedImageData",null);_.x([_.W("images","selectedImageIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],x3.prototype,"thumbnailRenderers",null);
_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x3.prototype,"onRendererstamperFinished",null);_.x([_.SP("imageUploadEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x3.prototype,"setUpImagePicker",null);x3=_.x([_.Q({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],x3);
_.C(x3,"ytd-backstage-multi-image-select-renderer",function(){if(kbJ!==void 0)return kbJ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return kbJ=K},{mode:1});var Za2;var eO2;var p2v;var L9=function(){var K=_.q.apply(this,arguments)||this;K.boundCaptureFocus=function(d){K.onCaptureFocus(d)};
return K};
_.O(L9,_.q);_.V=L9.prototype;_.V.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.V.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.V.onCaptureFocus=function(K){_.qn(K).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.V.getIconType=function(K){return K?"yt-icons:"+K.toLowerCase():null};
_.V.onSelect=function(){var K;if((K=this.data)==null?0:K.onSelectCommand)if(_.M("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var d;((d=_.P(this.data.onSelectCommand.commandMetadata,_.B0))==null?0:d.url)?_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.eq().resolve(_.pQ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.x$.Object.defineProperties(L9.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.qQ(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}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],L9.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],L9.prototype,"data",void 0);_.x([_.n8("#item"),_.B("design:type",HTMLElement)],L9.prototype,"item",void 0);_.x([_.W("data.label"),_.B("design:type",String),_.B("design:paramtypes",[])],L9.prototype,"label",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],L9.prototype,"value",null);L9=_.x([_.Q({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],L9);
_.C(L9,"ytd-privacy-dropdown-item-renderer",function(){if(p2v!==void 0)return p2v;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return p2v=K},{mode:1});var BS=function(){var K=_.q.apply(this,arguments)||this;K.value="";K.label="";K.disabled=!1;return K};
_.O(BS,_.q);_.V=BS.prototype;_.V.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"}}}};
_.V.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.V.dataChanged=function(){this.reset()};
_.V.valueChanged=function(){var K;if(this.value&&(K=this.data)!=null&&K.entries){K=_.y(this.data.entries);for(var d=K.next();!d.done;d=K.next())if((d=this.getRendererForEntry(d.value))&&this.getItemRendererValue(d)===this.value){this.label=this.ytComponentBehavior.getSimpleString(d.label);break}}};
_.V.setInitialLabel=function(){if(this.data&&this.data.entries)for(var K=_.y(this.data.entries),d=K.next();!d.done;d=K.next())if(d=this.getRendererForEntry(d.value)){if(d.isSelected){this.label=this.ytComponentBehavior.getSimpleString(d.label);break}this.data.label&&(this.label=this.data.label)}};
_.V.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var K=_.y(this.data.entries),d=K.next();!d.done;d=K.next()){d=this.getRendererForEntry(d.value);var f=void 0;if((f=d)==null?0:f.isSelected)return this.getItemRendererValue(d)||-1}return-1};
_.V.getItemRendererValue=function(K){return"stringValue"in K||"int32Value"in K?K.stringValue||K.int32Value||null:null};
_.V.getRendererForEntry=function(K){return K.dropdownItemRenderer||K.privacyDropdownItemRenderer||K.navigationDropdownItemRenderer||null};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("value-changed",this.value))};
_.V.updateValueFromBinding=function(K){this.value=K.detail.value};
BS.prototype.valueChangedForBinding=BS.prototype.valueChangedForBinding;BS.prototype.valueChanged=BS.prototype.valueChanged;BS.prototype.dataChanged=BS.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],BS.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],BS.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],BS.prototype,"value",void 0);_.x([_.A(),_.B("design:type",Object)],BS.prototype,"label",void 0);_.x([_.n8("#entries"),_.B("design:type",Object)],BS.prototype,"entries",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],BS.prototype,"disabled",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BS.prototype,"dataChanged",null);
_.x([_.an("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BS.prototype,"valueChanged",null);_.x([_.SP("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BS.prototype,"valueChangedForBinding",null);BS=_.x([_.Q({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],BS);
_.C(BS,"ytd-flat-dropdown-renderer",function(){if(eO2!==void 0)return eO2;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return eO2=K},{mode:1});var KO4;var JX=function(){var K=_.q.apply(this,arguments)||this;K.quizOptions=[];K.explanationPlaceholderText="";K.optionPlaceholderText="";K.correctAnswerIndex=-1;K.isMarkAnswerTooltipShown=!1;K.timer=0;return K};
_.O(JX,_.q);_.V=JX.prototype;_.V.dataChanged=function(){this.optionPlaceholderText=_.qQ(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.qQ(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.V.onMarkCorrectAnswer=function(K){var d,f=((d=this.quizOptions[this.correctAnswerIndex])==null?void 0:d.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[K.model.index]=Object.assign({},this.quizOptions[K.model.index],{explanationText:f,isCorrect:!0});this.correctAnswerIndex=K.model.index;this.quizOptions=[].concat(_.Me(this.quizOptions))};
_.V.updatePlaceholderTexts=function(){for(var K=!1,d=[],f=0;f<this.quizOptions.length;f++){var H=this.optionPlaceholderText+" "+(f+1),D=void 0;((D=this.quizOptions[f])==null?void 0:D.placeholderText)!==H?(K=!0,d.push(Object.assign({},this.quizOptions[f],{placeholderText:H}))):d.push(this.quizOptions[f])}K&&(this.quizOptions=d);this.isValid()?_.Zp(this.hostElement,"yt-commentbox-post-enable"):_.Zp(this.hostElement,"yt-commentbox-post-disable")};
_.V.getSimpleString=function(K){return _.qQ(K)};
_.V.createQuizOptions=function(K){var d=[],f;K=(f=K==null?void 0:K.minQuizOptions)!=null?f:0;for(f=0;f<K;f++)d.push(this.createQuizOption());return d};
_.V.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Me(this.quizOptions),[this.createQuizOption()]))};
_.V.onInput=function(){this.quizOptions=[].concat(_.Me(this.quizOptions))};
_.V.onExplanationInput=function(){_.Zp(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.V.onRemoveQuizOption=function(K){this.quizOptions.splice(K.model.index,1);K.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:K.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Me(this.quizOptions));this.quizOptions.length===0&&_.Zp(this.hostElement,"yt-quiz-attachment-dismiss")};
_.V.updateHintRenderer=function(){var K=this;clearTimeout(this.timer);this.timer=setTimeout(function(){K.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.V.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var K=0,d=0,f=_.y(this.quizOptions),H=f.next();!H.done;H=f.next()){H=H.value;var D=void 0;if(((D=H.optionText)==null?void 0:D.trim())!==""||H.isCorrect){H.isCorrect&&d++;D=void 0;if(this.hasCustomOptionText&&((D=H.optionText)==null?void 0:D.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;K++}}return K>=
Number(this.editorInfo.minQuizOptions)&&d===1};
_.V.getPostCreateOptions=function(){for(var K=[],d=_.y(this.quizOptions),f=d.next();!f.done;f=d.next()){f=f.value;var H=void 0;((H=f.optionText)==null?void 0:H.trim())!==""&&K.push({pollOption:{text:f.optionText,explanation:f.explanationText},isCorrect:f.isCorrect})}return K};
_.V.getExplanationText=function(){var K;return((K=this.quizOptions[this.correctAnswerIndex])==null?void 0:K.explanationText)||""};
_.V.maybeDisplayMarkAnswerEduToolTip=function(){var K,d,f,H,D,S,n;this.shouldShowMarkAnswerTooltip()&&((K=this.editorInfo)==null?0:(d=K.markAnswerButton)==null?0:(f=d.buttonRenderer)==null?0:(H=f.hint)==null?0:(D=H.hintRenderer)==null?0:(S=D.content)==null?0:(n=S.bubbleHintRenderer)==null?0:n.text)&&(_.xf.getInstance(),K=L5(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,(K==null?void 0:K.length)>0&&this.optionSelectors&&_.SV(K[0],this.optionSelectors[0]))};
_.V.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var K=0,d=_.y(this.quizOptions),f=d.next();!f.done;f=d.next()){f=f.value;var H=void 0;((H=f.optionText)==null?void 0:H.trim())!==""&&K++;if(f.isCorrect)return!1}return K<2?!1:!0};
_.V.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.V.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.V.updateOptionTextFromBinding=function(K){if(K.target){var d=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(K.target);if(d>=0){var f;this.quizOptions[d].optionText=(f=K.detail.value)!=null?f:""}}};
_.x$.Object.defineProperties(JX.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(K=this.editorInfo)==null?void 0:(d=K.addOptionButton)==null?void 0:d.buttonRenderer;f&&(f.style="STYLE_SUGGESTIVE",f.size="SIZE_SMALL",f.isDisabled=!this.isAllowedToAddOption);return(f==null?0:f.text)?f:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var K,d;return this.quizOptions.length<((d=(K=this.editorInfo)==null?void 0:K.maxQuizOptions)!=null?d:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(K){var d;return(d=K.optionText)==null?void 0:d.trim()})}}});
JX.prototype.updatePlaceholderTexts=JX.prototype.updatePlaceholderTexts;JX.prototype.dataChanged=JX.prototype.dataChanged;_.x([_.A(),_.B("design:type",Object)],JX.prototype,"editorInfo",void 0);_.x([_.A(),_.B("design:type",Array)],JX.prototype,"quizOptions",void 0);_.x([_.A(),_.B("design:type",Object)],JX.prototype,"explanationPlaceholderText",void 0);_.x([_.iL(".option-selector-button"),_.B("design:type",Array)],JX.prototype,"optionSelectors",void 0);
_.x([_.an("editorInfo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JX.prototype,"dataChanged",null);_.x([_.W("editorInfo","isAllowedToAddOption","quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],JX.prototype,"addAnswerButton",null);_.x([_.W("editorInfo","quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],JX.prototype,"isAllowedToAddOption",null);
_.x([_.an("quizOptions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JX.prototype,"updatePlaceholderTexts",null);_.x([_.W("quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],JX.prototype,"hasCustomOptionText",null);JX=_.x([_.Q({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],JX);
_.C(JX,"ytd-backstage-quiz-editor-renderer",function(){if(KO4!==void 0)return KO4;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return KO4=K},{mode:2});var dU2;var f6H=(U8.FIRSTDAYOFWEEK+1)%7;var HX8;var DU6=[],VLB=0,SiH=0;VLB=0;SiH=24;if(.25*(SiH-VLB)<0)HX8=[];else{for(var yCH=VLB;yCH<SiH;yCH+=.25)DU6.push(yCH);HX8=DU6}var ngH=HX8.map(function(K){K=K*60*60;return{secondsSinceMidnight:K,text:(new Ap(7)).format(new Date(0,0,0,0,0,K))}});var iXN;var s4=function(){var K=_.q.apply(this,arguments)||this;K.skipNextOpenDialog=!1;K.errorMessage="";return K};
_.O(s4,_.q);_.V=s4.prototype;_.V.attached=function(){var K=this,d=new MutationObserver(function(){K.JSC$13596_calendarMain.scrollHeight>0&&(d.disconnect(),K.calendarConfig&&K.calendarConfig.selectedDate&&K.scrollToDate())});
d.observe(this.JSC$13596_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){d.disconnect()},1E3)};
_.V.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.V.onDateTextChange=function(){if(this.calendarConfig){var K=this.validateDateText();K.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(K.details)):this.textbox.setAttribute("invalid","")}};
_.V.handleDayClick=function(K){K.model.day.date&&(this.commitDate(K.model.day.date),this.dialog.close())};
_.V.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var K=WGN(this.calendarConfig.selectedDate,this.renderData);K!==void 0&&this.JSC$13596_calendarMain.scrollToIndex(K)}};
_.V.scrollToNextMonth=function(){this.JSC$13596_calendarMain.scrollToIndex(this.JSC$13596_calendarMain.firstVisibleIndex+1)};
_.V.scrollToPrevMonth=function(){this.JSC$13596_calendarMain.firstVisibleIndex===0&&this.JSC$13596_calendarMain.scrollTo(0,0);this.JSC$13596_calendarMain.scrollToIndex(this.JSC$13596_calendarMain.firstVisibleIndex-1)};
_.V.onFormSubmit=function(K){K.preventDefault();this.calendarConfig&&(K=this.validateDateText(),K.isValid&&(this.commitDate(K.details),this.dialog.close()))};
_.V.onEscOrClickingOutside=function(K){K=K.detail.path&&!!K.detail.path.length&&K.detail.path[0];if(K.classList.contains("ytd-calendar-date-picker")){K===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var d=0;d<this.dropdownButton.children.length;d++)this.dropdownButton.children[d]===K&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}K=this.textbox.value!==this.dateText;d=this.validateDateText();K&&d.isValid&&this.commitDate(d.details);this.dialog.close();this.textbox.value=
this.dateText};
_.V.commitDate=function(K){this.calendarConfig&&(this.set("calendarConfig.selectedDate",K),_.Zp(this.hostElement,"ytd-calendar-date-selected",K))};
_.V.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var K=this.textbox.value;var d=new Date;K=(new KOu(2)).parse(K,d,{validate:!0})===K.length?mA5(d):void 0;if(!K)return this.errorMessage=_.iB("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};d=this.calendarConfig.start;var f=this.calendarConfig.end;if(oOo(K,d))return this.errorMessage=_.iB("ENTER_DATE_OR_LATER",{allowed_date:ba5(d)}),{isValid:!1,details:void 0};if(oOo(f,K))return this.errorMessage=
_.iB("ENTER_DATE_OR_EARLIER",{allowed_date:ba5(f)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:K}};
_.x$.Object.defineProperties(s4.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?ba5(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var K=this.calendarConfig,d=[],f=0;f<7;f++)d.push(U8.NARROWWEEKDAYS[(f+f6H)%7]);f=[];for(var H=new Date(K.start.year,K.start.month);H.getFullYear()<K.end.year||H.getFullYear()===K.end.year&&H.getMonth()<=K.end.month;){var D=f,S=D.push,n=H.getFullYear(),u=H.getMonth(),a=K,R=void 0,F=[],z=Object.freeze({extraCssClass:"invisible",debugClass:""}),v=new Date(n,u),g=mA5(v);v=v.getDay();for(var N=mA5(new Date);g.month===
u;){v!==f6H&&R||(R=Array.from({length:7}).fill(z),F.push(R));var h={date:{year:n,month:u,day:g.day},extraCssClass:"",debugClass:""};a.selectedDate&&h.date&&tFo(h.date,a.selectedDate)&&(h.extraCssClass+=" selected");if(oOo(g,a.start)||oOo(a.end,g))h.extraCssClass+=" disabled";tFo(g,N)&&(h.extraCssClass+=" today");h.extraCssClass=h.extraCssClass.trim();R[(v-f6H+7)%7]=h;g=EOX(g);v=(v+1)%7}S.call(D,{weeks:F,monthLabel:U8.SHORTMONTHS[u]+" "+n,year:n,month:u,monthLabelExtraCssClass:F[0][2]===z?"shift-down-label":
""});H.setMonth(H.getMonth()+1)}return{months:f,daysOfWeekLabel:d}}}}});
s4.prototype.onEscOrClickingOutside=s4.prototype.onEscOrClickingOutside;s4.prototype.scrollToDate=s4.prototype.scrollToDate;_.x([_.A(),_.B("design:type",Object)],s4.prototype,"calendarConfig",void 0);_.x([_.A(),_.B("design:type",Object)],s4.prototype,"skipNextOpenDialog",void 0);_.x([_.A(),_.B("design:type",Object)],s4.prototype,"errorMessage",void 0);_.x([_.n8("#textbox"),_.B("design:type",HTMLInputElement)],s4.prototype,"textbox",void 0);
_.x([_.n8("#calendar-dialog"),_.B("design:type",Object)],s4.prototype,"dialog",void 0);_.x([_.n8("#calendar-main"),_.B("design:type",Object)],s4.prototype,"JSC$13596_calendarMain",void 0);_.x([_.n8("#date-picker"),_.B("design:type",HTMLElement)],s4.prototype,"dropdownButton",void 0);_.x([_.W("calendarConfig.selectedDate"),_.B("design:type",String),_.B("design:paramtypes",[])],s4.prototype,"dateText",null);
_.x([_.W("calendarConfig","calendarConfig.selectedDate"),_.B("design:type",Object),_.B("design:paramtypes",[])],s4.prototype,"renderData",null);_.x([_.SP("renderData","calendarConfig.selectedDate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s4.prototype,"scrollToDate",null);_.x([_.VV("iron-overlay-canceled"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],s4.prototype,"onEscOrClickingOutside",null);
s4=_.x([_.N7({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],s4);
_.C(s4,"ytd-calendar-date-picker",function(){if(iXN!==void 0)return iXN;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return iXN=K},{mode:2});var cCN=_.iB("UTC_OFFSET_FORMAT",{utc_offset:(new Ap("Z")).format(new Date)}),uO8=(new Date).getTimezoneOffset()*-60,a6s=new Date,I64,UUk=G0(a6s.getTimezoneOffset());I64=Wq9(Ay4(UUk,a6s));var R14=_.iB("LOCAL_TIME_GMT_LABEL",{gmt_text:I64.replace("+0","+").replace("-0","-").replace(":00","")}),k3=function(){var K=_.q.apply(this,arguments)||this;K.selectedTimeIndex=0;K.selectedTimezoneIndex=0;K.timeOfDayOptions=ngH;return K};
_.O(k3,_.q);_.V=k3.prototype;_.V.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var K=hOB();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=K,this.selectedTimeIndex=0;else{var d=l0X(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},K,{selectedDate:d.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(f){return f.secondsSinceMidnight===d.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.V.onDatePicked=function(K){this.selectedDate=K.detail};
_.V.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Zp(this.hostElement,"ytd-date-time-selection-cancelled")};
_.V.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var K=this.selectedDate;K=new Date(K.year,K.month,K.day);_.Zp(this.hostElement,"ytd-date-time-selection-update",Math.floor(K.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+K.getTimezoneOffset()*60))}};
_.V.getTimezoneFormat=function(K){return K.localizedDisplayText?K.localizedDisplayText:_.iB("TIMEZONE_FORMAT",{utc_offset_text:""+K.localizedUtcOffset,city_name:""+K.localizedName})};
_.V.updateSelectedTimeIndexFromBinding=function(K){this.selectedTimeIndex=K.detail.value};
_.V.updateSelectedTimezoneIndexFromBinding=function(K){this.selectedTimezoneIndex=K.detail.value};
_.x$.Object.defineProperties(k3.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K=this.data.timezoneOptions;var d={name:"Etc/Unknown",localizedName:_.iB("LOCAL_TIME_LABEL"),localizedUtcOffset:cCN,utcOffsetSec:""+uO8,localizedDisplayText:R14};K?K.length&&K[0].name!==d.name&&(K[0].localizedDisplayText||(d.localizedDisplayText=""),K.unshift(d)):K=[d];return K}}},
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]}}});
k3.prototype.onDateTimeTimezoneChange=k3.prototype.onDateTimeTimezoneChange;k3.prototype.onDatePicked=k3.prototype.onDatePicked;k3.prototype.updateDefaultSelectedValue=k3.prototype.updateDefaultSelectedValue;_.x([_.A(),_.B("design:type",Object)],k3.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],k3.prototype,"calendarConfig",void 0);_.x([_.A(),_.B("design:type",Object)],k3.prototype,"selectedDate",void 0);_.x([_.A(),_.B("design:type",Object)],k3.prototype,"selectedTimeIndex",void 0);
_.x([_.A(),_.B("design:type",Object)],k3.prototype,"selectedTimezoneIndex",void 0);_.x([_.n8("#time-listbox"),_.B("design:type",Object)],k3.prototype,"timeListBox",void 0);_.x([_.n8("#timezone-listbox"),_.B("design:type",Object)],k3.prototype,"timezoneListBox",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],k3.prototype,"rendererStamperBehavior",void 0);_.x([_.W("data.timezoneOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],k3.prototype,"timeZones",null);
_.x([_.an("data","timeZones"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k3.prototype,"updateDefaultSelectedValue",null);_.x([_.W("selectedTimezoneIndex","timeZones"),_.B("design:type",Object),_.B("design:paramtypes",[])],k3.prototype,"selectedTimezone",null);_.x([_.W("selectedTimeIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],k3.prototype,"selectedTime",null);
_.x([_.VV("ytd-calendar-date-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],k3.prototype,"onDatePicked",null);_.x([_.SP("selectedTimezone","selectedTime","selectedDate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k3.prototype,"onDateTimeTimezoneChange",null);k3=_.x([_.Q({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],k3);
_.C(k3,"ytd-date-time-picker-renderer",function(){if(dU2!==void 0)return dU2;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return dU2=K},{mode:1});var FOJ;var wt=function(){var K=_.q.apply(this,arguments)||this;K.boundOnTapDismissButton=function(){K.dismissTapHandler()};
K.dismissButtonOverrides={size:"XS"};return K};
_.O(wt,_.q);wt.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}}}}}};
wt.prototype.dismissTapHandler=function(){_.Zp(this.hostElement,"yt-backstage-attachment-dismissed")};
wt.prototype.computeAttachmentType=function(K){return K?K.backstageImageRenderer?"image":K.videoRenderer?"video":"none":"none"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],wt.prototype,"attachmentPreview",void 0);_.x([_.A(),_.B("design:type",Object)],wt.prototype,"dismissButton",void 0);_.x([_.A(),_.B("design:type",Object)],wt.prototype,"boundOnTapDismissButton",void 0);
_.x([_.A(),_.B("design:type",Object)],wt.prototype,"dismissButtonOverrides",void 0);_.x([_.A({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.B("design:type",String)],wt.prototype,"attachmentType",void 0);wt=_.x([_.Q({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],wt);
_.C(wt,"ytd-backstage-dismissable-attachment",function(){if(FOJ!==void 0)return FOJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return FOJ=K},{mode:1});var z1J;var ZJ=function(){var K=_.q.apply(this,arguments)||this;K.selectedVideoId=void 0;K.picker=void 0;K.dismissButtonOverrides={size:"XS"};K.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return K};
_.O(ZJ,_.q);_.V=ZJ.prototype;_.V.onServiceRequestCompleted=function(K){K.stopPropagation()};
_.V.handleAddVideoPreviewAction=function(K){K=this.get("addVideoPreviewAction",K);this.onGetVideoPreviewSuccess(K)};
_.V.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}}}}}};
_.V.onLaunchVideoPicker=function(K){var d=this,f=_.qQ(this.get("addVideoLinkAction.title",K)),H=this.get("addVideoLinkAction.onePickHostId",K);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",K);H&&(this.picker||(f=_.lqJ(_.PFX(H).setTitle(f).addView(El6()).addView($oJ()),function(D){d.onPickVideo(D)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",K)||f.addView("youtube"),this.picker=f.build()),this.picker.setVisible(!0))};
_.V.onPickVideo=function(K){if(K)if(K.action==="cancel")_.Zp(this.hostElement,"yt-video-link-button-cancel");else if(K.action==="picked"){K=K.docs;if(!K||K.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(K=(K==null?0:K.length)?K[0]:void 0)?K.id:void 0;this.setVideoPreview()}};
_.V.setVideoPreview=function(){var K=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){K.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.V.onGetVideoPreviewSuccess=function(K){if(K&&K.videoPreview&&K.cancelButton)this.videoPreview=K.videoPreview,this.cancelButton=K.cancelButton,_.Zp(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.V.onGetVideoPreviewError=function(){this.cancel()};
_.V.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Zp(this.hostElement,"yt-video-link-cancel")};
_.V.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
ZJ.prototype.onServiceRequestCompleted=ZJ.prototype.onServiceRequestCompleted;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ZJ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ZJ.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ZJ.prototype,"videoPreview",void 0);_.x([_.A(),_.B("design:type",Object)],ZJ.prototype,"cancelButton",void 0);_.x([_.A(),_.B("design:type",Object)],ZJ.prototype,"getVideoPreviewCommand",void 0);_.x([_.A(),_.B("design:type",Object)],ZJ.prototype,"dismissButtonOverrides",void 0);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ZJ.prototype,"onServiceRequestCompleted",null);ZJ=_.x([_.Q({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],ZJ);
_.C(ZJ,"ytd-backstage-video-link-attachment",function(){if(z1J!==void 0)return z1J;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return z1J=K},{mode:1});var XM6;var vgs;var MLk;var eN=function(){return _.q.apply(this,arguments)||this};
_.O(eN,_.q);eN.prototype.dataChanged=function(){this.active=!1};
eN.prototype.onTap=function(){_.Zp(this.hostElement,"yt-select-emoji-suggestion",this.data)};
eN.prototype.identity=function(K){return K};
_.x$.Object.defineProperties(eN.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H;if((K=this.data)==null?0:(d=K.image)==null?0:(f=d.thumbnails)==null?0:(H=f[0])==null?0:H.url)return K=this.data.image.thumbnails[0].url,K.startsWith("data:image/svg+xml")?u$(K):_.Xa(K)}}});
eN.prototype.dataChanged=eN.prototype.dataChanged;_.x([_.A(),_.B("design:type",Object)],eN.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],eN.prototype,"active",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eN.prototype,"dataChanged",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],eN.prototype,"imageSrc",null);
eN=_.x([_.Q({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],eN);
_.C(eN,"ytd-emoji-suggestion",function(){if(MLk!==void 0)return MLk;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return MLk=K},{mode:1});var Pa9=/.*([:@#].*?)$/,p9=function(){var K=_.q.apply(this,arguments)||this;K.suggestions=[];K.suggestionIndex=-1;K.JSC$13624_lastSuggestionRange=null;return K};
_.O(p9,_.q);_.V=p9.prototype;_.V.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.V.getSuggestions=function(K){var d=[],f=V0t(this.emojiManager,K.substr(0,3));if(f)for(var H in f)if(H.toLocaleLowerCase().indexOf(K)===0){var D=f[H];if(D&&D.emojiId){D=oF(this.emojiManager,D.emojiId);var S=void 0,n=void 0,u=void 0,a=void 0,R=((S=D)==null?0:S.isCustomEmoji)?(n=D)==null?void 0:(u=n.shortcuts)==null?void 0:u[0]:(a=D)==null?void 0:a.emojiId;S=void 0;d.push({suggestion:{image:(S=D)==null?void 0:S.image,alt:R,text:H}});if(d.length>=64)break}}return d?d.sort(function(F,z){return z.suggestion.text<
F.suggestion.text?-1:z.suggestion.text===F.suggestion.text?0:1}):null};
_.V.insertSuggestion=function(K){_.Zp(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13624_lastSuggestionRange,text:K.alt});this.dropdown.opened=!1};
_.V.updateSuggestionsAtCaret=function(K){this.updateSuggestions(K,this.retrieveTextBeforeRange(K))};
_.V.offsetStartOfRangeBy=function(K,d){K.startOffset>=d&&K.setStart(K.startContainer,K.startOffset-d)};
_.V.updateSuggestions=function(K,d){var f=this;this.JSC$13624_lastSuggestionRange&&(this.JSC$13624_lastSuggestionRange.detach(),this.JSC$13624_lastSuggestionRange=null);if((d=Pa9.exec(d))&&d.length&&(d=d[d.length-1].toLocaleLowerCase(),d.length>2||d===":_")&&(this.offsetStartOfRangeBy(K,d.length),this.JSC$13624_lastSuggestionRange=K,(K=this.getSuggestions(d))&&K.length)){this.suggestions=K;_.jW(this,function(){f.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(K.length-1);return}this.dropdown.opened=!1};
_.V.onKeyDown=function(K){if(this.dropdown.opened)switch(K.key){case "Escape":this.dropdown.opened=!1;K.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);K.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);K.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),K.preventDefault()}};
_.V.onKeyUp=function(K,d){switch(K.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(d);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(d)}};
_.V.onKeyPress=function(K){K.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),K.preventDefault())};
_.V.changeSuggestionIndex=function(K){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(K+this.suggestions.length)%this.suggestions.length,K=this.dropdownContent.children[this.suggestionIndex],K.active=!0,this.dropdownContent.scrollTop=K.offsetTop)};
_.V.retrieveTextBeforeRange=function(K){var d=K.startContainer;return d&&d.nodeType===Node.TEXT_NODE?d.textContent.substr(0,K.startOffset):""};
p9.prototype.onKeyPress=p9.prototype.onKeyPress;p9.prototype.onKeyUp=p9.prototype.onKeyUp;p9.prototype.onKeyDown=p9.prototype.onKeyDown;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Array)],p9.prototype,"suggestions",void 0);_.x([_.A(),_.B("design:type",_.YL)],p9.prototype,"emojiManager",void 0);_.x([_.A(),_.B("design:type",Number)],p9.prototype,"verticalSuggestionsOffset",void 0);
_.x([_.n8("#dropdown"),_.B("design:type",Object)],p9.prototype,"dropdown",void 0);_.x([_.n8("#dropdown-content"),_.B("design:type",HTMLDivElement)],p9.prototype,"dropdownContent",void 0);_.x([_.VV("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],p9.prototype,"onKeyDown",null);_.x([_.VV("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent,Range]),_.B("design:returntype")],p9.prototype,"onKeyUp",null);
_.x([_.VV("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],p9.prototype,"onKeyPress",null);p9=_.x([_.Q({disableElementRegistration:!0,is:"ytd-emoji-input"})],p9);
_.C(p9,"ytd-emoji-input",function(){if(vgs!==void 0)return vgs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return vgs=K},{mode:2});var ggL;var KN=function(){var K=_.q.apply(this,arguments)||this;K.hasMaxOptions=!1;return K};
_.O(KN,_.q);_.V=KN.prototype;_.V.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.V.setPrefilledChoices=function(K){var d=this;this.set("pollOptions",[]);var f;for(f=0;f<Math.min(K.length,this.data.maxPollOptions);f++)this.push("pollOptions",K[f].substring(0,this.data.maxPollOptionChars));for(;f<this.data.minPollOptions;f++)this.push("pollOptions","");this.hasMaxOptions=f>=this.data.maxPollOptions;_.jW(this,function(){for(var H=d.pollOptions,D=_.E(d.hostElement).querySelectorAll(".poll-option-input"),S=0;S<D.length;S++)D[S].value=H[S]})};
_.V.focusChanged=function(){_.f8(this.hostElement)};
_.V.onInput=function(){var K=this;_.mx(this,"onInput",function(){K.isValid()?_.Zp(K.hostElement,"yt-commentbox-post-enable"):_.Zp(K.hostElement,"yt-commentbox-post-disable")},300)};
_.V.setPollOptions=function(){var K=[],d,f=((d=this.data)==null?0:d.minPollOptions)?this.data.minPollOptions:0;for(d=0;d<f;d++)K.push("");return K};
_.V.addPollOption=function(){var K=this;_.Zp(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.oc.addLowPriorityJob(function(){var d;(d=_.E(K.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||d.focus()})};
_.V.onRemovePollOption=function(K){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Zp(this.hostElement,"yt-poll-attachment-dismiss")):(K=this.repeat.indexForElement(K.target.parentNode),K!==null&&(this.splice("pollOptions",K,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Zp(this.hostElement,"yt-commentbox-post-enable"))))};
_.V.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.V.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var K=0,d=this.pollOptions.length;K<d;K++)if(this.pollOptions[K].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.V.getPollOptions=function(){return this.pollOptions};
_.V.setPollOptionsFromInputs=function(){for(var K=_.E(this.hostElement).querySelectorAll(".poll-option-input"),d=0;d<K.length;d++)this.pollOptions[d]=K[d].value.trim()};
_.V.clearPollOptions=function(){var K=_.E(this.hostElement).querySelectorAll(".poll-option-input");K=_.y(K);for(var d=K.next();!d.done;d=K.next())d.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.V.getSimpleString=function(K){return _.qQ(K)};
_.V.updateValueFromBinding=function(K){if(K.target&&this.pollOptions){var d=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(K.target);if(d>=0){var f;this.pollOptions[d]=(f=K.detail.value)!=null?f:"";this.notifyPath("pollOptions."+d)}}};
KN.prototype.dataChanged=KN.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],KN.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Array)],KN.prototype,"pollOptions",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],KN.prototype,"hasMaxOptions",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],KN.prototype,"enableCreationBox",void 0);
_.x([_.n8("#repeat"),_.B("design:type",M7)],KN.prototype,"repeat",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KN.prototype,"dataChanged",null);KN=_.x([_.Q({disableElementRegistration:!0,is:"ytd-poll-attachment"})],KN);
_.C(KN,"ytd-poll-attachment",function(){if(ggL!==void 0)return ggL;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ggL=K},{mode:2});var OX8;var Nn6;var Yiv;var tL9;var dA=function(){return _.q.apply(this,arguments)||this};
_.O(dA,_.q);_.x$.Object.defineProperties(dA.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],dA.prototype,"rendererBehaviors",void 0);_.x([_.A(),_.B("design:type",Object)],dA.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],dA.prototype,"focused",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("focused"),_.B("design:type",Object),_.B("design:paramtypes",[])],dA.prototype,"ariaSelected",null);dA=_.x([_.N7({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],dA);
_.C(dA,"yt-user-mention-suggestion-renderer",function(){if(tL9===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Yiv===void 0&&(Yiv=document.createElement("template"));var H=Yiv;f.call(d,H.content.cloneNode(!0),K.content.firstChild);tL9=K}K=tL9;return K},{mode:2});var og8;var $UB;var fN=function(){var K=_.q.apply(this,arguments)||this;K.focusedSuggestionIndex=-1;return K};
_.O(fN,_.q);_.V=fN.prototype;_.V.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.V.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.V.setFocusedSuggestionIndex=function(K){!this.data||!this.data.suggestions||K<0||K>=this.data.suggestions.length||(this.focusedSuggestionIndex=K,K=this.getSuggestionId(K),this._setFocusedSuggestionId(K))};
_.V.advanceSuggestion=function(K){this.focusedSuggestionIndex===-1||K!==-1&&K!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+K),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.V.ensureSuggestionVisible=function(K){K=this.getSuggestionId(K);K=_.E(this.hostElement).querySelector("[id="+K+"]");K!=null&&(K.offsetTop<this.hostElement.scrollTop?K.scrollIntoView(!0):K.offsetTop+K.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&K.scrollIntoView(!1))};
_.V.getSuggestionId=function(K){return"user-mention-suggestion-"+K};
_.V.onSuggestionTap=function(K){var d=_.P(K.model.item,zF6);this.ytRendererBehavior.logExplicitClick(d);_.Zp(this.hostElement,"yt-user-mention-suggestion-selected",{data:d,index:K.model.index})};
_.V.onSuggestionMouseMove=function(K){K.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(K.model.index)};
_.V.isSuggestionFocused=function(K,d){return K===d};
_.V.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.V.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("focused-suggestion-id-changed",this.focusedSuggestionId))};
fN.prototype.focusedSuggestionIdChangedForBinding=fN.prototype.focusedSuggestionIdChangedForBinding;fN.prototype.onDomChange=fN.prototype.onDomChange;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],fN.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],fN.prototype,"focusedSuggestionIndex",void 0);_.x([_.A({readOnly:!0}),_.B("design:type",String)],fN.prototype,"focusedSuggestionId",void 0);
_.x([_.VV("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fN.prototype,"onDomChange",null);_.x([_.SP("focusedSuggestionId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fN.prototype,"focusedSuggestionIdChangedForBinding",null);fN=_.x([_.N7({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],fN);
_.C(fN,"yt-user-mention-suggestions-dropdown",function(){if($UB===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;og8===void 0&&(og8=document.createElement("template"));var H=og8;f.call(d,H.content.cloneNode(!0),K.content.firstChild);$UB=K}K=$UB;return K},{mode:2});var HZ=function(){var K=_.q.apply(this,arguments)||this;K.suggestionsResponse=null;K.activeMention=null;K.selectionChangeListener=K.onSelectionChange.bind(K);K.handlesEnabled=_.M("enable_handles_in_mention_suggest_posts");K.handlesInMentionSuggestionsEnabled=_.M("handles_in_mention_suggest_posts");K.zeroPrefixMentionSuggestionEnabled=_.M("enable_zero_prefix_mention_suggestion_web");K.pendingQuery=null;K.flowNonce=null;return K};
_.O(HZ,_.q);_.V=HZ.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.V.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.V.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.V.hasSuggestions=function(K){return!!(K&&K.suggestions&&K.suggestions.length>0)};
_.V.onInput=function(){var K=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var d=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),f=this.activeMention.JSC$9248_getText().slice(-1)===" ",H=this.activeMention.JSC$9248_getText().slice(-2,-1)===" ",D="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9248_getText().slice(-2,-1))>=
0;D=this.zeroPrefixMentionSuggestionEnabled&&D;if(this.activeMention.isCollapsed()||(d||H||D)&&f)this.cancelActiveMention();else{var S=this.activeMention.JSC$9248_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.mx(this,"requestSuggestions",function(){K.requestSuggestions(S)},100)}}}};
_.V.onServiceRequestSent=function(K){K.stopPropagation()};
_.V.onServiceRequestCompleted=function(K){K.stopPropagation();K=K.detail.data;K.query&&(!this.pendingQuery||this.pendingQuery!==K.query)||!this.zeroPrefixMentionSuggestionEnabled&&K.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=K,this.hasSuggestions(K)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.V.onServiceRequestError=function(K){K.stopPropagation()};
_.V.onUserMentionSuggestionSelected=function(K){this.selectSuggestion(K.detail.data,K.detail.index)};
_.V.onSelectionChange=function(){if(this.activeMention){var K=_.ic(),d=this.activeMention.JSC$9248_containsRange(K);K=K&&this.containsHelper(this.dropdown,K.getContainer());d||K||this.cancelActiveMention()}};
_.V.containsHelper=function(K,d){var f;if(((f=window.ShadyDOM)==null?void 0:f.noPatch)===!0)return K.contains(d);for(;d;){if(d===K)return!0;d=d instanceof ShadowRoot?d.host:d.parentNode}return!1};
_.V.maybeStartSuggest=function(){var K=_.ic();if(K&&K.isCollapsed()){var d=K.JSC$9248_getStartNode(),f=K.JSC$9248_getStartOffset();if(d instanceof Text&&!(f<1)){var H=d.textContent;!(H=H&&H.charAt(f-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(H)<0||(this.activeMention=_.tl(d,f-1,K.JSC$9248_getEndNode(),K.JSC$9248_getEndOffset()),this.flowNonce=Oy(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.V.updateActiveMention=function(){if(this.activeMention){var K=_.ic();K&&K.isCollapsed()&&(this.activeMention=_.tl(this.activeMention.JSC$9248_getStartNode(),this.activeMention.JSC$9248_getStartOffset(),K.JSC$9248_getEndNode(),K.JSC$9248_getEndOffset()))}};
_.V.requestSuggestions=function(K){if(this.activeMention){var d={suggestions_query:K};this.pendingQuery=K;_.dN(this.hostElement,[this.suggestionsEndpoint,d])}};
_.V.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()};
_.V.focusPreviousSuggestion=function(K){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),K.preventDefault())};
_.V.focusNextSuggestion=function(K){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),K.preventDefault())};
_.V.selectFocusedSuggestion=function(K){if(this.hasSuggestions(this.suggestionsResponse)){var d=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.P(d,zF6)&&(this.selectSuggestion(_.P(d,zF6),this.dropdown.focusedSuggestionIndex),K.preventDefault())}};
_.V.selectSuggestion=function(K,d){if(K){var f=this.activeMention;if(f){var H=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&K.handle?_.g9(H,"\u00a0\u2068@"+K.handle+"\u2069\u00a0"):this.handlesEnabled?_.g9(H,"\u00a0"+K.displayName+"\u00a0"):_.g9(H,"\u00a0@"+K.displayName+"\u00a0");ND(H,"/channel/"+K.channelId);H.classList.add("yt-formatted-string","yt-simple-endpoint");H.setAttribute("spellcheck","false");f.isCollapsed()||f.JSC$9248_removeContents();f.insertNode(H,!0);K=document.createTextNode(" ");
H.parentNode.insertBefore(K,H.nextSibling);window.getSelection().collapse(K,1);d={suggestionSelected:{suggestionIndex:d}};if(this.zeroPrefixMentionSuggestionEnabled){var D;d.suggestionSelected.isZeroPrefix=((D=this.suggestionsResponse)==null?void 0:D.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",d);this.cancelActiveMention();_.Zp(this.hostElement,"yt-mention-inserted")}}};
_.V.getPositionTarget=function(K){return K&&K.getBrowserRangeObject()};
_.V.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.V.onFocusedSuggestionIdChanged=function(K){var d=_.OvO(this.hostElement)[0];d&&(K.detail.value?d.setAttribute("aria-activedescendant",K.detail.value):d.removeAttribute("aria-activedescendant"))};
_.V.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.V.logGELEvent=function(K,d){K={eventType:K,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};d&&(K=Object.assign(K,d));_.t3("userMentionAutoCompleteBoxEvent",K)};
HZ.prototype.onDomChange=HZ.prototype.onDomChange;HZ.prototype.onUserMentionSuggestionSelected=HZ.prototype.onUserMentionSuggestionSelected;HZ.prototype.onServiceRequestError=HZ.prototype.onServiceRequestError;HZ.prototype.onServiceRequestCompleted=HZ.prototype.onServiceRequestCompleted;HZ.prototype.onServiceRequestSent=HZ.prototype.onServiceRequestSent;HZ.prototype.onInput=HZ.prototype.onInput;_.x([_.l(_.u4),_.B("design:type",Object)],HZ.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],HZ.prototype,"suggestionsEndpoint",void 0);_.x([_.A(),_.B("design:type",Object)],HZ.prototype,"suggestionsResponse",void 0);_.x([_.A(),_.B("design:type",Object)],HZ.prototype,"activeMention",void 0);_.x([_.n8("#dropdown"),_.B("design:type",Object)],HZ.prototype,"dropdown",void 0);_.x([_.n8("#iron-dropdown"),_.B("design:type",Object)],HZ.prototype,"ironDropdown",void 0);
_.x([_.VV("input"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],HZ.prototype,"onInput",null);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],HZ.prototype,"onServiceRequestSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],HZ.prototype,"onServiceRequestCompleted",null);
_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],HZ.prototype,"onServiceRequestError",null);_.x([_.VV("yt-user-mention-suggestion-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],HZ.prototype,"onUserMentionSuggestionSelected",null);
_.x([_.VV("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],HZ.prototype,"onDomChange",null);HZ=_.x([_.N7({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],HZ);
_.C(HZ,"yt-user-mention-autosuggest-input",function(){if(Nn6===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;OX8===void 0&&(OX8=document.createElement("template"));var H=OX8;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Nn6=K}K=Nn6;return K},{mode:2});var D_=null;
_.vP({is:"ytd-commentbox",_template:function(){if(XM6!==void 0)return XM6;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return XM6=K},
behaviors:[_.d9B.YtHostElementBehavior,_.u4,_.kc.YtActionHandlerBehavior,_.hj.YtComponentBehavior,_.s9.YtRendererstamperBehavior,_.M5s.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(K,d){return _.DR(K.entities,"aadcGuidelinesStateEntityPayload",d)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(K,d){return _.DR(K.entities,"commentboxStateEntity",d)},
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 _.$L}},
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:_.M("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.M("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",_.Dm(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(K){this.fire(K?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(K){this.set("submitButtonDisabled",void 0);this.clear();K&&this.computeIsEmojiButtonDisplayed_(K)&&(K=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&K.updateEmojiCategories()},
observePrefilledImage_:function(K,d,f){this.isValidPrefilledImage_(K,d,f)&&(this.prefilledAttachment_="image",this.prefilledImageData_=d,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(K,d){this.isValidPrefilledVideo_(K,d)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(K){K&&K.pollData&&K.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(K.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.fT();this.focus()},
detached:function(){document.removeEventListener("tap",_.Dm(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(K){K=K.detail;K=K.isCustomEmoji?K.shortcuts[0]:K.emojiId;var d=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(d,K);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var K=_.ic();if(K){K=K.getBrowserRangeObject();for(var d=K.commonAncestorContainer;d;){if(d===this.getEditableTextArea_())return K;d=d.parentNode}}K=this.getEditableTextArea_();K=_.Y1(K,K.childNodes.length);K.select();return K.getBrowserRangeObject()},
insertTextWithEmojis_:function(K,d,f){(d=this.emojiManager.createDocumentFragment(d,!0,!1,f===void 0?!0:f))&&d.childNodes.length!==0&&(K.collapsed||K.deleteContents(),f=d.lastChild,K.insertNode(d),_.fEN(f).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var K=_.ic();if(K){var d=K.JSC$9248_getStartNode(),f=K.JSC$9248_getEndNode();if(GbN(d)&&GbN(f)){var H=K.JSC$9248_getStartOffset(),D;if(_.ps&&d.nodeType===Node.ELEMENT_NODE&&(D=_.RGt(d)))_.Y1(D,0).select();else{D=Sd(d)?d:_.bW(d,Sd);var S=Sd(f)?f:_.bW(f,Sd);if(D||S)if(K.isCollapsed()){if(d.nodeType===Node.TEXT_NODE){K=!0;H===d.length&&(K=!1);if(D_==="end"||D_==="right")K=!1;d=d.parentNode;K=[].concat(_.Me(d.parentNode.childNodes)).indexOf(d)+(K?0:1);_.Y1(d.parentNode,K).select()}}else D?
D.previousSibling&&D.previousSibling.length>0?_.tl(f,K.JSC$9248_getEndOffset(),D.previousSibling,D.previousSibling.length-1).select():(d=document.createTextNode("\u200b"),D.parentNode.insertBefore(d,D),_.tl(f,K.JSC$9248_getEndOffset(),d,0).select()):S&&(S.nextSibling&&S.nextSibling.length>0?_.tl(d,K.JSC$9248_getStartOffset(),S.nextSibling,1).select():(f=document.createTextNode("\u200b"),S.parentNode.insertBefore(f,S.nextSibling),_.tl(d,K.JSC$9248_getStartOffset(),f,f.length).select()));D_=null}}else D_=
null}else D_=null},
leftKeyPressed_:function(){D_="left"},
rightKeyPressed_:function(){D_="right"},
endKeyPressed_:function(){D_="end"},
maybeDeleteChip_:function(){var K=jqu(!0);if(K){var d=_.ic(),f=d.JSC$9248_getStartNode();d=d.JSC$9248_getStartOffset();_.M_(f,d,K,K.childNodes.length).select()}},
maybeBackspaceChip_:function(){var K=jqu(!1);if(K){var d=_.ic(),f=d.JSC$9248_getStartNode();d=d.JSC$9248_getStartOffset();_.M_(f,d,K,0).select()}},
maybeBackspaceChipWordMode_:function(K){var d=_.ic();if(d.isCollapsed()){var f=d.JSC$9248_getStartNode();d=d.JSC$9248_getStartOffset();var H=Cvo(f,d,!0);H&&(_.M_(f,d,H,0).select(),document.execCommand("delete"),K.preventDefault(),K.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(K){var d=_.ic();if(d.isCollapsed()){var f=d.JSC$9248_getStartNode();d=d.JSC$9248_getStartOffset();var H=Cvo(f,d,!1);H&&(_.M_(f,d,H,H.childNodes.length).select(),document.execCommand("delete"),K.preventDefault(),K.stopImmediatePropagation())}},
onTap_:function(K){if(!K.defaultPrevented&&(K.currentTarget.tagName==="YTD-COMMENTBOX"&&Sd(K.target)&&K.preventDefault(),this.isEmojiPickerDisplayed)){var d=this.$$("#emojis"),f=this.$$("#emoji-button"),H=this.getEditableTextArea_();if((K=K.path?K.path:K.composedPath&&K.composedPath())&&!K.includes(d)&&!K.includes(H)&&!K.includes(f))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(K,d,f){return K==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&d!==void 0&&d.encryptedBlobId!==null&&d.sourceExternalVideoId!==null&&f!==void 0&&f.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(K,d){return K==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!d&&!!d.videoRenderer&&!!d.videoRenderer.videoId},
isValidPrefilledAttachment_:function(K,d,f){return this.isValidPrefilledImage_(K,d,f)||this.isValidPrefilledVideo_(K,f)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.M("enable_multi_image_post_creation")){var K=this.$$("ytd-backstage-multi-image-select-renderer");K&&K.hasImages()&&K.cancel()}else(K=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&K.cancel();(K=this.$["poll-attachment"])&&this.hasPoll_&&K.clearPollOptions();(K=this.$["image-poll-attachment"])&&this.hasImagePoll_&&K.resetPollOptions();(K=this.$["quiz-attachment"])&&this.hasQuiz_&&K.resetQuizOptions();
(K=this.$["video-link-attachment"])&&this.hasVideo_&&K.cancel();(K=this.$["access-restrictions-selector"].firstElementChild)&&K.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.E(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.E(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(K,d){K=TSY(K,this.emojiManager,d).cloneNode(!0);for(d=K.firstChild;d;)if(d.nodeType!==1)d=d.nextSibling;else switch(d.tagName){case "BR":var f=_.F_();_.OBB(f,d);d=f.nextSibling;break;case "DIV":(f=d.lastChild)&&d.nextSibling&&_.MO(_.F_(),f);d.previousSibling&&(d.previousSibling.nodeType===1||d.previousSibling.nodeType===3&&!d.previousSibling.textContent.endsWith("\n"))&&_.vc(_.F_(),d);f&&f.nodeName==="BR"&&_.FE(f);f=d;d.hasChildNodes()?(d=d.firstChild,
_.Nz2(f)):(d=d.nextSibling,_.FE(f));break;default:d=d.nextSibling}return xAN(K)},
onAddImageError_:function(K){K.stopPropagation();this.errorMessage_=_.rB(K.detail)},
setTextAreaValue_:function(K){K||(K="");var d=this.getEditableFormattedString_();d.text="";this.getEditableTextArea_().innerText="";typeof K==="string"&&(K={runs:[{text:K}]});d.text=K},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();D_=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var K=this.getEditableTextArea_();K&&(_.Y1(K,K.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.mD("HTML_DIR")==="rtl"){var K=this.getEditableTextArea_(),d=this.getTextAreaValue()!==""?"auto":"rtl";K.setAttribute("dir",d)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var K;return nkz((K=this.$["quiz-attachment"])==null?void 0:K.getExplanationText())||nkz(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var K=null;if(this.isEmojiButtonDisplayed){var d=this.getInputRange_();d&&(K=this.emojiInput.retrieveTextBeforeRange(d))}this.insertText_(K,!0);this.updateCharCount_();this.setSubmitButton_();K=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=K.scrollHeight>K.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var K=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:K})},
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(K){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(K)},
onPasteEmoji_:function(K){K.preventDefault();K.stopImmediatePropagation();K=K.clipboardData.getData("text/plain");this.insertText_(K,!1,!1)},
insertText_:function(K,d,f){d=d===void 0?!1:d;f=f===void 0?!0:f;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&K){var H=this.getInputRange_().cloneRange();this.emojiManager&&H&&(d&&this.emojiInput.offsetStartOfRangeBy(H,K.length),this.insertTextWithEmojis_(H,K,f),AEJ(this.getEditableTextArea_().lastChild)||(H=this.getInputRange_().cloneRange()),H&&(this.emojiInput.updateSuggestions(H,K),this.updateSuggestionOffset_(H)))}},
setSubmitButton_:function(){if(this.data){var K=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",d=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(K||d){var f=this.getTextAreaValue().trim();d=f===this.previousText_;f=!f||this.aboveCharLimit_;K&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(f=this.aboveCharLimit_);this.submitButtonDisabled=
d||f||!this.getTextLength();K&&_.M("enable_post_scheduling")&&(this.submitButtonDisabled=d&&!this.scheduledPublishTimeSec_||f)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.qQ,computeCreationBoxClass_:function(K){return K?"focused":"not-focused"},
computeFooterMessageClass_:function(K,d){return d?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(K,d){return d?d:K},
computeFooterMessageHidden_:function(K,d){return!d&&!K},
computePlaceholderText_:function(K,d,f){return(f==="video"||f==="image")&&(K==null?0:K.prefilledPlaceholderText)?K==null?void 0:K.prefilledPlaceholderText:d==="poll"||d==="image-poll"?K==null?void 0:K.pollPostPlaceholderText:d==="quiz"?K==null?void 0:K.quizPostPlaceholderText:d==="image"?K==null?void 0:K.imagePostPlaceholderText:K==null?void 0:K.placeholderText},
computeHideAttachmentButtons_:function(K,d,f,H){return K===void 0?!1:H&&this.getSimpleString(H)===this.getSimpleString(K.rateLimitErrorMessage)?!0:d!=="none"||f!=="none"||!K.videoLinkButton&&!K.pollButton&&!K.imagePollButton&&!K.quizButton&&!K.imageButton},
computeHideDismissableAttachment_:function(K){return K!=="image"&&K!=="video"},
computeHasVideo_:function(K){return K==="video"},
computeHasImage_:function(K){return K==="image"},
computeHasPoll_:function(K){return K==="poll"},
computeHasImagePoll_:function(K){return K==="image-poll"},
computeHasQuiz_:function(K){return K==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(K){return K&&K.backstageAttachment?K.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!K.backstageAttachment.quizRenderer&&!K.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(K){if(this.isValidPrefilledAttachment_(K.purpose,K.prefilledImageData,K.backstageAttachment))return K.backstageAttachment},
computeEditAttachment_:function(K){if(this.computePrefilledContent_(K)===void 0)return K.backstageAttachment},
computeAuthorThumbnailDimension_:function(K,d){return K&&!d?24:40},
computeImageUploadEndpoint_:function(K){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",K)},
computeRateLimitErrorCommands_:function(K){var d,f;return K==null?void 0:(d=K.advancedTierFeatures)==null?void 0:(f=d.rateLimit)==null?void 0:f.rateLimitCommands},
computeIsBackstageComment_:function(K){return!(!K||K!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(K){return this.get("submitButton.buttonRenderer.serviceEndpoint",K)||this.get("replyButton.buttonRenderer.serviceEndpoint",K)||this.get("postButton.buttonRenderer.serviceEndpoint",K)},
computeSubmitButtonOverride:function(){if(_.M("web_modern_buttons")){var K,d;return{segmentedPosition:this.dropdownSchedulePanel_||!((K=this.data)==null?0:(d=K.postOptionsMenu)==null?0:d.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.M("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(K,d){K=this.get("submitButton.buttonRenderer",K)||this.get("replyButton.buttonRenderer",K)||this.get("postButton.buttonRenderer",K);d&&(K=d);K&&(K=Object.assign({},K),K.serviceEndpoint=void 0,K.isDisabled=this.submitButtonDisabled);return K},
computeHasExternalLinksAccess_:function(K){if(_.M("enable_rfa_external_links")){var d,f,H;return(H=K==null?void 0:(d=K.advancedTierFeatures)==null?void 0:(f=d.externalLinks)==null?void 0:f.allowExternalLinks)!=null?H:!0}return!0},
computeIsEmojiButtonDisplayed_:function(K){return K.emojiButton&&K.emojiPicker&&K.emojiPicker.emojiPickerRenderer&&K.emojiPicker.emojiPickerRenderer.categories?K.emojiPicker.emojiPickerRenderer.categories.find(function(d){return d.emojiPickerCategoryRenderer?d.emojiPickerCategoryRenderer.emojiIds&&d.emojiPickerCategoryRenderer.emojiIds.length>0:d.emojiPickerUpsellCategoryRenderer?d.emojiPickerUpsellCategoryRenderer.emojis&&d.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(K){return K.charLimit?K.charLimit:null},
computeDropdownSchedulingPanel_:function(K,d){if(K==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&d)return d},
computeInlineSchedulingPanel_:function(K,d){if(K==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&d)return d},
computeHideAuthorThumbnail_:function(K,d){return K||this.computeUseIdentityChip_(d)},
computeHideIdentityChipRenderer_:function(K,d){return K||!this.computeUseIdentityChip_(d)},
computeUseIdentityChip_:function(K){return!!K&&!!K.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(K){var d,f,H,D;(K==null?0:(d=K.detail)==null?0:(f=d.endpoint)==null?0:f.ypcGetOffersEndpoint)||(K==null?0:(H=K.detail)==null?0:(D=H.endpoint)==null?0:D.ypcOffersEndpoint)?(K.stopPropagation(),_.dN(this,[K.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",K)&&(K.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(K){this.addedAttachment="video";this.selectedVideoId_=K.detail.videoId},
commentboxStateEntityChanged_:function(K){var d=this;(K==null?void 0:K.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(K==null?void 0:K.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){d.focus()})},
onYtServiceRequestSent_:function(K,d){if(d.actions)for(K=_.y(d.actions),d=K.next();!d.done;d=K.next())d.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(K){this.isLoading=!1;var d=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",K),f,H,D,S=K==null?void 0:(f=K.detail)==null?void 0:(H=f.data)==null?void 0:(D=H.actionResult)==null?void 0:D.commentboxStateEntityKey;if(d)this.errorMessage_=d;else if(S){var n;this.dismissData_=K==null?void 0:(n=K.detail)==null?void 0:n.data;this.commentboxStateKey_=S}else{this.clear();var u;this.fire("yt-commentbox-dismiss",K==null?void 0:(u=K.detail)==
null?void 0:u.data)}},
onYtServiceRequestError_:function(K){K.stopPropagation();this.isLoading=!1;var d,f;if(((d=this.data)==null?void 0:d.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((f=this.data)==null?void 0:f.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(d=this.get("detail.error.args",K)||[],d.length>1&&d[1].message){this.handlePostsServiceRequestError_(d[1].message);return}(K=this.get("detail.error.message",K))?this.errorMessage_=this.data.errorMessage||_.rB(K):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(K){if(_.M("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var d=_.y(this.rateLimitErrorCommands),f=d.next();!f.done;f=d.next())if(f=f.value,f.errorLabel===K){_.SV(f.command,this.hostElement);return}this.errorMessage_=_.rB(K)},
submitIfNotBackstagePost_:function(K){if(!this.isBackstagePost)this.onSubmit_(K)},
onSubmit_:function(K){var d=this,f,H,D,S,n,u,a,R,F,z,v,g,N,h,m;return _.c(function(T){switch(T.nextAddress){case 1:K.stopPropagation();if(!d.serviceEndpoint||!d.isValidInput_())return T.return();if(d.shouldShowPostAadcNotice_())return d.showPostAadcNotice_(),T.return();if(d.shouldShowCommentAadcNotice_())return d.showCommentAadcNotice_(),T.return();if(!(d.$$("ytd-backstage-multi-image-select-renderer")&&d.hasImage_&&_.M("enable_multi_image_post_creation"))){T.jumpTo(2);break}f=d.$$("ytd-backstage-multi-image-select-renderer");
return _.I(T,f.getAllUploadStatuses(),3);case 3:H=T.yieldResult;if(!H)return T.return();D=_.y(H);for(S=D.next();!S.done;S=D.next())if(n=S.value,n.encryptedBlobId===void 0)return d.isLoading=!1,a=u=void 0,d.errorMessage_=(a=(u=d.imageUploadEndpoint_)==null?void 0:u.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?a:null,T.return();return T.return(d.submitForm_(void 0,void 0,void 0,void 0,f.images,d.taggedVideoId_));case 2:if(!d.hasImagePoll_||!d.$["image-poll-attachment"]){T.jumpTo(4);
break}return _.I(T,d.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:R=T.yieldResult;if(!R)return T.return();F=_.y(R);for(z=F.next();!z.done;z=F.next())if(v=z.value,!v.encryptedBlobId)return d.isLoading=!1,g=void 0,d.errorMessage_=(g=d.data.errorMessage)!=null?g:null,T.return();case 4:h=(N=d.$$("ytd-backstage-image-select-renderer"))&&N.uploadPromise(),m=d.getSharedPostId_(),h?h.then(function(){d.submitForm_.apply(d,_.Me(_.Pg.apply(0,arguments)))}).catch(function(r){d.isLoading=!1;
d.errorMessage_=_.rB(r.message)}):d.selectedVideoId_?d.submitForm_(void 0,d.selectedVideoId_):d.prefilledAttachment_==="image"?d.submitForm_(d.prefilledImageData_.encryptedBlobId,void 0,void 0,d.prefilledImageData_.sourceExternalVideoId,void 0,d.taggedVideoId_):d.prefilledAttachment_==="video"?d.submitForm_(void 0,d.data.backstageAttachment.videoRenderer.videoId):m?d.submitForm_(void 0,void 0,m):d.taggedVideoId_!==void 0?d.submitForm_(void 0,void 0,void 0,void 0,void 0,d.taggedVideoId_):d.submitForm_(),
_.iQ(T)}})},
openSchedulingPanel:function(K){K&&K.scheduleButton&&K.scheduleButton.buttonRenderer&&(this.scheduleButton_=K.scheduleButton.buttonRenderer);K&&K.dateTimePicker&&this.set("data.schedulingDateTimePicker",K.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(K){K.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(K){K.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(K){K.stopPropagation();K.detail.alertMessage&&(this.alertMessage_=K.detail.alertMessage)},
onImageSelected_:function(K){K.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(K){K.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(K){K.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(K.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(K){K.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(K){var d=this.$["video-link-attachment"];d&&d.onLaunchVideoPicker(K)},
onAttachmentDismiss_:function(K){K.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"&&_.M("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.M("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 K;if(this.addedAttachment==="image-poll"&&((K=this.$["image-poll-attachment"])==null||!K.isValid()))return!1;var d;if(this.addedAttachment==="quiz"&&((d=this.$["quiz-attachment"])==null||!d.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;K=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(K=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")K=!0;return K||!!this.getTextAreaValue().trim()},
submitForm_:function(K,d,f,H,D,S){var n=this.getTextAreaValue().trim(),u={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&n===this.previousText_&&(n=void 0);n!==void 0&&(u.comment_text=n);this.isLoading=!0;S!=void 0&&(u.tagged_video_id=S);K?(u.image_blob_id=K,this.imagePreviewCoordinates_&&(u.image_preview_coordinates=this.imagePreviewCoordinates_)):d?u.attached_video_id=d:f?u.shared_post_id=f:D&&D.length>0&&(u.images_data=D.map(function(a){return{encryptedBlobId:a.encryptedBlobId,
previewCoordinates:a.previewCoordinates}}));
H&&(u.source_video_id=H);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(u.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(u.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(u.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.M("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(u.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.M("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(u.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.dN(this,[this.serviceEndpoint,u])},
onIsInputFocusChanged_:function(K,d){K?this.fire("yt-autonav-pause-focus"):d!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(K){var d=this.getEditableTextArea_();[].concat(_.Me(K.dataTransfer.items)).forEach(function(f){f.kind==="string"&&f.type.match("^text/plain")&&f.getAsString(function(H){d.appendChild(document.createTextNode(H))})});
K.preventDefault()},
preventDefault_:function(K){K.preventDefault()},
onSuggestionInsert_:function(K){this.insertTextWithEmojis_(K.detail.range,K.detail.text)},
onEmojiSuggestionClick_:function(K){this.emojiInput.insertSuggestion(K.detail)},
computeSubmitButtonClass_:function(K,d){return!d||K?"":"with-options"},
updateSuggestionOffset_:function(K){if(this.emojiInput&&_.E(this.emojiInput).querySelector("#dropdown")){var d=this.getEditableTextArea_().getBoundingClientRect().bottom,f=K.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(d-f)+5;d=this.getEditableTextArea_().getBoundingClientRect().left;K=K.getBoundingClientRect().left-d;_.E(this.emojiInput).querySelector("#dropdown").style.marginLeft=K+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(K){if(_.M("enable_post_scheduling")&&this.data&&this.data.purpose){K=K.detail;if(Math.floor(Date.now()/1E3)>=K)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var d=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(d)||d!==K?this.scheduledPublishTimeSec_=K:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=K;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var K=["image-button","image-poll-button","poll-button"];_.M("enable_quiz_creation")&&K.push("quiz-button");_.M("auto_convert_posts_video_tag")||K.push("video-link-button");return K},
getButtonRenderer:function(K,d){if(K)switch(d){case "video-link-button":var f;return((f=K.videoLinkButton)==null?void 0:f.buttonRenderer)||void 0;case "image-button":var H;return((H=K.imageButton)==null?void 0:H.buttonRenderer)||void 0;case "poll-button":var D;return((D=K.pollButton)==null?void 0:D.buttonRenderer)||void 0;case "image-poll-button":var S;return((S=K.imagePollButton)==null?void 0:S.buttonRenderer)||void 0;case "quiz-button":var n;return((n=K.quizButton)==null?void 0:n.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var K;return(K=this.data)==null||!K.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var K,d;return!((K=this.data)==null||!K.openAadcDialog)&&!((d=this.aadcGuidelinesState_)==null||!d.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.mD("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var K;((K=this.data)==null?0:K.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.mn("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(K){K.clickTrackingParams&&_.cv().clickCommand(K);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.ev(this,"yt-close-popup-action")},
onHideIdentityChip:function(K){var d;this.set("data.placeholderText",(d=K.hideIdentityChipAction)==null?void 0:d.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var V7=function(){var K=_.q.apply(this,arguments)||this;K.isOpen=!1;K.modern=_.M("web_modern_buttons");K.roundedContainer=!0;K.dropdownButtonOverride=_.M("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;K.inPopupContainer=!1;K.isCommentboxLoading=!1;var d=["image-button","image-poll-button","poll-button"];_.M("enable_quiz_creation")&&d.push("quiz-button");_.M("auto_convert_posts_video_tag")||d.push("video-link-button");K.attachmentButtonIds=d;K.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 K};
_.O(V7,_.q);_.V=V7.prototype;_.V.computeButtonOverride=function(){var K;return((K=this.data)==null?0:K.postOptionsMenu)&&_.M("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.V.configureRendererStamper=function(){var K={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.M("auto_convert_posts_video_tag")||(K["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return K};
_.V.ready=function(){var K=this,d=_.E(this.hostElement).querySelector("#placeholder-area"),f=function(H){K.onOpen(H)};
d.addEventListener("tap",f);d.addEventListener("keypress",f)};
_.V.showButtonEduTooltip=function(){var K,d,f,H,D,S,n;if(_.M("enable_quiz_creation")&&((K=this.data)==null?0:(d=K.quizButton)==null?0:(f=d.buttonRenderer)==null?0:(H=f.hint)==null?0:(D=H.hintRenderer)==null?0:(S=D.content)==null?0:(n=S.bubbleHintRenderer)==null?0:n.text)&&(_.xf.getInstance(),K=L5(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(K==null?void 0:
K.length)>0)){this.ytComponentBehavior.resolveCommand(K[0],{form:{element:this.quizButton}});return}var u;if((u=this.data)==null?0:u.imagePollButtonTooltip)if(_.xf.getInstance(),u=L5(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(u==null?void 0:u.length)>0){this.ytComponentBehavior.resolveCommand(u[0],{form:{element:this.imagePollButton}});return}var a;_.M("enable_multi_image_post_creation")&&
((a=this.data)==null?0:a.multiImageButtonTooltip)&&(_.xf.getInstance(),a=L5(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(a==null?void 0:a.length)>0&&this.ytComponentBehavior.resolveCommand(a[0],{form:{element:this.imageButton}}))};
_.V.onCreatePollAction=function(K){_.P(K,$vL)&&(this.JSC$13679_commentbox.addedAttachment="poll",this.openDialog())};
_.V.onAddVideoLinkAction=function(K){if(_.P(K,ob9))this.JSC$13679_commentbox.onAddVideoLink(K)};
_.V.onShowSchedulingPanelCommand=function(K){(K=_.P(K,HsH))&&this.openSchedulingPanel(K)};
_.V.onCreateImagePollCommand=function(K){_.P(K,co4)&&(this.JSC$13679_commentbox.openImagePollComponent(),this.openDialog())};
_.V.onCreateQuizCommand=function(K){_.P(K,u24)&&(this.JSC$13679_commentbox.openQuizComponent(),this.openDialog())};
_.V.openSchedulingPanel=function(K){_.M("enable_post_scheduling")&&(this.openDialog(),this.JSC$13679_commentbox.openSchedulingPanel(K))};
_.V.onCreateCommentAction=function(K){this.get("createCommentAction.contents",K)&&(this.JSC$13679_commentbox.clear(),this.closeDialog())};
_.V.onOpen=function(K){K instanceof KeyboardEvent&&K.type==="keypress"&&K.keyCode!==13&&K.keyCode!==32||(this.data.prepareAccountEndpoint?_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.V.onYtCommentboxDismiss=function(){this.closeDialog()};
_.V.onYtCommentboxLoadingStart=function(K){K.stopPropagation();this.isCommentboxLoading=!0};
_.V.onYtCommentboxLoadingEnd=function(K){K.stopPropagation();this.isCommentboxLoading=!1};
_.V.onYtVideoLinkButtonCancel=function(K){K.stopPropagation();this.onOpen(K)};
_.V.onYtVideoLinkSelected=function(K){K.stopPropagation();this.onOpen(K)};
_.V.onIronSelect=function(K){K.stopPropagation();K.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=K.detail.item.value&&(this.accessRestriction?(this.accessRestriction=K.detail.item.value,this.onOpen(K)):this.accessRestriction=K.detail.item.value)};
_.V.onYtNavigate=function(K){this.get("detail.endpoint.backstageImageUploadEndpoint",K)&&(this.JSC$13679_commentbox.addedAttachment="image",this.JSC$13679_commentbox.submitButtonDisabled=!0,this.onOpen(K))};
_.V.onRequestSent=function(K){if(_.M("web_button_rework"))for(var d=_.y(K.detail),f=d.next();!f.done;f=d.next())_.P(f.value,gn4)&&(this.JSC$13679_commentbox.addedAttachment="image",this.JSC$13679_commentbox.submitButtonDisabled=!0,this.onOpen(K))};
_.V.openDialog=function(){this.JSC$13679_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13679_commentbox.focus()};
_.V.onPopupClosed=function(){_.xf.getInstance()};
_.V.computeCreationDisabled=function(K){return!!K};
_.V.computeIsCreationDialog=function(K){return!!K&&K==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.V.computeDisabledPostButton=function(K){if(!K)return null;K.isDisabled=!0;return K};
_.V.computeIsCreationDialogWithHeader=function(K){return!this.inPopupContainer&&!!K&&!!K.authorText&&K.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.V.computeIsHeaderHidden=function(K,d){return!K||d};
_.V.computeDropdownRendererClasses=function(K){return K?["text-secondary-style"]:[]};
_.V.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var K=_.E(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;K&&K.reset()};
V7.prototype.onPopupClosed=V7.prototype.onPopupClosed;V7.prototype.onRequestSent=V7.prototype.onRequestSent;V7.prototype.onYtNavigate=V7.prototype.onYtNavigate;V7.prototype.onIronSelect=V7.prototype.onIronSelect;V7.prototype.onYtVideoLinkSelected=V7.prototype.onYtVideoLinkSelected;V7.prototype.onYtVideoLinkButtonCancel=V7.prototype.onYtVideoLinkButtonCancel;V7.prototype.onYtCommentboxLoadingEnd=V7.prototype.onYtCommentboxLoadingEnd;V7.prototype.onYtCommentboxLoadingStart=V7.prototype.onYtCommentboxLoadingStart;
V7.prototype.onYtCommentboxDismiss=V7.prototype.onYtCommentboxDismiss;V7.prototype.showButtonEduTooltip=V7.prototype.showButtonEduTooltip;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],V7.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],V7.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],V7.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],V7.prototype,"isOpen",void 0);_.x([_.A({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],V7.prototype,"buttonOverride",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],V7.prototype,"modern",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],V7.prototype,"roundedContainer",void 0);_.x([_.A(),_.B("design:type",Object)],V7.prototype,"dropdownButtonOverride",void 0);_.x([_.A({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.B("design:type",Boolean)],V7.prototype,"creationDisabled",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],V7.prototype,"enableCreationBox",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.B("design:type",Boolean)],V7.prototype,"isCreationDialog",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],V7.prototype,"inPopupContainer",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.B("design:type",Boolean)],V7.prototype,"isCreationDialogWithHeader",void 0);_.x([_.A(),_.B("design:type",Object)],V7.prototype,"accessRestriction",void 0);
_.x([_.A({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.B("design:type",Array)],V7.prototype,"dropdownRendererClasses",void 0);_.x([_.A(),_.B("design:type",Object)],V7.prototype,"isCommentboxLoading",void 0);_.x([_.A(),_.B("design:type",Array)],V7.prototype,"attachmentButtonIds",void 0);_.x([_.n8("#image-button"),_.B("design:type",HTMLElement)],V7.prototype,"imageButton",void 0);
_.x([_.n8("#image-poll-button"),_.B("design:type",HTMLElement)],V7.prototype,"imagePollButton",void 0);_.x([_.n8("#quiz-button"),_.B("design:type",HTMLElement)],V7.prototype,"quizButton",void 0);_.x([_.n8("#commentbox"),_.B("design:type",Object)],V7.prototype,"JSC$13679_commentbox",void 0);_.x([_.SP("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],V7.prototype,"showButtonEduTooltip",null);
_.x([_.VV("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],V7.prototype,"onYtCommentboxDismiss",null);_.x([_.VV("yt-commentbox-loading-start"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],V7.prototype,"onYtCommentboxLoadingStart",null);
_.x([_.VV("yt-commentbox-loading-end"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],V7.prototype,"onYtCommentboxLoadingEnd",null);_.x([_.VV("yt-video-link-button-cancel"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],V7.prototype,"onYtVideoLinkButtonCancel",null);
_.x([_.VV("yt-video-link-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],V7.prototype,"onYtVideoLinkSelected",null);_.x([_.VV("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],V7.prototype,"onIronSelect",null);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],V7.prototype,"onYtNavigate",null);
_.x([_.VV("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],V7.prototype,"onRequestSent",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],V7.prototype,"onPopupClosed",null);V7=_.x([_.Q({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],V7);
_.C(V7,"ytd-backstage-post-dialog-renderer",function(){if(Za2!==void 0)return Za2;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Za2=K},{mode:1});var Egk;var h19;var SK=function(){return _.q.apply(this,arguments)||this};
_.O(SK,_.q);_.V=SK.prototype;_.V.computeHeartButtonStyle=function(K){return(K==null?0:K.styleType)?K.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.V.onYtButtonTap=function(){if(this.data.isEnabled){var K=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(K=this.getEndpoint(K))&&_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}})}else(K=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(K)};
_.V.toggle=function(K){this.set("data.isHearted",K!==void 0?K:!this.data.isHearted)};
_.V.getEndpoint=function(K){var d,f=(d=this.data)==null?void 0:d.heartEndpoint,H;d=(H=this.data)==null?void 0:H.unheartEndpoint;if(f&&d)return K?d:f};
_.V.computeButtonAccessibility=function(K,d){var f,H,D=K==null?void 0:(f=K.heartedAccessibility)==null?void 0:(H=f.accessibilityData)==null?void 0:H.label,S,n;K=K==null?void 0:(S=K.unheartedAccessibility)==null?void 0:(n=S.accessibilityData)==null?void 0:n.label;return d?D:K};
_.x$.Object.defineProperties(SK.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 K;return _.M("kevlar_system_icons")&&!((K=this.data)==null||!K.isHearted)}}});
SK.prototype.onYtButtonTap=SK.prototype.onYtButtonTap;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],SK.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],SK.prototype,"data",void 0);_.x([_.W("data.isHearted"),_.B("design:type",Object),_.B("design:paramtypes",[])],SK.prototype,"heartTooltip",null);
_.x([_.W("data.isHearted"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],SK.prototype,"iconFilled",null);_.x([_.A({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.B("design:type",String)],SK.prototype,"buttonAccessibility",void 0);_.x([_.A({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],SK.prototype,"heartButtonStyle",void 0);
_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SK.prototype,"onYtButtonTap",null);SK=_.x([_.Q({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],SK);
_.C(SK,"ytd-creator-heart-renderer",function(){if(h19!==void 0)return h19;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return h19=K},{mode:1});var y7=function(){var K=_.q.apply(this,arguments)||this;K.hasCreatorReply=!1;K.buttonOverrides={size:"S",iconPosition:"icon-only"};K.replyButtonOverrides={size:"S",type:"text"};K.forceIconButton=!_.M("web_modern_buttons");K.modern=_.M("web_modern_buttons");K.buttonTooltipPosition="bottom";K.systemIcons=_.M("kevlar_system_icons");K.replyDialog=null;return K};
_.O(y7,_.q);_.V=y7.prototype;
_.V.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]]"}}}}}};
_.V.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.V.dataChange=function(){this.replyDialog&&_.E(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var K,d,f;this.isLiked=this.systemIcons&&!!((K=this.data)==null?0:(d=K.likeButton)==null?0:(f=d.toggleButtonRenderer)==null?0:f.isToggled)};
_.V.computeShowVoteCountBeginning=function(K,d){return K===void 0||d===void 0?!0:K.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!d&&this.ytRendererBehavior.getSimpleString(d)!=="0"};
_.V.computeShowVoteCountEnd=function(K,d){return K===void 0||d===void 0?!0:K.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!d&&this.ytRendererBehavior.getSimpleString(d)!=="0"};
_.V.computeShowCommentCount=function(K,d){return K===void 0||d===void 0?!0:K.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!d&&this.ytRendererBehavior.getSimpleString(d)!=="0"};
_.V.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.V.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.V.showReplyDialog=function(K){K&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.E(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=K,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.V.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.V.onRequestSent=function(K){if(_.M("web_button_rework")){K=_.y(K.detail);for(var d=K.next();!d.done;d=K.next())(d=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",d.value))&&this.showReplyDialog(d)}};
_.V.onYtNavigate=function(K){var d,f;(K=(d=_.P(K.detail.endpoint,_.NTJ))==null?void 0:(f=d.dialog)==null?void 0:f.commentReplyDialogRenderer)&&this.showReplyDialog(K)};
_.V.onYtServiceRequestSent=function(K,d){K.stopPropagation();if(d.actions)for(K=0;K<d.actions.length;K++){var f=_.P(d.actions[K],bsJ);f&&this.handleUpdateCommentVoteAction(f)}};
_.V.handleUpdateCommentVoteAction=function(K){this.voteCount=K.voteCount||_.rB("0");K.voteStatus==="LIKE"?this.JSC$13690_ytdDislikeToggleButtonRenderer.toggle(!1):K.voteStatus==="DISLIKE"?this.JSC$13690_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13690_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13690_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.V.computeReplyButtonHidden=function(K){return K};
_.V.computeReplyButtonBeginning=function(K){return(K==null?0:K.replyButton)&&K.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?K.replyButton:void 0};
_.V.computeReplyButtonEnd=function(K){return(K==null?0:K.replyButton)&&K.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?K.replyButton:void 0};
_.V.computeActionButtonStyle=function(K){return(K==null?0:K.style)?K.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.V.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.V.onYtToggleButton=function(K){var d,f;this.isLiked=this.systemIcons&&!!((d=K.detail)==null?0:(f=d.actions)==null?0:f.like)};
y7.prototype.onYtToggleButton=y7.prototype.onYtToggleButton;y7.prototype.onButtonTooltipPositionChanged=y7.prototype.onButtonTooltipPositionChanged;y7.prototype.onYtServiceRequestSent=y7.prototype.onYtServiceRequestSent;y7.prototype.onYtNavigate=y7.prototype.onYtNavigate;y7.prototype.onRequestSent=y7.prototype.onRequestSent;y7.prototype.onYtCommentboxDismiss=y7.prototype.onYtCommentboxDismiss;y7.prototype.dataChange=y7.prototype.dataChange;
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],y7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],y7.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],y7.prototype,"voteCount",void 0);_.x([_.A(),_.B("design:type",Object)],y7.prototype,"commentCount",void 0);_.x([_.A(),_.B("design:type",Object)],y7.prototype,"replyThumbnail",void 0);
_.x([_.A(),_.B("design:type",Object)],y7.prototype,"hasCreatorReply",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],y7.prototype,"enableCreationBox",void 0);_.x([_.A({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],y7.prototype,"actionButtonsStyle",void 0);_.x([_.A({computed:"computeReplyButtonBeginning(data)"}),_.B("design:type",Object)],y7.prototype,"replyButtonBeginning",void 0);
_.x([_.A({computed:"computeReplyButtonEnd(data)"}),_.B("design:type",Object)],y7.prototype,"replyButtonEnd",void 0);_.x([_.A(),_.B("design:type",Object)],y7.prototype,"buttonOverrides",void 0);_.x([_.A(),_.B("design:type",Object)],y7.prototype,"replyButtonOverrides",void 0);_.x([_.A(),_.B("design:type",Object)],y7.prototype,"forceIconButton",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],y7.prototype,"useCommentIcon",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],y7.prototype,"modern",void 0);_.x([_.A(),_.B("design:type",Object)],y7.prototype,"buttonTooltipPosition",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],y7.prototype,"systemIcons",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],y7.prototype,"isLiked",void 0);_.x([_.n8("ytd-button-renderer"),_.B("design:type",Object)],y7.prototype,"ytdReplyButtonRenderer",void 0);
_.x([_.n8("#like-button"),_.B("design:type",Object)],y7.prototype,"JSC$13690_ytdLikeToggleButtonRenderer",void 0);_.x([_.n8("#dislike-button"),_.B("design:type",Object)],y7.prototype,"JSC$13690_ytdDislikeToggleButtonRenderer",void 0);_.x([_.n8("#reply-dialog"),_.B("design:type",HTMLElement)],y7.prototype,"replyDialogElement",void 0);_.x([_.n8("#reply-button"),_.B("design:type",HTMLElement)],y7.prototype,"replyButtonElement",void 0);
_.x([_.n8("#reply-button-end"),_.B("design:type",HTMLElement)],y7.prototype,"replyButtonEndElement",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],y7.prototype,"dataChange",null);_.x([_.VV("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],y7.prototype,"onYtCommentboxDismiss",null);
_.x([_.VV("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],y7.prototype,"onRequestSent",null);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],y7.prototype,"onYtNavigate",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],y7.prototype,"onYtServiceRequestSent",null);_.x([_.SP("buttonTooltipPosition"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],y7.prototype,"onButtonTooltipPositionChanged",null);
_.x([_.VV("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],y7.prototype,"onYtToggleButton",null);y7=_.x([_.Q({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],y7);
_.C(y7,"ytd-comment-action-buttons-renderer",function(){if(Egk!==void 0)return Egk;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Egk=K},{mode:1});var bXJ;var nN=function(){return _.q.apply(this,arguments)||this};
_.O(nN,_.q);nN.prototype.focus=function(){_.E(this.hostElement).querySelector("#commentbox").focus()};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],nN.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],nN.prototype,"zeroStepChannelCreationRenderer",void 0);nN=_.x([_.Q({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],nN);
_.C(nN,"ytd-comment-dialog-renderer",function(){if(bXJ!==void 0)return bXJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return bXJ=K},{mode:1});var mUs;var ib=function(){var K=_.q.apply(this,arguments)||this;K.buttonOverrides={size:"S",iconPosition:"icon-only"};K.replyButtonOverrides={size:"S",type:"text"};return K};
_.O(ib,_.q);_.V=ib.prototype;_.V.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.V.detached=function(){this.replyBox&&this.replyBox.remove()};
_.V.showReplyDialog=function(K){if(K){var d=this.replyBox;d||(d=document.createElement("ytd-comment-reply-dialog-renderer"),d.id="replybox",_.E(this.replyDialogDiv).appendChild(d));d.data=K;this.replyDialogDiv.hidden=!1;d.openDialog()}};
_.V.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.V.onYtServiceRequestSent=function(K,d){K.stopPropagation();if(d.actions)for(var f=0;f<d.actions.length;f++){var H=_.P(d.actions[f],bsJ);H?this.handleUpdateCommentVoteAction(H):K.target===this.heartButton&&this.toggleHeartState()}};
_.V.handleUpdateCommentVoteAction=function(K){var d;(d=this.toolbarState)!=null&&d.key&&this.ytdReduxBehavior.dispatch(_.P9("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:K.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":K.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.V.toggleHeartState=function(){var K;(K=this.toolbarState)!=null&&K.key&&this.ytdReduxBehavior.dispatch(_.P9("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.x$.Object.defineProperties(ib.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return(((K=this.toolbarState)==null?void 0:K.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(d=this.toolbarData)==null?void 0:d.likeCountLiked:(f=this.toolbarData)==null?void 0:f.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.toolbarSurface)==null?void 0:K.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.toolbarSurface)==null?void 0:K.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.toolbarSurface)==null?void 0:K.prepareAccountCommand)!==void 0&&!_.M("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var K,d=_.P((K=this.toolbarSurface)==null?void 0:K.prepareAccountCommand,_.oG),f,H,D,S,n,u,a,R,F;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((f=this.toolbarSharedData)==null||!f.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((H=this.toolbarState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:d!=null?d:_.P((D=this.toolbarSurface)==null?void 0:D.likeCommand,_.oG),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:d!=null?d:_.P((S=this.toolbarSurface)==null?void 0:S.unlikeCommand,_.oG),defaultCommand:this.isVisiblyDisabled?_.P((n=this.toolbarSurface)==null?void 0:n.commentDisabledActionCommand,_.oG):void 0,defaultTooltip:(u=this.toolbarData)==null?void 0:u.likeInactiveTooltip,toggledTooltip:(a=this.toolbarData)==null?void 0:a.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(R=this.toolbarData)==null?void 0:R.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(F=this.toolbarSharedData)==null?void 0:F.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var K,d=_.P((K=this.toolbarSurface)==null?void 0:K.prepareAccountCommand,_.oG),f,H,D,S,n,u,a,R,F,z;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((f=this.toolbarSharedData)==null||!f.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((H=this.toolbarState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:d!=null?d:_.P((D=this.toolbarSurface)==null?void 0:D.dislikeCommand,_.oG),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:d!=null?d:_.P((S=this.toolbarSurface)==null?void 0:S.undislikeCommand,_.oG),defaultCommand:this.isVisiblyDisabled?_.P((n=this.toolbarSurface)==null?void 0:n.commentDisabledActionCommand,_.oG):void 0,defaultTooltip:(u=this.toolbarData)==null?void 0:u.dislikeInactiveTooltip,toggledTooltip:(a=this.toolbarData)==null?void 0:
a.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(R=this.toolbarSharedData)==null?void 0:R.dislikeReplyButtonA11y:(F=this.toolbarSharedData)==null?void 0:F.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(z=this.toolbarSharedData)==null?void 0:z.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var K,d,f;if(((K=this.toolbarState)==null?void 0:K.heartState)!==void 0&&((d=this.toolbarState)==null?void 0:d.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((f=this.toolbarState)==null?void 0:f.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var H,D,S,n,u,a,R,F,z,v,g,N,h,m;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(H=this.toolbarData)==null?void 0:H.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((D=this.toolbarState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((S=this.toolbarState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((n=this.toolbarState)==null?void 0:n.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((u=this.toolbarState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.P((a=this.toolbarSurface)==null?void 0:a.heartCommand,
_.oG),unheartEndpoint:this.isVisiblyDisabled?void 0:_.P((R=this.toolbarSurface)==null?void 0:R.unheartCommand,_.oG),disabledEndpoint:this.isVisiblyDisabled?_.P((F=this.toolbarSurface)==null?void 0:F.commentDisabledActionCommand,_.oG):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(z=this.toolbarData)==null?void 0:z.heartActiveTooltip,unheartedTooltip:(v=this.toolbarData)==null?void 0:v.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((g=
this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(N=this.toolbarSharedData)==null?void 0:N.unheartButtonA11y:(h=this.toolbarSharedData)==null?void 0:h.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(m=this.toolbarSharedData)==null?void 0:m.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.toolbarSurface)==null||!K.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(K=this.commentStrings)==null?void 0:K.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.P((d=this.toolbarSurface)==null?void 0:d.replyCommand,_.oG),command:this.isVisiblyDisabled?_.P((f=this.toolbarSurface)==null?void 0:f.commentDisabledActionCommand,
_.oG):this.isSubscribersOnlyComments?_.P((H=this.toolbarSurface)==null?void 0:H.subscribersOnlySnackbarCommand,_.oG):void 0}}}});
ib.prototype.onYtServiceRequestSent=ib.prototype.onYtServiceRequestSent;ib.prototype.hideReplyDialogDiv=ib.prototype.hideReplyDialogDiv;_.x([_.A(),_.B("design:type",Object)],ib.prototype,"commentStrings",void 0);_.x([_.A(),_.B("design:type",Boolean)],ib.prototype,"isReply",void 0);_.x([_.A(),_.B("design:type",Object)],ib.prototype,"toolbarData",void 0);_.x([_.A(),_.B("design:type",Object)],ib.prototype,"toolbarSharedData",void 0);
_.x([_.A(),_.B("design:type",String)],ib.prototype,"toolbarStateKey",void 0);_.x([_.A(),_.B("design:type",String)],ib.prototype,"toolbarSurfaceKey",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],ib.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.n8("#reply-dialog"),_.B("design:type",HTMLElement)],ib.prototype,"replyDialogDiv",void 0);_.x([_.n8("#replybox"),_.B("design:type",Object)],ib.prototype,"replyBox",void 0);_.x([_.n8("ytd-creator-heart-renderer"),_.B("design:type",Object)],ib.prototype,"heartButton",void 0);_.x([_.A({selector:function(K,d){return _.DR(K.entities,"engagementToolbarStateEntityPayload",d)},
selectorArgs:["toolbarStateKey"]}),_.B("design:type",Object)],ib.prototype,"toolbarState",void 0);_.x([_.A({selector:zYN,selectorArgs:["toolbarSurfaceKey"]}),_.B("design:type",Object)],ib.prototype,"toolbarSurface",void 0);_.x([_.A(),_.B("design:type",Object)],ib.prototype,"buttonOverrides",void 0);_.x([_.VV("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ib.prototype,"hideReplyDialogDiv",null);
_.x([_.W("toolbarData","toolbarState"),_.B("design:type",String),_.B("design:paramtypes",[])],ib.prototype,"likeCount",null);_.x([_.W("likeCount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ib.prototype,"showLikeCount",null);_.x([_.W("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ib.prototype,"isVisiblyDisabled",null);_.x([_.W("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ib.prototype,"isSubscribersOnlyComments",null);
_.x([_.W("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ib.prototype,"hasPrepareAccountCommand",null);_.x([_.W("toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],ib.prototype,"likeToggleButtonRenderer",null);_.x([_.W("isReply","toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],ib.prototype,"dislikeToggleButtonRenderer",null);
_.x([_.W("toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],ib.prototype,"creatorHeartSupportedRenderer",null);_.x([_.W("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ib.prototype,"hasReplyCommand",null);_.x([_.W("toolbarSurface","commentStrings","isVisiblyDisabled"),_.B("design:type",Object),_.B("design:paramtypes",[])],ib.prototype,"replyButtonRenderer",null);
_.x([_.A(),_.B("design:type",Object)],ib.prototype,"replyButtonOverrides",void 0);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],ib.prototype,"onYtServiceRequestSent",null);ib=_.x([_.Q({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],ib);
_.C(ib,"ytd-comment-engagement-bar",function(){if(mUs!==void 0)return mUs;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return mUs=K},{mode:1});var l6f;var cZ=function(){return _.q.apply(this,arguments)||this};
_.O(cZ,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],cZ.prototype,"data",void 0);cZ=_.x([_.Q({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],cZ);
_.C(cZ,"ytd-comment-inline-thumbnail-renderer",function(){if(l6f!==void 0)return l6f;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return l6f=K},{mode:1});var WOB;var ub=function(){return _.q.apply(this,arguments)||this};
_.O(ub,_.q);_.x([_.A(),_.B("design:type",Object)],ub.prototype,"data",void 0);ub=_.x([_.Q({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],ub);
_.C(ub,"ytd-comment-pause-composer-renderer",function(){if(WOB!==void 0)return WOB;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return WOB=K},{mode:1});var GQk;var ACt;var ak=function(){var K=_.q.apply(this,arguments)||this;K.isOpen=!1;return K};
_.O(ak,_.q);_.V=ak.prototype;_.V.dataChanged=function(){this.isOpen=!1};
_.V.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.V.focus=function(){this.JSC$13716_commentbox.focus()};
_.V.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.V.openDialog=function(){this.isOpen=!0;this.JSC$13716_commentbox.focus();this.JSC$13716_commentbox.maybeHeightChanged()};
ak.prototype.onYtCommentboxDismiss=ak.prototype.onYtCommentboxDismiss;ak.prototype.dataChanged=ak.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ak.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],ak.prototype,"isOpen",void 0);_.x([_.n8("#commentbox"),_.B("design:type",Object)],ak.prototype,"JSC$13716_commentbox",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ak.prototype,"dataChanged",null);_.x([_.VV("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ak.prototype,"onYtCommentboxDismiss",null);ak=_.x([_.Q({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],ak);
_.C(ak,"ytd-comment-reply-dialog-renderer",function(){if(ACt!==void 0)return ACt;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ACt=K},{mode:1});var Tns;var Ik=function(){return _.q.apply(this,arguments)||this};
_.O(Ik,_.q);_.x$.Object.defineProperties(Ik.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(K=this.data)==null?void 0:(d=K.icon)==null?void 0:d.iconType;return f?"yt-icons:"+f.toLowerCase():null}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ik.prototype,"data",void 0);_.x([_.A(),_.W("data.icon"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ik.prototype,"icon",null);Ik=_.x([_.Q({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Ik);
_.C(Ik,"ytd-pinned-comment-badge-renderer",function(){if(Tns!==void 0)return Tns;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Tns=K},{mode:1});var rCN;var qi9={},Q3L={input:!0,meta:!0,br:!0,link:!0,img:!0},UE=null;qi9.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(){UE==null&&(UE=document.createElement("tp-yt-paper-tooltip"),UE.offset=8,UE.fitToVisibleBounds=!0)},
onMouseOver_:function(K){if(K=_.bW(K.target,function(D){return D==this||D.getAttribute&&D.getAttribute("shared-tooltip-text")}.bind(this),!0)){var d=K.getAttribute("shared-tooltip-text");
if(d){var f=this,H=null;K!=this&&(K.tagName.toLowerCase()in Q3L?f=K.parentElement:f=K,K.id&&(H=K.id));this.polymerController.createTooltipIfRequired_();if(UE.parentElement!=f||UE.for!=H)(0,_.dj)(UE).textContent=d,_.E(f).appendChild(UE),UE.for=H,UE.animationDelay=this.polymerController.sharedTooltipAnimationDelay,UE.position=this.polymerController.sharedTooltipPosition}}}};var Rk=function(){return _.q.apply(this,arguments)||this};
_.O(Rk,_.q);Rk.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]]"}}}}}};
Rk.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
Rk.prototype.colorChanged=function(){var K,d,f,H=(K=this.data)==null?void 0:(d=K.color)==null?void 0:(f=d.basicColorPaletteData)==null?void 0:f.foregroundBodyColor;H&&(this.rgbBadgeColor=_.E1(H));_.E(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Rk.prototype.tooltipChanged=function(){var K;((K=this.data)==null?0:K.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Rk.prototype.tooltipChanged=Rk.prototype.tooltipChanged;Rk.prototype.colorChanged=Rk.prototype.colorChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(qi9.YtSharedTooltipBehavior),_.B("design:type",Object)],Rk.prototype,"ytSharedTooltipBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Rk.prototype,"data",void 0);
_.x([_.A({value:"#4285F4"}),_.B("design:type",String)],Rk.prototype,"rgbBadgeColor",void 0);_.x([_.SP("data.color"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rk.prototype,"colorChanged",null);_.x([_.SP("data.tooltip"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rk.prototype,"tooltipChanged",null);Rk=_.x([_.Q({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Rk);
_.C(Rk,"ytd-sponsor-comment-badge-renderer",function(){if(rCN!==void 0)return rCN;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return rCN=K},{mode:1});var j32;var Cat;var FB=function(){return _.q.apply(this,arguments)||this};
_.O(FB,_.q);FB.prototype.computeState=function(K){switch(K==null?void 0:K.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"}};
FB.prototype.updateStateIdentifier=function(K){if(this.viewModel.triStateKey){var d=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.P9("triStateButtonStateEntityPayload",d,{key:d,stateIdentifier:K}))}};
FB.prototype.onClick=function(){var K=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(){K.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){K.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.x$.Object.defineProperties(FB.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 K;return((K=this.data)==null?void 0:K.buttonText)||""}}});
_.x([_.A(),_.B("design:type",Object)],FB.prototype,"viewModel",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],FB.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],FB.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.x([_.A({selector:X1J,selectorArgs:["viewModel.triStateKey"]}),_.B("design:type",Object)],FB.prototype,"triStateButtonStateEntity",void 0);
_.x([_.A({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.B("design:type",String)],FB.prototype,"state",void 0);_.x([_.W("viewModel","state"),_.B("design:type",Object),_.B("design:paramtypes",[])],FB.prototype,"data",null);_.x([_.W("data"),_.B("design:type",String),_.B("design:paramtypes",[])],FB.prototype,"buttonText",null);FB=_.x([_.Q({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],FB);
_.C(FB,"ytd-tri-state-button-view-model",function(){if(Cat!==void 0)return Cat;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Cat=K},{mode:1});var xUv;var LOt;var zv=function(){var K=_.q.apply(this,arguments)||this;K.defaultIconToFilled=!_.M("kevlar_fill_comment_chip_icon_killswitch");return K};
_.O(zv,_.q);zv.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
zv.prototype.dataChanged=function(){if(this.data){var K,d;((K=this.data.chipColorPalette)==null?0:K.backgroundColor)&&((d=this.data.chipColorPalette)==null?0:d.foregroundTitleColor)&&_.f8(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.hG(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.hG(this.data.chipColorPalette.foregroundTitleColor)});var f;((f=this.data)==null?0:f.command)?(_.f8(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.f8(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}};
zv.prototype.onTap=function(){var K;if(this.data&&(K=this.data)!=null&&K.command){var d;this.ytComponentBehavior.resolveCommand((d=this.data)==null?void 0:d.command)}};
zv.prototype.getIconSize=function(){return _.M("kevlar_fill_comment_chip_icon_killswitch")?24:12};
zv.prototype.onTap=zv.prototype.onTap;zv.prototype.dataChanged=zv.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],zv.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.u4),_.B("design:type",Object)],zv.prototype,"ironA11yKeysBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],zv.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],zv.prototype,"basePriceText",void 0);_.x([_.A(),_.B("design:type",Object)],zv.prototype,"chipIcon",void 0);_.x([_.A(),_.B("design:type",Object)],zv.prototype,"defaultIconToFilled",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zv.prototype,"dataChanged",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zv.prototype,"onTap",null);
zv=_.x([_.N7({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],zv);
_.C(zv,"yt-pdg-comment-chip-renderer",function(){if(LOt===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;xUv===void 0&&(xUv=document.createElement("template"));var H=xUv;f.call(d,H.content.cloneNode(!0),K.content.firstChild);LOt=K}K=LOt;return K},{mode:2});var XB=function(){var K=_.q.apply(this,arguments)||this;K.useSmallAvatars=_.M("small_avatars_for_comments");K.webWatchCompactComments=_.M("web_watch_compact_comments");K.editDialog=null;return K};
_.O(XB,_.q);_.V=XB.prototype;_.V.onShow=function(){_.ty("cmv",void 0,"wn_comments")};
_.V.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"}}}};
_.V.detached=function(){this.editDialog=null;this.expander.reset()};
_.V.updateBackgroundColor=function(){if(this.backgroundColor){var K={"--ytd-comment-paid-background-color":_.hG(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.f8(this.hostElement,K)}else _.f8(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.V.resetExpander=function(){var K;(K=this.expander)==null||K.reset()};
_.V.openEditDialog=function(K){K.dialog&&(this.editDialog=K.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.V.onYtNavigate=function(K){var d=K.detail.endpoint;if(d=_.P(d,_.Yt2)||_.P(d,_.tIJ))K.stopPropagation(),this.openEditDialog(d)};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null;_.f8(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.V.onAuthorThumbnailClicked=function(){var K=this;_.M("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(d,f){K.onAuthorThumbnailEndpointSuccess(f)},
onServerError:function(d,f){_.h3(new _.X4("Failed to resolve the command",f))}}})};
_.V.onAuthorThumbnailEndpointSuccess=function(K){if((K=K==null?void 0:K.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(K,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();K=K==null?void 0:K.clickTrackingParams;var d=_.YZ();K&&d&&_.cv().graftServerVe(K,d)}};
_.V.logScreenVe=function(){_.eA(_.cv(),66557)};
_.V.onYtCommentboxResize=function(K){var d;(K==null?0:(d=K.detail)==null?0:d.height)&&_.f8(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":K.detail.height+"px"})};
_.x$.Object.defineProperties(XB.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 K,d=(K=this.commentEntity)==null?void 0:K.author;return d&&(d.isCreator||d.isVerified||d.isArtist)?{renderer:{authorEndpoint:d.channelPageEndpoint?_.P(d.channelPageEndpoint,_.oG):_.P(d.channelCommand,_.oG),authorText:{runs:[{text:d.displayName}]},color:d.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:d.isArtist?{iconType:"AUDIO_BADGE"}:
d.isVerified?{iconType:d.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:d.isArtist||d.isVerified?d.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var K,d=(K=this.commentEntity)==null?void 0:K.author;return d!=null&&d.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:d.sponsorBadgeUrl}]},tooltip:d.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var K;return _.P((K=this.commentSurfaceEntity)==null?void 0:K.pdgCommentChip,_.dh4)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var K;return this.voiceReplyContainerViewModel&&((K=this.voiceReplyContainerViewModel)==null?void 0:K.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var K;return _.P((K=this.commentSurfaceEntity)==null?void 0:K.voiceReplyContainerViewModel,rmB)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var K;return this.voiceReplyContainerViewModel&&(K=this.voiceReplyContainerViewModel)!=null&&K.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var K,d;return(d=(K=this.commentSurfaceEntity)==null?void 0:K.commentBackgroundColor)!=null?d:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.M("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var K,d;return(((K=this.commentEntity)==null?void 0:(d=K.properties)==null?void 0:d.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var K,d;if(_.M("enable_profile_cards_on_comments")&&((K=this.commentEntity)==null?0:(d=K.author)==null?0:d.profileCardEndpoint)&&this.viewModel.allowProfileCard){var f,H;return _.P((f=this.commentEntity)==null?void 0:(H=f.author)==null?void 0:H.profileCardEndpoint,_.oG)}var D,S;return _.P((D=this.commentEntity)==null?void 0:(S=D.avatar)==null?void 0:S.endpoint,_.oG)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var K,d;if(_.M("enable_profile_cards_on_comments")&&((K=this.commentEntity)==null?0:(d=K.author)==null?0:d.channelPageEndpoint)){var f,H;return _.P((f=this.commentEntity)==null?void 0:(H=f.author)==null?void 0:H.channelPageEndpoint,_.oG)}var D,S;return _.P((D=this.commentEntity)==null?void 0:(S=D.avatar)==null?void 0:S.endpoint,_.oG)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H,D=(K=this.commentEntity)==null?void 0:(d=K.avatar)==null?void 0:(f=d.image)==null?void 0:(H=f.sources)==null?void 0:H[0];return D?{thumbnails:[{url:D.url,width:D.width,height:D.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.commentEntity)==null?0:(d=K.author)==null?0:d.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.commentEntity)==null?void 0:(d=K.author)==null?void 0:d.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.commentEntity)==null?void 0:(d=K.properties)==null?void 0:d.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var K;return _.P((K=this.commentSurfaceEntity)==null?void 0:K.publishedTimeCommand,_.oG)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var K,d;if(((K=this.commentEntity)==null?0:K.translatedContent)&&((d=this.translateButtonState)==null?void 0:d.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var f;if((f=this.voiceReplyContainerViewModel)==null?0:f.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var H,D;return((H=this.commentEntity)==null?void 0:(D=H.properties)==null?void 0:D.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.commentSharedEntity)==null?void 0:(d=K.strings)==null?void 0:d.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.commentSharedEntity)==null?void 0:(d=K.strings)==null?void 0:d.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.commentEntity)==null||!K.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var K,d,f=(d=_.P((K=this.viewModel)==null?void 0:K.translateButton,T7k))!=null?d:{},H,D,S,n,u,a,R,F,z,v,g;return Object.assign({},f,{untoggledStateData:Object.assign({},f.untoggledStateData,{buttonText:(H=this.commentEntity)==null?void 0:(D=H.translateData)==null?void 0:D.text}),togglingStateData:Object.assign({},f.togglingStateData,{buttonText:(S=this.commentSharedEntity)==null?
void 0:(n=S.strings)==null?void 0:n.translatingText}),toggledStateData:Object.assign({},f.toggledStateData,{buttonText:(u=this.commentSharedEntity)==null?void 0:(a=u.strings)==null?void 0:a.seeOriginalText}),transitionCommand:((R=this.commentEntity)==null?0:R.translatedContent)?void 0:_.P((F=this.commentEntity)==null?void 0:(z=F.translateData)==null?void 0:z.translateComment,_.oG),triStateKey:(v=this.commentEntity)==null?void 0:(g=v.properties)==null?void 0:g.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((d=_.P(_.P((K=this.toolbarSurface)==null?void 0:K.menuCommand,_.oG),on2))==null?void 0:(f=d.menu)==null?void 0:f.menuRenderer)||null}}});
XB.prototype.onYtCommentboxResize=XB.prototype.onYtCommentboxResize;XB.prototype.onYtCommentboxDismiss=XB.prototype.onYtCommentboxDismiss;XB.prototype.onYtNavigate=XB.prototype.onYtNavigate;XB.prototype.resetExpander=XB.prototype.resetExpander;XB.prototype.updateBackgroundColor=XB.prototype.updateBackgroundColor;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],XB.prototype,"ytdReduxBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],XB.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],XB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.n8("#author-thumbnail > button"),_.B("design:type",HTMLElement)],XB.prototype,"authorThumbnailAnchor",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XB.prototype,"linked",null);
_.x([_.W("viewModel","linked"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"linkedCommentBadge",null);_.x([_.A({reflectToAttribute:!0}),_.W("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XB.prototype,"pinned",null);_.x([_.W("viewModel","pinned"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"pinnedCommentBadge",null);
_.x([_.W("commentEntity","commentSharedEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"authorCommentBadge",null);_.x([_.A({reflectToAttribute:!0}),_.W("authorCommentBadge"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"hasAuthorBadge",null);_.x([_.W("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"sponsorCommentBadge",null);
_.x([_.A({reflectToAttribute:!0}),_.W("sponsorCommentBadge"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"hasSponsorBadge",null);_.x([_.W("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"pdgCommentChipRenderer",null);_.x([_.A({reflectToAttribute:!0}),_.W("voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"hasVoiceReply",null);
_.x([_.W("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"voiceReplyContainerViewModel",null);_.x([_.W("voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"voiceReplyUnavailableText",null);_.x([_.A(),_.B("design:type",Object)],XB.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"viewModel",null);
_.x([_.A({selector:function(K,d){return _.DR(K.entities,"commentSharedEntityPayload",d)},
selectorArgs:["viewModel.sharedKey"]}),_.B("design:type",Object)],XB.prototype,"commentSharedEntity",void 0);_.x([_.A({selector:function(K,d){return _.DR(K.entities,"commentEntityPayload",d)},
selectorArgs:["viewModel.commentKey"]}),_.B("design:type",Object)],XB.prototype,"commentEntity",void 0);_.x([_.A({selector:function(K,d){return _.DR(K.entities,"commentSurfaceEntityPayload",d)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.B("design:type",Object)],XB.prototype,"commentSurfaceEntity",void 0);_.x([_.A({selector:zYN,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.B("design:type",Object)],XB.prototype,"toolbarSurface",void 0);_.x([_.A({selector:X1J,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.B("design:type",Object)],XB.prototype,"translateButtonState",void 0);
_.x([_.W("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"backgroundColor",null);_.x([_.A({reflectToAttribute:!0}),_.W("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XB.prototype,"optimalReadingWidthComments",null);_.x([_.n8("ytd-expander"),_.B("design:type",Object)],XB.prototype,"expander",void 0);
_.x([_.SP("backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XB.prototype,"updateBackgroundColor",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],XB.prototype,"useSmallAvatars",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],XB.prototype,"webWatchCompactComments",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"isReply",null);
_.x([_.W("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"authorThumbnailEndpoint",null);_.x([_.W("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"authorNameEndpoint",null);_.x([_.W("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"authorThumbnail",null);_.x([_.W("commentEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],XB.prototype,"authorTextClass",null);
_.x([_.W("commentEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],XB.prototype,"authorChannelName",null);_.x([_.W("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"publishedTime",null);_.x([_.W("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"publishedTimeCommand",null);
_.x([_.W("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"contentText",null);_.x([_.SP("contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XB.prototype,"resetExpander",null);_.x([_.W("commentEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XB.prototype,"shouldShowReadMoreInitially",null);
_.x([_.W("commentSharedEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],XB.prototype,"expandText",null);_.x([_.W("commentSharedEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],XB.prototype,"collapseText",null);_.x([_.W("commentEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XB.prototype,"shouldShowTranslateButton",null);
_.x([_.W("commentEntity","commentSharedEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"translateButton",null);_.x([_.W("toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],XB.prototype,"overflowMenuRenderer",null);_.x([_.A(),_.B("design:type",Object)],XB.prototype,"editDialog",void 0);_.x([_.n8("ytd-comment-dialog-renderer"),_.B("design:type",Object)],XB.prototype,"editCommentDialogContainer",void 0);
_.x([_.n8("ytd-comment-reply-dialog-renderer"),_.B("design:type",Object)],XB.prototype,"editReplyDialogContainer",void 0);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],XB.prototype,"onYtNavigate",null);_.x([_.VV("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],XB.prototype,"onYtCommentboxDismiss",null);
_.x([_.VV("yt-commentbox-resize"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],XB.prototype,"onYtCommentboxResize",null);XB=_.x([_.Q({disableElementRegistration:!0,is:"ytd-comment-view-model"})],XB);
_.C(XB,"ytd-comment-view-model",function(){if(j32!==void 0)return j32;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return j32=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var vZ=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("web_modern_buttons");K.isWatchGrid=_.M("kevlar_watch_grid");K.buttonOverrides={style:"call-to-action"};K.JSC$13762_spinnerEl=null;return K};
_.O(vZ,_.q);_.V=vZ.prototype;_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.V.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]]"}}}}}};
_.V.attached=function(){this.isShowRepliesVisible=!0};
_.V.dataChanged=function(){var K=this.expanderContents;K&&(K.hidden=!0);this.isLoading=!1};
_.V.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.V.isLoadingChanged=function(){this.isLoading&&!this.JSC$13762_spinnerEl&&(this.JSC$13762_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.expanderContents).appendChild(this.JSC$13762_spinnerEl));this.JSC$13762_spinnerEl&&(this.JSC$13762_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var K;(K=this.contents)==null||K.classList.remove("reloading")}};
_.V.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var K=_.P(this.data.viewReplies,_.tQ);K&&this.ytRendererBehavior.logExplicitClick(K)};
_.V.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var K=_.P(this.data.hideReplies,_.tQ);K&&this.ytRendererBehavior.logExplicitClick(K)};
_.V.isShowMoreChanged=function(){var K=_.E(this.hostElement).querySelector("#expander-contents");K&&(K.hidden=this.isShowRepliesVisible)};
_.V.computeAlign=function(){if(this.modern){var K;return!((K=this.data)==null?0:K.viewRepliesCreatorThumbnail)}};
_.x$.Object.defineProperties(vZ.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var K,d=(K=this.data)==null?void 0:K.contents;return!!d&&d.length>0&&!!d[d.length-1].continuationItemRenderer}}});
vZ.prototype.isShowMoreChanged=vZ.prototype.isShowMoreChanged;vZ.prototype.isLoadingChanged=vZ.prototype.isLoadingChanged;vZ.prototype.triggerFirstContinuation=vZ.prototype.triggerFirstContinuation;vZ.prototype.dataChanged=vZ.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.lY),_.B("design:type",Object)],vZ.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vZ.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],vZ.prototype,"modern",void 0);_.x([_.A(),_.B("design:type",Boolean)],vZ.prototype,"isLoading",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],vZ.prototype,"isShowRepliesVisible",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],vZ.prototype,"useNewFormatting",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],vZ.prototype,"isWatchGrid",void 0);_.x([_.A(),_.B("design:type",Object)],vZ.prototype,"buttonOverrides",void 0);_.x([_.n8("#expander-contents"),_.B("design:type",HTMLElement)],vZ.prototype,"expanderContents",void 0);_.x([_.n8("ytd-continuation-item-renderer"),_.B("design:type",Object)],vZ.prototype,"continuationItemRenderer",void 0);_.x([_.n8("#contents"),_.B("design:type",HTMLElement)],vZ.prototype,"contents",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vZ.prototype,"dataChanged",null);_.x([_.W("data.contents"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vZ.prototype,"hasContinuation",null);_.x([_.VV("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vZ.prototype,"triggerFirstContinuation",null);
_.x([_.SP("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vZ.prototype,"isLoadingChanged",null);_.x([_.SP("isShowRepliesVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vZ.prototype,"isShowMoreChanged",null);vZ=_.x([_.Q({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],vZ);
_.C(vZ,"ytd-comment-replies-renderer",function(){if(GQk!==void 0)return GQk;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return GQk=K},{mode:1});var Bn8;var Mx=function(){var K=_.q.apply(this,arguments)||this;K.isOpen=!1;K.commentDialog=null;K.useSmallAvatars=_.M("small_avatars_for_comments");K.useSmallAvatarsEngagementPanelOnly=_.M("small_avatars_for_comments_ep");K.placeholderFocusListener=null;K.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return K};
_.O(Mx,_.q);_.V=Mx.prototype;_.V.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]]"}}}}}};
_.V.ready=function(){var K=this,d=_.E(this.hostElement).querySelector("#placeholder-area"),f=_.E(this.hostElement).querySelector("#simplebox-placeholder"),H=function(D){D.stopPropagation();D instanceof KeyboardEvent&&D.type==="keypress"&&D.keyCode!==13&&D.keyCode!==32||K.openDialog()};
this.placeholderFocusListener=H;f.addEventListener("focus",this.placeholderFocusListener);d.addEventListener("tap",H);d.addEventListener("keypress",H)};
_.V.maybeRemoveFocusEventListener=function(){var K;(K=this.data)!=null&&K.prepareAccountEndpoint&&!_.M("web_comments_simplebox_modal_focus_on_tap_ks")&&(K=_.E(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(K.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.V.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.V.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.M("web_comment_simplebox_resolve_polymer_command_ks")?_.V2.instance.resolveCommand(this.data.prepareAccountEndpoint):_.SV(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.E(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.V.onYtCommentboxDismiss=function(K){K.stopPropagation();this.isOpen=!1};
_.V.onCreateCommentAction=function(K){this.get("createCommentAction.contents",K)&&(this.isOpen=!1)};
_.V.computeCommentDialog=function(K){return{placeholderText:K.placeholderText,authorThumbnail:K.authorThumbnail,submitButton:K.submitButton,imageButton:K.imageButton,cancelButton:K.cancelButton,emojiButton:K.emojiButton,emojis:K.emojis,emojiPicker:K.emojiPicker,aadcGuidelinesStateEntityKey:K.aadcGuidelinesStateEntityKey,openAadcDialog:K.openAadcDialog,unicodeEmojisUrl:K.unicodeEmojisUrl}};
_.V.onHideIdentityChip=function(K){_.P(K,Eb8)&&this.set("data.placeholderText",_.P(K,Eb8).placeholderText)};
Mx.prototype.onYtCommentboxDismiss=Mx.prototype.onYtCommentboxDismiss;Mx.prototype.dataChanged=Mx.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Mx.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],Mx.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Mx.prototype,"isOpen",void 0);_.x([_.A(),_.B("design:type",Object)],Mx.prototype,"commentDialog",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Mx.prototype,"engagementPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Mx.prototype,"useSmallAvatars",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Mx.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Mx.prototype,"enableCreationBox",void 0);_.x([_.A(),_.B("design:type",Boolean)],Mx.prototype,"showCreateDialog",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mx.prototype,"dataChanged",null);
_.x([_.VV("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Mx.prototype,"onYtCommentboxDismiss",null);Mx=_.x([_.Q({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Mx);
_.C(Mx,"ytd-comment-simplebox-renderer",function(){if(Bn8!==void 0)return Bn8;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Bn8=K},{mode:1});var JCH;_.Na("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var PZ=function(){var K=_.q.apply(this,arguments)||this;K.addHoverEffect=_.M("swatcheroo_comments_hover_effect");return K};
_.O(PZ,_.q);PZ.prototype.onTap=function(K){if(this.addHoverEffect&&!this.engagementPanel&&!_.qa(_.qn(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;((d=window.getSelection())==null?0:d.toString().length)||_.SV({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
PZ.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.x$.Object.defineProperties(PZ.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)!=null&&K.commentViewModel)return _.P(this.data.commentViewModel,AmJ)}}});
PZ.prototype.onTap=PZ.prototype.onTap;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],PZ.prototype,"addHoverEffect",void 0);_.x([_.A(),_.B("design:type",Object)],PZ.prototype,"data",void 0);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],PZ.prototype,"commentViewModel",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],PZ.prototype,"engagementPanel",void 0);_.x([_.VV("tap"),_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],PZ.prototype,"onTap",null);PZ=_.x([_.Q({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],PZ);
_.C(PZ,"ytd-comment-thread-renderer",function(){if(JCH!==void 0)return JCH;var K=document.createElement("template");_.Y(K,'\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<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return JCH=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var s3J;var gA=function(){var K=_.q.apply(this,arguments)||this;K.modernTypography=_.M("web_modern_typography");K.compactHeader=_.M("web_watch_compact_comments_header");K.hidePanelButton=!1;K.isPostSchedulingEnabled=_.M("enable_post_scheduling");K.hasFinishedStamping=!1;K.JSC$13780_handleOpenPostCommentDialogActionAfterStamp=!1;K.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return K};
_.O(gA,_.q);_.V=gA.prototype;
_.V.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"}}}};
_.V.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.V.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13780_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.V.onYtServiceRequestSent=function(K,d){if(!_.M("kevlar_command_handler")&&d.actions)for(K=0;K<d.actions.length;K++){var f=d.actions[K];_.P(f,HsH)&&_.E(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.P(f,HsH))}};
_.V.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var K;if(this.getPrefilledBackstagePostDialog((K=this.data)==null?void 0:K.actions)){_.E(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var d=_.E(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;d&&_.jW(this,function(){d.focus();d.openDialog&&d.openDialog()})}}else this.hasActionsChange=!0};
_.V.computeIsBackstage=function(K){return K};
_.V.onYtCommentboxDismiss=function(){_.E(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.V.removePrefilledDialog=function(K){if(K==null?0:K.actions){for(var d=K.actions.length-1;d>=0;d--){var f=void 0;((f=_.P(K.actions[d],OG9))==null?0:f.dialog)&&delete K.actions[d]}this.set("data",void 0);this.set("data",K)}};
_.V.getPrefilledBackstagePostDialog=function(K){if(K)for(var d=0;d<K.length;d++){var f=K[d],H=void 0;if((H=_.P(f,OG9))==null?0:H.dialog)return _.P(f,OG9).dialog}return null};
_.V.computeBackstagePostDialog=function(K){return K&&(this.getPrefilledBackstagePostDialog(K.actions)||K.createRenderer)};
_.V.dataChanged=function(){if(this.data){var K=this.data.customEmojis,d=this.data.unicodeEmojisUrl;_.$L.clear();d&&_.KKJ(_.$L,d);K&&_.$L.load(K)}};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){var K=_.E(this.hostElement).querySelector("ytd-comment-simplebox-renderer");K?K.openDialog():this.JSC$13780_handleOpenPostCommentDialogActionAfterStamp=!0};
_.x$.Object.defineProperties(gA.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.M("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H,D,S,n;return!this.hidePanelButton&&_.M("kevlar_watch_comments_panel_button")&&((n=_.P((K=this.data)==null?void 0:(d=K.sortMenu)==null?void 0:(f=d.sortFilterSubMenuRenderer)==null?void 0:(H=f.subMenuItems)==null?void 0:(D=H[0])==null?void 0:(S=D.serviceEndpoint)==null?void 0:S.commandMetadata,_.B0))==null?void 0:n.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.iB("MINIPLAYER_EXPAND_LABEL"),text:_.rB(_.iB("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
gA.prototype.dataChanged=gA.prototype.dataChanged;gA.prototype.onYtCommentboxDismiss=gA.prototype.onYtCommentboxDismiss;gA.prototype.observePrefilledBackstagePostDialog=gA.prototype.observePrefilledBackstagePostDialog;gA.prototype.onYtServiceRequestSent=gA.prototype.onYtServiceRequestSent;gA.prototype.onStampFinished=gA.prototype.onStampFinished;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],gA.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gA.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gA.prototype,"modernTypography",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gA.prototype,"compactHeader",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],gA.prototype,"engagementPanel",void 0);_.x([_.A(),_.B("design:type",Object)],gA.prototype,"hidePanelButton",void 0);_.x([_.A({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.B("design:type",Boolean)],gA.prototype,"isBackstage",void 0);_.x([_.A({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.B("design:type",Object)],gA.prototype,"backstagePostDialog",void 0);
_.x([_.A(),_.B("design:type",Object)],gA.prototype,"isPostSchedulingEnabled",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data","showCommentsPanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],gA.prototype,"useSpaceBetween",null);_.x([_.A({reflectToAttribute:!0}),_.W("data","hidePanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],gA.prototype,"showCommentsPanelButton",null);
_.x([_.W("data","showCommentsPanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],gA.prototype,"commentsPanelButtonData",null);_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gA.prototype,"onStampFinished",null);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],gA.prototype,"onYtServiceRequestSent",null);
_.x([_.SP("data.actions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gA.prototype,"observePrefilledBackstagePostDialog",null);_.x([_.VV("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gA.prototype,"onYtCommentboxDismiss",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gA.prototype,"dataChanged",null);
gA=_.x([_.Q({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],gA);
_.C(gA,"ytd-comments-header-renderer",function(){if(s3J!==void 0)return s3J;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return s3J=K},{mode:1});var kQs;var OE=function(){return _.q.apply(this,arguments)||this};
_.O(OE,_.q);_.x([_.A(),_.B("design:type",Object)],OE.prototype,"data",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);OE=_.x([_.Q({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],OE);
_.C(OE,"ytd-destination-button-renderer",function(){if(kQs!==void 0)return kQs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return kQs=K},{mode:1});var wMN;var Nx=function(){var K=_.q.apply(this,arguments)||this;K.isRichGrid=!1;K.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};K.modernTypography=_.M("web_modern_typography");return K};
_.O(Nx,_.q);_.V=Nx.prototype;_.V.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.V.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.V.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.V.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var K;if((K=this.data)==null||!K.isExpanded){K=this.hostElement.clientWidth;var d;if(K&&(d=this.data)!=null&&d.destinationButtons){d=Math.floor((K+4)/214);K=this.data.destinationButtons.length;var f=Math.ceil(K/d);this.fullyVisibleRows=K%d===1&&f===2?1:Math.min(f,2);this.isShowMoreVisible=this.fullyVisibleRows<f}}}};
_.V.updateRichGridDestinationButtonsVisibility=function(){var K,d;if(this.isRichGrid&&((K=this.data)==null||!K.isExpanded)&&(d=this.data)!=null&&d.destinationButtons){K=this.richGridItemsPerRow+1;d=this.data.destinationButtons.length;var f=Math.ceil(d/K);this.fullyVisibleRows=d%K===1&&f===2?1:Math.min(f,2);this.isShowMoreVisible=this.fullyVisibleRows<f}};
_.V.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Nx.prototype.updateRichGridDestinationButtonsVisibility=Nx.prototype.updateRichGridDestinationButtonsVisibility;_.x([_.A(),_.B("design:type",Object)],Nx.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Number)],Nx.prototype,"fullyVisibleRows",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Nx.prototype,"isShowMoreVisible",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Nx.prototype,"isRichGrid",void 0);
_.x([_.A({selector:_.NQ,value:0}),_.B("design:type",Number)],Nx.prototype,"richGridItemsPerRow",void 0);_.x([_.A(),_.B("design:type",Object)],Nx.prototype,"gridStateActionMap",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Nx.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Nx.prototype,"ytdReduxBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Nx.prototype,"modernTypography",void 0);_.x([_.SP("data","richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nx.prototype,"updateRichGridDestinationButtonsVisibility",null);
Nx=_.x([_.Q({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Nx);
_.C(Nx,"ytd-destination-shelf-renderer",function(){if(wMN!==void 0)return wMN;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return wMN=K},{mode:1});var ZXH;var YX=function(){return _.q.apply(this,arguments)||this};
_.O(YX,_.q);YX.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],YX.prototype,"data",void 0);YX=_.x([_.Q({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],YX);
_.C(YX,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(ZXH!==void 0)return ZXH;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ZXH=K},{mode:1});var e1f;var tt=function(){var K=_.q.apply(this,arguments)||this;K.disableAnimation=!1;K.isSlimlineSurvey=!1;K.isSlimlineSurveyFollowUp=!1;K.isShortsStyle=!1;return K};
_.O(tt,_.q);tt.prototype.onTap=function(K){K.preventDefault();this.data&&_.Zp(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.x$.Object.defineProperties(tt.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 K,d,f,H,D;return((K=this.data)==null?0:K.checked)?(d=this.data)==null?void 0:(f=d.onStateIcon)==null?void 0:f.iconType:(H=this.data)==null?void 0:(D=H.defaultStateIcon)==null?void 0:D.iconType}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],tt.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],tt.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],tt.prototype,"disableAnimation",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],tt.prototype,"isSlimlineSurvey",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],tt.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],tt.prototype,"isShortsStyle",void 0);_.x([_.W("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tt.prototype,"isAnimatedIcon",null);
_.x([_.W("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Number),_.B("design:paramtypes",[])],tt.prototype,"iconSize",null);_.x([_.W("isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tt.prototype,"isDarkTheme",null);_.x([_.W("data.checked"),_.B("design:type",Object),_.B("design:paramtypes",[])],tt.prototype,"icon",null);tt=_.x([_.Q({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],tt);
_.C(tt,"ytd-rating-survey-option-renderer",function(){if(e1f!==void 0)return e1f;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return e1f=K},{mode:2});var pM9;var ok=function(){var K=_.q.apply(this,arguments)||this;K.firstResponseText=null;K.lastResponseText=null;K.selectedNonStarOption=null;K.hideOptions=!1;K.hideUndoButton=!0;K.disableAnimation=!1;K.showResponseRangeText=!1;K.selectedRatingIndex=-1;K.isSlimlineSurvey=!1;K.isSlimlineSurveyFollowUp=!1;K.isShortsStyle=!1;K.slimlineSurveyRatingSelectedIndex=-1;return K};
_.O(ok,_.q);_.V=ok.prototype;_.V.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.V.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.V.onOptionChange=function(K,d){var f=this;K=d.onStateIcon&&d.defaultStateIcon&&d.onStateIcon.iconType===d.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(n,u){n.responseText===d.responseText?f.isSlimlineSurvey?(f.selectedRatingIndex=u,f.ytdReduxBehavior.dispatch(iDN(u))):(f.setSurveyOptionValue(u,!0,"checked"),f.setSurveyOptionValue(u,!0,"selected")):(f.setSurveyOptionValue(u,!1,"checked"),f.setSurveyOptionValue(u,
!1,"selected"))});
else if(K)this.selectedNonStarOption=d,this.hideOptions=!0;else{var H=this.ytRendererBehavior.getSimpleString(d.responseText),D=!0;this.getOptionRenderers().forEach(function(n,u){f.setSurveyOptionValue(u,D,"checked");f.setSurveyOptionValue(u,!1,"selected");f.ytRendererBehavior.getSimpleString(n.responseText)===H&&(D=!1,f.setSurveyOptionValue(u,!0,"selected"))})}K=d.responseEndpoint;
var S;d.followUpCommand&&(S=_.P(d.followUpCommand,ZOL));this.isSlimlineSurvey?(this.resetComponent(),_.ev(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.ev(this.hostElement,"ytd-inline-survey-rating-select-action",[K,S])};
_.V.showSelectedOption=function(){var K=this;_.oc.addJob(function(){var d=K.getOptionRenderers()[K.slimlineSurveyRatingSelectedIndex];K.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),d)},8,100)};
_.V.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(K){var d;return(d=_.P(K,pY4))!=null?d:{}}):[]};
_.V.onUndoClick=function(){this.resetComponent();_.ev(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.V.setSurveyOptionValue=function(K,d,f){this.notifyPath("data.ratings."+K+".ratingSurveyOptionRenderer."+f);this.set("data.ratings."+K+".ratingSurveyOptionRenderer."+f,d)};
_.V.resetComponent=function(){var K=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var d=this.getOptionRenderers(),f,H;this.firstResponseText=(H=(f=d[0])==null?void 0:f.responseText)!=null?H:null;var D,S;this.lastResponseText=(S=(D=d[d.length-1])==null?void 0:D.responseText)!=null?S:null;d.forEach(function(n,u){K.setSurveyOptionValue(u,!1,"checked");K.setSurveyOptionValue(u,!1,"selected")})};
_.x$.Object.defineProperties(ok.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
ok.prototype.onOptionChange=ok.prototype.onOptionChange;ok.prototype.dataChanged=ok.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ok.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],ok.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ok.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],ok.prototype,"firstResponseText",void 0);_.x([_.A(),_.B("design:type",Object)],ok.prototype,"lastResponseText",void 0);_.x([_.A(),_.B("design:type",Object)],ok.prototype,"selectedNonStarOption",void 0);_.x([_.A(),_.B("design:type",Object)],ok.prototype,"hideOptions",void 0);_.x([_.A(),_.B("design:type",Object)],ok.prototype,"hideUndoButton",void 0);_.x([_.A(),_.B("design:type",Object)],ok.prototype,"disableAnimation",void 0);
_.x([_.A(),_.B("design:type",Object)],ok.prototype,"showResponseRangeText",void 0);_.x([_.A(),_.B("design:type",Object)],ok.prototype,"selectedRatingIndex",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ok.prototype,"isSlimlineSurvey",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ok.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ok.prototype,"isShortsStyle",void 0);_.x([_.A({selector:function(K){return K.ui.slimlineSurveyRatingSelectedIndex}}),
_.B("design:type",Object)],ok.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.x([_.W("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ok.prototype,"isSingleSelect",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ok.prototype,"dataChanged",null);
_.x([_.VV("ytd-rating-survey-option-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],ok.prototype,"onOptionChange",null);ok=_.x([_.Q({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],ok);
_.C(ok,"ytd-rating-survey-renderer",function(){if(pM9!==void 0)return pM9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return pM9=K},{mode:1});var KL4;var d2H;var fyt;var Zaz=(U8.FIRSTDAYOFWEEK+1)%7,H6J=function(K,d,f,H){var D="";if(H.selection&&JES(H.selection))uc(K,H.selection)&&(D+=" selected");else if(H.selection&&sqp(H.selection)){var S=H.selection.selectionState||"START_DATE";uc(K,H.selection.start)&&(D+=" period-start ",S==="START_DATE"&&(D+="selected"));uc(K,H.selection.end)&&(D+=" period-end ",S==="END_DATE"&&(D+="selected"));a9(K,H.selection.start)||a9(H.selection.end,K)||(D+=" highlighted")}if(a9(d,H.start)||a9(H.end,d))D+=" disabled";H.circleToday&&
uc(d,f)&&(D+=" today");return D};var $X=function(){return _.q.apply(this,arguments)||this};
_.O($X,_.q);_.V=$X.prototype;_.V.attached=function(){var K=this;_.jW(this,function(){K.JSC$13814_calendarMain.scrollHeight>0&&(K.calendarConfig.selection?K.scrollToDate(kbB(K.calendarConfig.selection)):K.scrollToDate(K.calendarConfig.end))})};
_.V.updateSelection=function(K){K=eOz(Object.assign({},this.calendarConfig,{selection:K}),H6J);this.splice.apply(this,["renderData.months",0,K.length].concat(_.Me(K)))};
_.V.scrollToDate=function(K){this.renderData&&(K=p2O(K,this.renderData),K!==void 0&&this.JSC$13814_calendarMain.scrollToIndex(K))};
_.V.scrollToNextMonth=function(){this.JSC$13814_calendarMain.scrollToIndex(this.JSC$13814_calendarMain.firstVisibleIndex+1)};
_.V.scrollToPrevMonth=function(){this.JSC$13814_calendarMain.firstVisibleIndex===0&&this.JSC$13814_calendarMain.scrollTo(0,0);this.JSC$13814_calendarMain.scrollToIndex(this.JSC$13814_calendarMain.firstVisibleIndex-1)};
_.V.handleDayClick=function(K){_.ev(this.hostElement,"ytd-calendar-date-clicked",[K.model.day.date])};
_.V.handleDayMouseDown=function(K){K.preventDefault();_.ev(this.hostElement,"ytd-calendar-date-mousedown",[K.model.day.date])};
_.V.handleDayMouseUp=function(K){_.ev(this.hostElement,"ytd-calendar-date-mouseup",[K.model.day.date])};
_.V.handleDayMouseEnter=function(K){K.preventDefault();_.ev(this.hostElement,"ytd-calendar-date-mouseenter",[K.model.day.date])};
_.V.handleDayMouseLeave=function(K){_.ev(this.hostElement,"ytd-calendar-date-mouseleave",[K.model.day.date])};
_.x$.Object.defineProperties($X.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var K=this.calendarConfig,d=H6J;d=d===void 0?H6J:d;for(var f=[],H=0;H<7;H++)f.push(U8.NARROWWEEKDAYS[(H+Zaz)%7]);return{months:eOz(K,d),daysOfWeekLabel:f}}}});
_.x([_.A(),_.B("design:type",Object)],$X.prototype,"calendarConfig",void 0);_.x([_.n8("#calendar-main"),_.B("design:type",Object)],$X.prototype,"JSC$13814_calendarMain",void 0);_.x([_.W("calendarConfig"),_.B("design:type",Object),_.B("design:paramtypes",[])],$X.prototype,"renderData",null);$X=_.x([_.Q({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],$X);
_.C($X,"ytd-scrollable-calendar",function(){if(fyt!==void 0)return fyt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return fyt=K},{mode:2});var D24;var VmJ;var EE=function(){var K=_.q.apply(this,arguments)||this;K.hideCharCounter=!1;K.hideLabel=!1;K.noLabelFloat=!1;K.autoValidate=!0;K.invalid=!1;K.disabled=!1;K.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return K};
_.O(EE,_.q);_.V=EE.prototype;_.V.reset=function(K){this.value=K&&this.data?this.data.value=K:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.V.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.V.focusTextInput=function(){this.input.focus()};
_.V.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()};
_.V.valueChanged=function(){var K,d;if(((K=this.data)==null?0:K.value)||((d=this.data)==null?void 0:d.value)==="")this.value=this.data.value;else{var f;((f=this.data)==null?void 0:f.value)!==void 0||this.value||(this.value="")}};
_.V.computeLabel=function(K,d){return d?"":_.qQ(K)};
_.V.computeAriaLabel=function(K,d){return d?_.qQ(K):""};
_.V.computeErrorMessage=function(K,d,f,H){!K&&d?K=f||this.strings.REQUIRED_LABEL:(K=_.qQ(H),K=_.aX(K,"&")?"document"in _.Hu?yFu(K):nCY(K):K);return K};
_.V.computeType=function(K){return K==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.V.onTextValueChanged=function(K){this.value=K.detail.value;var d;(d=this.onValueChanged)==null||d.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.V.handleUpdateTextInputFormFieldRendererCommand=function(K){(K=_.P(K,XYH))&&this.data&&this.data.id===K.id&&(K.invalid!==void 0&&(this.invalid=K.invalid),K.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",K.invalidValueErrorMessage))};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("value-changed",this.value))};
_.V.updateInvalidFromBinding=function(K){this.invalid=K.detail.value};
_.x$.Object.defineProperties(EE.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var K;return!((K=this.data)==null||!K.isMultiline)}}});
EE.prototype.valueChangedForBinding=EE.prototype.valueChangedForBinding;EE.prototype.valueChanged=EE.prototype.valueChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],EE.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],EE.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],EE.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],EE.prototype,"value",void 0);_.x([_.A(),_.B("design:type",String)],EE.prototype,"pattern",void 0);_.x([_.A(),_.B("design:type",String)],EE.prototype,"errorMessage",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],EE.prototype,"componentStyle",void 0);_.x([_.A(),_.B("design:type",Object)],EE.prototype,"hideCharCounter",void 0);
_.x([_.A(),_.B("design:type",Object)],EE.prototype,"hideLabel",void 0);_.x([_.A(),_.B("design:type",Object)],EE.prototype,"noLabelFloat",void 0);_.x([_.A(),_.B("design:type",Function)],EE.prototype,"onValueChanged",void 0);_.x([_.A(),_.B("design:type",Boolean)],EE.prototype,"isMultilineOverride",void 0);_.x([_.A(),_.B("design:type",Object)],EE.prototype,"autoValidate",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],EE.prototype,"invalid",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],EE.prototype,"disabled",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],EE.prototype,"enableOverlayTheme",void 0);_.x([_.A({value:{REQUIRED_LABEL:_.iB("REQUIRED_LABEL",void 0,"Required")}}),_.B("design:type",Object)],EE.prototype,"strings",void 0);_.x([_.n8("#input"),_.B("design:type",Object)],EE.prototype,"input",void 0);
_.x([_.W("data","isMultilineOverride"),_.B("design:type",Object),_.B("design:paramtypes",[])],EE.prototype,"isMultiline",null);_.x([_.an("data.value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EE.prototype,"valueChanged",null);_.x([_.SP("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EE.prototype,"valueChangedForBinding",null);EE=_.x([_.N7({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],EE);
_.C(EE,"yt-text-input-form-field-renderer",function(){if(VmJ===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;D24===void 0&&(D24=document.createElement("template"));var H=D24;f.call(d,H.content.cloneNode(!0),K.content.firstChild);VmJ=K}K=VmJ;return K},{mode:2});var ht=function(){var K=_.q.apply(this,arguments)||this;K.data=void 0;K.selectionState="START_DATE";K.isStartDateInvalid=!1;K.isEndDateInvalid=!1;K.autoapply=!1;K.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 K};
_.O(ht,_.q);_.V=ht.prototype;_.V.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"}}}}};
_.V.focus=function(){this.startDateInput.focus()};
_.V.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:I9(this.data.selection.start),end:I9(this.data.selection.end)})};
_.V.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.V.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.nE(this.selectionState)}};
_.V.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.V.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.V.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.V.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var K=this.calendar.calendarConfig,d=K.end;K=dUz({start:K.start,end:this.endDate||d},this.startDateInput.value||"");this.isStartDateInvalid=!K.isValid;K.isValid&&(K=K.value,this.selection=this.endDate?{start:K,end:this.endDate}:K,this.calendar.scrollToDate(K));this.updateInvalidState()}};
_.V.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var K=this.calendar.calendarConfig,d=K.start;K=dUz({start:this.startDate||d,end:K.end},this.endDateInput.value||"");this.isEndDateInvalid=!K.isValid;K.isValid&&(K=K.value,this.selection={start:this.startDate,end:K},this.calendar.scrollToDate(K));this.updateInvalidState()}};
_.V.handleCalendarDateClicked=function(K){var d=this.selection&&kbB(this.selection),f=this.selection&&w2z(this.selection);d&&!a9(K,d)&&this.selectionState==="END_DATE"?(this.selection={start:d,end:K},this.selectionState="START_DATE"):(f&&!a9(f,K)?this.selection={start:K,end:f}:this.selection=K,this.selectionState="END_DATE")};
_.V.handleCalendarDateMouseDown=function(K){this.selection&&!JES(this.selection)&&(this.dragPivot=uc(K,this.selection.start)?this.selection.end:uc(K,this.selection.end)?this.selection.start:K)};
_.V.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.V.handleCalendarDateMouseEnter=function(K){this.dragPivot&&(this.selection={start:function(d,f){return a9(d,f)?d:f}(this.dragPivot,K),
end:function(d,f){return a9(d,f)?f:d}(this.dragPivot,K)},this.dragPivot||(this.selectionState="START_DATE"))};
_.V.handleCalendarDateMouseLeave=function(){};
_.V.handleCalendarSubmitDateRange=function(){this.selection&&!JES(this.selection)&&_.ev(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.V.updateInvalidState=function(){var K=function(d,f){f?d.setAttribute("invalid",""):d.removeAttribute("invalid")};
K(this.startDateInput,this.isStartDateInvalid);K(this.endDateInput,this.isEndDateInvalid)};
_.V.updateDateStrings=function(){this.selection&&(JES(this.selection)?BSn(this.selection):(BSn(this.selection.start),BSn(this.selection.end)))};
_.V.updateCalendarSelection=function(K){this.calendar.updateSelection(Object.assign({},K,{selectionState:this.selectionState}))};
_.V.updateIsStartDateInvalidFromBinding=function(K){this.isStartDateInvalid=K.detail.value};
_.V.updateIsEndDateInvalidFromBinding=function(K){this.isEndDateInvalid=K.detail.value};
_.V.updateStartDateStringFromBinding=function(){};
_.V.updateEndDateStringFromBinding=function(){};
_.x$.Object.defineProperties(ht.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:I9(this.data.dateRangeStart),end:I9(this.data.dateRangeEnd),selection:{start:I9(this.data.selection.start),end:I9(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&kbB(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&w2z(this.selection)}}});
ht.prototype.resetTextboxes=ht.prototype.resetTextboxes;ht.prototype.observeSelection=ht.prototype.observeSelection;ht.prototype.dataChanged=ht.prototype.dataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ht.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.x([_.n8("#calendar"),_.B("design:type",Object)],ht.prototype,"calendar",void 0);
_.x([_.n8("#start-date"),_.B("design:type",Object)],ht.prototype,"startDateInput",void 0);_.x([_.n8("#end-date"),_.B("design:type",Object)],ht.prototype,"endDateInput",void 0);_.x([_.A(),_.B("design:type",Object)],ht.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],ht.prototype,"selection",void 0);_.x([_.A(),_.B("design:type",String)],ht.prototype,"selectionState",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ht.prototype,"calendarConfig",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ht.prototype,"errorMessage",null);_.x([_.W("selection"),_.B("design:type",Object),_.B("design:paramtypes",[])],ht.prototype,"startDate",null);_.x([_.W("selection"),_.B("design:type",Object),_.B("design:paramtypes",[])],ht.prototype,"endDate",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ht.prototype,"dataChanged",null);
_.x([_.SP("selection","selectionState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ht.prototype,"observeSelection",null);_.x([_.SP("selectionState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ht.prototype,"resetTextboxes",null);ht=_.x([_.Q({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],ht);
_.C(ht,"ytd-date-period-picker-renderer",function(){if(d2H!==void 0)return d2H;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return d2H=K},{mode:1});var bb=function(){var K=_.q.apply(this,arguments)||this;var d={};K.actionMap=(d["ytd-date-period-picker-apply"]="handleDateRangeUpdated",d);return K};
_.O(bb,_.q);bb.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
bb.prototype.handleDateRangeUpdated=function(){};
_.x([_.A(),_.B("design:type",Object)],bb.prototype,"data",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],bb.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],bb.prototype,"rendererstamperBehavior",void 0);bb=_.x([_.Q({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],bb);
_.C(bb,"ytd-report-history-section-header-renderer",function(){if(KL4!==void 0)return KL4;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return KL4=K},{mode:1});var S_4;var yu6;var nxs;var mA=function(){return _.q.apply(this,arguments)||this};
_.O(mA,_.q);_.x$.Object.defineProperties(mA.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?0:(d=K.icon)==null?0:d.iconType)?_.Hv(this.data.icon.iconType):""}}});
_.x([_.A(),_.B("design:type",Object)],mA.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",String),_.B("design:paramtypes",[])],mA.prototype,"icon",null);mA=_.x([_.Q({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],mA);
_.C(mA,"ytd-report-history-table-text-cell-renderer",function(){if(nxs!==void 0)return nxs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return nxs=K},{mode:1});var lb=function(){return _.q.apply(this,arguments)||this};
_.O(lb,_.q);lb.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],lb.prototype,"data",void 0);lb=_.x([_.Q({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],lb);
_.C(lb,"ytd-report-history-table-reason-cell-renderer",function(){if(yu6!==void 0)return yu6;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return yu6=K},{mode:1});var WZ=function(){return _.q.apply(this,arguments)||this};
_.O(WZ,_.q);WZ.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"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],WZ.prototype,"rendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],WZ.prototype,"data",void 0);WZ=_.x([_.Q({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],WZ);
_.C(WZ,"ytd-report-history-table-cell-renderer",function(){if(S_4!==void 0)return S_4;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
return S_4=K},{mode:1});var i6H;var Gv=function(){var K=_.q.apply(this,arguments)||this;K.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 K};
_.O(Gv,_.q);Gv.prototype.onDataChanged=function(){var K;if((K=this.data)==null?0:K.style)this.componentStyle=this.getStyleName(this.data.style)};
Gv.prototype.getCellForColumn=function(K){return this.cells.find(function(d){var f;return((f=_.P(d==null?void 0:d.cell,fh4)||_.P(d==null?void 0:d.cell,dOv))==null?void 0:f.columnId)===K.type})};
Gv.prototype.getClassForColumn=function(K){switch(K){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Gv.prototype.getStyleName=function(K){switch(K){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.x$.Object.defineProperties(Gv.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.cells)||[]).map(function(d){return _.P(d,K92)})}}});
Gv.prototype.onDataChanged=Gv.prototype.onDataChanged;_.x([_.A(),_.B("design:type",Object)],Gv.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Array)],Gv.prototype,"columnRenderData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],Gv.prototype,"componentStyle",void 0);_.x([_.W("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],Gv.prototype,"cells",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gv.prototype,"onDataChanged",null);Gv=_.x([_.Q({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Gv);
_.C(Gv,"ytd-report-history-table-row-renderer",function(){if(i6H!==void 0)return i6H;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return i6H=K},{mode:1});var cu9;var uz9;var f6X={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},HXz={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var At=function(){return _.q.apply(this,arguments)||this};
_.O(At,_.q);At.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"}}}}}};
At.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.x$.Object.defineProperties(At.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.columns)?ngX(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return SiX(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var K=this.tableSpec,d=f6X;d=d===void 0?HXz:d;d=yCX(K.columnDimensions,K.columnsToShow||[],d);K=0;d=_.y(d);for(var f=d.next();!f.done;f=d.next())f=f.value,K+=f.minWidth+f.paddingLeft+f.paddingRight;return K}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.x([_.l(_.lY),_.B("design:type",Object)],At.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],At.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],At.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],At.prototype,"tableSpec",null);_.x([_.W("tableSpec"),_.B("design:type",Array),_.B("design:paramtypes",[])],At.prototype,"columnRenderData",null);
_.x([_.W("tableSpec"),_.B("design:type",Number),_.B("design:paramtypes",[])],At.prototype,"totalMinWidth",null);_.x([_.W("totalMinWidth"),_.B("design:type",String),_.B("design:paramtypes",[])],At.prototype,"tableWidthStyle",null);At=_.x([_.Q({is:"ytd-table-renderer",disableElementRegistration:!0})],At);
_.C(At,"ytd-table-renderer",function(){if(uz9!==void 0)return uz9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return uz9=K},{mode:1});var Tv=function(){return _.q.apply(this,arguments)||this};
_.O(Tv,_.q);Tv.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}}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Tv.prototype,"data",void 0);Tv=_.x([_.Q({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Tv);
_.C(Tv,"ytd-report-reason-history-modal-renderer",function(){if(cu9!==void 0)return cu9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return cu9=K},{mode:1});var ay4;var Iys;var U2s;var rA=function(){return _.q.apply(this,arguments)||this};
_.O(rA,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],rA.prototype,"data",void 0);rA=_.x([_.Q({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],rA);
_.C(rA,"ytd-profile-column-stats-entry-renderer",function(){if(U2s!==void 0)return U2s;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return U2s=K},{mode:1});var RE6;var qx=function(){return _.q.apply(this,arguments)||this};
_.O(qx,_.q);qx.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qx.prototype,"data",void 0);qx=_.x([_.Q({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],qx);
_.C(qx,"ytd-profile-column-stats-renderer",function(){if(RE6!==void 0)return RE6;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return RE6=K},{mode:1});var FLt;var Q7=function(){return _.q.apply(this,arguments)||this};
_.O(Q7,_.q);_.x$.Object.defineProperties(Q7.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.useThumbnailSize)return 80;var d,f;K=(d=this.data)==null?void 0:(f=d.thumbnail)==null?void 0:f.thumbnails;var H;return K&&((H=K[0])==null?void 0:H.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.useThumbnailSize)return 80;var d,f;K=(d=this.data)==null?void 0:(f=d.thumbnail)==null?void 0:f.thumbnails;var H;return K&&((H=K[0])==null?void 0:H.height)||80}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Q7.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],Q7.prototype,"componentStyle",void 0);_.x([_.W("data.useThumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],Q7.prototype,"thumbnailWidth",null);
_.x([_.W("data.useThumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],Q7.prototype,"thumbnailHeight",null);Q7=_.x([_.Q({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Q7);
_.C(Q7,"ytd-profile-column-user-info-renderer",function(){if(FLt!==void 0)return FLt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return FLt=K},{mode:1});var jK=function(){return _.q.apply(this,arguments)||this};
_.O(jK,_.q);jK.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]]"}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],jK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],jK.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],jK.prototype,"componentStyle",void 0);jK=_.x([_.Q({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],jK);
_.C(jK,"ytd-profile-column-renderer",function(){if(Iys!==void 0)return Iys;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Iys=K},{mode:1});var CN=function(){var K=_.q.apply(this,arguments)||this;K.componentStyle="NON_CENTERED_PROFILE";return K};
_.O(CN,_.q);CN.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
CN.prototype.getIcon=function(K){return K?"settings:"+K.toLowerCase():null};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],CN.prototype,"data",void 0);CN=_.x([_.Q({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],CN);
_.C(CN,"ytd-page-introduction-renderer",function(){if(ay4!==void 0)return ay4;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ay4=K},{mode:1});var zEk;var xX=function(){return _.q.apply(this,arguments)||this};
_.O(xX,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],xX.prototype,"data",void 0);xX=_.x([_.Q({is:"ytd-report-description-renderer",disableElementRegistration:!0})],xX);
_.C(xX,"ytd-report-description-renderer",function(){if(zEk!==void 0)return zEk;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return zEk=K},{mode:1});var XT8;var vx9;var LN=function(){return _.q.apply(this,arguments)||this};
_.O(LN,_.q);LN.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],LN.prototype,"data",void 0);LN=_.x([_.Q({is:"ytd-video-report-renderer",disableElementRegistration:!0})],LN);
_.C(LN,"ytd-video-report-renderer",function(){if(vx9!==void 0)return vx9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return vx9=K},{mode:1});var Mmf;_.Na("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Na("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var BZ=function(){return _.q.apply(this,arguments)||this};
_.O(BZ,_.q);BZ.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]]"}}}}}};
BZ.prototype.computeMessageStyle=function(K){return K};
BZ.prototype.computeButtonOverride=function(K){var d;if((K==null?0:(d=K.style)==null?0:d.value)&&K.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],BZ.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],BZ.prototype,"shelf",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],BZ.prototype,"panel",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.B("design:type",Boolean)],BZ.prototype,"componentStyle",void 0);_.x([_.A({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],BZ.prototype,"buttonOverride",void 0);BZ=_.x([_.Q({is:"ytd-message-renderer",disableElementRegistration:!0})],BZ);
_.C(BZ,"ytd-message-renderer",function(){if(Mmf!==void 0)return Mmf;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Mmf=K},{mode:1});var Jt=function(){return _.q.apply(this,arguments)||this};
_.O(Jt,_.q);Jt.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"}}}};
Jt.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Jt.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.x$.Object.defineProperties(Jt.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var K,d;return!!(((K=this.data)==null?0:K.header)&&((d=this.data)==null?0:d.table))}}});
Jt.prototype.onRequestError=Jt.prototype.onRequestError;_.x([_.l(_.lY),_.B("design:type",Object)],Jt.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Jt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Jt.prototype,"data",void 0);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Jt.prototype,"isUnifiedReportHistory",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jt.prototype,"onRequestError",null);Jt=_.x([_.Q({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Jt);
_.C(Jt,"ytd-report-history-section-renderer",function(){if(XT8!==void 0)return XT8;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return XT8=K},{mode:1});var PIf;var sE=function(){var K=_.q.apply(this,arguments)||this;K.answerExpanded=!1;return K};
_.O(sE,_.q);sE.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],sE.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],sE.prototype,"answerExpanded",void 0);sE=_.x([_.Q({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],sE);
_.C(sE,"ytd-handles-claiming-faq-renderer",function(){if(PIf!==void 0)return PIf;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return PIf=K},{mode:1});var gxJ;var kX=function(){return _.q.apply(this,arguments)||this};
_.O(kX,_.q);_.x([_.A(),_.B("design:type",Object)],kX.prototype,"data",void 0);kX=_.x([_.Q({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],kX);
_.C(kX,"ytd-handles-claiming-faq-section-renderer",function(){if(gxJ!==void 0)return gxJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return gxJ=K},{mode:1});var O69;var wA=function(){var K=_.q.apply(this,arguments)||this;K.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";K.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";K.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";K.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";K.leftSquiggly=K.leftSquigglyLight;K.rightSquiggly=K.rightSquigglyLight;
K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};K.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return K};
_.O(wA,_.q);_.V=wA.prototype;_.V.updateLeftSquigglyStyle=function(){_.f8(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.V.updateRightSquigglyStyle=function(){_.f8(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.V.ready=function(){var K=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(K)};
_.V.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.set("isDarkTheme",K),K?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
wA.prototype.updateRightSquigglyStyle=wA.prototype.updateRightSquigglyStyle;wA.prototype.updateLeftSquigglyStyle=wA.prototype.updateLeftSquigglyStyle;_.x([_.A(),_.B("design:type",Object)],wA.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],wA.prototype,"isDarkTheme",void 0);_.x([_.A(),_.B("design:type",String)],wA.prototype,"leftSquiggly",void 0);_.x([_.A(),_.B("design:type",String)],wA.prototype,"rightSquiggly",void 0);
_.x([_.SP("leftSquiggly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wA.prototype,"updateLeftSquigglyStyle",null);_.x([_.SP("rightSquiggly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wA.prototype,"updateRightSquigglyStyle",null);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],wA.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],wA.prototype,"actionButtonOverride",void 0);wA=_.x([_.Q({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],wA);
_.C(wA,"ytd-handles-claiming-header-renderer",function(){if(O69!==void 0)return O69;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return O69=K},{mode:1});var NIv;var Z_=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};K.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";K.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";K.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";K.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
K.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";K.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";K.image0SquigglyBackground=K.image0LightSquigglyBackground;K.image1SquigglyBackground=K.image1LightSquigglyBackground;K.image3SquigglyBackground=K.image3LightSquigglyBackground;return K};
_.O(Z_,_.q);_.V=Z_.prototype;_.V.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.V.onDataChanged=function(){this.updateTitleAndImages()};
_.V.onThemeChanged=function(){this.updateTitleAndImages()};
_.V.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.isDarkTheme=K)};
_.V.updateImage0SquigglyBackground=function(){_.f8(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.V.updateImage1SquigglyBackground=function(){_.f8(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.V.updateImage3SquigglyBackground=function(){_.f8(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.V.updateTitleAndImages=function(){var K,d;((K=this.data)==null?void 0:(d=K.titleImages)==null?void 0:d.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))};
Z_.prototype.updateImage3SquigglyBackground=Z_.prototype.updateImage3SquigglyBackground;Z_.prototype.updateImage1SquigglyBackground=Z_.prototype.updateImage1SquigglyBackground;Z_.prototype.updateImage0SquigglyBackground=Z_.prototype.updateImage0SquigglyBackground;Z_.prototype.onThemeChanged=Z_.prototype.onThemeChanged;Z_.prototype.onDataChanged=Z_.prototype.onDataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Z_.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Z_.prototype,"isDarkTheme",void 0);_.x([_.A(),_.B("design:type",Object)],Z_.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Z_.prototype,"title0",void 0);_.x([_.A(),_.B("design:type",Object)],Z_.prototype,"title1",void 0);_.x([_.A(),_.B("design:type",Object)],Z_.prototype,"title2",void 0);_.x([_.A(),_.B("design:type",Object)],Z_.prototype,"title3",void 0);
_.x([_.A(),_.B("design:type",Object)],Z_.prototype,"title4",void 0);_.x([_.A(),_.B("design:type",Object)],Z_.prototype,"image0",void 0);_.x([_.A(),_.B("design:type",Object)],Z_.prototype,"image1",void 0);_.x([_.A(),_.B("design:type",Object)],Z_.prototype,"image2",void 0);_.x([_.A(),_.B("design:type",Object)],Z_.prototype,"image3",void 0);_.x([_.A(),_.B("design:type",Object)],Z_.prototype,"image4",void 0);_.x([_.A(),_.B("design:type",String)],Z_.prototype,"image0SquigglyBackground",void 0);
_.x([_.A(),_.B("design:type",String)],Z_.prototype,"image1SquigglyBackground",void 0);_.x([_.A(),_.B("design:type",String)],Z_.prototype,"image3SquigglyBackground",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z_.prototype,"onDataChanged",null);_.x([_.SP("isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z_.prototype,"onThemeChanged",null);
_.x([_.SP("image0SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z_.prototype,"updateImage0SquigglyBackground",null);_.x([_.SP("image1SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z_.prototype,"updateImage1SquigglyBackground",null);
_.x([_.SP("image3SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z_.prototype,"updateImage3SquigglyBackground",null);Z_=_.x([_.Q({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Z_);
_.C(Z_,"ytd-handles-claiming-title-images-section-renderer",function(){if(NIv!==void 0)return NIv;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return NIv=K},{mode:1});var Y_2;var eK=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(eK,_.q);eK.prototype.ready=function(){var K=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(K)};
eK.prototype.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&this.set("isDarkTheme",K)};
eK.prototype.onCopyButtonClick=function(){var K=this,d,f,H;return _.c(function(D){return(d=K.data)!=null&&d.primaryChannelUrl?_.I(D,navigator.clipboard.writeText(((f=K.data)==null?0:f.encodedChannelUrl)?K.data.encodedChannelUrl:"https://"+_.qQ((H=K.data)==null?void 0:H.primaryChannelUrl)),0):D.jumpTo(0)})};
_.x([_.A(),_.B("design:type",Object)],eK.prototype,"data",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],eK.prototype,"ytComponentBehavior",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],eK.prototype,"isDarkTheme",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],eK.prototype,"ytActionHandlerBehavior",void 0);eK=_.x([_.Q({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],eK);
_.C(eK,"ytd-handles-claiming-update-social-renderer",function(){if(Y_2!==void 0)return Y_2;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Y_2=K},{mode:1});var tmB;var pN=function(){var K=_.q.apply(this,arguments)||this;K.JSC$13909_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";K.JSC$13909_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};K.squigglyBackground=K.JSC$13909_squigglyBackgroundLight;return K};
_.O(pN,_.q);pN.prototype.updateSquigglyBackgroundStyle=function(){_.f8(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
pN.prototype.ready=function(){var K=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",K);this.squigglyBackground=K?this.JSC$13909_squigglyBackgroundDark:this.JSC$13909_squigglyBackgroundLight};
pN.prototype.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.set("isDarkTheme",K),this.squigglyBackground=K?this.JSC$13909_squigglyBackgroundDark:this.JSC$13909_squigglyBackgroundLight)};
pN.prototype.updateSquigglyBackgroundStyle=pN.prototype.updateSquigglyBackgroundStyle;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],pN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],pN.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],pN.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],pN.prototype,"isDarkTheme",void 0);_.x([_.A(),_.B("design:type",String)],pN.prototype,"squigglyBackground",void 0);_.x([_.SP("squigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pN.prototype,"updateSquigglyBackgroundStyle",null);pN=_.x([_.Q({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],pN);
_.C(pN,"ytd-handles-claiming-vanity-info-renderer",function(){if(tmB!==void 0)return tmB;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return tmB=K},{mode:1});var oxH;var K_=function(){var K=_.q.apply(this,arguments)||this;K.JSC$13912_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";K.JSC$13912_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";K.squigglyBackground=K.JSC$13912_squigglyBackgroundLight;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(K_,_.q);_.V=K_.prototype;_.V.ready=function(){var K=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(K)};
_.V.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.set("isDarkTheme",K),this.squigglyBackground=K?this.JSC$13912_squigglyBackgroundDark:this.JSC$13912_squigglyBackgroundLight)};
_.V.updateSquigglyBackgroundStyle=function(){_.f8(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.V.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.V.detached=function(){this.stop()};
_.V.stop=function(){this.playerElement.stop()};
_.V.setupVideoPlayer=function(){var K=this,d,f;return _.c(function(H){d=K.data.videoId;f="http://i1.ytimg.com/vi/"+d+"/maxresdefault.jpg";K.playerElement.loadVideoWithPlayerVars({video_id:d,iurlhq:f});_.iQ(H)})};
K_.prototype.onDataChanged=K_.prototype.onDataChanged;K_.prototype.updateSquigglyBackgroundStyle=K_.prototype.updateSquigglyBackgroundStyle;_.x([_.A({value:!1}),_.B("design:type",Boolean)],K_.prototype,"isDarkTheme",void 0);_.x([_.A(),_.B("design:type",String)],K_.prototype,"squigglyBackground",void 0);_.x([_.n8("#player"),_.B("design:type",Object)],K_.prototype,"playerElement",void 0);_.x([_.A(),_.B("design:type",Object)],K_.prototype,"data",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],K_.prototype,"ytActionHandlerBehavior",void 0);_.x([_.SP("squigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],K_.prototype,"updateSquigglyBackgroundStyle",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],K_.prototype,"onDataChanged",null);
K_=_.x([_.Q({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],K_);
_.C(K_,"ytd-handles-claiming-video-item-renderer",function(){if(oxH!==void 0)return oxH;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return oxH=K},{mode:1});var $26;var f_=function(){var K=_.cP.apply(this,arguments)||this;K.dragging=!1;K.dragMouseStart=0;K.dragOffsetStart=0;K.containerWidthDiff=0;K.boundPrevClick=function(){K.set("offset",dD(K,K.offset-(K.scrollDistance||320)))};
K.boundNextClick=function(){K.set("offset",dD(K,K.offset+(K.scrollDistance||320)))};
K.boundScrollContainerMouseDown=function(d){K.dragMouseStart=d.clientX;K.dragOffsetStart=K.offset;K.dragging=!0};
K.boundScrollContainerDrag=function(d){K.dragging&&K.set("offset",dD(K,K.dragOffsetStart-(d.clientX-K.dragMouseStart)))};
K.boundMouseUp=function(){K.onMouseUp()};
K.boundWheelScroll=function(d){var f=0;Math.abs(d.deltaX)>=Math.abs(d.deltaY)?f=d.deltaX:d.shiftKey&&(f=d.deltaY);f!==0&&(K.offset+=f,d.stopPropagation(),d.preventDefault())};
K.boundChipCloudChipScrollIntoView=function(d){(d=d.detail)&&K.scrollChipIntoView(d)};
return K};
_.O(f_,_.cP);f_.prototype.attached=function(){var K=_.E(this.hostElement).querySelector("#scroll-container");K.addEventListener("wheel",this.boundWheelScroll);K.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);K.style.touchAction="pan-y";K.addEventListener("pointerdown",this.boundScrollContainerMouseDown);K.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
f_.prototype.detached=function(){var K=_.E(this.hostElement).querySelector("#scroll-container");K.removeEventListener("wheel",this.boundWheelScroll);K.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);K.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);K.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
f_.prototype.reset=function(){this.set("offset",0);_.jW(this,this.setContainerWidthDiff);HO(this)};
var dD=function(K,d){return Math.min(Math.max(d,0),K.containerWidthDiff)};
f_.prototype.onMouseUp=function(){this.dragging=!1};
f_.prototype.transformContainer=function(){this.offset=dD(this,this.offset);var K=_.mD("HTML_DIR")==="rtl"?"":"-";_.E(this.hostElement).querySelector("#chips").style.transform="translateX("+K+this.offset+"px)";HO(this)};
var HO=function(K){_.jW(K,K.setButtonsState)};
f_.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=dD(this,this.offset));this.atStart=this.offset<=0};
f_.prototype.setContainerWidthDiff=function(){var K=_.E(this.hostElement).querySelector("#scroll-container"),d=_.E(this.hostElement).querySelector("#chips");K&&d&&(this.containerWidthDiff=d.clientWidth-K.clientWidth)};
f_.prototype.scrollChipIntoView=function(K){var d=_.E(this.hostElement).querySelector("#scroll-container");if(d){var f=this.atStart?0:106,H=this.atEnd?0:106;K.offsetLeft<this.offset+f?this.offset=dD(this,K.offsetLeft-f):K.offsetLeft+K.clientWidth>this.offset+d.clientWidth-H&&(this.offset=dD(this,K.offsetLeft+K.clientWidth+H-d.clientWidth))}};
f_.prototype.transformContainer=f_.prototype.transformContainer;_.x([_.A({value:0}),_.B("design:type",Number)],f_.prototype,"offset",void 0);_.x([_.A({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],f_.prototype,"atStart",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],f_.prototype,"atEnd",void 0);_.x([_.A(),_.B("design:type",Number)],f_.prototype,"scrollDistance",void 0);
_.x([_.SP("offset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],f_.prototype,"transformContainer",null);f_=_.x([_.uL()],f_);var Ex6;var hEN;var ly8=_.C8(function(K){var d=K.data;K=_.y(_.cC(!1,void 0,"icHmSe"));var f=K.next().value,H=K.next().value;K={};K=_.SC("ytChipShapeChip",function(){a:switch(d==null?void 0:d().state){case 0:var S="ytChipShapeActive";break a;case 1:S="ytChipShapeDisabled";break a;default:S="ytChipShapeInactive"}return S},function(){var S=d().type===1||d().type===2,n=d();
return S||n!=null&&n.startIcon?n==null||!n.startIcon||n!=null&&n.text?S?"ytChipShapeEndIconPadding":(n==null?0:n.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(K.ytChipShapeFocused=function(){var S;
return f()&&((S=d())==null?void 0:S.state)!==1},K));
var D=function(S){if((d==null?void 0:d().state)!==1){var n,u;(u=(n=d()).onTap)==null||u.call(n,S)}};
return _.U("chip-shape",{class:"ytChipShapeHost","on:focusin":_.cp(function(){var S=_.eq().resolve(_.Zd(_.eb));if(S){H(S.isKeyBoardInUse());var n,u;(u=(n=d()).onFocusIn)==null||u.call(n)}return!1}),
"on:focusout":_.cp(function(){H(!1);return!1})},_.U(b64,{shouldWrapInButton:function(){return d().type!==2},
selected:function(){return d().state===0},
onClick:D,isDropdown:function(){return d().type===1},
accessibilityLabel:function(){return d().accessibilityLabel}},_.U("div",{class:K},_.U(_.X,{cond:function(){return d().startIcon},
then:function(){return _.U(_.U5,{icon:function(){var S;return(S=d())==null?void 0:S.startIcon},
className:function(){return d().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return d().text},_.U(m2s,{shape:d,
onClick:D}))))},"vb");
ly8.idomCompat=!0;var b64=_.C8(function(K){var d=_.cp(function(f){K.onClick(f);return!1});
return _.U(_.X,{cond:K.shouldWrapInButton,then:function(){return _.U("button",{class:"ytChipShapeButtonReset","on:click":d,role:function(){return K.isDropdown()?"combobox":"tab"},
"aria-label":K.accessibilityLabel,"aria-selected":K.selected},K.children)},
else:function(){return K.children}})},"wb"),m2s=_.C8(function(K){var d=K.shape;
var f=K.onClick;var H=_.cp(function(D){f(D);return!1});
return _.U(_.gF,null,_.U(_.Mk,{when:function(){return d().type===1}},function(){return _.U(_.U5,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.U(_.Mk,{when:function(){return d().type===2}},function(){return _.U("button",{class:"ytChipShapeButtonReset",
"on:click":H},_.U(_.U5,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.U(_.Mk,{when:function(){return d().type===0}},function(){return _.U(_.dF,null)}))},"xb");_.sP(ly8,"chip-shape",{props:{data:_.rs}});var D2=function(){var K=_.q.apply(this,arguments)||this;K.disableDeselectEvent=!1;K.modern=_.M("web_modern_typography");K.useChipShape=_.M("web_chip_shape_defrag");K.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return K};
_.O(D2,_.q);_.V=D2.prototype;_.V.beforeRegister=function(){_.M("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.V.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.V.onSelectChipCommand=function(K){if(!this.selected&&this.data&&(K=_.P(K,iOL),K.targetId&&K.targetId===this.data.targetId))this.onTap()};
_.V.onFilterChipTransformCommand=function(K){if(!this.selected&&this.data){var d;(K=(d=_.P(K,afJ))==null?void 0:d.chipUniqueId)&&K===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.V.dataChanged=function(){var K=this;_.jW(this,function(){K.data&&K.data.isSelected&&!K.selected&&(K.scrollChipIntoView(),K.onTap())})};
_.V.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.V.computeChipStyle=function(K){return K!=null?K:"STYLE_DEFAULT"};
_.V.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.ev(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.ev(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.V.onFocus=function(){var K=_.eq().resolve(_.Zd(_.eb));K&&K.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.V.scrollChipIntoView=function(){_.Zp(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.x$.Object.defineProperties(D2.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return UUS({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
D2.prototype.onFocus=D2.prototype.onFocus;D2.prototype.onTap=D2.prototype.onTap;D2.prototype.selectionChanged=D2.prototype.selectionChanged;D2.prototype.dataChanged=D2.prototype.dataChanged;_.x([_.l(_.UK),_.B("design:type",Object)],D2.prototype,"ironButtonState",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],D2.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],D2.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.u4),_.B("design:type",Object)],D2.prototype,"ironA11yKeysBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],D2.prototype,"disableDeselectEvent",void 0);_.x([_.A(),_.B("design:type",Object)],D2.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data.icon"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],D2.prototype,"hasIcon",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data.uniqueId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],D2.prototype,"isGnomeChip",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],D2.prototype,"modern",void 0);_.x([_.A({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.B("design:type",String)],D2.prototype,"chipStyle",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],D2.prototype,"selected",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],D2.prototype,"useChipShape",void 0);_.x([_.W("data","selected"),_.B("design:type",Object),_.B("design:paramtypes",[])],D2.prototype,"chipShapeData",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D2.prototype,"dataChanged",null);_.x([_.SP("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D2.prototype,"selectionChanged",null);
_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D2.prototype,"onTap",null);_.x([_.VV("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D2.prototype,"onFocus",null);D2=_.x([_.N7({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],D2);
_.C(D2,"yt-chip-cloud-chip-renderer",function(){if(hEN===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Ex6===void 0&&(Ex6=document.createElement("template"));var H=Ex6;f.call(d,H.content.cloneNode(!0),K.content.firstChild);hEN=K}K=hEN;return K},{mode:2});var Vk=function(){var K=_.q.apply(this,arguments)||this;K.isDarkTheme=!1;K.notSticky=!1;K.transparentBackground=!1;K.shouldHide=!1;K.disableSticky=!1;K.fluidWidth=!1;K.isClipList=!1;K.defaultChipIndex=0;K.isPlaylist=!1;K.playlistVotingAnimationEnabled=_.M("web_enable_voting_animation");K.toolbarHeight=0;K.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return K};
_.O(Vk,_.q);_.V=Vk.prototype;
_.V.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.V.attached=function(){var K=this;document.addEventListener("scroll",_.Dm(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var d;this.toolbarHeight=((d=document.querySelector("ytd-masthead"))==null?void 0:d.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(f){K.handleIntersect(f)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){K.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.V.detached=function(){var K;(K=this.intersectionObserver)==null||K.disconnect();var d;(d=this.resizeObserver)==null||d.disconnect();document.removeEventListener("scroll",_.Dm(this,this.updateChipBarWidthAndTop))};
_.V.dataChanged=function(){var K=this,d,f,H;((H=_.P((d=this.data)==null?void 0:(f=d.contents)==null?void 0:f[0],bf9))==null?void 0:H.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var D=this.findSelectedChipIndex();this.selectedIndex!==D&&(this.selectedIndex=-1);_.jW(this,function(){K.selectedIndex=D;K.updating=!1;K.ytScrollableChipCloudBehavior.reset()})};
_.V.findSelectedChipIndex=function(){var K;if((K=this.data)==null||!K.contents)return 0;K=this.data.contents;for(var d=0;d<K.length;d++){var f=void 0;if((f=_.P(K[d],bf9))==null?0:f.isSelected)return d}return 0};
_.V.computeStyle=function(K){return K};
_.V.handleChipCloudChipSelectAction=function(K){K=this.JSC$13931_chipsSelector.indexOf(K);K>-1&&this.JSC$13931_chipsSelector.selectIndex(K)};
_.V.handleChipCloudChipDeselectAction=function(){if(_.M("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var K,d,f,H=(f=_.P((K=this.data)==null?void 0:(d=K.contents)==null?void 0:d[0],bf9))==null?void 0:f.navigationEndpoint;H&&_.ev(this.hostElement,"yt-browse-section-list-reload-endpoint",[H]);this.JSC$13931_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.V.onGuideIsExpandedChanged=function(){var K=this.ytScrollableChipCloudBehavior;_.jW(K,K.setContainerWidthDiff);HO(this.ytScrollableChipCloudBehavior)};
_.V.onResize=function(){var K=this.ytScrollableChipCloudBehavior;_.jW(K,K.setContainerWidthDiff);HO(this.ytScrollableChipCloudBehavior)};
_.V.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.V.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.V.handleIntersect=function(K){_.M("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||K[0].intersectionRatio===1)};
_.V.updateDimensions=function(){var K=this.ytRendererBehavior.parentComponent;if(K){var d,f=(d=K.headerElement)!=null?d:K;_.f8(this.hostElement,{"--ytd-rich-grid-chips-bar-width":f.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.V.updateSelectedIndexFromBinding=function(K){this.selectedIndex=K.detail.value};
_.V.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var K;(K=this.sortFilterHeaderRendererElement)==null||K.setAttribute("is-playlist-page-with-filters","")}};
_.V.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.es({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.x$.Object.defineProperties(Vk.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 K,d,f=(K=this.data)==null?void 0:(d=K.contents)==null?void 0:d.find(function(H){return _.P(H,AoJ)});
return{sortFilterHeaderRenderer:_.P(f,AoJ)}}}});
Vk.prototype.dispatchChipBarIsSticky=Vk.prototype.dispatchChipBarIsSticky;Vk.prototype.isPlaylistPageChanged=Vk.prototype.isPlaylistPageChanged;Vk.prototype.updateChipBarWidthAndTop=Vk.prototype.updateChipBarWidthAndTop;Vk.prototype.onResize=Vk.prototype.onResize;Vk.prototype.onGuideIsExpandedChanged=Vk.prototype.onGuideIsExpandedChanged;Vk.prototype.dataChanged=Vk.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Vk.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Vk.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.Mg),_.B("design:type",Object)],Vk.prototype,"ironResizableBehavior",void 0);_.x([_.l(),_.B("design:type",f_)],Vk.prototype,"ytScrollableChipCloudBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Vk.prototype,"ytdReduxBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],Vk.prototype,"data",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],Vk.prototype,"selectedIndex",void 0);_.x([_.A({value:320}),_.B("design:type",Number)],Vk.prototype,"scrollDistance",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Vk.prototype,"isDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Vk.prototype,"notSticky",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Vk.prototype,"transparentBackground",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.B("design:type",String)],Vk.prototype,"componentStyle",void 0);_.x([_.A({selector:_.aDp}),_.B("design:type",Boolean)],Vk.prototype,"guideIsExpanded",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Vk.prototype,"shouldHide",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Vk.prototype,"disableSticky",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Vk.prototype,"fluidWidth",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Vk.prototype,"isClipList",void 0);_.x([_.A(),_.B("design:type",Object)],Vk.prototype,"defaultChipIndex",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Vk.prototype,"isPlaylist",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Vk.prototype,"playlistVotingAnimationEnabled",void 0);_.x([_.n8("#chips"),_.B("design:type",Object)],Vk.prototype,"JSC$13931_chipsSelector",void 0);_.x([_.n8("ytd-sort-filter-header-renderer"),_.B("design:type",HTMLElement)],Vk.prototype,"sortFilterHeaderRendererElement",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Vk.prototype,"updating",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vk.prototype,"dataChanged",null);_.x([_.SP("guideIsExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vk.prototype,"onGuideIsExpandedChanged",null);_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vk.prototype,"onResize",null);
_.x([_.an("isChannelPageGrid","disableSticky","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vk.prototype,"updateChipBarWidthAndTop",null);_.x([_.W("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Vk.prototype,"isChannelPageGrid",null);_.x([_.W("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Vk.prototype,"isHashtagLandingPage",null);
_.x([_.SP("isPlaylistPage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vk.prototype,"isPlaylistPageChanged",null);_.x([_.W("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Vk.prototype,"isPlaylistPage",null);_.x([_.W("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Vk.prototype,"isDisableDeselectEvent",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Vk.prototype,"sortFilterHeaderRendererData",null);_.x([_.A({reflectToAttribute:!0,selector:_.vHS}),_.B("design:type",String)],Vk.prototype,"frostedGlassMode",void 0);_.x([_.SP("notSticky"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vk.prototype,"dispatchChipBarIsSticky",null);Vk=_.x([_.Q({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Vk);
_.C(Vk,"ytd-feed-filter-chip-bar-renderer",function(){if($26!==void 0)return $26;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return $26=K},{mode:1});var WL2;var GLJ=_.C8(function(K){var d=K.data;var f=K.buttonIndex;var H=K.selectedIndex;var D=K.onSelect;var S=function(){return f()===H()},n=function(){var u,a;
return(a=(u=d().text)==null?void 0:u.content)!=null?a:""};
K=_.JUG();return _.U("yt-toggleable-image-button-view-model",{class:function(){var u={};u=(u["toggleable-image-button-view-model-wiz"]=!0,u[""]=!0,u["toggleable-image-button-view-model-wiz__semi-transparent"]=H()!==-1&&!S(),u);return _.nK(u)},
tabindex:0,"aria-label":n,"aria-pressed":S,role:"button","on:keydown":K,"on:click":_.cp(function(){D(d().onSubmitCommand);return!1})},_.U(_.X,{cond:function(){return d().logo},
then:function(u){return _.U(_.jV,{data:u,className:function(){var a={};a=(a["toggleable-image-button-view-model-wiz__image"]=!0,a["toggleable-image-button-view-model-wiz__circular-radius"]=!(!d().backgroundColor||!d().backgroundColorDarkMode),a["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(S()&&d().backgroundColor&&d().backgroundColorDarkMode),a);return _.nK(a)},
alt:n,useWidth:!1,style:function(){if(S()&&d().backgroundColor&&d().backgroundColorDarkMode){var a=bs(Number(d().backgroundColorDarkMode),"1");var R=bs(Number(d().backgroundColor),"1");a="background: linear-gradient(180deg,"+a+","+R+") border-box;"}else a="";return a}})}}),_.U(_.zz,{model:{borderRadius:"16px"}}),_.U("p",{class:function(){var u={};
u=(u["toggleable-image-button-view-model-wiz__label"]=!0,u["toggleable-image-button-view-model-wiz__bold-text"]=S(),u);return _.nK(u)}},_.U(_.ji,{text:function(){return d().text}})))},"yb");
GLJ.idomCompat=!0;var TIH=_.C8(function(K){var d=K.data;K=_.y(_.cC({index:-1,command:{}},void 0,"Zcqtsb"));var f=K.next().value,H=K.next().value;return _.U("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.U("div",{class:"nudge-form-view-model-wiz__form-options"},_.U(_.z1,{data:function(){return d().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(D,S){return _.U(GLJ,{data:D.data,buttonIndex:S,selectedIndex:function(){return f().index},
onSelect:function(n){H({index:S(),command:n})}})}})),_.U(_.ji,{text:function(){return d().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.U("div",{class:"nudge-form-view-model-wiz__submit"},_.U(_.z1,{data:function(){return d().submitButton}},{buttonViewModel:function(D){return _.U(AuN,{data:D.data,
isDisabled:function(){return f().index===-1},
onClick:function(){_.me(f().command)}})}})))},"zb");
TIH.idomCompat=!0;var AuN=_.C8(function(K){var d=_.zh(function(){return Object.assign({},K.data(),{state:K.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.U(_.oY,{data:d,onClick:K.onClick})},"Ab");_.sP(TIH,"yt-nudge-form-view-model",{props:{data:_.rs}});var S1=function(){var K=_.q.apply(this,arguments)||this;K.roundedContainer=!0;K.buttonUpdate=_.M("web_modern_buttons");K.isDarkMode=!1;K.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return K};
_.O(S1,_.q);_.V=S1.prototype;_.V.computeNudgeStyle=function(K){return K?"modernized-nudge":""};
_.V.handleDarkModeToggledAction=function(K){this.isDarkMode=K};
_.V.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.V.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"}}}};
_.V.computeIsHorizontalButtons=function(K){return K?!!K.applyModernizedStyle&&!!K.enableHorizontalButtons&&!!K.secondaryButton:!1};
_.x$.Object.defineProperties(S1.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var K,d;return(d=(K=this.data)==null?void 0:K.backgroundStyle)!=null?d:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var K,d;return(d=(K=this.data)==null?void 0:K.contentsLocation)!=null?d:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null?0:K.lightIconImage)}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],S1.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],S1.prototype,"actionHandlerBehavior",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("isHideEnclosingAction"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],S1.prototype,"isHidden",null);_.x([_.A(),_.B("design:type",Object)],S1.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],S1.prototype,"roundedContainer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],S1.prototype,"buttonUpdate",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.B("design:type",String)],S1.prototype,"nudgeStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data.trimStyle"),_.B("design:type",String),_.B("design:paramtypes",[])],S1.prototype,"trimStyle",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.backgroundStyle"),_.B("design:type",String),_.B("design:paramtypes",[])],S1.prototype,"backgroundStyle",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data.contentsLocation"),_.B("design:type",String),_.B("design:paramtypes",[])],S1.prototype,"contentsLocation",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.disableDropShadow"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],S1.prototype,"noShadow",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.lightIconImage"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],S1.prototype,"noIcon",null);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.B("design:type",Boolean)],S1.prototype,"isHorizontalButtons",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],S1.prototype,"isDarkMode",void 0);S1=_.x([_.Q({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],S1);
_.C(S1,"ytd-feed-nudge-renderer",function(){if(WL2!==void 0)return WL2;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return WL2=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var rus;var q_8;var yk=function(){var K=_.q.apply(this,arguments)||this;K.collapsed=!1;K.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return K};
_.O(yk,_.q);yk.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"}}}};
yk.prototype.handleRatingSelect=function(){var K;((K=this.data)==null?0:K.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
yk.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],yk.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],yk.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.EL),_.B("design:type",Object)],yk.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],yk.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],yk.prototype,"collapsed",void 0);yk=_.x([_.Q({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],yk);
_.C(yk,"ytd-slimline-survey-renderer",function(){if(q_8!==void 0)return q_8;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return q_8=K},{mode:1});var Q89;var n_=function(){return _.q.apply(this,arguments)||this};
_.O(n_,_.q);n_.prototype.maybeGetBackgroundColor=function(K){return this.isDarkMode?K.section2Color:K.section3Color};
n_.prototype.colorPaletteChanged=function(){var K=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;K&&(K==null?0:K.secondaryTitleColor)&&this.maybeGetBackgroundColor(K)?(this.hostElement.style.backgroundColor=_.E1(this.maybeGetBackgroundColor(K)),this.hostElement.style.color=_.E1(K.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
n_.prototype.colorPaletteChanged=n_.prototype.colorPaletteChanged;_.x([_.l(_.ou),_.B("design:type",Object)],n_.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],n_.prototype,"data",void 0);_.x([_.A({selector:function(K){return K.ui.darkModeIsEnabled}}),
_.B("design:type",Boolean)],n_.prototype,"isDarkMode",void 0);_.x([_.A(),_.B("design:type",Object)],n_.prototype,"lightColorPalette",void 0);_.x([_.A(),_.B("design:type",Object)],n_.prototype,"darkColorPalette",void 0);_.x([_.SP("darkColorPalette","lightColorPalette","data","isDarkMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n_.prototype,"colorPaletteChanged",null);n_=_.x([_.Q({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],n_);
_.C(n_,"ytd-endorsement-header-renderer",function(){if(Q89!==void 0)return Q89;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Q89=K},{mode:1});_.sP(_.gW,"yt-decorated-avatar-view-model",{props:{data:_.rs,className:_.rs}});var i2=function(){var K=_.q.apply(this,arguments)||this;K.fullHeight=_.M("web_rich_grid_media_full_height");K.showChannelAvatar=!0;K.hasPlaylistThumbnail=!1;K.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};K.prepareThumbnailForPageTransition=function(){_.M("web_thumbnail_to_watch_transition")&&(K.thumbnail.style.viewTransitionName="thumbnail-to-watch",K.cleanupThumbnailAfterPageTransition(K.thumbnail))};
return K};
_.O(i2,_.q);_.V=i2.prototype;
_.V.configureRendererStamper=function(){return{lazyLoadMenu:Sf,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"}}}};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.shouldLazyLoadMenu=function(){var K=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.M("kevlar_modern_downloads_page")||!K};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13957_inlinePreviewHoverListener=Av({mediaRenderer:this,lockupElement:this.JSC$13957_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.V.getVideoPreviewOpts=function(){var K={},d;if((d=this.data)==null?0:d.multipleInlinePlaybackEndpoint)K=Gat;this.isRadio&&(K=WCL);return _.M("web_thumbnail_to_watch_transition")?Object.assign({},K,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):K};
_.V.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13957_inlinePreviewHoverListener)==null||s8(K)};
_.V.getOwner=function(){var K,d,f;return((K=this.data)==null?void 0:(d=K.channelThumbnailSupportedRenderers)==null?void 0:d.channelThumbnailWithLinkRenderer)||_.P((f=this.data)==null?void 0:f.showProviderChannelThumbnail,Os6)};
_.V.updateLockupSize=function(){var K;((K=this.getOwner())==null?0:K.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.V.getFeedbackEndpoint=function(K){if(_.P(K,_.g7))return K;var d,f;K=(f=(d=_.P(K,_.DE))==null?void 0:d.commands)!=null?f:[];d=_.y(K);for(f=d.next();!f.done;f=d.next())if(f=this.getFeedbackEndpoint(f.value))return f;return null};
_.V.computeNavigationEndpoint=function(K){return Cep(K==null?void 0:K.navigationEndpoint)};
_.V.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var K=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(K)!==JSON.stringify(this.data)&&this.set("data",K)}};
_.V.onDataChanged=function(){var K=this,d=this.getOwner();if(d){this.set("data.owner",d);var f,H,D,S,n,u=((f=this.data)==null?void 0:(H=f.shortBylineText)==null?void 0:(D=H.runs)==null?void 0:(S=D[0])==null?void 0:S.text)||((n=d.name)==null?void 0:n.simpleText);this.set("data.owner.title",u)}var a,R,F,z,v,g;d=((a=this.data)==null?void 0:(R=a.thumbnailRenderer)==null?void 0:R.playlistVideoThumbnailRenderer)||((F=this.data)==null?void 0:(z=F.thumbnailRenderer)==null?void 0:z.playlistCustomThumbnailRenderer)||
((v=this.data)==null?void 0:(g=v.thumbnailRenderer)==null?void 0:g.showCustomThumbnailRenderer);var N;((N=this.data)==null?0:N.thumbnail)||!d||this.set("data.thumbnail",d.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){K.updateLockupSize()});
var h;if(a=((h=this.data)==null?void 0:h.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(a);var m;((m=this.dismissActionToReplayEntity)==null?0:m.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.V.onHiddenChanged=function(){this.updateLockupSize()};
_.V.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.ev(this.hostElement,"yt-terminate-video-preview-action");else{var K;(K=this.videoTitleLink)==null||K.focus()}};
_.V.metadataColorChanged=function(){var K;if(this.metadataColor&&((K=this.videoTitle)==null?0:K.style))this.videoTitle.style.color=_.E1(this.metadataColor);else{var d,f;!this.metadataColor&&((d=this.videoTitle)==null?0:(f=d.style)==null?0:f.color)&&(this.videoTitle.style.color="")}};
_.V.onDetailsClick=function(K){var d=this.computedNavigationEndpoint;d&&(_.qa(_.qn(K),this.hostElement,["A","BUTTON"])||_.Zp(this.hostElement,"yt-navigate",{endpoint:d}))};
_.V.cleanupThumbnailAfterPageTransition=function(K){_.xnO(document,"yt-page-type-changed",function(){K.style.viewTransitionName=""})};
_.V.onRendererTap=function(){this.prepareThumbnailForPageTransition();var K,d,f=((K=this.data)==null?void 0:K.serviceEndpoint)||this.getFeedbackEndpoint((d=this.data)==null?void 0:d.navigationEndpoint);f&&_.P(f,_.g7)&&this.ytComponentBehavior.resolveCommand(f)};
_.V.onMouseDown=function(K){var d=K.target,f=this.computedNavigationEndpoint,H;K=d.href||((H=_.P(f==null?void 0:f.commandMetadata,_.B0))==null?void 0:H.url);H=d.data||f;K&&H&&WTX(K,H)};
_.V.computeVideoTitleText=function(){var K;if((K=this.data)==null?0:K.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.V.computeHasPlaylistThumbnail=function(K){var d,f,H,D,S;if((((d=K.thumbnailRenderer)==null?0:d.playlistVideoThumbnailRenderer)||((f=K.thumbnailRenderer)==null?0:f.playlistCustomThumbnailRenderer)||((H=K.thumbnailRenderer)==null?0:H.showCustomThumbnailRenderer)||((D=K.thumbnailRenderer)==null?0:D.playlistVideoThumbnailRenderer)||((S=K.thumbnailRenderer)==null?0:S.playlistCustomThumbnailRenderer))&&K.thumbnailOverlays)for(d=0;d<K.thumbnailOverlays.length;d++)if(f=void 0,(f=K.thumbnailOverlays[d])==
null?0:f.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.x$.Object.defineProperties(i2.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.M("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var K;return(K=this.data)==null?void 0:K.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var K;return(K=this.data)==null?void 0:K.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13957_inlinePreviewHoverListener)==null?0:tH(K))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.ym(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:K.videoId)||((d=this.data)==null?void 0:d.playlistId)||""}}});
i2.prototype.onMouseDown=i2.prototype.onMouseDown;i2.prototype.metadataColorChanged=i2.prototype.metadataColorChanged;i2.prototype.onIsDismissedChanged=i2.prototype.onIsDismissedChanged;i2.prototype.onHiddenChanged=i2.prototype.onHiddenChanged;i2.prototype.onDataChanged=i2.prototype.onDataChanged;i2.prototype.handleReloadDownloadsInfo=i2.prototype.handleReloadDownloadsInfo;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],i2.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],i2.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],i2.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],i2.prototype,"ytdReduxBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],i2.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],i2.prototype,"entitySelectorType",void 0);_.x([_.A(),_.B("design:type",Boolean)],i2.prototype,"noEndpoints",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],i2.prototype,"isRadio",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],i2.prototype,"miniMode",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],i2.prototype,"fullHeight",void 0);
_.x([_.A(),_.B("design:type",Boolean)],i2.prototype,"showDarkVideoMetadata",void 0);_.x([_.A(),_.B("design:type",Boolean)],i2.prototype,"showLightVideoMetadata",void 0);_.x([_.A(),_.B("design:type",Number)],i2.prototype,"metadataColor",void 0);_.x([_.A(),_.B("design:type",Object)],i2.prototype,"showChannelAvatar",void 0);_.x([_.A(),_.B("design:type",Boolean)],i2.prototype,"hidden",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],i2.prototype,"showYtInteraction",void 0);
_.x([_.A(),_.B("design:type",String)],i2.prototype,"dismissedContentId",void 0);_.x([_.A({selectorArgs:["dismissedContentId"],selector:PrN}),_.B("design:type",Object)],i2.prototype,"dismissActionToReplayEntity",void 0);
_.x([_.A({selectorArgs:["entitySelectorType","mediaId"],selector:function(K,d,f){if(_.M("kevlar_modern_downloads_page")&&f&&d&&d!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(d){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var H=O2B(K,f);if(H){d=_.oO(K,f);var D=EV(K,f),S=Wvz(K,f);K=hp(K,f);var n=uvG(H,d,D,S);D=n.shortViewCountText;var u=n.publishedTimeText;n=n.badges;var a=K>0;S=i5X(H,d,S,K);H=_.IO(d)||d==="TRANSFER_STATE_FAILED"||d==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!aO(H.policyEntity)?
void 0:Qs5(f,K,H.videoEntity.lengthSeconds);d==="TRANSFER_STATE_PAUSED_BY_USER"&&f&&!_.M("dl_resume_click_killswitch")&&(H={offlineVideoEndpoint:{videoId:f,action:"ACTION_RESUME"}});f={shortViewCountText:D,publishedTimeText:u,badges:n,isWatched:a,navigationEndpoint:H,thumbnailOverlays:S}}else f=void 0;return f;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(d=Nd5(K,f))if(H=_.$o(K,f),S=_.YIn(K,f),H!=="TRANSFER_STATE_UNKNOWN"){f=c_u(d,H,S,f,XrX(K));break a}f=void 0}return f;default:_.h3(new _.X4("Error: entitySelectorType defined but not matched in selector.",
K,d))}}}),
_.B("design:type",Object)],i2.prototype,"entityDrivenState",void 0);_.x([_.A({computed:"computeVideoTitleText(data)"}),_.B("design:type",Object)],i2.prototype,"videoTitleText",void 0);_.x([_.A({computed:"computeHasPlaylistThumbnail(data)"}),_.B("design:type",Object)],i2.prototype,"hasPlaylistThumbnail",void 0);_.x([_.A({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],i2.prototype,"computedNavigationEndpoint",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],i2.prototype,"typographyBump",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("typographyBump"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],i2.prototype,"typographyBumpV2",null);_.x([_.n8("#video-title"),_.B("design:type",HTMLElement)],i2.prototype,"videoTitle",void 0);_.x([_.n8("#video-title-link"),_.B("design:type",HTMLElement)],i2.prototype,"videoTitleLink",void 0);
_.x([_.n8("#thumbnail"),_.B("design:type",HTMLElement)],i2.prototype,"thumbnail",void 0);_.x([_.n8("#dismissible"),_.B("design:type",HTMLElement)],i2.prototype,"JSC$13957_dismissibleMedia",void 0);_.x([_.W("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],i2.prototype,"lazyLoadMenu",null);_.x([_.W("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],i2.prototype,"immediateLoadMenu",null);
_.x([_.an("entityDrivenState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i2.prototype,"handleReloadDownloadsInfo",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i2.prototype,"onDataChanged",null);_.x([_.an("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i2.prototype,"onHiddenChanged",null);
_.x([_.SP("isDismissed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i2.prototype,"onIsDismissedChanged",null);_.x([_.SP("metadataColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i2.prototype,"metadataColorChanged",null);_.x([_.VV("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],i2.prototype,"onMouseDown",null);
_.x([_.W("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],i2.prototype,"isHovered",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],i2.prototype,"useAvatar",null);_.x([_.W("data","entitySelectorType"),_.B("design:type",String),_.B("design:paramtypes",[])],i2.prototype,"mediaId",null);i2=_.x([_.Q({is:"ytd-rich-grid-media",disableElementRegistration:!0})],i2);
var j88=_.eP()(i2,"ytd-rich-grid-media",function(){if(rus!==void 0)return rus;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return rus=K},{mode:_.p8("kevlar_poly_si_batch_j072")?1:2});var CI4;var cO=function(){var K=_.q.apply(this,arguments)||this;K.removeMaxWidth=!0;K.insetMetadata=!1;return K};
_.O(cO,_.q);_.V=cO.prototype;_.V.configureRendererStamper=function(){return{innerMenu:Sf,outerMenu:Object.assign({},Sf,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.onDataChanged=function(){var K,d=((K=this.data)==null?void 0:K.trackingParams)||"";d&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(d));var f;((f=this.dismissActionToReplayEntity)==null?0:f.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13962_inlinePreviewHoverListener=Av({mediaRenderer:this,lockupElement:this.JSC$13962_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:AZ4})};
_.V.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13962_inlinePreviewHoverListener)==null||s8(K)};
_.V.onRendererTap=function(){var K,d,f=(K=this.data)==null?void 0:(d=K.serviceEndpoints)==null?void 0:d[0];_.P(f,_.g7)&&this.componentBehavior.resolveCommand(f)};
_.V.onDetailsClick=function(K){var d,f=(d=this.data)==null?void 0:d.navigationEndpoint;f&&(_.qa(_.qn(K),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(f))};
_.V.onShow=function(){var K=this.data;K.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(K.onFirstVisibleCommand),delete K.onFirstVisibleCommand)};
_.x$.Object.defineProperties(cO.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var K;return this.insetMetadata?void 0:(K=this.data)==null?void 0:K.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var K;return this.insetMetadata?(K=this.data)==null?void 0:K.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var K=this.data;if(K!=null&&K.badge&&(K=_.P(K.badge,NhL))){var d,f,H;return[{metadataBadgeRenderer:{label:((d=K.label)==null?void 0:(f=d.runs)==null?void 0:f[0].text)||((H=K.label)==null?void 0:H.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var K=this.data;return Object.assign({},K.headline,{accessibility:K.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return this.isSlimShort?(K=this.computedTitle)==null?void 0:(d=K.accessibility)==null?void 0:(f=d.accessibilityData)==null?void 0:f.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13962_inlinePreviewHoverListener)==null?0:tH(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
cO.prototype.onDataChanged=cO.prototype.onDataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],cO.prototype,"componentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],cO.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.EL),_.B("design:type",Object)],cO.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],cO.prototype,"ytdReduxBehavior",void 0);_.x([_.n8("ytd-thumbnail"),_.B("design:type",HTMLElement)],cO.prototype,"thumbnail",void 0);_.x([_.n8("#dismissible"),_.B("design:type",HTMLElement)],cO.prototype,"JSC$13962_dismissibleMedia",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],cO.prototype,"removeMaxWidth",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],cO.prototype,"insetMetadata",void 0);_.x([_.A(),_.B("design:type",String)],cO.prototype,"dismissedContentId",void 0);_.x([_.A({selectorArgs:["dismissedContentId"],selector:PrN}),_.B("design:type",Object)],cO.prototype,"dismissActionToReplayEntity",void 0);_.x([_.W("insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],cO.prototype,"thumbnailObjectFit",null);
_.x([_.W("data","insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],cO.prototype,"innerMenu",null);_.x([_.W("data","insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],cO.prototype,"outerMenu",null);_.x([_.A(),_.B("design:type",Object)],cO.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],cO.prototype,"miniMode",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cO.prototype,"onDataChanged",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],cO.prototype,"shortsBadges",null);_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],cO.prototype,"isShort",null);
_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],cO.prototype,"isSlimShort",null);_.x([_.W("data","isShort"),_.B("design:type",Object),_.B("design:paramtypes",[])],cO.prototype,"computedTitle",null);_.x([_.W("isSlimShort","computedTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],cO.prototype,"computedAccessibilityLabel",null);
_.x([_.W("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],cO.prototype,"isHovered",null);cO=_.x([_.Q({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],cO);
_.C(cO,"ytd-rich-grid-slim-media",function(){if(CI4!==void 0)return CI4;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return CI4=K},{mode:_.p8("kevlar_poly_si_batch_j063")?1:2});var x2s;var LL8;var u2=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(u2,_.q);u2.prototype.computeIcon=function(K){return K&&K.iconType?"yt-sys-icons:"+K.iconType.toLowerCase():""};
u2.prototype.onMouseEnter=function(){this.isHovered=!0};
u2.prototype.onMouseLeave=function(){this.isHovered=!1};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],u2.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],u2.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],u2.prototype,"isHovered",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],u2.prototype,"darkerDarkTheme",void 0);u2=_.x([_.Q({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],u2);
_.C(u2,"ytd-expand-on-hover-card-renderer",function(){if(LL8!==void 0)return LL8;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return LL8=K},{mode:1});var BIv,Ju9=function(){if(BIv!==void 0)return BIv;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return BIv=K};_.Na("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var aR=function(){var K=_.q.apply(this,arguments)||this;K.compactStyle=!1;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(aR,_.q);_.V=aR.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.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"}}}};
_.V.computeHideDot=function(K){return!(K&&K.subscriberCountText&&K.videoCountText)||this.compactStyle};
_.V.hasDualButtons=function(K){return K&&K.purchaseButton&&K.subscribeButton};
_.V.backgroundColorChanged=function(){if(this.data!==void 0){var K=this.data.backgroundColor;this.isDarkTheme&&(K=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=K!=null?_.E1(K):"transparent"}};
_.V.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.V.onTap=function(K){var d,f,H=((d=this.data)==null?void 0:d.navigationEndpoint)||((f=this.data)==null?void 0:f.serviceEndpoint);_.P(H,_.kB)&&(H&&_.eq().resolve(_.pQ).resolveCommand(H,{form:{element:this.hostElement}}),K.preventDefault())};
_.V.computeChannelEndpoint=function(K){return _.P(K,_.kB)?null:K};
_.V.computeHrefEndpoint=function(K){return _.P(K,_.kB)?null:this.componentBehavior.computeHref_(K)};
_.V.computeChannelRendererStyle=function(K){return K};
_.V.computeIconSize=function(K){return K?108:136};
_.x$.Object.defineProperties(aR,{template:{configurable:!0,enumerable:!0,get:function(){return Ju9()}}});
aR.prototype.backgroundColorChanged=aR.prototype.backgroundColorChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],aR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],aR.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],aR.prototype,"componentBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],aR.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],aR.prototype,"isDarkTheme",void 0);_.x([_.A({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.B("design:type",String)],aR.prototype,"channelRendererStyle",void 0);_.x([_.A({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],aR.prototype,"dualButtons",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],aR.prototype,"useBiggerThumbs",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.fy("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],aR.prototype,"biggerThumbStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],aR.prototype,"compactStyle",void 0);_.x([_.SP("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aR.prototype,"backgroundColorChanged",null);aR=_.x([_.Q({is:"ytd-channel-renderer",disableElementRegistration:!0})],aR);_.C(aR,"ytd-channel-renderer",function(){return Ju9()},{mode:1});var s82;var kLf;_.Na("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var IR=function(){var K=_.q.apply(this,arguments)||this;K.displayItemCount=2;K.collections=_.M("web_modern_collections_v2");K.hasPlaylistThumbnail=!1;K.stackThumbnailSize="large";return K};
_.O(IR,_.q);_.V=IR.prototype;_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.V.computeFirstVideos=function(K,d){return K&&d?K.slice(0,d):[]};
_.V.computeThumbnailWidth=function(K,d){return K?d==="BIG"?500:d==="MASSIVE"?600:d==="MEDIUM"?450:420:360};
_.V.computeThumbnailHeight=function(K,d){return K?d==="BIG"?280:d==="MASSIVE"?337:234:202};
_.V.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13975_inlinePreviewHoverListener)==null||s8(K)};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13975_inlinePreviewHoverListener=Av({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:Gat,thumbnailElement:this.thumbnail})};
_.V.computeHasPlaylistThumbnail=function(K){var d,f;if((((d=K.thumbnailRenderer)==null?0:d.playlistVideoThumbnailRenderer)||((f=K.thumbnailRenderer)==null?0:f.playlistCustomThumbnailRenderer))&&K.thumbnailOverlays)for(d=0;d<K.thumbnailOverlays.length;d++)if(f=void 0,(f=K.thumbnailOverlays[d])==null?0:f.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.x$.Object.defineProperties(IR.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13975_inlinePreviewHoverListener)==null?0:tH(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
IR.prototype.dataChanged=IR.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],IR.prototype,"ytdLockupBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],IR.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],IR.prototype,"displayItemCount",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],IR.prototype,"useBiggerThumbs",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.fy("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],IR.prototype,"biggerThumbsStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],IR.prototype,"collections",void 0);_.x([_.A({computed:"computeHasPlaylistThumbnail(data)"}),_.B("design:type",Object)],IR.prototype,"hasPlaylistThumbnail",void 0);_.x([_.A(),_.B("design:type",String)],IR.prototype,"stackThumbnailSize",void 0);_.x([_.n8("ytd-thumbnail"),_.B("design:type",HTMLElement)],IR.prototype,"thumbnail",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IR.prototype,"dataChanged",null);_.x([_.W("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],IR.prototype,"isHovered",null);IR=_.x([_.Q({is:"ytd-radio-renderer",disableElementRegistration:!0})],IR);
_.C(IR,"ytd-radio-renderer",function(){if(kLf!==void 0)return kLf;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return kLf=K},{mode:_.p8("kevlar_poly_si_batch_j058")?1:2});var wT9;_.Na("itemSectionRenderer","showRenderer","ytd-show-renderer");var Ur=function(){return _.q.apply(this,arguments)||this};
_.O(Ur,_.q);Ur.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ur.prototype.computeThumbnailWidth=function(K){return K?360:246};
Ur.prototype.computeUseProminentThumbs=function(K){return K};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ur.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ur.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],Ur.prototype,"isSearch",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.B("design:type",Boolean)],Ur.prototype,"useProminentThumbs",void 0);Ur=_.x([_.Q({is:"ytd-show-renderer",disableElementRegistration:!0})],Ur);
_.C(Ur,"ytd-show-renderer",function(){if(wT9!==void 0)return wT9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return wT9=K},{mode:1});_.Na("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var RR=function(){var K=_.q.apply(this,arguments)||this;K.isRichGrid=!1;return K};
_.O(RR,_.q);RR.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"}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],RR.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],RR.prototype,"isRichGrid",void 0);RR=_.x([_.Q({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],RR);
_.C(RR,"ytd-feed-entry-renderer",function(){if(s82!==void 0)return s82;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return s82=K},{mode:1});var Z6v;var FC=function(){return _.q.apply(this,arguments)||this};
_.O(FC,_.q);FC.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.x([_.l(_.ou),_.B("design:type",Object)],FC.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],FC.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],FC.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.NQ,value:3}),_.B("design:type",Number)],FC.prototype,"itemsPerRow",void 0);
FC=_.x([_.Q({is:"ytd-link-card-renderer",disableElementRegistration:!0})],FC);
_.C(FC,"ytd-link-card-renderer",function(){if(Z6v!==void 0)return Z6v;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Z6v=K},{mode:1});var eEs;var zn=function(){return _.q.apply(this,arguments)||this};
_.O(zn,_.q);_.V=zn.prototype;_.V.configureRendererStamper=function(){return{"data.menu":Sf,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.onRendererTap=function(K){if(!this.ytdDismissibleItemBehavior.isDismissed){var d,f=(d=this.data)==null?void 0:d.navigationEndpoint;f&&!_.qa(_.qn(K),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(f)?_.qa(_.qn(K),this.hostElement,["A"])||_.Zp(this.hostElement,"yt-navigate",{endpoint:f}):this.ytComponentBehavior.resolveCommand(f,{}))}};
_.V.maybeComputeHref=function(K){return this.ytComponentBehavior.computeHref_(K,!0)};
_.V.getNavigationCommand=function(K){return this.isNavigationCommand(K)?K:null};
_.V.isNavigationCommand=function(K){return K?_.P(K,_.is)||_.P(K,_.qu)||_.P(K,_.TE)?!0:!1:!1};
zn.prototype.onRendererTap=zn.prototype.onRendererTap;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],zn.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],zn.prototype,"ytComponentBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],zn.prototype,"data",void 0);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],zn.prototype,"onRendererTap",null);zn=_.x([_.Q({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],zn);
_.C(zn,"ytd-lumiere-promo-item-image-renderer",function(){if(eEs!==void 0)return eEs;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return eEs=K},{mode:1});var pTH;var XC=function(){return _.q.apply(this,arguments)||this};
_.O(XC,_.q);XC.prototype.computeLandscapeThumbnail=function(){var K;return((K=this.data)==null?void 0:K.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],XC.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],XC.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],XC.prototype,"miniMode",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.NQ}),_.B("design:type",Number)],XC.prototype,"itemsPerRow",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.B("design:type",Boolean)],XC.prototype,"landscapeThumbnail",void 0);XC=_.x([_.Q({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],XC);
_.C(XC,"ytd-lumiere-shelf-details-renderer",function(){if(pTH!==void 0)return pTH;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return pTH=K},{mode:_.p8("kevlar_poly_si_batch_j076")?1:2});var K3t;var vO=function(){return _.q.apply(this,arguments)||this};
_.O(vO,_.q);vO.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vO.prototype,"data",void 0);vO=_.x([_.Q({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],vO);
_.C(vO,"ytd-primetime-promo-details-renderer",function(){if(K3t!==void 0)return K3t;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return K3t=K},{mode:1});var dL6;var Mt=function(){return _.q.apply(this,arguments)||this};
_.O(Mt,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Mt.prototype,"data",void 0);Mt=_.x([_.Q({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Mt);
_.C(Mt,"ytd-panel-show-style-metadata-renderer",function(){if(dL6!==void 0)return dL6;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return dL6=K},{mode:1});var fjH;var PO=function(){return _.q.apply(this,arguments)||this};
_.O(PO,_.q);_.V=PO.prototype;_.V.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.V.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.V.computeThumbnail=function(K){if(K)return K.smallFormFactorBackgroundThumbnail||K.largeFormFactorBackgroundThumbnail};
_.V.maybeComputeHref=function(K){return this.ytComponentBehavior.computeHref_(K,!0)};
_.V.isNavigationCommand=function(K){return K?_.P(K,_.is)||_.P(K,_.qu)||_.P(K,_.TE)?!0:!1:!1};
_.V.getNavigationCommand=function(K){return this.isNavigationCommand(K)?K:null};
PO.prototype.onPanelTap=PO.prototype.onPanelTap;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],PO.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],PO.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],PO.prototype,"roundedContainer",void 0);_.x([_.A({reflectToAttribute:!0,value:_.M("web_modern_buttons")}),_.B("design:type",Boolean)],PO.prototype,"modernButtons",void 0);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PO.prototype,"onPanelTap",null);PO=_.x([_.Q({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],PO);
_.C(PO,"ytd-primetime-promo-panel-renderer",function(){if(fjH!==void 0)return fjH;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return fjH=K},{mode:1});_.sP(_.C8(function(K){K=_.jP(K,{data:{},useFullWidth:!1});var d=K.data,f=K.useFullWidth,H=function(){return d().caption},D=function(){return d().image},S=function(){return _.$A(d().onTap)};
K={};K=_.SC("ytTeaserCardViewModelHost",(K.ytTeaserCardViewModelUseFullWidth=function(){return f()},K));
return _.U("teaser-card-view-model",{class:K},_.U(_.X,{cond:function(){return S()},
then:function(){return _.U(P59,{className:"ytTeaserCardViewModelLink",command:S,forceNewState:!0,useATagConfig:!0},_.U("div",{class:"ytTeaserCardViewModelImageContainer"},_.U(_.X,{cond:D,then:function(n){return _.U(_.jV,{data:n,className:"ytTeaserCardViewModelImage",alt:""})}})),_.U("p",{class:"ytTeaserCardViewModelCaption"},H))}}))},"Bb"),"teaser-card-view-model",{props:{data:_.rs,
useFullWidth:_.rs}});var HbN=new _.xn("RICH_GRID_VIDEO_RENDERER_TOKEN");_.sP(_.C8(function(K){var d=K.data;var f=K.showYtInteractionInContent;var H=function(){return!!d().selectableFeedback};
K=_.y(_.cC(!1,void 0,"nblDw"));var D=K.next().value,S=K.next().value;_.tR(function(){var v=_.P(d().primaryButton,_.v9);(v==null?0:v.isToggled)&&S(v.isToggled)});
K=_.cp(function(v){if(!H())return!1;if(D()){var g;var N=(g=d().selectableFeedback)==null?void 0:g.onDeselect}else{var h;N=(h=d().selectableFeedback)==null?void 0:h.onSelect}N&&_.me(N,{form:{element:v.target}});S(!D());if(v=_.P(d().primaryButton,_.v9))v.isToggled=D();return!1});
var n=function(){if(!H()){var v,g=(v=d().loggingDirectives)==null?void 0:v.trackingParams;g&&_.f5(_.eq().resolve(_.FD),g)}},u=_.sen(),a=function(){var v;
return H()?(v=d().selectableFeedback)==null?void 0:v.a11yLabel:void 0},R=function(){return H()?{toggled:D()}:{}},F=_.eq().resolve(_.Zd(HbN)),z={};
return _.U("yt-feedback-item-renderer",{class:_.SC("ytFeedbackItemRendererHost",(z.ytFeedbackItemRendererSelectableFeedback=H,z)),"on:click":K,"on:keydown":u,title:a,"aria-label":a,"aria-pressed":function(){return H()?D():void 0},
tabindex:function(){return H()?0:void 0},
role:function(){return H()?"button":void 0}},_.U("div",{class:"ytFeedbackItemRendererContentContainer"},_.U(_.z1,{data:function(){return d().content}},{videoRenderer:function(v){return _.U(F,{data:v.data,
showYtInteraction:f})},
lockupViewModel:function(v){return _.U(_.ef,{data:v.data,containerType:2})}})),_.U("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.U(_.z1,{data:function(){return d().primaryButton}},{toggleButtonViewModel:function(v){return _.U(_.MT,{data:v.data,
buttonShapeOverrides:R,disableExplicitClickLogging:!0,onToggle:n})}})))},"Cb"),"yt-feedback-item-renderer",{props:{data:_.rs,
showYtInteractionInContent:_.rs}});var gD=function(){var K=_.q.apply(this,arguments)||this;K.isShortsGrid=!1;K.isCompactGrid=!1;K.isShortsPanelGrid=!1;K.renderedFromRichGrid=!1;K.isInFirstColumn=!1;K.noGutterMargins=!1;K.isInlineGroupItem=!1;K.insetMetadata=!1;K.noBottomMarginInAds=_.M("web_no_bottom_margin_for_home_ad_buttons");K.force16By9ThumbnailAspectRatio=!1;K.useCompactList=!1;K.containerType=2;K.thumbnailTargetWidth=9999;K.isResponsiveGrid=!1;K.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};K.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};K.hoverListener=K.hover.bind(K);K.leaveListener=K.leave.bind(K);K.highlighted=!1;K.JSC$14010_unsubscribeFromInlinePreviewIsActive=function(){};
return K};
_.O(gD,_.q);_.V=gD.prototype;_.V.computeContainerType=function(){return this.useCompactList?3:2};
_.V.computeThumbnailTargetWidth=function(){var K;return(K=this.itemWidth)!=null?K:9999};
_.V.updateIsInFirstColumn=function(){var K;this.isInFirstColumn=((K=this.data)==null?void 0:K.colIndex)===0};
_.V.observerContainerType=function(){if(this.lockup){var K=this.lockup;K.containerType=this.containerType;K.sizing=this.sizing;K.typographyBump=this.typographyBump;K.itemWidth=this.itemWidth}this.richGridMedia&&_.M("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.M("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.V.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",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]]"}}}}}};
_.V.leave=function(K){K=K.relatedTarget;var d=document.querySelector("ytd-video-preview");K&&d&&_.eZ(d).contains(K)||this.removeAndCleanupHighlight()};
_.V.hover=function(){var K;if(!this.highlighted&&(!_.M("web_enable_rich_item_on_focus_effect")||(K=this.data)!=null&&K.onFocusEffect)){var d,f;((d=this.data)==null?void 0:(f=d.onFocusEffect)==null?void 0:f.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(K=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:K,boxShadow:"0 0 0 10px "+K}));var H,D;((H=this.data)==null?void 0:(D=H.onFocusEffect)==null?void 0:
D.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.V.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};
_.V.registerHoverHighlightListeners=function(){var K=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14010_unsubscribeFromInlinePreviewIsActive=_.n5(_.j3(),_.RxO,function(d){K.highlighted&&!d&&K.removeAndCleanupHighlight()})};
_.V.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14010_unsubscribeFromInlinePreviewIsActive()};
_.V.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.V.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.V.getBackgroundColor=function(){var K,d,f=(K=this.data)==null?void 0:(d=K.onFocusEffect)==null?void 0:d.onFocusColor;if(f){if(document.documentElement.hasAttribute("dark")&&(f==null?0:f.darkTheme))return _.E1(f==null?void 0:f.darkTheme);if(f==null?0:f.lightTheme)return _.E1(f==null?void 0:f.lightTheme)}};
_.V.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var K=_.te(),d,f,H;K&&((d=this.data)==null?0:d.trackingParams)&&((f=this.data)==null?void 0:f.colIndex)!=null&&((H=this.data)==null?void 0:H.rowIndex)!=null&&_.Q$(K,_.RG(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.V.isSlimMediaRenderer=function(K){return!!_.P(K==null?void 0:K.content,_.d0k)||!!_.P(K==null?void 0:K.content,K8s)||!!_.P(K==null?void 0:K.content,_.YH)||!!_.P(K==null?void 0:K.content,PeB)};
_.V.isPostRenderer=function(){var K,d;return!!_.P((K=this.data)==null?void 0:K.content,yms)||!!_.P((d=this.data)==null?void 0:d.content,nb9)};
_.V.computeIsGameCardShelf=function(){var K;return!!_.P((K=this.data)==null?void 0:K.content,nW8)};
_.V.computeIsMiniGameCardShelf=function(){var K,d;return!!_.P((K=this.data)==null?void 0:K.content,N9f)||!!_.P((d=this.data)==null?void 0:d.content,YG8)};
_.V.computeIsTeaserCard=function(){var K;return!!_.P((K=this.data)==null?void 0:K.content,YG8)};
_.V.computeIsSelectableFeedbackItem=function(){var K,d;return!((d=_.P((K=this.data)==null?void 0:K.content,_.oW8))==null||!d.selectableFeedback)};
_.V.computeContainsLumierePosters=function(){var K,d;return((d=_.P((K=this.data)==null?void 0:K.content,Xd8))==null?void 0:d.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.V.computeIsExpandOnHoverCardShelf=function(){var K;return!!_.P((K=this.data)==null?void 0:K.content,zCs)};
_.V.computeIsLinkCardShelf=function(){var K;return!!_.P((K=this.data)==null?void 0:K.content,oH4)};
_.V.computeIsReelItemStyleAvatarCircle=function(K){var d;return((d=_.P(K==null?void 0:K.content,_.YH))==null?void 0:d.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.V.computeIsLinkCardFullWidth=function(K,d){var f;return((f=_.P(K==null?void 0:K.content,oH4))==null?void 0:f.useFullWidth)||d<=2};
_.x$.Object.defineProperties(gD.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.M("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.M("web_enable_rich_item_on_focus_effect")||_.M("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.M("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.M("web_shorts_2_by_3_lockups_study")||_.M("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
gD.prototype.richGridHoverHighlightChanged=gD.prototype.richGridHoverHighlightChanged;gD.prototype.observerContainerType=gD.prototype.observerContainerType;gD.prototype.updateIsInFirstColumn=gD.prototype.updateIsInFirstColumn;_.x([_.l(_.ou),_.B("design:type",Object)],gD.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],gD.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],gD.prototype,"ytdLockupBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gD.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.B("design:type",Boolean)],gD.prototype,"isPost",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.B("design:type",Boolean)],gD.prototype,"containsLumierePosters",void 0);_.x([_.A({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.B("design:type",Boolean)],gD.prototype,"isSlimMedia",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.B("design:type",Boolean)],gD.prototype,"isGameCardShelf",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.B("design:type",Boolean)],gD.prototype,"isMiniGameCardShelf",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.B("design:type",Boolean)],gD.prototype,"isTeaserCard",void 0);_.x([_.A({computed:"computeIsSelectableFeedbackItem(data)"}),_.B("design:type",Boolean)],gD.prototype,"isSelectableFeedbackItem",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gD.prototype,"isShortsGrid",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],gD.prototype,"isSlimGrid",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gD.prototype,"isCompactGrid",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gD.prototype,"isShortsPanelGrid",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.B("design:type",Boolean)],gD.prototype,"isExpandOnHoverCardShelf",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.B("design:type",Boolean)],gD.prototype,"isLinkCardShelf",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.NQ,value:3}),_.B("design:type",Number)],gD.prototype,"itemsPerRow",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gD.prototype,"renderedFromRichGrid",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gD.prototype,"isInFirstColumn",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gD.prototype,"noGutterMargins",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gD.prototype,"isInlineGroupItem",void 0);_.x([_.A(),_.B("design:type",Object)],gD.prototype,"insetMetadata",void 0);
_.x([_.A(),_.B("design:type",Object)],gD.prototype,"noBottomMarginInAds",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],gD.prototype,"isShelfItem",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.B("design:type",Boolean)],gD.prototype,"isReelItemStyleAvatarCircle",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.B("design:type",Boolean)],gD.prototype,"isLinkCardFullWidth",void 0);
_.x([_.A(),_.B("design:type",Object)],gD.prototype,"force16By9ThumbnailAspectRatio",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gD.prototype,"useCompactList",void 0);_.x([_.A(),_.B("design:type",String)],gD.prototype,"sizing",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],gD.prototype,"typographyBump",void 0);_.x([_.A(),_.B("design:type",Number)],gD.prototype,"itemWidth",void 0);_.x([_.A(),_.B("design:type",Boolean)],gD.prototype,"isHomeShelf",void 0);
_.x([_.A(),_.B("design:type",Boolean)],gD.prototype,"isHomeGrid",void 0);_.x([_.n8("yt-lockup-view-model"),_.B("design:type",HTMLElement)],gD.prototype,"lockup",void 0);_.x([_.n8("ytd-rich-grid-media"),_.B("design:type",HTMLElement)],gD.prototype,"richGridMedia",void 0);_.x([_.n8("ytd-ad-slot-renderer"),_.B("design:type",HTMLElement)],gD.prototype,"adSlotRenderer",void 0);_.x([_.A({computed:"computeContainerType(useCompactList)"}),_.B("design:type",Object)],gD.prototype,"containerType",void 0);
_.x([_.A({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.B("design:type",Object)],gD.prototype,"thumbnailTargetWidth",void 0);_.x([_.W("showYtInteractionOnRichItem"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gD.prototype,"showYtInteractionOnRichGridMedia",null);_.x([_.W("isSelectableFeedbackItem","richGridHoverHighlight"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gD.prototype,"showYtInteractionOnRichItem",null);
_.x([_.W("typographyBump","isHomeGrid"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gD.prototype,"richTypographyBump",null);_.x([_.A({reflectToAttribute:!0}),_.W("isShortsGrid","isCompactGrid"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gD.prototype,"richGridHoverHighlight",null);_.x([_.W("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.B("design:type",Number),_.B("design:paramtypes",[])],gD.prototype,"shortsLockupViewModelAspectRatio",null);
_.x([_.W("isInlineGroupItem"),_.B("design:type",Number),_.B("design:paramtypes",[])],gD.prototype,"shortsLockupViewModelScrimStyle",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gD.prototype,"updateIsInFirstColumn",null);_.x([_.SP("containerType","sizing","typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gD.prototype,"observerContainerType",null);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gD.prototype,"isResponsiveGrid",void 0);_.x([_.A(),_.B("design:type",Object)],gD.prototype,"lockupExperiments",void 0);_.x([_.SP("richGridHoverHighlight"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gD.prototype,"richGridHoverHighlightChanged",null);gD=_.x([_.Q({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],gD);
_.DLk=_.eP()(gD,"ytd-rich-item-renderer",function(){if(x2s===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);x2s=K}K=x2s;return K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var OXz={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var bXB=_.rB(_.iB("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Vks;var Or=function(){var K=_.q.apply(this,arguments)||this;K.useResponsiveGrid=!1;K.hidden=!1;K.standardShelfMargins=_.M("web_rich_grid_standard_shelf_margins");K.isShowMoreHidden=!1;K.isExpanded=!1;K.isInnerShelf=!1;K.allVideosCount=0;K.allPlaylistCount=0;K.haveSmartDownloadsCompleted=!1;K.isShowLessHidden=!0;K.restrictContentsOverflow=!1;K.firstShownIndex=0;K.horizontalOffset=0;K.atEnd=!0;K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};K.nextClick=function(){var d;(d=K.data)!=null&&d.contents&&(K.firstShownIndex+=K.currentElementsPerRow,K.updateHorizontalOffset(),K.updateHorizontalItemVisibility())};
K.previousClick=function(){var d;(d=K.data)!=null&&d.contents&&(K.firstShownIndex-=K.currentElementsPerRow,K.updateHorizontalOffset(),K.updateHorizontalItemVisibility())};
return K};
_.O(Or,_.q);_.V=Or.prototype;
_.V.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.mD("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.V.attached=function(){this.requestElementsPerRow()};
_.V.refreshGridLayoutNew=function(){var K;if((K=this.data)!=null&&K.contents&&this.containerWidth){var d;((d=this.data.responsiveContainerConfiguration)==null?0:d.responsiveSize)?(K=_.WOG(this.data.responsiveContainerConfiguration,this.containerWidth),K=_.rP(Object.assign({},K,{standardUnitMinWidth:this.standardUnitMinWidth}))):K=_.rP({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=K.typographyBump;if(this.elementsPerRow!==
K.numItems||this.gutter!==K.gutter)this.elementsPerRow=K.numItems,this.gutter=K.gutter,this.itemWidth=K.itemWidth,_.f8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":K.gutter+"px"})}};
_.V.computeSizing=function(){if(!this.isLumiere){var K=_.pju(this.data);if(K)return K;if(_.M("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.V.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.V.computeButton=function(K){var d=_.P(K,_.tQ);K=Object.assign({},_.P(K,_.tQ));return d?(K.text||(K.text={simpleText:K.tooltip}),K.style="STYLE_MONO_OUTLINE",K.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",K):d};
_.V.onRowIndexChange=function(){var K=_.te(),d,f;((d=this.data)==null?0:d.trackingParams)&&((f=this.data)==null?void 0:f.rowIndex)!=null&&K&&_.Q$(K,_.RG(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.V.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var K,d=((K=this.getRichItemRenderers()[0])==null?void 0:K.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*d;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.V.requestElementsPerRow=function(){_.Zp(this.hostElement,"yt-request-elements-per-row")};
_.V.onUpdateElementsPerRowAction=function(K,d,f,H,D,S){if(this.containerWidth!==S&&(this.containerWidth=S,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&K&&d&&f&&H&&D&&(this.elementsPerRow!==K||this.postsPerRow!==d||this.slimItemsPerRow!==f||this.gameCardsPerRow!==H||this.miniGameCardsPerRow!==D)&&(this.elementsPerRow=K,this.postsPerRow=d,this.slimItemsPerRow=f,this.gameCardsPerRow=H,this.miniGameCardsPerRow=D,this.updateItemVisibility())};
_.V.getRichItemRenderers=function(){return _.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.V.updateItemVisibility=function(){var K=this;if(this.data&&this.data.contents){var d=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(H,D){var S;((S=K.data)==null?0:S.isExpanded)?(H.hidden=D>d-1,H.ytRendererBehavior.markDirty()):H.hidden=D>K.currentElementsPerRow-1||D>d-1});
var f=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||f||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||f||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.V.setHeightToSingleRow=function(){var K=this.getRichItemRenderers(),d=Number.parseInt(getComputedStyle(K[0]).marginBottom,10)||0;K=K.slice(0,this.currentElementsPerRow).reduce(function(f,H){return Math.max(f,H.getBoundingClientRect().height+d)},0);
this.contents.style.height=K+"px"};
_.V.focusNextExpandedItem=function(){var K;((K=this.data)==null?0:K.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.V.focusItem=function(K,d){var f=this.getRichItemRenderers();if(f[K]&&(K=f[K].querySelector(".focus-on-expand"))){if(d){var H;(H=f[this.currentElementsPerRow])==null||H.scrollIntoView({behavior:"smooth",block:"center"})}K.focus({preventScroll:!0})}};
_.V.onDataChange=function(){var K=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.jW(this,function(){K.updateItemVisibility()});
var d;if((d=this.data)==null?0:d.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.f8(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),d=0;d<this.data.contents.length;d++){var f=_.P(this.data.contents[d],_.MV)||{};f.colIndex=d;f.rowIndex=this.data.rowIndex}};
_.V.handleRerenderDownloadsData=function(){_.M("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())};
_.V.blockInlinePreview=function(K){var d=this,f;return _.c(function(H){(f=d.inlinePreviewIsEnabled)&&d.ytdReduxBehavior.dispatch(_.uIH(!1));return H.return(new Promise(function(D){K(function(){f&&d.ytdReduxBehavior.dispatch(_.uIH(!0));D()})}))})};
_.V.expandShelf=function(){var K=this;if(this.data){var d,f=(d=_.P(this.data.showMoreButton,_.tQ))==null?void 0:d.trackingParams;f&&_.f5(_.cv(),f);this.data.isExpanded=!0;this.blockInlinePreview(function(H){K.setHeightToSingleRow();K.updateItemVisibility();K.contents.style.height=K.contents.scrollHeight+"px";_.oc.addJob(function(){K.contents.style.height="auto";K.focusNextExpandedItem();H()},2,200)})}};
_.V.collapseShelf=function(){var K=this;return _.c(function(d){if(d.nextAddress==1){if(!K.data)return d.return();K.data.isExpanded=!1;return _.I(d,K.blockInlinePreview(function(f){K.contents.style.height=K.contents.scrollHeight+"px";K.setHeightToSingleRow();_.oc.addJob(function(){K.updateItemVisibility();K.contents.style.height="auto";f()},2,200)}),2)}_.Zp(K.hostElement,"yt-rich-shelf-renderer-collapse",K.data.trackingParams);
K.focusItem(0,!1);_.iQ(d)})};
_.V.updateArrowButtonStatus=function(){var K=this.getRichItemRenderers().length;if(!_.M("web_rich_shelf_renderer_use_data_contents_killswitch")){var d,f;K=((d=this.data)==null?void 0:(f=d.contents)==null?void 0:f.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=K};
_.V.onChildElementFocus=function(K){this.hasChevronButtons&&(K=K.target.closest("#contents > *"),this.contents.contains(K)&&(K.offsetLeft<this.horizontalOffset?this.previousClick():K.offsetLeft+K.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.V.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.mD("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.V.updateHorizontalOffset=function(){var K=this.getRichItemRenderers(),d=K.length;if(!_.M("web_rich_shelf_renderer_use_data_contents_killswitch")){var f,H;d=((f=this.data)==null?void 0:(H=f.contents)==null?void 0:H.length)||0}var D;K=((D=K[0])==null?void 0:D.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>d?this.firstShownIndex=d-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*K};
_.V.isSlimMediaShelfRenderer=function(){var K,d,f,H=(f=_.P((K=this.data)==null?void 0:(d=K.contents)==null?void 0:d[0],_.MV))==null?void 0:f.content;return!!(_.P(H,_.d0k)||_.P(H,K8s)||_.P(H,_.YH)||_.P(H,PeB))};
_.V.isGameCardShelf=function(){var K,d,f,H=(f=_.P((K=this.data)==null?void 0:(d=K.contents)==null?void 0:d[0],_.MV))==null?void 0:f.content;return!!_.P(H,nW8)};
_.V.isGnomeShelf=function(){var K,d,f,H=(f=_.P((K=this.data)==null?void 0:(d=K.contents)==null?void 0:d[0],_.MV))==null?void 0:f.content;return!!_.P(H,_.oW8)};
_.V.isMiniGameCardShelf=function(){var K,d,f,H=(f=_.P((K=this.data)==null?void 0:(d=K.contents)==null?void 0:d[0],_.MV))==null?void 0:f.content;return!!_.P(H,N9f)||!!_.P(H,YG8)};
_.V.hasGameBoxArtAvatarStyle=function(){var K;return((K=this.data)==null?void 0:K.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.V.hasRoundedGameBoxArtAvatarStyle=function(){var K;return((K=this.data)==null?void 0:K.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.V.isShortsShelf=function(){var K,d,f,H=(f=_.P((K=this.data)==null?void 0:(d=K.contents)==null?void 0:d[0],_.MV))==null?void 0:f.content;return!!_.P(H,_.YH)||!!_.P(H,PeB)};
_.V.isPostShelfRenderer=function(){var K,d,f,H=(f=_.P((K=this.data)==null?void 0:(d=K.contents)==null?void 0:d[0],_.MV))==null?void 0:f.content;return!(!_.P(H,yms)&&!_.P(H,nb9))};
_.V.isLumiereShelf=function(){var K,d,f=_.P((K=this.data)==null?void 0:(d=K.contents)==null?void 0:d[0],_.MV);return!!_.P(f==null?void 0:f.content,Xd8)};
_.V.isLumiereShelfWithPosters=function(){var K,d,f=_.P((K=this.data)==null?void 0:(d=K.contents)==null?void 0:d[0],_.MV),H;return((H=_.P(f==null?void 0:f.content,Xd8))==null?void 0:H.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.V.isExpandOnHoverCardShelf=function(){var K,d,f,H=(f=_.P((K=this.data)==null?void 0:(d=K.contents)==null?void 0:d[0],_.MV))==null?void 0:f.content;return!!_.P(H,zCs)};
_.V.computeHasFeaturedBadge=function(){var K,d,f=_.P((K=this.data)==null?void 0:(d=K.badges)==null?void 0:d[0],_.tRk);return f?f.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.V.computeHasPaygatedFeaturedBadge=function(){var K,d,f=_.P((K=this.data)==null?void 0:(d=K.badges)==null?void 0:d[0],_.tRk);return f?(f==null?void 0:f.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.V.computeHeaderHidden=function(){var K,d,f,H,D,S;return!((K=this.data)==null?0:K.icon)&&!((d=this.data)==null?0:d.title)&&!((f=this.data)==null?0:f.subtitle)&&!((H=this.data)==null?0:H.thumbnail)&&!((D=this.data)==null?0:D.badges)&&!((S=this.data)==null?0:S.menu)};
_.V.showCtaButton=function(){var K;return!((K=this.data)==null||!K.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.V.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.V.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.V.computeForce16By9ThumbnailAspectRatio=function(){var K,d;return((K=this.data)==null?void 0:(d=K.responsiveContainerConfiguration)==null?void 0:d.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.V.onSectionReactiveDismissal=function(K,d,f){var H,D;var S=(H=this.data)==null?void 0:(D=H.targetingContext)==null?void 0:D.targetGroupId;this&&S&&d.targetGroupId&&S.includes(d.targetGroupId)?(H=this.rowIndex,K=H===void 0?!1:!(d.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&H<=K)):K=!1;K&&(this.hidden=f)};
_.x$.Object.defineProperties(Or.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var K=this.elementsPerRow;this.isPostShelfRenderer()?K=this.postsPerRow:this.isSlimMediaShelfRenderer()?K=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?K=this.slimItemsPerRow-1:this.isGameCardShelf()?K=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(K=this.miniGameCardsPerRow);return K}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.M("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var K,d;return!((K=this.data)==null||!K.previousButton)&&!((d=this.data)==null||!d.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 K;return((K=_.eq().resolve(_.jC).getCurrentPage())==null?void 0:K.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H;return!((K=this.data)==null?0:(d=K.thumbnail)==null?0:(f=d.accessibility)==null?0:(H=f.accessibilityData)==null?0:H.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Or.prototype.onChildElementFocus=Or.prototype.onChildElementFocus;Or.prototype.handleRerenderDownloadsData=Or.prototype.handleRerenderDownloadsData;Or.prototype.onDataChange=Or.prototype.onDataChange;Or.prototype.onRowIndexChange=Or.prototype.onRowIndexChange;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Or.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Or.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.EL),_.B("design:type",Object)],Or.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Or.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Or.prototype,"ytdReduxBehavior",void 0);_.x([_.A({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.B("design:type",Object)],Or.prototype,"useResponsiveGrid",void 0);_.x([_.A(),_.B("design:type",Object)],Or.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Number)],Or.prototype,"standardUnitMinWidth",void 0);_.x([_.A({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],Or.prototype,"elementsPerRow",void 0);_.x([_.A({value:3}),_.B("design:type",Number)],Or.prototype,"postsPerRow",void 0);_.x([_.A({value:6}),_.B("design:type",Number)],Or.prototype,"slimItemsPerRow",void 0);_.x([_.A({value:6}),_.B("design:type",Number)],Or.prototype,"gameCardsPerRow",void 0);
_.x([_.A({value:6}),_.B("design:type",Number)],Or.prototype,"miniGameCardsPerRow",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Or.prototype,"hidden",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Or.prototype,"standardShelfMargins",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Or.prototype,"isShowMoreHidden",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Or.prototype,"isExpanded",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Or.prototype,"isInnerShelf",void 0);_.x([_.A({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.B("design:type",Boolean)],Or.prototype,"isShorts",void 0);_.x([_.A({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.B("design:type",Boolean)],Or.prototype,"isLumiere",void 0);_.x([_.A({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.B("design:type",Boolean)],Or.prototype,"hasBoxArtThumbnailStyle",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.B("design:type",Boolean)],Or.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.B("design:type",Boolean)],Or.prototype,"hasFeaturedBadge",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.B("design:type",Boolean)],Or.prototype,"hasPaygatedFeaturedBadge",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.B("design:type",Boolean)],Or.prototype,"isHeaderHidden",void 0);_.x([_.A({selector:_.gHB}),_.B("design:type",Object)],Or.prototype,"allVideosCount",void 0);_.x([_.A({selector:l6X}),_.B("design:type",Object)],Or.prototype,"allPlaylistCount",void 0);_.x([_.A({selector:mV5}),_.B("design:type",Object)],Or.prototype,"haveSmartDownloadsCompleted",void 0);
_.x([_.A({selectorArgs:["entitySelectorType"],selector:function(K,d){if(_.M("kevlar_modern_downloads_page")&&d&&d!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var f=K.entities;switch(d){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":d=_.vJ(f);K=Fr(d);var H=_.UV(d);f=_.PJ(f);f=_.kJ(YiO(H,f,d.length));return{contents:K,subtitle:f};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return f=_.vJ(f),{contents:Fr(f)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return f=
_.MQ(f),{contents:Fr(f)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return f=_.Kvo(f),{contents:Fr(f)};default:_.h3(new _.X4("Error: entitySelectorType defined but not matched in selector.",K,d))}}}}),
_.B("design:type",Object)],Or.prototype,"entityDrivenRichShelfData",void 0);_.x([_.A({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.B("design:type",Boolean)],Or.prototype,"hasTopCtaButton",void 0);_.x([_.A({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.B("design:type",Boolean)],Or.prototype,"hasBottomCtaButton",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.B("design:type",Boolean)],Or.prototype,"force16By9ThumbnailAspectRatio",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Or.prototype,"isShowLessHidden",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Or.prototype,"restrictContentsOverflow",void 0);_.x([_.A({selector:_.Fvo}),_.B("design:type",Boolean)],Or.prototype,"inlinePreviewIsEnabled",void 0);
_.x([_.A({computed:"computeSizing(data)"}),_.B("design:type",String)],Or.prototype,"sizing",void 0);_.x([_.A(),_.B("design:type",Boolean)],Or.prototype,"typographyBump",void 0);_.x([_.A(),_.B("design:type",Number)],Or.prototype,"itemWidth",void 0);_.x([_.A(),_.B("design:type",Object)],Or.prototype,"firstShownIndex",void 0);_.x([_.A(),_.B("design:type",Object)],Or.prototype,"horizontalOffset",void 0);_.x([_.A(),_.B("design:type",Object)],Or.prototype,"atEnd",void 0);
_.x([_.n8("#contents"),_.B("design:type",HTMLElement)],Or.prototype,"contents",void 0);_.x([_.SP("data.rowIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Or.prototype,"onRowIndexChange",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Or.prototype,"onDataChange",null);
_.x([_.SP("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Or.prototype,"handleRerenderDownloadsData",null);_.x([_.VV("focusin"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Or.prototype,"onChildElementFocus",null);_.x([_.A({reflectToAttribute:!0}),_.W("data","isHomePage"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Or.prototype,"isTruncated",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Or.prototype,"hideBottomDivider",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Or.prototype,"hasChevronButtons",null);_.x([_.W("firstShownIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],Or.prototype,"previousButtonOverride",null);
_.x([_.W("atEnd"),_.B("design:type",Object),_.B("design:paramtypes",[])],Or.prototype,"nextButtonOverride",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Or.prototype,"isHomePage",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Or.prototype,"thumbnailAriaHidden",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Or.prototype,"initiallyIsExpanded",null);
_.x([_.W("data"),_.B("design:type",String),_.B("design:paramtypes",[])],Or.prototype,"entitySelectorType",null);Or=_.x([_.Q({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Or);
_.SHs=_.eP()(Or,"ytd-rich-shelf-renderer",function(){if(Vks===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);Vks=K}K=Vks;return K},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var yxH;_.sP(qgs,"yt-slimline-survey-view-model",{props:{data:_.rs}});var Nt=function(){var K=_.q.apply(this,arguments)||this;K.tileLottieAnimationRef={};K.backgroundLottieAnimationRef={};K.isOnHoverBehaviorForLottieEnabled=!0;K.useBiggerShowcaseImage=_.M("enable_desktop_search_bigger_thumbs");K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return K};
_.O(Nt,_.q);_.V=Nt.prototype;_.V.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.V.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.V.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var K=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);K!==this.hasTile&&this.set("hasTile",K);K=this.hasLogo(this.data)||!!this.data.badgeText;K!==this.hasMetadata&&this.set("hasMetadata",K);K=this.data.overflowButton?!1:K;K!==this.showLogoImage&&this.set("showLogoImage",K);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.V.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.V.currentColorChanged=function(){this.updateButtonPalette()};
_.V.computeBackgroundStyle=function(K){if(K&&this.data){var d=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var f=_.wl((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);f&&d.push('background-image: url("'+f+'");')}var H;((H=K.basicColorData)==null?void 0:H.backgroundColor)!==void 0&&d.push("background-color: "+_.hG(K.basicColorData.backgroundColor)+";");return d.join("")}};
_.V.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&this.set("isDarkTheme",K)};
_.V.getCurrentLogo=function(K,d){if(K)return d?K.darkLogoImage:K.lightLogoImage};
_.V.getCurrentStaticTileImage=function(K,d){if(this.hasStaticTile(K))return K.darkTileImage?d?K.darkTileImage:K.tileImage:K.tileImage};
_.V.computeTitleStyle=function(K){if(this.data&&this.data.title&&K&&K.basicColorData&&K.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.E1(K.basicColorData.foregroundTitleColor)+";"};
_.V.computeSubtitleStyle=function(K){if(this.data&&this.data.subtitle&&K&&K.basicColorData&&K.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.E1(K.basicColorData.foregroundBodyColor)+";"};
_.V.computeSupplementalStyle=function(K){if(this.data&&this.data.supplementalText&&K&&K.supplementalTextColor!==void 0)return K=_.E1(K.supplementalTextColor),"color:"+K+";--yt-endpoint-color:"+K+";--yt-endpoint-hover-color:"+K+";--yt-endpoint-visited-color:"+K+";--yt-formatted-string-bold-font-weight:700;"};
_.V.computeBadgeStyle=function(K){if(this.data&&this.data.badgeText&&K&&K.basicColorData&&K.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.E1(K.basicColorData.foregroundActivatedColor)+";"};
_.V.computeDismissIconStyle=function(K){var d,f;if((K==null?0:(d=K.dismissButtonColorData)==null?0:d.foregroundTitleColor)&&(K==null?0:(f=K.dismissButtonColorData)==null?0:f.backgroundColor))return"--yt-button-color:"+_.hG(K.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.hG(K.dismissButtonColorData.backgroundColor)+";"};
_.V.computeOverflowIconStyle=function(K){var d,f;if((K==null?0:(d=K.dismissButtonColorData)==null?0:d.foregroundTitleColor)&&(K==null?0:(f=K.dismissButtonColorData)==null?0:f.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.hG(K.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.hG(K.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.hG(K.dismissButtonColorData.foregroundTitleColor)+";"};
_.V.computeBannerStyle=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.V.computeLocation=function(K){switch(K==null?void 0:K.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.V.shouldShowTileSection=function(K,d,f){return!this.shouldExpandLogo(K,d,f)&&d};
_.V.shouldShowExpandedLogoSection=function(K,d,f){return this.shouldExpandLogo(K,d,f)&&K!==void 0&&this.hasLogo(K)};
_.V.shouldExpandLogo=function(K,d,f){return K&&d?!1:f>=2};
_.V.hasStaticTile=function(K){return!(K==null||!K.tileImage)};
_.V.hasTileLottie=function(K){var d;return!!(K==null?0:(d=K.tileLottie)==null?0:d.url)};
_.V.hasLogo=function(K){return this.getCurrentLogo(K,this.isDarkTheme)!==void 0};
_.V.getLogoHeight=function(K){return this.logoWithPadding(K)?"26":"20"};
_.V.getExpandedLogoHeight=function(K){return this.logoWithPadding(K)?"31":"24"};
_.V.getLogoImageId=function(K){return this.logoWithPadding(K)?"logo-image-with-padding":"logo-image"};
_.V.hasBackgroundLottie=function(K){var d;return!!(K==null?0:(d=K.backgroundLottie)==null?0:d.url)};
_.V.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var K,d;(K=this.tileLottieAnimationRef)==null||(d=K.lottieEl)==null||d.play();var f,H;(f=this.backgroundLottieAnimationRef)==null||(H=f.lottieEl)==null||H.play()}};
_.V.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var K,d;(K=this.tileLottieAnimationRef)==null||(d=K.lottieEl)==null||d.pause();var f,H;(f=this.backgroundLottieAnimationRef)==null||(H=f.lottieEl)==null||H.pause()}};
_.V.pauseLottie=function(){var K,d;(K=this.tileLottieAnimationRef)==null||(d=K.lottieEl)==null||d.pause();var f,H;(f=this.backgroundLottieAnimationRef)==null||(H=f.lottieEl)==null||H.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.V.performPrimaryButtonAction=function(){var K,d,f;((K=this.data)==null?0:(d=K.primaryButton)==null?0:(f=d.buttonRenderer)==null?0:f.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.V.requestElementsPerRow=function(){_.Zp(this.hostElement,"yt-request-elements-per-row")};
_.V.updateButtonPalette=function(){if(this.data&&this.currentColorData){var K;((K=this.data.dismissButton)==null?0:K.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 d;if((d=this.data.primaryButton)==null?0:d.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 f;if((f=this.data.secondaryButton)==
null?0:f.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 H;((H=this.data.primaryButton)==null?0:H.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var D;((D=this.data.secondaryButton)==null?0:D.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.V.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var K=this.getTileLottieDataBasedOnTheme(),d,f;if(K.url!==((d=this.tileLottiePlayerProps)==null?void 0:(f=d.animationConfig)==null?void 0:f.path)){var H,D;(H=this.tileLottieAnimationRef)==null||(D=H.lottieEl)==null||D.destroy();var S;this.isOnHoverBehaviorForLottieEnabled=!((S=K.settings)==null?0:S.autoplay);var n,u;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(u=(n=K.settings)==null?void 0:n.autoplay)!=null?u:!1,loop:this.getLottieLoopValue(K.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof K.url==="string"?this.tileLottiePlayerProps.animationConfig.path=K.url:this.tileLottiePlayerProps.animationConfig.animationData=K.url}}};
_.V.getOverflowButton=function(K){return _.P(K.overflowButton,t$k)};
_.V.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var K=this.getBackgroundLottieDataBasedOnTheme(),d,f;if(K.url!==((d=this.backgroundLottiePlayerProps)==null?void 0:(f=d.animationConfig)==null?void 0:f.path)){var H,D;(H=this.backgroundLottieAnimationRef)==null||(D=H.lottieEl)==null||D.destroy();var S;this.isOnHoverBehaviorForLottieEnabled=!((S=K.settings)==null?0:S.autoplay);var n,u;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(u=(n=K.settings)==null?void 0:n.autoplay)!=null?u:!1,loop:this.getLottieLoopValue(K.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof K.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=K.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
K.url}}};
_.V.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var K;((K=this.tileLottieAnimationRef)==null?void 0:K.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var d;((d=this.backgroundLottieAnimationRef)==null?void 0:d.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.V.getTileLottieDataBasedOnTheme=function(){var K;if(this.isDarkTheme&&((K=this.data)==null?0:K.darkThemeTileLottie))return this.data.darkThemeTileLottie;var d;return((d=this.data)==null?0:d.tileLottie)?this.data.tileLottie:{}};
_.V.getBackgroundLottieDataBasedOnTheme=function(){var K;if(this.isDarkTheme&&((K=this.data)==null?0:K.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var d;return((d=this.data)==null?0:d.backgroundLottie)?this.data.backgroundLottie:{}};
_.V.onUpdateElementsPerRowAction=function(K){K&&this.elementsPerRow!==K&&(this.elementsPerRow=K)};
_.V.getLottieLoopValue=function(K){return K?K.loop!==void 0?K.loop:K.loopCount?K.loopCount-1:!0:!0};
_.V.logoWithPadding=function(K){var d,f,H;return(K=(d=this.getCurrentLogo(K,this.isDarkTheme))==null?void 0:(f=d.thumbnails)==null?void 0:(H=f[0])==null?void 0:H.height)&&K%31===0?!0:!1};
Nt.prototype.currentColorChanged=Nt.prototype.currentColorChanged;Nt.prototype.themeChanged=Nt.prototype.themeChanged;Nt.prototype.dataChanged=Nt.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],Nt.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Nt.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Nt.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Nt.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Nt.prototype,"primaryButton",void 0);_.x([_.A(),_.B("design:type",Object)],Nt.prototype,"secondaryButton",void 0);
_.x([_.A({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],Nt.prototype,"elementsPerRow",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Nt.prototype,"isDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Nt.prototype,"hasTile",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Nt.prototype,"hasMetadata",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Nt.prototype,"showLogoImage",void 0);_.x([_.A(),_.B("design:type",Object)],Nt.prototype,"currentColorData",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.B("design:type",String)],Nt.prototype,"bannerStyle",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.B("design:type",String)],Nt.prototype,"location",void 0);
_.x([_.A(),_.B("design:type",Object)],Nt.prototype,"tileLottiePlayerProps",void 0);_.x([_.A(),_.B("design:type",Object)],Nt.prototype,"tileLottieAnimationRef",void 0);_.x([_.A(),_.B("design:type",Object)],Nt.prototype,"backgroundLottiePlayerProps",void 0);_.x([_.A(),_.B("design:type",Object)],Nt.prototype,"backgroundLottieAnimationRef",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Nt.prototype,"useBiggerShowcaseImage",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Nt.prototype,"isHideEnclosingAction",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nt.prototype,"dataChanged",null);_.x([_.an("isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nt.prototype,"themeChanged",null);
_.x([_.an("currentColorData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nt.prototype,"currentColorChanged",null);Nt=_.x([_.Q({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Nt);
_.C(Nt,"ytd-statement-banner-renderer",function(){if(yxH!==void 0)return yxH;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="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          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return yxH=K},{mode:1});var nt8;var Ya=function(){var K=_.q.apply(this,arguments)||this;K.isSearch=!1;K.hideShelfHeader=!1;K.engagementPanel=!1;K.disableMouseScroll=!0;K.useFloorScrolling=!0;K.modernTypography=_.M("web_modern_typography");return K};
_.O(Ya,_.q);Ya.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.iB("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.iB("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Ya.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ya.prototype.onDataChanged=Ya.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ya.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ya.prototype,"isSearch",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ya.prototype,"hideShelfHeader",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ya.prototype,"engagementPanel",void 0);_.x([_.A(),_.B("design:type",Object)],Ya.prototype,"disableMouseScroll",void 0);_.x([_.A(),_.B("design:type",Object)],Ya.prototype,"useFloorScrolling",void 0);_.x([_.A(),_.B("design:type",Object)],Ya.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ya.prototype,"modernTypography",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ya.prototype,"onDataChanged",null);Ya=_.x([_.Q({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Ya);
_.C(Ya,"ytd-reel-shelf-renderer",function(){if(nt8!==void 0)return nt8;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return nt8=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var ibt;var cxB=_.C8(function(K){var d=K.data;K=K.useSmallFont;var f={},H={};return _.U("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.U(_.X,{cond:function(){return d().favicon},
then:function(D){return _.U(_.jV,{data:D,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.U("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.U(_.ji,{text:function(){return d().title},
className:_.SC("yt-channel-external-link-view-model-wiz__title",(f["yt-channel-external-link-view-model-wiz__title--title-small-font"]=K,f)),ellipsisTruncate:!0,userInput:!0}),_.U(_.ji,{text:function(){return d().link},
className:_.SC("yt-channel-external-link-view-model-wiz__link",(H["yt-channel-external-link-view-model-wiz__link--link-small-font"]=K,H)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Db");
cxB.idomCompat=!0;_.sP(cxB,"yt-channel-external-link-view-model",{props:{data:_.rs,useSmallFont:_.rs}});_.Na("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var tW=function(){var K=_.q.apply(this,arguments)||this;K.revealButtonClass="button";K.businessEmailDisplayState="HIDE_SECTION";return K};
_.O(tW,_.q);_.V=tW.prototype;_.V.refit=function(){var K=this;_.bL(function(){_.p1(K.hostElement,"yt-refit-popups-action")});
_.jW(this,function(){_.p1(K.hostElement,"yt-refit-popups-action")})};
_.V.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.mV("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.V.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"};
_.V.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.V.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"}}}};
_.V.computeEmailHref=function(K){return"mailto:"+K};
_.V.computeSafeUrl=function(K){if(K)return _.Xa(K)};
_.V.linkEndpoint=function(K){return _.P(K.onTap,_.oG)};
_.V.linkEndpointToHref=function(K){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(K))};
_.V.onYtServiceRequestCompleted=function(K){var d;if((d=K.detail.data)==null?0:d.businessEmail)this.businessEmail=K.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var f;if((f=K.detail.data)==null?0:f.errorMessage)this.businessEmailErrorMessage=K.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.V.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var K=this.JSC$14113_captchaTextarea.value;if(K){K={recaptcha_response_token:K,channel_id:this.metadata.channelId};var d=_.P(this.metadata.onBusinessEmailRevealClickCommand,_.oG);d&&this.ytComponentBehavior.resolveCommand(d,{form:K})}}};
_.V.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.x$.Object.defineProperties(tW.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var K;return _.P((K=this.data)==null?void 0:K.metadata,gbt)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.P(this.metadata.businessEmailRevealButton,_.XN)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var K=new URL(this.metadata.canonicalChannelUrl);return K.host+K.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,_.oG)}}});
tW.prototype.onYtServiceRequestCompleted=tW.prototype.onYtServiceRequestCompleted;tW.prototype.businessEmailMetadataChanged=tW.prototype.businessEmailMetadataChanged;tW.prototype.refit=tW.prototype.refit;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],tW.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.n8("#g-recaptcha-response"),_.B("design:type",HTMLTextAreaElement)],tW.prototype,"JSC$14113_captchaTextarea",void 0);_.x([_.A(),_.B("design:type",Object)],tW.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],tW.prototype,"revealButtonClass",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],tW.prototype,"metadata",null);
_.x([_.W("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],tW.prototype,"revealButton",null);_.x([_.W("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],tW.prototype,"channelDisplayUrl",null);_.x([_.an("metadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tW.prototype,"refit",null);_.x([_.W("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],tW.prototype,"formattedDescription",null);
_.x([_.W("metadata","learnMoreCommand"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tW.prototype,"shouldRendereVerifiedPhoneStatus",null);_.x([_.W("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],tW.prototype,"learnMoreCommand",null);_.x([_.A(),_.B("design:type",String)],tW.prototype,"businessEmailDisplayState",void 0);_.x([_.A(),_.B("design:type",String)],tW.prototype,"businessEmail",void 0);
_.x([_.A(),_.B("design:type",String)],tW.prototype,"businessEmailErrorMessage",void 0);_.x([_.an("metadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tW.prototype,"businessEmailMetadataChanged",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],tW.prototype,"onYtServiceRequestCompleted",null);
tW=_.x([_.Q({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],tW);
_.C(tW,"ytd-about-channel-renderer",function(){if(ibt!==void 0)return ibt;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ibt=K},{mode:1});var uUs;var oR=function(){return _.q.apply(this,arguments)||this};
_.O(oR,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],oR.prototype,"data",void 0);oR=_.x([_.Q({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],oR);
_.C(oR,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(uUs!==void 0)return uUs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return uUs=K},{mode:1});var ajB;var $a=function(){return _.q.apply(this,arguments)||this};
_.O($a,_.q);$a.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$a.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],$a.prototype,"aligment",void 0);$a=_.x([_.Q({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],$a);
_.C($a,"ytd-channel-list-sub-menu-renderer",function(){if(ajB!==void 0)return ajB;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ajB=
K},{mode:1});var Ij6;var Er=function(){return _.q.apply(this,arguments)||this};
_.O(Er,_.q);Er.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}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Er.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Er.prototype,"data",void 0);Er=_.x([_.Q({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Er);
_.C(Er,"ytd-channel-sub-menu-renderer",function(){if(Ij6!==void 0)return Ij6;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Ij6=K},{mode:1});var UL8;var RuJ;var hW=function(){var K=_.q.apply(this,arguments)||this;K.isCompact=!1;return K};
_.O(hW,_.q);_.x$.Object.defineProperties(hW.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var K,d;return((d=_.P((K=this.data)==null?void 0:K.endpoint,_.TE))==null?void 0:d.target)==="TARGET_NEW_WINDOW"}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],hW.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],hW.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],hW.prototype,"isCompact",void 0);_.x([_.W("isCompact"),_.B("design:type",Number),_.B("design:paramtypes",[])],hW.prototype,"thumbnailWidth",null);
_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],hW.prototype,"openNewWindow",null);hW=_.x([_.Q({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],hW);
_.C(hW,"ytd-media-lockup-renderer",function(){if(RuJ!==void 0)return RuJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return RuJ=K},{mode:1});var F3k;var b2=function(){return _.q.apply(this,arguments)||this};
_.O(b2,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],b2.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],b2.prototype,"data",void 0);b2=_.x([_.Q({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],b2);
_.C(b2,"ytd-structured-description-channel-lockup-renderer",function(){if(F3k!==void 0)return F3k;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return F3k=K},{mode:1});var zu9;var mj=function(){var K=_.q.apply(this,arguments)||this;K.isCompact=!1;K.collections=_.M("web_modern_collections_v2");K.collectionsStackColor=_.M("modernize_structured_description_playlist_lockups_v2");return K};
_.O(mj,_.q);mj.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:_.M("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.x$.Object.defineProperties(mj.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H,D,S;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(K=this.data)==null?void 0:(d=K.thumbnail)==null?void 0:d.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(f=this.data)==null?void 0:(H=f.thumbnail)==null?void 0:H.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(D=this.data)==null?void 0:(S=D.thumbnail)==
null?void 0:S.vibrantColorPalette:void 0}}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],mj.prototype,"componentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],mj.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],mj.prototype,"showSidePanelThumbnailOverlay",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],mj.prototype,"isCompact",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],mj.prototype,"collections",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],mj.prototype,"collectionsStackColor",void 0);_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],mj.prototype,"twoLineTitle",null);
_.x([_.W("data","collections","collectionsStackColor"),_.B("design:type",Object),_.B("design:paramtypes",[])],mj.prototype,"collectionStack",null);mj=_.x([_.Q({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],mj);
_.C(mj,"ytd-structured-description-playlist-lockup-renderer",function(){if(zu9!==void 0)return zu9;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return zu9=K},{mode:1});var Xq8;var l2=function(){return _.q.apply(this,arguments)||this};
_.O(l2,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],l2.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],l2.prototype,"data",void 0);l2=_.x([_.Q({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],l2);
_.C(l2,"ytd-structured-description-video-lockup-renderer",function(){if(Xq8!==void 0)return Xq8;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Xq8=K},{mode:2});var WO=function(){return _.q.apply(this,arguments)||this};
_.O(WO,_.q);
WO.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}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],WO.prototype,"data",void 0);WO=_.x([_.Q({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],WO);
_.C(WO,"ytd-compact-infocard-renderer",function(){if(UL8!==void 0)return UL8;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return UL8=K},{mode:1});var vtf;var Gn=function(){var K=_.q.apply(this,arguments)||this;K.useModernCollectionsV2=_.M("web_modern_collections_v2");return K};
_.O(Gn,_.q);Gn.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.x$.Object.defineProperties(Gn.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],Gn.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Gn.prototype,"ytdReduxBehavior",void 0);_.x([_.A({selector:_.Ek}),_.B("design:type",Object)],Gn.prototype,"isGridViewEnabled",void 0);
_.x([_.W("isGridViewEnabled"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gn.prototype,"watchFeedBigThumbs",null);_.x([_.W("isGridViewEnabled","data"),_.A({reflectToAttribute:!0,value:"168"}),_.B("design:type",String),_.B("design:paramtypes",[])],Gn.prototype,"thumbnailWidth",null);_.x([_.W("isGridViewEnabled","data"),_.A({reflectToAttribute:!0,value:"94"}),_.B("design:type",String),_.B("design:paramtypes",[])],Gn.prototype,"customThumbnailSize",null);
_.x([_.A(),_.B("design:type",Object)],Gn.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gn.prototype,"useModernCollectionsV2",void 0);Gn=_.x([_.Q({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Gn);
_.C(Gn,"ytd-compact-playlist-renderer",function(){if(vtf!==void 0)return vtf;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return vtf=K},{mode:1});var MkB;var AW=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");K.roundedContainer=!0;K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return K};
_.O(AW,_.q);_.V=AW.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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"}}}};
_.V.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.V.computeViewStyle=function(K){return K.style?K.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.V.onUpdateElementsPerRowAction=function(K){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&K===1};
_.V.requestElementsPerRow=function(){_.Zp(this.hostElement,"yt-request-elements-per-row")};
AW.prototype.dataChanged=AW.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],AW.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],AW.prototype,"actionHandlerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],AW.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],AW.prototype,"hideThumbnail",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.B("design:type",String)],AW.prototype,"viewStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],AW.prototype,"darkerDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],AW.prototype,"roundedContainer",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AW.prototype,"dataChanged",null);AW=_.x([_.Q({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],AW);
_.C(AW,"ytd-compact-promoted-item-renderer",function(){if(MkB!==void 0)return MkB;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return MkB=K},{mode:1});var PDs;var Tn=function(){var K=_.q.apply(this,arguments)||this;K.collections=_.M("web_modern_collections_v2");return K};
_.O(Tn,_.q);Tn.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Tn.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Tn.prototype.onYtNavigate=function(K,d){var f=this;if(d.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",d)){var H=this.get("watchEndpoint.videoId",d.endpoint),D=_.p1(this.hostElement,"yt-get-current-video-id-action")[0];_.M("kevlar_mix_handle_first_endpoint_different")&&H&&D&&H!==D||(K.stopPropagation(),_.LK().getPlayerPromise().then(function(S){if(S.getPlayerState()===0&&f.data.secondaryNavigationEndpoint)var n=f.data.secondaryNavigationEndpoint;else{n=
Object.assign({},d.endpoint);var u=_.P(n.commandMetadata,_.B0);u&&(S=Math.floor(S.getCurrentTime()),u.url=_.LQ(u.url,{t:S}),!_.M("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(u=_.P(n,_.qu)))&&(u.startTimeSeconds=S)}_.Zp(f.hostElement,"yt-navigate",{endpoint:n})}))}};
_.x$.Object.defineProperties(Tn.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H,D,S;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(K=this.data)==null?void 0:(d=K.thumbnail)==null?void 0:d.sampledThumbnailColor,vibrantColorPalette:(f=this.data)==null?void 0:(H=f.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(D=this.data)==null?void 0:(S=D.thumbnail)==null?void 0:S.darkColorPalette,experimentEnabled:this.collections}}}});
Tn.prototype.onYtNavigate=Tn.prototype.onYtNavigate;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.SY.YtEndpointBehavior),_.B("design:type",Object)],Tn.prototype,"ytEndpointBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],Tn.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.l(_.AV),_.B("design:type",Object)],Tn.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Tn.prototype,"ytdReduxBehavior",void 0);_.x([_.A({selector:_.Ek}),_.B("design:type",Object)],Tn.prototype,"isGridViewEnabled",void 0);_.x([_.W("isGridViewEnabled"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Tn.prototype,"watchFeedBigThumbs",null);
_.x([_.W("isGridViewEnabled"),_.A({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],Tn.prototype,"thumbnailWidth",null);_.x([_.A(),_.B("design:type",Object)],Tn.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Tn.prototype,"collections",void 0);_.x([_.W("data","collections"),_.B("design:type",Object),_.B("design:paramtypes",[])],Tn.prototype,"collectionStack",null);
_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Tn.prototype,"onYtNavigate",null);Tn=_.x([_.Q({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Tn);
_.C(Tn,"ytd-compact-radio-renderer",function(){if(PDs!==void 0)return PDs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return PDs=K},{mode:1});var gtv;var rD=function(){return _.q.apply(this,arguments)||this};
_.O(rD,_.q);rD.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
rD.prototype.computeRendererStyle=function(K){return K.style?K.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.x([_.A(),_.B("design:type",Object)],rD.prototype,"data",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],rD.prototype,"rendererBehavior",void 0);_.x([_.A({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],rD.prototype,"rendererStyle",void 0);
rD=_.x([_.Q({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],rD);
_.C(rD,"ytd-compact-text-promo-renderer",function(){if(gtv!==void 0)return gtv;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return gtv=K},{mode:1});var ObL;var qt=function(){var K=_.q.apply(this,arguments)||this;K.isShortsStyle=!1;return K};
_.O(qt,_.q);_.V=qt.prototype;_.V.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"}}}};
_.V.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Zp(this.hostElement,"yt-disable-lockup-interaction"):_.Zp(this.hostElement,"yt-enable-lockup-interaction"))};
_.V.isMetaBlockEmpty=function(K){return!K||!K.longBylineText&&!K.shortBylineText&&!K.shortViewCountText&&!K.viewCountText};
_.V.computeHasOneLineTitle=function(K){return this.forceOneLineTitle||!(K==null||!K.buttons)};
_.V.computeDisableInteraction=function(){var K;return!((K=this.data)==null?0:K.navigationEndpoint)};
_.V.hasSingularTopStandaloneBadge=function(){var K;return!((K=this.data)==null||!K.topStandaloneBadge)};
_.x$.Object.defineProperties(qt.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("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 K;return this.hasSingularTopStandaloneBadge()?[(K=this.data)==null?void 0:K.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var K;return this.shouldShowTopBadges?((K=this.data)==null?void 0:K.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
qt.prototype.disableInteractionChanged=qt.prototype.disableInteractionChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],qt.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],qt.prototype,"ytdLockupBehavior",void 0);
_.x([_.l(_.ou),_.B("design:type",Object)],qt.prototype,"ytdReduxBehavior",void 0);_.x([_.A({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.B("design:type",Boolean)],qt.prototype,"metaBlockEmpty",void 0);_.x([_.A({selector:_.Ek}),_.B("design:type",Object)],qt.prototype,"isGridViewEnabled",void 0);_.x([_.W("isGridViewEnabled"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],qt.prototype,"watchFeedBigThumbs",null);
_.x([_.W("isGridViewEnabled"),_.A({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],qt.prototype,"thumbnailWidth",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],qt.prototype,"isShortsStyle",void 0);_.x([_.A(),_.B("design:type",Object)],qt.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.B("design:type",Boolean)],qt.prototype,"hasOneLineTitle",void 0);
_.x([_.A(),_.B("design:type",Boolean)],qt.prototype,"hideThumbnail",void 0);_.x([_.A(),_.B("design:type",Boolean)],qt.prototype,"forceOneLineTitle",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.B("design:type",Boolean)],qt.prototype,"disableInteraction",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],qt.prototype,"musicMetadataVideoLockup",void 0);
_.x([_.SP("disableInteraction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qt.prototype,"disableInteractionChanged",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],qt.prototype,"shouldShowTopBadges",null);_.x([_.W("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],qt.prototype,"topBadges",null);
_.x([_.W("shouldShowTopBadges","data"),_.B("design:type",Array),_.B("design:paramtypes",[])],qt.prototype,"inlineMetadataBadges",null);_.x([_.W("shouldShowTopBadges"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],qt.prototype,"shouldShowBadgesBelowMetadata",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],qt.prototype,"compactTitleClass",null);qt=_.x([_.Q({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],qt);
_.C(qt,"ytd-compact-video-renderer",function(){if(ObL!==void 0)return ObL;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ObL=K},{mode:_.p8("kevlar_poly_si_batch_j067")?1:2});var NMt;_.Na("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Qk=function(){return _.q.apply(this,arguments)||this};
_.O(Qk,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Qk.prototype,"data",void 0);Qk=_.x([_.Q({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Qk);
_.C(Qk,"ytd-counterfactual-renderer",function(){if(NMt!==void 0)return NMt;var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return NMt=K},{mode:1});var YHs;var j1=function(){var K=_.q.apply(this,arguments)||this;K.hidden=!1;return K};
_.O(j1,_.q);j1.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.eq().resolve(_.pQ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
j1.prototype.computeHidden=function(K){return!!K};
_.x$.Object.defineProperties(j1.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}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],j1.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.B("design:type",Object)],j1.prototype,"hidden",void 0);_.x([_.W("data.label"),_.B("design:type",String),_.B("design:paramtypes",[])],j1.prototype,"label",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],j1.prototype,"value",null);
j1=_.x([_.Q({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],j1);
_.C(j1,"ytd-dropdown-item-renderer",function(){if(YHs!==void 0)return YHs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return YHs=K},{mode:1});var tkL;var otJ;var C_=function(){return _.q.apply(this,arguments)||this};
_.O(C_,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],C_.prototype,"data",void 0);_.x([_.A({computed:"getSimpleString(data.label)"}),_.B("design:type",String)],C_.prototype,"label",void 0);C_=_.x([_.Q({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],C_);
_.C(C_,"ytd-navigation-dropdown-item-renderer",function(){if(otJ!==void 0)return otJ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return otJ=K},{mode:1});var xa=function(){var K=_.q.apply(this,arguments)||this;K.disabled=!1;K.value="";K.noLabelFloat=!1;K.noUnderline=!1;K.usePrimaryColor=!1;K.hasBackground=!1;K.verticalAlign="top";K.autosize=!1;K.minAutosizeWidth=100;K.autosizeFont="14px Roboto";return K};
_.O(xa,_.q);_.V=xa.prototype;_.V.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"}}}};
_.V.open=function(){this.inputEl.open()};
_.V.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.V.dataChanged=function(){this.reset()};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("value-changed",this.value))};
_.V.stopPropagation=function(K){K.stopPropagation()};
_.V.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var K=this.canvas.getContext("2d");K&&(K.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(K.measureText(this.inputEl.value).width)+24)+"px")}};
_.V.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var K=0,d=this.data.entries.length;K<d;K++){var f=this.data.entries[K],H;for(H in f)if(f.hasOwnProperty(H)){var D=f[H];if("isSelected"in D&&D.isSelected)return"stringValue"in D?D.stringValue||"":"int32Value"in D?D.int32Value||0:0}}return null};
_.V.updateValueFromBinding=function(K){this.value=K.detail.value};
_.x$.Object.defineProperties(xa.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 K=0,d=this.data.entries.length;K<d;K++){var f=this.data.entries[K],H;for(H in f)if(f.hasOwnProperty(H)){var D=f[H];if("isSelected"in D&&D.isSelected&&"label"in D)return this.ytRendererBehavior.getSimpleString(D.label)}}return null}}});
xa.prototype.autoSizeLabel=xa.prototype.autoSizeLabel;xa.prototype.stopPropagation=xa.prototype.stopPropagation;xa.prototype.valueChangedForBinding=xa.prototype.valueChangedForBinding;xa.prototype.dataChanged=xa.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],xa.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],xa.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],xa.prototype,"disabled",void 0);_.x([_.A(),_.B("design:type",Object)],xa.prototype,"value",void 0);_.x([_.A(),_.B("design:type",Object)],xa.prototype,"noLabelFloat",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],xa.prototype,"noUnderline",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],xa.prototype,"theme",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],xa.prototype,"usePrimaryColor",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],xa.prototype,"hasBackground",void 0);_.x([_.A(),_.B("design:type",Object)],xa.prototype,"verticalAlign",void 0);_.x([_.A(),_.B("design:type",Object)],xa.prototype,"autosize",void 0);_.x([_.A(),_.B("design:type",Object)],xa.prototype,"minAutosizeWidth",void 0);_.x([_.A(),_.B("design:type",Object)],xa.prototype,"autosizeFont",void 0);
_.x([_.n8("#entries"),_.B("design:type",Object)],xa.prototype,"entries",void 0);_.x([_.n8("#input"),_.B("design:type",Object)],xa.prototype,"inputEl",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xa.prototype,"dataChanged",null);_.x([_.an("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xa.prototype,"valueChangedForBinding",null);
_.x([_.VV("iron-overlay-opened"),_.VV("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],xa.prototype,"stopPropagation",null);_.x([_.VV("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xa.prototype,"autoSizeLabel",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],xa.prototype,"label",null);
xa=_.x([_.Q({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],xa);
_.C(xa,"ytd-dropdown-renderer",function(){if(tkL!==void 0)return tkL;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return tkL=K},{mode:1});var $Lf;var L_=function(){var K=_.q.apply(this,arguments)||this;K.isConstrainedList=!1;return K};
_.O(L_,_.q);L_.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"}}}};
L_.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
L_.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
L_.prototype.computeViewAllHidden=function(K,d){return K||!d.viewAllEndpoint};
L_.prototype.fillRestIfNoShowMore=L_.prototype.fillRestIfNoShowMore;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kV.YtLazyListBehavior),_.B("design:type",Object)],L_.prototype,"ytLazyListBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],L_.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],L_.prototype,"isConstrainedList",void 0);_.x([_.an("data","canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L_.prototype,"fillRestIfNoShowMore",null);L_=_.x([_.Q({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],L_);
_.C(L_,"ytd-expanded-shelf-contents-renderer",function(){if($Lf!==void 0)return $Lf;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return $Lf=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var Etv;var BO=function(){return _.q.apply(this,arguments)||this};
_.O(BO,_.q);BO.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}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],BO.prototype,"data",void 0);BO=_.x([_.Q({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],BO);
_.C(BO,"ytd-feed-channel-filter-header-renderer",function(){if(Etv!==void 0)return Etv;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Etv=K},{mode:1});var hus;var bb4;var mL8;var JW=function(){return _.q.apply(this,arguments)||this};
_.O(JW,_.q);_.V=JW.prototype;_.V.onClick=function(K){var d,f=(d=this.data)==null?void 0:d.sectionEndpoint;!_.qa(_.qn(K),this.hostElement,["A".toString()])&&f&&_.Zp(this.hostElement,"yt-navigate",{endpoint:f})};
_.V.computeHasSectionEndpoint=function(K){return(K==null?void 0:K.sectionEndpoint)!==void 0};
_.V.computeShowHeaderAsLink=function(K){return(K==null?void 0:K.header)!==void 0&&(K==null?void 0:K.sectionEndpoint)!==void 0};
_.V.computeShowSubheaderAsLink=function(K){return(K==null?void 0:K.subheader)!==void 0&&(K==null?void 0:K.sectionEndpoint)!==void 0&&(K==null?void 0:K.header)===void 0};
_.V.getHeaderAsLinkClass=function(K){var d=[],f;(K==null?0:(f=K.headerIcon)==null?0:f.iconType)&&d.push("header-link-active");return d.join(" ")};
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],JW.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],JW.prototype,"data",void 0);
_.x([_.A({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],JW.prototype,"hasSectionEndpoint",void 0);_.x([_.A({computed:"computeShowHeaderAsLink(data)"}),_.B("design:type",Boolean)],JW.prototype,"showHeaderAsLink",void 0);_.x([_.A({computed:"computeShowSubheaderAsLink(data)"}),_.B("design:type",Boolean)],JW.prototype,"showSubheaderAsLink",void 0);JW=_.x([_.Q({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],JW);
_.C(JW,"ytd-medical-panel-section-renderer",function(){if(mL8!==void 0)return mL8;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return mL8=K},{mode:1});var sr=function(){var K=_.q.apply(this,arguments)||this;K.isExpanded=!1;K.roundedContainer=!0;K.skipRoundingTop=!1;K.toggleExpandableSection=function(){K.isExpanded=!K.isExpanded};
return K};
_.O(sr,_.q);
sr.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]]"}}}}}};
sr.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
sr.prototype.dataChanged=sr.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],sr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],sr.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],sr.prototype,"isExpanded",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],sr.prototype,"roundedContainer",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],sr.prototype,"skipRoundingTop",void 0);_.x([_.A(),_.B("design:type",Object)],sr.prototype,"toggleExpandableSection",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sr.prototype,"dataChanged",null);sr=_.x([_.Q({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],sr);
_.C(sr,"ytd-medical-panel-content-renderer",function(){if(bb4!==void 0)return bb4;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return bb4=K},{mode:1});_.Na("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var ka=function(){var K=_.q.apply(this,arguments)||this;K.roundedContainer=!0;K.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");K.hasTitle=!1;K.linkIcon="OPEN_IN_NEW";K.isDismissed=!1;return K};
_.O(ka,_.q);
ka.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
ka.prototype.computeHasTitle=function(K){return!(K==null||!K.title)};
ka.prototype.onClick=function(K){var d,f=(d=this.data)==null?void 0:d.headerEndpoint;!_.qa(_.qn(K),this.hostElement,["BUTTON".toString()])&&f&&this.ytComponentBehavior.resolveCommand(f)};
_.x$.Object.defineProperties(ka.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 K;return((K=this.data)==null?void 0:K.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:K.disableBottomDivider)||!((d=this.data)==null?0:d.title)}}});
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ka.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],ka.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ka.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ka.prototype,"roundedContainer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ka.prototype,"amsterdamEnabled",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.B("design:type",Object)],ka.prototype,"hasTitle",void 0);
_.x([_.A({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.background"),_.B("design:type",Object),_.B("design:paramtypes",[])],ka.prototype,"background",null);_.x([_.A({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.titleStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],ka.prototype,"titleStyle",null);
_.x([_.A({type:_.M("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.W("data.titleStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],ka.prototype,"showLinkIcon",null);_.x([_.A(),_.B("design:type",String)],ka.prototype,"linkIcon",void 0);_.x([_.A({type:_.M("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ka.prototype,"hideDivider",null);
_.x([_.A({selectorArgs:["data.dismissStateEntityKey"],selector:function(K,d){K=_.DR(K.entities,"dismissState",d);return(K==null?void 0:K.isDismissed)||(K==null?void 0:K.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(K==null?void 0:K.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.B("design:type",Object)],ka.prototype,"isDismissed",void 0);ka=_.x([_.Q({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],ka);
_.C(ka,"ytd-info-panel-container-renderer",function(){if(hus!==void 0)return hus;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return hus=K},{mode:1});var ljH;_.Na("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var wD=function(){var K=_.q.apply(this,arguments)||this;K.modernTypography=_.M("web_modern_typography");return K};
_.O(wD,_.q);wD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
wD.prototype.computeStyle=function(K){return K?K:""};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],wD.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.B("design:type",String)],wD.prototype,"titleStyle",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],wD.prototype,"modernTypography",void 0);wD=_.x([_.Q({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],wD);
_.C(wD,"ytd-item-section-header-renderer",function(){if(ljH!==void 0)return ljH;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ljH=K},{mode:1});var W34;var GVs,Axt=function(){return GVs!==void 0?GVs:GVs=document.createElement("template")};
document.head.appendChild(Axt().content);var TMf;_.Z2=new _.xn("VOTING_ANIMATION_CONTROLLER_TOKEN");var qHL=_.C8(function(K){var d=K.data;var f=_.Co(),H=_.Co();K=_.y(_.cC("VOTE_STATUS_NONE",void 0,"FVF7mc"));var D=K.next().value,S=K.next().value,n=_.yF(GQS,function(){var v;return(v=d())==null?void 0:v.entityKey}),u=_.M("web_enable_voting_animation")||_.M("enable_music_web_cairo_voting_animation");
_.tR(function(){var v;((v=d().initialState)==null?0:v.status)&&S(d().initialState.status)});
var a=function(){var v,g,N=(g=(v=d().initialState)==null?void 0:v.votes)!=null?g:0,h;v=(h=d().initialState)==null?void 0:h.status;return v==="VOTE_STATUS_UPVOTED"?N-1:v==="VOTE_STATUS_DOWNVOTED"?N+1:N},R=function(){return D()==="VOTE_STATUS_UPVOTED"?a()+1:D()==="VOTE_STATUS_DOWNVOTED"?a()-1:a()},F=function(v){var g=v?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
S(g);var N=R(),h=_.eq().resolve(_.Zd(_.Z2)),m=n();m&&(v&&(m==null?0:m.upvoteDefaultButtonOnTap)?_.me(m.upvoteDefaultButtonOnTap,{form:{element:f.value},disableClickTracking:!0}):(m==null?0:m.upvoteToggledButtonOnTap)&&_.me(m.upvoteToggledButtonOnTap,{form:{element:f.value},disableClickTracking:!0}));var T;v=(T=m==null?void 0:m.enableOptimisticReordering)!=null?T:d().enableOptimisticReordering;u&&h&&d().itemId&&v&&rx8(h,d().itemId,N,g)},z=function(v){var g=v?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
S(g);var N=R(),h=_.eq().resolve(_.Zd(_.Z2)),m=n();m&&(v&&(m==null?0:m.downvoteDefaultButtonOnTap)?_.me(m.downvoteDefaultButtonOnTap,{form:{element:H.value},disableClickTracking:!0}):(m==null?0:m.downvoteToggledButtonOnTap)&&_.me(m.downvoteToggledButtonOnTap,{form:{element:H.value},disableClickTracking:!0}));var T;v=(T=m==null?void 0:m.enableOptimisticReordering)!=null?T:d().enableOptimisticReordering;u&&h&&d().itemId&&v&&rx8(h,d().itemId,N,g)};
K={};K=_.SC("ytVotingViewModelVoteCount",(K.ytVotingViewModelVoteCountDisabled=function(){return d().isDisabled},K));
return _.U("voting-view-model",{class:"ytVotingViewModelHost"},_.U("div",{el:f},_.U(_.z1,{data:function(){var v=_.P(d().upvoteButton,_.v9);return{toggleButtonViewModel:Object.assign({},v,{isToggled:D()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(v){return _.U(_.MT,{data:v.data,
onToggle:F})}})),_.U("div",{class:K},function(){var v,g,N;
return D()==="VOTE_STATUS_UPVOTED"?(v=d().initialState)==null?void 0:v.compactVotesUpvoted:D()==="VOTE_STATUS_DOWNVOTED"?(g=d().initialState)==null?void 0:g.compactVotesDownvoted:(N=d().initialState)==null?void 0:N.compactVotes}),_.U("div",{el:H},_.U(_.z1,{data:function(){var v=_.P(d().downvoteButton,_.v9);
return{toggleButtonViewModel:Object.assign({},v,{isToggled:D()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(v){return _.U(_.MT,{data:v.data,
onToggle:z})}})))},"Eb");_.sP(_.C8(function(K){var d=K.data;return _.U("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.U("div",{class:_.SC("ytEngagementBarViewModelEngagementBarWrapper",K.className)},_.U(_.z1,{data:function(){return d().actions}},{votingViewModel:qHL})))},"Fb"),"engagement-bar-view-model",{props:{data:_.rs,
className:_.rs}});var e1=function(){var K=_.q.apply(this,arguments)||this;K.amsterdamPostMvp=_.M("web_amsterdam_post_mvp_playlists");K.cairoCollabPlaylistPostMvp=_.M("web_collab_playlist_thumbnail_size");K.playlistVotingAnimationEnabled=_.M("web_enable_voting_animation");K.downloadProgress=0;K.transferState="TRANSFER_STATE_UNKNOWN";K.downloadState="DOWNLOAD_STATE_UNKNOWN";K.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";K.offlineVideoPolicyExpirationTimestamp=0;return K};
_.O(e1,_.q);_.V=e1.prototype;_.V.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"}}}};
_.V.canReorderChanged=function(){this.persistentDragHandle=_.M("kevlar_playlist_drag_handles")&&this.canReorder};
_.V.onDrag=function(){if(this.thumbnail){var K=_.E(this.thumbnail).querySelector("yt-image");K&&(K.shouldRenderLazy=!1)}};
_.V.onMenuOverlayChanged=function(K,d){this.menuOpened=d};
_.V.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.V.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.V.onContentsTap=function(K){var d,f=(d=this.data)==null?void 0:d.serviceEndpoints;if(f&&f.length===1&&_.P(f[0],ezY)&&!_.qa(_.qn(K),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(f[0]);else{var H;(d=(H=this.data)==null?void 0:H.navigationEndpoint)&&_.M("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Qgs(_.eq().resolve(_.$b),d):(_.SJ().playlistSuggestionsShelfActivation=
!0,_.jgH(_.eq().resolve(_.$b),d)):d&&!_.qa(_.qn(K),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.M("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Zp(this.hostElement,"yt-navigate",{endpoint:d}):this.ytComponentBehavior.resolveCommand(d))}};
_.V.computeStyle=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.V.computeThumbnailWidth=function(K){return K==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.V.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=uvG(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))}};
_.V.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.V.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.V.dataChanged=function(){if(this.data){var K,d,f,H=((K=this.downloadRenderData)==null?void 0:K.badges)&&((d=this.downloadRenderData)==null?void 0:d.badges)!==((f=this.data)==null?void 0:f.badges),D,S,n;K=((D=this.downloadRenderData)==null?void 0:D.thumbnailOverlays)&&((S=this.downloadRenderData)==null?void 0:S.thumbnailOverlays)!==((n=this.data)==null?void 0:n.thumbnailOverlays);(!this.downloadRenderData||H||K)&&this.downloadStateChanged()}};
_.V.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var K,d,f=(K=this.data.menu)==null?void 0:(d=K.menuRenderer)==null?void 0:d.items;if(f)for(K=_.y(f),d=K.next();!d.done;d=K.next())if(d=d.value,f=void 0,_.P((f=d.menuServiceItemRenderer)==null?void 0:f.serviceEndpoint,_.OI)){var H=f=void 0,D=void 0;d=(f=d)==null?void 0:(H=f.menuServiceItemRenderer)==null?void 0:(D=H.serviceEndpoint)==null?void 0:D.playlistEditEndpoint;D=H=void 0;if(f=(H=d)==null?void 0:(D=H.actions)==null?void 0:
D[0])H=void 0,f.setVideoId=(H=this.data)==null?void 0:H.setVideoId;D=H=f=void 0;if(d=(f=d)==null?void 0:(H=f.clientActions)==null?void 0:(D=H[0])==null?void 0:D.playlistRemoveVideosAction)f=void 0,d.setVideoIds=[(f=this.data)==null?void 0:f.setVideoId]}}};
_.x$.Object.defineProperties(e1.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
e1.prototype.setVideoIdChanged=e1.prototype.setVideoIdChanged;e1.prototype.dataChanged=e1.prototype.dataChanged;e1.prototype.downloadStateChanged=e1.prototype.downloadStateChanged;e1.prototype.onMenuOverlayChanged=e1.prototype.onMenuOverlayChanged;e1.prototype.canReorderChanged=e1.prototype.canReorderChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],e1.prototype,"ytdReduxBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],e1.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],e1.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],e1.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],e1.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],e1.prototype,"amsterdamPostMvp",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],e1.prototype,"canReorder",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],e1.prototype,"menuOpened",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],e1.prototype,"handleIsHovered",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],e1.prototype,"persistentDragHandle",void 0);
_.x([_.A(),_.B("design:type",Object)],e1.prototype,"downloadRenderData",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],e1.prototype,"styleType",void 0);_.x([_.A({computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],e1.prototype,"thumbnailWidth",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],e1.prototype,"isDownloads",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],e1.prototype,"cairoCollabPlaylistPostMvp",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],e1.prototype,"playlistVotingAnimationEnabled",void 0);_.x([_.A({selector:EV,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],e1.prototype,"downloadProgress",void 0);_.x([_.A(),_.B("design:type",Number)],e1.prototype,"relativeDateReference",void 0);
_.x([_.A({selector:_.oO,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],e1.prototype,"transferState",void 0);_.x([_.A({selector:Wvz,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],e1.prototype,"downloadState",void 0);_.x([_.A({selector:MAG,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],e1.prototype,"offlinePolicyAction",void 0);_.x([_.A({selector:PqX,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],e1.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.x([_.A({selector:O2B,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],e1.prototype,"entityInfo",void 0);_.x([_.A({selector:_.Yo}),_.B("design:type",Boolean)],e1.prototype,"miniplayerIsActive",void 0);_.x([_.W("data"),_.B("design:type",String),_.B("design:paramtypes",[])],e1.prototype,"playlistVideoId",null);_.x([_.n8("#thumbnail"),_.B("design:type",Object)],e1.prototype,"thumbnail",void 0);
_.x([_.an("canReorder"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e1.prototype,"canReorderChanged",null);_.x([_.VV("yt-menu-overlay-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Boolean]),_.B("design:returntype")],e1.prototype,"onMenuOverlayChanged",null);
_.x([_.an("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e1.prototype,"downloadStateChanged",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e1.prototype,"dataChanged",null);
_.x([_.an("data.setVideoId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e1.prototype,"setVideoIdChanged",null);e1=_.x([_.Q({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],e1);
_.C(e1,"ytd-playlist-video-renderer",function(){if(TMf!==void 0)return TMf;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);K.content.insertBefore(Axt().content.cloneNode(!0),K.content.firstChild);return TMf=K},{mode:1});var CD2;var p_=function(){return _.q.apply(this,arguments)||this};
_.O(p_,_.q);_.x([_.A(),_.B("design:type",Object)],p_.prototype,"data",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],p_.prototype,"rendererBehavior",void 0);p_=_.x([_.Q({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],p_);
_.C(p_,"ytd-premium-browse-footer-renderer",function(){if(CD2!==void 0)return CD2;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return CD2=K},{mode:1});var xLJ;var Kr=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return K};
_.O(Kr,_.q);_.V=Kr.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.handleDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.V.computeHeaderLogoThumbnail=function(K,d){if(K)return d?K.darkLogo:K.lightLogo};
_.V.computeHeaderLogoHeight=function(K,d){var f,H,D;return(K=(f=this.computeHeaderLogoThumbnail(K,d))==null?void 0:(H=f.thumbnails)==null?void 0:(D=H[0])==null?void 0:D.height)&&K%31===0?"31":"24"};
_.V.computeHeaderLogoMarginBottom=function(K,d){return this.computeHeaderLogoHeight(K,d)==="24"?"0":"-7"};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Kr.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Kr.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],Kr.prototype,"isDarkTheme",void 0);_.x([_.A({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.B("design:type",Object)],Kr.prototype,"themeLogo",void 0);
_.x([_.A({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.B("design:type",String)],Kr.prototype,"logoHeight",void 0);_.x([_.A({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.B("design:type",String)],Kr.prototype,"logoMarginBottom",void 0);Kr=_.x([_.Q({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Kr);
_.C(Kr,"ytd-primetime-promo-header-renderer",function(){if(xLJ!==void 0)return xLJ;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return xLJ=K},{mode:1});var L39;var Jxk=_.C8(function(K){var d=_.cp(function(D){var S;(S=K.onClick)==null||S.call(K,D)}),f={},H={};
return _.U("yt-shelf-header-layout",{class:_.SC("shelf-header-layout-wiz",(f["shelf-header-layout-wiz--disable-horizontal-padding"]=K.disableHorizontalPadding,f["shelf-header-layout-wiz--disable-vertical-padding"]=K.disableVerticalPadding,f["shelf-header-layout-wiz--responsive"]=K.useResponsiveLayout,f["shelf-header-layout-wiz--narrow"]=function(){var D,S;return((D=K.useResponsiveLayout)==null?void 0:D.call(K))&&((S=K.forceSmallLayout)==null?void 0:S.call(K))},f["shelf-header-layout-wiz--is-overlay"]=
K.isOverlay,f["shelf-header-layout-wiz--tappable"]=!!K.onClick,f)),
"on:click":d,tabindex:K.onClick?0:void 0},_.U(_.X,{cond:K.leadingIcon,then:function(D){return _.U("div",{class:"shelf-header-layout-wiz__leading-icon"},_.U(_.U5,{icon:D}))},
else:function(){return _.U(_.X,{cond:K.hasLeadingImage,then:function(){var D,S={};return _.U("div",{class:_.SC("shelf-header-layout-wiz__leading-image",(S["shelf-header-layout-wiz__leading-image--circular-image"]=K.circularImage,S))},(D=K.leadingImage)==null?void 0:D.call(K))}})}}),_.U("div",{class:"shelf-header-layout-wiz__label-container"},_.U(_.X,{cond:K.hasSuperlabel,
then:function(){var D;return _.U("div",{class:"shelf-header-layout-wiz__superlabel"},(D=K.superlabel)==null?void 0:D.call(K))}}),_.U("div",{class:"shelf-header-layout-wiz__title-row"},_.U(BM4,{text:K.title,
className:_.SC("shelf-header-layout-wiz__title",(H["shelf-header-layout-wiz__title--small-title"]=K.forceSmallLayout,H)),tagLevel:K.tagLevel}),_.U(_.X,{cond:K.hasDetail,then:function(){var D;return _.U("div",{class:"shelf-header-layout-wiz__detail"},(D=K.detail)==null?void 0:D.call(K))}})),_.U(_.X,{cond:K.hasSublabel,
then:function(){var D;return _.U("div",{class:"shelf-header-layout-wiz__sublabel"},(D=K.sublabel)==null?void 0:D.call(K))}})),_.U(_.X,{cond:K.hasTrailingActions,
then:function(){var D;return _.U("div",{class:"shelf-header-layout-wiz__trailing-actions"},(D=K.trailingActions)==null?void 0:D.call(K))}}))},"Gb");
Jxk.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var BM4=_.C8(function(K){var d=K.text;var f=K.className;var H=K.tagLevel;return _.U(_.gF,null,_.U(_.Mk,{when:function(){return(H==null?void 0:H())===0}},function(){return _.U("h2",{class:f},d())}),_.U(_.Mk,{when:function(){return(H==null?void 0:H())===1}},function(){return _.U("h3",{class:f},d())}),_.U(_.Mk,{when:function(){return(H==null?void 0:H())===2}},function(){return _.U("h4",{class:f},d())}),_.U(_.P_,null,function(){return _.U("h2",{class:f},d())}))},"Hb");var wq9,sgs,kVH;_.d6=_.C8(function(K){var d=K.data;return _.U("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.Im({"background-color":function(){return ACp(d().backgroundColor)?_.hG(ACp(d().backgroundColor)):void 0}})},_.U(Jxk,{hasDetail:!1,
title:function(){return _.U(_.ji,{text:function(){return d().headline}})},
hasTitle:!0,sublabel:function(){return _.U(sgs,{data:d})},
hasSublabel:function(){return!!d().sublabel||!!d().bottomBadge},
superlabel:function(){return _.U(kVH,{data:d})},
hasSuperlabel:function(){return!!d().superlabel||!!d().topBadge},
leadingImage:function(){return _.U(wq9,{leadingAccessory:function(){return d().leadingAccessory}})},
hasLeadingImage:function(){return!!d().leadingAccessory},
trailingActions:function(){return _.U(_.z1,{data:function(){return d().trailingActions}},{flexibleActionsViewModel:OO})},
hasTrailingActions:function(){return!!d().trailingActions},
disableHorizontalPadding:K.disableHorizontalPadding,disableVerticalPadding:K.disableVerticalPadding,forceSmallLayout:K.forceSmallLayout,useResponsiveLayout:K.useResponsiveLayout,isOverlay:K.isOverlay,onClick:function(f){if(_.lX(d().rendererContext)){var H=_.mR(d().rendererContext);H&&_.EP(H,{form:{element:f.target,event:f}})}}}))},"Ib");
wq9=_.C8(function(K){var d=K.leadingAccessory;return _.U(_.dF,null,_.U(_.X,{cond:function(){var f;return(f=d().image)!=null?f:_.QF(d().themedImage)},
then:function(f){return _.U(_.jV,{data:f,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.U(_.X,{cond:function(){return _.P(d().avatar,_.G1)},
then:function(f){return _.U(_.Pz,{data:f})}}))},"Jb");
sgs=_.C8(function(K){var d=K.data;return _.U(_.dF,null,_.U(_.X,{cond:function(){return _.P(d().bottomBadge,E5t)},
then:function(f){var H={};return _.U(_.s$,{data:f,class:_.SC((H.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!f()&&!!d().sublabel},H))})}}),_.U(_.X,{cond:function(){return d().sublabel},
then:function(f){return _.U(_.ji,{text:f})}}))},"Kb");
kVH=_.C8(function(K){var d=K.data;return _.U(_.dF,null,_.U(_.X,{cond:function(){return _.P(d().topBadge,E5t)},
then:function(f){var H={};return _.U(_.s$,{data:f,class:_.SC((H.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!f()&&!!d().superlabel},H))})}}),_.U(_.X,{cond:function(){return d().superlabel},
then:function(f){return _.U(_.ji,{text:f})}}))},"Lb");_.sP(_.d6,"yt-section-header-view-model",{props:{data:_.rs,className:_.rs,disableHorizontalPadding:_.rs,disableVerticalPadding:_.rs,forceSmallLayout:_.rs,useResponsiveLayout:_.rs,isOverlay:_.rs}});_.Na("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var fr=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return K};
_.O(fr,_.q);_.V=fr.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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"}}}};
_.V.onDataChange=function(){var K=this;_.jW(this,function(){K.updateItemVisibility()})};
_.V.onUpdateElementsPerRowAction=function(K){K&&this.elementsPerRow!==K&&(this.elementsPerRow=K,this.updateItemVisibility())};
_.V.updateItemVisibility=function(){var K=this;this.data&&this.data.panels&&_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(d,f){d.hidden=f>K.elementsPerRow-1})};
_.V.requestElementsPerRow=function(){_.Zp(this.hostElement,"yt-request-elements-per-row")};
fr.prototype.onDataChange=fr.prototype.onDataChange;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],fr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],fr.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],fr.prototype,"actionHandlerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],fr.prototype,"data",void 0);_.x([_.A({value:3}),_.B("design:type",Number)],fr.prototype,"elementsPerRow",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fr.prototype,"onDataChange",null);fr=_.x([_.Q({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],fr);
_.C(fr,"ytd-primetime-promo-renderer",function(){if(L39!==void 0)return L39;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return L39=K},{mode:1});var ZbH;var HH=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return K};
_.O(HH,_.q);HH.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
HH.prototype.handleButtonRefreshAction=function(K){if(K=_.P(K,Lf9))this.set("data.button",K.membershipButton),this.notifyPath("data.button")};
_.x$.Object.defineProperties(HH.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:(d=K.avatars)==null?void 0:d.slice(0,8))||[]}}});
_.x([_.A(),_.B("design:type",Object)],HH.prototype,"data",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],HH.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],HH.prototype,"rendererBehavior",void 0);_.x([_.W("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],HH.prototype,"avatars",null);
HH=_.x([_.Q({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],HH);
_.C(HH,"ytd-recognition-shelf-renderer",function(){if(ZbH!==void 0)return ZbH;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ZbH=K},{mode:1});var eu8;var pqJ;var D8=function(){var K=_.q.apply(this,arguments)||this;K.modernButtons=_.M("web_modern_buttons");return K};
_.O(D8,_.q);_.V=D8.prototype;
_.V.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]]"}}}}}};
_.V.dataChanged=function(){this.collapsed=!0};
_.V.computeVisibleItems=function(K,d){return K!==void 0&&K.items?d?K.items.slice(0,this.data.collapsedItemCount):K.items:[]};
_.V.computeHideShowMore=function(K,d,f){return K>=d||!f};
_.V.computeHideShowAll=function(K,d,f){return!(K&&d)||f};
_.V.onMoreClick=function(){this.collapsed=!1};
_.x$.Object.defineProperties(D8.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.M("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.fy("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.M("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
D8.prototype.dataChanged=D8.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],D8.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],D8.prototype,"isSearch",void 0);
_.x([_.A({computed:"computeVisibleItems(data,collapsed)"}),_.B("design:type",Array)],D8.prototype,"visibleItems",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],D8.prototype,"collapsed",void 0);_.x([_.A({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.B("design:type",Boolean)],D8.prototype,"hideShowMore",void 0);
_.x([_.A({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.B("design:type",Boolean)],D8.prototype,"hideShowAll",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],D8.prototype,"modernButtons",void 0);_.x([_.W("isSearch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],D8.prototype,"typographyBump",null);
_.x([_.W("isSearch"),_.B("design:type",Object),_.B("design:paramtypes",[])],D8.prototype,"lockupExperiments",null);_.x([_.W("isSearch"),_.B("design:type",String),_.B("design:paramtypes",[])],D8.prototype,"thumbnailWidth",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D8.prototype,"dataChanged",null);D8=_.x([_.Q({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],D8);
_.C(D8,"ytd-vertical-list-renderer",function(){if(pqJ!==void 0)return pqJ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return pqJ=K},{mode:1});var Kp6=_.Am(["#"]);_.Na("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var VN=function(){var K=_.q.apply(this,arguments)||this;K.isConstrainedList=!1;K.modernTypography=_.M("web_modern_typography");return K};
_.O(VN,_.q);_.V=VN.prototype;
_.V.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"}}}};
_.V.computeThumbnailStyle=function(K){return K||""};
_.V.computePlaceAnnotationUnderTitle=function(){var K;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((K=this.data)==null?void 0:K.thumbnailStyle)||"")};
_.V.computeHrefWithDefault=function(K){return this.ytComponentBehavior.computeHref_(K)||_.g5(Kp6)};
_.V.computeIsPromoShelf=function(K){var d;return(K=K==null?void 0:(d=K[0])==null?void 0:d.metadataBadgeRenderer)?K.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.V.computePlaceBadgeBesideTitle=function(K){var d;return(K==null?0:(d=K[0])==null?0:d.metadataBadgeRenderer)?!this.computeIsPromoShelf(K):!1};
_.V.computeMenuIcon=function(K){return this.computeIsPromoShelf(K)?"yt-icons:more_vert":"yt-icons:more"};
_.V.onDataChange=function(){var K,d;((K=this.data)==null?0:(d=K.content)==null?0:d.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.V.onLockupRequested=function(K){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&K.detail&&K.detail.videoIds){for(var d=this.data.content.gridRenderer.items,f=new Set,H=_.y(K.detail.videoIds),D=H.next();!D.done;D=H.next())f.add(D.value);K.detail.returnValue=d.filter(function(S){return S.gridVideoRenderer&&S.gridVideoRenderer.videoId&&f.has(S.gridVideoRenderer.videoId)}).map(function(S){return S.gridVideoRenderer})}};
_.V.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
VN.prototype.onLockupRequested=VN.prototype.onLockupRequested;VN.prototype.onDataChange=VN.prototype.onDataChange;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],VN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],VN.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],VN.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.Mg),_.B("design:type",Object)],VN.prototype,"ironResizableBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],VN.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],VN.prototype,"isSearch",void 0);_.x([_.A(),_.B("design:type",Object)],VN.prototype,"isConstrainedList",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("kevlar_fluid_dismiss")}}),
_.B("design:type",Boolean)],VN.prototype,"enableFluidDismiss",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.B("design:type",String)],VN.prototype,"thumbnailStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],VN.prototype,"modernTypography",void 0);_.x([_.A({computed:"computeMenuIcon(data.badges)"}),_.B("design:type",String)],VN.prototype,"menuIcon",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VN.prototype,"onDataChange",null);_.x([_.VV("yt-lockup-requested"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],VN.prototype,"onLockupRequested",null);VN=_.x([_.Q({is:"ytd-shelf-renderer",disableElementRegistration:!0})],VN);
_.C(VN,"ytd-shelf-renderer",function(){if(eu8!==void 0)return eu8;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return eu8=K},{mode:1});var dwJ;var S0=function(){return _.q.apply(this,arguments)||this};
_.O(S0,_.q);S0.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.x$.Object.defineProperties(S0.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],S0.prototype,"data",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],S0.prototype,"isPlaylist",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],S0.prototype,"isClipList",void 0);
_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],S0.prototype,"isPlaylistPageWithFilters",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],S0.prototype,"hasTitle",null);_.x([_.A(),_.W("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.B("design:type",Object),_.B("design:paramtypes",[])],S0.prototype,"isRightAligned",null);
S0=_.x([_.Q({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],S0);
_.C(S0,"ytd-sort-filter-header-renderer",function(){if(dwJ!==void 0)return dwJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return dwJ=K},{mode:1});var f1N;var yN=function(){return _.q.apply(this,arguments)||this};
_.O(yN,_.q);
yN.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]]"}}}}}};
yN.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.x$.Object.defineProperties(yN.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.M("enable_creator_details_shelf_m2")){var K=[],d;((d=this.data)==null?0:d.creatorVideosButton)&&K.push(this.data.creatorVideosButton);var f;((f=this.data)==null?0:f.creatorAboutButton)&&K.push(this.data.creatorAboutButton);d=_.y(this.data.creatorCustomUrlButtons||[]);for(f=d.next();!f.done;f=d.next())K.push(f.value);return K}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.M("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.wa.YtdHorizontalListBehavior),_.B("design:type",Object)],yN.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],yN.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],yN.prototype,"engagementPanel",void 0);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],yN.prototype,"creatorCustomUrlButtons",null);_.x([_.A({reflectToAttribute:!0}),_.W("data","creatorCustomUrlButtons"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yN.prototype,"showCreatorCustomUrlButtons",null);_.x([_.W("showCreatorCustomUrlButtons"),_.B("design:type",Number),_.B("design:paramtypes",[])],yN.prototype,"channelAvatarSize",null);
yN=_.x([_.Q({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],yN);
_.C(yN,"ytd-video-description-infocards-section-renderer",function(){if(f1N!==void 0)return f1N;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return f1N=K},{mode:_.p8("kevlar_poly_si_batch_j067")?1:2});var HHk;var nr=function(){return _.q.apply(this,arguments)||this};
_.O(nr,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],nr.prototype,"data",void 0);_.x([_.A({computed:"computeIcon_(data.infoIcon)"}),_.B("design:type",Object)],nr.prototype,"infoIcon",void 0);nr=_.x([_.Q({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],nr);
_.C(nr,"ytd-eom-settings-disclaimer-renderer",function(){if(HHk!==void 0)return HHk;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return HHk=K},{mode:1});var Dwt;var i6=function(){return _.q.apply(this,arguments)||this};
_.O(i6,_.q);_.x$.Object.defineProperties(i6.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.suppressPaddingDisclaimer)}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],i6.prototype,"componentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],i6.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],i6.prototype,"suppressPaddingDisclaimer",null);i6=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],i6);
_.C(i6,"ytd-product-list-header-renderer",function(){if(Dwt!==void 0)return Dwt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Dwt=K},{mode:1});var V96;var cH=function(){return _.q.apply(this,arguments)||this};
_.O(cH,_.q);cH.prototype.computeThumbnailStyle=function(K){if(K&&(K=_.E1(K)))return"background-color:"+K+";"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cH.prototype,"rendererBehaviors",void 0);_.x([_.A(),_.B("design:type",Object)],cH.prototype,"data",void 0);cH=_.x([_.Q({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],cH);
_.C(cH,"ytd-hashtag-tile-renderer",function(){if(V96!==void 0)return V96;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return V96=K},{mode:1});var Su9;var u6=function(){return _.q.apply(this,arguments)||this};
_.O(u6,_.q);u6.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}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],u6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],u6.prototype,"data",void 0);u6=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],u6);
_.C(u6,"ytd-sponsorships-alert-renderer",function(){if(Su9!==void 0)return Su9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Su9=K},{mode:1});var y8s;var aD=function(){return _.q.apply(this,arguments)||this};
_.O(aD,_.q);aD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.x$.Object.defineProperties(aD.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.x([_.l(_.EL),_.B("design:type",Object)],aD.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],aD.prototype,"ytdLockupBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],aD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);_.x([_.A({selector:_.Ek}),_.B("design:type",Object)],aD.prototype,"isGridViewEnabled",void 0);
_.x([_.W("isGridViewEnabled"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],aD.prototype,"watchFeedBigThumbs",null);_.x([_.W("isGridViewEnabled"),_.A({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],aD.prototype,"thumbnailWidth",null);_.x([_.A(),_.B("design:type",Object)],aD.prototype,"data",void 0);aD=_.x([_.Q({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],aD);
_.C(aD,"ytd-compact-movie-renderer",function(){if(y8s!==void 0)return y8s;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return y8s=K},{mode:1});var nN8;var iH6;var c8N=_.mD("HTML_DIR")==="rtl",ID=function(){var K=_.q.apply(this,arguments)||this;K.engagementPanel=!1;K.maxLines=2;K.expandButtonOffset=0;K.showExpandButton=!1;K.isTruncated=!1;K.isExpanded=!1;K.currentSnippetType=2;K.alwaysShowExpandButton=!1;K.JSC$14261_lastWidth=NaN;K.observer=null;K.left=0;K.right=0;K.mid=0;K.longestSnippetLength=0;K.isFinalSnippet=!1;K.isFirstMutation=!1;K.isResetMutation=!1;K.OVERFLOW_THRESHOLD=5;return K};
_.O(ID,_.q);_.V=ID.prototype;_.V.onClick=function(K){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.qa(_.qn(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;if((d=window.getSelection())==null||!d.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.V.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.V.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.V.updateTextOnSnippetTypeChange=function(){_.M("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.V.setUpBinarySearch=function(K){K=K*this.maxLines/8;this.left=0;var d,f;this.right=Math.min(K*2,(f=(d=this.simpleText)==null?void 0:d.length)!=null?f:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.V.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.V.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.h3(new _.X4("AttributedSnippet is empty when the description is not empty",this.text))};
_.V.mutationCallback=function(){if(this.observer!=null){var K=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var d=Math.floor(K*this.maxLines/8);this.setSnippetText(this.text,d);d!==0||this.attributedTextIsEmpty()||_.h3(new _.X4("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;K=K*this.maxLines/8;this.left=0;var f;this.right=Math.min(K*2,(f=(d=this.simpleText)==null?void 0:d.length)!=null?f: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)}}};
_.V.mutationObserve=function(K){var d=this;this.observer||(this.observer=new MutationObserver(function(){d.mutationCallback()}));
this.observer.observe(K,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.V.attached=function(){var K=this;_.jW(this,function(){K.resize()})};
_.V.isExpandedChanged=function(){_.Zp(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.V.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)};
_.V.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var K="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((c8N?"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",K);this.snippetContainer.style.setProperty("mask-image",
K)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(c8N?"right":"left",this.expandButtonOffset+"px")};
_.V.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.V.setSnippetText=function(K,d){K||(K={});if(_.TG(K)){var f=qrY(K,d);f.attachmentRuns||f.commandRuns||f.decorationRuns||f.styleRuns||f.alignment||f.lineBreakMode?this.attributedSnippetTextEl?(_.M("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=qrY(K,d),this.attributedSnippetTextEl.headerRuns=rW5(d,this.headerRuns)):this.attributedSnippetText={data:qrY(K,d),headerRuns:rW5(d,this.headerRuns)},this.currentSnippetType=0):_.h3(new _.X4("Tried to set snippet text when HTML element was null",
K)):(this.plainSnippetText.textContent=Wv(K.content||"",d),this.currentSnippetType=2)}else{a:{f=TnJ(K,d);if(f.runs){f=_.y(f.runs);for(var H=f.next();!H.done;H=f.next())if(H=H.value,H.bold||H.deemphasize||H.italics||H.strikethrough||H.textColor||H.navigationEndpoint||_.P(H,YA)){f=!0;break a}}f=!1}f?this.formattedSnippetText?(this.formattedSnippetText.text=TnJ(K,d),this.currentSnippetType=1):_.h3(new _.X4("Tried to set snippet text when HTML element was null",K)):(this.plainSnippetText.textContent=
Wv(_.qQ(K),d),this.currentSnippetType=2)}};
_.V.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.V.attributedTextIsEmpty=function(){var K=this.text;if(!_.TG(K))return!0;var d;return((d=K.content)==null?void 0:d.length)===0?!0:!1};
_.V.resize=function(K){if(this.snippetText){if(K===void 0?0:K)this.JSC$14261_lastWidth=NaN;var d=this.hostElement.offsetWidth;if(d!==this.JSC$14261_lastWidth&&!this.isExpanded)if(this.JSC$14261_lastWidth=d,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;K=0;var f,H;d=Math.min(d*this.maxLines/8*2,(H=(f=this.simpleText)==null?void 0:f.length)!=null?H:0)-1;for(f=0;K<=d;)H=Math.floor(K+(d-K)/2),this.setSnippetText(this.text,H),this.isOverflowing()?d=H-1:(K=H+1,f=H);this.setSnippetText(this.text,f);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.V.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.V.onExpandClick=function(){var K=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.M("inline_expander_reset_focus_killswitch")||_.jW(this,function(){var d;((d=_.eq().resolve(_.Zd(_.eb)))==null?0:d.isKeyBoardInUse())&&_.LA(K.hostElement)});
_.Zp(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.V.onCollapseClick=function(){this.collapse();_.Zp(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.V.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.V.computeExpandButtonOffset=function(){var K=this.expandSizer;return K?c8N?K.offsetParent?K.offsetParent.offsetWidth-K.offsetWidth-K.offsetLeft:0:K.offsetLeft:0};
_.x$.Object.defineProperties(ID.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.TG(this.text)?this.text.content||"":_.qQ(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 _.TG(this.text)?!0:this.text&&_.M("web_replace_formatted_with_attributed_string")&&yWG(this.text)?(this.text=_.Nd(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}}});
ID.prototype.onTextChanged=ID.prototype.onTextChanged;ID.prototype.updateMaskAndExpandButtonOffset=ID.prototype.updateMaskAndExpandButtonOffset;ID.prototype.updateSnippetContainerMaxHeight=ID.prototype.updateSnippetContainerMaxHeight;ID.prototype.isExpandedChanged=ID.prototype.isExpandedChanged;ID.prototype.updateTextOnSnippetTypeChange=ID.prototype.updateTextOnSnippetTypeChange;ID.prototype.updateIsFormattedExpanded=ID.prototype.updateIsFormattedExpanded;ID.prototype.updateIsAttributedExpanded=ID.prototype.updateIsAttributedExpanded;
ID.prototype.onClick=ID.prototype.onClick;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ID.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ID.prototype,"text",void 0);_.x([_.A(),_.B("design:type",Array)],ID.prototype,"headerRuns",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ID.prototype,"engagementPanel",void 0);_.x([_.A(),_.B("design:type",Object)],ID.prototype,"maxLines",void 0);
_.x([_.A(),_.B("design:type",String)],ID.prototype,"expandLabel",void 0);_.x([_.A(),_.B("design:type",String)],ID.prototype,"collapseLabel",void 0);_.x([_.A(),_.B("design:type",Object)],ID.prototype,"expandCommand",void 0);_.x([_.A(),_.B("design:type",Object)],ID.prototype,"expandButtonOffset",void 0);_.x([_.W("text"),_.B("design:type",String),_.B("design:paramtypes",[])],ID.prototype,"simpleText",null);
_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ID.prototype,"onClick",null);_.x([_.W("text","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],ID.prototype,"expandedText",null);_.x([_.W("headerRuns","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],ID.prototype,"expandedHeaderRuns",null);
_.x([_.W("text"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ID.prototype,"hasAttributedStringText",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ID.prototype,"showExpandButton",void 0);_.x([_.W("collapseLabel","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],ID.prototype,"showCollapseButton",null);_.x([_.A(),_.B("design:type",Object)],ID.prototype,"isTruncated",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ID.prototype,"isExpanded",void 0);_.x([_.A(),_.B("design:type",Boolean)],ID.prototype,"isAttributedExpanded",void 0);_.x([_.SP("isExpanded","hasAttributedStringText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ID.prototype,"updateIsAttributedExpanded",null);_.x([_.A(),_.B("design:type",Boolean)],ID.prototype,"isFormattedExpanded",void 0);
_.x([_.SP("isExpanded","hasAttributedStringText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ID.prototype,"updateIsFormattedExpanded",null);_.x([_.A(),_.B("design:type",Number)],ID.prototype,"currentSnippetType",void 0);_.x([_.W("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],ID.prototype,"useAttributedSnippet",null);
_.x([_.W("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],ID.prototype,"useFormattedSnippet",null);_.x([_.W("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],ID.prototype,"usePlainSnippet",null);_.x([_.A(),_.B("design:type",Object)],ID.prototype,"alwaysShowExpandButton",void 0);_.x([_.SP("currentSnippetType"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ID.prototype,"updateTextOnSnippetTypeChange",null);
_.x([_.A(),_.B("design:type",Object)],ID.prototype,"attributedSnippetText",void 0);_.x([_.n8("#snippet"),_.B("design:type",HTMLElement)],ID.prototype,"snippetContainer",void 0);_.x([_.n8("#snippet-text"),_.B("design:type",HTMLElement)],ID.prototype,"snippetText",void 0);_.x([_.n8("#plain-snippet-text"),_.B("design:type",HTMLElement)],ID.prototype,"plainSnippetText",void 0);_.x([_.n8("#formatted-snippet-text"),_.B("design:type",Object)],ID.prototype,"formattedSnippetText",void 0);
_.x([_.n8("#attributed-snippet-text"),_.B("design:type",Object)],ID.prototype,"attributedSnippetTextEl",void 0);_.x([_.n8("#expand"),_.B("design:type",HTMLElement)],ID.prototype,"expandButton",void 0);_.x([_.n8("#expand-sizer"),_.B("design:type",HTMLElement)],ID.prototype,"expandSizer",void 0);_.x([_.an("isExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ID.prototype,"isExpandedChanged",null);
_.x([_.SP("isExpanded","maxLines"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ID.prototype,"updateSnippetContainerMaxHeight",null);_.x([_.SP("isTruncated","showExpandButton","expandButtonOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ID.prototype,"updateMaskAndExpandButtonOffset",null);
_.x([_.an("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ID.prototype,"onTextChanged",null);ID=_.x([_.Q({is:"ytd-text-inline-expander",disableElementRegistration:!0})],ID);
_.C(ID,"ytd-text-inline-expander",function(){if(iH6===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);iH6=K}K=iH6;return K},{mode:2});var Up=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return K};
_.O(Up,_.q);Up.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Up.prototype.handleUpdateDescriptionAction=function(K){if(K=_.P(K,_.p3B))if(K.attributedDescription)this.set("data.attributedDescriptionBodyText",K.attributedDescription);else if(K.description){var d;((d=this.data)==null?0:d.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Nd(K.description)):this.set("data.descriptionBodyText",K.description)}};
_.x$.Object.defineProperties(Up.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var K,d;return!((K=this.data)==null||!K.attributedDescriptionBodyText)||!((d=this.data)==null||!d.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null?0:K.collapsedLineCount){var d;return(d=this.data)==null?void 0:d.collapsedLineCount}K=_.di("web_watch_description_collapsed_default_lines",12);if(_.M("ww_desc_line_page_size_ks"))return K;d=Math.round(_.aM().height*_.di("web_watch_description_screen_height_percentage",.5)/20);return Math.max(d,K)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return(f=(K=this.data)==null?void 0:K.descriptionBodyText)!=null?f:(d=this.data)==null?void 0:d.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.sourceAttributions}}});
Up.prototype.panelContentVisibleChanged=Up.prototype.panelContentVisibleChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Up.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Up.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Up.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Boolean)],Up.prototype,"panelContentVisible",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Up.prototype,"engagementPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Up.prototype,"shortsPanel",void 0);_.x([_.n8("#inline-expander"),_.B("design:type",Object)],Up.prototype,"inlineExpander",void 0);
_.x([_.SP("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Up.prototype,"panelContentVisibleChanged",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Up.prototype,"hasDescriptionText",null);_.x([_.W("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],Up.prototype,"collapsedLines",null);
_.x([_.W("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.B("design:type",Object),_.B("design:paramtypes",[])],Up.prototype,"descriptionText",null);_.x([_.W("data","data.headerRuns"),_.B("design:type",Object),_.B("design:paramtypes",[])],Up.prototype,"headerRuns",null);_.x([_.W("data","data.sourceAttributions"),_.B("design:type",Object),_.B("design:paramtypes",[])],Up.prototype,"sourceAttributions",null);
Up=_.x([_.Q({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Up);
_.C(Up,"ytd-expandable-video-description-body-renderer",function(){if(nN8!==void 0)return nN8;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return nN8=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var uF8;var a1t=_.C8(function(K){var d=K.data;return _.U("factoid-renderer",{class:"ytwFactoidRendererHost"},_.U("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return d().accessibilityText}},_.U("span",{class:"ytwFactoidRendererValue"},_.U(_.ji,{text:function(){return d().value}})),_.U("span",{class:"ytwFactoidRendererLabel"},_.U(_.ji,{text:function(){return d().label}}))))},"Mb");_.sP(a1t,"factoid-renderer",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=K.data;return _.U("upload-time-factoid-renderer",null,_.U(_.z1,{data:function(){return d().factoid}},{factoidRenderer:a1t}))},"Nb"),"upload-time-factoid-renderer",{props:{data:_.JJ}});_.sP(_.C8(function(K){var d=K.data;return _.U("view-count-factoid-renderer",null,_.U(_.z1,{data:function(){return d().factoid}},{factoidRenderer:a1t}))},"Ob"),"view-count-factoid-renderer",{props:{data:_.JJ}});var RD=function(){var K=_.q.apply(this,arguments)||this;K.shortsPanel=!1;K.engagementPanel=!1;K.watchWhileSdp=_.M("shorts_desktop_watch_while_sdp");return K};
_.O(RD,_.q);RD.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"}}}}};
_.x$.Object.defineProperties(RD.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var K;return(K=this.data)==null?void 0:K.channel}}});
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],RD.prototype,"componentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],RD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],RD.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],RD.prototype,"shortsPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],RD.prototype,"engagementPanel",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],RD.prototype,"watchWhileSdp",void 0);_.x([_.W("shortsPanel","engagementPanel","data.channel"),_.B("design:type",Object),_.B("design:paramtypes",[])],RD.prototype,"showChannelInfo",null);RD=_.x([_.Q({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],RD);
_.C(RD,"ytd-video-description-header-renderer",function(){if(uF8!==void 0)return uF8;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return uF8=K},{mode:1});var I16;var Fk=function(){return _.q.apply(this,arguments)||this};
_.O(Fk,_.q);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Fk.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fk.prototype,"noPadding",void 0);_.x([_.A(),_.B("design:type",Object)],Fk.prototype,"data",void 0);Fk=_.x([_.Q({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Fk);
_.C(Fk,"ytd-list-item-view-model",function(){if(I16!==void 0)return I16;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return I16=K},{mode:1});var Uwk;var RhB;var FpH;var zh6;var zO=function(){var K=_.q.apply(this,arguments)||this;K.adaptiveFullWidth=!1;K.modernButtons=_.M("web_modern_buttons");K.buttonOverrides={style:"call-to-action",type:"filled"};K.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return K};
_.O(zO,_.q);zO.prototype.handleSetTimestamp_=function(K){this.data&&this.data.shortUrl&&(_.E(this.hostElement).querySelector("#share-url").value=K.isSet?_.hB(this.data.shortUrl,"t",K.timestamp):this.data.shortUrl)};
zO.prototype.handleSignalActionCopyShareUrl_=function(K,d){(_.M("killswitch_copy_link_target_check")||_.E(this.hostElement).querySelector("#copy-button")===d)&&this.copyUrlToClipboard()};
zO.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.E(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
zO.prototype.computeStyle_=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],zO.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],zO.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.B("design:type",String)],zO.prototype,"rendererStyle",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],zO.prototype,"adaptiveFullWidth",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],zO.prototype,"modernButtons",void 0);_.x([_.A(),_.B("design:type",Object)],zO.prototype,"buttonOverrides",void 0);zO=_.x([_.N7({is:"yt-copy-link-renderer",disableElementRegistration:!0})],zO);
_.C(zO,"yt-copy-link-renderer",function(){if(zh6===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;FpH===void 0&&(FpH=document.createElement("template"));var H=FpH;f.call(d,H.content.cloneNode(!0),K.content.firstChild);zh6=K}K=zh6;return K},{mode:2});_.Na("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Xk=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return K};
_.O(Xk,_.q);_.V=Xk.prototype;_.V.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.V.attached=function(){this.keyboardFocused=!1};
_.V.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var K=_.eq().resolve(_.Zd(_.eb));K&&(this.keyboardFocused=K.isKeyBoardInUse())}};
_.V.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.V.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}};
_.V.onChange_=function(){if(this.data){var K=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;K&&this.ytComponentBehavior.resolveCommand(K);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.V.handleUpdateToggleAction_=function(K){(K=_.P(K,VRv))&&this.data&&K.targetId==this.data.targetId&&this.set("data.toggled",K.toggled)};
_.V.toBoolean_=function(K){return!!K};
_.V.reset=function(){};
_.V.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("data-changed",this.data))};
_.V.updateDataToggledFromBinding=function(K){this.set("data.toggled",K.detail.value)};
Xk.prototype.dataChangedForBinding=Xk.prototype.dataChangedForBinding;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Xk.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Xk.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],Xk.prototype,"data",void 0);_.x([_.A({computed:"computeDescription_(data.*)"}),_.B("design:type",Object)],Xk.prototype,"description_",void 0);_.x([_.A({value:function(){return!!_.eq().resolve(_.Zd(_.eb))&&_.M("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.B("design:type",Boolean)],Xk.prototype,"useKeyboardFocused",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Xk.prototype,"keyboardFocused",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xk.prototype,"dataChangedForBinding",null);Xk=_.x([_.N7({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Xk);
_.C(Xk,"yt-toggle-form-field-renderer",function(){if(RhB===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Uwk===void 0&&(Uwk=document.createElement("template"));var H=Uwk;f.call(d,H.content.cloneNode(!0),K.content.firstChild);RhB=K}K=RhB;return K},{mode:2});var Xls;var vNJ;var vH=function(){var K=_.q.apply(this,arguments)||this;K.isDarkTheme=!1;K.isSearch=!1;K.darkerDarkTheme=_.M("web_darker_dark_theme");K.noTopMargin=_.M("kevlar_watch_no_top_margin");K.maskFade=_.M("web_watch_chips_mask_fade");K.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 K};
_.O(vH,_.q);_.V=vH.prototype;_.V.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}}}}}};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.V.dataChanged=function(){var K=this.getSelectedIndex();if(K>0)this.selected=K;else{this.selected=0;var d,f;(d=this.ytScrollableChipCloudBehavior)==null||(f=d.reset)==null||f.call(d)}};
_.V.getSelectedIndex=function(){var K;if((K=this.data)==null||!K.chips)return-1;K=-1;for(var d,f=0;f<((d=this.data)==null?void 0:d.chips.length);f++){var H=void 0,D=void 0;if((H=this.data)==null?0:(D=H.chips[f].chipCloudChipRenderer)==null?0:D.isSelected){K=f;break}}return K};
_.V.onResize=function(){var K=this.ytScrollableChipCloudBehavior;_.jW(K,K.setContainerWidthDiff);HO(this.ytScrollableChipCloudBehavior)};
_.V.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.V.handleRelatedChipCommand=function(K,d){K=this.JSC$14288_chipsSelector.indexOf(d);K!==-1&&this.JSC$14288_chipsSelector.selectIndex(K)};
_.V.handleChipCloudChipSelectAction=function(K){K=this.JSC$14288_chipsSelector.indexOf(K);K>-1&&this.JSC$14288_chipsSelector.selectIndex(K)};
_.V.handleChipCloudChipDeselectAction=function(){var K=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14288_chipsSelector&&((K==null?0:K.continuationCommand)?_.dN(this.hostElement,[K]):(K==null?0:K.searchEndpoint)?this.ytComponentBehavior.resolveCommand(K):K&&_.fd(this.hostElement,[K],this.hostElement),this.JSC$14288_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.V.updateSelectedFromBinding=function(K){this.selected=K.detail.value};
vH.prototype.onResize=vH.prototype.onResize;vH.prototype.dataChanged=vH.prototype.dataChanged;vH.prototype.isSearchChanged=vH.prototype.isSearchChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],vH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],vH.prototype,"actionHandlerBehavior",void 0);
_.x([_.l(_.Mg),_.B("design:type",Object)],vH.prototype,"ironResizableBehavior",void 0);_.x([_.l(),_.B("design:type",f_)],vH.prototype,"ytScrollableChipCloudBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],vH.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vH.prototype,"data",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],vH.prototype,"selected",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],vH.prototype,"isDarkTheme",void 0);_.x([_.A({value:160}),_.B("design:type",Number)],vH.prototype,"scrollDistance",void 0);_.x([_.A(),_.B("design:type",Object)],vH.prototype,"isSearch",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],vH.prototype,"darkerDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],vH.prototype,"noTopMargin",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],vH.prototype,"maskFade",void 0);_.x([_.n8("#chips"),_.B("design:type",Object)],vH.prototype,"JSC$14288_chipsSelector",void 0);_.x([_.SP("isSearch"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vH.prototype,"isSearchChanged",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vH.prototype,"dataChanged",null);
_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vH.prototype,"onResize",null);vH=_.x([_.N7({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],vH);
_.C(vH,"yt-chip-cloud-renderer",function(){if(vNJ===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Xls===void 0&&(Xls=document.createElement("template"));var H=Xls;f.call(d,H.content.cloneNode(!0),K.content.firstChild);vNJ=K}K=vNJ;return K},{mode:2});var M9k,Pjt=function(){return M9k!==void 0?M9k:M9k=document.createElement("template")};
document.head.appendChild(Pjt().content);var gN2;var OHs=document.head,Nbk=OHs.appendChild,YuH;if(gN2===void 0){var t9H=document.createElement("template");_.Y(t9H,"");t9H.content.insertBefore(Pjt().content.cloneNode(!0),t9H.content.firstChild);gN2=t9H}YuH=gN2;Nbk.call(OHs,YuH.content);var oNs=_.C8(function(K){var d=K.data;return _.U("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.U("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.U("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.U(_.X,{cond:function(){return _.QF(d().image)},
then:function(f){return _.U("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.U(_.jV,{data:f,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.U("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.U(_.ji,{text:function(){return d().title}})),_.U("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.U(_.ji,{text:function(){return d().subtitle}})))),_.U(_.X,{cond:function(){var f;
return(f=d())==null?void 0:f.hasBottomDivider},
then:function(){return _.U("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Pb");var $wv=_.C8(function(K){var d=K.data;return _.U("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.U("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.U(_.z1,{data:function(){var f;return(f=d().offerPlanDetailsItem)!=null?f:[]}},{offerPlanDetailsItemViewModel:function(f){return _.U("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.U(oNs,{data:f.data}))}})),_.U("div",null,_.U(_.X,{cond:function(){return d().hasBottomDivider},
then:function(){return _.U("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.U("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.U("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.U("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.U("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Qb");var EN9=_.C8(function(K){var d=K.data;K=_.y(_.cC(!1,void 0,"SpEGQd"));var f=K.next().value,H=K.next().value,D=_.cp(function(){H(!f());return!1}),S=function(){var n;
return(n=d().offerPlanDetailsContainer)!=null?n:[]};
return _.U("lp-complex-offer-card-details-view-model",null,_.U("div",null,_.U(_.X,{cond:function(){return f()},
then:function(){return _.U("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.U("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":D,"aria-expanded":f},_.U(_.ji,{text:function(){return d().expandedTitle}})),_.U("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.U(_.z1,{data:S},{offerPlanDetailsContainerViewModel:function(n){return _.U("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.U($wv,{data:n.data}))}})),_.U("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.U(_.ji,{text:function(){return d().legalText}})))},
else:function(){return _.U("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":D,"aria-expanded":f},_.U(_.ji,{text:function(){return d().collapsedTitle}}),_.U("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.U(_.U5,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Rb");var hhk=_.C8(function(K){var d=K.data;return _.U("lp-complex-offer-card-option-view-model",null,_.U("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.U(_.X,{cond:function(){return d().topDividerText},
then:function(){return _.U("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.U("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.U("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.U("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.U(_.ji,{text:function(){return d().topDividerText}}))))}}),_.U(_.X,{cond:function(){return d().planPricingPrimary},
then:function(){return _.U("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.U(_.ji,{text:function(){return d().planPricingPrimary}}))}}),_.U(_.X,{cond:function(){return d().planPricingSecondary},
then:function(){return _.U("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.U(_.ji,{text:function(){return d().planPricingSecondary}}))}}),_.U(_.X,{cond:function(){return d().primaryButton},
then:function(){return _.U("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.U(_.z1,{data:function(){return d().primaryButton}},{buttonViewModel:function(f){return _.U(_.oY,{data:f.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Sb");var bH6=_.C8(function(K){var d=K.data;var f=function(){var S;return((S=d())==null?void 0:S.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
K={};var H={},D={};return _.U("ytm-lp-complex-offer-card-view-model",null,_.U("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.U("div",{class:_.SC((K.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=f,K),"ytmLpComplexOfferCardViewModelCardContainer")},_.U(_.X,{cond:function(){var S;return(S=d())==null?void 0:S.bannerText},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.U("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.U(_.ji,{text:function(){return d().bannerText}})))}}),_.U(_.X,{cond:function(){return _.QF(d().logo)},
then:function(S){var n={};return _.U("div",{class:_.SC((n.ytmLpComplexOfferCardViewModelLogoAlignLeft=f,n),"ytmLpComplexOfferCardViewModelLogo")},_.U(_.jV,{data:S,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.U("div",{class:_.SC((H.ytmLpComplexOfferCardViewModelTitleAlignLeft=f,H),"ytmLpComplexOfferCardViewModelTitle")},_.U(_.ji,{text:function(){return d().title}})),_.U(_.X,{cond:function(){var S;
return(S=d())==null?void 0:S.subtitle},
then:function(){var S={};return _.U("div",{class:_.SC((S.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=f,S),"ytmLpComplexOfferCardViewModelSubtitle")},_.U(_.ji,{text:function(){return d().subtitle}}))}}),_.U(_.X,{cond:function(){return d().planPricingPrimary},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.U(_.ji,{text:function(){return d().planPricingPrimary}}))}}),_.U(_.X,{cond:function(){return d().planPricingSecondary},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.U(_.ji,{text:function(){return d().planPricingSecondary}}))}}),_.U(_.X,{cond:function(){return d().purchaseButton},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.U(_.z1,{data:function(){return d().purchaseButton}},{buttonViewModel:function(S){return _.U(_.oY,{data:S.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.U(_.X,{cond:function(){var S;
return(S=d())==null?void 0:S.offerOptions},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.U(_.z1,{data:function(){return d().offerOptions}},{lpComplexOfferCardOptionViewModel:hhk}))}}),_.U("div",{class:_.SC((D.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=f,D),"ytmLpComplexOfferCardViewModelLegalText")},_.U(_.ji,{text:function(){return d().legalText}})),_.U(_.X,{cond:function(){var S;
return(S=d())==null?void 0:S.offerCardDetails},
then:function(){return _.U("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.U(_.z1,{data:function(){return d().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:EN9}))}}))))},"Tb");var mw2=_.C8(function(K){var d=K.data;var f=function(){var n;return((n=d())==null?void 0:n.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
K={};var H={},D={},S={};return _.U("ytm-lp-complex-offer-card-section-view-model",null,_.U("div",{class:_.SC("ytmLpComplexOfferCardSectionViewModelHost")},_.U("div",{class:_.SC((K.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=f,K),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.U("div",{class:_.SC((H.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=f,H),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.U("h2",{class:_.SC((D.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
f,D),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.U(_.ji,{text:function(){return d().title}}))),_.U(_.X,{cond:function(){var n;
return(n=d())==null?void 0:n.subtitle},
then:function(){var n={},u={};return _.U("div",{class:_.SC((n.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=f,n),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.U("div",{class:_.SC((u.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=f,u),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.U(_.ji,{text:function(){return d().subtitle}})))}}),_.U("div",{class:_.SC((S.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=f,S),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.U(_.z1,{data:function(){var n;
return(n=d().offerPlans)!=null?n:[]}},{lpComplexOfferCardViewModel:function(n){return _.U("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.U(bH6,{data:n.data}))}})))))},"Ub");_.MS=P8s.getInstance();var l18=_.C8(function(K){return _.U("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":K.shouldAriaHideContent},_.U("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:K.questionId},_.U(_.ji,{text:K.question})))},"Vb"),Wp9=_.C8(function(K){var d=K.data;
var f=K.themeOverride;K=_.y(_.cC(!1,void 0,"ljTVPd"));var H=K.next().value,D=K.next().value;K=_.cp(function(){D(!H());return!1});
var S=function(){return H()?"EXPAND_LESS":"EXPAND_MORE"},n=("faq-container"+_.Ot(_.MS)).toString(),u="faq-question-and-answers-section-question"+_.Ot(_.MS),a={},R={};
return _.U("faq-entry-view-model-c3",null,_.U("div",{class:_.SC("yt-lp-faq-entry-view-model",(a["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return f==null?void 0:f().useDarkTheme},a))},_.U("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":K,role:"button","aria-expanded":H,"aria-labelledby":u.toString(),"tab-index":"0"},_.U(l18,{question:function(){return d().question},
questionId:u,shouldAriaHideContent:!0}),_.U(_.X,{cond:function(){return H()!==void 0},
then:function(){return _.U("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.U(_.U5,{icon:S,ariaHidden:!0}),_.U("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.U("div",{class:_.SC("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(R["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!H()},R))},_.U("div",{id:n},_.U(_.v_,{each:function(){return d().answers||[]}},function(F){return _.U("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.U(_.ji,{text:F}))})))))},"Wb");
Wp9.idomCompat=!0;var GXt=_.C8(function(K){var d=K.data;var f=K.themeOverride;K={};return _.U("lp-faq-section-view-model-c3",null,_.U("div",{class:_.SC("yt-lp-faq-section-view-model",(K["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},K["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(f==null||!f().useDarkTheme)},K))},_.U("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.U(_.X,{cond:function(){return d().header},
then:function(H){return _.U("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.U(_.ji,{text:H}))}}),_.U("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.U(_.z1,{data:function(){return d().faqs}},{faqEntryViewModel:function(H){return _.U(Wp9,{data:H.data,
themeOverride:f})}})),_.U("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.U(_.v_,{each:function(){return d().footers||[]}},function(H){return _.U(_.ji,{text:H})})),_.U(_.X,{cond:function(){return d().legal},
then:function(H){return _.U("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.U(_.ji,{text:H}))}}))))},"Xb");
GXt.idomCompat=!0;var A8t=_.C8(function(K){var d=K.data;var f=K.themeOverride;_.tR(function(){var n=d().gtmId;n&&_.F8(n,_.mD("GL",""))});
var H={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var n,u,a;return(a=(n=d().logo)==null?void 0:(u=n.accessibilityData)==null?void 0:u.label)!=null?a:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},D=_.eq().resolve(_.Zd(_.AJ)),S=function(){return D&&D()||(f==null?void 0:f().useDarkTheme)};
return _.U("lp-header-section-view-model",null,_.U("div",{class:function(){var n=d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",u=d().marginType==="LP_SECTION_MARGIN_TYPE_TOP",a=f==null?void 0:f().useDarkTheme,R=["lp-header-section-view-model"];n&&R.push("lp-header-section-view-model--ptc-layout-type");u&&R.push("lp-header-section-view-model__lp-header-section-margin");a&&R.push("lp-header-section-view-model--premium-force-dark-mode");return R.join(" ")}},_.U(_.X,{cond:function(){return d().logo},
then:function(){return _.U("div",null,_.U(_.X,{cond:S,then:function(){return _.U(_.X,{cond:function(){var n;return(n=d().logo)==null?void 0:n.imageDark},
then:function(n){return _.U(_.jV,Object.assign({},{data:n},H))}})},
else:function(){return _.U(_.X,{cond:function(){var n;return(n=d().logo)==null?void 0:n.imageLight},
then:function(n){return _.U(_.jV,Object.assign({},{data:n},H))}})}}))}}),_.U(_.X,{cond:function(){return d().title},
then:function(n){return _.U("div",{class:"lp-header-section-view-model__lp-header-title"},_.U(_.ji,{text:n}))}}),_.U("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.U(_.X,{cond:function(){return d().subtitles},
then:function(n){return _.U(_.v_,{each:n},function(u){return _.U("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.U(_.ji,{text:u}))})}})),_.U(_.X,{cond:function(){return d().additionalInfo},
then:function(n){return _.U("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.U(_.ji,{text:n}))}}),_.U("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.U(_.X,{cond:function(){return d().primaryButton},
then:function(n){return _.U("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.U(_.z1,{data:n},{buttonViewModel:_.oY}))}}),_.U(_.X,{cond:function(){return d().secondaryButton},
then:function(n){return _.U("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.U(_.z1,{data:n},{buttonViewModel:_.oY}))}})),_.U(_.X,{cond:function(){return d().otherOffersInfo},
then:function(n){return _.U("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.U(_.ji,{text:n}))}}),_.U("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.U(_.X,{cond:function(){return d().billingInfo},
then:function(n){return _.U(_.v_,{each:n},function(u){return _.U("div",null,_.U(_.ji,{text:u}))})}}))))},"Yb");
A8t.idomCompat=!0;var Tbs=_.C8(function(K){var d=K.data;var f=_.QV(K.themeOverride,{useDarkTheme:!1});K={};K=_.SC("ytm-lp-headline-section-view-model",(K["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return f().useDarkTheme},K));
return _.U("lp-headline-section-view-model",null,_.U("div",{class:K},_.U("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.U(_.ji,{text:function(){return d().title}})),_.U(_.X,{cond:function(){return d().subtitle},
then:function(H){return _.U("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.U(_.ji,{text:H}))}})))},"Zb");var r8J=_.C8(function(K){var d=K.data;var f=K.themeOverride;var H=_.eq().resolve(_.Zd(_.AJ)),D=function(){return H&&H()||(f==null?void 0:f().useDarkTheme)},S=function(){var R,F;
var z=D()?(R=d().textBackgroundImage)==null?void 0:R.imageDark:(F=d().textBackgroundImage)==null?void 0:F.imageLight;return ne5((z==null?void 0:z.sources)||[])},n=function(){var R,F;
return D()?(R=d().featureImage)==null?void 0:R.imageDark:(F=d().featureImage)==null?void 0:F.imageLight},u=function(){return d().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},a=function(){var R,F;
return D()?(R=d().logo)==null?void 0:R.imageDark:(F=d().logo)==null?void 0:F.imageLight};
return _.U("ytm-lp-large-feature-section-view-model",null,_.U("div",{class:function(){var R=d().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",F=d().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",z=(d().index||0)%2===1,v=f==null?void 0:f().useDarkTheme,g=["yt-lp-large-feature-section-view-model"];R?g.push("yt-lp-large-feature-section-view-model--music-feature-type"):F?g.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):z||g.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
v&&g.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return g.join(" ")}},_.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.U(_.X,{cond:n,
then:function(){return _.U(_.jV,{data:function(){return n()},
alt:function(){var R,F,z;return(z=(R=d().featureImage)==null?void 0:(F=R.accessibilityData)==null?void 0:F.label)!=null?z:""},
contentMode:u})}})),_.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var R;return((R=S())==null?0:R.url)?"background-image: url("+_.Xa(S().url)+");":""}},_.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.U(_.X,{cond:a,
then:function(){return _.U(_.jV,{data:function(){return a()},
alt:function(){var R,F,z;return(z=(R=d().logo)==null?void 0:(F=R.accessibilityData)==null?void 0:F.label)!=null?z:""},
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"})}}),_.U(_.X,{cond:function(){return d().eyebrowText},
then:function(){return _.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.U(_.ji,{text:function(){return d().eyebrowText}}))}}),_.U(_.X,{cond:function(){return d().title},
then:function(){return _.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.U(_.ji,{text:function(){return d().title}}))}}),_.U(_.X,{cond:function(){return d().subtitles},
then:function(){return _.U("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.U(_.v_,{each:function(){return d().subtitles||[]}},function(R){return _.U(_.ji,{text:R})}))}})))))},"$b");
r8J.idomCompat=!0;var quv=_.C8(function(K){return _.U("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.U("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.U(_.U5,{icon:function(){var d;return(d=K.data())==null?void 0:d.iconType},
className:function(){var d;return((d=K.data())==null?void 0:d.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.U("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.U(_.ji,{text:function(){var d;
return(d=K.data())==null?void 0:d.text}}))))},"ac");var QxB=_.C8(function(K){K=_.jP(K,{config:void 0,themeOverride:void 0});var d=K.data,f=K.config,H=K.themeOverride;K={};K=_.SC("ytm-lp-offer-card-option-view-model",(K["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var u;return(u=H())==null?void 0:u.useDarkTheme},K));
var D=_.cp(function(){var u,a;(u=f())==null||(a=u.handleRadioButtonClick)==null||a.call(u,d());return!1}),S=function(){var u;
return(u=f())==null?void 0:u.shouldDisplayRadioButton},n=function(){var u;
return(u=d().featureListItems)!=null?u:[]};
return _.U("ytm-lp-offer-card-option-view-model",null,_.U("div",{class:K,"on:click":_.cp(function(){if(S()){var u,a;(u=f())==null||(a=u.handleRadioButtonClick)==null||a.call(u,d())}return!1})},_.U(_.X,{cond:S,
then:function(){return _.U("div",null,_.U("input",{type:"radio","on:click":D,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var u;return!((u=f())==null||!u.isOptionSelected)}}))}}),_.U("div",null,_.U("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.U(_.ji,{text:function(){return d().eyebrowText}})),_.U("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.U(_.ji,{text:function(){return d().title}})),_.U("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.U(_.ji,{text:function(){return d().subtitle}})),_.U(_.X,{cond:function(){return n().length>0},
then:function(){return _.U("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.U(_.z1,{data:n},{lpFeatureListItemViewModel:quv}))}}),_.U("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.U(_.ji,{text:function(){return d().description}})))))},"bc");
QxB.idomCompat=!0;var jxN=_.C8(function(K){var d=K.data;var f=K.themeOverride;K=_.y(_.am(function(){var S,n=(S=d().offerOptions)==null?void 0:S[0];return _.P(n,RKs)||{}}));
var H=K.next().value,D=K.next().value;K={};return _.U("ytm-lp-offer-card-view-model",null,_.U("div",{class:_.SC("ytm-lp-offer-card-view-model",(K["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(f==null||!f().useDarkTheme)},K))},_.U("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.U(_.X,{cond:function(){return d().titleIconType},
then:function(){return _.U("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.U(_.U5,{icon:function(){var S;return((S=d().titleIconType)==null?void 0:S.toString())||""}}))}}),_.U("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.U(_.ji,{text:function(){return d().title}})),_.U(_.z1,{data:function(){return d().titleBadge}},{badgeViewModel:function(S){return _.U("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.U(_.s$,{data:S.data}))}})),_.U("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.U(_.z1,{data:function(){return d().offerOptions}},{lpOfferCardOptionViewModel:function(S){var n=S.data;
return _.U(_.dF,null,_.U("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.U(QxB,{data:n,config:function(){var u;return{shouldDisplayRadioButton:(d().offerOptions||[]).length>1,isOptionSelected:n().id===((u=H())==null?void 0:u.id),handleRadioButtonClick:function(a){return void D(a)}}},
themeOverride:f}))}})),_.U("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.U(_.z1,{data:function(){var S;
return(S=H())==null?void 0:S.purchaseButtonOverride}},{buttonViewModel:_.oY}))))},"cc");
jxN.idomCompat=!0;var Cj8=_.C8(function(K){var d=K.data;var f=K.themeOverride;K={};K=_.SC("ytm-lp-offer-card-section-view-model",(K["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var H;return f==null?void 0:(H=f())==null?void 0:H.useDarkTheme},K));
return _.U("ytm-lp-offer-card-section-view-model",null,_.U("div",{class:K},_.U(_.X,{cond:function(){return d().title!==void 0},
then:function(){return _.U("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.U("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.U(_.ji,{text:function(){return d().title}})),_.U(_.X,{cond:function(){return d().subtitle},
then:function(){return _.U("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.U(_.ji,{text:function(){return d().subtitle}}))}}))}}),_.U("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.U(_.z1,{data:function(){return d().offerCards}},{lpOfferCardViewModel:function(H){return _.U("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.U(jxN,{data:H.data,
themeOverride:f}))}})),_.U(_.X,{cond:function(){return d().footer},
then:function(){return _.U("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.U(_.ji,{text:function(){return d().footer}}))}})))},"dc");var xw8=_.C8(function(K){var d=K.data;return _.U("lp-offer-table-cell-content-view-model",null,_.U("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.U(_.gF,null,_.U(_.Mk,{when:function(){return d().title}},function(){return _.U(_.ji,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return d().title}})}),_.U(_.Mk,{when:function(){return d().subTitle}},function(){return _.U(_.ji,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return d().subTitle}})}),_.U(_.Mk,{when:function(){return d().featureDescription}},function(){return _.U(_.ji,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return d().featureDescription}})}),_.U(_.Mk,{when:function(){return d().description}},function(){return _.U(_.ji,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return d().description}})}),_.U(_.Mk,{when:function(){return d().iconType}},function(){return _.U("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.U(_.U5,{icon:function(){return d().iconType.toString()}}))}),_.U(_.Mk,{when:function(){return d().purchaseButton}},function(){return _.U(_.z1,{data:function(){return d().purchaseButton}},{buttonViewModel:function(f){return _.U("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.U(_.oY,{data:f.data}))}})}),_.U(_.Mk,{when:function(){return d().note}},function(){return _.U(_.ji,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return d().note}})}),_.U(_.Mk,{when:function(){return d().featureDetail}},function(){return _.U(_.ji,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return d().featureDetail}})}),_.U(_.Mk,{when:function(){return d().badge}},function(){return _.U(_.z1,{data:function(){return d().badge}},{badgeViewModel:_.s$})}))))},"ec");
xw8.idomCompat=!0;var Lpv=_.C8(function(K){var d=K.data;return _.U("lp-offer-table-cell-view-model",null,_.U("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(d().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;"}}},_.U(_.z1,{data:function(){return d().contents}},{lpOfferTableCellContentViewModel:xw8})))},
"fc");
Lpv.idomCompat=!0;var BbH=_.C8(function(K){var d=K.data;var f=K.lpTableIsFirstRow;var H=K.lpTableIsLastRow;var D=function(){return(f==null?0:f())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},S=function(){return(f==null?0:f())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(H==null?0:H())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.U("ytm-lp-offer-table-row-view-model",null,_.U("div",{class:"yt-lp-offer-table-row-view-model"},_.U(_.z1,{data:function(){return d().rowHeaderCell}},{lpOfferTableCellViewModel:function(n){return _.U("div",{class:D},_.U(Lpv,{data:n.data}))}}),_.U(_.z1,{data:function(){return d().contentCells}},{lpOfferTableCellViewModel:function(n){return _.U("div",{class:S},_.U(Lpv,{data:n.data}))}})))},"gc");
BbH.idomCompat=!0;var J8v=_.C8(function(K){var d=K.data;var f=K.themeOverride;var H=_.eq().resolve(_.Zd(_.AJ)),D=function(){return _.P(d().logo,EHH)||{}};
K={};return _.U("ytm-lp-offer-table-section-view-model",null,_.U("div",{class:"yt-lp-offer-table-view-model"},_.U(_.X,{cond:function(){var S,n;return H&&H()||(f==null?0:f().useDarkTheme)?(S=D())==null?void 0:S.imageDark:(n=D())==null?void 0:n.imageLight},
then:function(S){return _.U(_.jV,{data:S,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var n,u,a;return(a=(n=D())==null?void 0:(u=n.accessibilityData)==null?void 0:u.label)!=null?a:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.U(_.ji,{text:function(){return d().title}})),_.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.U(_.ji,{text:function(){return d().subtitle}})),_.U(_.X,{cond:function(){return d().disclaimers},
then:function(S){return _.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.U(_.v_,{each:S},function(n){return _.U("div",null,_.U(_.ji,{text:n}))}))}}),_.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.U(_.z1,{data:function(){return d().rows}},{lpOfferTableRowViewModel:function(S,n){return _.U(BbH,{data:S.data,
lpTableIsFirstRow:function(){return n()===0},
lpTableIsLastRow:function(){return n()===d().rows.length-1}})}})),_.U("div",{class:_.SC((K["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return d().hasFooterBackground},K))},_.U(_.X,{cond:function(){return d().footer},
then:function(){return _.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.U(_.ji,{text:function(){return d().footer}}))}}),_.U(_.X,{cond:function(){return d().footerTitle},
then:function(){return _.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.U(_.ji,{text:function(){return d().footerTitle}}))}}),_.U(_.X,{cond:function(){return d().footerDescription},
then:function(){return _.U("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.U(_.ji,{text:function(){return d().footerDescription}}))}}))))},"hc");
J8v.idomCompat=!0;var sx2=_.C8(function(K){var d=K.data;var f=K.themeOverride;var H=_.eq().resolve(_.Zd(_.AJ)),D=function(){var u;return f==null?void 0:(u=f())==null?void 0:u.useDarkTheme},S=function(){var u,a;
return H&&H()||D()?(u=d().image)==null?void 0:u.imageDark:(a=d().image)==null?void 0:a.imageLight};
K={};K=_.SC("ytm-lp-small-feature-section-view-model",(K["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=D,K));var n=function(){var u,a,R;return(R=(u=d().image)==null?void 0:(a=u.accessibilityData)==null?void 0:a.label)!=null?R:""};
return _.U("ytm-lp-small-feature-section-view-model",{class:K},_.U(_.X,{cond:function(){return S()&&!R1u},
then:function(){return _.U("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.U(_.jV,{data:function(){return S()},
alt:n,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.U("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.U("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.U(_.X,{cond:function(){return d().title},
then:function(u){return _.U(_.ji,{text:u})}})),_.U("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.U(_.ji,{text:function(){return d().description}}))))},"ic");
sx2.idomCompat=!0;var kX4=_.C8(function(K){var d=K.data;var f=K.themeOverride;K={};return _.U("ytm-lp-small-feature-section-group-view-model",null,_.U("div",{class:_.SC("ytm-lp-small-feature-section-group-view-model",(K["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(f==null||!f().useDarkTheme)},K))},_.U("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.U(_.z1,{data:function(){return d().smallFeatures}},{lpSmallFeatureSectionViewModel:function(H){return _.U("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.U(sx2,{data:H.data,
themeOverride:f}))}}))))},"jc");
kX4.idomCompat=!0;_.sP(_.C8(function(K){var d=K.data;var f=function(){return d().forcedTheme==="USER_INTERFACE_THEME_DARK"},H=function(){return d().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},D=function(){var n="",u,a;
var R=_.eq().resolve(_.Zd(_.AJ));R=f()||(R==null?0:R())?(u=d().themedImageViewModel)==null?void 0:u.imageDark:(a=d().themedImageViewModel)==null?void 0:a.imageLight;(u=ne5((R==null?void 0:R.sources)||[]))&&u.url&&(n=H()?"background-image: linear-gradient(to bottom, transparent, "+(d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Xa(u.url)+");":"background-image: url("+_.Xa(u.url)+");");return n},S=function(){return{useDarkTheme:f()}};
K={};return _.U("yt-section-group-view-model",null,_.U("div",{class:_.SC("yt-lp-section-group-view-model",(K["yt-lp-section-group-view-model--premium-force-dark-mode"]=f,K["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},K))},_.U(_.X,{cond:function(){return D().length},
then:function(){var n={};return _.U("div",{class:_.SC("yt-lp-section-group-view-model__bg-image",(n["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=H,n)),style:D})}}),_.U("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.U(_.z1,{data:function(){return d().sections}},{lpFaqSectionViewModel:function(n){return _.U(GXt,{data:n.data,
themeOverride:S})},
lpHeaderSectionViewModel:function(n){return _.U(A8t,{data:n.data,themeOverride:S})},
lpHeadlineSectionViewModel:function(n){return _.U(Tbs,{data:n.data,themeOverride:S})},
lpLargeFeatureSectionViewModel:function(n){return _.U(r8J,{data:n.data,themeOverride:S})},
lpOfferCardSectionViewModel:function(n){return _.U(Cj8,{data:n.data,themeOverride:S})},
lpComplexOfferCardSectionViewModel:function(n){return _.U(mw2,{data:n.data})},
lpOfferTableSectionViewModel:function(n){return _.U(J8v,{data:n.data,themeOverride:S})},
lpSmallFeatureSectionGroupViewModel:function(n){return _.U(kX4,{data:n.data,themeOverride:S})}}))))},"kc"),"yt-section-group-view-model",{props:{data:_.rs}});var Q3n=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.wlB=_.C8(function(K){function d(){if(Q3n.has(K.data().displayType)){var R=!H(),F;if((F=K.disableDeselection)==null||!F.call(K)||R){K.data().selected=R;F=Object.assign({},n(),{selected:R});u(F);var z;(z=K.callback)==null||z.call(K,F,R)}}}
var f=_.Co(),H=function(){var R,F;return!!(((R=K.selected)==null?void 0:R.call(K))!==void 0?(F=K.selected)==null?0:F.call(K):n().selected)},D=_.y(_.am(K.data)),S=D.next().value;
D=D.next().value;var n=S,u=D,a=_.yF(qio,function(){return K.data().chipEntityKey||""});
return _.U("chip-view-model",{class:"ytChipViewModelHost",el:f},_.U(ly8,{data:function(){var R,F=Object.assign({},n(),{selected:H()}),z=a(),v=(R=K.disableDeselection)==null?void 0:R.call(K);a:switch(F.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":R=1;break a;default:R=0}return{text:(z==null?void 0:z.text)||F.text,state:F.disabled?1:F.selected?0:2,type:R,onTap:j3z(F,f,d,v),accessibilityLabel:F.accessibilityLabel||F.text}}}))},"lc");
_.wlB.idomCompat={callbacks:{callback:!0}};_.ZHk=_.C8(function(K){var d=_.yF(rC5,function(){var n;return(n=K.data())==null?void 0:n.chipBarStateEntityKey}),f=function(){return K.data().disableDeselection},H=_.y(_.am(function(){var n;
if(((n=d())==null?void 0:n.selectedIndex)!=void 0)return d().selectedIndex;var u,a;n=_.y(((u=K.data())==null?void 0:(a=u.chips)==null?void 0:a.entries())||[]);for(u=n.next();!u.done;u=n.next()){u=_.y(u.value);a=u.next().value;u=u.next().value;var R=void 0;if((R=_.P(u,_.hQ))==null?0:R.selected)return a}return-1})),D=H.next().value,S=H.next().value;
return _.U("chip-bar-view-model",{class:_.SC("ytChipBarViewModelHost",K.className),role:"tablist"},_.U(_.z1,{data:function(){return K.data().chips}},{chipViewModel:function(n,u){return _.U("div",{class:"ytChipBarViewModelChipWrapper"},_.U(_.wlB,{data:n.data,
selected:function(){return u()===D()},
callback:function(a,R){a=!!R;R=u();S(a?R:-1);var F,z=(F=K.data())==null?void 0:F.chipBarStateEntityKey;z&&a&&_.q7(_.nt("chipBarStateEntity",z,{key:z,selectedIndex:R}))},
disableDeselection:K.disableDeselection||f}))}}))},"mc");_.sP(_.ZHk,"chip-bar-view-model",{props:{data:_.JJ,className:_.JJ,disableDeselection:_.JJ}});_.ehs=_.C8(function(K){var d=K.data;K={};return _.U("divider-view-model",{class:_.SC("divider-view-model-wiz",(K["divider-view-model-wiz__inset-thin-padding"]=function(){return d().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},K))},_.U("div",{class:_.SC("divider-view-model-wiz__base-divider",function(){return Cap(d().dividerStyle)}),
style:_.Im({"background-color":function(){return d().backgroundColor?_.E1(d().backgroundColor):void 0}})}))},"nc");
_.ehs.idomCompat=!0;_.sP(_.ehs,"divider-view-model",{props:{data:_.rs}});var Xr=new Map,zD=new Map,Bnz=0,v$;var pMo=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],fyp={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var pls,KBB;pls=function(K){return function(d){return function(){return String(d())+K}}};
_.PH=pls("px");KBB=pls("s");var fO8=_.C8(function(K){function d(fB){return function(){var w=g().numItemsPerGridRow,yO=fB()*w;w=yO+w;var FX,NJ;return(NJ=(FX=H().contents)==null?void 0:FX.slice(yO,w))!=null?NJ:[]}}
var f=_.jP(K,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),H=f.data,D=f.layoutContainerWidth,S=f.shouldUseOwnContainerSize,n=f.marginSettings;f=_.y(_.cC(!0,void 0,"qgr2Je"));var u=f.next().value,a=f.next().value,R=function(){var fB,w=(fB=_.P(H().showMoreButton,_.XN))==null?void 0:fB.trackingParams;w&&_.f5(_.cv(),w);a(!1)},F=function(){var fB,w=(fB=_.P(H().showLessButton,_.XN))==null?void 0:fB.trackingParams;
w&&_.f5(_.cv(),w);a(!0)};
f=_.Co();var z=_.D2u(f,{canHaveZeroSize:!1}),v=function(){var fB;return(fB=H().contentAspectRatio)!=null?fB:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},g=_.zh(function(){var fB=_.rP({containerWidth:S()&&z.width()>0?z.width()||D():D(),
sizing:"EXTRA_COMPACT",marginSettings:n(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:fB.maxContainerWidth,numItemsPerGridRow:fB.numItems,contentPadding:S()?fB.margin:fB.contentMargin,itemWidth:fB.itemWidth,itemMargin:fB.gutter/2}},void 0,"pqVdjc"),N=function(){if(H().enableVerticalExpansion){if(u())return h();
var fB,w,yO=(w=(fB=H().contents)==null?void 0:fB.length)!=null?w:0;return Math.ceil(yO/g().numItemsPerGridRow)}return g().numItemsPerGridRow<=2?2:1},h=function(){var fB;
return Math.ceil(((fB=H().minCollapsedItemCount)!=null?fB:1)/g().numItemsPerGridRow)},m=function(){return H().enableVerticalExpansion&&H().showLessButton&&!u()&&N()>h()},T=function(){var fB,w;
return H().enableVerticalExpansion&&H().showMoreButton&&u()&&((w=(fB=H().contents)==null?void 0:fB.length)!=null?w:0)>g().numItemsPerGridRow*h()},r=function(){return!m()},J=function(){return!T()},L={};
return _.U("grid-shelf-view-model",{class:_.SC("ytGridShelfViewModelHost",K.className,(L.ytGridShelfViewModelHostHasBottomButton=function(){return m()||T()},L)),
el:f,style:_.Im({"margin-left":(0,_.PH)(function(){return g().contentPadding}),
"margin-right":(0,_.PH)(function(){return g().contentPadding})})},_.U(_.X,{cond:function(){return _.P(H().header,jb8)},
then:function(fB){return _.U(_.d6,{data:fB,disableHorizontalPadding:!0})}}),_.U("div",null,_.U(_.v_,{each:function(){return Array(N())}},function(fB,w){return _.U(d4H,{className:K.className,
items:d(w),responsiveGridShelfLayout:g,contentAspectRatio:v})})),_.U("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.U(_.z1,{data:function(){return H().showMoreButton}},{buttonViewModel:function(fB){return _.U("div",{hidden:J},_.U(_.oY,{data:fB.data,
onClick:R}))}}),_.U(_.z1,{data:function(){return H().showLessButton}},{buttonViewModel:function(fB){return _.U("div",{hidden:r},_.U(_.oY,{data:fB.data,
onClick:F}))}})))},"oc");
fO8.idomCompat=!0;var d4H=_.C8(function(K){var d=K.items;var f=K.responsiveGridShelfLayout;var H=K.contentAspectRatio;K=K.className;var D=_.Co();LOp(D,function(){a:{var n=D.value;for(var u=d(),a=[],R=0;R<u.length;R++){var F=_.P(u[R],PeB);if(!F||F==null||!F.inlinePlayerData){n=null;break a}var z=n.children.item(R);if(!z){n=null;break a}a.push({thumbnailElement:z,videoData:F})}n={gridVideoPreviewData:{gridItems:a}}}return n});
var S=(0,_.PH)(function(){return-f().itemMargin});
return _.U("div",{el:D,class:_.SC("ytGridShelfViewModelGridShelfRow",K),style:_.Im({"margin-left":S,"margin-right":S})},_.U(_.z1,{data:d,replacementWrapper:function(n){return _.U(Hz6,{responsiveGridShelfLayout:f},n)}},{shortsLockupViewModel:function(n){return _.U(Hz6,{responsiveGridShelfLayout:f},_.U(xck,{data:n.data,
aspectRatio:function(){return H()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"pc"),Hz6=_.C8(function(K){return _.U("div",{style:_.Im({width:(0,_.PH)(function(){return K.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+K.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},K.children)},"qc");
fO8.idomCompat=!0;_.sP(fO8,"grid-shelf-view-model",{props:{data:_.rs,layoutContainerWidth:_.rs,shouldUseOwnContainerSize:_.rs,marginSettings:_.rs,className:_.rs}});_.D46=_.C8(function(K){var d=_.y(_.cC(!1,void 0,"YYtxR")),f=d.next().value,H=d.next().value;d={};return _.U("yt-alert-banner-view-model",{class:_.SC("ytAlertBannerViewModelHost",K.className,function(){var D;a:switch((D=K.data())==null?void 0:D.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":D="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":D="ytAlertBannerViewModelWarning";break a;default:D="ytAlertBannerViewModelInformational"}return D},(d.ytAlertBannerViewModelDismissed=
f,d.ytAlertBannerViewModelFullbleed=K.fullbleed,d.ytAlertBannerViewModelNarrow=K.narrow,d.ytAlertBannerViewModelIsInRichGrid=K.isInRichGrid,d))},_.U(_.X,{cond:function(){var D;
return!((D=K.data())==null?0:D.hideIcon)},
then:function(){return _.U("div",{class:"ytAlertBannerViewModelIcon"},_.U(_.U5,{icon:function(){return"info_circle"}}))}}),_.U("div",{class:"ytAlertBannerViewModelOuterContainer"},_.U("div",{class:"ytAlertBannerViewModelContainer"},_.U("div",{class:"ytAlertBannerViewModelContent"},_.U("div",{class:"ytAlertBannerViewModelHeading"},_.U(_.ji,{text:function(){var D;
return(D=K.data())==null?void 0:D.heading}})),_.U("div",{class:"ytAlertBannerViewModelBody"},_.U(_.ji,{text:function(){var D;
return(D=K.data())==null?void 0:D.body}})))),_.U(_.z1,{data:function(){var D;
return(D=K.data())==null?void 0:D.actionButton}},{buttonViewModel:function(D){return _.U(_.oY,{data:D.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.U(_.z1,{data:function(){var D;
return(D=K.data())==null?void 0:D.dismissButton}},{buttonViewModel:function(D){return _.U(_.oY,{data:D.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var S;((S=K.data())==null?0:S.disableLocalDismissBehavior)||H(!0)}})}}))},"rc");_.sP(_.D46,"yt-alert-banner-view-model",{props:{data:_.rs,fullbleed:_.rs,narrow:_.rs,isInRichGrid:_.rs,className:_.rs}});var VmB;VmB=_.IY({chipViewModel:_.wlB,buttonViewModel:_.oY});_.VzN=_.ih(S_u,{callbacks:{callback:!0}});_.Zx(S_u);_.sP(_.VzN,"chips-shelf-view-model",{props:{data:_.rs,callback:_.JJ,enableSingleChipSelection:_.rs,disableChipsScrollAnimation:_.rs}});var SWH=_.C8(function(K){K=_.jP(K,{disabled:!1});var d=K.active,f=K.disabled;K={};K=_.SC("ytSwitchShapeTrack",(K.ytSwitchShapeTrackActive=function(){return d()},K.ytSwitchShapeTrackDisabled=function(){return f()},K));
var H={};H=_.SC("ytSwitchShapeKnob",(H.ytSwitchShapeKnobActive=function(){return d()},H));
return _.U("switch-shape",{class:"ytSwitchShapeHost"},_.U("div",{class:K}),_.U("div",{class:H}))},"sc");var yrH=_.C8(function(K){var d=_.jP(K,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),f=d.data;K=d.className;var H=d.handleOnTapEventInParent,D=d.parentActive;d=_.y(_.am(function(){var z;return(z=D())!=null?z:f().switchedOnByDefault||!1}));
var S=d.next().value,n=d.next().value,u=function(){return f().isDisabled},a=_.Co();
d=_.cp(function(z){return z.key==="Enter"?(z.preventDefault(),a.value.click(),!1):!0});
var R=_.cp(function(z){if(f().handleOnTapEventInParent||H())return!0;if(u())return!1;nxJ(f(),S(),z);n(!S());return!1}),F={};
F=_.SC("ytSwitchButtonViewModelButton",(F.ytSwitchButtonViewModelTappable=function(){return!u()},F));
return _.U("switch-button-view-model",{class:_.SC("ytSwitchButtonViewModelHost",K)},_.U("button",{el:a,class:F,"on:click":R,"on:keydown":d,"aria-label":function(){return S()?f().a11yLabelSwitchedOn:f().a11yLabelSwitchedOff},
"aria-checked":S,"aria-disabled":u,role:"switch"},_.U(SWH,{active:S,disabled:u})))},"tc");var izN=_.C8(function(K){var d=_.jP(K,{checked:!1});K=d.name;var f=d.onChange,H=d.onClick,D=d.checked,S=d.labelRenderable,n=d.hasLeadingLabel,u=d.labelClass,a=d.isCompact,R=d.selectElementClass;d=d.disableHorizontalPadding;var F="checkbox"+_.Ot(_.MS),z=_.cp(function(N){H==null||H(N);return!1}),v=_.cp(function(N){f==null||f(N);
return!1}),g={};
return _.U("checkbox-shape",null,_.U("label",{class:_.SC("checkbox-shape-wiz",u,(g["checkbox-shape-wiz--compact"]=a,g["checkbox-shape-wiz--disable-horizontal-padding"]=d,g))},_.U("input",{class:"checkbox-shape-wiz__input",id:F,checked:D,name:K,type:"checkbox","prop:checked":D,"on:change":v,"on:click":z}),_.U(_.X,{cond:function(){return!(n==null?0:n())},
then:function(){return _.U(nUs,{isLeading:!0,selectElementClass:R})}}),_.U(_.X,{cond:function(){return!!S},
then:function(){return _.U("div",{class:"checkbox-shape-wiz__label"},S==null?void 0:S())}}),_.U(_.X,{cond:n,
then:function(){return _.U(nUs,{isLeading:!1,selectElementClass:R})}})))},"uc");
izN.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var nUs=_.C8(function(K){var d=K.selectElementClass;K={};return _.U("div",{class:_.SC("checkbox-shape-wiz__checkbox",d,(K["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(d==null?0:d())},K)),
"aria-hidden":"true"},_.U(_.U5,{icon:_.M("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.U(_.U5,{icon:_.M("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"vc");_.g6=_.C8(function(K){var d=K.name;var f=K.onChange;var H=K.onClick;var D=K.checked;var S=K.labelRenderable;var n=K.useCheckIcon;var u=K.hasLeadingLabel;var a=K.labelClass;var R=K.isCompact;var F=K.selectElementClass;var z=K.ariaLabel;K=K.className;var v="radio"+_.Ot(_.MS),g=_.Co(),N=_.cp(function(J){g.value.checked=!(D==null||!D());f==null||f(J);return!1}),h=_.cp(function(J){H==null||H(J);
return!1}),m=_.y(_.cC(!1,void 0,"v5AMrb")),T=m.next().value,r=m.next().value;
m={};return _.U("radio-shape",{class:_.SC("radio-shape-wiz",K)},_.U("input",{el:g,class:"radio-shape-wiz__input",id:v,"prop:checked":D,name:d,type:"radio","on:change":N,"on:click":h,"aria-label":z,"on:focusin":_.cp(function(){var J;((J=_.eq().resolve(_.Zd(_.eb)))==null?0:J.isKeyBoardInUse())&&r(!0)}),
"on:focusout":_.cp(function(){r(!1)})}),_.U("label",{class:_.SC("radio-shape-wiz__label-container",a,(m["radio-shape-wiz--compact"]=R,m["radio-shape-wiz__label-container--keyboard-focused"]=T,m)),
for:v},_.U(_.X,{cond:function(){return!(u==null?0:u())},
then:function(){return _.U(crH,{checked:D,useCheckIcon:n,isLeading:!0,selectElementClass:F})}}),_.U(_.X,{cond:function(){return!!S},
then:function(){return _.U("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(z==null?0:z())?"true":"false"}},S==null?void 0:S())}}),_.U(_.X,{cond:u,
then:function(){return _.U(crH,{checked:D,useCheckIcon:n,isLeading:!1,selectElementClass:F})}})))},"wc");
_.g6.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var crH=_.C8(function(K){var d=K.useCheckIcon;var f=K.selectElementClass;K=function(){return(d==null?0:d())?"CHECK":_.M("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var H={};return _.U("div",{class:_.SC("radio-shape-wiz__radio",f,(H["radio-shape-wiz__radio--check-icon"]=d,H["radio-shape-wiz__radio--radio-default-style"]=function(){return!(f==null?0:f())},H)),
"aria-hidden":"true"},_.U(_.U5,{icon:K}),_.U(_.U5,{icon:K,active:function(){return!(d==null?0:d())}}))},"xc");_.Op=_.C8(function(K){function d(){var Y8;((Y8=_.eq().resolve(_.Zd(_.eb)))==null?0:Y8.isKeyBoardInUse())&&qJ(!0)}
function f(){qJ(!1)}
var H=K.data;var D=K.isMenuItem;var S=K.isCompact;var n=K.onTap;var u=K.trailingAccessory;var a=K.hideSelectionTextChevron;var R=K.disabled;var F=K.inPopup;var z=K.disableHorizontalPadding;K=K.isOverlay;var v=_.M("apply_button_role_to_list_item"),g=_.th(function(Y8){a:{var Iz=H();if((Iz==null?0:Iz.entitySelectorType)&&(Iz==null?0:Iz.entityKey))switch(Iz.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":Y8=_.Jiu(Y8,Iz.entityKey);Y8=Y8==null?void 0:
Y8.value;Iz=!1;Y8==="CAPTIONS_UNAVAILABLE"&&(Iz=!0,Y8="");Y8=Object.assign({},!!Y8&&{selectionText:{content:Y8}},{isSelected:!!Y8},!!Y8&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:Iz});break a;default:Y8={}}else Y8={}}return Y8}),N=function(){return _.M("enable_web_shorts_captions_language_command")?Object.assign({},H(),g()):H()},h=function(){return!(N().isSelected===void 0||!N().selectionStyle||N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
m=function(){return(_.lX(N().rendererContext)||n)&&!h()},T=function(){return _.lX(N().rendererContext)||h()},r={};
K=_.SC("yt-list-item-view-model-wiz",(r["yt-list-item-view-model-wiz--is-overlay"]=K,r["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!v&&xz()},r));
r={};var J=_.SC("yt-list-item-view-model-wiz__label",(r["yt-list-item-view-model-wiz__container"]=function(){return!h()},r["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!N().isDisabled||!(R==null||!R())},r["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!N().subtitle},r["yt-list-item-view-model-wiz__container--compact"]=S,r["yt-list-item-view-model-wiz__container--tappable"]=m,r["yt-list-item-view-model-wiz__container--in-popup"]=F,r["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return v&&xz()},r["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(z==null?void 0:z())&&!h()},r));
r={};var L=_.SC("yt-list-item-view-model-wiz__container",(r["yt-list-item-view-model-wiz__container--tappable"]=T,r["yt-list-item-view-model-wiz__container--compact"]=S,r["yt-list-item-view-model-wiz__container--in-popup"]=F,r["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(z==null?void 0:z())&&h()},r)),fB=function(){return N().leadingImage||N().leadingAccessory},w=_.SC("yt-list-item-view-model-wiz__image-container",function(){return fB()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
F=_.Co();var yO=_.Co(),FX=v?yO:F,NJ=_.C8(function(){return _.U(_.X,{cond:function(){return v},
then:function(){return _.U("div",{class:J,el:yO,role:function(){return T()||m()?"button":void 0},
tabindex:function(){return n||m()?0:void 0},
"on:keydown":hN,"on:click":$z},_.U(u6N,{data:N,hideSelectionTextChevron:a,trailingAccessory:u}))},
else:function(){return _.U("div",{class:J,el:yO},_.U(u6N,{data:N,hideSelectionTextChevron:a,trailingAccessory:u}))}})},"yc");
NJ.idomCompat=!0;_.W9(F,function(){return N().rendererContext});
var $z=_.cp(function(Y8){return void(n==null?void 0:n(Y8))}),hN=_.JUG(),bo=_.y(_.cC(!1,void 0,"inP9Dc"));
r=bo.next().value;bo=bo.next().value;var xz=r,qJ=bo;_.tR(function(){m()&&(FX.value.addEventListener("focusin",d),FX.value.addEventListener("focusout",f));_.$F(function(){FX.value&&m()&&(FX.value.removeEventListener("focusin",d),FX.value.removeEventListener("focusout",f))})});
r=_.cp(function(){return!0});
return _.U("yt-list-item-view-model",{el:F,class:K,role:function(){return(D==null?0:D())?"menuitem":"listitem"},
tabindex:function(){var Y8=m();Y8=v?void 0:n||Y8?0:void 0;return Y8},
"on:keydown":v?r:hN,"on:click":v?r:$z},_.U(_.X,{cond:h,then:function(){return _.U(_.gF,null,_.U(_.Mk,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.U(izN,{labelRenderable:function(){return _.U(NJ,null)},
isCompact:S,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!fB()},
labelClass:L,selectElementClass:w,disableHorizontalPadding:z})}),_.U(_.Mk,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.U(_.g6,{labelRenderable:function(){return _.U(NJ,null)},
isCompact:S,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!fB()},
labelClass:L,selectElementClass:w})}),_.U(_.Mk,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.U(_.g6,{labelRenderable:function(){return _.U(NJ,null)},
isCompact:S,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!fB()},
labelClass:L,selectElementClass:w,useCheckIcon:!0})}),_.U(_.P_,null,function(){return _.U(NJ,null)}))},
else:function(){return _.U(NJ,null)}}))},"zc");
_.Op.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var u6N=_.C8(function(K){var d=K.data;var f=K.hideSelectionTextChevron;var H=K.trailingAccessory;return _.U(_.dF,null,_.U(aOL,{data:d,isLeading:!0,hideSelectionTextChevron:function(){return!(f==null||!f())}}),_.U(IOs,{data:d}),_.U(_.X,{cond:function(){return!!H},
then:function(){return _.U("div",{class:"yt-list-item-view-model-wiz__trailing"},H==null?void 0:H())},
else:function(){return _.U(aOL,{data:d,isLeading:!1,hideSelectionTextChevron:function(){return!(f==null||!f())}})}}))},"Ac"),aOL=_.C8(function(K){var d=K.data;
var f=K.isLeading;var H=K.hideSelectionTextChevron;var D=_.SC("yt-list-item-view-model-wiz__button-container");K={};var S=_.SC("yt-list-item-view-model-wiz__image-container",(K["yt-list-item-view-model-wiz__leading"]=f,K["yt-list-item-view-model-wiz__trailing"]=function(){return!f()},K)),n=function(){return f()?d().leadingImage:d().trailingImage},u=_.SC("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
K={};var a=_.SC("yt-list-item-view-model-wiz__accessory",(K["yt-list-item-view-model-wiz__leading"]=f,K["yt-list-item-view-model-wiz__trailing"]=function(){return!f()},K)),R=function(){a:switch(d().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var F="expand_more";
break a;default:F="chevron_right"}return F};
return _.U(_.X,{cond:function(){var F=d(),z=f();return!!(z&&(F.leadingImage||F.leadingAccessory)||!z&&(F.trailingImage||F.trailingButton||F.trailingButtons||F.selectionText))},
then:function(){return _.U(_.dF,null,_.U(_.X,{cond:n,then:function(F){return _.U("div",{class:S,"aria-hidden":"true"},_.U(_.jV,{data:F,alt:"",preserveWidth:!0,preserveHeight:!0,className:u}))}}),_.U(_.X,{cond:function(){return f()&&d().leadingAccessory},
then:function(){return _.U("div",{class:S},_.U(_.z1,{data:function(){return d().leadingAccessory}},{avatarViewModel:function(F){return _.U(_.Pz,{data:F.data,
avatarButtonCustomClassName:u})},
collectionThumbnailViewModel:Gmv}))}}),_.U(_.X,{cond:function(){return!f()&&d().trailingButton},
then:function(){return _.U("div",{class:D},_.U(_.z1,{data:function(){return d().trailingButton}},{buttonViewModel:function(F){return _.U(_.oY,{data:F.data,
className:a})}}))}}),_.U(_.X,{cond:function(){var F;
return!f()&&((F=d().trailingButtons)==null?void 0:F.buttons)},
then:function(){return _.U("div",{class:D},_.U(_.z1,{data:function(){var F;return(F=d().trailingButtons)==null?void 0:F.buttons}},{buttonViewModel:function(F){return _.U(_.oY,{data:F.data,
className:a})},
accountLinkButtonViewModel:function(F){return _.U(hUJ,{data:F.data,className:function(){return a()||""}})},
switchButtonViewModel:function(F){return _.U(yrH,{data:F.data,className:a})},
subscribeButtonViewModel:function(F){return _.U(_.PI,{data:F.data,isOverlay:!1,animateWidth:!1,className:a})},
toggleButtonViewModel:function(F){return _.U(_.MT,{data:F.data,className:a})}}))}}),_.U(_.X,{cond:function(){return!f()&&!!d().selectionText},
then:function(){return _.U(_.dF,null,_.U(_.ji,{text:function(){return d().selectionText},
className:_.SC("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.U(_.X,{cond:function(){return!H()},
then:function(){return _.U(_.U5,{icon:R,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Bc"),IOs=_.C8(function(K){var d=K.data;
return _.U(_.X,{cond:function(){return d().title||d().subtitle},
then:function(){return _.U("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.U("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.U(_.X,{cond:function(){return d().title},
then:function(f){return _.U(_.ji,{text:f,className:"yt-list-item-view-model-wiz__title"})}})),_.U(_.X,{cond:function(){return d().subtitle},
then:function(f){return _.U(_.ji,{text:f,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Cc");_.U49=_.C8(function(K){var d=K.data;var f=K.onTap;var H=K.onSwitch;var D=K.overrideDisabled;K=K.disableHorizontalPadding;var S=_.y(_.am(function(){var z;return((z=cuo(F()))==null?void 0:z.switchedOnByDefault)||!1})),n=S.next().value,u=S.next().value;
S=_.y(_.cC(!1,void 0,"ZHBkbb"));var a=S.next().value,R=S.next().value,F=function(){var z;if(!(z=d().switchButton)){var v=d();z=D==null?void 0:D();v={switchOnCommand:v.switchOnCommand,switchOffCommand:v.switchOffCommand,switchedOnByDefault:v.switchedOnByDefault,isDisabled:v.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:v.a11yLabelSwitchedOn,a11yLabelSwitchedOff:v.a11yLabelSwitchedOff};z!==void 0&&(v.isDisabled=z);z={switchButtonViewModel:v}}return z};
return _.U("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.U(_.Op,{data:function(){return{title:d().title,subtitle:d().attributedSubtitle,leadingImage:d().leadingImage,leadingAccessory:d().leadingAccessory,isDisabled:d().isDisabled}},
onTap:function(z){var v=cuo(F());!v||v.isDisabled||d().ignoreTapUntilCommandCompletes&&a()||(f==null||f(z),nxJ(v,n(),z,d().ignoreTapUntilCommandCompletes,R),u(!n()),H==null||H(n()))},
trailingAccessory:function(){return _.U(_.z1,{data:F},{switchButtonViewModel:function(z){return _.U(yrH,{data:z.data,parentActive:n,handleOnTapEventInParent:!!f})}})},
disableHorizontalPadding:K}))},"Dc");var RVN=_.iB("DOWNLOAD",{},"Download"),FBt=_.iB("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),zVs=_.iB("RETRY",{},"Retry"),Xi6=_.iB("PAUSE_DOWNLOADING",{},"Pause downloading"),vUL=_.iB("RESUME_DOWNLOAD",{},"Resume download"),uzo={text:RVN,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Mj={text:FBt,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},U2J={text:zVs,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
ayu={text:Xi6,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},IyY={text:vUL,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var Mz6=_.C8(function(K){var d=function(){var u=K.data();u=_.mR(u.rendererContext);var a;return(a=_.P(u,_.DS))==null?void 0:a.videoId},f=_.th(function(u){var a=d(),R=zES(K.data());
return a?_.oO(u,a):R?_.$o(u,R):"TRANSFER_STATE_UNKNOWN"}),H=_.yF(_.lDo,d),D=_.th(function(u){return _.oHu(u,d(),zES(K.data()))}),S=function(){return FLp(f(),H(),_.mR(K.data().rendererContext),!!zES(K.data()))},n=function(){return D()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.U("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:n},_.U(_.X,{cond:function(){return!n()},
then:function(){return _.U(_.X,{cond:S,then:function(u){return _.U(_.v_,{each:u},function(a){return _.U(_.Op,{data:a,isCompact:K.isCompact,isMenuItem:K.isMenuItem,inPopup:K.inPopup,disableHorizontalPadding:K.disableHorizontalPadding})})}})}}))},"Ec");
Mz6.idomCompat=!0;_.PK8=_.C8(function(K){var d=K.data;var f=K.isCompact;var H=K.hideSelectionTextChevron;var D=K.inPopup;var S=K.isOverlay;var n=K.disableHorizontalPadding;var u=function(){return XTz(d())&&(D==null?void 0:D())};
K={};return _.U("yt-list-view-model",{class:_.SC("yt-list-view-model-wiz",(K["yt-list-view-model-wiz--kaios-spat-nav"]=R1u&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",K)),role:function(){return u()?"menu":"list"},
style:_.Im({"max-height":function(){var a,R=(a=d())==null?void 0:a.visibleElementCount;if(R)return MmX(d())?(R+.5)*48+"px":(R+.5)*40+"px"}})},_.U(_.z1,{data:function(){return d().listItems}},{listItemViewModel:function(a){return _.U(_.Op,{data:a.data,
isMenuItem:u,isCompact:f,hideSelectionTextChevron:H,inPopup:D,isOverlay:S,disableHorizontalPadding:n})},
downloadListItemViewModel:function(a){return _.U(Mz6,{data:a.data,isMenuItem:u,isCompact:f,inPopup:D,disableHorizontalPadding:n})},
switchListItemViewModel:function(a){return _.U(_.U49,{data:a.data,disableHorizontalPadding:n})}}))},"Fc");
_.PK8.idomCompat=!0;var gU2=_.C8(function(K){var d=K.data;var f=K.isOverlay;K={};return _.U("yt-course-perks-view-model",{class:_.SC("ytwCoursePerksViewModelHost",(K.ytwCoursePerksViewModelHostOverlay=f,K))},_.U("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.U(_.ji,{text:function(){return d().title}})),_.U("div",null,_.U(_.X,{cond:function(){return d().perks},
then:function(H){return _.U(_.PK8,{data:function(){return{listItems:H()}},
isCompact:!0,isOverlay:f})}})))},"Gc");_.sP(gU2,"yt-course-perks-view-model",{props:{data:_.JJ,isOverlay:_.JJ}});_.sP(_.C8(function(K){var d=K.data;return _.U("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.U("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.U(_.ji,{text:function(){return d().title}})),_.U("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.U(_.ji,{text:function(){return d().progressSummary}})),_.U("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.U("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Im({width:function(){return d().progressPercentage*100+"%"}})})))},"Hc"),"yt-course-progress-view-model",{props:{data:_.rs}});var Oz6=_.C8(function(K){var d={};return _.U("yt-progress-view-model",{class:_.SC("ytwProgressViewModelHost",(d.ytwProgressViewModelHostOverlay=_.QV(K.isOverlay,!1),d))},_.U(_.X,{cond:function(){return K.data().progressSummary},
then:function(f){return _.U("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.U(_.ji,{text:f}))}}),_.U("div",{class:"ytwProgressViewModelHostProgressContainer"},_.U(_.X,{cond:function(){return K.data().leadingLabel},
then:function(f){return _.U("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.U(_.ji,{text:f}))}}),_.U("div",{class:"ytwProgressViewModelHostProgressBar"},_.U("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(K.data().progressPercentage||0)*100+"%"}}))))},"Ic");var NS=_.C8(function(K){var d=K.starNumber;var f=K.data;var H=function(){var D;return((D=f())==null?void 0:D.rating)||0};
return _.U(_.X,{cond:function(){return d()},
then:function(D){return _.U(_.gF,null,_.U(_.Mk,{when:function(){return H()>=D()-.25}},function(){return _.U("div",{class:"ytStarRatingViewModelHostStar"},_.U(_.U5,{icon:"STAR_FILLED"}))}),_.U(_.Mk,{when:function(){return H()>=D()-.75}},function(){return _.U("div",{class:"ytStarRatingViewModelHostStar"},_.U(_.U5,{icon:"STAR_HALF"}))}),_.U(_.P_,null,function(){return _.U("div",{class:"ytStarRatingViewModelHostStar"},_.U(_.U5,{icon:"STAR_BORDER"}))}))}})},"Jc"),Npv=_.C8(function(K){K=K.data;
return _.U("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.U(NS,{starNumber:1,data:K}),_.U(NS,{starNumber:2,data:K}),_.U(NS,{starNumber:3,data:K}),_.U(NS,{starNumber:4,data:K}),_.U(NS,{starNumber:5,data:K}))},"Kc");_.sP(_.C8(function(K){var d=_.jP(K,{}).data;return _.U("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.U("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.U(_.ji,{text:function(){var f;return(f=d())==null?void 0:f.title}})),_.U("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.U(_.X,{cond:function(){return d().starProgressViewModels},
then:function(f){return _.U("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.U(_.z1,{data:f},{progressViewModel:Oz6}))}}),_.U("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.U("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.U(_.ji,{text:function(){var f;
return(f=d())==null?void 0:f.averageRatingLabel}})),_.U(_.X,{cond:function(){return d().zeroStateText},
then:function(f){return _.U("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.U(_.ji,{text:f}))}}),_.U(_.X,{cond:function(){return d().starRatingViewModel},
then:function(f){return _.U("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.U(_.z1,{data:f},{starRatingViewModel:Npv}))}}),_.U("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.U(_.ji,{text:function(){var f;
return(f=d())==null?void 0:f.totalRatingsCountLabel}})))))},"Lc"),"yt-course-ratings-view-model",{props:{data:_.JJ}});var YWf;YWf={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.tzJ=_.C8(function(K){var d=_.Co(),f=_.ft();_.Nk(function(){requestAnimationFrame(function(){var D;(D=f.lottieEl)==null||D.addEventListener("DOMLoaded",function(){var S;(S=K.onLottieLoaded)==null||S.call(K)})});
var H=K.data().browseEndpoint;H&&_.me(H)});
return _.U("yt-learning-journey-loader-view-model",{class:_.SC("learningJourneyLoaderViewModelHost",K.className),"data-target-id":function(){var H;return((H=K.data)==null?void 0:H.call(K).targetId)||""},
el:d},_.U(_.yC,{className:_.SC("learningJourneyLoaderViewModelLoader",K.className),animationName:function(){return YWf.animationConfig.name},
data:YWf,animationRef:f}))},"Mc");_.sP(_.tzJ,"yt-learning-journey-loader-view-model",{props:{data:_.rs,className:_.JJ,onLottieLoaded:_.JJ}});_.oUv=_.C8(function(K){var d=function(){return K.data()},f=_.y(_.cC(-1,void 0,"GvxRR")),H=f.next().value,D=f.next().value,S=function(R){return H()===R},n=function(R){return d().correctAnswerIndex===R},u=function(){return H()!==-1},a=_.cp(function(){D(-1);
return!1});
return _.U("learning-journey-quiz-view-model",{class:_.SC("learningJourneyQuizViewModelHost",K.className),style:_.Im({background:function(){return O8(P$(d())).backgroundColor}})},_.U(_.X,{cond:function(){return!!d().video},
then:function(){return _.U("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Im({background:function(){return O8(P$(d())).videoBackgroundColor}})},_.U(_.z1,{data:function(){return d().video}},{lockupViewModel:function(R){return _.U(_.ef,{data:R.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.U("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.U("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.U("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.U("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.U("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.Im({color:function(){return O8(P$(d())).primaryTextColor}})},_.U(_.ji,{text:function(){var R=d(),F=u(),z=H()===d().correctAnswerIndex;
return F?z?R.successTitle:R.failureTitle:R.questionHeaderText}})),_.U("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.U(_.X,{cond:u,
then:function(){return _.U("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":a,role:"button","aria-label":"Reset","tab-index":"0"},_.U("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Im({fill:function(){return O8(P$(d())).primaryTextColor}})},_.U("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"})))}}),
_.U(_.z1,{data:function(){return d().overflowMenu}},{buttonViewModel:function(R){return _.U(_.oY,{data:R.data})}}))),_.U("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.Im({color:function(){return O8(P$(d())).secondaryTextColor}})},_.U(_.ji,{text:function(){var R=d();
return u()?R.explanationText:R.questionSubheaderText}}))),_.U("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.U(_.v_,{each:function(){return d().optionsData||[]}},function(R,F){var z={};
return _.U("div",{class:_.SC("learningJourneyQuizViewModelHostQuizOptions",(z.learningJourneyQuizViewModelHostQuizHover=function(){return!u()},z.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return H()===d().correctAnswerIndex&&S(F())},z.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return H()!==d().correctAnswerIndex&&S(F())},z.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return u()&&!S(F())},z)),
"on:click":_.cp(function(){if(u())return!1;D(F());return!1}),
style:_.Im({background:function(){return u()&&S(F())?"":O8(P$(d())).optionColor}}),
role:"button","aria-disabled":u,"tab-index":"0"},_.U(_.X,{cond:u,then:function(){return _.U("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var v=F();return n(v)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.Im({fill:function(){return O8(P$(d())).primaryTextColor}})},_.U("path",{d:function(){var v=F();
return n(v)?"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"}}))}}),_.U(_.ji,{text:R.optionText}))})))))},"Nc");
_.oUv.idomCompat=!0;_.sP(_.oUv,"learning-journey-quiz-view-model",{props:{data:_.rs,className:_.rs}});var $4s=_.C8(function(K){var d=_.Co();_.W9(d,function(){return K.data().rendererContext});
var f=_.jP(K,{palette:void 0,isLastItem:!1}),H=f.palette,D=f.isLastItem,S=function(){return K.data().isHighlighted},n=function(){var R;
return PIX((R=H())==null?void 0:R.iconDisabledColor)},u=function(){var R;
return PIX((R=H())==null?void 0:R.primaryTitleColor)},a=function(){var R;
return PIX((R=H())==null?void 0:R.secondaryTitleColor)};
f={};return _.U("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:d},_.U(_.z1,{data:function(){return K.data().thumbnail}},{thumbnailViewModel:_.xd}),_.U("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.U("div",{class:_.SC("ytMacroMarkerListItemViewModelTimeDescription",(f.ytMacroMarkerListItemViewModelHighlighted=S,f)),
style:_.Im({"background-color":function(){return S()?u():n()},
color:function(){return S()?"":a()}})},_.U(_.ji,{text:function(){return K.data().timestamp}})),_.U("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Im({"background-color":function(){return D()?"transparent":n()}})}),_.U("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(S()?u():a())}},_.U(_.ji,{text:function(){return K.data().title}}))))},"Oc");_.Ye=_.C8(function(K){function d(i9){T("transform:translateX("+(_.mD("HTML_DIR")==="rtl"?"":"-")+i9+"px)")}
function f(i9){return Math.min(Math.max(i9,0),m()-w())}
function H(){var i9=L()+$z();return D()?(Math.round(w()/i9)||1)*i9:0}
var D=function(){return K.data().items||[]},S=function(){return K.data().previousButton},n=function(){return K.data().nextButton},u=function(){var i9,KE;
return(KE=(i9=K.disableArrows)==null?void 0:i9.call(K))!=null?KE:!1},a=function(){var i9;
return!((i9=K.forceNarrowLayout)==null||!i9.call(K))},R=_.Co(),F=_.Co(),z=_.y(_.cC(0,void 0,"D4aXB")),v=z.next().value,g=z.next().value;
z=_.y(_.cC(0,void 0,"GQlHRc"));var N=z.next().value,h=z.next().value,m=N;N=_.y(_.cC("",void 0,"Bw1Yz"));z=N.next().value;var T=N.next().value;N=_.y(_.cC(0,void 0,"buTjVb"));var r=N.next().value,J=N.next().value,L=r;N=_.y(_.cC(0,void 0,"GIAWN"));r=N.next().value;var fB=N.next().value,w=r;N=_.y(_.cC(!1,void 0,"cenvwc"));var yO=N.next().value,FX=N.next().value;N=_.y(_.cC(0,void 0,"LSY2Ub"));r=N.next().value;var NJ=N.next().value,$z=r;N=_.y(_.cC(0,void 0,"oS46jc"));var hN=N.next().value,bo=N.next().value,
xz=function(){var i9,KE=(i9=K.data())==null?void 0:i9.responsiveContainerConfiguration,c4,cx;return KE?eap(KE==null?void 0:KE.responsiveSize):(cx=(c4=K.sizing)==null?void 0:c4.call(K))!=null?cx:"STANDARD"};
N=_.zh(function(){return!u()&&v()>0},void 0,"KINjJe");
r=_.zh(function(){return!u()&&v()<m()-w()},void 0,"Ea00Ib");
var qJ=function(){g(f(v()-H()));d(v())},Y8=function(){g(f(v()+H()));
d(v())},Iz=function(){R.value!==null&&af()},qs;
_.tR(function(){af();window.ResizeObserver?(qs=new ResizeObserver(_.iR(Iz,0)),qs.observe(R.value)):window.addEventListener("resize",Iz)});
_.$F(function(){if(window.ResizeObserver){var i9;(i9=qs)==null||i9.disconnect()}else window.removeEventListener("resize",Iz)});
var af=function(){var i9=R.value.clientWidth,KE=K.includeMargin!==void 0?K.includeMargin():!1,c4;var cx=K.hasPeek!==void 0?K.hasPeek():!((c4=K.data())==null||!c4.hasPeek);i9=_.rP({containerWidth:i9,hasPeek:cx,sizing:xz(),marginSettings:KE?a()?4:1:0});NJ(i9.gutter);bo(i9.margin);J(i9.itemWidth);FX(i9.maxContainerWidth<528||a());fB(i9.maxContainerWidth);D()&&h((i9.itemWidth+i9.gutter)*D().length-i9.gutter)};
return _.U("horizontal-shelf-view-model",{class:_.SC("ytwHorizontalShelfViewModelHost",K.className),el:R},_.U(_.X,{cond:function(){var i9;return K.data().header&&!((i9=K.horizontalShelfExperiments)==null?0:i9.call(K).hideHeader)},
then:function(){return _.U("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Im({width:function(){return w()+"px"},
padding:function(){return"0 "+hN()+"px"}})},_.U(_.z1,{data:function(){return K.data().header}},{sectionHeaderViewModel:function(i9){return _.U(_.d6,{data:i9.data,
disableHorizontalPadding:!0,forceSmallLayout:yO,useResponsiveLayout:!0})}}))}}),_.U("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.Im({"margin-top":function(){var i9,KE=K.data().header&&!((i9=K.horizontalShelfExperiments)==null?0:i9.call(K).hideHeader),c4;return(((c4=K.ensureMarginTop)==null?0:c4.call(K))&&!KE?12:0)+"px"}})},_.U("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Im({width:function(){return w()+"px"},
padding:function(){return"0 "+hN()+"px"},
overflow:function(){return u()?"auto":"hidden"}})},_.U("div",{class:"ytwHorizontalShelfViewModelItems",
el:F,style:z},_.U(_.z1,{data:D},{macroMarkerListItemViewModel:function(i9,KE){return _.U("div",{style:_.Im({width:function(){return L()+"px"},
"margin-right":function(){return(KE()===D().length-1?0:$z())+"px"}})},_.U($4s,{data:i9.data,
palette:_.QV(K.palette),isLastItem:function(){return KE()===D().length-1}}))},
lockupViewModel:function(i9,KE){var c4=i9.data;return _.U("div",{style:_.Im({width:function(){return L()+"px"},
"margin-right":function(){return(KE()===D().length-1?0:$z())+"px"}})},_.U(_.ef,{data:c4,
containerType:4,sizing:xz,protectBackground:K.protectBackground,thumbnailFixedWidth:function(){return gxB(c4())+"px"},
thumbnailTargetWidth:function(){return gxB(c4())}}))}}))),_.U(_.X,{cond:N,
then:function(){return _.U("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.U(_.z1,{data:S},{buttonViewModel:function(i9){return _.U(_.oY,{data:i9.data,onClick:qJ})}}))}}),_.U(_.X,{cond:r,
then:function(){return _.U("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.U(_.z1,{data:n},{buttonViewModel:function(i9){return _.U(_.oY,{data:i9.data,onClick:Y8})}}))}})))},"Pc");
_.Ye.idomCompat=!0;var EUN=_.C8(function(K){var d=function(){return K.data().targetId||""},f=function(){var N;
return((N=K.data())==null?void 0:N.expansionEntityKey)||""},H=_.yF(_.Jiu,f),D=!0,S=function(){var N;
return((N=H())==null?void 0:N.value)===d()},n=function(N){_.q7(_.nt("stringEntity",f(),{key:f(),
value:N?d():""}))};
_.Nk(function(){D=!1;K.data().isExpanded&&n(!0)});
var u=function(){if(S()){var N=!0;K.onCollapse!==void 0&&(N=K.onCollapse());N&&n(!1)}else n(!0)},a=_.cp(u),R=function(){var N;
return(((N=K.accordionStyle)==null?void 0:N.call(K))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},F=_.Co(),z=function(){var N,h;
return(h=(N=_.P(K.data().rendererContext,_.uq))==null?void 0:N.label)!=null?h:""},v={},g={};
return _.U("yt-accordion-item-view-model",{class:_.SC("ytAccordionItemViewModelHost",K.className,(v.ytAccordionItemViewModelExpanded=function(){return S()},v.ytAccordionItemViewModelHidden=function(){var N;
return(N=K.hideIfNotExpanded)==null?void 0:N.call(K)},v.ytAccordionItemViewModelMini=R,v)),
"data-target-id":d},_.U("div",{class:"ytAccordionItemViewModelContainer"},_.U("div",{class:"ytAccordionItemViewModelLeftSection","on:click":a,title:z},_.U(_.ji,{text:function(){return K.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:z})),_.U("div",{class:"ytAccordionItemViewModelRightSection"},_.U(_.z1,{data:function(){return S()?K.data().expandButton:K.data().collapseButton}},{buttonViewModel:function(N){return _.U(_.oY,{data:N.data,
className:"ytAccordionItemViewModelToggleButton",onClick:u})}}))),_.U("div",{class:"ytAccordionItemViewModelContainer"},_.U("div",{class:_.SC("ytAccordionItemViewModelContent",(g.ytAccordionItemViewModelExpandedSubtitle=function(){return S()},g)),
el:F,style:_.Im({"max-height":function(){return D?"auto":S()?F.value.scrollHeight+"px":"0"}})},_.U(_.X,{cond:function(){return!R()},
then:function(){return _.U(_.ji,{text:function(){return K.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.U(_.z1,{data:function(){return K.data().content}},{horizontalShelfViewModel:function(N){return _.U(_.Ye,{data:N.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Qc");_.hVf=_.C8(function(K){var d=_.y((0,_.yKf)(K.data)).next().value,f=function(){return K.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},H=function(){return f()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},D=_.y(_.cC(!0,void 0,"FVec2e")),S=D.next().value,n=D.next().value,u=function(){return H()&&S()},a=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){n(!S())}}},R=_.cp(function(){d().onTitleTap&&_.me(d().onTitleTap||{})});
D={};return _.U("yt-accordion-view-model",{class:_.SC("ytAccordionViewModelHost",(D.ytAccordionViewModelMinimized=function(){return u()},D)),
"data-target-id":function(){return K.data().targetId||""}},_.U(_.X,{cond:function(){return H()||!!d().title},
then:function(){return _.U("div",{class:"ytAccordionViewModelHeader"},_.U("div",{class:"ytAccordionViewModelTitleSection"},_.U("div",{class:"ytAccordionViewModelTitleWrapper"},_.U(_.X,{cond:function(){return!!K.data().headerIcon},
then:function(){return _.U(_.U5,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var F;return(F=K.data().headerIcon)==null?void 0:F.iconType}})}}),_.U("div",{class:"ytAccordionViewModelTitle",
"on:click":R},_.U(_.ji,{className:"ytAccordionViewModelTitleText",text:function(){return d().title}})))),_.U("div",{class:"ytAccordionViewModelButtonSection"},_.U(_.X,{cond:H,
then:function(){return _.U(xB,{data:a,iconName:function(){return u()?"chevron_down":"chevron_collapse"}})}})))}}),_.U("div",{class:"ytAccordionViewModelContent"},_.U(_.z1,{data:function(){return d().contents}},{accordionItemViewModel:function(F){return _.U(EUN,{data:F.data,
className:"ytAccordionViewModelRow",accordionStyle:f,hideIfNotExpanded:u,onCollapse:function(){return H()?(n(!0),!1):!0}})}})),_.U("div",null,_.U(_.X,{cond:function(){return!H()&&(!!d().disclaimerFooter||!!d().footer)},
then:function(){return _.U("div",{class:"ytAccordionViewModelFooter"},_.U(_.ji,{text:function(){return d().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.U(_.z1,{data:function(){return K.data().footer}},{flexibleActionsViewModel:function(F){return _.U(OO,{data:F.data,
layout:0})}}))}})))},"Rc");_.sP(_.hVf,"yt-accordion-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d,f=(d=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:d(),H=_.y(_.cC(!1,void 0,"BxguL"));d=H.next().value;var D=H.next().value;H=_.y(_.cC(!0,void 0,"WTCeFf"));var S=H.next().value,n=H.next().value,u=_.Co(),a=function(N){D(!0);N={learningJourneyFormData:{query:N}};_.me(K.data().searchEndpoint||{},{form:{formData:N}});return!1},R=_.cp(function(N){N.target.closest("button-view-model")&&D(!0)});
H=_.cp(function(){n(u.value.value.length===0)});
var F=_.cp(function(N){if(N.key==="Enter"&&!N.shiftKey&&!S()){var h=N.target;N.preventDefault();a(h.value)}}),z={},v={},g={};
return _.U("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.U("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.U(_.jV,{data:function(){return K.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.U("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.U("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.U("div",{class:_.SC("ytLearningJourneyZeroStateSearchBar",(z.ytLearningJourneyZeroStateSearchBarDark=f,z))},_.U("textarea",{class:_.SC("ytLearningJourneyZeroStateTextInput",(v.ytLearningJourneyZeroStateTextInputDark=f,v)),el:u,"on:keyup":H,"on:keydown":F,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.U("div",{class:_.SC("ytLearningJourneyZeroStateSearchButtonContainer",(g.ytLearningJourneyZeroStateSearchButtonContainerDark=f,g))},_.U(_.oY,{data:function(){return _.P(K.data().searchButton,_.XN)},
className:"search-button",onClick:function(){return a(u.value.value)},
buttonOverrides:function(){return{disabled:S(),style:f?"mono-inverse":"mono",size:"XL"}}}))),_.U(_.X,{cond:function(){return!!K.data().errorBanner},
then:function(){return _.U("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.U(_.z1,{data:function(){return K.data().errorBanner}},{alertBannerViewModel:function(N){return _.U(_.D46,{data:N.data,
"client-ve-type":264617})}}))}})),_.U(_.X,{cond:d,
then:function(){return _.U("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.U(_.z1,{data:function(){return K.data().loader}},{learningJourneyLoaderViewModel:function(N){return _.U(_.tzJ,{data:N.data})}}))},
else:function(){return _.U("div",null,_.U(_.X,{cond:function(){return!!K.data().learningJourneyShelf},
then:function(){return _.U("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.U("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return K.data().learningJourneySectionTitle}),_.U(_.z1,{data:function(){return K.data().learningJourneyShelf}},{horizontalShelfViewModel:_.Ye}))}}),_.U("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.U("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return K.data().suggestedJourneySectionTitle}),
_.U("div",{"on:click":R},_.U(_.z1,{data:function(){return K.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(N){return _.U(OO,{data:N.data,
layout:1})}}))))}}))},"Sc"),"yt-learning-journey-zero-state",{props:{data:_.rs}});var bzJ=_.C8(function(K){var d=K.data;return _.U("ytvl-live-leaderboard-item-action-content-view-model",{class:_.SC("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.U(_.ji,{text:function(){var f;return(f=d())==null?void 0:f.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.U(_.z1,{data:function(){return d().actionButton}},{buttonViewModel:function(f){return _.U(_.oY,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:f.data})}}))},"Tc");var m44=_.C8(function(K){var d=K.data;return _.U("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.SC("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.U(_.ji,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var f;return(f=d())==null?void 0:f.displayName},
ellipsisTruncate:!0}),_.U(_.z1,{data:function(){return d().badge}},{buttonViewModel:function(f){return _.U(_.oY,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:f.data})}}))},"Uc");_.sP(_.C8(function(K){var d=K.data;return _.U("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.U("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.U(_.ji,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var f;return(f=d())==null?void 0:f.rank}})),_.U("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.U(_.z1,{data:function(){return d().avatar}},{avatarViewModel:_.Pz})),_.U("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.U(_.z1,{data:function(){return d().content}},{liveLeaderboardItemChannelContentViewModel:m44,
liveLeaderboardItemActionContentViewModel:bzJ})),_.U(_.ji,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var f;return(f=d())==null?void 0:f.points}}))},"Vc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=K.data;return _.U("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.U(_.ji,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var f,H;return(f=d())==null?void 0:(H=f.ranking)==null?void 0:H.rank}}),_.U("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.U(_.z1,{data:function(){return d().avatar}},{avatarViewModel:_.Pz})),_.U(_.ji,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var f,H;return(f=d())==null?void 0:(H=f.channelContent)==null?void 0:H.channelName}}),_.U(_.ji,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var f;return(f=d())==null?void 0:f.points}}))},"Wc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.rs}});var lOB=_.C8(function(K){K=_.jP(K,{wrapper:!1}).wrapper;return _.U(_.X,{cond:K,then:function(){return _.U("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.U("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.U("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Xc");
lOB.idomCompat=!0;var WBv=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],GqB=_.C8(function(K){var d=K.data;var f=_.Co(),H=_.zh(function(){return d().command},void 0,"tJY20c");
_.ol(function(){H()&&_.EP(H(),{form:{element:f.value}})});
return _.U("div",{el:f,class:"YtQrCodeRendererHostContainer"},_.U(_.X,{cond:function(){return d().qrCodeImage},
then:function(D){return _.U(_.jV,{data:D,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.U(_.X,{cond:function(){return d().spinner},
then:function(){return _.U(lOB,null)}})}}),_.U(_.X,{cond:function(){return d().label},
then:function(D){return _.U(_.ji,{text:D,className:"YtQrCodeRendererHostLabel"})}}),_.U(_.X,{cond:function(){return d().labels},
then:function(D){return _.U("div",{class:"YtQrCodeRendererHostLabels"},_.U(_.v_,{each:D},function(S){return _.U(_.ji,{text:S})}))}}))},"Zc");_.sP(_.C8(function(K){var d=K.data;var f=_.zh(function(){return d().qrEntityKey},void 0,"joYCxd"),H=_.zh(function(){return d().deleteEntityOnDismiss},void 0,"x3yAde"),D=_.zh(function(){return d().command},void 0,"dJe1Re"),S=_.yF(tGB,f);
K=_.zh(function(){return d().qrCodeImage},void 0,"qM5dZe");
var n=_.zh(function(){return d().style&&WBv.includes(d().style)},void 0,"CaNEkf"),u=_.Co();
_.wU(u,{visibilityCallback:function(a){a&&D()&&_.EP(D())},
showOption:{calledOnce:!0,state:"visible"}});_.tR(function(){_.$F(function(){H()&&f()&&_.TC().dispatch(_.nt("qrCodeEntity",f()))})});
return _.U("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:u},_.U(_.X,{cond:n,then:function(){return _.U(_.X,{cond:S,then:function(a){return _.U(GqB,{data:a})}})}}),_.U(_.X,{cond:K,
then:function(a){return _.U(_.jV,{data:a,alt:""})}}))},"Yc"),"yt-qr-code-renderer",{props:{data:_.rs}});_.Ark=_.C8(function(K){var d=K.data;var f=K.topbarOffset;var H,D=((H=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:H())||!1;return _.U("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var S=d();var n,u,a=D?(n=S.config)==null?void 0:n.darkThemeBackgroundColor:(u=S.config)==null?void 0:u.lightThemeBackgroundColor;S=a?_.E1(a):void 0;S="background-color: "+S+";";f!==void 0&&(S+="top: -"+f()+"px;");return S},
"aria-hidden":!0},_.U(_.X,{cond:function(){var S,n,u;return!!((S=d().backgroundImageConfig)==null?0:(n=S.image)==null?0:(u=n.sources)==null?0:u.length)},
then:function(){return _.U(_.jV,{data:function(){var S;return(S=d().backgroundImageConfig)==null?void 0:S.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.U("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+O6o(D,d().gradientColorConfig)+";"}}))},"$c");
_.Ark.idomCompat=!0;var tY=_.C8(function(K){var d=K.className;var f=K.data;var H=K.isOverlay;var D=K.maxLinesOverride;var S=K.useMediumText;K=_.Co();var n=function(){return f().alwaysShowTruncationText},u=function(){return f().truncationText},a=function(){return S!==void 0&&S()?"medium":"small"},R=function(){return H!==void 0&&H()?"overlay":"default"},F=function(){var h,m;
return(m=(h=_.P(f().rendererContext,_.uq))==null?void 0:h.label)!=null?m:""},z=_.y(_.cC(!1,void 0,"mkuWzb")),v=z.next().value,g=z.next().value;
_.W9(K,function(){return f().rendererContext});
z=_.cp(function(){f().expandOnTap&&g(!v());return!1});
var N={};return _.U("yt-description-preview-view-model",{el:K,class:_.SC("yt-description-preview-view-model-wiz",d,(N["yt-description-preview-view-model-wiz--clickable"]=function(){var h;return!((h=_.P(f().rendererContext,STz))==null||!h.onTap)},N["yt-description-preview-view-model-wiz--is-overlay"]=H,N)),
"on:click":z},_.U(_.X,{cond:function(){return f().description},
then:function(h){return _.U(_.X,{cond:v,then:function(){var m={};return _.U("div",{class:_.SC("yt-description-preview-view-model-wiz__description",(m["yt-description-preview-view-model-wiz__description--medium-text"]=S,m))},_.U(_.ji,{text:h}))},
else:function(){return _.U(iPN,{text:h,alwaysShowTruncationText:n,truncationText:u,maxLines:function(){var m;return(m=D==null?void 0:D())!=null?m:f().maxLines},
textStyle:R,accessibilityLabel:F,textSize:a})}})}}))},"ad");
tY.idomCompat=!0;var Tpk=_.C8(function(K){var d=K.data;var f=K.isOverlay;return _.U("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.U("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.U(_.z1,{data:function(){return d().header}},{sectionHeaderViewModel:function(H){return _.U(_.d6,{data:H.data,
isOverlay:f})}})),_.U("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.U(_.z1,{data:function(){return d().channelInfoButtons}},{flexibleActionsViewModel:OO})),_.U("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.U(_.z1,{data:function(){return d().description}},{descriptionPreviewViewModel:function(H){return _.U(tY,{data:H.data,
isOverlay:f})}})))},"bd");
Tpk.idomCompat=!0;var rr4=_.C8(function(K){var d=K.data;var f={};return _.U("factoid-view-model",{class:_.SC("ytwFactoidViewModelHost",(f.ytwFactoidViewModelHostOverlay=K.isOverlay,f))},_.U(_.ji,{text:function(){return d().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.U(_.ji,{text:function(){return d().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"cd");
rr4.idomCompat=!0;var qWt=_.C8(function(K){var d=K.data;var f=K.isOverlay;return _.U("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.U(_.z1,{data:function(){return d().factoids}},{factoidViewModel:function(H){return _.U(rr4,{data:H.data,
isOverlay:f})}}))},"dd");
qWt.idomCompat=!0;_.QAt=_.C8(function(K){var d=K.data;var f=K.isOverlay;return _.U("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.U(_.z1,{data:function(){return d().items}},{channelInfoViewModel:function(H){return _.U("div",{class:"ytwCourseMetadataViewModelHostItem"},_.U(Tpk,{data:H.data,
isOverlay:f}))},
coursePerksViewModel:function(H){return _.U("div",{class:"ytwCourseMetadataViewModelHostItem"},_.U(gU2,{data:H.data,isOverlay:f}))},
descriptionPreviewViewModel:function(H){return _.U("div",{class:"ytwCourseMetadataViewModelHostItem"},_.U(tY,{data:H.data,isOverlay:f}))},
factoidsRowViewModel:function(H){return _.U("div",{class:"ytwCourseMetadataViewModelHostItem"},_.U(qWt,{data:H.data,isOverlay:f}))},
progressViewModel:function(H){return _.U("div",{class:"ytwCourseMetadataViewModelHostItem"},_.U(Oz6,{data:H.data,isOverlay:f}))}}))},"ed");var jAN=_.C8(function(K){return _.U("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.U(_.z1,{data:function(){return K.data().content}},{courseMetadataViewModel:function(d){return _.U(_.QAt,{data:d.data,
isOverlay:K.isOverlay})},
progressViewModel:function(d){return _.U(Oz6,{data:d.data})}}))},"fd");var CKt=_.C8(function(K){var d=K.data;K=K.className;var f=_.Co(),H=function(){var S;return _.lX((S=d())==null?void 0:S.rendererContext)},D={};
D=(D["dynamic-text-view-model-wiz"]=!0,D["dynamic-text-view-model-wiz--tappable"]=function(){return H()},D);
_.W9(f,function(){var S;return(S=d())==null?void 0:S.rendererContext});
return _.U("yt-dynamic-text-view-model",{el:f,role:function(){return H()?"link":void 0},
tabindex:function(){return H()?0:void 0},
class:_.SC(K,D)},_.U("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var S,n,u;return(u=(n=_.P((S=d())==null?void 0:S.rendererContext,_.uq))==null?void 0:n.label)!=null?u:""}},_.U(_.ji,{text:function(){return d().text},
userInput:!0})))},"gd");
CKt.idomCompat=!0;_.x4v=_.C8(function(K){var d=K.data;var f=K.isPositionRelative;var H=_.x7(),D=_.Y_z("(max-width: 527.9px)"),S=function(){var n,u;return(u=(n=d())==null?void 0:n.style)!=null?u:"IMAGE_BANNER_STYLE_FULL_BLEED"};
K={};K=(K["yt-image-banner-view-model-wiz"]=!0,K["yt-image-banner-view-model-wiz--inset"]=function(){return tmG(S())},K["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.hc(!0)&&!(f==null?0:f())},K["yt-image-banner-view-model-wiz--small-inset"]=function(){return tmG(S())&&D()},K["yt-image-banner-view-model-wiz--tappable"]=function(){var n;
return _.hc(H.value)&&_.lX((n=d())==null?void 0:n.rendererContext)},K);
_.W9(H,function(){var n;return(n=d())==null?void 0:n.rendererContext});
return _.U("yt-image-banner-view-model",{el:H,class:_.SC(K)},_.U(_.X,{cond:function(){var n;return(n=d())==null?void 0:n.image},
then:function(){return _.U(_.jV,{data:function(){return d().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.U(_.z1,{data:function(){var n;
return(n=d())==null?void 0:n.overlays}},{thumbnailHoverOverlayViewModel:M9}))},"hd");
_.x4v.idomCompat=!0;var LBt;LBt=_.C8(function(K){var d=K.condition;var f=K.content;return _.U(_.X,{cond:d,then:function(){return _.U("div",{class:"page-header-view-model-wiz__scroll-container"},f())},
else:function(){return f()}})},"id");
_.BpJ=_.C8(function(K){var d=K.data;var f=K.noPadding;var H=K.enableBanner;var D=K.cinematicContainerTopbarOffset;var S=K.allowCinematicContainerOverflow;var n=K.displayAsSidebar;var u=K.displayAsPanel;var a=oxX(),R=function(){return!!d().image||!!d().animatedImage},F=function(){return!!d().background},z=function(){return(n==null?0:n())||(u==null?0:u())?1:a()},v=function(){return z()===1},g=function(){return v()||z()===2},N=function(){return z()===4},h=function(){var hN=d();
var bo=!!d().heroImage;var xz=z(),qJ=$2N(d()),Y8=n==null?void 0:n(),Iz=!hN.metadata,qs;if(qs=bo?_.P(hN.heroImage,hFv):_.P(hN.animatedImage||hN.image,hFv)){hN=qs.style;var af=qs.layoutMode;if(af!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(qs=RzY(U6X(qs)),bo)bo=NIO(xz,hN,af,qs,Y8);else b:if(Iz)bo=xz===1?{size:48}:{size:72};else switch(xz){case 1:bo={size:72};break b;case 2:bo={size:120};break b;default:bo=qJ<4?{size:120}:{size:160}}else bo=void 0}else bo={size:0};return bo};
K={};K=_.SC((K["page-header-view-model-wiz"]=!0,K["page-header-view-model-wiz--no-padding"]=function(){return!(f==null||!f())},K["page-header-view-model-wiz--small-top-padding"]=function(){return v()&&!d().actions||z()===2&&!(R()||d().heroImage)},K["page-header-view-model-wiz--small-bottom-padding"]=function(){return g()&&!d().actions},K["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(S==null?0:S())},K["page-header-view-model-wiz--display-as-sidebar"]=n,K["page-header-view-model-wiz--display-as-panel"]=
u,K));
var m={},T=_.SC((m["page-header-view-model-wiz__page-header-headline"]=!0,m["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var hN;return(hN=h())==null?void 0:hN.allowFullWidth},m)),r=function(){var hN;
return g()&&!((hN=h())==null?0:hN.allowFullWidth)},J=function(){return v()&&(!!d().heroImage||R())&&$2N(d())>0},L=function(){return J()&&(u==null?void 0:u())};
m={};var fB=_.SC((m["page-header-view-model-wiz__page-header-title"]=!0,m["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!J()},m["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return J()&&!L()},m["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=L,m["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=F,m));
m={};var w=_.SC((m["page-header-view-model-wiz__page-header-headline-image"]=!0,m["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!d().heroImage&&g()},m));
m={};var yO=_.SC((m["page-header-view-model-wiz__page-header-banner-container"]=H,m["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var hN;return(H==null?void 0:H())&&((hN=_.P(d().banner,_.mgH))==null?void 0:hN.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},m));
m={};var FX=_.SC((m["page-header-view-model-wiz__page-header-content-metadata"]=!0,m["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=F,m));m={};var NJ=_.SC((m["page-header-view-model-wiz__page-header-flexible-actions"]=!0,m["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!d().metadata||g()},m["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!g()},m));
m={};var $z=_.SC((m["page-header-view-model-wiz__page-header-attribution"]=!0,m["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=F,m));return _.U("yt-page-header-view-model",{class:K},_.U(_.X,{cond:F,then:function(){return _.U("div",{class:"page-header-view-model-wiz__page-header-background"},_.U(_.z1,{data:function(){return d().background}},{cinematicContainerViewModel:function(hN){return _.U(_.Ark,{data:hN.data,
topbarOffset:D})}}))}}),_.U(LBt,{condition:function(){return!(n==null||!n())},
content:function(){return _.U("div",{class:"page-header-view-model-wiz__page-header-content"},_.U(_.X,{cond:function(){return(H==null?void 0:H())&&d().banner},
then:function(){return _.U("div",{class:yO},_.U(_.z1,{data:function(){return d().banner}},{imageBannerViewModel:_.x4v}))}}),_.U("div",{class:T},_.U(_.X,{cond:R,
then:function(){return _.U(_.z1,{data:function(){var hN;if(!(hN=d().animatedImage)){hN=d();if(R()){var bo=hN=Object.assign({},hN),xz=z(),qJ=$2N(d()),Y8=bo.image,Iz=_.P(Y8,bhL),qs=Iz==null?void 0:Iz.avatar,af=_.P(qs,_.G1);if(Y8&&qs&&af){switch(xz){case 1:af.avatarImageSize="AVATAR_SIZE_XL";break;case 2:af.avatarImageSize="AVATAR_SIZE_XXL";break;default:qJ<4?af.avatarImageSize="AVATAR_SIZE_XXL":af.avatarImageSize="AVATAR_SIZE_XXXL"}_.M("web_enable_sink_page_header_view_model")&&(_.OP(qs,_.G1,Object.assign({},
af)),Iz.avatar=Object.assign({},qs),_.OP(Y8,bhL,Object.assign({},Iz)),bo.image=Object.assign({},Y8))}}hN=hN.image}return hN}},{contentPreviewImageViewModel:function(hN){return _.U(_.kd,{data:hN.data,
className:w,imageSizeConfig:h})},
decoratedAvatarViewModel:function(hN){return _.U(_.gW,{data:hN.data,className:w})}})}}),_.U(_.X,{cond:function(){return!!d().heroImage&&!r()},
then:function(){return _.U(_.z1,{data:function(){return d().heroImage}},{contentPreviewImageViewModel:function(hN){return _.U(_.kd,{data:hN.data,
className:w,imageSizeConfig:h})}})}}),_.U("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.U(_.X,{cond:function(){return!!d().heroImage&&r()},
then:function(){return _.U("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.U(_.z1,{data:function(){return d().heroImage}},{contentPreviewImageViewModel:function(hN){return _.U(_.kd,{data:hN.data,
className:w,imageSizeConfig:h})}}))}}),_.U(_.z1,{data:function(){return d().title}},{dynamicTextViewModel:function(hN){return _.U(CKt,{data:hN.data,
className:fB})}}),_.U(_.z1,{data:function(){return d().metadata}},{contentMetadataViewModel:function(hN){return _.U(_.eUt,{data:hN.data,
layout:function(){return v()?1:0},
className:FX,isOverlay:F,useMediumText:N})}}),_.U(_.X,{cond:function(){return d().description&&!v()},
then:function(){return _.U(_.z1,{data:function(){return d().description}},{descriptionPreviewViewModel:function(hN){return _.U(tY,{data:hN.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:F,maxLinesOverride:function(){return v()?void 0:1},
useMediumText:N})}})}}),_.U(_.X,{cond:function(){return d().attribution&&!g()},
then:function(){return _.U(_.z1,{data:function(){return d().attribution}},{attributionViewModel:function(hN){return _.U(L76,{data:hN.data,
className:$z,useMediumText:N})}})}}),_.U(_.X,{cond:function(){return d().actions&&!g()},
then:function(){return _.U(_.z1,{data:function(){return d().actions}},{flexibleActionsViewModel:function(hN){return _.U(OO,{data:hN.data,
layout:function(){return ExN(z())},
className:NJ})}})}}))),_.U("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.U(_.X,{cond:function(){return d().description&&v()},
then:function(){return _.U(_.z1,{data:function(){return d().description}},{descriptionPreviewViewModel:function(hN){return _.U(tY,{data:hN.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:F,maxLinesOverride:function(){return v()?void 0:1},
useMediumText:N})}})}}),_.U(_.X,{cond:function(){return d().attribution&&g()},
then:function(){return _.U(_.z1,{data:function(){return d().attribution}},{attributionViewModel:function(hN){return _.U(L76,{data:hN.data,
className:$z,useMediumText:N})}})}}),_.U(_.X,{cond:function(){return d().actions&&g()},
then:function(){return _.U(_.z1,{data:function(){return d().actions}},{flexibleActionsViewModel:function(hN){return _.U(OO,{data:hN.data,
layout:function(){return ExN(z())},
className:NJ})}})}})),_.U("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.U(_.z1,{data:function(){return d().bottomMetadataFlexibleContainer}},{flexibleContainer:function(hN){return _.U(jAN,{data:hN.data,
isOverlay:F})}})))}}))},"jd");
_.BpJ.idomCompat=!0;_.sP(_.C8(function(K){var d=_.y(_.cC(!1,void 0,"vVRl3b")),f=d.next().value,H=d.next().value;return _.U("yt-official-card-view-model",{class:_.SC("ytOfficialCardViewModelHost",K.className),style:_.Im({"background-color":function(){var D,S=ACp((D=K.data())==null?void 0:D.backgroundColor);return S?_.hG(S):void 0}})},_.U(_.z1,{data:function(){return K.data().header}},{pageHeaderViewModel:function(D){return _.U(_.BpJ,{data:D.data,
noPadding:!0})}}),_.U(_.z1,{data:function(){return K.data().contents}},{horizontalShelfViewModel:function(D){return _.U(_.Ye,{data:D.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0}})}}),_.U(_.X,{cond:f,
then:function(){return _.U("div",{class:"ytOfficialCardViewModelExpandedContent"},_.U(_.z1,{data:function(){return K.data().expandedContents}},{horizontalShelfViewModel:function(D){return _.U(_.Ye,{data:D.data,
sizing:"MINI"})}}),_.U("div",{class:"ytOfficialCardViewModelCollapseButton"},_.U(_.z1,{data:function(){return K.data().collapseButton}},{buttonViewModel:function(D){return _.U(_.oY,{data:D.data,
onClick:function(){H(!f())}})}})))},
else:function(){return _.U("div",{class:"ytOfficialCardViewModelExpandButton"},_.U(_.z1,{data:function(){return K.data().expandButton}},{buttonViewModel:function(D){return _.U(_.oY,{data:D.data,
onClick:function(){H(!f())}})}}))}}))},"kd"),"yt-official-card-view-model",{props:{data:_.rs,
className:_.rs}});var hE5=_.IY({buttonViewModel:_.oY});_.Zx(b6u);_.fK(b6u,"ytw-search-friction-view-model",{propNames:["data"]});_.oD=_.C8(function(K){var d=_.Co(),f,H=(f=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:f();_.ol(function(){var D=d.value;var S=new DJs,n=new Map(S.JSC$7310_sanitizerTable.globalAttributePolicies);n.set("style",{policyAction:4});S.JSC$7310_sanitizerTable=new cc(S.JSC$7310_sanitizerTable.allowedElements,S.JSC$7310_sanitizerTable.elementPolicies,S.JSC$7310_sanitizerTable.allowedGlobalAttributes,n,S.JSC$7310_sanitizerTable.globallyAllowedAttributePrefixes);var u=["data-time"];if(u===void 0)n=new Set(S.JSC$7310_sanitizerTable.globallyAllowedAttributePrefixes),
n.add("data-"),S.JSC$7310_sanitizerTable=new cc(S.JSC$7310_sanitizerTable.allowedElements,S.JSC$7310_sanitizerTable.elementPolicies,S.JSC$7310_sanitizerTable.allowedGlobalAttributes,S.JSC$7310_sanitizerTable.globalAttributePolicies,n);else{n=new Set(S.JSC$7310_sanitizerTable.allowedGlobalAttributes);u=_.y(u);for(var a=u.next();!a.done;a=u.next()){a=a.value;if(a.indexOf("data-")!==0)throw Error("qa`"+a);n.add(a)}S.JSC$7310_sanitizerTable=new cc(S.JSC$7310_sanitizerTable.allowedElements,S.JSC$7310_sanitizerTable.elementPolicies,
n,S.JSC$7310_sanitizerTable.globalAttributePolicies,S.JSC$7310_sanitizerTable.globallyAllowedAttributePrefixes)}n=new Set(S.JSC$7310_sanitizerTable.allowedGlobalAttributes);n.add("class");S.JSC$7310_sanitizerTable=new cc(S.JSC$7310_sanitizerTable.allowedElements,S.JSC$7310_sanitizerTable.elementPolicies,n,S.JSC$7310_sanitizerTable.globalAttributePolicies,S.JSC$7310_sanitizerTable.globallyAllowedAttributePrefixes);_.TY(D,_.phB(S.build(),lyz(K.text())));WLz(d.value)});
f={};return _.U("div",null,_.U("markdown-div",{class:_.SC("ytwMarkdownDivHost",(f.ytwMarkdownDivDark=H,f.ytwMarkdownDivHostSmall=function(){var D;return((D=K.isSmallText)==null?void 0:D.call(K))||!1},f)),
el:d}))},"ld");
_.oD.idomCompat=!0;var Jrs=_.C8(function(K){var d=K.imageData;var f=_.QV(K.isInList,!1),H=function(){return f()?{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 _.U("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.U(_.X,{cond:function(){return d().image},
then:function(D){return _.U(_.jV,{data:D,alt:function(){return H().alt},
contentMode:function(){return H().contentMode},
targetWidth:function(){return H().targetWidth},
targetHeight:function(){return H().targetHeight},
className:function(){return H().className}})}}),_.U("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.U("div",{class:_.SC("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.U(_.ji,{text:function(){return d().title}})),_.U(_.v_,{each:function(){var D;
return(D=d().description)!=null?D:[]}},function(D){return _.U("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.U($e,{content:D}))})))},"md"),sAL=_.C8(function(K){var d=K.list;
var f=function(){var H;return(H=d().items)!=null?H:[]};
return _.U("div",{class:"ytwGenAiRichTextViewModelListContent"},_.U(_.X,{cond:function(){return d().title},
then:function(H){return _.U("div",{class:_.SC("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.U(_.ji,{text:H}))}}),_.U(_.X,{cond:function(){return d().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.U("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.U(_.v_,{each:f},function(H){return _.U("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.U($e,{content:H,isInList:!0}))}))}}),_.U(_.X,{cond:function(){return d().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.U("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.U(_.v_,{each:f},function(H){return _.U("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.U($e,{content:H,isInList:!0}))}))}}),_.U(_.X,{cond:function(){return d().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.U("div",{class:"ytwGenAiRichTextViewModelImageList"},_.U(_.v_,{each:f},function(H){return _.U("div",{class:"ytwGenAiRichTextViewModelListItem"},_.U($e,{content:H,isInList:!0}))}))}}))},"nd"),kqB=_.C8(function(K){var d=K.table;
return _.U("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.U("thead",null,_.U("tr",null,_.U(_.v_,{each:function(){var f,H;return(H=(f=d().header)==null?void 0:f.cells)!=null?H:[]}},function(f){return _.U("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.U(_.v_,{each:function(){return f.contents}},function(H){return _.U($e,{content:H})}))}))),_.U("tbody",null,_.U(_.v_,{each:function(){var f;
return(f=d().rows)!=null?f:[]}},function(f){return _.U("tr",null,_.U(_.v_,{each:function(){return f.cells}},function(H){return _.U("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.U(_.v_,{each:function(){return H.contents}},function(D){return _.U($e,{content:D})}))}))})))},"od"),$e=_.C8(function(K){var d=K.content;
var f=_.QV(K.isInList,!1),H=function(){var D,S;return(S=(D=d().contentBlock)==null?void 0:D.contents)!=null?S:[]};
return _.U("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.U(_.X,{cond:function(){return d().text},
then:function(D){return _.U(_.ji,{className:"ytwGenAiRichTextViewModelText",text:D})}}),_.U(_.X,{cond:function(){return d().image},
then:function(D){return _.U(Jrs,{imageData:D,isInList:f})}}),_.U(_.X,{cond:function(){return d().list},
then:function(D){return _.U(sAL,{list:D})}}),_.U(_.X,{cond:function(){return d().contentBlock},
then:function(){return _.U("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.U(_.v_,{each:H},function(D){return _.U($e,{content:D,isInList:!1})}))}}),_.U(_.X,{cond:function(){return d().table},
then:function(D){return _.U(kqB,{table:D})}}))},"pd"),wi8=_.C8(function(K){var d={};
d=_.nK("ytwGenAiRichTextViewModelHost",(d.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.fy("search_overview_link_style")),d));return _.U("gen-ai-rich-text-view-model",{class:d},_.U($e,{content:function(){return K.data().content}}))},"qd");_.Zx(GLB);_.Zx(Nj);_.Zzs=_.C8(function(K){var d=K.data;var f=function(){var h;return((h=d().loadingUi)!=null?h:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},H=function(){return d().isLoading&&(f()==="UNSPECIFIED"||f()==="GHOST_CARD")},D=function(){return!d().isLoading},S=function(){return!!d().content&&!d().contents},n=function(){return!!d().contents},u=function(){return!!d().nextQueryButtons},a=function(){return d().isLoading&&f()==="INVISIBLE"},R=function(){var h,m;
return(m=(h=d().headerIcon)==null?void 0:h.iconType)!=null?m:""},F=function(){var h;
return(h=d().content)!=null?h:""},z=function(){return!!d().sourcesSection},v,g=!((v=_.eq().resolve(_.Zd(_.AJ)))==null||!v()),N=_.zh(function(){var h=[],m=d().contents;
if(m)for(var T=0;T<m.length;T++){var r=_.P(m&&m[T],QsN);r&&h.push(r)}return h},void 0,"ycU97e");
_.tR(function(){d().isLoading||_.YJ("so_re",void 0,"search_overview_answer")});
return _.U("ytd-overview-answer-view-model",{class:function(){var h={};h=(h.ytdOverviewAnswerViewModelHost=!0,h.ytdOverviewAnswerViewModelDarkBackground=g&&!a(),h.ytdOverviewAnswerViewModelLightBackground=!g&&!a(),h);return _.nK(h)}},_.U(_.X,{cond:function(){return!a()},
then:function(){return _.U(_.dF,null,_.U("h2",null,_.U("div",{class:"ytdOverviewAnswerViewModelHeader"},_.U(_.X,{cond:R,then:function(h){return _.U("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.U(_.U5,{icon:h}))}}),_.U("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.U("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return d().headerText}),_.U("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.U(_.ji,{text:function(){return d().headerSubtext}}))))),_.U(_.X,{cond:H,
then:function(){return GLB()}}),_.U(_.X,{cond:D,
then:function(){return _.U(_.dF,null,_.U(_.X,{cond:S,then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelText"},_.U(_.oD,{text:F,isSmallText:!0}))}}),_.U(_.X,{cond:n,
then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelRichText"},_.U(_.v_,{each:N},function(h){return _.U(wi8,{data:h})}))}}),_.U(_.X,{cond:u,
then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.U(_.z1,{data:function(){return d().nextQueryButtons}},{buttonViewModel:function(h){return _.U(_.oY,{data:h.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Ye}))}}),_.U("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.U("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.U(_.X,{cond:function(){return!!_.P(d().likeButtonViewModel,_.gP)&&!!_.P(d().dislikeButtonViewModel,_.Ok)},
then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.U(_.YY,{data:function(){return _.P(d().likeButtonViewModel,_.gP)},
disableIconAnimation:!0}),_.U(_.NZ,{data:function(){return _.P(d().dislikeButtonViewModel,_.Ok)}}))}})),_.U(_.X,{cond:function(){var h;
return(h=d().sourcesSection)==null?void 0:h.headerText},
then:function(h){return _.U("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.U(_.ji,{text:h}))}})),_.U(_.X,{cond:z,
then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelSources"},_.U(_.z1,{data:function(){var h;return(h=d().sourcesSection)==null?void 0:h.sourcesShelf}},{buttonViewModel:_.oY,
horizontalShelfViewModel:function(h){return _.U(_.Ye,{data:h.data,includeMargin:!0,hasPeek:!0})}}))}}),_.U(_.X,{cond:function(){return d().disclaimerText},
then:function(){return _.U("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.U(_.ji,{text:function(){return d().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"rd");var eVt=_.C8(function(K){var d=K.data;var f=K.active;var H=_.Co();_.ol(function(){var D,S,n,u=((D=_.eq().resolve(_.Zd(_.AJ)))==null?0:D())?(S=d())==null?void 0:S.darkThemeColorPalette:(n=d())==null?void 0:n.lightThemeColorPalette;u&&(u.additiveBackground&&H.value.style.setProperty("--timestamp-active-background-color",_.hG(u.additiveBackground)),u.textSecondary&&H.value.style.setProperty("--timestamp-active-color",_.E1(u.textSecondary)))},"KHcbwb");
K={};return _.U("transcript-segment-view-model",{class:_.SC("ytwTranscriptSegmentViewModelHost",(K.ytwTranscriptSegmentViewModelHostActive=f,K.ytwTranscriptSegmentViewModelHostModern=_.M("enable_timeline_view_modern_transcript")||_.M("enable_timeline_view_modern_transcript_fe"),K)),el:H},_.U(_.X,{cond:function(){var D;return(D=d())==null?void 0:D.timestamp},
then:function(D){var S={};return _.U("div",{class:_.SC("ytwTranscriptSegmentViewModelTimestamp",(S.ytwTranscriptSegmentViewModelTimestampActive=f,S))},D)}}),_.U(_.ji,{text:function(){var D,S,n;
return(n=(D=d())==null?void 0:D.attributedText)!=null?n:{content:(S=d())==null?void 0:S.simpleText}},
linkInheritColor:!0}))},"sd");var pi4=_.C8(function(K){var d=K.data;return _.U("div",{class:"yt-video-attributes-section-view-model__header"},_.U("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return d().headerTitle}),_.U(_.X,{cond:function(){return d().headerSubtitle},
then:function(){return _.U("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return d().headerSubtitle})}}))},"td"),KY9=_.C8(function(K){function d(N){return Math.max(Math.min(N,0),R()-u())}
var f=K.data;var H=_.Co(),D=_.Co();K=_.y(_.cC(0,void 0,"ucDlDf"));var S=K.next().value,n=K.next().value,u=S;K=_.y(_.cC(0,void 0,"lHzSub"));S=K.next().value;var a=K.next().value,R=S;K=_.y(_.cC(0,void 0,"Q8fDIe"));var F=K.next().value,z=K.next().value;_.tR(function(){var N=function(){n(D.value.scrollWidth);a(H.value.clientWidth)};
N();if(window.ResizeObserver){var h=new ResizeObserver(N);h.observe(H.value);_.$F(function(){h.disconnect()})}});
var v=function(){z(d(F()+R()))},g=function(){z(d(F()-R()))};
return _.U("yt-video-attributes-section-view-model",null,_.U("div",{class:"yt-video-attributes-section-view-model"},_.U(_.X,{cond:function(){return f().headerTitle},
then:function(){return _.U(pi4,{data:f})}}),_.U("div",{class:_.SC("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:H},_.U("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Im({transform:function(){var N=F();_.mD("HTML_DIR")==="rtl"&&(N*=-1);return"translateX("+N+"px)"}}),
el:D},_.U(_.z1,{data:function(){return f().videoAttributeViewModels}},{videoAttributeViewModel:cZN}))),_.U(_.z1,{data:function(){return f().footerButton}},{buttonViewModel:function(N){return _.U(_.oY,{data:N.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.U(_.X,{cond:function(){return F()<0&&f().previousButton},
then:function(){return _.U("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.U(_.z1,{data:function(){return f().previousButton}},{buttonViewModel:function(N){return _.U(_.oY,{data:N.data,
onClick:v})}}))}}),_.U(_.X,{cond:function(){return F()>R()-u()&&f().nextButton},
then:function(){return _.U("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.U(_.z1,{data:function(){return f().nextButton}},{buttonViewModel:function(N){return _.U(_.oY,{data:N.data,
onClick:g})}}))}})))},"ud");
KY9.idomCompat=!0;var dE8=_.C8(function(K){var d=K.data;var f=K.active;var H={},D={};return _.U("timeline-item-view-model",{class:_.SC("ytwTimelineItemViewModelHost",(H.ytwTimelineItemViewModelHostChapterChild=K.chapterChild,H.ytwTimelineItemViewModelModern=_.M("enable_timeline_view_modern_transcript")||_.M("enable_timeline_view_modern_transcript_fe"),H))},_.U("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.U("div",{class:_.SC("ytwTimelineItemViewModelTimestamp",(D.ytwTimelineItemViewModelTimestampActive=
f,D))},function(){return d().timestamp})),_.U("div",{class:"ytwTimelineItemViewModelContentItems"},_.U(_.z1,{data:function(){return d().contentItems}},{transcriptSegmentViewModel:function(S){return _.U(eVt,{data:S.data,
active:f})},
videoAttributesSectionViewModel:KY9})))},"vd");var fN8=_.C8(function(K){var d=K.data;K={};return _.U("timeline-chapter-view-model",{class:_.SC("ytwTimelineChapterViewModelHost")},_.U("div",{class:_.SC("ytwTimelineChapterViewModelTitle",(K.ytwTimelineChapterViewModelModern=_.M("enable_timeline_view_modern_transcript")||_.M("enable_timeline_view_modern_transcript_fe"),K))},function(){return d().title}),_.U(_.z1,{data:function(){return d().contents}},{timelineItemViewModel:function(f){return _.U(dE8,{data:f.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(f){return _.U(KY9,{data:f.data})}}))},"wd");var Hkf=_.C8(function(K){var d=K.data;var f=_.Co(),H=_.yF(_.P_N,function(){var S;return(S=d().markersEngagementPanelSyncEntityKey)!=null?S:""}),D=function(){var S;
return((S=H())==null?void 0:S.activeItemIndex)===d().index};
return _.U("macro-markers-panel-item-view-model",{class:_.SC("ytwMacroMarkersPanelItemViewModelHost",{"is-active":D}),el:f,"on:click":_.cp(function(S){var n,u,a,R,F;return _.c(function(z){if(z.nextAddress==1)return S.stopPropagation(),_.kmO(_.bX(S),f.value,["A".toString(),"BUTTON".toString()])?z.return():(n=_.$A(d().onTap))?_.I(z,_.Kt(),2):z.return();u=z.yieldResult;R=(a=_.P(n,_.qu))==null?void 0:a.startTimeSeconds;R===void 0||(F=u)!=null&&F.seekTo(R,!0);_.iQ(z)})}),
tabindex:0},_.U(_.z1,{data:function(){var S;return(S=d())==null?void 0:S.item}},{timelineChapterViewModel:function(S){return _.U(fN8,{data:S.data,
active:D})},
timelineItemViewModel:function(S){return _.U(dE8,{data:S.data,active:D})},
videoAttributeViewModel:cZN}))},"xd");
Hkf.idomCompat=!0;_.sP(Hkf,"macro-markers-panel-item-view-model",{props:{data:_.rs}});_.sP(KY9,"yt-video-attributes-section-view-model",{props:{data:_.rs}});var DE9=_.C8(function(K){var d=function(){var f,H,D;return(D=(f=K.data().leadingLogoAccessibility)==null?void 0:(H=f.accessibilityData)==null?void 0:H.label)!=null?D:""};
return _.U("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.U(_.X,{cond:function(){return K.data().leadingLogo},
then:function(f){return _.U(_.jV,{className:"ytwFantasySectionHeaderViewModelLogo",data:f,alt:d})}}),_.U("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.U(_.ji,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return K.data().title}}),_.U(_.ji,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return K.data().subtitle}})),_.U(_.z1,{data:function(){return K.data().trailingButton}},{buttonViewModel:function(f){return _.U(_.oY,{data:f.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"yd");var VX8=_.C8(function(K){var d={};d=_.SC("ytwFantasyTeamViewModelHost",(d.ytwFantasyTeamViewModelCompact=function(){var D;return!((D=K.compact)==null||!D.call(K))},d.ytwFantasyTeamViewModelUser=function(){return K.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},d.ytwFantasyTeamViewModelOpponent=function(){return K.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},d));
var f=function(){var D,S,n;return(n=(D=K.data().teamLogoAccessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label)!=null?n:""},H=_.yF(OjN,function(){return K.data().teamEntityKey});
return _.U("ytw-fantasy-team-view-model",{class:d},_.U(_.X,{cond:function(){return K.data().teamLogo},
then:function(D){return _.U(_.jV,{className:"ytwFantasyTeamViewModelLogo",data:D,alt:f})}}),_.U("div",{class:"ytwFantasyTeamViewModelMetadata"},_.U("div",{class:"ytwFantasyTeamViewModelHeader"},_.U(_.ji,{className:"ytwFantasyTeamViewModelScore",
text:function(){var D;return(D=H())==null?void 0:D.score}}),_.U(_.U5,{icon:function(){var D;
return(D=H())==null?void 0:D.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.U(_.ji,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var D;return(D=H())==null?void 0:D.projectedScore}})),_.U(_.ji,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return K.data().primaryText}}),_.U(_.ji,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return K.data().secondaryText}}),_.U(_.ji,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return K.data().tertiaryText}})),_.U(_.ji,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var D;return(D=H())==null?void 0:D.score}}))},"zd");_.sP(_.C8(function(K){return _.U("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.U("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.U(_.z1,{data:function(){return K.data().summaryHeader}},{fantasySectionHeaderViewModel:DE9})),_.U(_.z1,{data:function(){return K.data().userTeam}},{fantasyTeamViewModel:VX8}),_.U(_.z1,{data:function(){return K.data().opponentTeam}},{fantasyTeamViewModel:VX8}))},"Ad"),"fantasy-league-summary-view-model",{props:{data:_.rs}});var SCt=_.C8(function(K){var d=_.jP(K,{shape:{},useCustomTabRenderable:!1}),f=d.shape;d=d.useCustomTabRenderable;var H=K.customTabRenderable,D=function(){return f().disabled},S=function(){return f().selected},n=function(){return f().title},u=function(){return f().icon},a=_.Co();
K=_.cp(function(z){var v;if(!D()&&((v=f().aTagConfig)==null?0:v.onclick))f().aTagConfig.onclick(z);return!1});
var R=_.cp(function(z){if(z.key==="Enter"||z.key==="ArrowUp"||z.key==="ArrowDown")z.preventDefault(),a.value.click();return!1}),F={};
return _.U("yt-tab-shape",{class:_.SC("yt-tab-shape-wiz",function(){return f().className},(F["yt-tab-shape-wiz__tab--last-tab"]=function(){return f().isLastTab},F["yt-tab-shape-wiz--host-disabled"]=D,F["yt-tab-shape-wiz--host-clickable"]=!H,F)),
role:H?void 0:"tab","aria-selected":S!=null?S:!1,"aria-disabled":D,tabindex:H?void 0:0,"on:click":K,"on:keydown":R,el:a,"tab-identifier":function(){return f().identifier},
"tab-title":n},_.U(_.X,{cond:d,then:function(){return H()},
else:function(){var z={},v={};return _.U(_.dF,null,_.U("div",{class:_.SC("yt-tab-shape-wiz__tab",(z["yt-tab-shape-wiz__tab--tab-selected"]=S,z))},_.U(_.X,{cond:u,then:function(g){return _.U(_.U5,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return g().iconType}})}}),n),_.U("div",{class:_.SC("yt-tab-shape-wiz__tab-bar",(v["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=S,v))}))}}))},"Bd");
SCt.idomCompat={callbacks:{customTabRenderable:!0}};_.nDv=_.C8(function(K){var d=K.shape;K=_.y(_.cC(48,void 0,"r9IBlb"));var f=K.next().value,H=K.next().value;K=_.y(_.cC(0,void 0,"Bd7rmd"));var D=K.next().value,S=K.next().value,n=function(){return d().tabs},u=_.Co(),a=function(){var R,F;
return(F=(R=n())==null?void 0:R.findIndex(function(z){return z.selected}))!=null?F:-1};
_.tR(function(){var R=u.value.querySelectorAll("yt-tab-shape"),F=a()>-1?R[a()]:void 0;_.oc.addJob(function(){H((F==null?void 0:F.getBoundingClientRect().width)||0)},8,0)});
_.ol(function(){var R=a(),F=_.oc.addJob(function(){var z,v=((z=u.value)==null?void 0:z.querySelectorAll("yt-tab-shape"))||[],g;H(((g=R>-1?v[R]:void 0)==null?void 0:g.getBoundingClientRect().width)||0);for(g=z=0;g<R;g++)z+=v[g].offsetWidth+24;_.mD("HTML_DIR")==="rtl"&&(z=-z);S(z)},8,0);
_.$F(function(){_.oc.cancelJob(F)})});
K={};return _.U("yt-tab-group-shape",{class:_.SC("yt-tab-group-shape-wiz",(K["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return d().isOverflowHidden},K)),
el:u},_.U(_.X,{cond:n,then:function(R){return _.U(_.dF,null,_.U("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.U(_.v_,{each:R},function(F,z){return _.U(SCt,{shape:function(){return Object.assign({},F,{isLastTab:z()===R().length-1})},
customTabRenderable:F.customTabRenderable,useCustomTabRenderable:!!F.customTabRenderable})})),_.U(y1H,{width:f,
sliderOffset:D}))}}))},"Cd");
_.nDv.idomCompat=!0;var y1H=_.C8(function(K){var d=_.QV(K.sliderOffset,0),f=K.width;return _.U("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Im({width:function(){return f()+"px"},
transform:function(){return"translateX("+d()+"px)"}})})},"Dd");var ik4=_.C8(function(K){var d=function(){var S,n,u;return(u=(S=K.data().playerLogoAccessibility)==null?void 0:(n=S.accessibilityData)==null?void 0:n.label)!=null?u:""},f=_.yF(NrX,function(){return K.data().playerEntityKey}),H={};
H=_.SC("ytwFantasyPlayerViewModelHost",(H.ytwFantasyPlayerViewModelPlaying=function(){var S;return!((S=f())==null||!S.isPlayerPlaying)},H.ytwFantasyPlayerViewModelOnField=function(){var S;
return((S=f())==null?void 0:S.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},H.ytwFantasyPlayerViewModelRedZone=function(){var S;
return((S=f())==null?void 0:S.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},H));
var D=function(){var S,n,u,a=((S=_.eq().resolve(_.Zd(_.AJ)))==null?0:S())?(n=K.data().playerLogoBackgroundColor)==null?void 0:n.darkTheme:(u=K.data().playerLogoBackgroundColor)==null?void 0:u.lightTheme;return a===void 0?"":_.hG(a)};
return _.U("ytw-fantasy-player-view-model",{class:H},_.U(_.X,{cond:function(){return K.data().playerLogo},
then:function(S){return _.U("div",{class:"ytwFantasyPlayerViewModelLogo"},_.U("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.U(_.jV,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Im({"background-color":D}),data:S,alt:d})),_.U("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.U(_.U5,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.U("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.U("div",{class:"ytwFantasyPlayerViewModelHeader"},_.U(_.ji,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var S;return(S=K.data())==null?void 0:S.playerNameText}}),_.U(_.ji,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var S;return(S=K.data())==null?void 0:S.playerDescriptionText}})),_.U("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.U(_.ji,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var S;return(S=f())==null?void 0:S.gamePeriodText}}),_.U(_.ji,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var S;return(S=K.data())==null?void 0:S.opponentTeamText}}),_.U(_.ji,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var S;return(S=f())==null?void 0:S.gameStatusText}}),_.U(_.ji,{className:_.SC("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var S;return(S=f())==null?void 0:S.playerStatusText}})),_.U("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.U(_.ji,{text:function(){var S;
return(S=f())==null?void 0:S.playerStatsText}}))),_.U(_.ji,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var S;return(S=f())==null?void 0:S.fantasyScore}}))},"Ed");var c1f=_.C8(function(K){return _.U("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.U(_.X,{cond:function(){return K.data().players},
then:function(d){return _.U(_.z1,{data:d},{fantasyPlayerViewModel:ik4})}}))},"Fd");var uY9=_.C8(function(K){var d=_.y(_.am(function(){var D;return(D=K.data().selectedTabIdentifierKey)!=null?D:""})),f=d.next().value,H=d.next().value;
_.Nk(function(){var D;(D=K.setSelectedTabSignal)==null||D.call(K,f)});
return _.U("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.U("div",{class:"ytTabbedViewModelTabGroup"},_.U(_.nDv,{shape:function(){var D=K.data(),S=[],n={tabs:S};if(!D.tabs)return n;D=_.y(D.tabs);for(var u=D.next(),a={};!u.done;a={tabViewModel:void 0},u=D.next())if(a.tabViewModel=_.P(u.value,w3s),a.tabViewModel){var R=u=void 0;S.push({aTagConfig:{onclick:function(F){return function(){var z;H((z=F.tabViewModel.tabIdentifier)!=null?z:"")}}(a)},
identifier:a.tabViewModel.tabIdentifier,selected:f()===a.tabViewModel.tabIdentifier,title:(R=(u=a.tabViewModel.title)==null?void 0:u.content)!=null?R:""})}return n}})),_.U(_.z1,{data:function(){var D,S=_.y((D=K.data().tabs)!=null?D:[]);
for(D=S.next();!D.done;D=S.next())if((D=_.P(D.value,w3s))&&D.tabIdentifier===f())return D.content}},{fantasyRosterViewModel:c1f}))},"Gd");_.sP(_.C8(function(K){var d=_.y(Au5()),f=d.next().value,H=d.next().value;return _.U("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.U(_.ji,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return K.data().title}}),_.U(_.X,{cond:function(){return K.data().tabbedViewModel},
then:function(D){return _.U(_.z1,{data:D},{tabbedViewModel:function(S){return _.U(uY9,{data:S.data,setSelectedTabSignal:H})}})}}),_.U(_.X,{cond:function(){var D,S=(D=_.P(K.data().tabbedViewModel,ZhJ))==null?void 0:D.tabs;
D=_.P(S==null?void 0:S[0],w3s);S=_.P(S==null?void 0:S[1],w3s);var n=D==null?void 0:D.tabIdentifier;if(f()===n){var u,a;if(!((u=_.P(D==null?void 0:D.content,wY4))==null?0:(a=u.players)==null?0:a.length))return K.data().noUserTeamPlayersText}else{var R,F;if(!((R=_.P(S==null?void 0:S.content,wY4))==null?0:(F=R.players)==null?0:F.length))return K.data().noOpponentTeamPlayersText}},
then:function(D){return _.U(_.ji,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:D})}}))},"Hd"),"ytw-fantasy-matchup-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){return _.U("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.U(_.ji,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return K.data().title}}),_.U(_.X,{cond:function(){return K.data().matchupTeamPairs},
then:function(d){return _.U(_.v_,{each:d,keyBy:"INDEX"},function(f){return _.U("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.U(_.z1,{data:function(){return[f().firstTeam,f().secondTeam]}},{fantasyTeamViewModel:function(H){return _.U(VX8,{data:H.data,
compact:!0})}}))})}}))},"Id"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=function(){var D,S,n;return(n=(D=K.data().userLogoAccessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label)!=null?n:""},f=function(){var D,S,n;
return(n=(D=K.data().opponentLogoAccessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label)!=null?n:""},H=_.yF(gTX,function(){return K.data().entityKey});
return _.U("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.U("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.U(_.X,{cond:function(){return K.data().userLogo},
then:function(D){return _.U(_.jV,{className:"ytwFantasyWinProbabilityViewModelLogo",data:D,alt:d})}}),_.U("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.U(_.ji,{text:function(){return K.data().title}})),_.U(_.X,{cond:function(){return K.data().opponentLogo},
then:function(D){return _.U(_.jV,{className:"ytwFantasyWinProbabilityViewModelLogo",data:D,alt:f})}})),_.U("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.U("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.U(_.ji,{text:function(){var D;
return(D=H())==null?void 0:D.userWinNumberLabel}})),_.U("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.U("div",{class:_.SC("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Im({flex:function(){var D,S;return(S=(D=H())==null?void 0:D.userWinNumber)!=null?S:50}})}),_.U("div",{class:_.SC("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Im({flex:function(){var D,S;return(S=(D=H())==null?void 0:D.opponentWinNumber)!=null?S:50}})})),_.U("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.U(_.ji,{text:function(){var D;
return(D=H())==null?void 0:D.opponentWinNumberLabel}}))))},"Jd"),"fantasy-win-probability-view-model",{props:{data:_.rs}});_.Na("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Ep=function(){var K=_.q.apply(this,arguments)||this;K.darkerPanels=_.M("web_watch_darker_panels");K.commentsHidePanelButton=!1;K.isWatchGrid=!1;K.continuationShowButton=!1;K.isSearch=!1;K.isConstrainedList=!1;K.isWatch=!1;K.eligibleToSwitchToGrid=!1;K.epRestyle=!1;K.isCarouselInFeed=!0;K.topSpacingZero=!1;K.continuationIsInitialLoad=!0;K.enableSqueezebackPanels=_.M("web_shorts_enable_squeezeback_panels");K.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");K.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};K.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return K};
_.O(Ep,_.q);_.V=Ep.prototype;_.V.updateLockupContainerTypes=function(K){if(this.eligibleToSwitchToGrid){var d;(d=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||d.forEach(function(f){f.containerType=K})}};
_.V.getItemsPath=function(){return"data.contents"};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",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",
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:_.M("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.M("kevlar_low_priority_continuation")}}};
_.V.created=function(){this.JSC$14492_cachedViewportHeight=_.mD("initialInnerHeight")||window.innerHeight};
_.V.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var K=_.E(this.hostElement).querySelector("ytd-comments-header-renderer");K&&(K.hidePanelButton=this.commentsHidePanelButton)}};
_.V.onRetrieveLocation=function(K,d){this.containsComments()&&(this.firstCommentsLoaded=d.hasComments=!0)};
_.V.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.V.onLoadReloadContinuation=function(K,d){var f=this;K.stopPropagation();this.isReloading=!0;_.Zp(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(H){var D=_.eq().resolve(_.O1);H=d(H);D.postData(H).then(function(S){f.onReloadContinuationData(S)})}})};
_.V.onReloadContinuationData=function(K){if(K=this.get("response.continuationContents.itemSectionContinuation",K)||this.get("response.contents.itemSectionRenderer",K)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",K)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",K))this.set("data.contents",K.contents||K.results),K.header&&this.set("data.header",K.header),this.set("data.continuations",
K.continuations||[]);this.isReloading=!1};
_.V.computeContentsClass=function(K){return K?"reloading":""};
_.V.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.V.computeSectionIdentifier=function(K){return K==null?void 0:K.sectionIdentifier};
_.V.computeFitContainer=function(K){return(K==null?void 0:K.sectionIdentifier)==="youchat-item-section"};
_.V.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.M("kevlar_disable_comments_auto_load")};
_.V.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.V.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.V.computeHasDestinationShelfRenderer=function(K){var d,f;return!!(K==null?0:(d=K.contents)==null?0:(f=d[0])==null?0:f.destinationShelfRenderer)};
_.V.computeHasSectionGroupViewModel=function(K){var d,f;return!!(K==null?0:(d=K.contents)==null?0:(f=d[0])==null?0:f.sectionGroupViewModel)};
_.V.computeHasQrCodeRenderer=function(K){var d,f;return!!(K==null?0:(d=K.contents)==null?0:(f=d[0])==null?0:f.qrCodeRenderer)};
_.V.computeStaticCommentsHeader=function(K){return K&&this.containsComments()};
_.V.computeEpRestyle=function(K){return _.M("web_ep_restyling")&&K&&this.containsComments()};
_.V.computeIsContinuationCommentSection=function(K){return(K==null?void 0:K.targetId)==="shorts-engagement-panel-comments-section"||(K==null?void 0:K.targetId)==="comments-section"||(K==null?void 0:K.targetId)==="engagement-panel-comments-section"};
_.V.computeSuppressPaddingDisclaimer=function(){var K,d,f,H;return!!((K=this.data)==null?0:(d=K.contents)==null?0:(f=d[0])==null?0:(H=f.productListHeaderRenderer)==null?0:H.suppressPaddingDisclaimer)};
_.V.computeHeaderStyle=function(K){switch(K==null?void 0:K.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.V.dataChanged=function(){this.firstCommentsLoaded=!1};
_.V.observeDataContentsLength=function(){var K,d;((K=this.data)==null?0:(d=K.contents)==null?0:d.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.V.onYtDismissibleItemDismissedChange=function(K){this._setItemDismissed(K.type==="yt-dismissible-item-dismissed")};
_.V.triggerContinuations=function(){for(var K=_.E(this.hostElement).querySelector("#continuations").children,d=0;d<K.length;d++)K[d].trigger()};
_.V.triggerInitialContinuations=function(){for(var K=_.E(this.hostElement).querySelector("#continuations").children,d=0;d<K.length;d++)K[d].triggerIfNotPreviouslyTriggered()};
_.V.handleYtItemSectionContinuation=function(K,d){var f;d&&((f=this.data)==null?void 0:f.sectionIdentifier)!==d||(this.set("data.continuations",[K]),this.triggerContinuations())};
_.V.handleYtItemSectionReplace=function(K,d){var f;d&&((f=this.data)==null?void 0:f.sectionIdentifier)!==d||(this.set("data.contents",K),this.set("data.continuations",[]))};
_.V.computeUseHeightHack=function(K){return K&&!_.M("kevlar_disable_height_hack")};
_.V.computeTopSpacingZero=function(K){return K};
_.V.continuationShowButtonChanged=function(){var K=_.E(this.hostElement).querySelector("ytd-continuation-item-renderer");K&&(K.showButton=this.continuationShowButton)};
_.V.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("data-changed",this.data))};
_.x$.Object.defineProperties(Ep.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.M("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return!!((K=this.data)==null?0:(d=K.contents)==null?0:(f=d[0])==null?0:f.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H,D,S,n;return!!((K=this.data)==null?0:(d=K.contents)==null?0:(f=d[0])==null?0:(H=f.shelfRenderer)==null?0:(D=H.content)==null?0:(S=D.gridRenderer)==null?0:(n=S.targetId)==null?0:n.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return!!((K=this.data)==null?0:(d=K.contents)==null?0:(f=d[0])==null?0:f.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return!!((K=this.data)==null?0:(d=K.contents)==null?0:(f=d[0])==null?0:f.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.fy("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.M("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.M("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14492_cachedViewportHeight-130)/150)},
set:function(){}}});
Ep.prototype.dataChangedForBinding=Ep.prototype.dataChangedForBinding;Ep.prototype.continuationShowButtonChanged=Ep.prototype.continuationShowButtonChanged;Ep.prototype.onYtDismissibleItemDismissedChange=Ep.prototype.onYtDismissibleItemDismissedChange;Ep.prototype.observeDataContentsLength=Ep.prototype.observeDataContentsLength;Ep.prototype.dataChanged=Ep.prototype.dataChanged;Ep.prototype.onServiceRequestCompleted=Ep.prototype.onServiceRequestCompleted;Ep.prototype.onLoadReloadContinuation=Ep.prototype.onLoadReloadContinuation;
Ep.prototype.onRetrieveLocation=Ep.prototype.onRetrieveLocation;Ep.prototype.commentsHidePanelButtonChanged=Ep.prototype.commentsHidePanelButtonChanged;Ep.prototype.updateLockupContainerTypes=Ep.prototype.updateLockupContainerTypes;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Ep.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kV.YtLazyListBehavior),_.B("design:type",Object)],Ep.prototype,"ytLazyListBehavior",void 0);_.x([_.l(_.Ws.YtNextContinuationBehavior),_.B("design:type",Object)],Ep.prototype,"ytNextContinuationBehavior",void 0);_.x([_.l(_.lY),_.B("design:type",Object)],Ep.prototype,"ytContinuationHandlerBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Ep.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Ep.prototype,"ytdReduxBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ep.prototype,"darkerPanels",void 0);_.x([_.A(),_.B("design:type",Object)],Ep.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],Ep.prototype,"engagementPanel",void 0);
_.x([_.A(),_.B("design:type",Object)],Ep.prototype,"commentsHidePanelButton",void 0);_.x([_.A(),_.B("design:type",Object)],Ep.prototype,"isWatchGrid",void 0);_.x([_.A(),_.B("design:type",Object)],Ep.prototype,"continuationShowButton",void 0);_.x([_.A({computed:"computeIsContinuationCommentSection(data)"}),_.B("design:type",Boolean)],Ep.prototype,"continuationIsCommentsSection",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],Ep.prototype,"autoFill",void 0);
_.x([_.A(),_.B("design:type",Boolean)],Ep.prototype,"continuationDisablePrescanVisibility",void 0);_.x([_.A(),_.B("design:type",Boolean)],Ep.prototype,"isReloading",void 0);_.x([_.A(),_.B("design:type",Object)],Ep.prototype,"isSearch",void 0);_.x([_.A(),_.B("design:type",Object)],Ep.prototype,"isConstrainedList",void 0);_.x([_.A(),_.B("design:type",Object)],Ep.prototype,"isWatch",void 0);_.x([_.A(),_.B("design:type",Object)],Ep.prototype,"eligibleToSwitchToGrid",void 0);
_.x([_.A({selector:_.Ek}),_.B("design:type",Object)],Ep.prototype,"isGridViewEnabled",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.B("design:type",Object)],Ep.prototype,"epRestyle",void 0);_.x([_.W("isWatch"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ep.prototype,"hideShortsShelfHeader",null);
_.x([_.W("isSearch","isWatch"),_.B("design:type",String),_.B("design:paramtypes",[])],Ep.prototype,"thumbnailWidth",null);_.x([_.W("isSearch","isWatch"),_.B("design:type",String),_.B("design:paramtypes",[])],Ep.prototype,"sizing",null);_.x([_.W("isWatch","isGridViewEnabled","data"),_.A({reflectToAttribute:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],Ep.prototype,"lockupContainerType",null);
_.x([_.SP("lockupContainerType","data"),_.B("design:type",Function),_.B("design:paramtypes",[Number]),_.B("design:returntype")],Ep.prototype,"updateLockupContainerTypes",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],Ep.prototype,"pageSubtype",void 0);_.x([_.A({computed:"computeContainerWidth()"}),_.B("design:type",Number)],Ep.prototype,"containerWidth",void 0);_.x([_.A(),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ep.prototype,"isPlaylist",null);
_.x([_.A(),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ep.prototype,"isClipList",null);_.x([_.A(),_.B("design:type",Object)],Ep.prototype,"isCarouselInFeed",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ep.prototype,"isPlaylistVideoContainer",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ep.prototype,"isSearchFrictionPage",null);
_.x([_.A({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.B("design:type",Boolean)],Ep.prototype,"useHeightHack",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.B("design:type",Object)],Ep.prototype,"topSpacingZero",void 0);_.x([_.A({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.B("design:type",Boolean)],Ep.prototype,"showButton",void 0);
_.x([_.A(),_.B("design:type",Boolean)],Ep.prototype,"firstCommentsLoaded",void 0);_.x([_.A(),_.B("design:type",Object)],Ep.prototype,"continuationIsInitialLoad",void 0);_.x([_.A(),_.B("design:type",Boolean)],Ep.prototype,"isSearchDova",void 0);_.x([_.A({reflectToAttribute:!0,readOnly:!0}),_.B("design:type",Boolean)],Ep.prototype,"itemDismissed",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.B("design:type",String)],Ep.prototype,"sectionIdentifier",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.B("design:type",String)],Ep.prototype,"fitContainer",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.B("design:type",Boolean)],Ep.prototype,"hasDestinationShelfRenderer",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.B("design:type",Boolean)],Ep.prototype,"staticCommentsHeader",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ep.prototype,"enableSqueezebackPanels",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ep.prototype,"enableAnchoredPanel",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.B("design:type",Boolean)],Ep.prototype,"hasSectionGroupViewModel",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.B("design:type",Boolean)],Ep.prototype,"hasQrCodeRenderer",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.B("design:type",Boolean)],Ep.prototype,"suppressDisclaimerSeparator",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.B("design:type",String)],Ep.prototype,"headerStyle",void 0);
_.x([_.W("isSearch"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ep.prototype,"lockupExperiments",null);_.x([_.W("isSearch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ep.prototype,"typographyBump",null);_.x([_.n8("#header"),_.B("design:type",HTMLElement)],Ep.prototype,"header",void 0);_.x([_.SP("commentsHidePanelButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ep.prototype,"commentsHidePanelButtonChanged",null);
_.x([_.VV("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Ep.prototype,"onRetrieveLocation",null);_.x([_.VV("yt-load-reload-continuation"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Function]),_.B("design:returntype")],Ep.prototype,"onLoadReloadContinuation",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ep.prototype,"onServiceRequestCompleted",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ep.prototype,"dataChanged",null);_.x([_.an("data.contents.length"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ep.prototype,"observeDataContentsLength",null);
_.x([_.VV("yt-dismissible-item-dismissed"),_.VV("yt-dismissible-item-undismissed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Ep.prototype,"onYtDismissibleItemDismissedChange",null);_.x([_.SP("continuationShowButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ep.prototype,"continuationShowButtonChanged",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ep.prototype,"dataChangedForBinding",null);Ep=_.x([_.Q({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Ep);
_.C(Ep,"ytd-item-section-renderer",function(){if(W34!==void 0)return W34;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return W34=K},{mode:1});var aN4;var j8z=_.rB(_.iB("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var TIX={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var INN={},Q8o=(INN[0]={title:_.kJ(_.iB("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.kJ(_.iB("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:Jy("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},INN[1]={title:_.kJ(_.iB("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:Jy("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},INN);_.Na("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var hY=function(){var K=_.q.apply(this,arguments)||this;K.allVideosCount=0;K.allPlaylistCount=0;K.shouldRenderDownloadsBanner=!1;K.hasOptedIntoSmartDownloads=!1;K.areAllSmartDownloadsDeleted=!1;K.smartDownloadsCompleted=!1;return K};
_.O(hY,_.q);hY.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
hY.prototype.attached=function(){this.downloadsToRenderChanged()};
hY.prototype.detached=function(){this.set("renderableData",{})};
hY.prototype.downloadsToRenderChanged=function(){var K=_.j3().getState().entities,d=_.vJ(K),f=_.M("kevlar_playlist_dl_page_killswitch")?i2X(K):_.MQ(K),H=_.DVJ(K),D=_.UV(d);K=_.PJ(K);this.set("renderableData",x2Y(f,d,H,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,D,K))};
hY.prototype.downloadsToRenderChanged=hY.prototype.downloadsToRenderChanged;_.x([_.l(_.ou),_.B("design:type",Object)],hY.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],hY.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],hY.prototype,"renderableData",void 0);_.x([_.A({selector:_.gHB}),_.B("design:type",Object)],hY.prototype,"allVideosCount",void 0);_.x([_.A({selector:l6X}),_.B("design:type",Object)],hY.prototype,"allPlaylistCount",void 0);_.x([_.A({selector:_.EHX}),_.B("design:type",Object)],hY.prototype,"shouldRenderDownloadsBanner",void 0);_.x([_.A({selector:_.hxY}),_.B("design:type",Object)],hY.prototype,"hasOptedIntoSmartDownloads",void 0);
_.x([_.A({selector:_.b2N}),_.B("design:type",Object)],hY.prototype,"areAllSmartDownloadsDeleted",void 0);_.x([_.A({selector:mV5}),_.B("design:type",Object)],hY.prototype,"smartDownloadsCompleted",void 0);_.x([_.an("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hY.prototype,"downloadsToRenderChanged",null);
hY=_.x([_.Q({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],hY);
_.C(hY,"ytd-offline-item-section-renderer",function(){if(aN4!==void 0)return aN4;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return aN4=K},
{mode:1});var UEs;var RDv;var b6=function(){return _.q.apply(this,arguments)||this};
_.O(b6,_.q);
b6.prototype.onDataChanged=function(){if(this.JSC$14518_lastData){var K=this.getFilterClass(this.JSC$14518_lastData.status);K&&this.hostElement.classList.remove(K)}var d;(K=this.getFilterClass((d=this.data)==null?void 0:d.status))&&this.hostElement.classList.add(K);K==="selected"?_.E(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.E(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");K==="disabled"?_.E(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.E(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14518_lastData=this.data};
b6.prototype.getFilterClass=function(K){switch(K){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
b6.prototype.onDataChanged=b6.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],b6.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],b6.prototype,"onDataChanged",null);b6=_.x([_.Q({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],b6);
_.C(b6,"ytd-search-filter-renderer",function(){if(RDv!==void 0)return RDv;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return RDv=K},{mode:_.p8("kevlar_poly_si_batch_j075")?1:2});var mK=function(){return _.q.apply(this,arguments)||this};
_.O(mK,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],mK.prototype,"data",void 0);mK=_.x([_.Q({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],mK);
_.C(mK,"ytd-search-filter-group-renderer",function(){if(UEs!==void 0)return UEs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return UEs=K},{mode:_.p8("kevlar_poly_si_batch_j075")?1:2});var FYf;var l6=function(){return _.q.apply(this,arguments)||this};
_.O(l6,_.q);l6.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.fT());this.isCollapsed=!this.isCollapsed};
l6.prototype.navigateToAboutTheseResultsPage=function(){var K=Ro("https://www.youtube.com/howyoutubeworks/product-features/search/");K?_.ha(window,K,"_blank"):_.G2(Error("Ph"))};
l6.prototype.dataChanged=function(){this.isCollapsed=!0};
l6.prototype.computeShowBottomBorder=function(){var K,d,f;return!!((K=this.data)==null?0:(d=K.button)==null?0:d.toggleButtonRenderer)||!((f=this.data)==null||!f.aboutTheseResultsButton)};
l6.prototype.dataChanged=l6.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],l6.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.B("design:type",Boolean)],l6.prototype,"showBottomBorder",void 0);_.x([_.A(),_.B("design:type",Boolean)],l6.prototype,"renderCollapsibleMenu",void 0);
_.x([_.A(),_.B("design:type",Boolean)],l6.prototype,"isCollapsed",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],l6.prototype,"dataChanged",null);l6=_.x([_.Q({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],l6);
_.C(l6,"ytd-search-sub-menu-renderer",function(){if(FYf!==void 0)return FYf;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return FYf=K},{mode:1});var zD4;var XBs=new _.xn("SECTION_LIST_RENDERER_TOKEN");var vDL;var WH=function(){return _.q.apply(this,arguments)||this};
_.O(WH,_.q);WH.prototype.computeStyle=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],WH.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],WH.prototype,"headerStyle",void 0);WH=_.x([_.Q({is:"ytd-text-header-renderer",disableElementRegistration:!0})],WH);
_.C(WH,"ytd-text-header-renderer",function(){if(vDL!==void 0)return vDL;var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return vDL=K},{mode:1});var MXN;var GO=function(){return _.q.apply(this,arguments)||this};
_.O(GO,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],GO.prototype,"data",void 0);GO=_.x([_.Q({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],GO);
_.C(GO,"ytd-minor-moment-header-renderer",function(){if(MXN!==void 0)return MXN;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return MXN=K},{mode:1});var Pyf;var AY=function(){return _.q.apply(this,arguments)||this};
_.O(AY,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],AY.prototype,"data",void 0);AY=_.x([_.Q({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],AY);
_.C(AY,"ytd-minor-moment-setting-alert-renderer",function(){if(Pyf!==void 0)return Pyf;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Pyf=K},{mode:1});var gD9;var Okt;var TO=function(){var K=_.q.apply(this,arguments)||this;K.booleanSettingById=!1;K.smartDownloadsEnabledVE=_.vp(128287);K.smartDownloadsDisabledVE=_.vp(128286);K.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return K};
_.O(TO,_.q);_.V=TO.prototype;_.V.attachSmartDownloadsSettingVes=function(){var K;this.activeVeForLogging||((K=this.data)==null?void 0:K.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.p2(_.cv(),this.smartDownloadsEnabledVE),_.p2(_.cv(),this.smartDownloadsDisabledVE))};
_.V.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Zp(this.hostElement,"yt-settings-switch-ready")};
_.V.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.V.onSwitchChange=function(K){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(K=_.Qm(K).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.M("kevlar_settings_switch_resolve_command_killswitch")?_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(K)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.V.handleUpdateSettingsSwitch=function(K){(K=_.P(K,FQk))&&this.data&&this.data.id===K.id&&this.set("data.enabled",!!K.enabled)};
_.V.onToggleSettingsSwitch=function(K,d){this.data&&this.data.id===K&&this.set("data.enabled",d!=null?d:!this.data.enabled)};
_.V.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.jA.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.V.maybeLogSmartDownloadsSettingVisibility=function(){var K=_.te(),d;K&&((d=this.data)==null?void 0:d.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Ay(K,[this.smartDownloadsEnabledVE]),_.Tu(K,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Ay(K,[this.smartDownloadsDisabledVE]),_.Tu(K,[this.smartDownloadsEnabledVE])))};
_.V.maybeLogSmartDownloadsSettingClick=function(){var K;((K=this.data)==null?void 0:K.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.dx(_.cv(),this.activeVeForLogging)};
_.V.updateDataEnabledFromBinding=function(K){this.set("data.enabled",K.detail.value)};
_.x$.Object.defineProperties(TO.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var K=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!K&&(K=this.ytRendererBehavior.getSimpleString(this.data.title));return K}}});
TO.prototype.dataChanged=TO.prototype.dataChanged;_.x([_.l(_.ou),_.B("design:type",Object)],TO.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],TO.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],TO.prototype,"ytComponentBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],TO.prototype,"data",void 0);_.x([_.A({selector:function(K,d){if(Object.keys(K==null?void 0:K.entities).length)switch(d){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return cQX(K.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.B("design:type",Object)],TO.prototype,"booleanSettingById",void 0);_.x([_.A(),_.B("design:type",_.Nu)],TO.prototype,"activeVeForLogging",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],TO.prototype,"toggleAriaLabel",null);_.x([_.an("data"),_.an("booleanSettingById"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TO.prototype,"dataChanged",null);
TO=_.x([_.Q({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],TO);
_.C(TO,"ytd-settings-switch-renderer",function(){if(Okt!==void 0)return Okt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Okt=K},{mode:1});var r6=function(){return _.q.apply(this,arguments)||this};
_.O(r6,_.q);r6.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}}}}};
_.x$.Object.defineProperties(r6.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var K=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(K+=" remove-left-margin");this.data.extraBottomSpace&&(K+=" extra-bottom-space");return K}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],r6.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],r6.prototype,"contentsClassName",null);r6=_.x([_.Q({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],r6);
_.C(r6,"ytd-minor-moment-setting-section-renderer",function(){if(gD9!==void 0)return gD9;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return gD9=K},{mode:1});var N1k;var qS=function(){return _.q.apply(this,arguments)||this};
_.O(qS,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],qS.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qS.prototype,"data",void 0);qS=_.x([_.Q({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],qS);
_.C(qS,"ytd-empty-product-details-renderer",function(){if(N1k!==void 0)return N1k;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return N1k=K},{mode:1});var YCs;var tXt;var QN=function(){var K=_.q.apply(this,arguments)||this;K.expanded=!0;return K};
_.O(QN,_.q);QN.prototype.getBadgeRowClass=function(K,d,f){for(var H=_.y(this.hostElement.querySelectorAll("yt-img-shadow")),D=H.next();!D.done;D=H.next())D.value.onShow();K=K.selected;return f?K!==-1?K===d?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(K!==void 0?K:0)===d?"badge-line":"badge-hidden"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],QN.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],QN.prototype,"expanded",void 0);QN=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],QN);
_.C(QN,"ytd-sponsorships-loyalty-badges-renderer",function(){if(tXt!==void 0)return tXt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return tXt=K},{mode:1});var oDk;var j0=function(){var K=_.q.apply(this,arguments)||this;K.expanded=!0;return K};
_.O(j0,_.q);j0.prototype.getContainerClasses=function(K,d){K=K?"expanded":"collapsed";d&&(K+=" item");return K};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],j0.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],j0.prototype,"expanded",void 0);j0=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],j0);
_.C(j0,"ytd-sponsorships-perk-renderer",function(){if(oDk!==void 0)return oDk;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return oDk=K},{mode:1});var $EJ;var Cr=function(){var K=_.q.apply(this,arguments)||this;K.expanded=!0;return K};
_.O(Cr,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Cr.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Cr.prototype,"expanded",void 0);Cr=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Cr);
_.C(Cr,"ytd-sponsorships-perks-renderer",function(){if($EJ!==void 0)return $EJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return $EJ=K},{mode:1});var xe=function(){var K=_.q.apply(this,arguments)||this;K.isCollapsed=!1;return K};
_.O(xe,_.q);xe.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
xe.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
xe.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var K;this.expandCollapseButton=_.P((K=this.data)==null?void 0:K.expandButton,_.tQ)}else{var d;this.expandCollapseButton=_.P((d=this.data)==null?void 0:d.collapseButton,_.tQ)}};
xe.prototype.updateExpandCollapseButton=xe.prototype.updateExpandCollapseButton;xe.prototype.onDataChanged=xe.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],xe.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],xe.prototype,"isCollapsed",void 0);_.x([_.A(),_.B("design:type",Object)],xe.prototype,"expandCollapseButton",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xe.prototype,"onDataChanged",null);_.x([_.an("data","isCollapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xe.prototype,"updateExpandCollapseButton",null);xe=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],xe);
_.C(xe,"ytd-sponsorships-expandable-perks-renderer",function(){if(YCs!==void 0)return YCs;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return YCs=K},{mode:1});var EDv;var Lr=function(){return _.q.apply(this,arguments)||this};
_.O(Lr,_.q);Lr.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Lr.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Lr.prototype,"data",void 0);Lr=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Lr);
_.C(Lr,"ytd-sponsorships-actionable-message-renderer",function(){if(EDv!==void 0)return EDv;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return EDv=K},{mode:1});var hDL;var BH=function(){return _.q.apply(this,arguments)||this};
_.O(BH,_.q);_.V=BH.prototype;_.V.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.V.getExpansionIcon=function(K){return K?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.V.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.V.computeMessageContainerStyle=function(K){var d=K.expandableItems?" style-clickable":"";return K.messageContainerStyle?K.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+d:"style-unspecified"+d};
_.V.isSinglePerk=function(K){return!!K.messageContainerStyle&&(K.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||K.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.V.onExpandedChanged=function(){var K=this;if(this.expanded)for(var d=_.y(this.hostElement.querySelectorAll("yt-img-shadow")),f=d.next();!f.done;f=d.next())f.value.onShow();_.jW(this,function(){_.Zp(K.hostElement,"yt-refit")})};
_.V.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
BH.prototype.onDataChanged=BH.prototype.onDataChanged;BH.prototype.onExpandedChanged=BH.prototype.onExpandedChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],BH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],BH.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],BH.prototype,"expanded",void 0);
_.x([_.SP("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BH.prototype,"onExpandedChanged",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BH.prototype,"onDataChanged",null);BH=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],BH);
_.C(BH,"ytd-sponsorships-expandable-message-renderer",function(){if(hDL!==void 0)return hDL;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return hDL=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var bk6;var JY=function(){return _.q.apply(this,arguments)||this};
_.O(JY,_.q);JY.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"}}}}};
JY.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.P(this.data.endButton,_.tQ).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
JY.prototype.onDataChanged=JY.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],JY.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JY.prototype,"onDataChanged",null);
JY=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],JY);
_.C(JY,"ytd-sponsorships-heading-renderer",function(){if(bk6!==void 0)return bk6;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return bk6=K},{mode:1});var mEs;var sp=function(){return _.q.apply(this,arguments)||this};
_.O(sp,_.q);_.x([_.A(),_.B("design:type",Object)],sp.prototype,"data",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);sp=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],sp);
_.C(sp,"ytd-sponsorships-links-renderer",function(){if(mEs!==void 0)return mEs;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return mEs=K},{mode:1});var lN9;var ke=function(){return _.q.apply(this,arguments)||this};
_.O(ke,_.q);_.V=ke.prototype;_.V.onDataChanged=function(){if(this.data&&this.data.expandableItems){var K;(K=_.E(this.hostElement).querySelector("tp-yt-paper-button"))==null||K.setAttribute("role","button")}else{var d;(d=_.E(this.hostElement).querySelector("tp-yt-paper-button"))==null||d.removeAttribute("role")}};
_.V.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.V.getExpansionIcon=function(K){return K?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.V.getTileClasses=function(K){return K?"tile expandable-tile":"tile"};
_.V.getButtonDisabled=function(K){return K?void 0:""};
ke.prototype.onDataChanged=ke.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ke.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],ke.prototype,"expanded",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ke.prototype,"onDataChanged",null);
ke=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],ke);
_.C(ke,"ytd-sponsorships-list-tile-renderer",function(){if(lN9!==void 0)return lN9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return lN9=K},{mode:1});var WYH;var GWk;var w6=function(){return _.q.apply(this,arguments)||this};
_.O(w6,_.q);w6.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],w6.prototype,"data",void 0);w6=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],w6);
_.C(w6,"ytd-sponsorships-promotion-renderer",function(){if(GWk!==void 0)return GWk;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return GWk=K},{mode:1});var A1L;var Z8=function(){return _.q.apply(this,arguments)||this};
_.O(Z8,_.q);Z8.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Z8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Z8.prototype,"data",void 0);Z8=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Z8);
_.C(Z8,"ytd-sponsorships-purchase-option-renderer",function(){if(A1L!==void 0)return A1L;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return A1L=K},{mode:1});var T14;var r12;var e0=function(){return _.q.apply(this,arguments)||this};
_.O(e0,_.q);_.x([_.A(),_.B("design:type",Object)],e0.prototype,"data",void 0);e0=_.x([_.Q({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],e0);
_.C(e0,"ytd-ypc-offer-promo-renderer",function(){if(r12!==void 0)return r12;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return r12=K},{mode:1});var pr=function(){return _.q.apply(this,arguments)||this};
_.O(pr,_.q);_.V=pr.prototype;
_.V.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"}}}}};
_.V.expansionCTA=function(K,d){return K&&(d?K.collapseCallToAction:K.expansionCallToAction)};
_.V.getExpansionIcon=function(K){return K?"arrow_drop_up":"arrow_drop_down"};
_.V.expansionCallToActionTap=function(){var K=this;this.expanded=!this.expanded;_.jW(this,function(){_.Zp(K.hostElement,"yt-refit")})};
_.V.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var K,d=(K=this.data)==null?void 0:K.onVisible;d&&this.ytComponentBehavior.resolveCommand(d)};
_.V.computeDisplayTitle=function(K){return!(!K||this.titledisplaystatus!=="show")};
_.V.computeDisplaySeparator=function(){return!1};
_.V.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
pr.prototype.onDataChanged=pr.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],pr.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],pr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],pr.prototype,"data",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],pr.prototype,"expanded",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],pr.prototype,"purchaseButtonClicked",void 0);_.x([_.A({reflectToAttribute:!0,value:"show"}),_.B("design:type",String)],pr.prototype,"titledisplaystatus",void 0);_.x([_.A({computed:"computeDisplayTitle(data.title)"}),_.B("design:type",Boolean)],pr.prototype,"displayTitle",void 0);
_.x([_.A({computed:"computeDisplaySeparator(data)"}),_.B("design:type",Boolean)],pr.prototype,"displaySeparator",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pr.prototype,"onDataChanged",null);pr=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],pr);
_.C(pr,"ytd-sponsorships-tier-renderer",function(){if(T14!==void 0)return T14;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return T14=K},{mode:2});var Kj=function(){return _.q.apply(this,arguments)||this};
_.O(Kj,_.q);
Kj.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"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Kj.prototype,"data",void 0);Kj=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Kj);
_.C(Kj,"ytd-sponsorships-management-renderer",function(){if(WYH!==void 0)return WYH;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return WYH=K},{mode:1});var qC2;var dr=function(){return _.q.apply(this,arguments)||this};
_.O(dr,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],dr.prototype,"data",void 0);dr=_.x([_.Q({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],dr);
_.C(dr,"ytd-open-in-native-app-view-model",function(){if(qC2!==void 0)return qC2;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return qC2=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var Qhs;var jhB;var Cy4=_.Am(["top-"]),xEs=_.Am(["bottom-"]),LY8=_.Am(["left-"]),B18=_.Am(["right-"]),J14={},sh4=function(K,d,f){K.removeAttribute("top-"+f);K.removeAttribute("bottom-"+f);K.removeAttribute("left-"+f);K.removeAttribute("right-"+f);d&&(d.top&&_.r5([_.Zw(Cy4)],K,"top-"+f,d.top),d.bottom&&_.r5([_.Zw(xEs)],K,"bottom-"+f,d.bottom),d.left&&_.r5([_.Zw(LY8)],K,"left-"+f,d.left),d.right&&_.r5([_.Zw(B18)],K,"right-"+f,d.right))};
J14.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(K){var d,f=_.E((d=this.hostElement)!=null?d:this),H;d=this.cardItemBoxBehaviorMarginTargetId&&f?f.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(H=this.hostElement)!=null?H:this;sh4(d,K,"margin")},
cardItemContainerPaddingChanged_:function(K){var d,f=_.E((d=this.hostElement)!=null?d:this),H;d=this.cardItemBoxBehaviorPaddingTargetId&&f?f.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(H=this.hostElement)!=null?H:this;sh4(d,K,"padding")}}];var fj={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var kWL;var wB9;var Ho=function(){return _.q.apply(this,arguments)||this};
_.O(Ho,_.q);Ho.prototype.textColorChanged_=function(){this.hostElement.style.color=fj[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Ho.prototype.textColorChanged_=Ho.prototype.textColorChanged_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.x([_.l(J14.YtCardItemBoxBehavior),_.B("design:type",Object)],Ho.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ho.prototype,"data",void 0);_.x([_.SP("data.textColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ho.prototype,"textColorChanged_",null);
Ho=_.x([_.N7({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Ho);
_.C(Ho,"yt-card-item-text-renderer",function(){if(wB9===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;kWL===void 0&&(kWL=document.createElement("template"));var H=kWL;f.call(d,H.content.cloneNode(!0),K.content.firstChild);wB9=K}K=wB9;return K},{mode:2});var Zkk;var eDk;var DQ=function(){return _.q.apply(this,arguments)||this};
_.O(DQ,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],DQ.prototype,"data",void 0);DQ=_.x([_.N7({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],DQ);
_.C(DQ,"yt-card-item-badge-renderer",function(){if(eDk===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Zkk===void 0&&(Zkk=document.createElement("template"));var H=Zkk;f.call(d,H.content.cloneNode(!0),K.content.firstChild);eDk=K}K=eDk;return K},{mode:2});var pB9;var KEH;var Ve=function(){return _.q.apply(this,arguments)||this};
_.O(Ve,_.q);Ve.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ve.prototype,"data",void 0);Ve=_.x([_.N7({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Ve);
_.C(Ve,"yt-card-item-text-collection-renderer",function(){if(KEH===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;pB9===void 0&&(pB9=document.createElement("template"));var H=pB9;f.call(d,H.content.cloneNode(!0),K.content.firstChild);KEH=K}K=KEH;return K},{mode:2});var dRv;var frf;var SG=function(){return _.q.apply(this,arguments)||this};
_.O(SG,_.q);SG.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]]"}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],SG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],SG.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Number)],SG.prototype,"iconSize",void 0);SG=_.x([_.N7({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],SG);
_.C(SG,"yt-card-item-text-with-button-renderer",function(){if(frf===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;dRv===void 0&&(dRv=document.createElement("template"));var H=dRv;f.call(d,H.content.cloneNode(!0),K.content.firstChild);frf=K}K=frf;return K},{mode:2});var ye=function(){return _.q.apply(this,arguments)||this};
_.O(ye,_.q);ye.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ye.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ye.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ye.prototype,"data",void 0);ye=_.x([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],ye);
_.C(ye,"ytd-commerce-cart-summary-line-item-renderer",function(){if(jhB!==void 0)return jhB;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return jhB=K},{mode:1});_.Na("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var nj=function(){var K=_.q.apply(this,arguments)||this;K.hidden=!1;return K};
_.O(nj,_.q);_.V=nj.prototype;_.V.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"}}}}};
_.V.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.V.updateSummary=function(){var K=this.commerceCartCheckoutButtonEntity,d;if(((d=this.data)==null?0:d.cartButton)&&K.checkoutSummaryText){var f,H=Y6((f=this.data)==null?void 0:f.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+H+".cardItemTextRenderer.text",tb(K.checkoutSummaryText));if(K.checkoutDetailText){var D;f=Y6((D=this.data)==null?void 0:D.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+f+".cardItemTextRenderer.text",tb(K.checkoutDetailText))}if(K.checkoutAdditionalMetadataText){var S;
D=Y6((S=this.data)==null?void 0:S.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+D+".cardItemTextRenderer.text",tb(K.checkoutAdditionalMetadataText))}}else K.estimatedTotalPrice&&(S=Y6((H=this.data)==null?void 0:H.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+S+".cardItemTextRenderer.text",tb(K.estimatedTotalPrice)))};
_.V.updateIsHidden=function(){var K,d=(K=this.commerceCartCheckoutButtonEntity)==null?void 0:K.isHidden;d!==void 0&&(this.hidden=d)};
_.V.updateCheckoutButton=function(){var K,d=(K=this.commerceCartCheckoutButtonEntity)==null?void 0:K.isDisabled;d!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",d);var f;K=(f=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:f.innertubeCommand;K!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",K);var H;f=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.checkoutButtonText;f!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:f})};
nj.prototype.entityChanged=nj.prototype.entityChanged;_.x([_.l(_.ou),_.B("design:type",Object)],nj.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],nj.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],nj.prototype,"fullWidth",void 0);_.x([_.A(),_.B("design:type",Object)],nj.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],nj.prototype,"compact",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],nj.prototype,"hidden",void 0);
_.x([_.A({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:vuG}),_.B("design:type",Object)],nj.prototype,"commerceCartCheckoutButtonEntity",void 0);_.x([_.SP("commerceCartCheckoutButtonEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nj.prototype,"entityChanged",null);nj=_.x([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],nj);
_.C(nj,"ytd-commerce-cart-checkout-button-renderer",function(){if(Qhs!==void 0)return Qhs;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Qhs=K},{mode:2});var HqH;_.DR4={};
_.DR4.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",_.Dm(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Dm(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(K){!this.tappableItemBehaviorTapEnabled||K.keyCode!==13&&K.keyCode!==32||K.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var K=this.data.onTap;K.ypcGetCartEndpoint?(_.dN(this.hostElement,[K]),this.tappableItemBehaviorTapEnabled=!1):K.ypcOffersEndpoint?_.dN(this.hostElement,[K]):_.fd(this.hostElement,[K],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(K){this.tappableItemBehaviorTapEnabled=!!K},
tappableItemBehaviorOnTapEnabledChanged_:function(){var K=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(K.setAttribute("tabIndex",0),K.setAttribute("role","button")):(K.removeAttribute("tabIndex"),K.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(K){K.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var V62;var SUf;var i_=function(){return _.q.apply(this,arguments)||this};
_.O(i_,_.q);i_.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.YP("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.YP("sharingToggleButtonAndDefaultButton")}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],i_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],i_.prototype,"data",void 0);i_=_.x([_.N7({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],i_);
_.C(i_,"yt-card-item-actions-renderer",function(){if(SUf===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;V62===void 0&&(V62=document.createElement("template"));var H=V62;f.call(d,H.content.cloneNode(!0),K.content.firstChild);SUf=K}K=SUf;return K},{mode:2});var yqL;var nRJ;var iqJ;var cq9;var uW2;var ar9;var co=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return K};
_.O(co,_.q);co.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
co.prototype.handleDarkModeToggledAction_=function(K){this.isDarkTheme_=K};
co.prototype.computeThemeImage_=function(K,d){if(!K||!K.imageLight)return!1;this.isCircular_=K.isCircular;K.imageWidth&&(this.hostElement.style.width=K.imageWidth+"px");K.imageHeight&&(this.hostElement.style.height=K.imageHeight+"px");K.borderWidth&&(this.image.style.borderWidth=K.borderWidth+"px",this.image.style.borderStyle="solid");K.borderColor&&(this.image.style.borderColor=_.hG(K.borderColor));return d&&K.imageDark?K.imageDark:K.imageLight};
co.prototype.computeThemeIcon_=function(K){var d,f;if(!(K==null?0:(d=K.themedIcon)==null?0:(f=d.icon)==null?0:f.iconType))return!1;this.icon.style.color=fj[K.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(K.imageWidth||18)+"px";this.icon.style.height=(K.imageHeight||18)+"px";return _.Hv(K.themedIcon.icon.iconType)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(J14.YtCardItemBoxBehavior),_.B("design:type",Object)],co.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],co.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],co.prototype,"data",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],co.prototype,"fit",void 0);_.x([_.A(),_.B("design:type",Boolean)],co.prototype,"isDarkTheme_",void 0);_.x([_.A({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.B("design:type",Object)],co.prototype,"themeImage_",void 0);_.x([_.A({computed:"computeThemeIcon_(data)"}),_.B("design:type",Object)],co.prototype,"themeIcon_",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],co.prototype,"isCircular_",void 0);
_.x([_.n8("#image"),_.B("design:type",Object)],co.prototype,"image",void 0);_.x([_.n8("#icon"),_.B("design:type",Object)],co.prototype,"icon",void 0);co=_.x([_.N7({is:"yt-themed-image-renderer",disableElementRegistration:!0})],co);
_.C(co,"yt-themed-image-renderer",function(){if(ar9===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;uW2===void 0&&(uW2=document.createElement("template"));var H=uW2;f.call(d,H.content.cloneNode(!0),K.content.firstChild);ar9=K}K=ar9;return K},{mode:2});var u_=function(){return _.q.apply(this,arguments)||this};
_.O(u_,_.q);u_.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"}}}}};
u_.prototype.computeImagePlacement_=function(K){return K||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],u_.prototype,"data",void 0);_.x([_.A({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.B("design:type",String)],u_.prototype,"imagePlacement",void 0);
u_=_.x([_.N7({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],u_);
_.C(u_,"yt-card-item-text-with-image-renderer",function(){if(cq9===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;iqJ===void 0&&(iqJ=document.createElement("template"));var H=iqJ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);cq9=K}K=cq9;return K},{mode:2});var a$=function(){return _.q.apply(this,arguments)||this};
_.O(a$,_.q);a$.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"}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],a$.prototype,"data",void 0);a$=_.x([_.N7({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],a$);
_.C(a$,"yt-card-item-error-renderer",function(){if(nRJ===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;yqL===void 0&&(yqL=document.createElement("template"));var H=yqL;f.call(d,H.content.cloneNode(!0),K.content.firstChild);nRJ=K}K=nRJ;return K},{mode:2});var Irk;var UR4;_.Na("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var I$=function(){return _.q.apply(this,arguments)||this};
_.O(I$,_.q);_.V=I$.prototype;
_.V.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"}}}}};
_.V.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.V.backgroundColorChanged_=function(){var K,d=(K=this.data)==null?void 0:K.backgroundColor;K=fj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.E(this.hostElement).querySelector("#main-content").style.backgroundColor=K};
_.V.headerPromoBackgroundColorChanged_=function(){var K,d=(K=this.data)==null?void 0:K.headerPromoBackgroundColor;K=fj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.E(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=K};
_.V.errorRendererVisibilityChanged_=function(){var K=this.isExpanded_,d;this.isErrorRendererVisible_=!((d=this.data)==null||!d.errorRenderer)&&!K};
_.V.onYtToggleButton_=function(K,d){this.isExpanded_=d.toggled};
I$.prototype.onYtToggleButton_=I$.prototype.onYtToggleButton_;I$.prototype.errorRendererVisibilityChanged_=I$.prototype.errorRendererVisibilityChanged_;I$.prototype.headerPromoBackgroundColorChanged_=I$.prototype.headerPromoBackgroundColorChanged_;I$.prototype.backgroundColorChanged_=I$.prototype.backgroundColorChanged_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(J14.YtCardItemBoxBehavior),_.B("design:type",Object)],I$.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.l(_.DR4.YtTappableItemBehavior),_.B("design:type",Object)],I$.prototype,"ytTappableItemBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],I$.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],I$.prototype,"isExpanded_",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],I$.prototype,"isErrorRendererVisible_",void 0);_.x([_.SP("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I$.prototype,"backgroundColorChanged_",null);_.x([_.SP("data.headerPromoBackgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I$.prototype,"headerPromoBackgroundColorChanged_",null);
_.x([_.SP("data.errorRenderer","isExpanded_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I$.prototype,"errorRendererVisibilityChanged_",null);_.x([_.VV("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],I$.prototype,"onYtToggleButton_",null);I$=_.x([_.N7({is:"yt-card-item-renderer",disableElementRegistration:!0})],I$);
_.C(I$,"yt-card-item-renderer",function(){if(UR4===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Irk===void 0&&(Irk=document.createElement("template"));var H=Irk;f.call(d,H.content.cloneNode(!0),K.content.firstChild);UR4=K}K=UR4;return K},{mode:2});_.Na("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Ud=function(){var K=_.q.apply(this,arguments)||this;K.hidden=!1;return K};
_.O(Ud,_.q);_.V=Ud.prototype;_.V.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.V.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.V.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var K,d=(K=this.commerceCartHeaderEntity)==null?void 0:K.isHidden;d!==void 0&&(this.hidden=d)}};
_.V.updateTitle=function(){var K=this.commerceCartHeaderEntity.isDisabled,d,f,H=(f=_.P((d=this.data)==null?void 0:d.item,NdN))==null?void 0:f.headingRenderer;H&&(d=Y6(H,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+d+".0.cardItemTextRenderer.textColor",K?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.V.updateSummaryText=function(){var K=this.commerceCartHeaderEntity;if(this.compact){var d,f,H=(f=_.P((d=this.data)==null?void 0:d.item,NdN))==null?void 0:f.headingRenderer;H&&(d=Y6(H,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+d+".1.cardItemTextRenderer.text",K.shortHeaderSummaryText?tb(K.shortHeaderSummaryText):K.headerSummaryText?tb(K.headerSummaryText):""))}else{var D;if(d=(D=_.P((H=this.data)==null?void 0:H.item,NdN))==null?void 0:D.additionalInfoRenderer)d=Y6(d,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+d+".text",K.headerSummaryText?tb(K.headerSummaryText):"")}};
_.V.updateCheckoutButton=function(){var K=this.commerceCartHeaderEntity,d,f,H=(f=_.P((d=this.data)==null?void 0:d.item,NdN))==null?void 0:f.additionalInfoRenderer;d=Y6(H,"buttonRenderer");var D;f=(D=this.commerceCartHeaderEntity)==null?void 0:D.isButtonDisabled;var S;D=(S=this.commerceCartHeaderEntity)==null?void 0:S.isButtonHidden;f!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+d+".buttonRenderer.isDisabled",f);D!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
D);var n;K=(n=K.checkoutButtonCommand)==null?void 0:n.innertubeCommand;K!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+d+".buttonRenderer.command",K)};
Ud.prototype.entityChanged=Ud.prototype.entityChanged;_.x([_.l(_.ou),_.B("design:type",Object)],Ud.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ud.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ud.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ud.prototype,"compact",void 0);_.x([_.A({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(K,d){return _.DR(K.entities,"commerceCartHeaderEntity",d)}}),
_.B("design:type",Object)],Ud.prototype,"commerceCartHeaderEntity",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ud.prototype,"hidden",void 0);_.x([_.SP("commerceCartHeaderEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ud.prototype,"entityChanged",null);Ud=_.x([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Ud);
_.C(Ud,"ytd-commerce-cart-header-renderer",function(){if(HqH!==void 0)return HqH;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return HqH=K},{mode:1});var Rb9;var FE4=_.iR(function(K,d){var f;return(f=K.onChangeCallback)==null?void 0:f.call(K,d)},1E3),zb2=_.C8(function(K){var d=K.data;
var f=K.iconMinus;K=K.iconPlus;var H=function(){return!!d().disabled},D=_.y(_.cC(0,void 0,"r56zNb")),S=D.next().value,n=D.next().value;
D={};D=_.SC("yt-spec-quantity-incrementer-shape__icon",(D["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return H()||S()===(d().onRemoveCommand?0:1)},D));
var u={};u=_.SC("yt-spec-quantity-incrementer-shape__icon",(u["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return S()>=d().maxValue||H()},u));
var a={};a=_.SC("yt-spec-quantity-incrementer-shape__text",(a["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return S()>d().maxValue},a["yt-spec-quantity-incrementer-shape__text--text-disabled"]=H,a));
var R=_.cp(function(){if(S()===1){var z,v;(v=(z=d()).onRemoveCommand)==null||v.call(z)}z=S()>d().maxValue?d().maxValue:S()-1;n(z);FE4(d(),z);return!1}),F=_.cp(function(){if(S()===d().maxValue)return!1;
var z=S()+1;n(z);FE4(d(),z);return!1});
_.Nk(function(){n(d().value)});
return _.U("quantity-incrementer-shape",null,_.U("div",{class:"yt-spec-quantity-incrementer-shape"},_.U("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return S()===(d().onRemoveCommand?0:1)||H()},
"aria-label":function(){return S()!==1?d().minusLabel:d().minimumReachedLabel},
"on:click":R},_.U(_.zz,{model:{circular:!0}}),_.U("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.U("div",{class:D},f()))),_.U("div",{class:a},S),_.U("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return S()>=d().maxValue||H()},
"aria-label":function(){return S()!==d().maxValue?d().plusLabel:d().maximumReachedLabel},
"on:click":F},_.U(_.zz,{model:{circular:!0}}),_.U("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.U("div",{class:u},K())))))},"Kd");_.sP(_.C8(function(K){function d(){f().onRemoveCommand&&_.me(f().onRemoveCommand)}
var f=K.data;var H=_.yF(YgO,function(){return f().quantityIncrementerEntityKey});
return _.U("yt-quantity-incrementer-view-model",null,_.U(zb2,{data:function(){var D=f(),S;var n=H()?!((S=H())==null||!S.disabled):!1;var u;S=H()?(u=H())==null?void 0:u.quantity:f().quantity;return Juo(D,n,d,S)},
iconMinus:function(){return _.U(_.U5,{icon:"BAR_HORIZONTAL",className:_.nK("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.U(_.U5,{icon:"ADD",className:_.nK("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Ld"),"yt-quantity-incrementer-view-model",{props:{data:_.rs}});var R$=function(){var K=_.q.apply(this,arguments)||this;K.compact=!1;K.hasQuantityIncrementer=!1;return K};
_.O(R$,_.q);R$.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"}}}};
R$.prototype.computeHasQuantityIncrementer=function(){var K;return!!_.P((K=this.data)==null?void 0:K.picker,$VB)};
R$.prototype.onLabelClick=function(){var K;(K=this.dropdownEl)==null||K.open()};
_.x([_.n8("ytd-dropdown-renderer"),_.B("design:type",Object)],R$.prototype,"dropdownEl",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],R$.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],R$.prototype,"quantityColor",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],R$.prototype,"compact",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.B("design:type",Object)],R$.prototype,"hasQuantityIncrementer",void 0);R$=_.x([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],R$);
_.C(R$,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(Rb9!==void 0)return Rb9;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Rb9=K},{mode:1});var XDs;var vRs;var F1=function(){return _.q.apply(this,arguments)||this};
_.O(F1,_.q);F1.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
F1.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
F1.prototype.updateTitle=function(){var K=this.disabledCartItemEntity;K.disableActionName&&this.set("data.title",tb(K.disableActionName))};
F1.prototype.updateButton=function(){var K,d=(K=this.disabledCartItemEntity.undoCommand)==null?void 0:K.innertubeCommand;d!==void 0&&(this.set("data.actionButton.buttonRenderer.command",d),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
F1.prototype.entityChanged=F1.prototype.entityChanged;_.x([_.l(_.ou),_.B("design:type",Object)],F1.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],F1.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],F1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(K,d){return _.DR(K.entities,"disabledCartItemEntity",d)}}),
_.B("design:type",Object)],F1.prototype,"disabledCartItemEntity",void 0);_.x([_.A(),_.B("design:type",Object)],F1.prototype,"data",void 0);_.x([_.SP("disabledCartItemEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F1.prototype,"entityChanged",null);F1=_.x([_.Q({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],F1);
_.C(F1,"ytd-disabled-cart-item-renderer",function(){if(vRs!==void 0)return vRs;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return vRs=K},{mode:1});_.Na("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var zJ=function(){var K=_.q.apply(this,arguments)||this;K.compact=!1;K.hidden=!1;K.errorHidden=!1;K.noOnTap=!1;return K};
_.O(zJ,_.q);_.V=zJ.prototype;
_.V.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"}}}};
_.V.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.V.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var K=this.firstButtonElement;K.alignByText=!0;K.iconAlignByText=!0}};
_.V.computeNoOnTap=function(K){return!K};
_.V.updateQuantityColor=function(){if(this.pickerElement){var K,d=(K=this.commerceCartItemEntity)==null?void 0:K.quantityColor;this.pickerElement.quantityColor=d}};
_.V.updateTotalPriceColor=function(){var K,d=(K=this.commerceCartItemEntity)==null?void 0:K.totalPriceColor;if(d){var f;K=_.P((f=this.data)==null?void 0:f.quantityPicker,tAf);if(f=_.P(K==null?void 0:K.price,YIL))f.textColor=d}};
_.V.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var K,d=(K=this.commerceCartItemEntity)==null?void 0:K.isHidden;d!==void 0&&(this.hidden=d)}};
_.V.updateHideErrorMessage=function(){var K,d=(K=this.commerceCartItemEntity)==null?void 0:K.hideErrorMessage;d!==void 0&&(this.errorHidden=d)};
_.V.updateQuantity=function(){var K=this,d,f=(d=this.commerceCartItemEntity)==null?void 0:d.quantity,H;d=(H=this.commerceCartItemEntity)==null?void 0:H.totalPrice;if(f){this.updateTotalPriceColor();this.updateQuantityColor();var D;H=_.P((D=this.data)==null?void 0:D.quantityPicker,tAf);if(D=_.P(H==null?void 0:H.price,YIL))D.text=d?{simpleText:d.content}:void 0;if(d=_.P(H==null?void 0:H.picker,$VB))d.quantity=f;var S;if(D=(S=_.P(H==null?void 0:H.picker,mhs))==null?void 0:S.entries){S=!1;d=void 0;D=
_.y(D);for(H=D.next();!H.done;H=D.next())H=H.value,H.dropdownItemRenderer&&(d||(d=H.dropdownItemRenderer),H.dropdownItemRenderer.isSelected=!1,f===H.dropdownItemRenderer.int32Value&&(S=!0,H.dropdownItemRenderer.isSelected=!0));!S&&d&&(d.isSelected=!0)}_.jW(this,function(){var n;K.set("data.quantityPicker",_.PR.unsafeClone((n=K.data)==null?void 0:n.quantityPicker))})}};
zJ.prototype.onYtRendererstamperFinished=zJ.prototype.onYtRendererstamperFinished;zJ.prototype.entityChanged=zJ.prototype.entityChanged;_.x([_.A(),_.B("design:type",Object)],zJ.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],zJ.prototype,"compact",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],zJ.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],zJ.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],zJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(K,d){return _.DR(K.entities,"commerceCartItemEntity",d)}}),
_.B("design:type",Object)],zJ.prototype,"commerceCartItemEntity",void 0);_.x([_.A(),_.B("design:type",Object)],zJ.prototype,"quantityPicker",void 0);_.x([_.A(),_.B("design:type",Object)],zJ.prototype,"compactQuantityPicker",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],zJ.prototype,"hidden",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],zJ.prototype,"errorHidden",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.B("design:type",Object)],zJ.prototype,"noOnTap",void 0);_.x([_.n8("ytd-commerce-cart-item-quantity-picker-renderer"),_.B("design:type",Object)],zJ.prototype,"pickerElement",void 0);_.x([_.n8("yt-button-renderer"),_.B("design:type",Element)],zJ.prototype,"firstButtonElement",void 0);
_.x([_.SP("commerceCartItemEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zJ.prototype,"entityChanged",null);_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zJ.prototype,"onYtRendererstamperFinished",null);zJ=_.x([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],zJ);
_.C(zJ,"ytd-commerce-cart-item-renderer",function(){if(XDs!==void 0)return XDs;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return XDs=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var M6t;var PPL;var X1=function(){return _.q.apply(this,arguments)||this};
_.O(X1,_.q);X1.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}}}}}};
X1.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
X1.prototype.updateCheckoutLineItems=function(){var K,d=(K=this.commerceCartCheckoutButtonEntity)==null?void 0:K.checkoutLineItems;d&&(K=d.map(function(f){a:{var H=f.price,D=f.description;switch(f.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":f={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:tb(D),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:tb(H),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:f={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:tb(D),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:tb(H),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 f}),this.set("data.summaryLineItems",K))};
X1.prototype.updateIsHidden=function(){var K,d=(K=this.commerceCartCheckoutButtonEntity)==null?void 0:K.isHidden;d!==void 0&&(this.hostElement.hidden=d)};
X1.prototype.entityChanged=X1.prototype.entityChanged;_.x([_.l(_.ou),_.B("design:type",Object)],X1.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],X1.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],X1.prototype,"data",void 0);_.x([_.A({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:vuG}),_.B("design:type",Object)],X1.prototype,"commerceCartCheckoutButtonEntity",void 0);_.x([_.SP("commerceCartCheckoutButtonEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],X1.prototype,"entityChanged",null);X1=_.x([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],X1);
_.C(X1,"ytd-commerce-cart-summary-renderer",function(){if(PPL!==void 0)return PPL;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return PPL=K},{mode:1});var gRk={};gRk.InjectBehavior=[ekB.InjectBehavior];var Oq9;var N_H;var vo=function(){return _.q.apply(this,arguments)||this};
_.O(vo,_.q);
vo.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:_.YP("menuRenderer")}}};
vo.prototype.onMenuTap=function(K){K.stopPropagation()};
_.x$.Object.defineProperties(vo.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 K,d;return!(((K=this.data)==null||!K.sectionHeading)&&((d=this.data)==null?void 0:d.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var K,d;return!(((K=this.data)==null||!K.image)&&((d=this.data)==null?void 0:d.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var K,d;return!(((K=this.data)==null||!K.menu)&&((d=this.data)==null?void 0:d.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.DR4.YtTappableItemBehavior),_.B("design:type",Object)],vo.prototype,"ytTappableItemBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vo.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data.accessibilityData"),_.B("design:type",String),_.B("design:paramtypes",[])],vo.prototype,"ariaLabel",null);_.x([_.W("data.sectionHeading","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vo.prototype,"sectionHeadingVisible",null);_.x([_.W("data.image","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vo.prototype,"imageVisible",null);
_.x([_.W("data.menu","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vo.prototype,"menuVisible",null);vo=_.x([_.N7({is:"yt-activity-item-renderer",disableElementRegistration:!0})],vo);
_.C(vo,"yt-activity-item-renderer",function(){if(N_H===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Oq9===void 0&&(Oq9=document.createElement("template"));var H=Oq9;f.call(d,H.content.cloneNode(!0),K.content.firstChild);N_H=K}K=N_H;return K},{mode:2});var YUv;var t6f;var oRJ;var $R6;var Mb=function(){return _.q.apply(this,arguments)||this};
_.O(Mb,_.q);
Mb.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"}}}}};
Mb.prototype.backgroundColorChanged_=function(){var K,d=(K=this.data)==null?void 0:K.backgroundColor;this.hostElement.style.backgroundColor=fj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Mb.prototype.backgroundColorChanged_=Mb.prototype.backgroundColorChanged_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Mb.prototype,"data",void 0);
_.x([_.SP("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mb.prototype,"backgroundColorChanged_",null);Mb=_.x([_.N7({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Mb);
_.C(Mb,"yt-offer-item-upsell-renderer",function(){if($R6===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;oRJ===void 0&&(oRJ=document.createElement("template"));var H=oRJ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);$R6=K}K=$R6;return K},{mode:2});_.Na("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Po=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};K.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return K};
_.O(Po,_.q);_.V=Po.prototype;
_.V.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:_.YP("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.V.computeContainerStyle_=function(K){return K};
_.V.computeContainerIsHidden_=function(K){return K&&!!K.isHidden};
_.V.computeShowSpinner_=function(K,d){return K&&d==="in-progress"};
_.V.computeShowMoreContentsButton_=function(K,d,f,H,D){return!(!(H&&H.length||D&&D.length&&f)||!K||d)};
_.V.onToggleButton_=function(K){var d=this;K.stopPropagation();this.isExpanded_=K.detail&&K.detail.toggled;var f,H;this.isExpanded_&&!this.data.continuationSection.length&&((f=this.data)==null?0:(H=f.continuation)==null?0:H.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Zp(this.hostElement,"yt-load-next-continuation",function(D){return d.getContinuationUrl_(d.data.continuation.onClickContinuationData,D)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.dN(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.V.onShowMoreContentsButtonClicked_=function(K){var d=this;K.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Zp(this.hostElement,"yt-load-next-continuation",function(f){return d.getContinuationUrl_(d.data.continuations[0].nextContinuationData,f)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.dN(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.V.getContinuationUrl_=function(K,d){var f=K.continuation;K=K.clickTrackingParams;var H=_.te();K&&H&&_.rN(H,_.RG(K));return _.LQ(d,{continuation:f})};
_.V.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var K=_.E(this.hostElement).querySelector("#continuation-section");K&&(K=K.querySelectorAll("ytmusic-item-section-renderer"))&&K.forEach(function(d){return d.classList.add("memberships-and-purchases")})};
_.V.dataChanged_=function(){var K;this.isExpanded_=!((K=this.data)==null||!K.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.V.updateCardOnClickCommand_=function(K){K=_.P(K,Fv9);var d,f;this.data&&((d=this.data)==null?0:d.targetId)&&K&&K.targetId===((f=this.data)==null?void 0:f.targetId)&&K.onClickCommand&&(this.data.onClickCommand=K.onClickCommand,this.isOnClickCommand_=!0)};
_.V.backgroundColorChanged_=function(){var K,d=(K=this.data)==null?void 0:K.backgroundColor;this.hostElement.style.backgroundColor=fj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Po.prototype.backgroundColorChanged_=Po.prototype.backgroundColorChanged_;Po.prototype.dataChanged_=Po.prototype.dataChanged_;Po.prototype.nextContinuationDataUpdated_=Po.prototype.nextContinuationDataUpdated_;Po.prototype.onToggleButton_=Po.prototype.onToggleButton_;_.x([_.l(_.lY),_.B("design:type",Object)],Po.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Po.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.Ws.YtNextContinuationBehavior),_.B("design:type",Object)],Po.prototype,"ytNextContinuationBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.x([_.l(gRk.InjectBehavior),_.B("design:type",Object)],Po.prototype,"injectBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Po.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Po.prototype,"compact",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Po.prototype,"isExpanded_",void 0);_.x([_.A({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.B("design:type",String)],Po.prototype,"containerStyle_",void 0);_.x([_.A({value:"not-started"}),_.B("design:type",String)],Po.prototype,"continuationStatus_",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.B("design:type",Boolean)],Po.prototype,"showSpinner_",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],Po.prototype,"isOnClickCommand_",void 0);_.x([_.A({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.B("design:type",Boolean)],Po.prototype,"showMoreContentsButton_",void 0);
_.x([_.A({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(K,d){return!d||K.entities?null:_.DR(K.entities,"cardItemContainerEntity",d)}}),
_.B("design:type",Object)],Po.prototype,"cardItemContainerEntity_",void 0);_.x([_.VV("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Po.prototype,"onToggleButton_",null);_.x([_.VV("yt-next-continuation-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Po.prototype,"nextContinuationDataUpdated_",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Po.prototype,"dataChanged_",null);_.x([_.SP("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Po.prototype,"backgroundColorChanged_",null);Po=_.x([_.N7({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Po);
_.C(Po,"yt-card-item-container-renderer",function(){if(t6f===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;YUv===void 0&&(YUv=document.createElement("template"));var H=YUv;f.call(d,H.content.cloneNode(!0),K.content.firstChild);t6f=K}K=t6f;return K},{mode:2});var gr=function(){return _.q.apply(this,arguments)||this};
_.O(gr,_.q);gr.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"}}}};
gr.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
gr.prototype.computeLoadingHidden=function(){var K;return!((K=this.commerceCartPageStateEntity)==null?0:K.cartActionInProgress)};
gr.prototype.updateNotification=function(){var K,d=(K=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:K.summaryText;d&&this.set("data.cartNotification",tb(d))};
gr.prototype.notificationEntityChanged=gr.prototype.notificationEntityChanged;_.x([_.l(_.ou),_.B("design:type",Object)],gr.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],gr.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],gr.prototype,"data",void 0);_.x([_.A({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(K,d){return _.DR(K.entities,"commerceCartExpandableNotificationEntity",d)}}),
_.B("design:type",Object)],gr.prototype,"commerceCartExpandableNotificationEntity",void 0);_.x([_.A({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(K,d){return _.DR(K.entities,"commerceCartPageStateEntity",d)}}),
_.B("design:type",Object)],gr.prototype,"commerceCartPageStateEntity",void 0);_.x([_.n8("#spinner"),_.B("design:type",HTMLElement)],gr.prototype,"spinner",void 0);_.x([_.SP("commerceCartExpandableNotificationEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gr.prototype,"notificationEntityChanged",null);gr=_.x([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],gr);
_.C(gr,"ytd-commerce-cart-renderer",function(){if(M6t!==void 0)return M6t;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return M6t=K},{mode:1});var ERN;var Od=function(){var K=_.q.apply(this,arguments)||this;K.bigImage=!1;return K};
_.O(Od,_.q);_.x$.Object.defineProperties(Od.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.placeholderImageUrl}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Od.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Od.prototype,"bigImage",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Od.prototype,"placeholderImageUrl",null);Od=_.x([_.Q({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Od);
_.C(Od,"ytd-empty-product-shelf-renderer",function(){if(ERN!==void 0)return ERN;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ERN=K},{mode:1});var hbv;var Nb=function(){var K=_.q.apply(this,arguments)||this;K.itemStyle="link-item";K.watchMetadataRefresh=!1;K.skinnyMode=!1;K.metaPanel=!1;K.inStructuredDescription=!1;K.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};K.updateOnResizeDebouncer=null;return K};
_.O(Nb,_.q);_.V=Nb.prototype;_.V.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.V.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"}}}}};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.V.attachVEs=function(K){K.trackingParams&&_.cv().graftServerVe(K.trackingParams)};
_.V.handleUpdateMerchShelfAction=function(K){var d=this,f=_.P(K.updateMerchandiseShelfAction.merchandiseShelf,_.pkH);f&&(f.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){d.attachVEs(f);d.data=f},Number(f.renderDelayMs))):(this.attachVEs(f),this.data=f))};
_.V.updateOnResize=function(){if(this.JSC$14686_scrollContainer!==void 0&&this.JSC$14686_scrollContainer.clientWidth!==0&&this.items!==void 0){var K=this.JSC$14686_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-K));this.ytdHorizontalListBehavior.reposition_();var d;switch((d=this.data)==null?void 0:d.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var f,
H;((f=this.data)==null?void 0:(H=f.items)==null?void 0:H.length)===1?this.itemStyle="cta-item":this.itemStyle=K>=740?"large-item":"small-item"}}};
_.V.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.ZT(this.updateOnResizeDebouncer,_.rh.after(100),this.updateOnResize)};
Nb.prototype.debouncedUpdateOnResize=Nb.prototype.debouncedUpdateOnResize;Nb.prototype.dataChanged=Nb.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Nb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.wa.YtdHorizontalListBehavior),_.B("design:type",Object)],Nb.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Nb.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Nb.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Nb.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Nb.prototype,"itemStyle",void 0);_.x([_.A({value:6}),_.B("design:type",Number)],Nb.prototype,"initialCount",void 0);
_.x([_.A({value:"data.items"}),_.B("design:type",String)],Nb.prototype,"itemsPath",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Nb.prototype,"watchMetadataRefresh",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Nb.prototype,"skinnyMode",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Nb.prototype,"metaPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Nb.prototype,"inStructuredDescription",void 0);
_.x([_.n8("#items"),_.B("design:type",HTMLDivElement)],Nb.prototype,"items",void 0);_.x([_.n8("#scroll-container"),_.B("design:type",HTMLDivElement)],Nb.prototype,"JSC$14686_scrollContainer",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nb.prototype,"dataChanged",null);_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nb.prototype,"debouncedUpdateOnResize",null);
Nb=_.x([_.Q({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Nb);
_.C(Nb,"ytd-merch-shelf-renderer",function(){if(hbv!==void 0)return hbv;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return hbv=K},{mode:2});var bqt;var t0=function(){var K=_.q.apply(this,arguments)||this;K.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 K};
_.O(t0,_.q);_.V=t0.prototype;
_.V.addBackstagePostAction=function(K){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(K=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",K))&&(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:K}):this.set("data.contents",[{backstagePostThreadRenderer:K}]))};
_.V.addBackstageCommentAction=function(K){var d=this.get("addBackstageCommentAction.parentId",K);K=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",K);if(d&&K){d=this.postIdToIndices(d);for(var f=0;f<d.length;f++){var H=d[f];if(H<0)break;H="data.contents."+H+".backstagePostThreadRenderer.comments";this.get(H)&&(this.get(H+".backstageCommentsRenderer.contents")&&this.push(H+".backstageCommentsRenderer.contents",{commentThreadRenderer:K}),this.get(H+".backstageCommentsRenderer.teaserContents")?
this.push(H+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:K}):this.set(H+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:K}]))}}};
_.V.addBackstageReplyAction=function(K){var d=this.get("addBackstageReplyAction.parentId",K);K=this.get("addBackstageReplyAction.renderer.commentRenderer",K);d&&K&&this.setCreatorReply(d,K)};
_.V.banAuthorAction=function(K){var d=this.get("banAuthorAction.commentId",K);d&&(K=this.get("banAuthorAction.parentCommentId",K)||this.getParentPostId(d),this.removeFromStream(d,K))};
_.V.hideReportedCommentAction=function(K){var d=this.get("hideReportedCommentAction.commentId",K);d&&((K=this.get("hideReportedCommentAction.parentCommentId",K))||(K=this.getParentPostId(d)),this.removeFromStream(d,K))};
_.V.replaceBackstageCommentAction=function(K){var d=this.get("replaceBackstageCommentAction.commentId",K),f=this.get("replaceBackstageCommentAction.parentId",K);K=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",K);if(d&&f&&K){f=this.postIdToIndices(f);for(var H=0;H<f.length;H++){var D=f[H];if(D<0)break;var S=this.commentIdToIndex(d,D,!1);if(S>=0){var n=this.get("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+S+".commentThreadRenderer.replies.commentRepliesRenderer");
n&&(K.replies={commentRepliesRenderer:n});this.splice("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",S,1,{commentThreadRenderer:K})}S=this.commentIdToIndex(d,D,!0);if(S>=0){if(n=this.get("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(S+".commentThreadRenderer.replies.commentRepliesRenderer")))K.replies={commentRepliesRenderer:n};this.splice("data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
S,1,{commentThreadRenderer:K})}}}};
_.V.replaceBackstagePostAction=function(K){var d=this.get("replaceBackstagePostAction.itemId",K);if(d){d=this.postIdToIndices(d);for(var f=0;f<d.length;f++){var H=d[f];if(H<0)break;var D=this.getPostRendererType(H),S=this.get("replaceBackstagePostAction.renderer."+D,K);if(!S&&D!=="sharedPostRenderer")break;var n=!1;S||(n=!0,S=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",K));if(!S)break;var u={};n?(_.OP(u,SaB,S),this.set("data.contents."+H+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
u)):(_.OP(u,new _.Z(D),S),this.set("data.contents."+H+".backstagePostThreadRenderer.post",u))}}};
_.V.replaceBackstageReplyAction=function(K){var d=this.get("replaceBackstageReplyAction.replyId",K),f=this.get("replaceBackstageReplyAction.parentId",K);K=this.get("replaceBackstageReplyAction.renderer.commentRenderer",K);d&&K&&f&&this.setCreatorReply(f,K)};
_.V.removeCommentAction=function(K){var d=this.get("removeCommentAction.commentId",K);if(d){var f=this.get("removeCommentAction.parentCommentId",K);f&&this.get("removeCommentAction.isCreatorReply",K)?this.setCreatorReply(f,void 0):(f||(f=this.getParentPostId(d)),this.removeFromStream(d,f))}};
_.V.setCreatorReply=function(K,d){var f=this.getParentPostId(K);if(f){f=this.postIdToIndices(f);for(var H=0;H<f.length;H++){var D=f[H];if(D<0)break;var S=this.commentIdToIndex(K,D,!1);if(S>=0){var n="data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+S;S=n+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";n+=".commentThreadRenderer.replies";d==void 0?(this.set(n,{}),this.set(S,!1)):(this.set(n,{commentRepliesRenderer:{teaserContents:[{commentRenderer:d}]}}),
this.set(n+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(S,!0))}S=this.commentIdToIndex(K,D,!0);S>=0&&(S="data.contents."+D+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+S,D=S+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",S+=".commentThreadRenderer.replies",d==void 0?(this.set(S,{}),this.set(D,!1)):(this.set(S,{commentRepliesRenderer:{teaserContents:[{commentRenderer:d}]}}),this.set(D,!0)))}}};
_.V.removeFromStream=function(K,d){if(d){d=this.postIdToIndices(d);for(var f=0;f<d.length;f++){var H=d[f];if(H<0)break;var D=this.commentIdToIndex(K,H,!1);D>=0&&this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",D,1);D=this.commentIdToIndex(K,H,!0);D>=0&&this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",D,1);H="data.contents."+H+".backstagePostThreadRenderer.post.backstagePostRenderer";
D=H+".backstageAttachment.pollRenderer.votedCommentId";this.get(D)===K&&(this.set(D,null),this.set(H+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(d=this.postIdToIndices(K).reverse(),f=0;f<d.length;f++){H=d[f];if(H<0)break;D=this.getPostRendererType(H);var S=this.get("backstagePostThreadRenderer.post."+D,this.data.contents[H]);S.postId===K?this.splice("data.contents",H,1):D==="sharedPostRenderer"&&this.set("data.contents."+H+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);S.scheduledPublishTimeSec&&_.ev(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.V.postIdToIndices=function(K){for(var d=[],f=0;f<this.data.contents.length;f++){var H=this.getPostRendererType(f);this.get("backstagePostThreadRenderer.post."+H+".postId",this.data.contents[f])===K&&d.push(f);if(H==="sharedPostRenderer"){var D=this.get("backstagePostThreadRenderer.post."+H+".originalPost.backstagePostRenderer.postId",this.data.contents[f]);H=this.get("backstagePostThreadRenderer.post."+H+".originalPost.postRenderer.postId",this.data.contents[f]);D!==K&&H!==K||d.push(f)}}return d};
_.V.commentIdToIndex=function(K,d,f){if(d<0)return-1;var H,D,S,n,u=_.P((H=this.data)==null?void 0:(D=H.contents)==null?void 0:(S=D[d])==null?void 0:(n=S.backstagePostThreadRenderer)==null?void 0:n.comments,Dv6);return(d=f?u==null?void 0:u.teaserContents:u==null?void 0:u.contents)&&d.length?d.findIndex(function(a){return _.P(a,mvv).comment.commentRenderer.commentId===K}):-1};
_.V.getParentPostId=function(K){K=K.split(".");if(K[1])return K[0]};
_.V.getPostRendererType=function(K){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[K])?"sharedPostRenderer":"backstagePostRenderer"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],t0.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],t0.prototype,"data",void 0);t0=_.x([_.Q({disableElementRegistration:!0,is:"ytd-backstage-items"})],t0);
_.C(t0,"ytd-backstage-items",function(){if(bqt!==void 0)return bqt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return bqt=
K},{mode:1});var mR2;_.vP({is:"ytd-comments",_template:function(){if(mR2!==void 0)return mR2;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return mR2=K},
behaviors:[_.d9B.YtHostElementBehavior,_.ra.YtPlayerListenerBehavior,_.p.YtRendererBehavior,_.kc.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(K){K&&K.value&&K.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(K){K&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.NY("wn_comments");var K=_.te();K&&_.Ox({clientScreenNonce:K},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(K){K=s8z(K);var d,f,H;if(K=(d=K)==null?void 0:(f=d.createCommentAction)==null?void 0:(H=f.contents)==null?void 0:H.commentThreadRenderer){var D,S,n,u,a,R;!this.isBackstage&&((D=this.data)==null?0:(S=D.header)==null?0:(n=S.commentsHeaderRenderer)==null?0:(u=n.createRenderer)==null?0:(a=u.commentSimpleboxRenderer)==null?0:(R=a.zeroStep)==null?0:R.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var F,z,v,g;this.isBackstage&&((F=this.data)==null?0:(z=F.header)==null?0:(v=z.commentsHeaderRenderer)==null?0:(g=v.zeroStateMessage)==null?0:g.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(K)}},
doReplyInsert_:function(K,d,f,H){H?this.splice(K,H,0,d):this.push(K,d)},
getRepliesPath_:function(K){return"data.contents."+K+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(K,d){K=this.getRepliesPath_(K);return d?K+".commentRepliesRenderer.teaserContents":K+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(K){K=s8z(K);var d,f,H=(d=K)==null?void 0:(f=d.createCommentReplyAction)==null?void 0:f.parentCommentId,D,S;if(d=(D=K)==null?void 0:(S=D.createCommentReplyAction)==null?void 0:S.contents)if(H=this.commentIdToIndex_(H),!(H<0))if(D=this.getRepliesPath_(H),this.get(D)){var n,u;K=(n=K)==null?void 0:(u=n.createCommentReplyAction)==null?void 0:u.replyToCommentId;n=this.getRepliesContentsPath_(H,!1);this.get(n)&&(u=this.get(n).length,D=n+"."+(u-1)+".continuationItemRenderer",
this.get(D+".button")?(D=this.replyIdToIndex_(K,H,!1),this.doReplyInsert_(n,d,D,u-1)):this.get(D)||(u=this.replyIdToIndex_(K,H,!1),this.doReplyInsert_(n,d,u,null)));n=this.getRepliesContentsPath_(H,!0);this.get(n)?(H=this.replyIdToIndex_(K,H,!0),(!K||H>=0)&&this.doReplyInsert_(n,d,H,null)):this.set(n,[d])}else this.set(D,{commentRepliesRenderer:{teaserContents:[d]}})},
hideReportedCommentAction_:function(K){var d,f=K==null?void 0:(d=K.hideReportedCommentAction)==null?void 0:d.commentId;if(f){var H;K=K==null?void 0:(H=K.hideReportedCommentAction)==null?void 0:H.parentCommentId;f=f.replace("#",".");K||(K=this.getParentCommentId_(f));this.remove_(f,K)}},
getParentCommentId_:function(K){K=K.split(".");if(K[1])return K[0]},
removeCommentAction_:function(K){var d,f=K==null?void 0:(d=K.removeCommentAction)==null?void 0:d.commentId;if(f){var H;K=K==null?void 0:(H=K.removeCommentAction)==null?void 0:H.parentCommentId;f=f.replace("#",".");K||(K=this.getParentCommentId_(f));this.remove_(f,K)}},
pinCommentAction_:function(K){K=s8z(K);var d,f,H=(d=K)==null?void 0:(f=d.pinCommentAction)==null?void 0:f.commentId;H&&(K=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",K))&&(this.remove_(H),this.insert_(K,!0))},
unpinCommentAction_:function(K){K=s8z(K);var d,f,H=(d=K)==null?void 0:(f=d.unpinCommentAction)==null?void 0:f.commentId;if(H){var D,S,n;if(K=(D=K.unpinCommentAction)==null?void 0:(S=D.actionResult)==null?void 0:(n=S.update)==null?void 0:n.commentThreadRenderer)this.remove_(H),this.insert_(K)}},
banAuthorAction_:function(K){var d,f=K==null?void 0:(d=K.banAuthorAction)==null?void 0:d.commentId;if(f){var H;K=K==null?void 0:(H=K.banAuthorAction)==null?void 0:H.parentCommentId;f=f.replace("#",".");K||(K=this.getParentCommentId_(f));this.remove_(f,K)}},
commentIdToIndex_:function(K){var d;return K&&(d=this.data)!=null&&d.contents?this.data.contents.findIndex(function(f){var H,D;return K===((f==null?void 0:(H=f.commentThreadRenderer)==null?void 0:H.commentViewModel)&&((D=_.P(f.commentThreadRenderer.commentViewModel,AmJ))==null?void 0:D.commentId))}):-1},
insert_:function(K,d){var f,H;if((f=this.data)==null?0:(H=f.contents)==null?0:H.some(function(S){return!(S==null||!S.commentThreadRenderer)}))for(f=0,H=this.data.contents.length;f<H;f++){var D=this.data.contents[f].commentThreadRenderer;
if(this.RenderingPriority[K.renderingPriority]>=this.RenderingPriority[D.renderingPriority]){d&&this.RenderingPriority[K.renderingPriority]==this.RenderingPriority[D.renderingPriority]?this.splice("data.contents",f,1,{commentThreadRenderer:K}):this.splice("data.contents",f,0,{commentThreadRenderer:K});break}}else this.set("data.contents",[{commentThreadRenderer:K}])},
doReplyRemove_:function(K,d,f){K=this.replyIdToIndex_(K,d,f);K<0||(d=this.getRepliesContentsPath_(d,f),this.splice(d,K,1))},
remove_:function(K,d){d=this.commentIdToIndex_(d);d<0?(d=this.commentIdToIndex_(K),d<0||this.splice("data.contents",d,1)):(this.doReplyRemove_(K,d,!1),this.doReplyRemove_(K,d,!0))},
replyIdToIndex_:function(K,d,f){if(d<0)return-1;d=this.getRepliesContentsPath_(d,f);d=this.get(d);if(!d||!d.length)return-1;f=0;for(var H=d.length;f<H;f++){var D=void 0,S=void 0;if(((D=d[f])==null?void 0:(S=D.commentViewModel)==null?void 0:S.commentId)===K)return f}return-1},
computeIsBackstage_:function(K){return!!K},
tickForCommentsTimer_:function(K){_.ty(K,void 0,"wn_comments")},
reloadComments_:function(K){K&&K.reloadCommentsCommand&&K.reloadCommentsCommand.command&&K.reloadCommentsCommand.command.continuationCommand&&_.dN(this,[K.reloadCommentsCommand.command])}});var o$=function(){return _.cP.apply(this,arguments)||this};
_.O(o$,_.cP);_.V=o$.prototype;_.V.bindIf=function(K,d,f){return K?d:f};
_.V.bindIfDefined=function(K,d){return K!==void 0?K:d};
_.V.booleanString=function(K){return(!!K).toString()};
_.V.equals=function(){for(var K=_.Pg.apply(0,arguments),d=K[0],f=1;f<K.length;f++)if(d!=K[f])return!1;return!0};
_.V.isGreaterThan=function(K,d){return K>d};
_.V.isLessThan=function(K,d){return K<d};
_.V.logicalAND=function(){for(var K=_.Pg.apply(0,arguments),d=!!K[0],f=1;f<K.length;f++)d=d&&!!K[f];return d};
_.V.logicalOR=function(){for(var K=_.Pg.apply(0,arguments),d=!!K[0],f=1;f<K.length;f++)d=d||!!K[f];return d};
_.V.toBool=function(K){return!!K};
o$.prototype.toBool=o$.prototype.toBool;o$.prototype.logicalOR=o$.prototype.logicalOR;o$.prototype.logicalAND=o$.prototype.logicalAND;o$.prototype.isLessThan=o$.prototype.isLessThan;o$.prototype.isGreaterThan=o$.prototype.isGreaterThan;o$.prototype.equals=o$.prototype.equals;o$.prototype.booleanString=o$.prototype.booleanString;o$.prototype.bindIfDefined=o$.prototype.bindIfDefined;o$.prototype.bindIf=o$.prototype.bindIf;o$=_.x([_.uL()],o$);_.lr8=[o$.prototype];var WEs;var Gcf;var $T=function(){return _.q.apply(this,arguments)||this};
_.O($T,_.q);$T.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
$T.prototype.onBackIconTap_=function(){window.history.back()};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$T.prototype,"data",void 0);$T=_.x([_.N7({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],$T);
_.C($T,"yt-header-with-back-renderer",function(){if(Gcf===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;WEs===void 0&&(WEs=document.createElement("template"));var H=WEs;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Gcf=K}K=Gcf;return K},{mode:2});var AqL;var T_f;var Ed=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(Ed,_.q);_.V=Ed.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.V.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.isDarkTheme=K,this.setUrl())};
_.V.dataChanged=function(){var K=this;if(this.data){var d=this.setUrl();d&&_.jR({destination:window,iframe:this.iframe,origin:_.iJf(d.toString()),channelName:"yt-iframe",onMessage:function(f){(f=K.getCommunicationCommand(f.data))&&K.ytComponentBehavior.resolveCommand(f)},
onEstablished:function(){}})}};
_.V.setUrl=function(){if(this.data&&this.data.iframeUrl){var K=_.$K(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(K)return _.$G(this.iframe,K),K}};
_.V.getCommunicationCommand=function(K){var d;if((d=this.data)!=null&&d.onCommunicationCommandsMap){d=this.data.onCommunicationCommandsMap.find(function(D){return D.key===K});
if(d==null?0:d.value)return d==null?void 0:d.value;try{var f=yQL(_.Us(K)),H=this.data.onCommunicationCommandsMap.find(function(D){return D.key===(f==null?void 0:_.Xo(f,1))});
if(H==null?0:H.value)return H==null?void 0:H.value}catch(D){}}};
Ed.prototype.dataChanged=Ed.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Ed.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Ed.prototype,"actionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ed.prototype,"data",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],Ed.prototype,"isDarkTheme",void 0);_.x([_.n8("#iframe"),_.B("design:type",HTMLIFrameElement)],Ed.prototype,"iframe",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ed.prototype,"dataChanged",null);Ed=_.x([_.N7({is:"yt-iframe-renderer",disableElementRegistration:!0})],Ed);
_.C(Ed,"yt-iframe-renderer",function(){if(T_f===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;AqL===void 0&&(AqL=document.createElement("template"));var H=AqL;f.call(d,H.content.cloneNode(!0),K.content.firstChild);T_f=K}K=T_f;return K},{mode:2});_.h0=function(K){_.gG.call(this);this.callback=K;this.bezier=new QO9(0,0,.4,0,.2,1,1,1);this.delay=new _.Jd(this.next,window,this);this.JSC$14717_animating=!1;_.cy(this,this.delay)};
_.O(_.h0,_.gG);_.h0.prototype.isAnimating=function(){return this.JSC$14717_animating};
_.h0.prototype.start=function(K,d,f){this.config={from:K,to:d,duration:f,startTime:(0,_.k_)()};this.JSC$14717_animating=!0;this.next()};
_.h0.prototype.stop=function(){this.delay.stop();this.JSC$14717_animating=!1;this.config=void 0};
_.h0.prototype.next=function(){if(this.config){var K=this.config,d=K.from,f=K.to,H=K.duration;K=K.startTime;var D=(0,_.k_)()-K;K=this.bezier;H=CAk(K,D/H);if(H==0)K=K.y0;else if(H==1)K=K.y3;else{D=uR(K.y0,K.y1,H);var S=uR(K.y1,K.y2,H);K=uR(K.y2,K.y3,H);D=uR(D,S,H);S=uR(S,K,H);K=uR(D,S,H)}K=_.Oa(K,0,1);this.callback(d+(f-d)*K);K<1?this.delay.start():this.JSC$14717_animating=!1}};_.b_=new _.xn("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var rq4={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},QPN=function(K,d,f,H){_.gG.call(this);this.JSC$14725_miniAppId=K;this.localReleaseId=d;this.derivedDeviceInterface=f;this.isForeground=H;this.JSC$14725_playNonceResolver=new _.fU;this.playPingTimerId=NaN;this.playPingIntervalMs=_.di("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.di("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.M("enable_displaying_ppn");this.JSC$14725_miniAppClientDataProvider=_.eq().resolve(_.b_);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;qU9(this);var D=setTimeout(function(){_.h3(new _.X4("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14725_playNonceResolver.promise.then(function(){clearTimeout(D)})};
_.O(QPN,_.gG);var CPs=function(K,d){K.JSC$14725_playNonceResolver.resolve(d!=null?d:Oy(8));K.enableDisplayingPpn&&jPf(K).then(function(f){K.JSC$14725_miniAppClientDataProvider.clientData.set("post_play_nonce",f)})},jPf=function(K){return _.c(function(d){return d.nextAddress==1?_.I(d,K.JSC$14725_playNonceResolver.promise,2):d.return(d.yieldResult)})},qU9=function(K){var d,f;
_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$14725_playNonceResolver.promise,2);d=H.yieldResult;f={miniAppInfo:{externalPostId:K.JSC$14725_miniAppId,localReleaseId:K.localReleaseId,postPlayNonce:d,derivedDeviceInterface:K.derivedDeviceInterface}};_.Ox(f);_.iQ(H)})},LE2=function(K){K.state!==0?_.h3(new _.X4("[MiniAppPlayLogger] recordPlayStart failed with state "+rq4[K.state])):(K.state=1,m0(K,"ma_cl"),l_(K,"PLAY_EVENT_TYPE_PLAY_START"),xRN(K))},B_f=function(K){K.isForeground=!1;
l_(K,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Jq4=function(K){K.state!==1&&K.state!==2?_.h3(new _.X4("[MiniAppPlayLogger] recordPlayEnd failed with state "+rq4[K.state])):(K.state=3,window.clearInterval(K.playPingTimerId),K.playPingTimerId=NaN,fTB(),l_(K,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},sP8=function(K,d){K.state===2&&K.gameReady&&(K.firstClickRecorded?Date.now()-K.clickRecordedMs<K.playClickIntervalMs||(K.clickRecordedMs=Date.now(),l_(K,"PLAY_EVENT_TYPE_PLAY_CLICK")):d&&(m0(K,"ma_fua"),l_(K,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),K.firstClickRecorded=!0,K.clickRecordedMs=Date.now()))};
QPN.prototype.logError=function(K){var d=this,f;_.c(function(H){if(H.nextAddress==1)return K.metadata.externalPostId=d.JSC$14725_miniAppId,f=K.metadata,_.I(H,Promise.race([d.JSC$14725_playNonceResolver.promise,new Promise(function(D){setTimeout(function(){D("")},3E4)})]),2);
f.postPlayNonce=H.yieldResult;K.metadata.localReleaseId=d.localReleaseId;K.loggingError.level="WARNING";_.$7(K.loggingError,K.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:K.metadata});_.iQ(H)})};
var kcH=function(K,d,f,H){var D,S,n,u,a,R;_.c(function(F){if(F.nextAddress==1)return _.I(F,K.JSC$14725_playNonceResolver.promise,2);D=F.yieldResult;S={externalPostId:K.JSC$14725_miniAppId,localReleaseId:K.localReleaseId,postPlayNonce:D,sdkVersion:f,api:d};H!==void 0&&(S.networkRequestsMeasurement={networkRequests:_.Km(H,1),cachedRequests:_.Km(H,2),transferredBytes:_.Km(H,3)},(n=H)==null?0:_.V5(n,jx,6))&&(S.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((u=_.eQ(H,
jx,6))==null?void 0:Mi(u,1))||"0",cacheHits:((a=_.eQ(H,jx,6))==null?void 0:Mi(a,2))||"0",cachedBytes:((R=_.eQ(H,jx,6))==null?void 0:Mi(R,3))||"0"});_.t3("miniAppSdkUsage",S);_.iQ(F)})},ZqN=function(K,d,f){var H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r;
_.c(function(J){if(J.nextAddress==1)return _.I(J,K.JSC$14725_playNonceResolver.promise,2);H=J.yieldResult;D={externalPostId:K.JSC$14725_miniAppId,localReleaseId:K.localReleaseId,postPlayNonce:H,sdkVersion:f,measurementWindow:{startTimestampMs:String(Fo(d,1)),endTimestampMs:String(Fo(d,2))},frameRate:{averageFrameTimeDeltaMs:z9(d,3),averageFrameIdleTimeMs:z9(d,4)}};_.V5(d,Ch,5)&&(D.networkRequests={networkRequests:(S=wO(d))==null?void 0:_.Km(S,1),cachedRequests:(n=wO(d))==null?void 0:_.Km(n,2),transferredBytes:(u=
wO(d))==null?void 0:_.Km(u,3),sameOriginStatusCodeToCounts:wDs((a=wO(d))==null?void 0:dlu(a,4)),crossOriginStatusCodeToCounts:wDs((R=wO(d))==null?void 0:dlu(R,5))},(F=wO(d))==null?0:_.V5(F,jx,6))&&(D.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((z=wO(d))==null?void 0:(v=_.eQ(z,jx,6))==null?void 0:Mi(v,1))||"0",cacheHits:((g=wO(d))==null?void 0:(N=_.eQ(g,jx,6))==null?void 0:Mi(N,2))||"0",cachedBytes:((h=wO(d))==null?void 0:(m=_.eQ(h,jx,6))==null?void 0:Mi(m,3))||"0"});_.V5(d,
dj2,7)&&(D.gameCapture={averageFrameTimeDeltaMs:(T=_.eQ(d,dj2,7))==null?void 0:z9(T,1),averageFrameIdleTimeMs:(r=_.eQ(d,dj2,7))==null?void 0:z9(r,2)});_.t3("miniAppPerformanceMetrics",D);_.iQ(J)})},eb2=function(K,d,f){var H,D;
return _.c(function(S){if(S.nextAddress==1)return _.I(S,K.JSC$14725_playNonceResolver.promise,2);H=S.yieldResult;D={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:K.JSC$14725_miniAppId,postPlayNonce:H,miniAppReleaseId:K.localReleaseId},derivedDeviceInterface:K.derivedDeviceInterface,adTriggerType:d};D.rejectedReason=f||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.t3("miniAppAdEvent",D);_.iQ(S)})};
QPN.prototype.disposeInternal=function(){_.gG.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var l_=function(K,d,f,H){f=f===void 0?{}:f;H=H===void 0?!1:H;var D,S,n,u;_.c(function(a){if(a.nextAddress==1)return D=K.isForeground,S=K.beforeReady,_.I(a,K.JSC$14725_playNonceResolver.promise,2);n=a.yieldResult;u={externalPostId:K.JSC$14725_miniAppId,localReleaseId:K.localReleaseId,derivedDeviceInterface:K.derivedDeviceInterface,postPlayNonce:n,type:d};f.sequenceGroup=n;u.playState=S?"PLAY_STATE_NOT_READY":D?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.t3("miniAppPlayEvent",u,f);
H&&_.oB();_.iQ(a)})},m0=function(K,d){var f;
_.c(function(H){if(H.nextAddress==1)return f=(0,_.k_)(),_.I(H,K.JSC$14725_playNonceResolver.promise,2);_.YJ(d,f);_.iQ(H)})},xRN=function(K){isNaN(K.playPingTimerId)&&(K.playPingTimerId=_.SQ(function(){K.state!==1&&K.state!==2?_.h3(new _.X4("[MiniAppPlayLogger] reportPlayPing failed with state "+rq4[K.state])):l_(K,"PLAY_EVENT_TYPE_PLAY_PING")},K.playPingIntervalMs))},wDs=function(K){return Array.from(K.entries()).map(function(d){var f=_.y(d);
d=f.next().value;f=f.next().value;return{key:d,value:f}})};var pDv=_.di("show_mini_app_ad_frequency_cap_ms",0),Kzf=function(){this.showAdIntervalMs=pDv;this.isRateLimited=!0},d$N=function(K,d){setTimeout(function(){return K.isRateLimited=!1},K.showAdIntervalMs);
K.showMiniAppAdCommand=d.showMiniAppAdCommand;K.isEmbeddedInWebview=d.isEmbeddedInWebview;K.playLogger=d.playLogger},HV9=function(K,d){var f;
return _.c(function(H){if(H.nextAddress==1){if(!K.showMiniAppAdCommand||!K.isEmbeddedInWebview)return H.return(fZk(K,d,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(K.isRateLimited)return H.return(fZk(K,d,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));K.adResolver=new _.fU;f=PRk(new MOs,d);$6(K.showMiniAppAdCommand,gWJ(f));K.isRateLimited=!0;setTimeout(function(){return K.isRateLimited=!1},K.showAdIntervalMs);
return _.I(H,K.adResolver.promise,2)}return H.return(H.yieldResult)})};
Kzf.prototype.onAdFinished=function(K){K=mTf(K);var d;(d=this.adResolver)==null||d.resolve(K)};
var fZk=function(K,d,f){var H;return _.c(function(D){if(D.nextAddress==1)D=_.I(D,(H=K.playLogger)==null?void 0:eb2(H,K3p(d),f),2);else{var S=D.return;var n=new btN;n=_.py(n,1,2);D=S.call(D,n)}return D})};var D$2=new _.xn("INNERTUBE_MANAGER_TOKEN");var Vuk=function(){this.callbacks={}};
Vuk.prototype.initialize=function(K){var d=this;this.callbacks=K;window.youtubewebview?window.youtubewebview.onmessage=function(f){SJ4(d,f)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(f){SJ4(d,f)})};
var SJ4=function(K,d){if(d.data)try{var f=yQL(d.data);if(_.ql(_.Db(f,1))!=null){var H=UO6(_.Xo(f,2));switch(_.Xo(f,1)){case "yt-mini-app-load-audio-state":var D,S;(S=(D=K.callbacks).onAudioStateLoaded)==null||S.call(D,_.R2(H,RB(H,Pr,1)));break;case "yt-mute-mini-app":var n,u;(u=(n=K.callbacks).onMuteMiniApp)==null||u.call(n);break;case "yt-unmute-mini-app":var a,R;(R=(a=K.callbacks).onUnmuteMiniApp)==null||R.call(a);break;case "yt-playable-exit":var F,z;(z=(F=K.callbacks).onExit)==null||z.call(F);
break;case "yt-post-play-nonce":var v,g;(g=(v=K.callbacks).onPostPlayNonceReceived)==null||g.call(v,PY(H,2,Pr));break;case "yt-confirm-exit-mini-app":var N,h;(h=(N=K.callbacks).confirmExitMiniApp)==null||h.call(N);break;case "yt-confirm-exit-mini-app-edu":var m,T;(T=(m=K.callbacks).confirmExitMiniAppEdu)==null||T.call(m);break;case "yt-benchmarking-response":var r,J;(J=(r=K.callbacks).onNativeBenchmarkingMessageReceived)==null||J.call(r,PY(H,2,Pr));break;case "yt-mini-app-load-3p-consent-state":var L,
fB;(fB=(L=K.callbacks).multiplayer3pAckStateLoaded)==null||fB.call(L,_.R2(H,RB(H,Pr,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var w,yO;(yO=(w=K.callbacks).exitMiniAppSeenStateLoaded)==null||yO.call(w,_.R2(H,RB(H,Pr,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var FX,NJ;(NJ=(FX=K.callbacks).onNavigateToNewMiniApp)==null||NJ.call(FX);break;case "yt-game-data-available":var $z,hN;(hN=($z=K.callbacks).onGameDataAvailable)==null||hN.call($z,PY(H,2,Pr));break;case "yt-pause-mini-app":var bo,
xz;(xz=(bo=K.callbacks).onPauseMiniApp)==null||xz.call(bo);break;case "yt-resume-mini-app":var qJ,Y8;(Y8=(qJ=K.callbacks).onResumeMiniApp)==null||Y8.call(qJ);break;case "yt-playable-ad-finished":var Iz,qs;(qs=(Iz=K.callbacks).onAdFinished)==null||qs.call(Iz,PY(H,2,Pr))}}else _.h3(Error("Qh"))}catch(af){_.$7(Error("Rh"))}else _.h3(Error("Sh"))};var fjX=function(K){this.rpcErrorCode=K};var Wo=function(K,d,f){this.intervalMs=K;this.apiFunc=d;this.type=f;this.schedulerReady=!0};
Wo.prototype.call=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1){if(d.type!==1&&K===d.cachedValue)return H.return();d.pendingApiRequestResolver||(d.pendingApiRequestResolver=new _.fU);f=d.pendingApiRequestResolver.promise;d.cachedValue=K;return _.I(H,ygs(d),2)}return H.return(f)})};
Wo.prototype.flush=function(K){K=K===void 0?!1:K;var d=this;return _.c(function(f){return d.cachedValue===void 0?f.return():_.I(f,d.apiFunc(d.cachedValue,K),0)})};
var ygs=function(K){var d,f,H;return _.c(function(D){switch(D.nextAddress){case 1:if(!K.schedulerReady||!K.pendingApiRequestResolver)return D.return();K.schedulerReady=!1;d=K.pendingApiRequestResolver;K.pendingApiRequestResolver=void 0;_.HF(D,2);if(K.cachedValue===void 0){D.jumpTo(4);break}return _.I(D,K.apiFunc(K.cachedValue),5);case 5:f=D.yieldResult,d.resolve(f);case 4:_.Ts(D,3);break;case 2:H=_.n7(D),d.reject(H);case 3:setTimeout(function(){return _.c(function(S){K.schedulerReady=!0;return _.I(S,
ygs(K),0)})},K.intervalMs),_.iQ(D)}})};var VkY=window.location.origin+"/miniapp_cloudsaves",Hb5=[400,401],nIt=_.di("cloud_save_game_data_rate_limit_ms",3E3),uGk=function(K){var d=this;this.JSC$14769_miniAppId=K;this.loadAttempts=0;this.cloudSaveIntervalMs=nIt;this.initialDownloadDataSucceeded=!1;this.JSC$14769_playNonceResolver=new _.fU;this.scottyUploadRateLimiter=new Wo(this.cloudSaveIntervalMs,function(f,H){return iV8(d,f,H)},2);
this.downloadDataPromise=cgH(this);this.downloadDataPromise.then(function(){d.initialDownloadDataSucceeded=!0}).catch(function(){})},aZ9=function(K,d){d.then(function(f){return K.JSC$14769_playNonceResolver.resolve(f)})},IZk=function(K){return _.c(function(d){return K.cachedData===void 0?d.return(K.downloadDataPromise):d.return(K.cachedData)})},U$t=function(K,d){return _.c(function(f){K.cachedData=d;
if(!K.initialDownloadDataSucceeded)throw Error("Th");return _.I(f,K.scottyUploadRateLimiter.call(d),0)})},RZH=function(){return new Promise(function(K){setTimeout(K,1E3,"")})},Fz2=function(K,d){var f,H;
return _.c(function(D){if(D.nextAddress==1)return f=K.JSC$14769_miniAppId,_.I(D,Promise.race([K.JSC$14769_playNonceResolver.promise,RZH()]),2);H={"X-YouTube-MiniAppId":f,"X-YouTube-PostPlayNonce":D.yieldResult};"DELEGATED_SESSION_ID"in _.hR&&TXG(d,H);return D.return(H)})},iV8=function(K,d,f){f=f===void 0?!1:f;
return _.c(function(H){return dLN()?_.M("enable_cloud_save_error_popup_after_retry")?H.return(new Promise(function(D,S){var n,u,a,R,F;return _.c(function(z){switch(z.nextAddress){case 1:n=0,u=!0,R=a=null;case 2:if(!(u&&n++<2)){z.jumpTo(4);break}_.HF(z,5);return _.I(z,zZv(K,d,f),7);case 7:a=z.yieldResult;u=a.ok?!1:!Hb5.includes(a.status);_.Ts(z,2);break;case 5:R=F=_.n7(z);u=DLS(R);z.jumpTo(2);break;case 4:a?a.ok?(GJ(K,nIt),D()):(GJ(K,K.cloudSaveIntervalMs*2),S(Error("Uh`"+String(a.status),{cause:{rpcErrorCode:a.status}}))):
(GJ(K,K.cloudSaveIntervalMs*2),S(R||Error("Vh"))),_.iQ(z)}})})):H.return(new Promise(function(D,S){var n,u;
return _.c(function(a){if(a.nextAddress==1){if(K.JSC$14769_miniAppId==="")return S(Error("Wh")),a.return();_.HF(a,2);return _.I(a,zZv(K,d,f),4)}if(a.nextAddress!=2)return n=a.yieldResult,n.ok?(GJ(K,nIt),D()):(GJ(K,K.cloudSaveIntervalMs*2),S(Error("Uh`"+String(n.status),{cause:{rpcErrorCode:n.status}}))),_.Ts(a,0);u=_.n7(a);GJ(K,K.cloudSaveIntervalMs*2);S(u);_.iQ(a)})})):H.return()})},zZv=function(K,d,f){f=f===void 0?!1:f;
var H,D,S;return _.c(function(n){if(n.nextAddress==1)return H=_.eS((new TextEncoder).encode(d)),D=SHJ(),_.I(n,Fz2(K,D),2);S=n.yieldResult;return n.return(fetch(D,{method:"POST",body:new Blob([H]),headers:S,keepalive:f}))})},cgH=function(K){var d,f;
return _.c(function(H){if(H.nextAddress==1){if(!dLN())return H.return("");if(K.JSC$14769_miniAppId==="")throw Error("Wh");if(K.loadAttempts>2)return H.return(K.downloadDataPromise);_.HF(H,2);return _.I(H,XmJ(K),4)}if(H.nextAddress!=2)return d=H.yieldResult,H.return(d);f=_.n7(H);if(DLS(f)&&++K.loadAttempts<2)return H.return(cgH(K));throw f;})},XmJ=function(K){var d,f,H,D,S;
return _.c(function(n){switch(n.nextAddress){case 1:return _.HF(n,2),d=SHJ(),_.I(n,Fz2(K,d),4);case 4:return f=n.yieldResult,_.I(n,fetch(d,{method:"GET",headers:f}),5);case 5:return H=n.yieldResult,H.ok?_.I(n,H.text(),6):n.return(Promise.reject(Error("Xh`"+String(H.status),{cause:new fjX(H.status)})));case 6:return D=n.yieldResult,n.return((new TextDecoder).decode(_.Us(D)));case 2:return S=_.n7(n),n.return(Promise.reject(S))}})},GJ=function(K,d){K.cloudSaveIntervalMs=d;
K.scottyUploadRateLimiter.intervalMs=K.cloudSaveIntervalMs};
uGk.prototype.flush=function(){var K=this;return _.c(function(d){return K.initialDownloadDataSucceeded?_.I(d,K.scottyUploadRateLimiter.flush(!0),0):d.return()})};var vIk=sK(Jf(1),Lh(1)),Muf=sK(Jf(1),Lh(3)),A0=function(K){this.callbacks=K};
_.V=A0.prototype;_.V.onAudioToggled=function(K,d){(d===void 0||d)&&_.p5("yt-mini-app-is-audio-enabled",K,2592E3)};
_.V.onPause=function(){this.onAudioToggled(!1,!1)};
_.V.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.V.returnNativeBenchmarkingMessage=function(){};
_.V.sendGameData=function(){};
_.V.sendStartGameFrameCapture=function(){};
var yxX=function(K,d,f){this.callbacks=K;var H=this;this.sdkVersion=new _.fU;this.channel=new v0n(_.jR({destination:window,iframe:d,origin:(new URL(f.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var D=TJ;var S=Jf(5);var n=new jYL;n=_.Ni(n,1,1E4);S=_.Hg(S,4,w9v,n);D(H,S);H.onAudioToggled(H.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){H.sdkVersion.resolve("")},1E4)};
_.O(yxX,A0);_.V=yxX.prototype;_.V.onAudioToggled=function(K,d){A0.prototype.onAudioToggled.call(this,K,d===void 0?!0:d);d=TJ;var f=Jf(2),H=new qk2;K=_.Dq(H,1,K);K=_.Hg(f,3,w9v,K);d(this,K)};
_.V.onPause=function(){A0.prototype.onPause.call(this);TJ(this,Jf(3))};
_.V.onResume=function(){A0.prototype.onResume.call(this);TJ(this,Jf(4))};
_.V.returnNativeBenchmarkingMessage=function(K){var d=TJ,f=Jf(6);var H=Lh(_.V5(K,Gl,1)?1:2);K=_.V5(K,Gl,1)?K:null;H=_.Hg(H,5,B3,K);d(this,sK(f,H))};
_.V.sendGameData=function(K){var d=TJ,f=Jf(7);K=_.Hg(f,5,w9v,K);d(this,K)};
_.V.sendStartGameFrameCapture=function(){TJ(this,Jf(9))};
var rr=function(K,d,f){var H,D,S;return _.c(function(n){if(n.nextAddress==1)return H=K.callbacks,D=H.onSdkCalled,S=d,_.I(n,K.sdkVersion.promise,2);D.call(H,S,n.yieldResult,f);_.iQ(n)})};
yxX.prototype.onMessage=function(){var K=this;return g0X(ZP,function(d){var f,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J,L,fB,w,yO,FX,NJ,$z,hN,bo,xz,qJ,Y8,Iz,qs,af,i9,KE,c4,cx,Oj,io,g2,l9,rw,t6,LJ,ry,u9;return _.c(function(wz){switch(wz.nextAddress){case 1:if(!VdJ(d.data))return _.h3(Error("Yh")),wz.return();f=_.vY(d.data,1);_.M("enable_iframe_message_get_type_via_fields")&&(H=d.data,f=D=_.vY(H,1));switch(f){case 8:if(d.data.hasMetadata()){var Ms=K.sdkVersion,yc=Ms.resolve;var P4=d.data.getMetadata();P4=_.Xo(P4,
1);yc.call(Ms,P4);clearTimeout(K.sdkVersionTimeoutId)}break;case 6:return wz.jumpTo(2);case 16:if(!_.SR(d.data,p99,14,ex))return wz.return();S=_.O3(d.data,p99,14,ex);(u=(n=K.callbacks).onGameFrameReceived)==null||u.call(n,S);return wz.return();case 17:if(!_.SR(d.data,eyv,15,ex))return wz.return();(R=(a=K.callbacks).onGameAudioReceived)==null||R.call(a,_.O3(d.data,eyv,15,ex));return wz.return();case 1:if(Ms=_.O3(d.data,LR8,2,ex))switch(_.vY(Ms,1)){case 1:K.callbacks.onFirstFrameReady();if(_.M("enable_network_request_logging_on_game_events")&&
_.V5(Ms,Ch,4)){rr(K,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.eQ(Ms,Ch,4));break}rr(K,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(P4=(yc=K.callbacks).onGameReady)==null||P4.call(yc);if(_.M("enable_network_request_logging_on_game_events")&&_.V5(Ms,Ch,4)){rr(K,"MINI_APP_SDK_API_GAME_READY",_.eQ(Ms,Ch,4));break}rr(K,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.SR(Ms,x5,3,BPN))K.callbacks.onResourceLoaded(_.O3(Ms,x5,3,BPN))}return wz.return();case 3:return wz.jumpTo(3);case 4:return wz.jumpTo(4);
case 2:return wz.jumpTo(5);case 9:return wz.jumpTo(6);case 10:return K.callbacks.onClick(),wz.return();case 5:return wz.jumpTo(7);case 11:if(!_.SR(d.data,qg,9,ex))return wz.return();F=_.O3(d.data,qg,9,ex);(v=(z=K.callbacks).onBenchmarkingMessageReceived)==null||v.call(z,F);Ms=d.reply;yc=Jf(1);P4=Lh(1);var zy=new qg;var nw=new Uint8Array(CuY(F,RB(F,WR9,6))|0);zy=ca(zy,5,WR9,_.r2(nw,!1));P4=_.Hg(P4,5,B3,zy);Ms.call(d,sK(yc,P4));return wz.return();case 12:return wz.jumpTo(8);case 13:return wz.jumpTo(9);
case 15:if(!_.M("enable_open_yt_content"))return d.reply(Muf),wz.return();if(!_.SR(d.data,Zt4,12,ex))return d.reply(sK(Jf(1),Lh(2))),wz.return();Ms=_.O3(d.data,Zt4,12,ex);g=_.Xo(Ms,1);K.callbacks.onOpenYTContent(g);d.reply(vIk);return wz.return();case 14:return wz.jumpTo(10);default:return wz.return()}wz.jumpTo(0);break;case 2:if(!_.SR(d.data,k5,5,ex))return wz.return();yc=d.data;Ms=RB(yc,ex,5);yc=yc.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(Ms=h4(yc,yc[_.of]|0,k5,Ms))||(Ms=k5[CE])||
(Ms=new k5,h6(Ms.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),Ms=k5[CE]=Ms);N=Ms;Ms=_.e4(N,Qn,1,_.p0());h=_.y(Ms);m=h.next();case 12:if(m.done){wz.jumpTo(14);break}T=m.value;r=new _.X4;r.level=_.vY(T,2)===1?"WARNING":"ERROR";J=ibp(T.getSource());return _.I(wz,K.sdkVersion.promise,15);case 15:L={source:J,sdkVersion:wz.yieldResult};_.gw(_.Db(T,6))!=null?(r.message=T.getMessage(),r.stack=_.Xo(T,5),L.sdkErrorType=cxG(_.vY(T,6)),_.gw(_.Db(T,7))!=null&&(L.sdkApi=uUJ(_.vY(T,7)))):r.stack=void 0;
w=fB=void 0;(w=(fB=K.callbacks).onError)==null||w.call(fB,{loggingError:r,metadata:L});m=h.next();wz.jumpTo(12);break;case 14:return wz.return();case 3:return _.HF(wz,16),Ms=K.callbacks,yc=Ms.onSave,P4=_.O3(d.data,QYB,4,ex),P4=_.Xo(P4,1),_.I(wz,yc.call(Ms,P4),18);case 18:d.reply(vIk);_.Ts(wz,17);break;case 16:return yO=_.n7(wz),FX=E8,NJ=yO,$z=K.callbacks,hN="MINI_APP_SDK_API_SAVE_DATA",_.I(wz,K.sdkVersion.promise,19);case 19:FX(NJ,$z,hN,wz.yieldResult),d.reply(Muf);case 17:return _.I(wz,rr(K,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return wz.return();case 4:return _.HF(wz,21),_.I(wz,K.callbacks.onLoad(),23);case 23:bo=wz.yieldResult;Ms=d.reply;yc=Jf(1);P4=Lh(1);zy=new QYB;zy=_.aL(zy,1,bo);P4=_.Hg(P4,3,B3,zy);Ms.call(d,sK(yc,P4));_.Ts(wz,22);break;case 21:return xz=_.n7(wz),qJ=E8,Y8=xz,Iz=K.callbacks,qs="MINI_APP_SDK_API_LOAD_DATA",_.I(wz,K.sdkVersion.promise,24);case 24:qJ(Y8,Iz,qs,wz.yieldResult),d.reply(Muf);case 22:return _.I(wz,rr(K,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return wz.return();case 5:_.HF(wz,
26);K.callbacks.onSendHighScore(m$(_.O3(d.data,HY9,3,ex).getValue()));d.reply(sK(Jf(1),Lh(1)));_.Ts(wz,27);break;case 26:return af=_.n7(wz),i9=E8,KE=af,c4=K.callbacks,cx="MINI_APP_SDK_API_SEND_SCORE",_.I(wz,K.sdkVersion.promise,28);case 28:i9(KE,c4,cx,wz.yieldResult),d.reply(Muf);case 27:return _.I(wz,rr(K,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return wz.return();case 6:if(!_.SR(d.data,Dj8,8,ex)){wz.jumpTo(30);break}Ms=_.O3(d.data,Dj8,8,ex);Ms=_.vY(Ms,1);return _.I(wz,rr(K,uUJ(Ms)),30);case 30:return wz.return();
case 7:return Ms=d.reply,yc=Jf(1),P4=Lh(1),zy=K.callbacks.getLanguage(),P4=ca(P4,4,B3,Ty(zy)),Ms.call(d,sK(yc,P4)),_.I(wz,rr(K,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return wz.return();case 8:if(!_.SR(d.data,flv,10,ex))return wz.return();Oj=_.O3(d.data,flv,10,ex);io=K.callbacks;g2=io.onSdkPerformanceUpdate;return _.I(wz,K.sdkVersion.promise,33);case 33:return g2.call(io,Oj,wz.yieldResult),wz.return();case 9:Ms=d.data;yc=RB(Ms,ex,11);if(_.ql(_.Db(Ms,yc))==null)return d.reply(sK(Jf(1),Lh(2))),
wz.return();l9=PY(d.data,11,ex);K.callbacks.onShareInviteCode(l9);d.reply(vIk);return _.I(wz,rr(K,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return wz.return();case 10:if(_.SR(d.data,rvH,13,ex)){wz.jumpTo(35);break}return _.I(wz,K.callbacks.onShowMiniAppAd(2),36);case 36:return rw=wz.yieldResult,d.reply(sK(Jf(1),sYt(rw))),_.I(wz,rr(K,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return wz.return();case 35:Ms=_.O3(d.data,rvH,13,ex);a:switch(_.vY(Ms,1)){case 1:Ms={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Ms={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Ms={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}t6=Ms;LJ=t6.adType;ry=t6.sdkApi;Ms=K.callbacks;yc=Ms.onShowMiniAppAd;P4=_.O3(d.data,rvH,13,ex);P4=_.Xo(P4,2);return _.I(wz,yc.call(Ms,LJ,P4||void 0),38);case 38:return u9=wz.yieldResult,d.reply(sK(Jf(1),sYt(u9))),_.I(wz,rr(K,ry),39);case 39:return wz.return()}})})};
var TJ=function(K,d){_.c(function(f){K.channel.send(d);_.iQ(f)})},hb=function(K,d,f){this.callbacks=K;
var H=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;K=y4z(d,(new URL(f.toString())).origin);this.gameSnacks=new GKB(K);this.gameSnacks.page.onReady(function(){H.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){H.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var D,S;(S=(D=H.callbacks).onGameReady)==null||S.call(D)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(D,S){try{H.callbacks.onSendHighScore(S)}catch(n){E8(n,H.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(D,S){var n;return _.c(function(u){if(u.nextAddress==1)return _.HF(u,2),_.I(u,H.callbacks.onSave(H.decoder.decode(S)),4);if(u.nextAddress!=2)return _.Ts(u,0);n=_.n7(u);E8(n,H.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return u.return()})});
this.gameSnacks.storage.onLoad(function(){var D,S;return _.c(function(n){if(n.nextAddress==1)return _.HF(n,2),_.I(n,H.callbacks.onLoad(),4);if(n.nextAddress!=2)return D=n.yieldResult,n.return(H.encoder.encode(D));S=_.n7(n);E8(S,H.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return n.return(H.encoder.encode(""))})});
this.gameSnacks.init()};
_.O(hb,A0);hb.prototype.onAudioToggled=function(K,d){A0.prototype.onAudioToggled.call(this,K,d===void 0?!0:d);var f;(f=this.gameSnacks)==null||f.audio.update(K)};
hb.prototype.onPause=function(){A0.prototype.onPause.call(this);var K;(K=this.gameSnacks)==null||K.game.pause()};
hb.prototype.onResume=function(){A0.prototype.onResume.call(this);var K;(K=this.gameSnacks)==null||K.game.resume()};var Pg9=ajG,gI8=_.C8(function(K){var d=K.data;var f=K.loadingProgress;K=_.y(_.cC("",void 0,"LYYTdd"));var H=K.next().value,D=K.next().value;K=_.y(_.cC(!1,void 0,"K0waae"));var S=K.next().value,n=K.next().value,u=[],a=function(){return"transform: scaleX("+(_.hc(f)||0)+")"},R=null,F=function(){var N;
return(N=d()&&R)!=null?N:R=d().showAnniversaryAnimation?6:Pg9()};
_.ol(function(){var N;if(d().timeOutMessages&&((N=d().timeOutMessages)==null?0:N.length)){R=null;N=_.y(u);for(var h=N.next();!h.done;h=N.next())clearTimeout(h.value);u.length=0;IjN(d().timeOutMessages,u,D,n)}});
var z=function(){return!!d().persistentErrorMessageTitle},v=function(){return f!==void 0},g=function(){return d().title};
return _.U("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.U("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.U("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.U("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var N,h=(N=d().backgroundImage)==null?void 0:N.sources,m;return(h==null?0:h.length)?"background-image: url("+((m=h[0])==null?void 0:m.url)+")":
""}}),_.U("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.U(_.X,{cond:function(){return!z()},
then:function(){var N={};return _.U("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.U("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.U(_.yC,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+F()},
data:function(){var h="loading_animation_"+F();return{animationConfig:{name:h,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+h+".json",loop:!0,autoplay:!0}}}})),_.U("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.U(_.X,{cond:g,
then:function(){return _.U("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},g)}}),_.U("p",{class:_.SC("mini-app-splash-screen-view-model-wiz__timeout-message",(N["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return S()},N)),
"aria-live":"polite"},H),_.U(_.X,{cond:v,then:function(){return _.U("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.U("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:a}))}})))}}),_.U(_.X,{cond:z,
then:function(){return _.U("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.U("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return d().persistentErrorMessageTitle}),_.U(_.X,{cond:function(){return!!d().persistentErrorMessageDescription},
then:function(){return _.U("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return d().persistentErrorMessageDescription})}}))}})))},"Md");var OV9=new _.xn("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var Ngs=kF;kF=function(K){function d(f){if(f){var H,D;(H=f.__spec)==null||(D=H.didUnmount)==null||D.call(H);for(H=0;H<f.childNodes.length;H++)d(f.childNodes[H])}}
Ngs==null||Ngs(K);Md(function(){for(var f=0;f<K.length;f++)d(K[f])})};var YJk=_.C8(function(K){var d=K.data;var f=K.score;var H=K.formattedScore;var D=K.onScoreChanged;var S=K.isEmbeddedInWebview;var n=_.x7(),u=function(){var g;return _.P(d==null?void 0:(g=d())==null?void 0:g.buttonViewModel,_.XN)},a=function(){var g;
return(f==null?void 0:f())||Number(d==null?void 0:(g=d())==null?void 0:g.lastScore)||0},R=function(){var g;
return(H==null?void 0:H())||((g=u())==null?void 0:g.title)||""},F,z=1;
if(K=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))K=Number(K),z=isNaN(K)?1:K/100;_.ol(function(){D==null||D(a());var g;var N=_.$A((g=u())==null?void 0:g.onTap);if(N){g=_.P(N,YKv);var h,m,T;g=_.P(g==null?void 0:(h=g.panelLoadingStrategy)==null?void 0:(m=h.inlineContent)==null?void 0:(T=m.dialogViewModel)==null?void 0:T.customContent,Og8)}else g=void 0;if(h=g)h.score=R()});
K=_.cp(function(){var g,N,h=d==null?void 0:(g=d())==null?void 0:(N=g.loggingDirectives)==null?void 0:N.trackingParams;h&&_.f5(_.eq().resolve(_.FD),h);return!1});
_.tR(function(){if(n.value){var g=n.value.querySelector("button"),N=u();g&&N&&ULz(g,N);sN("yt-share-playable-with-high-score",function(){var h=a().toString(),m=d==null?void 0:d().onShareHighScoreCommand,T=d==null?void 0:d().highScoreShareClientParamIdentifier,r=S==null?void 0:S();m&&(r?(T=new Ug8,h=_.aL(T,2,h),$6(m,h.JSC$10270_serializeBinary())):T&&(_.eq().resolve(OV9).clientParams.set(T,{miniAppClientParams:{highScore:h}}),Z6O(m,!1)))})}});
var v=function(){var g=u();g&&(f==null?0:f())&&g.accessibilityText&&(g.accessibilityText=g.accessibilityText.replace(F,R()));F=R();return{numberValue:a(),numberText:R(),heightPx:36,fontSizeMultiplier:z,shouldAnimate:!(f==null||!f())&&!0}};
return _.U("yt-mini-app-score-button-view-model",{class:function(){var g={};return _.nK("mini-app-score-button-view-model-wiz",(g["mini-app-score-button-view-model-wiz--is-visible"]=a()!==0,g))},
el:n,"on:click":K},sm(!1,function(){return _.U("span",{style:"display:none;"},a)}),_.U(_.z1,{data:function(){var g;
return d==null?void 0:(g=d())==null?void 0:g.buttonViewModel}},{buttonViewModel:function(g){return _.U(_.oY,{data:g.data,
animatedTextProps:v})}}))},"Nd");var hZ2=_.C8(function(K){var d,f=(d=_.KI("yt-mini-app-is-theater-mode-enabled"))!=null?d:!1,H=_.M("enable_playable_container_save_button"),D=_.M("enable_play_next_destination_page_in_toolbar");d={};return _.U("ytm-mini-app-top-bar-view-model",null,_.U("div",{class:_.SC("yt-mini-app-top-bar-view-model",(d["yt-mini-app-top-bar-view-model--mobile"]=!1,d["yt-mini-app-top-bar-view-model--desktop"]=!0,d))},_.U("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.U(_.X,{cond:function(){var S;
return!!K.data().backButtonEdu&&!((S=K.isExitMiniAppSeen)==null?0:S.call(K))},
then:function(){return _.U(_.z1,{data:function(){return K.data().backButtonEdu}},{buttonViewModel:_.oY})},
else:function(){return _.U(_.z1,{data:function(){return K.data().backButton}},{buttonViewModel:_.oY})}}),_.U(_.X,{cond:function(){return K.data().viewAllButton&&!0},
then:function(){return _.U(_.z1,{data:function(){return K.data().viewAllButton}},{buttonViewModel:_.oY})}}),_.U(_.X,{cond:function(){return K.data().title&&!0},
then:function(){return _.U("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return K.data().title})}})),_.U("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.U(_.X,{cond:function(){var S;
return(S=K.isDesktopPlayPage)==null?void 0:S.call(K)},
then:function(){return _.U(_.dF,null,_.U(tuL,{highScoreButton:function(){return K.data().highScoreButton},
score:K.score,formattedScore:K.formattedScore,onScoreChanged:K.onScoreChanged,isEmbeddedInWebview:K.isEmbeddedInWebview}),_.U(oI9,{enableSaveButton:function(){return _.hc(H)},
saveButton:function(){return K.data().saveButton},
isSaved:K.isSaved,onSaveToggled:function(){return K.onSaveToggled}}),_.U($$8,{menuButton:function(){return K.data().menuButton}}))},
else:function(){return _.U(_.X,{cond:function(){return!1},
then:function(){return _.U(_.z1,{data:function(){return K.data().playPageButton}},{buttonViewModel:function(S){return _.U(_.oY,{data:S.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.U(tuL,{highScoreButton:function(){return K.data().highScoreButton},
score:K.score,formattedScore:K.formattedScore,onScoreChanged:K.onScoreChanged,isEmbeddedInWebview:K.isEmbeddedInWebview})}})}})),_.U("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.U(_.z1,{data:function(){return K.data().muteButton}},{toggleButtonViewModel:function(S){var n=S.data;
return _.U(_.MT,{data:function(){var u,a;return Object.assign({},n(),{isToggled:(a=(u=K.isAudioEnabled)==null?void 0:u.call(K))!=null?a:!0})},
onToggle:K.onAudioToggled,useOutlinedIcon:!0})}}),_.U(_.z1,{data:function(){return K.data().theatreModeButton}},{toggleButtonViewModel:function(S){var n=S.data;
return _.U("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.U(_.MT,{data:function(){return Object.assign({},n(),{isToggled:f})},
useOutlinedIcon:!0}))}}),_.U(EIs,{fullscreenButton:function(){return K.data().fullscreenButton}}),_.U(_.X,{cond:function(){return _.hc(D)&&K.data().viewAllButton&&!1},
then:function(){return _.U(_.z1,{data:function(){return K.data().viewAllButton}},{buttonViewModel:_.oY})}}),_.U(_.X,{cond:function(){var S;
return!((S=K.isDesktopPlayPage)==null?0:S.call(K))},
then:function(){return _.U(_.dF,null,_.U(oI9,{enableSaveButton:function(){return _.hc(H)},
saveButton:function(){return K.data().saveButton},
isSaved:K.isSaved,onSaveToggled:function(){return K.onSaveToggled}}),_.U($$8,{menuButton:function(){return K.data().menuButton}}))}}))))},"Od");
hZ2.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var $$8=_.C8(function(K){return _.U(_.z1,{data:K.menuButton},{buttonViewModel:_.oY})},"Pd"),oI9=_.C8(function(K){var d=K.enableSaveButton;
var f=K.saveButton;var H=K.isSaved;var D=K.onSaveToggled;return _.U(_.X,{cond:function(){return d()&&!(f==null||!f())},
then:function(){return _.U(_.z1,{data:function(){var S=_.P(f==null?void 0:f(),_.v9),n;return{toggleButtonViewModel:Object.assign({},S,{isToggled:(n=H==null?void 0:H())!=null?n:!(S==null||!S.isToggled)})}}},{toggleButtonViewModel:function(S){return _.U(_.MT,{data:S.data,
onToggle:D})}})}})},"Qd"),tuL=_.C8(function(K){var d=K.highScoreButton;
var f=K.score;var H=K.formattedScore;var D=K.onScoreChanged;var S=K.isEmbeddedInWebview;return _.U(_.z1,{data:d},{miniAppScoreButtonViewModel:function(n){return _.U(YJk,{data:n.data,score:f,formattedScore:H,onScoreChanged:D,isEmbeddedInWebview:S})}})},"Rd"),EIs=_.C8(function(K){K=K.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.U(_.dF,null):_.U(_.z1,{data:K},{buttonViewModel:_.oY})},"Sd");_.bVs=new _.xn("DESKTOP_CURRENT_PAGE");var Tg6=_.C8(function(K){var d=K.data;var f=_.M("force_active_time_logging_webview"),H=!1,D=new Vuk,S=void 0,n=void 0,u=_.eq().resolve(D$2),a=new Kzf,R=void 0,F=void 0,z=[],v=void 0,g=void 0,N=!1,h=!1,m=!1,T=!1,r=new _.fU,J=_.eq().resolve(OV9),L=_.eq().resolve(_.b_),fB=_.eq().resolve(_.Zd(iZ)),w,yO=(w=_.eq().resolve(_.Zd(_.bVs)))==null?void 0:w.getCurrentPage(),FX=!1,NJ=0,$z=function(LB){LB.preventDefault();return LB.returnValue=""},hN;
K=_.y(_.cC(!((hN=_.KI("yt-mini-app-is-audio-enabled"))!=null&&!hN),void 0,"HKETIe"));var bo=K.next().value,xz=K.next().value,qJ;hN=_.y(_.cC(!((qJ=_.KI("exit-mini-app-seen-state"))==null||!qJ),void 0,"YikM9"));var Y8=hN.next().value,Iz=hN.next().value;qJ=_.y(_.cC(!1,void 0,"iTNqCb"));var qs=qJ.next().value,af=qJ.next().value;qJ=_.y(_.cC(void 0,void 0,"bU3Vbf"));var i9=qJ.next().value,KE=qJ.next().value;qJ=_.y(_.cC(void 0,void 0,"qd4Zt"));var c4=qJ.next().value,cx=qJ.next().value;qJ=_.y(_.cC(!0,void 0,
"Cqc83e"));var Oj=qJ.next().value,io=qJ.next().value;qJ=_.y(_.cC(!1,void 0,"oHovIe"));var g2=qJ.next().value,l9=qJ.next().value;qJ=_.y(_.cC(void 0,void 0,"aeN11"));var rw=qJ.next().value,t6=qJ.next().value;qJ=_.y(_.cC(0,void 0,"AEGRyb"));var LJ=qJ.next().value,ry=qJ.next().value,u9=_.Co(),wz=function(){return d().isEmbeddedInWebview},Ms=function(){return d().hasPlayNextShelf};
sN("yt-page-type-changed",function(LB){if(_.M("enable_is_mini_app_page_active_bugfix"))LB.detail.newPageSubtype!=="mini_app"&&Oj()&&zy();else if(LB=_.pfX()==="mini_app",LB!==Oj())if(io(LB),LB){var fE;LB=(fE=d().playableId)==null?void 0:fE.toString();LB!==void 0&&window.location.href.includes(LB)&&!h&&(T=!0,yc(),a6(FH.value))}else LB||zy()});
sN("yt-action",function(LB){LB.detail.actionName==="yt-engagement-panel-visible-changed"&&LB.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&LB.detail.args[2]==="PAmini_app_panel"&&zy();_.M("enable_is_mini_app_page_active_bugfix")?LB.detail.actionName==="yt-history-load"&&!Oj()&&(yO==null?0:yO.active)?(io(!0),yc(),a6(FH.value)):LB.detail.actionName==="yt-history-load"&&Oj()&&!d().isEmbeddedInWebview&&zf():Oj()&&LB.detail.actionName==="yt-history-load"&&(T?T=!1:d().isEmbeddedInWebview||zf())});
_.$F(function(){P4()});
_.ol(function(){yc()});
var yc=function(){var LB=d().playableId,fE=d().localReleaseId,iN=d().derivedDeviceInterface;if(h)_.h3(new _.X4("[MiniAppContainerViewModel] onEnter was called more than once"));else{h=!0;S=new QPN(LB,fE,iN,document.visibilityState==="visible");LE2(S);n=new uGk(LB);m$N(u,LB);d$N(a,{showMiniAppAdCommand:d().showMiniAppAdCommand,isEmbeddedInWebview:d().isEmbeddedInWebview,playLogger:S});O1N()&&(g=document.body.style.backgroundColor,_.NO(document.body,"background-color","black"));Un();v4();r=new _.fU;
if(d().isEmbeddedInWebview){if(LB=(new URLSearchParams(window.location.search)).get("postPlayNonce"))CPs(S,LB),FX=!0;D.initialize({onAudioStateLoaded:function(xw){AP(xw)},
onMuteMiniApp:function(){AP(!1)},
onUnmuteMiniApp:function(){AP(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(xw){FX||(CPs(S,xw),FX=!0)},
confirmExitMiniApp:function(){var xw,Ne,Yh;return _.c(function($s){if($s.nextAddress==1)return d().confirmExitMiniAppCommand?_.I($s,Promise.race([r.promise,Promise.resolve(!1)]),2):$s.return();(xw=$s.yieldResult)?!d().confirmExitMiniAppCommandEdu||(Yh=(Ne=Y8)==null?void 0:Ne())!=null&&Yh?Xy(d().confirmExitMiniAppCommand):(Xy(d().confirmExitMiniAppCommandEdu),_.p5("exit-mini-app-seen-state","true",2592E6)):Xy(d().closeMiniAppCommand);_.iQ($s)})},
onNativeBenchmarkingMessageReceived:function(xw){xw=Avv(_.kVX(xw));if(_.SR(xw,_.o9,3,lS6)){var Ne=_.O3(xw,_.o9,3,lS6),Yh=eEJ();var $s=m$(Yh.getSeconds())-m$(Ne.getSeconds());Ne=_.Km(Yh,2)-_.Km(Ne,2);$s<0&&Ne>0?($s+=1,Ne-=1E9):$s>0&&Ne<0&&(--$s,Ne+=1E9);$s=(new Gl).setSeconds($s);$s=_.Ys($s,2,_.OZ(Ne),0);_.fM(xw,1,$s)}var a2;(a2=F)==null||a2.returnNativeBenchmarkingMessage(xw)},
multiplayer3pAckStateLoaded:function(xw){zf(xw)},
exitMiniAppSeenStateLoaded:function(xw){d().confirmExitMiniAppCommandEdu&&Iz(xw)},
onNavigateToNewMiniApp:function(){Xy(d().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(xw){xw=new URLSearchParams(xw);var Ne=void 0;xw.has("invite_code")&&(Ne=new xT2,xw=xw.get("invite_code"),Ne=_.aL(Ne,1,xw));if(xw=Ne){var Yh;(Yh=F)==null||Yh.sendGameData(xw)}},
onPauseMiniApp:function(){H=!0;nw()},
onResumeMiniApp:function(){H=!0;Sc()},
onAdFinished:function(xw){a.onAdFinished(xw)}});
d().showMultiplayer3pConsentDialogCommand||r.resolve(!0);Xy(d().onContainerReadyCommand)}else CPs(S),r.resolve(!0);aZ9(n,jPf(S));jPf(S).then(function(xw){xw={miniAppPlayData:{postPlayNonce:xw}};var Ne,Yh=(Ne=d().loggingDirectives)==null?void 0:Ne.trackingParams;Yh&&_.cv().stateChanged(Yh,xw)});
LB=d().showSignInDialogCommand;!dLN()&&LB&&(_.p5("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Xy(LB));d().confirmExitMiniAppCommand&&fB&&(LB=kLX(d().confirmExitMiniAppCommand))&&(fB.customConfirmationCommand=LB)}},P4=function(){g&&_.NO(document.body,"background-color",g);
N=!1;v&&v.release();n.flush().catch(function(LB){_.h3(LB)});
u.flush().catch(function(LB){_.h3(LB)});
Jq4(S);lN();F=void 0;lZ6(J)},zy=function(){io(!1);
P4();af(!1);t6(void 0);KE(void 0);cx(void 0);NJ=0;ry(0);h=!1},nw=function(){var LB;
(LB=F)==null||LB.onPause();v&&v.release();n.flush().catch(function(fE){_.h3(fE)});
u.flush().catch(function(fE){_.h3(fE)});
B_f(S)},Sc=function(){var LB;
(LB=F)==null||LB.onResume();v4();LB=S;LB.isForeground=!0;l_(LB,"PLAY_EVENT_TYPE_PLAY_RESUME")},AP=function(LB){var fE;
(fE=F)==null||fE.onAudioToggled(LB);xz(LB)},zf=function(LB){d().showMultiplayer3pConsentDialogCommand&&(d().isEmbeddedInWebview&&LB!==void 0&&r.resolve(LB),!LB&&_.pfX()==="mini_app"&&Xy(d().showMultiplayer3pConsentDialogCommand))},Ss=function(){var LB,fE,iN,xw;
return _.c(function(Ne){if(Ne.nextAddress==1){!d().isLivestream||d().disableVideoCapture||(LB=F)!=null&&LB.sendStartGameFrameCapture();fE=(new URL(window.location.href)).searchParams;if(fE.has("invite_code")){var Yh=new xT2,$s=fE.get("invite_code");iN=_.aL(Yh,1,$s);(xw=F)==null||xw.sendGameData(iN)}qs()||(af(!0),Yh=S,Yh.state!==1?_.h3(new _.X4("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+rq4[Yh.state])):(_.H6("mini_app_ids_without_game_ready").includes(Yh.JSC$14725_miniAppId)&&(Yh.gameReady=
!0),Yh.state=2,Yh.beforeReady=!1,m0(Yh,"ma_ffr"),l_(Yh,"PLAY_EVENT_TYPE_PLAY_READY")));return _.I(Ne,r.promise,2)}Xy(d().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();d().isEmbeddedInWebview||zf();_.iQ(Ne)})},Qv=function(){var LB=S;
LB.gameReady=!0;m0(LB,"ma_gr")},PK=function(LB){var fE;
return _.c(function(iN){if(iN.nextAddress==1)return _.HF(iN,2),_.I(iN,U$t(n,LB),4);if(iN.nextAddress!=2)return _.Ts(iN,0);fE=_.n7(iN);Xy(d().showSavingErrorPopupCommand);throw fE;})},Z7=function(){var LB,fE;
return _.c(function(iN){if(iN.nextAddress==1)return _.HF(iN,2),_.I(iN,IZk(n),4);if(iN.nextAddress!=2)return LB=iN.yieldResult,iN.return(LB);fE=_.n7(iN);Xy(d().showLoadingErrorDialogCommand);throw fE;})},Kw=function(LB){S.logError(LB)},Yl=function(LB,fE,iN){kcH(S,LB,fE,iN)},qe=function(LB,fE){ZqN(S,LB,fE)},W_=function(){!f&&d().isEmbeddedInWebview||_.ec();
sP8(S,!0);N||(window.addEventListener("beforeunload",$z,{capture:!0}),N=!0)},Il=function(LB){var fE,iN,xw,Ne,Yh,$s,a2;
return _.c(function(I2){if(I2.nextAddress==1)return u&&(!R||R<LB)&&LB>0?_.I(I2,Wzk(u,LB),3):I2.jumpTo(0);fE=I2.yieldResult;iN=_.y(fE);xw=iN.next().value;Ne=iN.next().value;Yh=xw;$s=Ne;((a2=Yh)==null?0:a2.displayString)&&$s&&(KE($s),cx(Yh.displayString));_.iQ(I2)})},w5=function(LB){var fE=d().onBenchmarkingMessageReceivedCommand;
if(fE){var iN=eEJ();_.Hg(LB,3,lS6,iN);$6(fE,TPt(LB))}},tG=function(LB){var fE=d().onGameFrameReceivedCommand;
if(fE){var iN=new MOs;var xw=new F9t;var Ne=Fo(LB,1);xw=_.zE(xw,1,Ne);LB=_.Xo(LB,2);LB=_.aL(xw,2,LB);iN=_.fM(iN,2,LB);$6(fE,gWJ(iN))}},Pu=function(LB){var fE=d().onGameAudioDataReceivedCommand;
if(fE){var iN=new MOs;var xw=new XcB;LB=_.Xo(LB,1);xw=_.aL(xw,1,LB);iN=_.fM(iN,4,xw);$6(fE,gWJ(iN))}},GS=function(){var LB=new URLSearchParams(window.location.search);
if(d().isEmbeddedInWebview&&LB&&LB.get("override_hl")==="true"&&LB.get("hl"))return LB.get("hl");LB=document.documentElement.lang;return LB!==""?LB:_.bA},jp=function(LB){var fE=d().onShareInviteCodeCommand;
if(fE)if(d().isEmbeddedInWebview){var iN=new Ug8;LB=_.aL(iN,1,LB);$6(fE,Fl9(LB))}else iN=d().inviteCodeShareClientParamIdentifier,J.clientParams.set(iN,{miniAppClientParams:{inviteCode:LB}}),Xy(fE)},Rf=function(LB){var fE,iN,xw;
return _.c(function(Ne){if(Ne.nextAddress==1)return fE=d().onMiniAppOpenYtContentRequested,u&&_.M("enable_open_yt_content")&&fE?_.I(Ne,G68(u,LB),3):Ne.jumpTo(0);iN=Ne.yieldResult;if(iN==="OK")if(d().isEmbeddedInWebview){var Yh=new ah8;xw=ca(Yh,2,Pr,Ty(LB));$6(fE,RP6(xw))}else L.clientData.set("video_id",LB),Xy(fE);_.iQ(Ne)})},D7=function(LB){NJ+=_.Km(LB,3);
LB=Math.min(Math.log(1+NJ/15E6*9)/Math.log(10),.99);ry(LB);o6(LB)},o6=_.iR(function(LB){var fE=d().updateLoadingProgressCommand;
if(fE){var iN=new ah8;LB=ca(iN,3,Pr,_.iU(LB));$6(fE,RP6(LB))}},100),cK=function(LB){return HV9(a,LB)},v4=function(){var LB,fE;
((LB=_.PKz())==null?void 0:(fE=LB.wakeLock)==null?void 0:fE.request)!=null&&_.PKz().wakeLock.request("screen").then(function(iN){v=iN}).catch(function(){})},FH=_.Co();
_.ol(function(){d().isSupportedCountry&&(dLN()||_.M("enable_sign_in_promo")||!d().showSignInDialogCommand?a6(FH.value):Xy(d().onMiniAppReadyCommand))});
var Fi=function(){return _.U("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return qs()?0:-1},
el:FH})},a6=function(LB,fE){fE=fE===void 0?!1:fE;
var iN=St();iN&&(fE||iN.toString()!==LB.getAttribute("src"))&&(F=ntz(d().source,{isAudioEnabled:bo,onFirstFrameReady:Ss,onGameReady:Qv,onSave:PK,onLoad:Z7,onError:Kw,onSdkCalled:Yl,onSdkPerformanceUpdate:qe,onClick:W_,onSendHighScore:Il,onBenchmarkingMessageReceived:w5,getLanguage:GS,onShareInviteCode:jp,onResourceLoaded:D7,onOpenYTContent:Rf,onShowMiniAppAd:cK,onGameFrameReceived:tG,onGameAudioReceived:Pu},LB,iN),IG(LB,"load",function(){m0(S,"ma_il");IG(LB,"load",function(){a6(LB,!0)})}),_.$G(LB,
iN))},St=function(){var LB=d().url;
if(LB&&(LB=_.$K(LB),LB!==null)){if(d().source&&d().source==="MINI_APP_SOURCE_GAMESNACKS")LB=_.K0(LB,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.M("enable_origin_query_parameter_bugfix")){var fE=_.z$(_.pVG(LB.toString()));fE=new URLSearchParams(fE||"");fE.set("origin",window.location.origin);fE=fE.toString();LB=_.nM(LB).toString();LB=_.yL(Vpf.exec(LB)[0]+(fE.trim()?"#"+fE:""))}return LB}},Fa=function(){var LB={};
LB=_.SC("yt-mini-app-container-view-model__loading-screen",(LB["yt-mini-app-container-view-model__loading-screen--fade-out"]=qs,LB));var fE=function(){return qs()?1:LJ()};
return _.U("div",{class:LB},_.U(_.z1,{data:function(){return d().splashScreen}},{miniAppSplashScreenViewModel:function(iN){return _.U(gI8,{data:iN.data,
loadingProgress:fE})}}))},Un=function(){z=[];
z.push(_.zG(window,"visibilitychange",function(){m||H&&wz()||(document.visibilityState==="visible"?Sc():nw())}));
z.push(_.zG(window,"pagehide",function(){P4()}));
z.push(_.zG(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&u9.value.dispatchEvent(new Event("tap"))},0)}));
z.push(_.zG(u9.value,"pointerdown",function(){sP8(S,!1)},!0));
z.push(_.zG(u9.value,"pause",function(){m=!0;nw()}));
z.push(_.zG(u9.value,"play",function(){m=!1;Sc()}));
z.push(_.zG(u9.value,"exit",function(){P4()}));
var LB=navigator.keyboard,fE=LB&&LB.lock;z.push(_.zG(window,Vsf,function(){l9(yy9());yy9()?(d().hasPlayNextShelf&&tD("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),y9("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),fE&&LB.lock(["Escape"])):(d().hasPlayNextShelf&&y9("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),tD("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),fE&&LB.unlock())}));
d().showMultiplayer3pConsentDialogCommand&&z.push(_.zG(window,"yt-playables-ack-3p-data-usage",function(){Agf(u)}));
d().confirmExitMiniAppCommandEdu&&z.push(_.zG(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.p5("exit-mini-app-seen-state","true",2592E6)}))},lN=function(){z.forEach(function(LB){UP(LB)});
window.removeEventListener("beforeunload",$z,{capture:!0})},Xy=function(LB){LB&&Z6O(LB,d().isEmbeddedInWebview||!1)},y9=function(LB,fE){LB=_.y(u9.value.getElementsByClassName(LB));
for(var iN=LB.next();!iN.done;iN=LB.next())iN.value.classList.add(fE)},tD=function(LB,fE){LB=_.y(u9.value.getElementsByClassName(LB));
for(var iN=LB.next();!iN.done;iN=LB.next())iN.value.classList.remove(fE)};
return function(){var LB={};LB=_.SC("yt-mini-app-container-view-model",(LB["yt-mini-app-container-view-model--desktop"]=!0,LB["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return d().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},LB["yt-mini-app-container-view-model--ios-web-view"]=O1N(),LB["yt-mini-app-container-view-model--no-top-bar"]=function(){return!d().topBar},LB["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return d().hasPlayNextShelf},LB["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return d().hasPlayNextShelf},LB["yt-mini-app-container-view-model--show-peek-below"]=function(){return!g2()&&d().hasPlayNextShelf},LB));
var fE={};fE=_.SC("yt-mini-app-container-view-model__content",(fE["yt-mini-app-container-view-model__content--desktop-content"]=!0,fE["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return d().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},fE["yt-mini-app-container-view-model--desktop-play-page"]=function(){return d().hasPlayNextShelf},fE));
return _.U("mini-app-container-view-model",{el:u9},_.U("div",{class:LB},_.U(_.X,{cond:function(){return d().topBar&&!g2()},
then:function(){return _.U(_.z1,{data:function(){return d().topBar}},{miniAppTopBarViewModel:function(iN){return _.U(hZ2,{data:iN.data,
isAudioEnabled:bo,onAudioToggled:function(xw){AP(xw)},
score:i9,formattedScore:c4,onScoreChanged:function(xw){R=xw},
isEmbeddedInWebview:wz,isSaved:rw,onSaveToggled:function(xw){t6(xw)},
isExitMiniAppSeen:Y8,isDesktopPlayPage:Ms})}})}}),_.U("div",{class:fE},_.U(_.X,{cond:Oj,
then:function(){return Fi()}}),_.U(_.X,{cond:function(){return!d().isEmbeddedInWebview},
then:function(){return Fa()}}))))}()},"Td");
Tg6.idomCompat=!0;_.sP(Tg6,"mini-app-container-view-model",{props:{data:_.rs}});var rgt=_.C8(function(K){var d=K.data;return _.U("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.U("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.cp(function(){var f=d().onTap;f&&_.me(f)})},_.U(_.X,{cond:function(){return d().icon},
then:function(f){return _.U(_.U5,{icon:function(){return f().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.U("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return d().title})))},"Ud");
rgt.idomCompat=!0;var qJ8=_.C8(function(K){var d=_.Co(),f=_.y(_.cC(void 0,void 0,"kFCJ0c")),H=f.next().value,D=f.next().value;f=_.y(_.cC(void 0,void 0,"PIPgWd"));var S=f.next().value,n=f.next().value;f=_.y(_.cC(void 0,void 0,"rV66ob"));var u=f.next().value,a=f.next().value,R=function(){var T=H();return T!==void 0?Math.abs(T):void 0},F=function(){var T=R();
return T===void 0||T<=3},z=function(){var T=R();
var r=S(),J=u();T=T!==void 0&&r!==void 0&&J!==void 0?r-J-T:void 0;return T===void 0||T<=3},v=function(T){d.value&&d.value.scrollBy({top:0,
left:(_.mD("HTML_DIR")==="rtl"?-1:1)*T*d.value.clientWidth,behavior:"smooth"})},g=function(){var T;
D((T=d.value)==null?void 0:T.scrollLeft);var r;n((r=d.value)==null?void 0:r.scrollWidth);var J;a((J=d.value)==null?void 0:J.clientWidth)},N=function(){v(-.5)},h=function(){v(.5)};
f=_.cp(function(){g()});
_.Nk(function(){g();if(d.value){var T=new ResizeObserver(g);T.observe(d.value);_.$F(function(){T.disconnect()})}});
var m={};return _.U("yt-sponsorships-scrollable-shelf",{class:_.SC("ytdSponsorshipsScrollableShelfHost",K.className)},_.U("div",{class:_.SC("ytdSponsorshipsScrollableShelfContent",(m.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return K.data().previousButton&&K.data().nextButton&&!F()&&!z()},m.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return K.data().previousButton&&!F()&&z()},m.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return K.data().nextButton&&
F()&&!z()},m)),
el:d,"on:scroll":f},K.children),_.U(_.X,{cond:function(){return!F()},
then:function(){return _.U(_.z1,{data:function(){return K.data().previousButton}},{buttonViewModel:function(T){return _.U(_.oY,{data:T.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:N})}})}}),_.U(_.X,{cond:function(){return!z()},
then:function(){return _.U(_.z1,{data:function(){return K.data().nextButton}},{buttonViewModel:function(T){return _.U(_.oY,{data:T.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:h})}})}}))},"Vd");
qJ8.idomCompat=!0;var jr8=_.C8(function(K){var d=K.data;K={};return _.U("yt-sponsorships-hub",{class:_.SC("ytdSponsorshipsHubHost",(K.ytdSponsorshipsHubHostIndented=function(){return d().indented},K))},_.U("div",{class:"ytdSponsorshipsHubHeader"},_.U("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.U("div",{class:"ytdSponsorshipsHubAvatar"},_.U(_.z1,{data:function(){return d().avatar}},{avatarViewModel:_.Pz})),_.U(_.X,{cond:function(){return d().badgeImage},
then:function(f){return _.U("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.U("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.U("div",{class:"ytdSponsorshipsHubBadge"},_.U(_.jV,{data:f,targetWidth:24,targetHeight:24,alt:""}))))}})),_.U("div",{class:"ytdSponsorshipsHubDetails"},_.U("div",{class:"ytdSponsorshipsHubTierName"},function(){return d().tierName}),_.U("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return d().membershipType}),_.U("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return d().membershipDurationOrExpiry})),_.U("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.U(_.z1,{data:function(){return d().manageButton}},{buttonViewModel:function(f){return _.U(_.oY,{data:f.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.U(_.z1,{data:function(){return d().actionMenuButton}},{buttonViewModel:function(f){return _.U(_.oY,{data:f.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.U("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return d().perksTitle}),_.U(qJ8,{data:function(){return{previousButton:d().previousPerkButton,
nextButton:d().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.U("div",{class:"ytdSponsorshipsHubPerkCards"},_.U(_.z1,{data:function(){return d().perkCards}},{sponsorshipsHubPerkCardViewModel:rgt}),_.U(_.X,{cond:function(){return d().viewAllPerksButton},
then:function(f){return _.U(QrH,{data:f})}}))))},"Wd");
jr8.idomCompat=!0;var QrH=_.C8(function(K){var d=K.data;return _.U("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.U(_.z1,{data:function(){return d().button}},{buttonViewModel:_.oY}),_.U("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.U("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return d().title}),_.U("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return d().subtitle})))},"Xd");
QrH.idomCompat=!0;_.sP(jr8,"yt-sponsorships-hub",{props:{data:_.rs}});_.CgJ=_.C8(function(K){var d=K.data;return _.U("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.Im({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var f;return((f=d().badgeCutoutRadius)!=null?f:14)+"px"}})},_.U("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.U(_.z1,{data:function(){return d().startAvatar}},{avatarViewModel:_.Pz}),_.U(_.z1,{data:function(){return d().endAvatar}},{avatarViewModel:_.Pz})),_.U(_.z1,{data:function(){return d().badge}},{contentPreviewImageViewModel:function(f){return _.U("div",
{class:"ytDualAvatarViewModelBadge"},_.U(_.kd,{data:f.data}))}}))},"Yd");
_.CgJ.idomCompat=!0;var Lzs=_.C8(function(K){var d=K.data;var f,H=!((f=_.eq().resolve(_.Zd(_.AJ)))==null||!f());K=_.zh(function(){var F,z,v=H?(F=d().header)==null?void 0:F.backgroundColorDarkMode:(z=d().header)==null?void 0:z.backgroundColorLightMode;if(v!==void 0)return _.hG(v)},void 0,"UX2G6c");
f=_.zh(function(){var F,z;return H?(F=d().header)==null?void 0:F.backgroundImagePart1Dark:(z=d().header)==null?void 0:z.backgroundImagePart1Light},void 0,"GPAi1d");
var D=_.zh(function(){var F,z;return H?(F=d().header)==null?void 0:F.backgroundImagePart2Dark:(z=d().header)==null?void 0:z.backgroundImagePart2Light},void 0,"nboJld"),S=_.zh(function(){return _.mD("HTML_DIR")==="rtl"},void 0,"LGJceb"),n=_.Co(),u=!1,a=function(){var F=n.value;
if(F&&!u){var z,v=(z=F.parentElement)==null?void 0:z.parentElement;if(v)for(F=F.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),z=0;z<F.length;++z){var g=F[z];if(g instanceof HTMLElement){v.scrollTo({top:g.offsetTop+g.clientHeight/2-v.clientHeight/2,behavior:"smooth"});u=!0;break}}}};
_.tR(function(){var F=n.value;if(F){var z=new ResizeObserver(a);z.observe(F);_.$F(function(){z.disconnect()})}});
var R={};return _.U("yt-sponsorships-perks-list",{el:n,class:_.SC("ytdSponsorshipsPerksListHost",(R.ytdSponsorshipsPerksListHorizontalPadding=function(){return d().horizontalPaddingEnabled},R))},_.U("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.U("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Im({"background-color":K})},_.U("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.U(_.X,{cond:f,then:function(F){var z={};return _.U("div",{class:_.SC((z.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=H,z.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!H,z.ytdSponsorshipsPerksListFlipped=S,z))},_.U(_.jV,{data:F,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.U("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.U(_.X,{cond:D,
then:function(F){var z={};return _.U("div",{class:_.SC((z.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=H,z.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!H,z.ytdSponsorshipsPerksListFlipped=S,z))},_.U(_.jV,{data:F,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.U("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.U(_.z1,{data:function(){var F;
return(F=d().header)==null?void 0:F.dualAvatar}},{dualAvatarViewModel:_.CgJ})))),_.U("div",{class:"ytdSponsorshipsPerksListBody"},_.U("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return d().title}),_.U(_.X,{cond:function(){return d().perks},
then:function(F){return _.U(_.v_,{each:F},function(z,v){var g={};return _.U("div",{class:_.SC("ytdSponsorshipsPerksListPerkContainer",(g.ytdSponsorshipsPerksListSelectedPerk=function(){var N=v(),h=d().selectedPerkIndex;return N===h},g))},_.U(_.X,{cond:function(){return v()>0},
then:function(){return _.U("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.U("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.U(_.X,{cond:function(){return z.icon},
then:function(N){return _.U(_.U5,{icon:function(){return N().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.U("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.U("div",{class:"ytdSponsorshipsPerksListPerkTitle"},z.title),_.U("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.U(_.ji,{text:z.description})),_.U(_.X,{cond:function(){return z.instructions},
then:function(){var N,h;return _.U("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.U("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(N=z.instructions)==null?void 0:N.title),_.U("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.U(_.ji,{text:(h=z.instructions)==null?void 0:h.text})))}}))),_.U(_.X,{cond:function(){return z.emoji},
then:function(N){return _.U("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.U(_.v_,{each:function(){return N()}},function(h){return _.U(_.jV,{data:h,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.U(x$4,{data:z}))})}})))},"Zd");
Lzs.idomCompat=!0;var x$4=_.C8(function(K){var d=K.data;var f=function(n,u){return n===u},H=function(){var n=d();
n=_.P(n==null?void 0:n.badgesShelf,MxN);return n!==void 0&&n!==null?n:{previousButton:{},nextButton:{}}},D=_.x7(),S=function(){var n=D.value;
if(n){var u=n.parentElement;if(u){n=n.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var a=0;a<n.length;++a){var R=n[a];if(R instanceof HTMLElement){u.scrollTo({left:R.offsetLeft+R.clientWidth/2-u.clientWidth/2,behavior:"instant"});break}}}}};
_.tR(function(){var n=D.value;if(n){var u=new ResizeObserver(S);u.observe(n);_.$F(function(){u.disconnect()})}});
return _.U("div",null,_.U(_.X,{cond:function(){return d().badges},
then:function(n){return _.U(qJ8,{data:H},_.U("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:D},_.U(_.v_,{each:function(){return n()}},function(u,a){var R={},F={},z={};
return _.U("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.U(_.X,{cond:function(){return a()>0},
then:function(){return _.U("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.U("div",{class:_.SC("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(R.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return f(a(),d().currentBadgeIndex)},R.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!f(a(),d().currentBadgeIndex)},R))},_.U("div",{class:_.SC("ytdSponsorshipsPerksListLoyaltyBadge",(F.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return f(a(),
d().currentBadgeIndex)},F.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!f(a(),d().currentBadgeIndex)},F))},_.U(_.X,{cond:function(){return u.image},
then:function(v){var g={};return _.U("div",{class:_.SC((g.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return f(a(),d().currentBadgeIndex)},g.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!f(a(),d().currentBadgeIndex)},g))},_.U(_.jV,{data:v,
alt:""}))}})),_.U("div",{class:_.SC("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(z.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return f(a(),d().currentBadgeIndex)},z))},u.title)))})))}}))},"$d");
x$4.idomCompat=!0;_.sP(Lzs,"yt-sponsorships-perks-list",{props:{data:_.rs}});_.sP(_.C8(function(K){return _.U("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.U(_.X,{cond:function(){return K.data().image},
then:function(d){return _.U(_.jV,{className:"ytwFantasyEmptyStateViewModelImage",data:d,ariaHidden:!0,alt:""})}}),_.U(_.ji,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return K.data().title}}),_.U(_.ji,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return K.data().subtitle}}),_.U(_.z1,{data:function(){return K.data().primaryButton}},{buttonViewModel:function(d){return _.U(_.oY,{data:d.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ae"),"ytw-fantasy-empty-state-view-model",{props:{data:_.rs}});var Bg2;var RuB=_.IY({buttonRenderer:_.T5});_.Zx(F3S);_.fK(F3S,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var qb=function(){var K=_.q.apply(this,arguments)||this;K.hideJoinButtonBeforeSubscribed=_.M("hide_join_button_before_subscribed");K.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return K};
_.O(qb,_.q);_.V=qb.prototype;
_.V.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"}}}};
_.V.updateJoinButtonOverrides=function(){var K,d;(K=_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(d=K.polymerController)==null||d.set("overrides",this.joinButtonOverrides);if(K=_.E(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))K.overrides=this.joinButtonOverrides};
_.V.handleButtonRefreshAction=function(K){if(K=_.P(K,Lf9))this.set("data.membershipButton",K.membershipButton),this.notifyPath("data.membershipButton")};
_.V.onYtServiceRequestError=function(K){_.B9(this.hostElement,K.detail.error.message)};
_.V.handleUnsubscribeAction=function(){var K,d,f;((K=this.data)==null?void 0:(d=K.membershipButton)==null?void 0:(f=d.buttonRenderer)==null?void 0:f.style)==="STYLE_PRIMARY"&&_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.x$.Object.defineProperties(qb.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.subscriptionStateEntity)==null||!K.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var K,d=(K=this.data)==null?void 0:K.membershipButton,f;K=(d==null?void 0:d.buttonRenderer)||_.P(d==null?void 0:(f=d.timedAnimationButtonRenderer)==null?void 0:f.buttonRenderer,_.tQ);return(K==null?void 0:K.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(K==null?void 0:K.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(K==null?void 0:K.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
qb.prototype.onYtServiceRequestError=qb.prototype.onYtServiceRequestError;qb.prototype.updateJoinButtonOverrides=qb.prototype.updateJoinButtonOverrides;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],qb.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.ou),_.B("design:type",Object)],qb.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qb.prototype,"data",void 0);_.x([_.W("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],qb.prototype,"hideJoin",null);_.x([_.A(),_.B("design:type",String)],qb.prototype,"subscribeKey",void 0);_.x([_.A({selectorArgs:["subscribeKey"],selector:UPu}),_.B("design:type",Object)],qb.prototype,"subscriptionStateEntity",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],qb.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.x([_.W("subscriptionStateEntity"),_.A({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],qb.prototype,"subscribed",null);_.x([_.W("subscribed","data.membershipButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],qb.prototype,"joinButtonOverrides",null);
_.x([_.SP("joinButtonOverrides"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qb.prototype,"updateJoinButtonOverrides",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qb.prototype,"onYtServiceRequestError",null);qb=_.x([_.Q({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],qb);
var Jgs=_.eP()(qb,"ytd-video-owner-renderer",function(){if(Bg2===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><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"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);Bg2=K}K=Bg2;return K},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.sP(_.C8(function(K){var d=K.data;var f;K=_.y(_.cC(!((f=_.KI("yt-mini-app-is-theater-mode-enabled"))==null||!f),void 0,"LUeOgf"));var H=K.next().value,D=K.next().value,S;f=(S=_.eq().resolve(_.Zd(XBs)))!=null?S:function(){return _.U("div",null)};
_.j7("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){D(!0);_.p5("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.j7("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){D(!1);_.p5("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
S={};K={};var n={};return _.U("mini-app-play-page-renderer",{class:_.SC("miniAppPlayPageRendererHost",(S.miniAppPlayPageRendererHostDetailsView=function(){return!H()},S))},_.U("div",{class:_.SC("miniAppPlayPageRendererGameContainer",(K.miniAppPlayPageRendererGameContainerDetailsView=function(){return!H()},K))},_.U(_.z1,{data:function(){return d().containerViewModel}},{miniAppContainerViewModel:Tg6}),_.U("div",{class:"miniAppPlayPageRendererChannelContainer"},_.U(_.z1,{data:function(){return d().channel}},
{videoOwnerRenderer:function(u){return _.U(Jgs,{data:u.data})}}),_.U(_.z1,{data:function(){return d().subscribeButton}},{subscribeButtonViewModel:function(u){return _.U(_.PI,{data:u.data,
isOverlay:!1,animateWidth:!0})}})),_.U(_.X,{cond:function(){return!H()&&d().description},
then:function(){return _.U("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.U("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return d().description}))}})),_.U("div",{class:_.SC("miniAppPlayPageRendererPlayNextContainer",(n.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!H()},n))},_.U(_.z1,{data:function(){return d().sectionList}},{sectionListRenderer:f})))},"be"),"mini-app-play-page-renderer",{props:{data:_.rs}});var Qe=function(){var K=_.q.apply(this,arguments)||this;K.isSearch=!1;K.isConstrainedList=!1;K.hasChipsBar=!1;K.inReplyPanel=!1;K.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"}};K.monitorScroll=!0;K.SCROLL_ANIMATION_DURATION_MS=300;K.nextContinuation={continuationType:"sectionListContinuation"};return K};
_.O(Qe,_.q);_.V=Qe.prototype;
_.V.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(K){switch(K.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.M("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.M("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.V.created=function(){var K=this;this.JSC$14863_scrollAnimation=new _.h0(function(d){K.hostElement.scrollTop=d})};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.V.getItemsPath=function(){return"data.contents"};
_.V.replacePrimaryContent=function(K){this.set("data.contents",K)};
_.V.computeHasSortFilter=function(K){return!!K&&!!K.sortFilterSubMenuRenderer};
_.V.computeShouldScrollInPanel=function(K){var d;return!!(K==null?0:(d=K.scrollPaneStyle)==null?0:d.scrollable)};
_.V.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.pU(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.V.scrollToTop=function(){this.hostElement.scrollTop=0};
_.V.scrollToItemSection=function(K){if(K=this.getItemByIdentifier(K))K=this.getScrollPositionForItem(K),this.hostElement.scrollTop!==K&&this.JSC$14863_scrollAnimation.start(this.hostElement.scrollTop,K,this.SCROLL_ANIMATION_DURATION_MS)};
_.V.getItemByIdentifier=function(K){var d=this.contents.querySelectorAll("ytd-item-section-renderer");if(d&&d.length!==0){var f=Array.from(d).findIndex(function(H){return H.sectionIdentifier===K});
return d[f===-1?0:f]}};
_.V.getScrollPositionForItem=function(K){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===K)return 0;K=_.E7(K).y+this.hostElement.scrollTop-_.E7(this.hostElement).y;return Math.min(K,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.x$.Object.defineProperties(Qe.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.targetId)==="browse-feedFEclips"}}});
Qe.prototype.onScroll=Qe.prototype.onScroll;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Qe.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kV.YtLazyListBehavior),_.B("design:type",Object)],Qe.prototype,"ytLazyListBehavior",void 0);_.x([_.l(_.Ws.YtNextContinuationBehavior),_.B("design:type",Object)],Qe.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.l(_.lr8),_.B("design:type",Object)],Qe.prototype,"ytBooleanLogicBehavior",void 0);_.x([_.l(_.lY),_.B("design:type",Object)],Qe.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Qe.prototype,"data",void 0);_.x([_.A({value:2}),_.B("design:type",Number)],Qe.prototype,"initialCount",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],Qe.prototype,"autoFill",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.B("design:type",Boolean)],Qe.prototype,"hasSortFilter",void 0);_.x([_.A({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.B("design:type",Boolean)],Qe.prototype,"hideBottomSeparator",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.B("design:type",Boolean)],Qe.prototype,"shouldScrollInPanel",void 0);
_.x([_.A(),_.B("design:type",Object)],Qe.prototype,"isSearch",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Qe.prototype,"isConstrainedList",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],Qe.prototype,"responsiveSizing",void 0);_.x([_.A(),_.B("design:type",Object)],Qe.prototype,"hasChipsBar",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],Qe.prototype,"pageSubtype",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Qe.prototype,"engagementPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Qe.prototype,"liveChatEngagementPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Qe.prototype,"inReplyPanel",void 0);_.x([_.n8("#action-button"),_.B("design:type",HTMLElement)],Qe.prototype,"actionButton",void 0);_.x([_.A(),_.B("design:type",Object)],Qe.prototype,"scrollUpButtonData",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Qe.prototype,"engagementPanelDropdown",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Qe.prototype,"engagementPanelDialog",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qe.prototype,"isClipList",null);_.x([_.n8("#contents"),_.B("design:type",HTMLElement)],Qe.prototype,"monitorScrollElement",void 0);_.x([_.n8("#contents"),_.B("design:type",HTMLElement)],Qe.prototype,"contents",void 0);
_.x([_.VV("scroll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qe.prototype,"onScroll",null);Qe=_.x([_.Q({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Qe);
var sr8=_.eP()(Qe,"ytd-section-list-renderer",function(){if(zD4===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);zD4=K}K=zD4;return K},{mode:1});var k6s;var wm2;var ZV6;var eZJ;var jG=function(){return _.q.apply(this,arguments)||this};
_.O(jG,_.q);jG.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
jG.prototype.onLikeButtonClick=function(K){K.stopPropagation();K.preventDefault()};
_.x$.Object.defineProperties(jG.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)!=null&&K.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)})}}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],jG.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],jG.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],jG.prototype,"ytRendererStamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],jG.prototype,"data",void 0);
_.x([_.A({selectorArgs:["data.likeStatusEntityKey"],selector:om}),_.B("design:type",Object)],jG.prototype,"likeStatusEntity",void 0);_.x([_.W("data","likeStatusEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],jG.prototype,"likeButtonRenderer",null);jG=_.x([_.Q({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],jG);
_.C(jG,"ytd-slim-metadata-toggle-button-renderer",function(){if(eZJ!==void 0)return eZJ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
return eZJ=K},{mode:1});var Cj=function(){var K=_.q.apply(this,arguments)||this;K.minimizePipBreakages=_.M("web_pip_minimize_breakages");K.showEqualizer=_.M("web_enable_playlist_video_lockup_equalizer");K.watchColorUpdate=_.M("kevlar_watch_color_update");K.actionMap={};return K};
_.O(Cj,_.q);_.V=Cj.prototype;_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.V.computeEditableClass=function(K){return K&&K.menu?"editable":""};
_.V.computeSelected=function(K){return!(K==null||!K.selected)};
_.V.computeUseColorPalette=function(K){return!!((K==null?0:K.lightColorPalette)&&(K==null?0:K.darkColorPalette))};
_.V.computeLargerPlaylistThumbs=function(K,d){return _.M("web_enable_playlist_bigger_thumbnails")&&!d};
_.V.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.V.onYtServiceRequestSent=function(K,d){d.endpoint&&this.isHideEnclosingAction(d.endpoint)&&!this.selected&&x3k(_.h_(),this.data.videoId)};
_.V.isHideEnclosingAction=function(K){var d=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",K);K=this.get("likeEndpoint.status",K)==="INDIFFERENT";return d||K};
_.V.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.V.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.x$.Object.defineProperties(Cj.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var K;return!!(this.withinMiniplayer&&((K=this.data)==null?0:K.actionButtons))}}});
Cj.prototype.onYtServiceRequestSent=Cj.prototype.onYtServiceRequestSent;Cj.prototype.canReorderChanged=Cj.prototype.canReorderChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Cj.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.AV),_.B("design:type",Object)],Cj.prototype,"ytdLockupBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Cj.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Cj.prototype,"withinMiniplayer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Cj.prototype,"minimizePipBreakages",void 0);_.x([_.A({computed:"computeSelected(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Cj.prototype,"selected",void 0);
_.x([_.A({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Cj.prototype,"useColorPalette",void 0);_.x([_.A({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Cj.prototype,"largerPlaylistThumbs",void 0);_.x([_.A(),_.B("design:type",Object)],Cj.prototype,"showEqualizer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Cj.prototype,"canReorder",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Cj.prototype,"touchPersistentDragHandle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Cj.prototype,"handleIsHovered",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Cj.prototype,"watchColorUpdate",void 0);_.x([_.A(),_.B("design:type",String),_.B("design:paramtypes",[])],Cj.prototype,"reorderIcon",null);
_.x([_.W("largerPlaylistThumbs"),_.B("design:type",Number),_.B("design:paramtypes",[])],Cj.prototype,"thumbnailWidth",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Cj.prototype,"showActionButtons",null);_.x([_.an("canReorder"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cj.prototype,"canReorderChanged",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],Cj.prototype,"onYtServiceRequestSent",null);Cj=_.x([_.Q({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Cj);
_.C(Cj,"ytd-playlist-panel-video-renderer",function(){if(ZV6!==void 0)return ZV6;var K=document.createElement("template");_.Y(K,'\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    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ZV6=K},{mode:2});var xT=function(){return _.q.apply(this,arguments)||this};
_.O(xT,_.q);xT.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],xT.prototype,"data",void 0);xT=_.x([_.Q({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],xT);
_.C(xT,"ytd-playlist-panel-supported-items",function(){if(wm2!==void 0)return wm2;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return wm2=
K},{mode:1});SVL=!0;gAs("\\P{N}");var zuo;var pmH=_.iB("END_OF_PLAYLIST",void 0,"End of playlist"),KmL=_.iB("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Lj=function(){var K=_.q.apply(this,arguments)||this;K.minimizePipBreakages=_.M("web_pip_minimize_breakages");K.updatedCoursePanel=_.M("move_three_dot_menu_to_playlist_panel_header_for_courses");K.hideHeaderText=!1;K.useColorPalette=!1;K.collapsed=!1;K.collapsedPreServerOverride="not_tracked";K.isHovered=!1;K.modernPanels=_.M("kevlar_watch_modern_panels");
K.expandLabel=_.iB("MINIPLAYER_EXPAND_LABEL");K.collapseLabel=_.iB("MINIPLAYER_COLLAPSE_LABEL");K.isFloating=!1;K.metaPanel=!1;K.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};K.currentIndex=void 0;return K};
_.O(Lj,_.q);_.V=Lj.prototype;
_.V.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"}}}};
_.V.created=function(){this.scrollThrottle=new _.Ct(this.onThrottledScroll,1E3,this)};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
_.V.computeOverflowMenuData=function(K){return K&&K.menu?K.menu:null};
_.V.computeCollapsible=function(K){return!K};
_.V.computeHasPlaylistButtons=function(K){return!(!K||!K.playlistButtons)};
_.V.computeHasSeparateSaveButton=function(K){return!(!K||!K.saveButton)};
_.V.computeHasToolbarButton=function(K,d){return!(!K||!(d||K.saveButton||K.menu))};
_.V.computePlaylistType=function(K){if(K&&K.playlistId)return K.playlistId.substring(0,4)};
_.V.computeCanReorder=function(K){return K?K.playlistId&&K.playlistId.startsWith("TLPQ")?!0:!!K.isEditable&&!K.isInfinite:!1};
_.V.attached=function(){var K=this;try{_.eq().resolve(_.Yf).setPlaylistComponent(this.hostElement)}catch(d){if(_.M("kevlar_park_on_playlist_token_killswitch"))throw d;_.ov().parkOrScheduleJob(function(){_.eq().resolve(_.Yf).setPlaylistComponent(K.hostElement)},2,"ci")}_.kZ(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.V.detached=function(){_.wL(this.hostElement)};
_.V.computeTrailingIcon=function(K,d,f){return f?d?"yt-icons:collapse":"yt-icons:close":d?"yt-icons:expand":_.M("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.V.computeIndexMessage=function(K,d){return MkG(K+1)+" / "+MkG(d)};
_.V.onRenderStamperFinished=function(){if(this.scrollForStampDom){var K=!0;this.isHovered&&(K=!1);if(this.collapsed||this.hidden)K=!1;K&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.V.collapseChanged=function(){var K=this;this.collapsed||(_.FN(this.ytTaskEmitterBehavior.getTaskManager(),function(){K.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.V.hiddenChanged=function(){var K=this;this.hidden||_.FN(this.ytTaskEmitterBehavior.getTaskManager(),function(){K.scrollToCurrentVideo()})};
_.V.setupReordering=function(){var K=_.E(this.hostElement).querySelector("#items");PnL?_.pbB(this.ytReorderableBehavior,K,K,"playlist-drag-handle"):_.pbB(this.ytReorderableBehavior,K,K)};
_.V.scrollToCurrentVideo=function(){var K=this;_.oc.addJob(function(){var d=_.E(K.hostElement).querySelector("#items");if(d){d.style.setProperty("padding-bottom","");var f=_.E(K.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(f){d=f.parentElement||_.UG(document);var H=d||_.UG(document);var D=_.E7(f),S=_.E7(H),n=_.wu9(H);if(H==_.UG(document)){var u=D.x-H.scrollLeft;D=D.y-H.scrollTop}else u=D.x-S.x-n.left,D=D.y-S.y-n.top;f=Bz6(f);S=H.clientHeight-
f.height;n=H.scrollLeft;var a=H.scrollTop;n+=u-(H.clientWidth-f.width)/2;H=new _.Nm(n,a+(D-S/2));d.scrollLeft=H.x;d.scrollTop=H.y}}},8)};
_.V.dataChanged=function(){var K=this;_.evJ(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.jW(this,function(){_.va(K.ytTaskEmitterBehavior.getTaskManager(),function(){K.ytRendererBehavior.markDirty();K.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.V.updateNowPlayingOverlay=function(){_.M("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.V.onPlaylistLockupNowPlaying=function(K,d){d&&(this.activeNowPlayingRenderer=d);this.updateNowPlayingOverlay()};
_.V.onScroll=function(){this.scrollThrottle.fire()};
_.V.onThrottledScroll=function(){var K=this;_.va(this.ytTaskEmitterBehavior.getTaskManager(),function(){K.ytRendererBehavior.markDirty()})};
_.V.onToggleExpanded=function(K){this.collapsible&&_.Qm(K).tagName!=="A"&&!_.qa(_.qn(K),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.V.setCollapsed=function(K){this.collapsible&&(this.collapsed=K,_.p1(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.V.handleCollapsedFromData=function(K){if(K){var d=K.playlistPanelCollapseState;d==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||d==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),d=d==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==d&&this.setCollapsed(d)):this.currentPlaylistId!==K.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(d=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==d&&this.setCollapsed(d),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=K.playlistId}};
_.V.handleDrop=function(K){var d=K.currDragItem;K=d.data.playlistSetVideoId;var f=_.CB(d.parentNode.childNodes,d),H=void 0;f>0&&(H=d.parentNode.childNodes[f-1].data.playlistSetVideoId);d=_.h_();if(d.responsePlaylistData&&d.responsePlaylistData.contents){var D=Z5X(K,d.responsePlaylistData);d.responsePlaylistData=(0,_.PR.unsafeClone)(d.responsePlaylistData);OBG(d.responsePlaylistData.contents,D,f);d.queueProxy?vV8(d.queueProxy,D,f,K,H):d.playlistProxy&&vV8(d.playlistProxy,D,f,K,H);_.bi(d,_.mM(d,d.response?
d.response.autoplayRenderer:void 0))}};
_.V.handleDarkModeChange=function(K){K!==this.isDarkTheme&&(this.isDarkTheme=K)};
_.V.colorPaletteChanged=function(){var K,d=((K=this.data)==null?void 0:K.contents)||[],f;K=_.y(d);for(d=K.next();!d.done;d=K.next()){d=d.value;var H=void 0;if((H=d.playlistPanelVideoRenderer)==null?0:H.selected){K=d.playlistPanelVideoRenderer;H=d=void 0;(f=this.isDarkTheme?(d=K)==null?void 0:d.darkColorPalette:(H=K)==null?void 0:H.lightColorPalette)&&_.gH(this.hostElement,f);break}}this.useColorPalette=!!f};
_.x$.Object.defineProperties(Lj.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var K,d;return!((K=this.data)==null||!K.playlistId)&&!((d=this.data)==null||!d.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var K=_.eq().resolve(_.Zd(_.Yf)),d;if(((d=this.data)==null?0:d.contents)&&(K==null?0:K.hasAutoplayData())){var f;if(((f=this.playlistLoopStateEntity)==null?void 0:f.state)==="PLAYLIST_LOOP_STATE_ONE"){if(K=this.data.currentIndex,K!==void 0){var H,D;var S=(H=this.data.contents[K])==null?void 0:(D=H.playlistPanelVideoRenderer)==null?void 0:D.title}}else{var n,u=(n=_.P(K.getAutoplayEndpoint(),_.qu))==null?void 0:n.videoId,a,R;S=(a=this.data.contents.find(function(F){var z;
return((z=F.playlistPanelVideoRenderer)==null?void 0:z.videoId)===u}))==null?void 0:(R=a.playlistPanelVideoRenderer)==null?void 0:R.title}return S}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)!=null&&K.nextVideoLabel?this.nextVideoTitle?_.qQ(this.data.nextVideoLabel)+":":pmH:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var K;if(((K=this.data)==null?0:K.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.rB(KmL);var d;return(d=this.data)==null?void 0:d.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H=(K=this.data)==null?void 0:(d=K.playlistButtons)==null?void 0:(f=d.menuRenderer)==null?void 0:f.topLevelButtons;if(H)for(K=_.y(H),d=K.next();!d.done;d=K.next())if(d=d.value,d.playlistLoopButtonRenderer)return d.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var K;return!!(this.collapsed&&((K=this.data)==null?0:K.nextVideoLabel))}}});
Lj.prototype.colorPaletteChanged=Lj.prototype.colorPaletteChanged;Lj.prototype.onPlaylistLockupNowPlaying=Lj.prototype.onPlaylistLockupNowPlaying;Lj.prototype.updateNowPlayingOverlay=Lj.prototype.updateNowPlayingOverlay;Lj.prototype.dataChanged=Lj.prototype.dataChanged;Lj.prototype.hiddenChanged=Lj.prototype.hiddenChanged;Lj.prototype.collapseChanged=Lj.prototype.collapseChanged;Lj.prototype.onRenderStamperFinished=Lj.prototype.onRenderStamperFinished;Lj.prototype.onMouseLeave=Lj.prototype.onMouseLeave;
Lj.prototype.onMouseEnter=Lj.prototype.onMouseEnter;_.x([_.l(_.Mg),_.B("design:type",Object)],Lj.prototype,"ironResizableBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(wbN.YtPlaylistPanelBehavior),_.B("design:type",Object)],Lj.prototype,"ytPlaylistPanelBehavior",void 0);
_.x([_.l(_.xc.YtTaskEmitterBehavior),_.B("design:type",Object)],Lj.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.l(_.K_8),_.B("design:type",Object)],Lj.prototype,"ytReorderableBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Lj.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Lj.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Lj.prototype,"actionHandlerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],Lj.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Lj.prototype,"autoplayData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Lj.prototype,"withinMiniplayer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lj.prototype,"minimizePipBreakages",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lj.prototype,"updatedCoursePanel",void 0);
_.x([_.A({computed:"setMenuData_(data)"}),_.B("design:type",Object)],Lj.prototype,"menuRendererData",void 0);_.x([_.A({computed:"computeOverflowMenuData(data)"}),_.B("design:type",Object)],Lj.prototype,"overflowMenuDataTopRow",void 0);_.x([_.A({computed:"computeOverflowMenuData(data)"}),_.B("design:type",Object)],Lj.prototype,"overflowMenuData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lj.prototype,"hideHeaderText",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lj.prototype,"useColorPalette",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.B("design:type",Boolean)],Lj.prototype,"collapsible",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lj.prototype,"collapsed",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Lj.prototype,"hidden",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.B("design:type",Boolean)],Lj.prototype,"hasPlaylistButtons",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.B("design:type",Boolean)],Lj.prototype,"hasSeparateSaveButton",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.B("design:type",Boolean)],Lj.prototype,"hasToolbar",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.B("design:type",String)],Lj.prototype,"playlistType",void 0);_.x([_.A(),_.B("design:type",Object)],Lj.prototype,"isHovered",void 0);_.x([_.A({selectorArgs:["playlistLoopStateEntityKey"],selector:_.MMz}),_.B("design:type",Object)],Lj.prototype,"playlistLoopStateEntity",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lj.prototype,"modernPanels",void 0);
_.x([_.A({value:56}),_.B("design:type",Number)],Lj.prototype,"scrollMargin",void 0);_.x([_.A({computed:"computeCanReorder(data)"}),_.B("design:type",Boolean)],Lj.prototype,"canReorder",void 0);_.x([_.A(),_.B("design:type",Object)],Lj.prototype,"expandLabel",void 0);_.x([_.A(),_.B("design:type",Object)],Lj.prototype,"collapseLabel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lj.prototype,"isFloating",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lj.prototype,"metaPanel",void 0);_.x([_.A({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.B("design:type",String)],Lj.prototype,"trailingIcon",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Lj.prototype,"isDarkTheme",void 0);_.x([_.A({selector:_.Yo}),_.B("design:type",Boolean)],Lj.prototype,"miniplayerIsActive",void 0);_.x([_.A({selector:function(K){return K.watch.playerState}}),
_.B("design:type",Number)],Lj.prototype,"playerState",void 0);_.x([_.A(),_.B("design:type",Object)],Lj.prototype,"activeNowPlayingRenderer",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Lj.prototype,"moveThreeDotMenuToTopRow",null);_.x([_.W("data","autoplayData","playlistLoopStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Lj.prototype,"nextVideoTitle",null);
_.x([_.W("data","nextVideoTitle"),_.B("design:type",String),_.B("design:paramtypes",[])],Lj.prototype,"nextVideoLabel",null);_.x([_.W("collapsed"),_.B("design:type",String),_.B("design:paramtypes",[])],Lj.prototype,"buttonAriaLabel",null);_.x([_.W("data","playlistId","longBylineText"),_.B("design:type",Object),_.B("design:paramtypes",[])],Lj.prototype,"mixLongByLine",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Lj.prototype,"playlistLoopStateEntityKey",null);
_.x([_.VV("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lj.prototype,"onMouseEnter",null);_.x([_.VV("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lj.prototype,"onMouseLeave",null);_.x([_.A({reflectToAttribute:!0}),_.W("data","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Lj.prototype,"showNextVideoHeader",null);
_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lj.prototype,"onRenderStamperFinished",null);_.x([_.SP("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lj.prototype,"collapseChanged",null);_.x([_.SP("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lj.prototype,"hiddenChanged",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lj.prototype,"dataChanged",null);_.x([_.SP("playerState","miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lj.prototype,"updateNowPlayingOverlay",null);_.x([_.VV("yt-playlist-lockup-now-playing-active"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Lj.prototype,"onPlaylistLockupNowPlaying",null);
_.x([_.SP("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lj.prototype,"colorPaletteChanged",null);Lj=_.x([_.Q({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Lj);
_.dBH=_.eP()(Lj,"ytd-playlist-panel-renderer",function(){if(k6s===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);k6s=K}K=k6s;return K},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var fYH;var Bo=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("web_button_rework");return K};
_.O(Bo,_.q);Bo.prototype.computeShouldButtonBeVertical=function(K,d){return K||d};
Bo.prototype.onYtServiceRequestSent=function(K,d){(K=_.P(d.endpoint,_.bc))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.nt("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:K.status})):this.handleLikeEndpoint(K))};
Bo.prototype.computelikeStatusEntityKey=function(K){return K==null?void 0:K.likeStatusEntityKey};
Bo.prototype.handleLikeEndpoint=function(K){K.status==="LIKE"?this.JSC$14888_ytdDislikeToggleButtonRenderer.toggle(!1):K.status==="DISLIKE"?this.JSC$14888_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14888_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14888_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.x$.Object.defineProperties(Bo.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var K;return NMp(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(K=this.likeStatusEntity)==null?void 0:K.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var K;if(this.data&&((K=this.data)==null||!K.hideDislikeButton)){var d;return NMp(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(d=this.likeStatusEntity)==null?void 0:d.likeStatus)}}}});
Bo.prototype.onYtServiceRequestSent=Bo.prototype.onYtServiceRequestSent;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Bo.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Bo.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Bo.prototype,"vertical",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],Bo.prototype,"textTransform",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Bo.prototype,"useShortsIcon",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Bo.prototype,"underIconLabel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Bo.prototype,"modern",void 0);_.x([_.A({value:"left"}),_.B("design:type",String)],Bo.prototype,"buttonTooltipPosition",void 0);
_.x([_.A(),_.B("design:type",Object)],Bo.prototype,"overrides",void 0);_.x([_.n8("#like-button"),_.B("design:type",Object)],Bo.prototype,"JSC$14888_ytdLikeToggleButtonRenderer",void 0);_.x([_.n8("#dislike-button"),_.B("design:type",Object)],Bo.prototype,"JSC$14888_ytdDislikeToggleButtonRenderer",void 0);_.x([_.W("data","likeStatusEntity.likeStatus"),_.B("design:type",Object),_.B("design:paramtypes",[])],Bo.prototype,"likeButton",null);
_.x([_.W("data","likeStatusEntity.likeStatus"),_.B("design:type",Object),_.B("design:paramtypes",[])],Bo.prototype,"dislikeButton",null);_.x([_.A({computed:"computelikeStatusEntityKey(data)"}),_.B("design:type",String)],Bo.prototype,"likeStatusEntityKey",void 0);_.x([_.A({selectorArgs:["likeStatusEntityKey"],selector:om}),_.B("design:type",Object)],Bo.prototype,"likeStatusEntity",void 0);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],Bo.prototype,"onYtServiceRequestSent",null);Bo=_.x([_.Q({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Bo);
var Hlf=_.eP()(Bo,"ytd-like-button-renderer",function(){if(fYH===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);fYH=K}K=fYH;return K},{mode:1});_.DBs={};
_.DBs.YtConditionalRendererBehavior=[_.p.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(K,d){var f=this,H,D;return _.c(function(S){switch(S.nextAddress){case 1:if(!d)return f.hidden=!0,f.showSpinner=!1,S.return();if((H=K)==null?0:(D=H.visibilityCondition)==null?0:D.mode)switch(K.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return S.jumpTo(5);default:return S.jumpTo(6)}f.showSpinner=
!1;f.hidden=!0;return _.I(S,f.shouldShow_(K),4);case 4:f.hidden=!S.yieldResult;S.jumpTo(0);break;case 5:return _.I(S,f.shouldShow_(K),8);case 8:f.showSpinner=S.yieldResult;f.hidden=!1;S.jumpTo(0);break;case 6:return f.showSpinner=!1,_.I(S,f.shouldShow_(K),9);case 9:f.hidden=!S.yieldResult,_.iQ(S)}})},
shouldShow_:function(K){return K&&K.supportedDatas&&K.supportedDatas.rendererVisibilityConditionData&&K.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(K.supportedDatas.rendererVisibilityConditionData.showIf):K&&K.visibilityCondition&&K.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(K.visibilityCondition.showIf):K&&K.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(K.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(K){switch(K){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(K){switch(K){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var K=_.ev(this.hostElement,"yt-get-mdx-status");return K.length==1&&K[0].connected},
isLocationPermissionGranted_:function(){var K;return _.c(function(d){return d.nextAddress==1?navigator.permissions?_.I(d,navigator.permissions.query({name:"geolocation"}),3):d.jumpTo(2):d.nextAddress!=2?(K=d.yieldResult,d.return(Promise.resolve(K.state==="granted"))):d.return(Promise.resolve(!1))})}}];var VrN=function(K,d){d=d===void 0?{}:d;return function(f){var H=document.createElement(K),D;var S=(D=H.polymerController)!=null?D:H;jjo(H,S,f,d);return H}}("yt-icon");var S6t=function(K){var d=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];BmO();_.B6("ytglobal.ytUtilActivityCallback_",function(){_.p1(K,"yt-user-activity")});
new Zk(function(){return d.JSC$14900_onMouseMove});
document.addEventListener("scroll",function(){return d.onScroll});
window.addEventListener("resize",function(){return d.onResize})},yn2=function(K,d,f){d in K.eventJobIds||(f=_.Xm().addLowPriorityJob(function(){_.ec();
delete K.eventJobIds[d]},f),K.eventJobIds[d]=f)};
S6t.prototype.onScroll=function(K){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):K.target===document&&yn2(this,"scroll",200)};
S6t.prototype.onResize=function(){yn2(this,"resize",200)};
S6t.prototype.JSC$14900_onMouseMove=function(){yn2(this,"mousemove",100)};
_.Bw=function(K){K.scrollEventsToIgnore+=1;K.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){K.scrollEventsToIgnore--},500))};var nrf=function(K){this.element=K;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
nrf.prototype.showFeedbackDialog=function(K,d,f,H){var D=il6();if(!D)return!1;var S=GVJ();S.productId=D;d&&(S.flow="submit",S.report={description:d});f&&(il6()==="59"?S.callback=_.AR(function(){_.t3("userFeedbackEvent",{});f()}):S.callback=_.AR(f));
S.bucket=H||_.mD("GOOGLE_FEEDBACK_BUCKET","Other");cn8(S);K=ulf(this,"GFEEDBACK",K);try{_.ll2(S,K)}catch(n){return _.G2(n),!1}return!0};
nrf.prototype.showHelpDialog=function(K,d,f){var H=this,D=il6();if(!D)return!1;var S={helpCenterPath:"/youtube",productData:ulf(this,"GUIDED_HELP",f)};cn8(S);var n=GVJ();n.context=K||S.productData.context||"default";n.defaultHelpArticleId=d;n.enableSendFeedback=!0;(_.T2("gapi.load")||function(u,a){return a()})("client",function(){try{var u=MlH(D,S);
if(_.M("web_always_load_chat_support")&&!H.chatSupportLoaded)try{u.JSC$7981_loadChatSupport(n),H.chatSupportLoaded=!0}catch(a){}u.startHelp(n)}catch(a){_.G2(a)}})};
var il6=function(){var K=_.mD("GOOGLE_FEEDBACK_PRODUCT_ID");K||_.G2(Error("bi"));return K},cn8=function(K){K&&(K.locale=_.M("kevlar_help_use_locale")?_.mD("INNERTUBE_CONTEXT_HL","en"):_.mD("HTML_LANG","en"))},ulf=function(K,d,f){var H=K.productData;
delete H.origin;H.device=_.zS();var D;a:{if(D=document.createElement("canvas")){var S=D.getContext("experimental-webgl",{stencil:!0});if(S){var n=S.getExtension("WEBGL_debug_renderer_info");if(n){D=S.getParameter(n.UNMASKED_RENDERER_WEBGL);break a}}if(S=D.getContext("webgl")){D=S.getParameter(S.RENDERER);break a}}D=null}H.gpu=D;H.isSDC=!!_.mD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(D=_.mD("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.PR.extend(H,D);_.ljX(d,H);_.W3u(H);(K=_.p1(K.element,"yt-get-autonav-pause-debug-state"))&&
K.length&&(H.autonav_pause_state=K[0]);K=_.iW();H.browser_resolution=K.width+"\u00d7"+K.height+"@"+(window.devicePixelRatio||1)+"x";f&&_.PR.extend(H,f);return H};
nrf.prototype.resetProductData=function(){this.productData={}};var aY9=function(K){this.feedbackManager=new nrf(K)};
aY9.prototype.showFeedbackDialog=function(K,d,f,H){return this.feedbackManager.showFeedbackDialog(K,d,f,H)};
aY9.prototype.showHelpDialog=function(K,d,f){return this.feedbackManager.showHelpDialog(K,d,f)};var IY6=function(){this.baseUrl="";this.aTag=document.createElement("a")},yYL=function(K,d,f){f=f===void 0?{}:f;
f.pbj||(f.pbj=1);f=_.h25(d,f);K.baseUrl&&f&&!_.B_(f)[1]&&!_.JR(f)&&(d=K.baseUrl,nB(d,"/")&&(d=d.slice(0,-1)),_.Sp(f,"/")&&(f=f.slice(1)),f=d+"/"+f);ND(K.aTag,Ro(f||""));return K.aTag.href};
IY6.prototype.fetchData=function(K){return _.otB(K)};
IY6.prototype.postData=function(K,d){var f={method:"POST"};if(d){for(var H=_.y(Object.keys(d)),D=H.next();!D.done;D=H.next()){D=D.value;var S=d[D];_.H4(S)&&(d[D]=JSON.stringify(S))}f.postParams=d}return _.otB(K,f)};
_.neN=function(K,d,f,H,D){K=yYL(K,d,f);if(!K)throw H=Error("ci"),Object.assign(H,{params:d}),H;return _.otB(K,D,H)};
IY6.prototype.requestDataForServiceEndpoint=function(K,d){if(_.P(K,_.iCz))return this.fetchData("/getAccountSwitcherEndpoint");d=d||{};var f=_.P(K,k32);f?d.se=f.base64EncodedServiceEndpoint:d.sej=JSON.stringify(K);(f=_.te())&&_.M("enable_service_ajax_csn")&&(d.csn=f);d.theme=_.X7();_.P(K,yOu)&&_.mD("DELEGATION_CONTEXT")&&(d.delegation_context=JSON.stringify(_.mD("DELEGATION_CONTEXT")));f=null;for(var H in K)if(nB(H,"Endpoint")||nB(H,"Command")){f=H;break}if(!f){var D=Error("di");Object.assign(D,{params:K});
_.oAB(D,"WARNING");return new _.ip(function(n,u){u(D)})}H={name:f};
var S;(f=(S=_.P(K,_.y$))==null?void 0:S.signal)&&(H.signal=f);(S=_.CQ(window.location.href))&&S.internalcountrycode&&(H.internalcountrycode=S.internalcountrycode);S="/service_ajax";_.M("debug_forward_web_query_parameters")&&(S=_.j4u(S,window.location.search));S=_.LQ(S,H);K.clickTrackingParams&&_.xZ(S,{itct:K.clickTrackingParams});return this.postData(S,d)};_.UBk=new _.xn("GFEEDBACK_TOKEN");var R$f;var FmN;var z$N;var X7N;var J0=function(){var K=_.q.apply(this,arguments)||this;K.compact=!1;return K};
_.O(J0,_.q);J0.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
J0.prototype.computeHasIcon_=function(K){return!!K};
J0.prototype.isSignInIcon_=function(K){return K=="yt-icons:prompted_sign_in"};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.DBs.YtConditionalRendererBehavior),_.B("design:type",Object)],J0.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],J0.prototype,"data",void 0);
_.x([_.A({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],J0.prototype,"icon_",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.B("design:type",Boolean)],J0.prototype,"hasIcon_",void 0);_.x([_.A({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.B("design:type",Boolean)],J0.prototype,"signInIcon_",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],J0.prototype,"compact",void 0);
J0=_.x([_.N7({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],J0);
_.C(J0,"yt-player-error-message-renderer",function(){if(X7N===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;z$N===void 0&&(z$N=document.createElement("template"));var H=z$N;f.call(d,H.content.cloneNode(!0),K.content.firstChild);X7N=K}K=X7N;return K},{mode:2});var vrN;var Mrs;var sd=function(){return _.q.apply(this,arguments)||this};
_.O(sd,_.q);sd.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
sd.prototype.computeIcon_=function(K){return K?"yt-icons:"+K.iconType.toLowerCase():"error_outline"};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],sd.prototype,"data",void 0);_.x([_.A({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],sd.prototype,"icon_",void 0);sd=_.x([_.N7({is:"yt-player-kav-renderer",disableElementRegistration:!0})],sd);
_.C(sd,"yt-player-kav-renderer",function(){if(Mrs===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;vrN===void 0&&(vrN=document.createElement("template"));var H=vrN;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Mrs=K}K=Mrs;return K},{mode:2});_.sP(_.C8(function(K){var d=_.Co(),f=_.y(_.cC(0,void 0,"gCmSbf")),H=f.next().value,D=f.next().value;f=_.y(_.cC(null,void 0,"Rj9zMe"));var S=f.next().value,n=f.next().value;_.tR(function(){rxz(d.value,D,n);d.value.scrollIntoView()});
f=qHn.bind(null,K.data,H);sN("resize",function(){var u=S();if(H()===1&&u!==null){var a;(a=window.grecaptcha)==null||a.reset(u)}});
return _.U("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.U("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.U("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var u,a;return(u=K.data().accessibility)==null?void 0:(a=u.accessibilityData)==null?void 0:a.label}),_.U(_.ji,{text:f,
className:_.SC("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.U("div",{el:d,class:"ytwPlayerCaptchaViewModelGridItem"})))},"ce"),"yt-player-captcha-view-model",{props:{data:_.JJ}});var QgJ=!1;_.Puf=_.C8(function(K){var d=K.data;return _.U("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.U(_.X,{cond:function(){return d().icon},
then:function(f){return _.U("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.U(_.jV,{data:f,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.U(_.X,{cond:function(){return d().title},
then:function(f){return _.U("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.U(_.ji,{text:f}))}}),_.U(_.X,{cond:function(){return d().description},
then:function(f){return _.U("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.U(_.ji,{text:f}))}}),_.U(_.z1,{data:function(){return d().primaryButton}},{buttonViewModel:function(f){return _.U(_.oY,{data:f.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.U(_.z1,{data:function(){return d().secondaryButton}},{buttonViewModel:function(f){return _.U(_.oY,{data:f.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"de");
_.Puf.idomCompat=!0;var grf=_.C8(function(K){var d=K.data;_.GD();return _.U("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.U("div",{class:"player-interstitial-renderer-wiz__scrim"},_.U(_.z1,{data:function(){return d().content}},{interstitialViewModel:_.Puf})))},"ee");
grf.idomCompat=!0;_.sP(grf,"yt-player-interstitial-renderer",{props:{data:_.rs}});var kT=function(){var K=_.q.apply(this,arguments)||this;K.noBackground=!1;K.compact=!1;K.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return K};
_.O(kT,_.q);kT.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"}}}};
kT.prototype.onUpdatePlayerErrorMessageCommand_=function(K){if(_.P(K,V$v)){var d;if(K=(d=_.P(K,V$v))==null?void 0:d.newPlayerErrorMessageRenderer)this.data=K}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],kT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],kT.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],kT.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],kT.prototype,"status",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],kT.prototype,"noBackground",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],kT.prototype,"compact",void 0);kT=_.x([_.N7({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],kT);
var OlB=_.eP()(kT,"yt-playability-error-supported-renderers",function(){if(FmN===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;R$f===void 0&&(R$f=document.createElement("template"));var H=R$f;f.call(d,H.content.cloneNode(!0),K.content.firstChild);FmN=K}K=FmN;return K},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var jgX=void 0,xLB=void 0;var JxS=new Vlt;var Nuf=function(K){this.store=K;this.cUZ=new _.nQs},pDO=function(K,d,f){var H,D;
if(!(D=((H=d.playabilityStatus)==null?void 0:H.status)!=="OK")){K=K.store;var S;D=d.offlineState&&((S=d.videoDetails)==null?0:S.videoId)?_.M("enable_pl_r_c_cd")?o5Y(K.getState().entities,d.videoDetails.videoId):!!dV5(K.getState().entities,d.videoDetails.videoId):!1}if(D)return!0;D=euz(d);if(D===1){if(_.M("ab_v_vid_sig")){var n,u=(n=d.videoDetails)==null?void 0:n.videoId;if(!u||!f||u!==f){var a;d=new _.X4("282054944_vid",{fOr:f,jzD:(a=d.videoDetails)==null?void 0:a.videoId});_.$7(d)}}return!0}mzS=
0;var R,F;a=(u=d.auxiliaryUi)==null?void 0:(R=u.messageRenderers)==null?void 0:(F=R.bkaEnforcementMessageViewModel)==null?void 0:F.displayType;if(D!==3&&(a==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||a==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;a={reason:_.kJ(_.iB("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.M("ks_something_wrong_learn_more")?vgY("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.kJ(_.iB("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:_.kJ("282054944")};Y68(d,{playerErrorMessageRenderer:a});return!1},KzX=function(K,d){if(wnz(d)){_.SZ(1,!0);
var f=(f=wnz(d))&&_.CDz()?f:void 0;f?(Y68(d,{enforcementMessageViewModel:f}),K.cUZ.increment("IN_PLAYER"),_.SZ(5)):(K.cUZ.increment("SKIP_DISPLAY"),_.SZ(2))}},Y68=function(K,d){K.playabilityStatus=Object.assign({},K.playabilityStatus,{status:"ERROR",
errorScreen:d});K.videoDetails=void 0};
Nuf.prototype.handleResponse=function(K,d){if(K.playabilityStatus){var f,H,D,S=(d==null?void 0:(f=d.innerTubeRequest)==null?void 0:f.videoId)||(d==null?void 0:(H=d.innerTubeRequest)==null?void 0:(D=H.playerRequest)==null?void 0:D.videoId);pDO(this,K,S)&&KzX(this,K)}};
Nuf[CG]=[Ks];var Zq5=new _.xn("ADBLOCK_DETECTION_SERVICE_TOKEN");var CY=function(K){this.vzH=K};
CY.prototype.bindInnertubeChallengeFetcher=function(K){this.vzH.bicf(K)};
CY.prototype.registerChallengeFetchedCallback=function(K){this.vzH.bcr(K)};
CY.prototype.getLatestChallengeResponse=function(){return this.vzH.blc()};var Er6;_.wr=function(K,d,f){var H=this;this.network=K;this.options=d;this.networkStatusManager=f;this.lK=null;if(d.useBotguardEverywhere){var D=new _.fU;this.lK=D.promise;_.Hu.ytAtRC&&_.uX(_.oc,function(){var S,n;return _.c(function(u){if(u.nextAddress==1){if(!_.Hu.ytAtRC)return u.return();S=trf(null);return _.I(u,H.kz(S),2)}n=u.yieldResult;_.Hu.ytAtRC&&_.Hu.ytAtRC(JSON.stringify(n));_.iQ(u)})});
HHS().then(function(S){var n,u,a,R;return _.c(function(F){if(F.nextAddress==1)return S.bindInnertubeChallengeFetcher(function(z){return H.kz(trf(z))}),_.I(F,ElN(),2);
n=F.yieldResult;u=S.getLatestChallengeResponse();a=u.challenge;if(!a)throw Error("ei");R={challenge:a,aU:jd(a),bV:n,bgChallenge:new qj};D.resolve(R);S.registerChallengeFetchedCallback(function(z){z=z.challenge;if(!z)throw Error("fi");z={challenge:z,aU:jd(z),bV:n,bgChallenge:new qj};H.lK=Promise.resolve(z)});
_.iQ(F)})})}else d.preload&&or2(this,new Promise(function(S){_.va(_.oc,function(){S($B6(H))},0)}))};
Er6=function(K){var d={preload:!0,useBotguardEverywhere:_.M("attmusi")},f=!1;if(typeof d==="boolean")var H={preload:d};else typeof d==="undefined"?H={preload:!0}:(H=d,f=!!d.nCP);d=f?void 0:new _.jc;_.wr.instance=new _.wr(K,H,d);return _.wr.instance};
_.wr.prototype.oVQ=function(){var K=this;return _.c(function(d){return d.nextAddress==1?_.I(d,Promise.race([K.lK,null]),2):d.return(!!d.yieldResult)})};
_.wr.prototype.ot6=function(K,d,f){var H=this,D,S,n;return _.c(function(u){H.lK===null&&or2(H,$B6(H));D=!1;S={};n=function(){var a,R,F;return _.c(function(z){switch(z.nextAddress){case 1:return _.I(z,H.lK,2);case 2:a=z.yieldResult;S.challenge=a.challenge;if(!a.bV){"c1a"in a.aU&&(S.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");z.jumpTo(3);break}R=Object.assign({},{c:a.challenge,e:K},d);_.HF(z,4);D=!0;if(_.M("attbs")&&!_.M("attmusi")){F=_.S2k(a.bV,{uv:R});z.jumpTo(6);break}return _.I(z,a.bV.snapshot({uv:R}),
7);case 7:F=z.yieldResult;case 6:F?S.webResponse=F:S.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Ts(z,3);break;case 4:_.n7(z),S.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(K==="ENGAGEMENT_TYPE_PLAYBACK"){var v=a.aU,g={};if(v.c6a){var N=Number(_.mD("DCLKSTAT",0));g.reportingStatus=String(Number(v.c)^(isNaN(N)?0:N))}v.c6b&&(g.broadSpectrumDetectionResult=String(Number(v.c)^Number(_.mD("CATSTAT",0))));S.adblockReporting=g}return z.return(S)}})};
return u.return(Promise.race([n(),h$N(f,function(){var a=Object.assign({},S);D&&(a.error="ATTESTATION_ERROR_VM_TIMEOUT");return a})]))})};
var trf=function(K){var d={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};K&&(d.interpreterHash=K);return d},$B6=function(K,d){d=d===void 0?0:d;
var f,H,D,S,n,u,a,R,F,z,v,g;return _.c(function(N){switch(N.nextAddress){case 1:f=trf(nGN().abn);if(_.M("att_fet_ks"))return _.HF(N,7),_.I(N,K.kz(f),9);_.HF(N,4);return _.I(N,bl4(K,f),6);case 6:n=N.yieldResult;D=n.lVa;S=n.wgF;H=n;_.Ts(N,3);break;case 4:return _.n7(N),_.h3(Error("gi`"+d)),mBk(K,864E5),N.return({challenge:"",aU:{},bV:void 0,bgChallenge:void 0});case 9:H=N.yieldResult;if(!H)throw Error("hi");if(!H.challenge)throw Error("ii");D=H.challenge;S=jd(D);if("c1a"in S&&(!H.bgChallenge||!H.bgChallenge.program))throw Error("ji");
_.Ts(N,3);break;case 7:u=_.n7(N);_.h3(u);d++;if(d>=5)return _.h3(Error("gi`"+d)),mBk(K,864E5),N.return({challenge:"",aU:{},bV:void 0,bgChallenge:void 0});a=1E3*Math.pow(2,d-1)+Math.random()*1E3;return N.return(new Promise(function(h){_.va(_.oc,function(){h($B6(K,d))},a)}));
case 3:R=f15(S);mBk(K,R*1E3);F=void 0;if(!("c1a"in S&&H.bgChallenge)){N.jumpTo(10);break}z=dwB(H.bgChallenge);_.HF(N,11);return _.I(N,caJ(nGN(),z),13);case 13:_.Ts(N,12);break;case 11:return v=_.n7(N),_.h3(v),N.return({challenge:D,aU:S,bV:F,bgChallenge:z});case 12:return _.HF(N,14),F=new _.Pk({challenge:z,n7:{mX:"aGIf"}}),_.I(N,F.gQO,16);case 16:_.Ts(N,10);break;case 14:g=_.n7(N),_.h3(g),F=void 0;case 10:return N.return({challenge:D,aU:S,bV:F,bgChallenge:z})}})};
_.wr.prototype.kz=function(K){var d=this,f;return _.c(function(H){f=d.networkStatusManager;if(!f||f.isNetworkAvailable())return H.return(d.network.kz(K));_.oS("att_pna",void 0,"attestation_challenge_fetch");return H.return(new Promise(function(D){f.listenOnce("publicytnetworkstatus-online",function(){d.network.kz(K).then(D)})}))})};
var lYH=function(K){if(!K)throw Error("hi");if(!K.challenge)throw Error("ii");var d=K.challenge,f=jd(d);if("c1a"in f&&(!K.bgChallenge||!K.bgChallenge.program))throw Error("ji");return Object.assign({},K,{lVa:d,wgF:f})},bl4=function(K,d){var f,H,D,S,n;
return _.c(function(u){switch(u.nextAddress){case 1:f=void 0,H=0,D={};case 2:if(!(H<5)){u.jumpTo(4);break}if(!(H>0)){u.jumpTo(5);break}D.fL3=1E3*Math.pow(2,H-1)+Math.random()*1E3;return _.I(u,new Promise(function(a){return function(R){_.va(_.oc,function(){R(void 0)},a.fL3)}}(D)),5);
case 5:return _.HF(u,7),_.I(u,K.kz(d),9);case 9:return S=u.yieldResult,u.return(lYH(S));case 7:f=n=_.n7(u),n instanceof Error&&_.h3(n);case 8:H++;D={fL3:void 0};u.jumpTo(2);break;case 4:throw f;}})},or2=function(K,d){K.lK=d},WmN=function(K){var d,f,H;
return _.c(function(D){if(D.nextAddress==1)return _.I(D,Promise.race([K.lK,null]),2);d=D.yieldResult;var S=$B6(K);K.lK=S;(f=d)==null||(H=f.bV)==null||H.dispose();_.iQ(D)})},mBk=function(K,d){var f=Date.now()+d,H=function(){var D;
return _.c(function(S){D=f-Date.now();return D<1E3?_.I(S,WmN(K),0):(_.va(_.oc,H,Math.min(D,6E4)),S.jumpTo(0))})};
H()},h$N=function(K,d){return new Promise(function(f){_.va(_.oc,function(){f(d())},K)})};var GrL=function(){};
GrL.prototype.processContext=function(K){var d=_.wr.instance;if(!d)return _.GI();var f=nNz(K);return f?new Wr(d.ot6(f,Suo(K),500).then(function(H){var D;(K==null?0:(D=K.innerTubeRequest)==null?0:D.context)||(K.innerTubeRequest.context={});D=K.innerTubeRequest.context;D.request||(D.request={});D.request.attestationResponseData=H})):_.GI()};var Anv=function(K){this.innertubeTransportService=K};
Anv.prototype.kz=function(K){_.oS("att_fsr",void 0,"attestation_challenge_fetch");return _.Np(this.innertubeTransportService,K,_.CF(_.Dpk)).then(function(d){_.oS("att_frr",void 0,"attestation_challenge_fetch");return d})};_.TuL=function(K){this.innertubeTransportService=K};var rns=new _.xn("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var q69=function(){},jVL=function(K,d,f,H,D){var S=_.mD("YPC_MB_URL");
_.QxG(S).then(function(){QVH(S,K,d,f,H,D)})},QVH=function(K,d,f,H,D,S){try{var n=payments.business.integration,u=payments.business.integration.Style.create().withMaterialDesignStyle(),a=n.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.M("enable_window_constrained_buy_flow_dialog")&&(a=a.usingPopupStyle("windowConstrained"));S&&(a=a.usingCloseCallback(S));var R=f?f:_.mD("YPC_GB_LANGUAGE"),F=_.mD("SESSION_INDEX");n.bootstrap.fromPaymentsUrl(K);n.bootstrap.asMashupMode(a).usingGaiaIndex(F).usingLocale(R).usingStyle(u).usingDefaultActivityStatusChangeHandler().inStandaloneContext(n.standaloneContextAuthId.forGaia()).purchaseManager(d,function(z){H&&H(z)}).load(void 0,D)}catch(z){throw D&&D(z),_.$7(z),z;
}};var Cus=new _.xn("PURCHASE_MANAGER_TOKEN");var xBH=function(){var K=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return K.videos},
getContinuationsPresent:function(){return K.continuationsPresent},
setVideos:function(d){K.videos=d},
getRecommendedVideos:function(){return K.recommendedVideos},
setRecommendedVideos:function(d){K.recommendedVideos=d}}};
xBH.prototype.addVideos=function(K){K&&(this.videos=K.filter(function(d){return!!_.c85(d)}).map(function(d){var f=_.c85(d);
a:{var H;if(d.playlistVideoRenderer&&((H=d.playlistVideoRenderer)==null?0:H.voteSortTiebreaker))var D=d.playlistVideoRenderer.voteSortTiebreaker;else{if(_.P(d,LY)){var S;if(H=(D=_.P(d,LY))==null?void 0:(S=D.playlistItemData)==null?void 0:S.voteSortTiebreaker){D=H;break a}}D=""}}return{itemId:f,videoId:_.I1N(d),voteCount:_.UwS(d),voteSortTiebreaker:D}}),this.continuationsPresent=!!_.P(K[K.length-1],_.k6))};
var LmB=function(K,d){return K.videos.findIndex(function(f){return f.itemId===d})},Buv=function(K,d){return K.recommendedVideos.findIndex(function(f){return f.itemId===d})},JnN=function(K){K={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:K}}}}};_.eq().resolve(_.pQ).resolveCommand(K)};var sV4=function(){xBH.apply(this,arguments)};
_.O(sV4,xBH);
var rx8=function(K,d,f,H){if(!K.parentElem)throw Error("oi");var D=LmB(K,d);D===-1&&(D=Buv(K,d),D=D!==-1?D+K.videos.length:-1);if(D===-1)throw Error("pi");var S=D>=K.videos.length?K.recommendedVideos[D-K.videos.length]:K.videos[D];S.voteCount=f;S.voteSortTiebreaker=Date.now().toString();D>=K.videos.length?K.recommendedVideos.splice(D-K.videos.length,1):K.videos.splice(D,1);var n=K.videos;for(var u=0,a=n.length-1;u<=a;){var R=Math.floor((u+a)/2);if(n[R].voteCount<S.voteCount)a=R-1;else if(n[R].voteCount>S.voteCount)u=
R+1;else{a:{var F=S.voteSortTiebreaker;var z=n[R].voteSortTiebreaker;if(F.length!==z.length)F=F.length>z.length;else{for(var v=0;v<F.length;v++){var g=F.charCodeAt(v),N=z.charCodeAt(v);if(g>N){F=!0;break a}if(g<N)break}F=!1}}F?a=R-1:u=R+1}}n=u;if(n===-1)throw Error("qi");K.videos.splice(n,0,S);D!==n&&kr4(K,D,n,d,f,H)},kr4=function(K,d,f,H,D,S){var n,u=(n=K.parentElem)==null?void 0:n.children,a=Math.min(d,f),R=Math.max(d,f);
if(u)for(n=a;n<=R;n++)u[n].style.viewTransitionName="item-"+String(n);document.startViewTransition(function(){if(K.parentElem){var F=K.parentElem.children;if(!(!F||d<0||d>=F.length||f<0||f>=F.length)){var z=F[d];if(z){z.remove();K.showRefreshPill=f>=K.videos.length-1&&K.continuationsPresent;if(!K.showRefreshPill){F=F[f]||null;var v;(v=K.parentElem)==null||v.insertBefore(z,F)}_.Zp(K.parentElem,"yt-update-video-data-voting-animation",{toIdx:f,itemId:H,newVoteCount:D,voteStatus:S,hideItem:K.showRefreshPill})}}}}).finished.then(function(){if(u)for(var F=
a;F<=R;F++)u[F].style.viewTransitionName="";
if(K.showRefreshPill)JnN(_.iB("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var z;if(z=F=(z=K.parentElem)==null?void 0:z.children[f])z=F.getBoundingClientRect(),F=z.bottom,z=!(z.top>=0&&F<=K.clientHeight);z&&(z=_.cG(d>f?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(d-f)),JnN(z))}})};var e$9=function(K,d){var f=this;K?this.innertubeTransportServicePromise=Promise.resolve(K):d&&(this.innertubeTransportServicePromise=d(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Wo(3E3,function(H){return w72(f,H)},0);
this.validateMiniAppVideoIdRateLimiter=new Wo(3E3,function(H){return Zl6(f,H)},1)},m$N=function(K,d){K.JSC$15012_miniAppId=d;
K.reportMiniAppValueRateLimiter=new Wo(3E3,function(f){return w72(K,f)},0);
K.validateMiniAppVideoIdRateLimiter=new Wo(3E3,function(f){return Zl6(K,f)},1)},Wzk=function(K,d){var f;
return _.c(function(H){if(H.nextAddress==1)return _.I(H,K.reportMiniAppValueRateLimiter.call(d),2);f=H.yieldResult;return H.return([f,d])})},w72=function(K,d){var f,H,D,S,n,u,a;
return _.c(function(R){switch(R.nextAddress){case 1:return _.I(R,K.innertubeTransportServicePromise,2);case 2:return f=R.yieldResult,H=_.CF(u8k),D=Date.now(),S={externalPostId:K.JSC$15012_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(D/1E3),nanos:Math.round(D%1E3*1E6)},intValue:""+d}},_.HF(R,3),_.I(R,_.Np(f,S,H),5);case 5:n=R.yieldResult;_.Ts(R,4);break;case 3:throw u=_.n7(R),u;case 4:if(n){if("error"in n&&n.error)throw n.error;if(n.errorMetadata)throw Error("ri`"+
n.errorMetadata.status);if(a=n.userStatResult)return R.return(a);throw Error("si");}throw Error("ti");}})},Agf=function(K){var d,f,H,D,S;
_.c(function(n){switch(n.nextAddress){case 1:return _.I(n,K.innertubeTransportServicePromise,2);case 2:return d=n.yieldResult,f=_.CF(u8k),H={externalPostId:K.JSC$15012_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.HF(n,3),_.I(n,_.Np(d,H,f),5);case 5:D=n.yieldResult;_.Ts(n,4);break;case 3:throw S=_.n7(n),S;case 4:if(D==null)throw Error("ti");if("error"in D&&D.error)throw D.error;if(D.errorMetadata)throw Error("ri`"+D.errorMetadata.status);_.iQ(n)}})};
e$9.prototype.flush=function(){var K=this;return _.c(function(d){return d.nextAddress==1?_.I(d,K.reportMiniAppValueRateLimiter.flush(),2):_.I(d,K.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var G68=function(K,d){return _.c(function(f){return f.nextAddress==1?_.I(f,K.validateMiniAppVideoIdRateLimiter.call(d),2):f.return(f.yieldResult)})},Zl6=function(K,d){var f,H,D,S,n,u;
return _.c(function(a){switch(a.nextAddress){case 1:return _.I(a,K.innertubeTransportServicePromise,2);case 2:return f=a.yieldResult,H=_.CF(HIN),D={videoId:d},_.HF(a,3),_.I(a,_.Np(f,D,H),5);case 5:S=a.yieldResult;_.Ts(a,4);break;case 3:throw n=_.n7(a),n;case 4:if(S){if("error"in S&&S.error)throw S.error;if(S.errorMetadata)throw Error("ri`"+S.errorMetadata.status);if(u=S.playabilityStatus)return a.return(u.status);throw Error("ui");}throw Error("ti");}})};
e$9[CG]=[_.Zd(_.Nn),_.Zd(WrH)];var p78=function(){this.clientData=new Map};
p78.prototype.getData=function(K){return this.clientData.get(K)};var KF2=function(K){this.store=K};
KF2.prototype.handleResponse=function(K){(K=_.P(K.frameworkUpdates,Tz))&&_.iA(K,this.store)};
KF2[CG]=[_.tj];var dys=new _.xn("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var fCs={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,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_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],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 HR2=new _.xn("ICON_SET_TOKEN"),Dy6=new _.xn("ICON_URL_PROVIDER_TOKEN"),VTf=new _.xn("PREFETCH_ICONS_TOKEN"),SwH=new _.xn("ICON_MAP_FN_TOKEN");var ZQ={},yk2=(ZQ.ACCESS_TIME="clock",ZQ.ACCOUNT_BOX="person_account",ZQ.ACCOUNT_BOX_CAIRO="person_account_cairo",ZQ.ACCOUNT_CIRCLE="person_circle",ZQ.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",ZQ.ACCOUNT_LINKED="account_link_success",ZQ.ACCOUNT_UNLINKED="account_link",ZQ.ADD_FRIEND="people",ZQ.ADD_MODERATOR="shield_add",ZQ.ADD_TO_LIBRARY=Jb("add"),ZQ.ADD_TO_PLAYLIST="add",ZQ.ADD_TO_QUEUE_TAIL="list_queue",ZQ.ADD_TO_REMOTE_QUEUE="list_music",ZQ.ADD_TO_WATCH_LATER="clock",ZQ.ADD_VIDEO_LINK="film_strip_add",
ZQ.ALERT_WARN_RED="alert_triangle",ZQ.ARROW_BACK="arrow_left",ZQ.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",ZQ.ARROW_DROP_DOWN="chevron_down",ZQ.ARROW_DROP_UP="chevron_up",ZQ.ARROW_FORWARD="arrow_right",ZQ.AUDIOTRACK="audio",ZQ.AUTO_AWESOME="sparkle",ZQ.AVATAR_ANONYMOUS="person_circle",ZQ.AVATAR_LOGGED_OUT="person_circle",ZQ.BACK="arrow_left",ZQ.BAR_CHART="bar_graph",ZQ.BLOCK="slash_circle_left",ZQ.BLOCK_USER="slash_circle_left",ZQ.BOOKMARK_BORDER="bookmark",ZQ.BREAKING_NEWS_ALT_1="article_alert",
ZQ.BROADCAST_CAIRO="podcast_cairo",ZQ.BUG_REPORT="bug",ZQ.CAMERA_ALT="camera",ZQ.CAMPAIGN="megaphone",ZQ.CANCEL="x_circle",ZQ.CAPTIONS="closed_caption",ZQ.CAST_OUTLINE="chromecast",ZQ.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",ZQ.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",ZQ.CHAT="message_bubble_left",ZQ.CHAT_BUBBLE="message_bubble_empty",ZQ.CHAT_SPARK="spark_message_bubble_left",ZQ.CHECK_BOX_OUTLINE_BLANK="box_empty",ZQ.CHECK_CIRCLE_OUTLINE="check_circle",ZQ.CHECK_CIRCLE_THICK="check_circle",ZQ.CLARIFY=
"article_clarify",ZQ.CLOSED_CAPTION_SELECTED="closed_caption",ZQ.CLOSE="x_mark",ZQ.CLOUD_UPLOAD="cloud_arrow_up",ZQ.COLLAPSE="chevron_up",ZQ.COLLAPSE_CAIRO="chevron_up_cairo",ZQ.COLLECTION="layers",ZQ.COLOR_LENS="palette",ZQ.COMMENT="message_bubble_right",ZQ.CONSENT_SHIELD="person_shield",ZQ.CONTENT_CUT="scissors",ZQ.CONTENT_CUT_CAIRO="scissors_cairo",ZQ.COURSE=_.M("web_enable_course_icon_update")?"creator_academy":"lightbulb",ZQ.COURSE_CAIRO=_.M("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",ZQ.CREATION_LIVE="radar_live",ZQ.CREATION_POST="box_pencil",ZQ.CREATION_UPLOAD="my_videos",ZQ.CREATION_UPLOAD_RED="upload",ZQ.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",ZQ.CREATOR_STUDIO="youtube_studio",ZQ.DASHBOARD="grid_asymmetrical",ZQ.DELETE="trash_can",ZQ.DELETE_SWEEP="trash_can",ZQ.DESKTOP="laptop",ZQ.DISLIKE="thumb_down",ZQ.DISLIKE_SELECTED="thumb_down",ZQ.DISMISSAL="x_mark",ZQ.DISMISS_QUEUE="list_remove",ZQ.DONE_ALL="check_double",ZQ.DOWN_ARROW="arrow_down",ZQ.DO_NOT_DISTURB=
"slash_circle_left",ZQ.DRAFT="paper_corner_folded",ZQ.DRAG_HANDLE="bars_2",ZQ.EDIT="pencil",ZQ.EMOJI="face_very_happy",ZQ.EMOJI_FLAGS="flag",ZQ.EMOJI_OBJECTS="lightbulb",ZQ.EMOJI_PEOPLE="face_very_happy",ZQ.EMOJI_RECENT="clock",ZQ.EMPTY_HEART="heart",ZQ.EMPTY_LIKE="thumb_up",ZQ.ERROR_BLACK="alert_circle",ZQ.ERROR_OUTLINE="alert_circle",ZQ.EXIT_APP="arrow_in",ZQ.EXIT_TO_APP="arrow_in",ZQ.EXPAND="chevron_down",ZQ.EXPAND_ALL="chevron_expand",ZQ.EXPAND_CAIRO="chevron_down_cairo",ZQ.EXPAND_LESS="chevron_up",
ZQ.EXPAND_MORE="chevron_down",ZQ.EXPLORE="compass",ZQ.EXPLORE_DESTINATION="compass",ZQ.EXTERNAL_LINK="open_new",ZQ.FAB_UPLOAD="upload",ZQ.FACE_HAPPY_OUTLINE="face_happy",ZQ.FACT_CHECK="article_check",ZQ.FASHION_LOGO="fashion",ZQ.FASHION_LOGO_CAIRO="fashion_cairo",ZQ.FAVORITE="heart",ZQ.FEEDBACK="message_bubble_alert",ZQ.FEEDBACK_CAIRO="message_bubble_alert_cairo",ZQ.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",ZQ.FILL_ARROW_SOLID_UP_16="arrow_solid_up",ZQ.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
ZQ.FILTER="menu_filter",ZQ.FIRST_PAGE="chevron_first",ZQ.FLAG="flag",ZQ.FULL_HEART="heart",ZQ.GAME_CONSOLE_DPAD="game_console_dpad",ZQ.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",ZQ.GAMING_LOGO="gaming",ZQ.GAMING_LOGO_CAIRO="gaming_cairo",ZQ.GO_TO_PAGE="arrow_right",ZQ.GROUPS="people_group",ZQ.HAPPY="face_happy",ZQ.HEALTH_AND_SAFETY="shield_plus",ZQ.HELP="question_circle",ZQ.HELP_CAIRO="question_circle_cairo",ZQ.HELP_OUTLINE="question_circle",ZQ.HIDE="slash_circle_left",ZQ.IMAGE="image",
ZQ.INFINITY_ICON="infinity",ZQ.INFO="info_circle",ZQ.INFO_OUTLINE="info_circle",ZQ.INSERT_CHART_OUTLINED="bar_graph_box_vertical",ZQ.INSERT_PHOTO="image",ZQ.KEEP="pin",ZQ.KEEP_OFF="pin_off",ZQ.KEYBOARD="keyboard",ZQ.KEYBOARD_ARROW_DOWN="chevron_down",ZQ.KEYBOARD_ARROW_UP="chevron_up",ZQ.KIDS_BLOCK="slash_circle_left",ZQ.LANGUAGE="globe",ZQ.LAST_PAGE="chevron_last",ZQ.LAUNCH="open_new",ZQ.LEARNING="lightbulb",ZQ.LEARNING_CAIRO="lightbulb_cairo",ZQ.LIBRARY_ADD=Jb("library_add"),ZQ.LIBRARY_OUTLINE="library",
ZQ.LIBRARY_REMOVE=Jb(),ZQ.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",ZQ.LIKES_PLAYLIST="thumb_up",ZQ.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",ZQ.LIKE="thumb_up",ZQ.LIKE_SELECTED="thumb_up",ZQ.LIVE="radar_live",ZQ.LIVE_CAIRO="radar_live_cairo",ZQ.LIVE_UNLISTED="link",ZQ.LOCATION_ON="location_point",ZQ.LOCATION_PIN="location_point",ZQ.LOOP="arrow_repeat",ZQ.LOOP_ACTIVE="arrow_repeat",ZQ.LOOP_ONE="arrow_repeat_1",ZQ.LOOP_ONE_ACTIVE="arrow_repeat_1",ZQ.MEH="face_meh",ZQ.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
ZQ.MESSAGE="message_bubble_left",ZQ.MICROPHONE_ON="mic",ZQ.MIX="youtube_mix",ZQ.MONETIZATION_ON="dollar_sign_circle",ZQ.MONEY_FILL="dollar_sign_container",ZQ.MONEY_FILL_JPY="yen_sign_container",ZQ.MONEY_HEART="dollar_sign_heart",ZQ.MORE_HORIZ="overflow_horizontal",ZQ.MORE_VERT="overflow_vertical",ZQ.MUSIC="audio",ZQ.MUSIC_CAIRO="audio_cairo",ZQ.MUSIC_NOTE_SYMBOL="music",ZQ.MUSIC_SHUFFLE="arrow_shuffle",ZQ.MY_CHANNEL="person_circle",ZQ.MY_LOCATION="location_point",ZQ.NEWS_STORY="news",ZQ.NEXT="chevron_right",
ZQ.NOTIFICATIONS="bell",ZQ.NOTIFICATIONS_ACTIVE="bell_on",ZQ.NOTIFICATIONS_CAIRO="bell_cairo",ZQ.NOTIFICATIONS_DONE_CHECKMARK="check",ZQ.NOTIFICATIONS_INBOX="bell",ZQ.NOTIFICATIONS_NONE="bell",ZQ.NOTIFICATIONS_OFF="bell_off",ZQ.NOT_INTERESTED="slash_circle_left",ZQ.OFFICIAL_ARTIST_BADGE="audio",ZQ.OFFLINE_CLOUD="cloud_off",ZQ.OFFLINE_DOWNLOAD="download",ZQ.OFFLINE_DOWNLOAD_CAIRO="download_cairo",ZQ.OFFLINE_PAUSE="pause",ZQ.OPEN_IN_NEW="open_new",ZQ.OUTLINE_ADJUST="adjust",ZQ.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",ZQ.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",ZQ.OUTLINE_BAG="bag",ZQ.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",ZQ.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",ZQ.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",ZQ.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",ZQ.PAID="dollar_sign",ZQ.PAUSE_OUTLINED="pause",ZQ.PAYMENT="credit_card",ZQ.PERSON_RADAR_FILLED="person_radar",ZQ.PHONE_DOWNLOAD="mobile_download",ZQ.PLAYABLES_LOGO="tic_tac_toe",ZQ.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
ZQ.PLAYLISTS="list_play_arrow",ZQ.PLAYLISTS_CAIRO="list_play_arrow_cairo",ZQ.PLAYLIST_ADD=Jb("list_add"),ZQ.PLAYLIST_ADD_CHECK=Jb("list_check"),ZQ.PLAYLIST_PLAY="list_play_arrow",ZQ.PLAY_ALL="play_arrow",ZQ.PLAY_CIRCLE="play_arrow_circle",ZQ.PLAY_OUTLINED="play_arrow_circle",ZQ.PRIVACY_INFO="shield",ZQ.PRIVACY_PRIVATE="lock",ZQ.PRIVACY_PUBLIC="earth",ZQ.PRIVACY_UNLISTED="link",ZQ.PROMOTE="megaphone",ZQ.PURCHASES="price_tag",ZQ.PURCHASE_SUPER_CHAT="super_chat",ZQ.PURCHASE_SUPER_STICKER="super_sticker",
ZQ.QUESTION_ANSWER="message_bubble_question",ZQ.QUEUE_PLAY_LAST="list_queue_last",ZQ.QUEUE_PLAY_NEXT="list_play_arrow",ZQ.REMIX_FILLED="youtube_shorts_remix",ZQ.REMOVE="bar_circle",ZQ.REMOVE_CIRCLE="bar_circle",ZQ.REMOVE_CIRCLE_OUTLINE="bar_circle",ZQ.REMOVE_DONE="check_double_off",ZQ.REMOVE_FROM_HISTORY="bar_circle",ZQ.REMOVE_FROM_PLAYLIST="bar_circle",ZQ.REMOVE_MODERATOR="shield_off",ZQ.REPLAY="arrow_circle",ZQ.REPLAY_10="skip_back_10",ZQ.REPORT_PROBLEM="alert_triangle",ZQ.SAD="face_sad",ZQ.SAVE_PLAYLIST=
Jb("library_add"),ZQ.SCHEDULE="clock",ZQ.SCHOOL="creator_academy",ZQ.SCREEN_FULLSCREEN="screen_full",ZQ.SEARCH_HISTORY="arrow_time",ZQ.SELL="price_tag",ZQ.SETTINGS="gear",ZQ.SETTINGS_CAIRO="gear_cairo",ZQ.SETTINGS_LIGHT="gear",ZQ.SETTINGS_MATERIAL="gear",ZQ.SHARE_ARROW="share",ZQ.SHIELD_WITH_AVATAR="person_shield",ZQ.SHOPPING_BAG="bag",ZQ.SHOPPING_BAG_CAIRO="bag_cairo",ZQ.SHOPPING_CART="cart",ZQ.SHORTS_COMMENT="youtube_shorts_message_bubble_right",ZQ.SHORTS_DISLIKE="youtube_shorts_thumb_down",ZQ.SHORTS_LIKE=
"youtube_shorts_thumb_up",ZQ.SHORTS_SHARE="youtube_shorts_share",ZQ.SHUFFLE="arrow_shuffle",ZQ.SLOW_MODE_OFF="message_bubble_left",ZQ.SOCIAL="people",ZQ.SORT="menu_sort",ZQ.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",ZQ.SPEED_1X="1x",ZQ.SPEED_1_POINT_2X="1_point_2x",ZQ.SPEED_1_POINT_5X="1_point_5x",ZQ.SPEED_1_POINT_8X="1_point_8x",ZQ.SPEED_2X="2x",ZQ.SPEED_POINT_2X="point_2x",ZQ.SPEED_POINT_8X="point_8x",ZQ.SPONSORSHIP_STAR=_.M("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",ZQ.STAFF_PICK=
"spotlight",ZQ.START_DVR="add",ZQ.STAR_BORDER="star",ZQ.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",ZQ.STICKER_EMOTICON="face_happy",ZQ.STOP_DVR="stop",ZQ.SUBSCRIBE="youtube_logo_icon",ZQ.SUBSCRIBE_PLUS="add_cairo",ZQ.SUBSCRIPTION_MANAGER="gear",ZQ.SUPERVISOR_ACCOUNT="people",ZQ.SUPER_CHAT_FOR_GOOD="hands_heart",ZQ.SWAP_HORIZ="arrow_swap_horizontal",ZQ.SWITCH_ACCOUNTS="person_account",ZQ.TAB_ACCOUNT="person",ZQ.TAB_ACTIVITY="bell",ZQ.TAB_BOOKMARK="bookmark",ZQ.TAB_EXPLORE="compass",ZQ.TAB_HOME=
"home",ZQ.TAB_HOME_CAIRO="home_cairo",ZQ.TAB_INBOX="mail",ZQ.TAB_LIKED="thumb_up",ZQ.TAB_MUSIC_PREMIUM="youtube_music",ZQ.TAB_SHORTS="youtube_shorts",ZQ.TAB_SHORTS_CAIRO="youtube_shorts_cairo",ZQ.TAB_SUBSCRIPTIONS="subscriptions",ZQ.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",ZQ.TAB_TRENDING="fire",ZQ.TIMER="stopwatch",ZQ.TRAILER="youtube_originals",ZQ.TRENDING="fire",ZQ.TRENDING_CAIRO="fire_cairo",ZQ.TRENDING_UP="rating_up",ZQ.TROPHY="trophy",ZQ.TROPHY_CELEBRATIONS="fireworks",ZQ.TUNE="adjust",
ZQ.UNBLOCK_USER="bar_circle",ZQ.UNLIMITED="youtube_logo_icon",ZQ.UNPLUGGED_LIVE_GUIDE="radar_live",ZQ.UNPLUGGED_SPORTS="eye_off",ZQ.UPLOADS="library",ZQ.UP_ARROW="arrow_up",ZQ.VERTICAL_ALIGN_BOTTOM="download",ZQ.VERY_HAPPY="face_very_happy",ZQ.VERY_SAD="face_very_sad",ZQ.VIDEOGAME_ASSET="gaming",ZQ.VIDEOS="play_arrow_circle",ZQ.VIDEO_CALL="video_camera_add",ZQ.VIDEO_LIBRARY_WHITE="library",ZQ.VIDEO_YOUTUBE="youtube_logo_icon",ZQ.VIEW_LIST="list_view",ZQ.VIEW_LIST_CAIRO="list_view_cairo",ZQ.VISIBILITY=
"eye",ZQ.VISIBILITY_OFF="eye_off",ZQ.VOLUME_MUTE="volume_off",ZQ.VOLUME_UP="volume_on",ZQ.WALLPAPER="image",ZQ.WARNING="alert_triangle",ZQ.WATCH_HISTORY="arrow_time",ZQ.WATCH_HISTORY_CAIRO="arrow_time_cairo",ZQ.WATCH_LATER="clock",ZQ.WATCH_LATER_CAIRO="clock_cairo",ZQ.WATCH_RELATED_MIX="youtube_mix",ZQ.WHAT_TO_WATCH="home",ZQ.YOUTUBE_MUSIC_MONOCHROME="youtube_music",ZQ.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",ZQ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",ZQ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",ZQ.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",ZQ.YT_OUTLINE_MUSIC_24="music",ZQ);var eG={},nv8=(eG.ACCESS_TIME="clock",eG.ACCOUNT_BOX="person_square",eG.ACCOUNT_BOX_CAIRO="person_square",eG.ACCOUNT_CIRCLE="person_circle",eG.ACCOUNT_CIRCLE_CAIRO="person_circle",eG.ACCOUNT_UNLINKED="account_link",eG.ADD_CIRCLE="add_circle",eG.ADD_FRIEND="person_child",eG.ADD_TO_LIBRARY="bookmark",eG.ADD_TO_PLAYLIST="add",eG.ADD_TO_QUEUE_TAIL="queue",eG.ADD_TO_REMOTE_QUEUE="playlist_audio",eG.ADD_TO_WATCH_LATER="clock",eG.ADD_VIDEO_LINK="film_strip_add",eG.ADMIN_PANEL_SETTINGS="gear",eG.ALERT_WARN_RED=
"alert_triangle",eG.ALIGN_LEFT="text_align_left",eG.ARROWS_ALERT="arrow_split_alert",eG.ARROW_BACK="arrow_left",eG.ARROW_CIRCLE="arrow_counterclockwise",eG.ARROW_CIRCLE_PLAY="replay",eG.ARROW_CIRCLE_RIGHT="arrow_clockwise",eG.ARROW_DIAGONAL="arrow_up_left",eG.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",eG.ARROW_DROP_DOWN="triangle_down",eG.ARROW_DROP_UP="triangle_up",eG.ARROW_FORWARD="arrow_right",eG.ARROW_PAUSE="pause_history",eG.ARROW_UNDO="undo",eG.ARTICLE="text_page",eG.ARTICLE_ALERT="text_page_alert",
eG.ARTICLE_CHECK="text_page_check",eG.ARTICLE_CLARIFY="text_page_info",eG.AUDIOTRACK="audio",eG.AUDIO_BADGE="audio_badge",eG.AUDIO_SURROUND="surround_sound",eG.AVATAR_ANONYMOUS="person_circle",eG.AVATAR_LOGGED_OUT="person_circle",eG.BACK="arrow_left",eG.BAR_CHART="chart_bar",eG.BAR_CIRCLE="minus_circle",eG.BAR_HORIZONTAL="minus",eG.BLOCK="circle_slash",eG.BLOCK_USER="circle_slash",eG.BOOKMARK_BORDER="bookmark",eG.BOX_OPEN_CHECK="quiz",eG.BOX_PENCIL="square_pencil",eG.BREAKING_NEWS_ALT_1="text_page_alert",
eG.BROADCAST="podcast",eG.BROADCAST_CAIRO="podcast",eG.BUG_REPORT="bug",eG.CAMERA_ALT="camera",eG.CAMPAIGN="megaphone",eG.CANCEL="x_circle",eG.CAPTIONS="closed_captions",eG.CAST_ICON="chromecast",eG.CAST_OUTLINE="chromecast",eG.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",eG.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",eG.CHAT="text_bubble",eG.CHAT_BUBBLE="bubble",eG.CHECK_BOX="check_square",eG.CHECK_BOX_OUTLINE_BLANK="square",eG.CHECK_CIRCLE_FILLED="check_circle",eG.CHECK_CIRCLE_OUTLINE="check_circle",
eG.CHECK_CIRCLE_THICK="check_circle",eG.CHECK_DOUBLE="check_done",eG.CHECK_DOUBLE_OFF="check_done_slash",eG.CHEVRON_LEFT="chevron_left",eG.CHEVRON_RIGHT="chevron_right",eG.CHEVRON_RIGHT_CAIRO="chevron_right",eG.CIRCLES_OVERLAP="account_link",eG.CLAPPERBOARD_CAIRO="clapperboard",eG.CLARIFY="text_page_info",eG.CLOCK_ARROWS="clock_split",eG.CLOCK_ARROWS_ALERT="clock_split_alert",eG.CLOSED_CAPTION="closed_captions",eG.CLOSED_CAPTION_SELECTED="closed_captions",eG.CLOSE="x",eG.CLOUD_UPLOAD="cloud_arrow_up",
eG.COLLAPSE="chevron_up",eG.COLLAPSE_CAIRO="chevron_up",eG.COLLECTION="square3d_stack",eG.COLOR_LENS="paint_palette",eG.COMMENT="text_bubble",eG.CONSENT_SHIELD="person_shield",eG.CONTENT_CUT="scissors",eG.CONTENT_CUT_CAIRO="scissors",eG.COURSE="graduation_cap",eG.COURSE_CAIRO="graduation_cap",eG.CREATION_LIVE="live",eG.CREATION_POST="square_pencil",eG.CREATION_UPLOAD="video",eG.CREATION_UPLOAD_RED="upload",eG.CREATOR_ACADEMY="graduation_cap",eG.CREATOR_STUDIO="youtube_studio",eG.DARK_THEME="theme",
eG.DELETE="trash_can",eG.DELETE_SWEEP="trash_can",eG.DESKTOP="laptop",eG.DISLIKE="thumb_down",eG.DISLIKE_SELECTED="thumb_down",eG.DISMISSAL="x",eG.DISMISS_QUEUE="playlist_x",eG.DOGFOOD="pawprint",eG.DOLLAR_SIGN="dollar_sign_circle",eG.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",eG.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",eG.DOWN_ARROW="arrow_down",eG.DO_NOT_DISTURB="circle_slash",eG.DRAFT="document",eG.EARTH="globe",eG.EDIT="pencil",eG.EMOJI="face_very_happy",eG.EMOJI_FLAGS="flag",eG.EMOJI_OBJECTS=
"lightbulb",eG.EMOJI_PEOPLE="face_very_happy",eG.EMOJI_RECENT="clock",eG.EMPTY_HEART="heart",eG.EMPTY_LIKE="thumb_up",eG.ERROR_BLACK="alert_circle",eG.ERROR_OUTLINE="alert_circle",eG.ERROR_WHITE="alert_circle",eG.EXIT_APP="arrow_in",eG.EXIT_TO_APP="arrow_in",eG.EXPAND="chevron_down",eG.EXPAND_ALL="chevron_expand",eG.EXPAND_CAIRO="chevron_down",eG.EXPAND_LESS="chevron_up",eG.EXPAND_MORE="chevron_down",eG.EXPLORE="compass",eG.EXPLORE_DESTINATION="compass",eG.EXTERNAL_LINK="arrow_up_right",eG.EYE_OFF=
"eye_slash",eG.FAB_UPLOAD="upload",eG.FACE_HAPPY_OUTLINE="face_happy",eG.FACE_MEH="face_neutral",eG.FACT_CHECK="text_page_check",eG.FASHION_LOGO="fashion",eG.FASHION_LOGO_CAIRO="fashion",eG.FAVORITE="thumb_up",eG.FEEDBACK="alert_bubble",eG.FEEDBACK_CAIRO="alert_bubble",eG.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",eG.FILL_ARROW_SOLID_UP_16="arrow_solid_up",eG.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",eG.FLAG_CAIRO="flag",eG.FLASH_OFF="flash_slash",eG.FLASH_ON="flash",eG.FULL_HEART="heart",eG.GAMING_LOGO=
"gaming",eG.GAMING_LOGO_CAIRO="gaming",eG.GO_TO_PAGE="arrow_right",eG.GROUPS="person3",eG.HAND_SWIPE_LEFT="gesture_swipe_left",eG.HAND_SWIPE_RIGHT="gesture_swipe_right",eG.HAPPY="face_happy",eG.HEALTH_AND_SAFETY="shield_health",eG.HEART_BOX="heart_cube",eG.HELP="help_circle",eG.HELP_CAIRO="help_circle",eG.HELP_OUTLINE="help_circle",eG.HIDE="circle_slash",eG.INCOGNITO_CAIRO="incognito",eG.INFINITY_ICON="infinity",eG.INFO="info_circle",eG.INFO_OUTLINE="info_circle",eG.INSERT_CHART_OUTLINED="chart_bar_square",
eG.INSERT_PHOTO="image",eG.KEEP="pin",eG.KEEP_OFF="pin_slash",eG.KEYBOARD="keyboard",eG.KEYBOARD_ARROW_DOWN="chevron_down",eG.KEYBOARD_ARROW_UP="chevron_up",eG.KIDS_BLOCK="circle_slash",eG.LANGUAGE="globe",eG.LAUNCH="arrow_up_right",eG.LEARNING="lightbulb",eG.LEARNING_CAIRO="lightbulb",eG.LIBRARY_ADD="bookmark",eG.LIBRARY_IMAGE="image_stack",eG.LIBRARY_MUSIC="audio_square_stack",eG.LIBRARY_OUTLINE="play_square_stack",eG.LIBRARY_REMOVE="bookmark",eG.LIBRARY_SAVED="check_square_stack",eG.LIKES_PLAYLIST=
"thumb_up",eG.LIKES_PLAYLIST_CAIRO="thumb_up",eG.LIKE="thumb_up",eG.LIKE_SELECTED="thumb_up",eG.LIST_QUEUE="queue",eG.LIVE_CAIRO="live",eG.LIVE_UNLISTED="link",eG.LOCATION_ON="location_pin",eG.LOCATION_PIN="location_pin",eG.LOCATION_POINT="location_pin",eG.LOOP="repeat",eG.LOOP_ACTIVE="repeat",eG.LOOP_ONE="repeat1",eG.LOOP_ONE_ACTIVE="repeat1",eG.MEET="google_meet",eG.MEH="face_neutral",eG.MEMBERSHIPS="memberships",eG.MEMBERS_ONLY_MODE_OFF="text_bubble",eG.MENU_FILTER="filter",eG.MESSAGE="text_bubble",
eG.MESSAGE_BUBBLE_GEAR="bubble_gear",eG.MESSAGE_BUBBLE_LEFT="text_bubble",eG.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",eG.MESSAGE_BUBBLE_OVERLAP="bubble_stack",eG.MESSAGE_BUBBLE_QUESTION="help_bubble",eG.MICROPHONE_ON="mic",eG.MONETIZATION_ON="dollar_sign_circle",eG.MONEY_FILL="dollar_sign_rectangle",eG.MONEY_FILL_JPY="yen_sign_rectangle",eG.MONEY_HAND="dollar_sign_circle_hand",eG.MONEY_HEART="dollar_sign_heart",eG.MOON_Z="sleep_timer",eG.MORE_HORIZ="overflow_horizontal",eG.MORE_VERT="overflow_vertical",
eG.MUSIC="audio",eG.MUSIC_CAIRO="audio",eG.MUSIC_EXPLICIT_BADGE="explicit",eG.MUSIC_NEW_RELEASE="audio_badge",eG.MUSIC_NOTE_SYMBOL="audio",eG.MUSIC_SCISSORS="audio_scissors",eG.MUSIC_SHUFFLE="shuffle",eG.MY_CHANNEL="person_circle",eG.MY_LOCATION="location_pin",eG.MY_VIDEOS="video",eG.MY_VIDEOS_CAIRO="video",eG.NEWS_CAIRO="news",eG.NEWS_STORY="news",eG.NEXT="chevron_right",eG.NOTE_ADD="bubble_pencil",eG.NOTIFICATIONS="bell",eG.NOTIFICATIONS_ACTIVE="bell_waves",eG.NOTIFICATIONS_CAIRO="bell",eG.NOTIFICATIONS_DONE_CHECKMARK=
"check",eG.NOTIFICATIONS_INBOX="bell",eG.NOTIFICATIONS_NONE="bell",eG.NOTIFICATIONS_OFF="bell_slash",eG.NOT_INTERESTED="circle_slash",eG.OFFICIAL_ARTIST_BADGE="audio",eG.OFFLINE_CLOUD="cloud_slash",eG.OFFLINE_DOWNLOAD="download",eG.OFFLINE_DOWNLOAD_CAIRO="download",eG.OFFLINE_PAUSE="pause",eG.OPEN_IN_NEW="arrow_up_right",eG.OUTLINE_ADJUST="adjust",eG.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",eG.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",eG.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",eG.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",eG.OUTLINE_BAG="bag",eG.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",eG.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",eG.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",eG.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",eG.PAID="dollar_sign_circle",eG.PAUSE_OUTLINED="pause",eG.PAYMENT="credit_card",eG.PEOPLE="person_child",eG.PEOPLE_2="person2_rectangle",eG.PEOPLE_GROUP="person3",eG.PEOPLE_NOTE="bubble_asterisk",eG.PERSON_2="person2",eG.PERSON_ACCOUNT="person_square_stack",eG.PERSON_MINUS=
"person_x",eG.PERSON_MUSIC="person_audio",eG.PERSON_RADAR="person_waves",eG.PERSON_RADAR_FILLED="person_waves",eG.PERSON_SETTING="person_gear",eG.PHONE="phone",eG.PHONE_DOWNLOAD="mobile_arrow_down",eG.PICTURE_IN_PICTURE="picture_in_picture",eG.PLAYABLES_LOGO="playables",eG.PLAYABLES_LOGO_CAIRO="playables",eG.PLAYLISTS="playlist",eG.PLAYLISTS_CAIRO="playlist",eG.PLAYLIST_ADD_CHECK="bookmark",eG.PLAY_ALL="play",eG.PLAY_ARROW="play",eG.PLAY_ARROW_CIRCLE="play_circle",eG.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
eG.PLAY_CIRCLE="play_circle",eG.PLAY_OUTLINED="play_circle",eG.PODCAST_ADD="podcast_add",eG.PODCAST_CHECK="podcast_check",eG.PRIVACY_INFO="shield_x",eG.PRIVACY_PRIVATE="lock",eG.PRIVACY_PUBLIC="globe",eG.PRIVACY_UNLISTED="link",eG.PROMOTE="megaphone",eG.PURCHASES="price_tag",eG.PURCHASE_SUPER_CHAT="super_chat",eG.PURCHASE_SUPER_STICKER="super_sticker",eG.QUESTION_ANSWER="help_bubble",eG.QUESTION_CIRCLE="help_circle",eG.QUEUE_PLAY_LAST="queue_last",eG.QUEUE_PLAY_NEXT="playlist",eG.QUOTATION_MARK="quote",
eG.RADAR_LIVE="live",eG.REMOVE="minus_circle",eG.REMOVE_CIRCLE="minus_circle",eG.REMOVE_CIRCLE_OUTLINE="minus_circle",eG.REMOVE_FROM_HISTORY="minus_circle",eG.REMOVE_FROM_PLAYLIST="minus_circle",eG.REPLAY="arrow_counterclockwise",eG.REPLAY_10="skip10_back",eG.REPLAY_ARROW="replay",eG.REPORT_PROBLEM="alert_triangle",eG.RSS_OFF="rss_slash",eG.SAD="face_sad",eG.SAVE_PLAYLIST="bookmark",eG.SCHEDULE="clock",eG.SCHOOL="graduation_cap",eG.SCREEN_DEFAULT="player_default",eG.SCREEN_FULLSCREEN="player_full_enter",
eG.SCREEN_LIGHT="ambient_mode",eG.SCREEN_SWITCH="player_switch",eG.SEARCH_CAIRO="search",eG.SEARCH_HISTORY="history",eG.SELL="price_tag",eG.SETTINGS="gear",eG.SETTINGS_CAIRO="gear",eG.SETTINGS_LIGHT="gear",eG.SETTINGS_MATERIAL="gear",eG.SETTINGS_REMOTE="remote_waves",eG.SHARE="share",eG.SHARE_ARROW="share",eG.SHARE_CAIRO="share",eG.SHIELD="shield_x",eG.SHIELD_OFF="shield_slash",eG.SHIELD_WITH_AVATAR="person_shield",eG.SHOPPING_BAG="bag",eG.SHOPPING_BAG_CAIRO="bag",eG.SHOPPING_CART="cart",eG.SHORTS_COMMENT=
"text_bubble",eG.SHORTS_DISLIKE="thumb_down",eG.SHORTS_LIKE="thumb_up",eG.SHORTS_SHARE="share",eG.SKIP_FORWARD_30="skip30_forward",eG.SLASH_CIRCLE_RIGHT="circle_slash",eG.SLOW_MODE_OFF="text_bubble",eG.SOCIAL="person_child",eG.SPARKLE="sparkles",eG.SPARK_IMAGE="image_spark",eG.SPARK_RADAR="spark_waves",eG.SPARK_VIDEO="video_spark",eG.SPEAKER_GROUP="speaker_stack",eG.SPEAKER_OFF="speaker_slash",eG.SPEED_1X="n1x",eG.SPEED_1_POINT_2X="n1point2x",eG.SPEED_1_POINT_5X="n1point5x",eG.SPEED_1_POINT_8X="n1point8x",
eG.SPEED_2X="n2x",eG.SPONSORSHIP_STAR="memberships",eG.SPORTS="basketball",eG.SPOTLIGHT="spotlight",eG.STAFF_PICK="spotlight",eG.START_DVR="add",eG.STAR_BORDER="star",eG.STAR_HALF="star_half_filled",eG.STAR_SHOOTING="hype",eG.STICKER="sticker",eG.STICKER_EMOTICON="face_happy",eG.STOP_DVR="stop",eG.SUBSCRIBE="youtube",eG.SUBSCRIBE_PLUS="add",eG.SUBSCRIPTION_MANAGER="gear",eG.SUPERSTAR="super_star",eG.SUPERVISOR_ACCOUNT="person_child",eG.SWAP_HORIZ="arrow_swap_horizontal",eG.SWITCH_ACCOUNTS="person_square_stack",
eG.TAB_ACCOUNT="person",eG.TAB_ACTIVITY="bell",eG.TAB_BOOKMARK="bookmark",eG.TAB_EXPLORE="compass",eG.TAB_HOME="home",eG.TAB_HOME_CAIRO="home",eG.TAB_INBOX="mail",eG.TAB_LIKED="thumb_up",eG.TAB_MUSIC_PREMIUM="youtube_music",eG.TAB_SHORTS="shorts",eG.TAB_SHORTS_CAIRO="shorts",eG.TAB_SUBSCRIPTIONS="subscriptions",eG.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",eG.TAB_TRENDING="trending",eG.TARGET="target",eG.TARGET_ADD="target_add",eG.TEMPLATE_ADD="template_add",eG.TEXT="font",eG.TIMER="stopwatch",eG.TRENDING_CAIRO=
"trending",eG.TRENDING_UP="arrow_trend_up",eG.TROPHY_CAIRO="trophy",eG.TROPHY_CELEBRATIONS="fireworks",eG.TROPHY_STAR="star_trophy",eG.TUNE="adjust",eG.UNBLOCK_USER="minus_circle",eG.UNFAVORITE="thumb_down",eG.UNLIMITED="youtube",eG.UNPLUGGED_LIVE_GUIDE="live",eG.UNPLUGGED_SPORTS="eye_slash",eG.UPLOADS="play_square_stack",eG.UP_ARROW="arrow_up",eG.VERTICAL_ALIGN_BOTTOM="download",eG.VERY_HAPPY="face_very_happy",eG.VERY_SAD="face_very_sad",eG.VIDEOS="play_circle",eG.VIDEO_CALL="video_camera_add",eG.VIDEO_LIBRARY_WHITE=
"play_square_stack",eG.VIDEO_QUALITY_4K="n4k",eG.VIDEO_QUALITY_8K="n8k",eG.VIDEO_YOUTUBE="youtube",eG.VIEW_LIST_CAIRO="view_list",eG.VIEW_MODULE="view_column3_row2",eG.VISIBILITY="eye",eG.VISIBILITY_OFF="eye_slash",eG.VOLUME_DOWN="volume_min",eG.VOLUME_MUTE="volume_mute",eG.VOLUME_OFF="volume_mute",eG.VOLUME_STABLE="stable_volume",eG.VOLUME_UP="volume_max",eG.WALLPAPER="image",eG.WARNING="alert_triangle",eG.WATCH_HISTORY="history",eG.WATCH_HISTORY_CAIRO="history",eG.WATCH_LATER="clock",eG.WATCH_LATER_CAIRO=
"clock",eG.WATCH_RELATED_MIX="mix",eG.WHAT_TO_WATCH="home",eG.YOUTUBE_LINKED_TV="tv_mobile",eG.YOUTUBE_MUSIC_MONOCHROME="youtube_music",eG.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",eG.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",eG.YOUTUBE_SHORTS_ARROW_UP="arrow_up",eG.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",eG.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",eG.YOUTUBE_SHORTS_OUTLINE_24="shorts",eG);var iR4={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,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,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,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,7,24],[1,7,24]],arrow_left:[[1,
7,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,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,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,9,12],[0,9,16],[0,9,24],[1,9,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,8,24],[1,8,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,9,24],[1,9,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,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,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,8,18],[1,8,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,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,8,24],[1,8,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,3,24],[1,3,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,9,24],[1,9,16],[1,9,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,
5,24],[1,5,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,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,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,10,16],[0,10,24],[1,10,16],[1,10,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,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,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,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,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,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,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,6,24],[1,6,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,8,24],[1,8,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]],football:[[0,3,24],[1,3,24]],
gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],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,17,13],[0,17,24],[1,17,16],[1,17,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,2,16],[1,2,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,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,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,7,18],[1,7,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]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,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,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,24]],mention:[[1,4,16],[1,4,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,10,24],[1,10,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_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,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,7,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,
8,18],[1,8,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,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,9,24],[1,9,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_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,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,3,
24],[1,3,12],[1,3,16],[1,3,18],[1,3,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,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,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,1,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,7,12],[0,7,24],
[1,7,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,11,24],[1,11,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,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,5,24]],skip_previous:[[0,5,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,8,12],[0,8,16],[0,8,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,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,3,12],[0,3,16],[0,3,18],[0,3,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,3,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,10,24],[1,10,18],[1,10,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,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,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,2,24]],trash_can:[[1,9,16],[1,9,18],[1,9,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,7,12],[0,7,16],[0,7,24],[1,7,16],[1,7,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,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,24]],video_stitch:[[1,2,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,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,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,1,24],[1,1,24]]};var ckv={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],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,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,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,1,24]],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,7,24]],arrow_left:[[1,7,24,!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,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,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,1,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,1,24]],audio:[[0,9,24],[1,9,24]],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]],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,8,24],[1,8,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_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],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,9,24],[1,9,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]],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,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],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,8,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_right:[[1,6,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,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,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,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,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,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,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,10,24],[1,10,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:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],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,6,24],[1,6,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,
8,24],[1,8,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_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,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:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[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,2,24],[1,2,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_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]],heart:[[0,17,24],[1,17,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,1,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,2,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,9,24]],info_circle_spark:[[1,1,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,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],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,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,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]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[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,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[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,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],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,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,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,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,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,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],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,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,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,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],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,1,24]],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,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,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:[[1,1,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,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,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,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],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]],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,2,24],[1,2,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,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,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,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[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:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,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,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,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_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var uhH={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",PLAYER_FULL_ENTER_DELHI_PLAYER:"PLAYER_FULL_ENTER",PLAYER_FULL_EXIT_DELHI_PLAYER:"PLAYER_FULL_EXIT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},pj=function(K){this.iconUrlProvider=K};
pj.prototype.resolveIcon=function(K,d){var f=uhH[K.iconName.toUpperCase()];f&&(K.iconName=f);var H=K.iconName;H=H.replace(/-/g,"_");K=Object.assign({},K,{iconName:this.mapIconTypeToStandardName(H,!!f)||H.toLowerCase()});if(_.M("enable_web_delhi_icons")||f){var D;return FpX(ckv,K,((D=this.iconUrlProvider)==null?void 0:D.getYtStandardUrl)||vNB,d)}var S;return FpX(iR4,K,((S=this.iconUrlProvider)==null?void 0:S.getYtStandardUrl)||XlY,d)};
pj.prototype.mapIconTypeToStandardName=function(K,d){return _.M("enable_web_delhi_icons")||d?nv8[K.toUpperCase()]:yk2[K.toUpperCase()]};
pj[CG]=[_.Zd(Dy6)];var aCv=new Set(["offline_pause","pause","play_all","play_arrow","youtube_music"]),ICH=function(K){this.urlProvider=this.iconUrlProvider=K};
_.O(ICH,pj);
ICH.prototype.resolveIcon=function(K,d){K.iconName==="youtube_logo"&&(K.iconName="yt-logo-updated");if(K.iconName==="youtube_premium_logo"||K.iconName==="youtube_red_logo")K.iconName="yt-logo-red-updated";var f=Object.assign({},K);K.iconName==="menu"&&(_.M("enable_web_delhi_icons")||(f.iconName="bars_3"),f.iconStyle="youtube_outline");K.iconName==="mail"&&K.iconSetName==="socialNetworksRound"&&(f.iconName="email");K.iconName==="more"&&(f.iconName="overflow_horizontal");K.iconName==="fullscreen"&&(f.iconName=
"screen_full");K.iconName==="premium_standalone"&&(f.iconName="premium_standalone_cairo");_.M("enable_connect_icon_update_web")&&K.iconName==="account_linked"&&(f.iconName="circles_overlap_check",f.iconStyle="youtube_fill");_.M("enable_connect_icon_update_web")&&K.iconName==="account_unlinked"&&(f.iconName="circles_overlap",f.iconStyle="youtube_outline");aCv.has(K.iconName)&&(f.iconStyle="youtube_fill");K=Object.assign({},f,{iconName:(pj.prototype.mapIconTypeToStandardName.call(this,f.iconName)||
f.iconName).toLowerCase()});var H;return(K=FpX(fCs,K,((H=this.urlProvider)==null?void 0:H.getUrl)||M9S,d))?K:pj.prototype.resolveIcon.call(this,f,d)};
ICH[CG]=[_.Zd(Dy6)];_.Uyk=1;var Ku=function(){};
_.O(Ku,ER);Ku.prototype.resolveCommand=function(K){var d,f;return _.c(function(H){d=_.P(K,B39);if(!d)return H.return();f=Number(d.enableDelayedPacfLoggingTvMs);if(isNaN(f)){var D=f9();BoJ(D,d,0)}else BoJ(f9(),d,f);_.iQ(H)})};_.dY=function(){};
_.O(_.dY,ER);
_.dY.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a,R;return _.c(function(F){H=_.P(K,Jb9);S=(D=d.form)==null?void 0:D.element;u=(n=S)==null?void 0:n.closest("ytd-enforcement-message-view-model");if(!H||!u)return F.return();f.allowAdsAction||(a=H.fundingChoiceInstructionPageUrl,f.allowAdsAction=new gh4(window,_.$K(a)));var z=f.allowAdsAction;z.wallElement=u;z.allowAdsPopup.style.setProperty("display","flex","important");var v=z.scrollManager;v.originalBodyOverflow=v.JSC$8005_domHelper.JSC$7335_document_.body.style.overflow;v.JSC$8005_domHelper.JSC$7335_document_.body.style.overflow=
"hidden";z.wallElement.style.setProperty("display","none","important");WHN(z.accessibilityManager,z.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((R=f.allowAdsAction.allowAdsPopup)&&R instanceof HTMLElement)for(z=_.y(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),v=z.next();!v.done;v=z.next()){var g=_.y(v.value);v=g.next().value;g=g.next().value;R.style.setProperty(v,g)}_.iQ(F)})};
_.dY.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var fu=function(){};
_.O(fu,ER);fu.prototype.resolveCommand=function(K){var d;return _.c(function(f){d=_.P(K,Dgf);if(!d)return f.return();ND5(K);_.iQ(f)})};var Hb=function(K){this.JSC$15052_commandHandler=K};
_.O(Hb,ER);
Hb.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n,u,a,R;return _.c(function(F){if(F.nextAddress==1){f=_.P(K,En8);if((H=f)==null||!H.text||!navigator.clipboard)return F.return();_.HF(F,2);return _.I(F,navigator.clipboard.writeText(f.text),4)}if(F.nextAddress!=2){if(!f.successActions||f.successActions.length===0)return F.return();D=_.y(f.successActions);for(S=D.next();!S.done;S=D.next())n=S.value,d.JSC$15052_commandHandler.resolveCommand(n);return _.Ts(F,0)}_.n7(F);if(!f.failureActions||f.failureActions.length===
0)return F.return();u=_.y(f.failureActions);for(a=u.next();!a.done;a=u.next())R=a.value,d.JSC$15052_commandHandler.resolveCommand(R);_.iQ(F)})};
Hb[CG]=[_.pQ];var Dg=function(K){this.JSC$15056_commandHandler=K};
_.O(Dg,ER);
Dg.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a,R,F,z,v;return _.c(function(g){switch(g.nextAddress){case 1:H=_.P(K,uuk);if(!H)return g.return();_.HF(g,2);if(!H.imageBytes&&!H.imageUrl)throw Error("vi");if(!H.imageUrl){if(H.imageBytes){S=H.imageBytes;n=S.replace(/-/g,"+").replace(/_/g,"/");var N=gNz(n);D=_.MD(N)}g.jumpTo(4);break}return _.I(g,fetch(H.imageUrl),5);case 5:return u=g.yieldResult,_.I(g,u.blob(),6);case 6:a=g.yieldResult,D=_.MD(a);case 4:z=(R=d)==null?void 0:(F=R.form)==
null?void 0:F.element;v=document.createElement("a");ND(v,D);z.appendChild(v);v.download="";v.click();z.removeChild(v);URL.revokeObjectURL(_.Io(D));H.successCommand&&f.JSC$15056_commandHandler.resolveCommand(H.successCommand);_.Ts(g,0);break;case 2:_.n7(g),H.errorCommand&&f.JSC$15056_commandHandler.resolveCommand(H.errorCommand),_.iQ(g)}})};
Dg[CG]=[_.pQ];var V_=function(K){this.store=K};
_.O(V_,ER);V_.prototype.resolveCommand=function(K){var d=this,f,H,D;return _.c(function(S){H=(f=_.P(K,_.C14))==null?void 0:f.entityBatchUpdate;if(!H)return S.jumpTo(0);D=Object.assign({},H,{mutations:[].concat(_.Me(H.mutations||[]))});return _.I(S,_.iA(D,d.store),0)})};var Rjt=function(K){this.JSC$15063_commandHandler=K;this.feedbackDialogMap=new Map};
Rjt.prototype.openDialog=function(K,d){(K=this.feedbackDialogMap.get(K))&&this.JSC$15063_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:K}},d)};
Rjt[CG]=[_.pQ];var S5=new _.xn("FEEDBACK_CONTROLLER_TOKEN");var y_=new _.xn("APP_STORE_TOKEN");var nu=function(K,d){this.store=K;this.controller=d};
_.O(nu,ER);nu.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J;return _.c(function(L){if(L.nextAddress==1){H=_.P(K,_.g7);if(S=(D=H)==null?void 0:D.contentId)for(u=_.y(((n=H)==null?void 0:n.actions)||[]),a=u.next();!a.done;a=u.next())R=a.value,FFs(f,R,S);v=(F=d)==null?void 0:(z=F.form)==null?void 0:z.element;return _.I(L,_.dN(v,[K]).catch(function(){}),2)}g=L.yieldResult;
((N=g)==null?0:(h=N.data)==null?0:(m=h.feedbackResponses)==null?0:m.length)&&(r=(T=g.data.feedbackResponses[0])==null?void 0:T.followUpDialog)&&S&&(J=f.controller)!=null&&J.feedbackDialogMap.set(S,r);_.iQ(L)})};
var FFs=function(K,d,f){var H=_.P(d,_.DE);if(H){H=_.y(H.commands||[]);for(var D=H.next();!D.done;D=H.next())FFs(K,D.value,f)}_.P(d,_.Ia)&&K.store.dispatch(_.nt("commandEntity",$6X(f),{key:f,command:d}));_.P(d,xjv)&&K.store.dispatch(_.nt("commandEntity",$6X(f),{key:f,command:d}))};
nu[CG]=[y_,S5];var i7=function(K){this.controller=K};
_.O(i7,ER);i7.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n;return _.c(function(u){H=_.P(K,_.GE);S=(D=H)==null?void 0:D.targetId;if(((n=H)==null?void 0:n.signal)!=="TELL_US_WHY"||!S)return u.return();f.controller.openDialog(S,d);_.iQ(u)})};
i7[CG]=[S5];var cb=function(K){this.store=K};
_.O(cb,ER);cb.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a,R;return _.c(function(F){H=_.P(K,WYX);S=(D=H)==null?void 0:D.contentId;a=(n=d)==null?void 0:(u=n.form)==null?void 0:u.element;R=_.dN(a,[K]);S&&f.undo(S);return _.I(F,R,0)})};
cb.prototype.undo=function(K){this.store.dispatch(_.nt("commandEntity",$6X(K),{key:K,command:void 0}))};
cb[CG]=[y_];var u7=function(K){this.JSC$15078_commandHandler=K};
_.O(u7,ER);u7.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n,u,a,R;return _.c(function(F){f=_.P(K,VO2);H=f.flowStateKey;D=f.validationFailureCommand;S=f.submitValidFormCommand;n=rj(_.B$,[H||""]);u=_.P(n,yBv);((a=u)==null?0:a.isValid)&&S&&d.JSC$15078_commandHandler.resolveCommand(S);((R=u)==null?0:R.isValid)||!D||d.JSC$15078_commandHandler.resolveCommand(D);_.iQ(F)})};
u7[CG]=[_.pQ];var a7=function(K){this.innertubeTransportService=K};
_.O(a7,ER);a7.prototype.resolveCommand=function(K,d){var f=this,H;return _.c(function(D){return _.I(D,_.Wp(f.innertubeTransportService,K,(H=d)==null?void 0:H.form).then(function(S){var n,u;d==null||(n=d.commandController)==null||(u=n.onSuccess)==null||u.call(n,K,S)},function(S){var n,u;
d==null||(n=d.commandController)==null||(u=n.onServerError)==null||u.call(n,K,S)}),0)})};
a7[CG]=[_.Nn];var I7=function(){};
_.O(I7,ER);I7.prototype.resolveCommand=function(K){var d,f,H,D;return _.c(function(S){if(d=_.P(K,_.Rxv)){if(f=d.gtmId)H=_.mD("GL",""),_.F8(f,H);(D=d.gtmData)&&_.z8(D)}_.iQ(S)})};var Uf=function(K,d){this.innertubeTransportService=K;this.JSC$15089_actionRouter=d};
_.O(Uf,ER);Uf.prototype.resolveCommand=function(K){var d=this,f,H;return _.c(function(D){f=_.P(K,Ift);if(!f)return D.return();H=f.command;if(!H)return D.return();d.JSC$15089_actionRouter.triggerAction("yt-insert-rich-section-action",f);return _.I(D,_.Wp(d.innertubeTransportService,H,{disableCache:!0}),0)})};
Uf[CG]=[_.Nn,QP];NbS.bind(null,h2);var zjL=NbS.bind(null,ic2);t9X.bind(null,h2);var X88=t9X.bind(null,ic2);$wO.bind(null,h2);var vv6=$wO.bind(null,ic2);var R7=function(){};
_.O(R7,ER);
R7.prototype.resolveCommand=function(K){var d,f,H,D,S,n,u,a,R,F;return _.c(function(z){d=_.P(K,CfL);if(!d)return z.return();H=((f=d.operations)==null?void 0:f.operations)||[];D=_.y(H);for(S=D.next();!S.done;S=D.next())if(n=S.value,n.insertItemSectionContent){var v=n.insertItemSectionContent,g=v.contents||[];v.insertByPositionInSection?zjL(v.insertByPositionInSection.sectionTargetId,g,v.insertByPositionInSection.position):v.insertByRelativePositionInSection&&v.insertByRelativePositionInSection.sectionTargetId&&v.insertByRelativePositionInSection.itemTargetId&&
X88(v.insertByRelativePositionInSection.sectionTargetId,v.insertByRelativePositionInSection.itemTargetId,g,v.insertByRelativePositionInSection.relativePosition)}else n.replaceSection?(v=n.replaceSection,g={},v.replaceByTargetId?g=v.replaceByTargetId:v.replaceByGroupId&&(g={targetId:v.replaceByGroupId.groupId,newContent:v.replaceByGroupId.newContent,undoKey:""}),g.newContent&&a$s(g.targetId,{continuationItems:[g.newContent]})):n.removeItem?(v=n.removeItem,v.removeByTargetId&&v.sectionTargetId&&vv6(v.sectionTargetId,
v.removeByTargetId.targetIds||[])):n.removeSection&&(n.removeSection.removeByTargetId?(u=void 0,MT9(((u=n.removeSection)==null?void 0:u.removeByTargetId.targetIds)||[])):n.removeSection.removeByGroupId&&(a=void 0,MT9(((a=n.removeSection)==null?void 0:a.removeByGroupId.groupIds)||[])));F=((R=d.operations)==null?void 0:R.scrollConfig)||{};PtN(F);_.iQ(z)})};
var MT9=function(K){K=_.y(K);for(var d=K.next();!d.done;d=K.next())a$s(d.value,{continuationItems:[]})},PtN=function(K){if(K.scrollToItem){var d=K.scrollToItem.item||{},f=d.itemTargetId;
d=d.sectionTargetId;if(f&&d){var H=document.querySelector("[data-target-id="+d+"]"),D=H==null?void 0:H.querySelector("[data-target-id="+f+"]");H&&D&&setTimeout(function(){var S=D.offsetTop-H.offsetTop,n;if(((n=K.scrollToItem)==null?void 0:n.scrollPosition)==="SCROLL_POSITION_CENTER")S-=H.offsetHeight/2,S+=D.offsetHeight/2;else{var u;((u=K.scrollToItem)==null?void 0:u.scrollPosition)==="SCROLL_POSITION_END"&&(S-=H.offsetHeight,S+=D.offsetHeight)}H.scroll({top:S,behavior:"smooth"})},100)}}};var Fx=new _.xn("CLIENT_NAME_TOKEN");var gvs=new _.xn("DEFAULT_STORE_EXPIRATION_TOKEN");var ebz=new _.xn("CLIENT_LOCATION_SERVICE_TOKEN");var ze=function(K,d,f){this.clientName=K||_.mD("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=d||_.PW.getInstance();this.JSC$15117_commandHandler=f||_.V2.instance};
_.O(ze,ER);ze.prototype.resolveCommand=function(K){var d=this,f,H;return _.c(function(D){H=(f=_.P(K,ePs))==null?void 0:f.onComplete;d.clientLocationService.clearLocationPlayabilityToken(d.clientName);H&&d.JSC$15117_commandHandler.resolveCommand(H);_.iQ(D)})};
ze[CG]=[Fx,ebz,_.pQ];var Xx=function(K){this.innertubeTransportService=K};
_.O(Xx,ER);Xx.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n;return _.c(function(u){S=(H=d)==null?void 0:(D=H.form)==null?void 0:D.element;return _.I(u,_.Wp(f.innertubeTransportService,K,(n=d)==null?void 0:n.form).then(function(a){YfN(S,new CustomEvent("yt-service-request-completed"),{data:a},_.mD("openPopupConfig"))}),0)})};
Xx[CG]=[_.Nn];var vb=function(){};
_.O(vb,ER);vb.prototype.resolveCommand=function(K){var d,f;return _.c(function(H){d=_.P(K,u_J);f=document.querySelector("mini-app-container-view-model");if(!d||!f)return H.return();d.isPlaying?f.dispatchEvent(new Event("play")):f.dispatchEvent(new Event("pause"));_.iQ(H)})};var MI=function(){};
_.O(MI,ER);MI.prototype.resolveCommand=function(K){var d,f,H,D,S,n,u;return _.c(function(a){d=_.P(K,i2H);if((f=d)==null||!f.paramKeys)return a.return();H=d.paramKeys;D=_.QX(window.location.href);S=_.y(H);for(n=S.next();!n.done;n=S.next())u=n.value,D.JSC$8037_queryData_.remove(u);window.history.replaceState(window.history.state,document.title,D.toString());_.iQ(a)})};var ORt=function(){this.dropdownMap=new Map};_.NE2=new _.xn("DROPDOWN_CONTROLLER_TOKEN");var Pb=function(K){this.controller=K};
_.O(Pb,ER);Pb.prototype.resolveCommand=function(K){var d=this,f,H,D,S;return _.c(function(n){f=_.P(K,C4s);if(!f)return n.return();H=f;D=H.dropdownId;S=H.selectedOptionIndex;if(D===void 0||S===void 0)return n.return();var u=d.controller.dropdownMap.get(D);u&&u(S);_.iQ(n)})};
Pb[CG]=[_.NE2];var gY=function(K){this.controller=K};
_.O(gY,ER);gY.prototype.resolveCommand=function(K){var d=this,f;return _.c(function(H){return(f=_.P(K,Sv4))?_.I(H,d.controller.closeDialog(),0):H.return()})};
gY[CG]=[_.MZ];var Of=function(K){this.controller=K};
_.O(Of,ER);Of.prototype.resolveCommand=function(K){var d=this,f,H;return _.c(function(D){f=_.P(K,jts);if(!f)return D.return();var S,n=f.panelIdentifier||((S=f.identifier)==null?void 0:S.tag);if(!n)throw Error("wi");return(H=n)?_.I(D,d.controller.hidePanel(H),0):D.jumpTo(0)})};
Of[CG]=[_.XM];var NI=function(K,d){this.innertubeTransportService=K;this.controller=d};
_.O(NI,ER);NI.prototype.resolveCommand=function(K){var d=this,f,H,D,S;return _.c(function(n){if(n.nextAddress==1)return f=_.P(K,CJ6),(H=f)!=null&&H.panelId?_.I(n,d.controller.getReloadContinuation(f.panelId),2):n.return();if(n.nextAddress!=3)return(D=n.yieldResult)?_.I(n,_.Wp(d.innertubeTransportService,K,{continuation:D}),3):n.return();S=n.yieldResult;return _.I(n,d.controller.updatePanel(f.panelId,S.content,!1),0)})};
NI[CG]=[_.Nn,_.XM];var Y9=function(K,d,f){this.innertubeTransportService=K;this.JSC$15153_screenManager=d;this.JSC$15153_commandHandler=f};
_.O(Y9,ER);
Y9.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n,u;return _.c(function(a){if(a.nextAddress==1){f=_.P(K,_.m0B);if(!f)return a.return();if(f.commands)for(H=_.y(f.commands),D=H.next();!D.done;D=H.next())S=D.value,d.JSC$15153_commandHandler.resolveCommand(S,{disableClickTracking:!0});n=_.RG(K.clickTrackingParams);_.eA(d.JSC$15153_screenManager,21760,n,{layer:7,parentLayer:0});return _.I(a,_.Wp(d.innertubeTransportService,K),2)}u=a.yieldResult;if(!u)return a.return();d.JSC$15153_screenManager.graftServerVe(u.trackingParams,n,
7);_.iQ(a)})};
Y9[CG]=[_.Nn,_.FD,_.pQ];var ti=new _.xn("PANEL_LOADING_STRATEGY_TOKEN");var o7=function(K,d){this.controller=K;this.panelLoadingStrategy=d};
_.O(o7,ER);
o7.prototype.resolveCommand=function(K,d){var f=this,H,D,S;return _.c(function(n){H=_.P(K,YKv);if((D=H)==null||!D.panelLoadingStrategy)return n.return();S=function(u){var a,R,F,z,v,g,N,h,m;return _.c(function(T){R=_.P((a=u.dialogViewModel)==null?void 0:a.header,xg4);F={viewModel:u.dialogViewModel};z={};if(N=_.M("web_enable_dialog_header_label")?(v=R)==null?void 0:(g=v.headline)==null?void 0:g.content:void 0)z.ariaLabel=N;H.dismissOnBackgroundTap===!1&&(z.isModal=!0);return u.dialogViewModel?_.I(T,
f.controller.openDialog(F,(h=d)==null?void 0:(m=h.form)==null?void 0:m.element,z),0):T.return()})};
return _.I(n,f.panelLoadingStrategy.execute({command:K,data:H.panelLoadingStrategy,renderFn:S,createScreenConfig:{layer:4}}),0)})};
o7[CG]=[_.MZ,ti];var $9=function(K,d,f){this.innertubeTransportService=K;this.controller=d;this.JSC$15173_screenManager=f};
_.O($9,ER);
$9.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a,R,F,z,v,g,N;return _.c(function(h){switch(h.nextAddress){case 1:H=_.P(K,_.Pd);if(!H)return h.return();var m,T=H.panelIdentifier||((m=H.identifier)==null?void 0:m.tag);if(!T)throw Error("wi");D=T;return _.I(h,f.controller.isVisible(D,!0),2);case 2:if((S=h.yieldResult)&&H.blockIfPanelOpen)return h.return();a=(u=(n=f.controller).getPanelContent)==null?void 0:u.call(n,D);if(!(m=a))if(H){var r;m=((r=H.globalConfiguration)==null?void 0:r.initialState)||
H.engagementPanel;if(r=!m)r=!!(H==null?0:(T=H.engagementPanelPresentationConfigs)==null?0:T.engagementPanelPopupPresentationConfig);r&&(m=_.ENo(H.panelIdentifier,H.identifier))}else m=void 0;R=m;F=H.engagementPanelPresentationConfigs;z=H.engagementPanelExtras;return _.I(h,f.controller.showPanel(D,R,F,z,(v=d)==null?void 0:(g=v.form)==null?void 0:g.element),3);case 3:if(!H.globalConfiguration){h.jumpTo(0);break}_.eA(f.JSC$15173_screenManager,32633);return _.I(h,_.Wp(f.innertubeTransportService,K),5);
case 5:return N=h.yieldResult,f.JSC$15173_screenManager.graftServerVe(N.trackingParams),_.I(h,f.controller.updatePanel(D,N.content,!0,z,void 0,N.updatePanelContinuationData),0)}})};
$9[CG]=[_.Nn,_.XM,_.FD];var Ef=function(K,d){this.controller=K;this.panelLoadingStrategy=d};
_.O(Ef,ER);Ef.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a;return _.c(function(R){H=_.P(K,_.iX);if((D=H)==null||!D.panelLoadingStrategy)return R.return();u=Yws(f.controller,(S=d)==null?void 0:(n=S.form)==null?void 0:n.element);a=function(F){return _.c(function(z){return F.sheetViewModel?_.I(z,f.controller.openSheet({viewModel:F.sheetViewModel},u),0):z.return()})};
return _.I(R,f.panelLoadingStrategy.execute({command:K,data:H.panelLoadingStrategy,renderFn:a,createScreenConfig:{layer:0}}),0)})};
Ef[CG]=[_.vI,ti];var hi=function(K,d){this.controller=K;this.JSC$15181_commandHandler=d};
_.O(hi,ER);hi.prototype.resolveCommand=function(K,d){var f=this,H,D,S;return _.c(function(n){if(n.nextAddress==1){H=_.P(K,JDt);var u=_.P(H.showCommand,_.Pd),a,R,F=(R=u==null?void 0:u.panelIdentifier)!=null?R:u==null?void 0:(a=u.identifier)==null?void 0:a.tag;if(!F)throw Error("xi");D=F;return _.I(n,f.controller.isVisible(D),2)}return(S=n.yieldResult)?_.I(n,f.controller.hidePanel(D),0):_.I(n,f.JSC$15181_commandHandler.resolveCommand(H.showCommand,d),0)})};
hi[CG]=[_.XM,_.pQ];var b7=function(K,d,f){this.innertubeTransportService=K;this.controller=d;this.JSC$15184_screenManager=f};
_.O(b7,ER);
b7.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J,L,fB,w,yO;return _.c(function(FX){switch(FX.nextAddress){case 1:return H=f=_.P(K,sZ9),D=H.targetPanelIdentifier,S=H.contentSourcePanelIdentifier,n=H.globalConfiguration,((u=D)==null?0:u.tag)&&((a=S)==null?0:a.tag)?n?_.I(FX,d.controller.showPanel(D.tag,_.ENo(D.tag,D),void 0,void 0,void 0),5):_.I(FX,(v=(z=d.controller).getPanel)==null?void 0:v.call(z,S.tag),4):FX.return();case 4:g=FX.yieldResult;R=(N=g)==null?void 0:
(m=(h=N).getPanelContent)==null?void 0:m.call(h);FX.jumpTo(3);break;case 5:return _.I(FX,_.Wp(d.innertubeTransportService,K),6);case 6:T=FX.yieldResult,((r=T)==null?0:r.trackingParams)&&d.JSC$15184_screenManager.graftServerVe(T.trackingParams),R=(J=T)==null?void 0:J.content,F=(L=T)==null?void 0:L.updatePanelContinuationData;case 3:if(w=(fB=R)==null?void 0:fB.engagementPanelSectionListRenderer)return _.I(FX,d.controller.showPanel(D.tag,void 0,void 0,void 0,void 0,{content:w.content,secondaryHeaderContent:(yO=
w.header)!=null?yO:{},targetId:w.targetId},F),0);FX.jumpTo(0)}})};
b7[CG]=[_.Nn,_.XM,_.FD];var mT=function(K,d){this.JSC$15192_commandHandler=K;this.store=d};
_.O(mT,ER);mT.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n;return _.c(function(u){if(u.nextAddress==1)return(f=_.P(K,DfN))?_.I(u,_.Kt(),2):u.return();H=u.yieldResult;if(!H)return u.return();mwz(H,d.store,(D=f)==null?void 0:D.languageCode);S=H.isSubtitlesOn()?_.iB("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.iB("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");n=_.LF(S);d.JSC$15192_commandHandler.resolveCommand(n);_.iQ(u)})};
mT[CG]=[_.pQ,Ks];var l7=function(K,d){this.shortsPlayerPromise=K;this.JSC$15196_commandHandler=d};
_.O(l7,ER);
l7.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n,u,a,R;return _.c(function(F){if(F.nextAddress==1)return(f=_.P(K,MI9))?_.I(F,d.shortsPlayerPromise,2):F.return();H=F.yieldResult;var z=l1z(H);z!=null&&z.length||(H.loadModule("captions"),z=l1z(H));D=z;if((S=D)==null||!S.length)return n=_.iB("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),u=_.LF(n),d.JSC$15196_commandHandler.resolveCommand(u),F.return();H.toggleSubtitles();a=H.isSubtitlesOn()?_.iB("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.iB("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");R=_.LF(a);d.JSC$15196_commandHandler.resolveCommand(R);_.iQ(F)})};
l7[CG]=[_.V_8,_.pQ];var Wb=function(K){this.JSC$15199_playerPromise=K};
_.O(Wb,ER);Wb.prototype.resolveCommand=function(K){var d=this,f,H,D,S;return _.c(function(n){if(n.nextAddress==1)return(f=_.P(K,LoN))?_.I(n,d.JSC$15199_playerPromise,2):n.return();H=n.yieldResult;D=H.getVideoData().video_id;f.videoId===D&&(S=Number(f.offsetFromVideoStartMilliseconds),S>=0&&H.seekTo(S/1E3));_.iQ(n)})};
Wb[CG]=[_.kP];var tTs=_.HJ("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Ge=function(K){this.store=K};
_.O(Ge,ER);
var ovJ=function(K){var d,f,H,D;return _.c(function(S){if(S.nextAddress==1)return d=_.mD("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,f=_.mD("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,H=d||f,K.mainAppPlayer=new QA(H),_.I(S,K.mainAppPlayer.api,2);D=S.yieldResult;D.addEventListener("onStateChange",K.JSC$15203_playerStateChangeListener.bind(K));document.addEventListener("yt-page-data-updated",K.pauseOnNavigation.bind(K));window.addEventListener("state-navigatestart",
K.pauseOnNavigation.bind(K));_.iQ(S)})};
Ge.prototype.JSC$15203_playerStateChangeListener=function(K){switch(K){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"}$yN(this)};
var $yN=function(K){K.store.dispatch(_.nt("sfvAudioItemCurrentlyPlayingEntity",tTs,{key:tTs,externalVideoId:K.externalVideoId,sfvAudioItemPlaybackState:K.playbackState,nowPlayingEntityValue:K.nowPlayingEntityValue}))};
Ge.prototype.pauseOnNavigation=function(){var K=this,d,f,H,D;return _.c(function(S){if(S.nextAddress==1){if(!K.mainAppPlayer){var n=new _.X4("Error: mainAppPlayer is unavailable",K.mainAppPlayer);_.$7(n);return S.return()}return _.I(S,K.mainAppPlayer.api,2)}d=S.yieldResult;H=(f=d)==null?void 0:f.getPlayerState();H!==1||(D=d)!=null&&D.pauseVideo();_.iQ(S)})};
Ge.prototype.playVideo=function(K,d,f){var H=this,D,S;return _.c(function(n){if(n.nextAddress==1)return _.I(n,(D=H.mainAppPlayer)==null?void 0:D.api,2);S=n.yieldResult;if(!H.mainAppPlayer||!S){var u=new _.X4("Error: mainAppPlayer is unavailable",H.mainAppPlayer);_.$7(u);return n.return()}return _.I(n,H.mainAppPlayer.loadVideoWithPlayerVars({videoId:H.externalVideoId,audio_only:"1",start:K/1E3,end:K/1E3+d,player_params:f}),0)})};
Ge.prototype.pauseVideo=function(){var K=this,d,f;return _.c(function(H){if(H.nextAddress==1){if(!K.mainAppPlayer){var D=new _.X4("Error: mainAppPlayer is unavailable",K.mainAppPlayer);_.$7(D);return H.return()}return _.I(H,K.mainAppPlayer.api,2)}d=H.yieldResult;(f=d)==null||f.pauseVideo();_.iQ(H)})};
Ge.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J,L;return _.c(function(fB){if(fB.nextAddress==1)return f=_.P(K,Fwt),D=(H=f)==null?void 0:H.nowPlayingEntityValue,n=(S=f)==null?void 0:S.externalVideoId,z=Number((F=(u=f)==null?void 0:(a=u.defaultStartPoints)==null?void 0:(R=a[0])==null?void 0:R.offsetMs)!=null?F:"0"),T=Number((m=(v=f)==null?void 0:(g=v.defaultStartPoints)==null?void 0:(N=g[0])==null?void 0:(h=N.duration)==null?void 0:h.seconds)!=null?m:"15"),L=(J=
(r=f)==null?void 0:r.playerParams)!=null?J:"",D&&n?d.mainAppPlayer?fB.jumpTo(2):_.I(fB,ovJ(d),2):fB.return();if(fB.nextAddress!=6){if(d.nowPlayingEntityValue&&D===d.nowPlayingEntityValue)return d.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.I(fB,d.pauseVideo(),0):_.I(fB,d.playVideo(z,T,L),0);d.externalVideoId=n;d.nowPlayingEntityValue=D;d.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.I(fB,d.playVideo(z,T,L),6)}$yN(d);return fB.jumpTo(0)})};
Ge[CG]=[Ks];var Ai=function(K){this.JSC$15220_commandHandler=K};
_.O(Ai,ER);Ai.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u;return _.c(function(a){if(a.nextAddress==1)return(H=_.P(K,VUN))?_.I(a,_.Kt(),2):a.return();D=a.yieldResult;if(!D)return a.return();(S=TbJ(D))?f.JSC$15220_commandHandler.resolveCommand(S,d):(n=_.iB("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),u=_.LF(n),f.JSC$15220_commandHandler.resolveCommand(u));_.iQ(a)})};
Ai[CG]=[_.pQ];var Te=function(K){this.JSC$15223_playerPromise=K};
_.O(Te,ER);Te.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n;return _.c(function(u){if(u.nextAddress==1){f=_.P(K,BvJ);if(!f)return u.return();H=f.overlayRenderer;return H?(D=_.P(H,DVs))?_.I(u,d.JSC$15223_playerPromise,3):u.jumpTo(0):u.return()}S=u.yieldResult;S.renderChapterSeekingAnimation(1,_.qQ(D.text),(n=D.icon)==null?void 0:n.iconType);_.iQ(u)})};
Te[CG]=[_.kP];var rY=function(K){this.store=K};
_.O(rY,ER);
rY.prototype.resolveCommand=function(K){var d=this,f,H,D;return _.c(function(S){if(S.nextAddress==1){f=_.P(K,yI2);if(!f)return S.return();H="";(D=d.store.getState().collabInviteLink)&&f.id===D.playlistId?H=D.inviteLinkURL:f.shortUrl&&(H=f.shortUrl);return H?_.I(S,navigator.clipboard.writeText(H),3):S.jumpTo(0)}var n={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.iB("COPY_LINK_SUCCESS_TOAST")}}}}};_.eq().resolve(_.pQ).resolveCommand(n);_.iQ(S)})};
rY[CG]=[y_];var qI=function(K,d){this.innertubeTransportService=K;this.JSC$15233_commandHandler=d};
_.O(qI,ER);qI.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a,R,F,z,v;return _.c(function(g){if(g.nextAddress==1)return(H=_.P(K,_.EI))?_.I(g,_.Wp(f.innertubeTransportService,K,(D=d)==null?void 0:D.form),2):g.return();(S=g.yieldResult)&&S.errorMetadata&&(n=S,u=_.LF(n.error.message),f.JSC$15233_commandHandler.resolveCommand(u));a=S;if((R=a)==null?0:R.actions)for(F=_.y(a.actions),z=F.next();!z.done;z=F.next())v=z.value,f.JSC$15233_commandHandler.resolveCommand(v);_.iQ(g)})};
qI[CG]=[_.Nn,_.pQ];var Q_=function(){};
_.O(Q_,ER);Q_.prototype.resolveCommand=function(K){var d;return _.c(function(f){d=_.P(K,eCt);if(!d)return f.return();(new Vf6(d)).show();_.iQ(f)})};_.j5=new _.xn("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Cu=function(K,d,f,H){this.store=K;this.innertubeTransportService=d;this.controller=f;this.JSC$15241_commandHandler=H};
_.O(Cu,ER);
Cu.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J,L,fB,w,yO,FX,NJ,$z,hN,bo;return _.c(function(xz){if(xz.nextAddress==1){H=_.P(K,_.OI);if(!H)return xz.return();if(H.clientActions){D=_.y(H.clientActions);for(S=D.next();!S.done;S=D.next())n=S.value,f.JSC$15241_commandHandler.resolveCommand(n);var qJ,Y8=d==null?void 0:(qJ=d.form)==null?void 0:qJ.element;Y8&&_.Zp(Y8,"yt-dismissible-item-action",H.clientActions)}return _.I(xz,_.Wp(f.innertubeTransportService,K,(u=d)==
null?void 0:u.form),2)}if(a=xz.yieldResult)a.errorMetadata?(R=a,F=_.LF(R.error.message),f.JSC$15241_commandHandler.resolveCommand(F),"error"in a&&((z=d)==null?0:(v=z.commandController)==null?0:v.onServerError)&&((g=d)==null||(N=g.commandController)==null||N.onServerError(K,a))):(h=d)==null||(m=h.commandController)==null||(r=(T=m).onSuccess)==null||r.call(T,K,a);J=a;((L=J)==null?0:L.collaborationInviteLink)&&H.playlistId&&(_.M("web_enable_invite_collaborators_link")||_.M("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
f.store.dispatch(_.es({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:H.playlistId,inviteLinkUrl:J.collaborationInviteLink}}));((fB=J)==null?0:fB.redirectEndpoint)&&f.JSC$15241_commandHandler.resolveCommand(J.redirectEndpoint);((w=J)==null?0:(yO=w.newHeader)==null?0:yO.playlistHeaderRenderer)?Evf(f.controller,J.newHeader.playlistHeaderRenderer):((FX=J)==null?0:(NJ=FX.newHeader)==null?0:NJ.musicEditablePlaylistDetailHeaderRenderer)&&Evf(f.controller,J.newHeader.musicEditablePlaylistDetailHeaderRenderer);
f.controller.playlistVideoListElement&&(($z=J)==null?0:(hN=$z.playlistEditResults)==null?0:(bo=hN[0])==null?0:bo.playlistEditVideoAddedResultData)&&((Y8=f.controller.playlistVideoListElement)==null||Y8.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:J.playlistEditResults[0].playlistEditVideoAddedResultData})));_.iQ(xz)})};
Cu[CG]=[y_,_.Nn,_.j5,_.pQ];var x9=function(K,d){this.controller=K;this.JSC$15251_commandHandler=d};
_.O(x9,ER);x9.prototype.resolveCommand=function(K,d){var f=this,H,D,S;return _.c(function(n){H=_.P(K,n2s);f.controller.showRefreshPill&&((D=H)==null?0:D.command)&&(f.JSC$15251_commandHandler.resolveCommand((S=H)==null?void 0:S.command,d),f.controller.showRefreshPill=!1);_.iQ(n)})};
x9[CG]=[_.Z2,_.pQ];var Lu=function(K,d){this.store=K;this.JSC$15255_commandHandler=d||_.V2.instance};
_.O(Lu,ER);Lu.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a,R,F,z,v;return _.c(function(g){H=_.P(K,P19);D=f.store.getState().radioButtonGroup;if((S=H)==null?0:S.command)f.JSC$15255_commandHandler.resolveCommand((n=H)==null?void 0:n.command,d);else if(((u=H)==null?void 0:u.formId)===D.currentFormId)for(a=Object.values(D.commandsMap),R=_.y(a),F=R.next();!F.done;F=R.next()){z=F.value;v=_.$A(z);if(!v)return g.return();f.JSC$15255_commandHandler.resolveCommand(v,d)}_.iQ(g)})};
Lu[CG]=[y_];var Bb=new _.xn("USER_PREFS");var Ji=function(K){this.JSC$15259_prefCookie=K};
_.O(Ji,ER);Ji.prototype.resolveCommand=function(K){var d=this,f;return _.c(function(H){(f=_.P(K,xvt))&&typeof f.useListView==="boolean"&&(_.IS(0,155,f.useListView),d.JSC$15259_prefCookie.save());_.iQ(H)})};
Ji[CG]=[Bb];var sf=function(K){this.JSC$15263_prefCookie=K};
_.O(sf,ER);sf.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n;return _.c(function(u){f=_.P(K,KQ8);if((H=f)==null||!H.gl)return u.return();D=f.gl;S={persist_gl:"1",gl:D};d.JSC$15263_prefCookie.set("gl",D);d.JSC$15263_prefCookie.save();n=FN9(S);_.WW(n);_.iQ(u)})};
sf[CG]=[Bb];var k9=function(K){this.JSC$15267_prefCookie=K};
_.O(k9,ER);k9.prototype.resolveCommand=function(K){var d=this,f,H;return _.c(function(D){f=_.P(K,cIv);if(!f)return D.return();H=!1;f.flagNum&&typeof f.value==="boolean"?(_.IS(0,f.flagNum,f.value),H=!0):f.key&&typeof f.stringValue==="string"&&(d.JSC$15267_prefCookie.set(f.key,f.stringValue),H=!0);H&&d.JSC$15267_prefCookie.save();_.iQ(D)})};
k9[CG]=[Bb];var wY=new _.xn("PREF_STORAGE_PROMISE_TOKEN");var Zg=function(K){this.JSC$15271_prefStoragePromise=K};
_.O(Zg,ER);Zg.prototype.resolveCommand=function(K){var d=this,f,H;return _.c(function(D){if(D.nextAddress==1)return(f=_.P(K,abN))?_.I(D,d.JSC$15271_prefStoragePromise,2):D.return();H=D.yieldResult;return H===void 0||f.key===void 0||f.value===void 0?D.return():_.I(D,H.set(f.key,f.value),0)})};
Zg[CG]=[wY];var hjJ=function(K){this.innertubeTransportService=K};
_.O(hjJ,ER);hjJ.prototype.resolveCommand=function(K,d){var f=this,H,D;return _.c(function(S){(H=_.P(K,_.qAJ))&&H&&H.isFirstRequest&&(_.NY("search_overview_answer"),_.YJ("so_rq",void 0,"search_overview_answer"));return _.I(S,_.Wp(f.innertubeTransportService,K,(D=d)==null?void 0:D.form),0)})};
hjJ[CG]=[_.Nn];var bRs=function(){};
_.O(bRs,ER);
bRs.prototype.resolveCommand=function(K){var d,f,H,D,S,n,u,a,R;return _.c(function(F){d=_.P(K,xfN);if((f=d)==null?0:f.sectionIdentifier){if(d.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(D=(H=document.getElementsByTagName(d.sectionIdentifier))==null?void 0:H.item(0))D.scrollIntoView({behavior:"smooth"}),(S=Tmz(D))&&S.focus({preventScroll:!0});return F.return()}n=document.querySelector("[section-identifier="+d.sectionIdentifier+"]");u=document.querySelector("[section-identifier="+d.referenceSectionIdentifier+
"]");if(!n)return F.return();a=d.verticalScrollOffsetDp?d.verticalScrollOffsetDp:0;u&&(a-=u.offsetTop);window.scrollTo({top:n.offsetTop+a,behavior:"smooth"});(R=Tmz(n))&&R.focus({preventScroll:!0})}_.iQ(F)})};var e5=function(){};
_.O(e5,ER);
e5.prototype.resolveCommand=function(K){var d,f,H,D,S,n,u;return _.c(function(a){if(a.nextAddress==1){d=_.P(K,aP6);if(!d||!d.imageBytes||!navigator.clipboard)return a.return();if(d.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.$7(Error("yi")),a.return();_.HF(a,2);H=(f=d)==null?void 0:f.imageBytes;D=H.replace(/-/g,"+").replace(/_/g,"/");S=gNz(D);n={};u=[new ClipboardItem((n[S.type]=S,n))];return _.I(a,navigator.clipboard.write(u),4)}if(a.nextAddress!=2)return _.Ts(a,0);
_.n7(a);_.iQ(a)})};var pu=function(K,d){this.innertubeTransportService=K;this.JSC$15286_commandHandler=d};
_.O(pu,ER);pu.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u;return _.c(function(a){if(a.nextAddress==1)return(H=_.P(K,IP8))?_.I(a,_.Wp(f.innertubeTransportService,K,(D=d)==null?void 0:D.form),2):a.return();(S=a.yieldResult)&&S.errorMetadata&&H.onFailureCommand&&f.JSC$15286_commandHandler.resolveCommand(H.onFailureCommand);n=S;((u=n)==null?0:u.shareCommand)&&f.JSC$15286_commandHandler.resolveCommand(n.shareCommand,d);_.iQ(a)})};
pu[CG]=[_.Nn,_.pQ];var KC=function(){};
_.O(KC,ER);KC.prototype.resolveCommand=function(K){var d,f;return _.c(function(H){d=_.P(K,S3L);if(!d||!navigator.share)return H.return();f={url:d.url};try{return H.return(navigator.share(f))}catch(D){}_.iQ(H)})};var dq=function(){};
_.O(dq,ER);dq.prototype.resolveCommand=function(){return _.c(function(K){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.iQ(K)})};var fC=function(K){this.JSC$15296_navigationConfirmationService=K};
_.O(fC,ER);fC.prototype.resolveCommand=function(){var K=this;return _.c(function(d){K.JSC$15296_navigationConfirmationService.cancelPendingNavigation();_.iQ(d)})};
fC[CG]=[iZ];var HV=function(K){this.JSC$15299_screenManager=K};
_.O(HV,ER);HV.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a,R;return _.c(function(F){D=(H=d.form)==null?void 0:H.event;n=(S=d.form)==null?void 0:S.element;if(!D)throw new _.X4("Event not passed in when resolving command");u=_.y(D.composedPath());for(a=u.next();!a.done;a=u.next())if(R=a.value,R.tagName==="YT-COPY-LINK-RENDERER")return R.copyUrlToClipboard(),n&&_.bh(f.JSC$15299_screenManager,n),F.return();_.iQ(F)})};
HV[CG]=[_.FD];var Dc=function(){this.JSC$15303_miniAppClientDataProvider=_.eq().resolve(_.b_)};
_.O(Dc,ER);Dc.prototype.resolveCommand=function(){var K=this,d,f;return _.c(function(H){if(K.JSC$15303_miniAppClientDataProvider.clientData.has("video_id")){var D=K.JSC$15303_miniAppClientDataProvider,S=D.clientData.get("video_id");S&&D.clientData.delete("video_id");d="https://youtube.com/watch?v="+S;f=Ro(d);if(f===void 0)throw Error("zi`"+d);_.ha(window,f)}_.iQ(H)})};var Vz=function(){};
_.O(Vz,ER);Vz.prototype.resolveCommand=function(){return _.c(function(K){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.iQ(K)})};var Sn=function(){};
_.O(Sn,ER);Sn.prototype.resolveCommand=function(){var K;return _.c(function(d){if(d.nextAddress==1)return _.I(d,_.yzS(window.document.documentElement),2);(K=document.querySelector("mini-app-container-view-model iframe"))&&K.focus();_.iQ(d)})};var yz=function(K){this.JSC$15310_navigationConfirmationService=K};
_.O(yz,ER);
yz.prototype.resolveCommand=function(){var K=this;return _.c(function(d){var f=K.JSC$15310_navigationConfirmationService,H=_.eq().resolve(_.um),D;if(((D=f.navigateParams)==null?void 0:D.data)!==void 0){var S;_.JOs(H,f.navigateParams.endpoint,f.navigateParams.data,(S=f.navigateParams.navigationType)!=null?S:1,f.navigateParams.tempData,f.navigateParams.isMiniplayer,void 0,!0);f.navigateParams=void 0;f.customConfirmationCommand=void 0}else f.navigateParams&&(H.navigate(f.navigateParams.endpoint,f.navigateParams.reload,
f.navigateParams.params,f.navigateParams.tempData,f.navigateParams.requestType,f.navigateParams.createScreenConfig,!0),f.navigateParams=void 0,f.customConfirmationCommand=void 0);_.iQ(d)})};
yz[CG]=[iZ];var nC=function(){};
_.O(nC,ER);nC.prototype.resolveCommand=function(){return _.c(function(K){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.iQ(K)})};var ik=function(K){this.JSC$15315_prefStorage=K};
_.O(ik,ER);ik.prototype.resolveCommand=function(){var K=this,d,f;return _.c(function(H){switch(H.nextAddress){case 1:return _.I(H,K.JSC$15315_prefStorage,2);case 2:return(d=H.yieldResult)?_.I(H,d.set("sfvle",!1),3):H.return();case 3:return _.I(H,d.set("sfvles",!0),4);case 4:f=_.aS(),_.IS(0,203,!1),_.IS(0,204,!0),f.save(),_.iQ(H)}})};
ik[CG]=[wY];var cV=function(K){this.JSC$15318_prefStorage=K};
_.O(cV,ER);cV.prototype.resolveCommand=function(){var K=this,d,f;return _.c(function(H){switch(H.nextAddress){case 1:return _.I(H,K.JSC$15318_prefStorage,2);case 2:return(d=H.yieldResult)?_.I(H,d.set("sfvle",!0),3):H.return();case 3:return _.I(H,d.set("sfvles",!0),4);case 4:f=_.aS(),_.IS(0,203,!0),_.IS(0,204,!0),f.save(),_.iQ(H)}})};
cV[CG]=[wY];var myB=new _.xn("SNACKBAR_CONTROLLER_TOKEN");var uk=function(K){this.controller=K};
_.O(uk,ER);uk.prototype.resolveCommand=function(K){var d=this,f,H,D;return _.c(function(S){f=_.P(K,txv);if(!f)return S.return();H=_.P(f.content,rf9);if(!H)return S.return();var n=d.controller,u=H,a=(D=f.animationStyle)!=null?D:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(n.showSnackbarFn)n.showSnackbarFn({snackbarViewModel:u,animationStyle:a,durationMs:f.durationSeconds*1E3});else throw Error("hj");_.iQ(S)})};
uk[CG]=[myB];var aI=function(){};
_.O(aI,ER);aI.prototype.resolveCommand=function(K){var d;return _.c(function(f){d=_.P(K,uo4);if(!d||typeof d.key!=="string"||typeof d.value!=="string")return f.return();window.localStorage.setItem(d.key,d.value);_.iQ(f)})};var II=function(K){this.store=K};
_.O(II,ER);II.prototype.resolveCommand=function(K){var d=this,f;return _.c(function(H){f=_.P(K,lNo);if(!f||!f.stepId||!f.token)return H.return();d.store.dispatch(yVJ({stepId:f.stepId,token:f.token,isSelected:!1}));_.iQ(H)})};
II[CG]=[y_];var Ul=function(K,d,f){this.innertubeTransportService=K;this.store=d;this.JSC$15334_screenManager=f};
_.O(Ul,ER);
Ul.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J,L,fB,w,yO,FX;return _.c(function(NJ){f=_.P(K,Uv8);if(!f||(H=f.stepIds)==null||!H.length)return NJ.return();D=d.store.getState().talkToRecs;S=[];n=[];u=_.y(f.stepIds);for(a=u.next();!a.done;a=u.next())for(R=a.value,F=void 0,(z=(F=D.stepStates[R])==null?void 0:F.userQuery)&&n.push({userQuery:z.userQuery,userQueryToken:z.token}),v=void 0,g=(v=D.stepStates[R])==null?void 0:v.selectionStates,N=_.y(Object.entries(g)),h=
N.next();!h.done;h=N.next())m=h.value,T=_.y(m),r=T.next().value,J=T.next().value,L=r,fB=J,fB.isSelected&&S.push(L);w={selectedChipTokens:S,userQueries:n,submittedStepIds:f.stepIds};yO={browseTalk2recsFormData:w};f.browseEndpoint?(FX=K,_.OP(FX,_.is,f.browseEndpoint)):f.command&&(FX=f.command);return FX?_.I(NJ,_.Wp(d.innertubeTransportService,FX,{formData:yO,disableCache:!0}).then(function($z){($z==null?0:$z.trackingParams)&&d.JSC$15334_screenManager.graftServerVe($z==null?void 0:$z.trackingParams)}),
0):NJ.return()})};
Ul[CG]=[_.Nn,y_,_.FD];var RI=function(K){this.store=K};
_.O(RI,ER);RI.prototype.resolveCommand=function(K){var d=this,f;return _.c(function(H){f=_.P(K,mEY);if(!f||!f.stepId||!f.token)return H.return();d.store.dispatch(yVJ({stepId:f.stepId,token:f.token,isSelected:!0}));_.iQ(H)})};
RI[CG]=[y_];var FZ=function(K){this.store=K};
_.O(FZ,ER);FZ.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u;return _.c(function(a){H=_.P(K,RCt);if(!H||!H.stepId||!H.userQueryToken)return a.return();u=(n=(D=d)==null?void 0:(S=D.form)==null?void 0:S.userQuery)!=null?n:"";f.store.dispatch(_.es({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:H.stepId,userQueryToken:H.userQueryToken,userQuery:u}}));_.iQ(a)})};
FZ[CG]=[y_];_.lCt=new _.xn("TIMELY_ACTIONS_CONTROLLER_TOKEN");var zP=function(K){this.controller=K};
_.O(zP,ER);zP.prototype.resolveCommand=function(K){var d=this,f,H,D,S;return _.c(function(n){f=_.P(K,Qtk);if(!f)return n.return();H=f;D=H.id;S=H.isVisible;if(D===void 0||S===void 0)return n.return();var u;(u=d.controller.timelyActionsMap.get(D))==null||u(D,S);_.iQ(n)})};
zP[CG]=[_.lCt];var WFN=function(){this.timelyActionsMap=new Map};var XZ=function(K){this.JSC$15361_commandHandler=K};
_.O(XZ,ER);XZ.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n;return _.c(function(u){f=_.P(K,_.aa);if(!f)return u.return();S=(H=f.item)==null?void 0:(D=H.notificationTextRenderer)==null?void 0:D.successResponseText;if(!S)return u.return();n=_.xo(S);d.JSC$15361_commandHandler.resolveCommand(n);_.iQ(u)})};
XZ[CG]=[_.pQ];var vV=function(K,d){this.innertubeTransportService=K;this.JSC$15366_playerApiPromise=d};
_.O(vV,ER);
vV.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n,u,a,R,F;return _.c(function(z){if(z.nextAddress==1)return _.I(z,d.JSC$15366_playerApiPromise,2);f=z.yieldResult;H=f.getOption("captions","track");D=Object.assign({},_.P(K,_.miL));(n=(S=f.getVideoData())==null?void 0:S.video_id)?D.externalVideoId=n:_.rF(Error("Ai"));if((u=H)==null?0:u.languageCode)D.languageCode=H.languageCode;if((a=H)==null?0:a.kind)D.kind=H.kind;if((R=H)==null?0:R.name)D.name=H.name;F=Object.assign({},K,{getTranscriptEndpoint:D});return _.I(z,
_.Wp(d.innertubeTransportService,F),0)})};
vV[CG]=[_.Nn,_.kP];var M1=function(){};
_.O(M1,ER);M1.prototype.resolveCommand=function(K){var d,f,H,D,S,n,u,a;return _.c(function(R){d=_.P(K,MRJ);if((f=d)==null||!f.paramKeyValuePairs)return R.return();H=window.location.href;D=_.y(d.paramKeyValuePairs);for(S=D.next();!S.done;S=D.next())n=S.value,n.key&&n.value&&(u={},H=_.xM(H,(u[n.key]=n.value,u)));a=_.eq().resolve(_.SE);_.V3(a,H);_.iQ(R)})};var PV=function(K,d){this.JSC$15373_commandHandler=K;this.innertubeTransportService=d};
_.O(PV,ER);
PV.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J;return _.c(function(L){switch(L.nextAddress){case 1:return(S=(H=d)==null?void 0:(D=H.form)==null?void 0:D.element)&&_.lc(S),n=_.aS().get("hl"),u="",_.HF(L,2),_.I(L,jx5(n),4);case 4:u=L.yieldResult;_.Ts(L,3);break;case 2:return _.n7(L),S&&_.W$(S),_.$7(Error("Ci"),"ERROR"),L.return();case 3:a=_.P(K,aDt);if(!a)return S&&_.W$(S),L.return();(z=(R=a.commerceActionConfig)==null?void 0:(F=R.commandLifeCycleConfig)==null?
void 0:F.onStartCommand)&&f.JSC$15373_commandHandler.resolveCommand(z);return _.I(L,_.Wp(f.innertubeTransportService,K,{client_data:{paymentsClientToken:{token:u}}}),5);case 5:(v=L.yieldResult)?(S&&_.W$(S),((m=v)==null?0:m.command)&&f.JSC$15373_commandHandler.resolveCommand(v.command),(J=(T=a.commerceActionConfig)==null?void 0:(r=T.commandLifeCycleConfig)==null?void 0:r.onSuccessCommand)&&f.JSC$15373_commandHandler.resolveCommand(J)):(S&&_.W$(S),_.$7(Error("Di")),(h=(g=a.commerceActionConfig)==null?
void 0:(N=g.commandLifeCycleConfig)==null?void 0:N.onFailureCommand)&&f.JSC$15373_commandHandler.resolveCommand(h)),_.iQ(L)}})};
PV[CG]=[_.pQ,_.Nn];var gq=function(K,d,f){this.store=K;this.JSC$15389_commandHandler=d;this.innertubeTransportService=f};
_.O(gq,ER);
gq.prototype.resolveCommand=function(K,d){var f=this,H,D,S,n,u,a,R,F,z;return _.c(function(v){H=_.P(K,IDH);D=H.googlePaymentPayload;H.onStartCommand&&f.JSC$15389_commandHandler.resolveCommand(H.onStartCommand);S=D.encryptedPurchaseParams;n=D.ypcLogWalletAnalyticDataEndpoint;u=H.serializedTransactionFlowLoggingParams;a=D.serializedPaymentsClientParams;R=H.ypcCujContext;z=LpO(f.innertubeTransportService,(F=d)==null?void 0:F.form,S,n,u,a,R);return v.return(z.then(function(g){Cjz(d==null?void 0:d.form,
!1);var N=f.store,h=f.JSC$15389_commandHandler,m=g.integratorData;m==null||m===""||g.error!=null?(String(g.error)==="-1"&&H.onDismissCommand?h.resolveCommand(H.onDismissCommand):String(g.error)!=="-1"&&H.onFailureCommand&&h.resolveCommand(H.onFailureCommand),String(g.error)!=="-1"&&String(g.error)!=="132"&&_.$7(Error("Ei"),"ERROR")):(H.googlePaymentEntityKey&&N.dispatch(_.nt("commerceAcquisitionClientPayloadEntity",H.googlePaymentEntityKey,{key:H.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:m,
fundsGuaranteeCallbackClientData:g.integratorClientCallbackData}}})),H.onSuccessCommand&&h.resolveCommand(H.onSuccessCommand));_.HG()},function(g){Cjz(d==null?void 0:d.form,!1);
_.$7(g,"ERROR");H.onFailureCommand&&f.JSC$15389_commandHandler.resolveCommand(H.onFailureCommand)}))})};
gq[CG]=[Ks,_.pQ,_.Nn];var Ol=function(K,d){this.JSC$15393_commandHandler=K;this.purchaseManager=d};
_.O(Ol,ER);
Ol.prototype.resolveCommand=function(K){var d=this,f,H,D,S,n,u,a,R,F;return _.c(function(z){f=_.P(K,UVf);((H=f)==null?0:(D=H.commandLifeCycleConfig)==null?0:D.onStartCommand)&&d.JSC$15393_commandHandler.resolveCommand(f.commandLifeCycleConfig.onStartCommand);if(!((S=f)==null?0:(n=S.googlePaymentPurchaseManagerPayload)==null?0:n.securePayloadBytes))return _.$7(Error("Fi"),"ERROR"),z.return();u=lp8(_.Us(f.googlePaymentPurchaseManagerPayload.securePayloadBytes));a=_.aS().get("hl");R=_.Gz();jVL(u.serialize(),
a,function(v){R.resolve(v)},function(v){R.reject(v)},R.resolve);
F=R.promise;return z.return(F.then(function(v){if(v)if(v==null?0:v.errorCode){_.$7(Error("Gi`"+v.errorCode),"ERROR");var g,N;((g=f)==null?0:(N=g.commandLifeCycleConfig)==null?0:N.onFailureCommand)&&d.JSC$15393_commandHandler.resolveCommand(f.commandLifeCycleConfig.onFailureCommand)}else if(v==null?0:v.isCancelled){var h,m;((h=f)==null?0:(m=h.commandLifeCycleConfig)==null?0:m.onCancelCommand)&&d.JSC$15393_commandHandler.resolveCommand(f.commandLifeCycleConfig.onCancelCommand)}else{var T,r;((T=f)==
null?0:(r=T.commandLifeCycleConfig)==null?0:r.onSuccessCommand)&&d.JSC$15393_commandHandler.resolveCommand(f.commandLifeCycleConfig.onSuccessCommand)}},function(v){_.$7(v,"ERROR");
var g,N;((g=f)==null?0:(N=g.commandLifeCycleConfig)==null?0:N.onFailureCommand)&&d.JSC$15393_commandHandler.resolveCommand(f.commandLifeCycleConfig.onFailureCommand)}))})};
Ol[CG]=[_.pQ,Cus];var G_2=function(K,d){this.JSC$15401_commandHandler=K;this.commandAllowlistOverride=d;var f;this.commandAllowlist=(f=this.commandAllowlistOverride)!=null?f:Ah};
G_2.prototype.handleResponse=function(K,d,f){var H,D=d==null?void 0:(H=d.config)==null?void 0:H.command;if(!D||this.commandAllowlist.some(function(S){return!!_.P(D,S)})){d=void 0;
f!==void 0&&(d={form:{element:f}});K.onResponseReceivedCommand&&this.JSC$15401_commandHandler.resolveCommand(K.onResponseReceivedCommand,d);K.onResponseReceivedAction&&this.JSC$15401_commandHandler.resolveCommand(K.onResponseReceivedAction,d);K.onResponseReceivedEndpoint&&this.JSC$15401_commandHandler.resolveCommand(K.onResponseReceivedEndpoint,d);K.command&&this.JSC$15401_commandHandler.resolveCommand(K.command,d);if(K.onResponseReceivedCommands)for(f=_.y(K.onResponseReceivedCommands),H=f.next();!H.done;H=
f.next())this.JSC$15401_commandHandler.resolveCommand(H.value,d);if(K.onResponseReceivedActions)for(f=_.y(K.onResponseReceivedActions),H=f.next();!H.done;H=f.next())this.JSC$15401_commandHandler.resolveCommand(H.value,d);if(K.onResponseReceivedEndpoints)for(f=_.y(K.onResponseReceivedEndpoints),H=f.next();!H.done;H=f.next())this.JSC$15401_commandHandler.resolveCommand(H.value,d);if(K.actions)for(K=_.y(K.actions),f=K.next();!f.done;f=K.next())this.JSC$15401_commandHandler.resolveCommand(f.value,d)}};
G_2[CG]=[_.pQ,_.Zd(IcN)];var AkB=new _.xn("INNERTUBE_TOKEN_SERVICE");var TE8=new _.xn("SCHEDULER_TOKEN");var rkv=function(K){this.scheduler=K;K={};this.tokenMap=(K.app={},K.user={},K)};
rkv.prototype.handleResponse=function(K,d){if(!d)throw Error("Hi");var f;if(K=(f=K.responseContext)==null?void 0:f.innertubeTokenJar){if(K.appTokens){var H,D,S;f=(H=d.innerTubeRequest.context)==null?void 0:(D=H.request)==null?void 0:(S=D.innertubeTokenJar)==null?void 0:S.appTokens;qwJ(this,K.appTokens,this.tokenMap.app,f)}if(K.userTokens){var n,u,a;d=(n=d.innerTubeRequest.context)==null?void 0:(u=n.request)==null?void 0:(a=u.innertubeTokenJar)==null?void 0:a.userTokens;qwJ(this,K.userTokens,this.tokenMap.user,
d)}}};
rkv.prototype.processContext=function(K){K.request||(K.request={});var d=Object.keys(this.tokenMap.app).length,f=Object.keys(this.tokenMap.user).length;if(d||f)K.request.innertubeTokenJar={},d&&(K.request.innertubeTokenJar.appTokens=[].concat(_.Me(Object.values(this.tokenMap.app).flat()))),f&&(K.request.innertubeTokenJar.userTokens=[].concat(_.Me(Object.values(this.tokenMap.user).flat())))};
var qwJ=function(K,d,f,H){d=_.y(d);for(var D=d.next(),S={};!D.done;S={token$jscomp$137:void 0},D=d.next()){S.token$jscomp$137=D.value;if(S.token$jscomp$137.type===void 0)throw new _.X4("InnerTube token has no type",S.token$jscomp$137);if(S.token$jscomp$137.clearTokens)f[S.token$jscomp$137.type]=[];else if(S.token$jscomp$137.value!==void 0){f[S.token$jscomp$137.type]||(f[S.token$jscomp$137.type]=[]);if(H!==void 0&&H.length){D=_.y(H);for(var n=D.next(),u={};!n.done;u={requestToken:void 0},n=D.next())u.requestToken=
n.value,n=f[S.token$jscomp$137.type].findIndex(function(a){return function(R){return R===a.requestToken||(0,_.PR.equals)(R,a.requestToken)}}(u)),n>-1&&f[S.token$jscomp$137.type].splice(n,1)}f[S.token$jscomp$137.type].push(S.token$jscomp$137);
S.token$jscomp$137.maxAgeSeconds&&Number(S.token$jscomp$137.maxAgeSeconds)>0&&K.scheduler.addLowPriorityJob(function(a){return function(){var R=f[a.token$jscomp$137.type].indexOf(a.token$jscomp$137);R>-1&&f[a.token$jscomp$137.type].splice(R,1)}}(S),Number(S.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.X4("InnerTube token has no value",S.token$jscomp$137);
}};
rkv[CG]=[TE8];var Qyt=new _.xn("LOCAL_INNERTUBE_ROUTER_TOKEN"),jyk=new _.xn("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var N1=function(K){this.serviceMap=K};
N1.prototype.shouldPreferLocalResponse=function(K,d){return(K=Ctv(this,K))?K.shouldPreferLocalResponse(d):!1};
N1.prototype.localInnertubeResponse=function(K,d){var f=this,H;return _.c(function(D){return(H=Ctv(f,K))?D.return(H.localInnertubeResponse(d)):D.return(Promise.reject(Error("Ii")))})};
N1.prototype.canProvideFallbackResponse=function(K,d){return(K=Ctv(this,K))?K.canProvideFallbackResponse(d):!1};
N1.prototype.localFallbackInnertubeResponse=function(K,d){var f=this,H;return _.c(function(D){return(H=Ctv(f,K))?D.return(H.localFallbackInnertubeResponse(d)):D.return(Promise.reject(Error("Ii")))})};
var Ctv=function(K,d){d=_.ny(d);return d?(K=K.serviceMap[d])?K:null:null};
N1[CG]=[jyk];var I1=function(){};
I1.prototype.shouldPreferLocalResponse=function(){return!1};
I1.prototype.localInnertubeResponse=function(){return _.c(function(K){return K.return(Promise.reject(Error("Ji")))})};
I1.prototype.canProvideFallbackResponse=function(){return!0};
I1.prototype.localFallbackInnertubeResponse=function(){var K,d,f;return _.c(function(H){K=R9("CLOSE_POPUP");d={openPopupAction:J8O()};f={actions:[K,d]};return H.return(f)})};var Okp=function(K,d){this.JSC$15451_upliftPromise=K;this.store=d};
_.V=Okp.prototype;_.V.shouldPreferLocalResponse=function(K){var d=K.videoId,f;if(f=d)f=o5Y(this.store.getState().entities,K.videoId);return f&&$gX(this.store.getState().entities,d)?kXu(this.store.getState().entities,K.playlistId):!1};
_.V.localInnertubeResponse=function(K){var d=this,f;return _.c(function(H){return(f=d.getPlayerResponse(K))?H.return(Promise.resolve(f)):H.return(Promise.reject(Error("Ki")))})};
_.V.canProvideFallbackResponse=function(K){return!!K.videoId};
_.V.localFallbackInnertubeResponse=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,d.JSC$15451_upliftPromise,2);f=d.getPlayerResponse(K);var D;f?D=H.return(Promise.resolve(f)):D=Fs(d.store.getState().entities,K.videoId)?H.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.kJ(_.iB("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:MLS()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
H.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.kJ(_.iB("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:vgY()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return D})};
_.V.getPlayerResponse=function(K){return dV5(this.store.getState().entities,K.videoId)};var a1=function(K,d){this.localPlayerService=K;this.localWatchNextService=d};
a1.prototype.shouldPreferLocalResponse=function(K){var d=K.playerRequest;K=K.watchNextRequest;return!!(d&&this.localPlayerService.shouldPreferLocalResponse(d)&&K&&this.localWatchNextService.shouldPreferLocalResponse(K))};
a1.prototype.localInnertubeResponse=function(K){var d=this,f,H,D,S;return _.c(function(n){if(n.nextAddress==1){f=K.playerRequest;H=K.watchNextRequest;if(!f||!H)throw new _.X4("Missing streaming request",K);return _.I(n,d.localPlayerService.localInnertubeResponse(f),2)}if(n.nextAddress!=3)return D=n.yieldResult,_.I(n,d.localWatchNextService.localInnertubeResponse(H),3);S=n.yieldResult;return n.return({playerResponse:D,watchNextResponse:S})})};
a1.prototype.canProvideFallbackResponse=function(K){var d=K.playerRequest;K=K.watchNextRequest;return!!(d&&this.localPlayerService.canProvideFallbackResponse(d)&&K&&this.localWatchNextService.canProvideFallbackResponse(K))};
a1.prototype.localFallbackInnertubeResponse=function(K){var d=this,f,H,D,S;return _.c(function(n){if(n.nextAddress==1)return f=K.playerRequest,H=K.watchNextRequest,f&&H?_.I(n,d.localPlayerService.localFallbackInnertubeResponse(f),2):n.return(Promise.reject(new _.X4("Missing streaming request",K)));if(n.nextAddress!=3)return D=n.yieldResult,_.I(n,d.localWatchNextService.localFallbackInnertubeResponse(H),3);S=n.yieldResult;return n.return({playerResponse:D,watchNextResponse:S})})};var ns=function(K){this.JSC$15461_persistentStorePromiseAccessor=K};
ns.prototype.shouldPreferLocalResponse=function(){return!1};
ns.prototype.localInnertubeResponse=function(){return _.c(function(K){return K.return(Promise.reject(Error("Li")))})};
ns.prototype.canProvideFallbackResponse=function(){return!0};
ns.prototype.localFallbackInnertubeResponse=function(){var K=this,d,f;return _.c(function(H){return H.nextAddress==1?_.I(H,K.JSC$15461_persistentStorePromiseAccessor(),2):H.nextAddress!=3?(d=H.yieldResult)?_.I(H,d.get("service:guide:fallback"),3):H.return(Promise.reject(Error("Mi"))):(f=H.yieldResult)&&_.ed(f)?H.return(wlG(_.ed(f))):H.return(Promise.reject(Error("Ni")))})};var Ua=function(){};
Ua.prototype.shouldPreferLocalResponse=function(){return!1};
Ua.prototype.localInnertubeResponse=function(){return _.c(function(K){return K.return(Promise.reject(Error("Oi")))})};
Ua.prototype.canProvideFallbackResponse=function(){return!0};
Ua.prototype.localFallbackInnertubeResponse=function(){var K,d,f;return _.c(function(H){K=R9("CLOSE_POPUP");d={openPopupAction:J8O()};f={actions:[K,d]};return H.return(f)})};var yI=function(){this.urlMap=xyf;this.fallbackCommand=_.yg};
yI.prototype.shouldPreferLocalResponse=function(K){return(K=K.url)?!!LFs(this,K):!1};
yI.prototype.localInnertubeResponse=function(K){var d=this,f;return _.c(function(H){return(f=K.url)?H.return(BEk(K,LFs(d,f))):H.return(Promise.reject(Error("Pi")))})};
yI.prototype.canProvideFallbackResponse=function(){return!0};
yI.prototype.localFallbackInnertubeResponse=function(K){var d=this,f,H,D,S,n,u,a;return _.c(function(R){f=K.url;if(!f)return R.return(BEk(K,d.fallbackCommand));if(H=LFs(d,f))return R.return(BEk(K,H));D=void 0;S=_.ny(f);S==="/watch"&&(n=_.rG(f,"v"))&&(a=(u=_.rG(f,"list"))!=null?u:void 0,D=_.sx(n,a));D||(D=d.fallbackCommand);return R.return(BEk(K,D))})};
var LFs=function(K,d){if(d)return K.urlMap[_.W0(d)]},BEk=function(K,d){d&&K.parentTrackingParams&&(d.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:K.parentTrackingParams}},d.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:d})};var cd=function(K,d,f){this.JSC$15471_upliftPromise=K;this.store=d;this.JSC$15471_persistentStorePromiseAccessor=f};
cd.prototype.shouldPreferLocalResponse=function(){return!1};
cd.prototype.localInnertubeResponse=function(){return _.c(function(K){return K.return(Promise.reject(Error("Qi")))})};
cd.prototype.canProvideFallbackResponse=function(){return!0};
cd.prototype.localFallbackInnertubeResponse=function(){var K=this;return _.c(function(d){return d.return(Jkf(K))})};
var Jkf=function(K){var d,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,Zl(K.JSC$15471_upliftPromise,K.store),2);d=H.yieldResult;f={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[sxz(d)]}}}};return H.return(sy2(K,f))})},sy2=function(K,d){var f,H;
return _.c(function(D){if(D.nextAddress==1)return _.I(D,K.JSC$15471_persistentStorePromiseAccessor(),2);if(D.nextAddress!=3)return f=D.yieldResult,_.I(D,pY(f),3);H=D.yieldResult;return D.return({responseContext:{},contents:d,topbar:H})})};var VI=function(K,d,f){this.JSC$15478_upliftPromise=K;this.store=d;this.JSC$15478_persistentStorePromiseAccessor=f};
VI.prototype.shouldPreferLocalResponse=function(K){var d=K.videoId;return d&&o5Y(this.store.getState().entities,d)&&$gX(this.store.getState().entities,d)?kXu(this.store.getState().entities,K.playlistId):!1};
VI.prototype.localInnertubeResponse=function(K){var d=this,f,H;return _.c(function(D){if(D.nextAddress==1)return(f=K.videoId)?_.I(D,d.JSC$15478_upliftPromise,2):D.return(Promise.reject(Error("Ri")));if(D.nextAddress!=3)return _.I(D,k_6(d,K,f),3);H=D.yieldResult;return D.return(w8f(d,H,f))})};
VI.prototype.canProvideFallbackResponse=function(K){return K.videoId?!0:!1};
VI.prototype.localFallbackInnertubeResponse=function(K){var d=this,f,H,D,S;return _.c(function(n){switch(n.nextAddress){case 1:return(f=K.videoId)?_.I(n,d.JSC$15478_upliftPromise,2):n.return(Promise.reject(Error("Ri")));case 2:return _.I(n,k_6(d,K,f),3);case 3:H=n.yieldResult;if(Fs(d.store.getState().entities,f)){n.jumpTo(4);break}return _.I(n,Zl(d.JSC$15478_upliftPromise,d.store),5);case 5:return D=n.yieldResult,n.return(ZR9(H,D));case 4:return o5Y(d.store.getState().entities,f)&&$gX(d.store.getState().entities,
f)?n.return(w8f(d,H,f)):(S={title:_.kJ(_.iB("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:MLS()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},n.return(ZR9(H,S)))}})};
var k_6=function(K,d,f){var H,D,S,n,u;return _.c(function(a){if(a.nextAddress==1)return H=d.playlistId,D=_.sx(f,H),_.I(a,K.JSC$15478_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3)return S=a.yieldResult,_.I(a,pY(S),3);n=a.yieldResult;u={responseContext:{},currentVideoEndpoint:D,topbar:n};return a.return(u)})},w8f=function(K,d,f){if(K=Fs(K.store.getState().entities,f)){var H;
f=K.videoEntity;var D,S={title:wN(f.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.ZE((H=f.localizedStrings)==null?void 0:H.viewCount),viewCount:_.ZE((D=f.localizedStrings)==null?void 0:D.viewCount)}}};f.publishedTimestampMillis&&(S.dateText=_.ZE(CqX(new Date(Number(f.publishedTimestampMillis)))));H={videoPrimaryInfoRenderer:S};D=K.videoEntity;K=K.channelEntity;K={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:wN(_.iB("SHOW_MORE",void 0,"Show more")),
showLessText:wN(_.iB("SHOW_LESS",void 0,"Show less")),description:D.formattedDescription,owner:{videoOwnerRenderer:{title:wN(K.title),thumbnail:K.avatar}}}};d.contents={twoColumnWatchNextResults:{results:{results:{contents:[H,K]}}}}}return d},ZR9=function(K,d){K.contents={singleColumnWatchNextResults:{results:{results:{contents:[sxz(d)]}}}};
return K};var uf=function(K,d,f){this.JSC$15483_upliftPromise=K;this.store=d;this.JSC$15483_persistentStorePromiseAccessor=f};
uf.prototype.shouldPreferLocalResponse=function(){return!1};
uf.prototype.localInnertubeResponse=function(){return _.c(function(K){return K.return(Promise.reject(Error("Si")))})};
uf.prototype.canProvideFallbackResponse=function(){return!0};
uf.prototype.localFallbackInnertubeResponse=function(){var K=this,d,f,H,D;return _.c(function(S){switch(S.nextAddress){case 1:return _.I(S,K.JSC$15483_persistentStorePromiseAccessor(),2);case 2:return d=S.yieldResult,_.I(S,pY(d),3);case 3:return f=S.yieldResult,H={responseContext:{},topbar:f},_.I(S,K.JSC$15483_upliftPromise,4);case 4:return _.I(S,Zl(K.JSC$15483_upliftPromise,K.store),5);case 5:return D=S.yieldResult,H.watchStatus={backgroundPromoRenderer:D},S.return(H)}})};var ejs=new _.xn("ENDPOINT_MAP");var p8s=function(){var K=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return K.sequenceMap}}},JWs=function(K,d,f){var H,D=(H=d.config)==null?void 0:H.sequenceStrategy;
if(!D)return f();K.sequenceMap.has(D.sequenceKey)||K.sequenceMap.set(D.sequenceKey,[]);K=K.sequenceMap.get(D.sequenceKey);switch(D.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Ky2(K,d,f);case "REQUEST_SEQUENCE_TYPE_REPLACE":return dMJ(K,d,f);default:throw new _.X4("Request could not be sequenced",d);}},Ky2=function(K,d,f){var H,D,S;
return _.c(function(n){K.length>0?(D=K[K.length-1],H=D.responsePromise.then(function(){return f()})):H=f();
S={request:d,responsePromise:H};K.push(S);fAJ(K,S);return n.return(S.responsePromise)})},dMJ=function(K,d,f){f=f();
if(K.length>0)for(var H=_.y(K),D=H.next();!D.done;D=H.next())D.value.responsePromise=f;var S={request:d,responsePromise:f};K.push(S);fAJ(K,S);return Promise.resolve().then(function(){return K.indexOf(S)>0?S.responsePromise.then(function(n){return Object.assign({},n,{sequenceMetaData:{skipProcessing:!0}})}):S.responsePromise})},fAJ=function(K,d){d.responsePromise.then(function(){var f=K.indexOf(d);
f>-1&&K.splice(f,1)})};var Hp6=new _.xn("REQUEST_SEQUENCING");var YE=function(){};
_.O(YE,eJ);YE.prototype.getApiPaths=function(){return[]};
YE.prototype.getExtension=function(K){return _.P(K,GDk)};
YE.prototype.JSC$10995_buildRequest=function(K,d){K.recaptchaToken=d.recaptchaToken};
YE.prototype.getApiUrl=function(){return"/das_captcha"};var tO=function(){};
_.O(tO,eJ);tO.prototype.getApiPaths=function(){return uvB};
tO.prototype.getExtension=function(K){return _.P(K,is4)};
tO.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.createBackstagePostParams&&(K.createBackstagePostParams=d.createBackstagePostParams);f.comment_text&&(K.commentText=f.comment_text);if(f.attached_video_id)K.videoAttachment={videoId:f.attached_video_id};else if(f.image_poll_options)K.pollAttachmentData={options:f.image_poll_options};else if(f.poll_options)K.pollAttachment={choices:f.poll_options};else if(f.quiz_options)K.quizAttachmentData={options:f.quiz_options};else if(f.image_blob_id)K.imageAttachment=
{encryptedBlobId:f.image_blob_id},f.source_video_id&&(K.imageAttachment.sourceExternalVideoId=f.source_video_id),f.image_preview_coordinates&&(K.imageAttachment.previewCoordinates=JSON.parse(f.image_preview_coordinates));else if(f.images_data)K.imagesAttachment={imagesData:f.images_data};else if(f.clip_external_video_id!==void 0||f.clip_offset_ms!==void 0||f.clip_duration_ms!==void 0){var H,D,S,n,u;K.clipAttachment={externalVideoId:(S=f.clip_external_video_id)!=null?S:"",offsetMs:(n=(H=f.clip_offset_ms)==
null?void 0:H.toString())!=null?n:"",durationMs:(u=(D=f.clip_duration_ms)==null?void 0:D.toString())!=null?u:""}}else f.shared_post_id&&(K.sharedPostAttachment={postId:f.shared_post_id});f.tagged_video_id&&(K.postCreationData={taggedVideoId:f.tagged_video_id});f.access_restrictions&&(typeof f.access_restrictions==="number"&&(d=f.access_restrictions,K.accessRestrictions={restriction:d!==1&&d===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof f.access_restrictions==="string"&&
(K.accessRestrictionsParams=f.access_restrictions));f.scheduled_publish_time_sec&&(K.scheduledPublishTimeSec=f.scheduled_publish_time_sec.toString())};var oI=function(){};
_.O(oI,eJ);oI.prototype.getApiPaths=function(){return X5H};
oI.prototype.getExtension=function(K){return _.P(K,Uhv)};
oI.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.decorateMessageParams&&(K.params=d.decorateMessageParams);f.text&&(K.text=f.text)};var $E=function(){};
_.O($E,eJ);$E.prototype.getApiPaths=function(){return r_v};
$E.prototype.getExtension=function(K){return _.P(K,cmk)};
$E.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;f.video_id&&(K.videoId=f.video_id)};var El=function(){};
_.O(El,eJ);El.prototype.getApiPaths=function(){return LMs};
El.prototype.getExtension=function(K){return _.P(K,_.y$)};
El.prototype.JSC$10995_buildRequest=function(K,d,f){f.suggestions_query&&(K.input=f.suggestions_query)};var hO=function(){};
_.O(hO,eJ);hO.prototype.getApiPaths=function(){return OIv};
hO.prototype.getExtension=function(K){return _.P(K,umJ)};
hO.prototype.JSC$10995_buildRequest=function(K,d,f){f.comment_text!==void 0&&(K.commentText=f.comment_text);f.scheduled_publish_time_sec&&(K.scheduledPublishTimeSec=f.scheduled_publish_time_sec.toString());K.updateBackstagePostParams=d.updateBackstagePostParams};var bk=function(){};
_.O(bk,eJ);bk.prototype.getApiPaths=function(){return x6};
bk.prototype.getExtension=function(K){return _.P(K,_.$P)};
bk.prototype.JSC$10995_buildRequest=function(K,d,f){f.formData&&(K.formData=f.formData);d.token?K.continuation=d.token:d.continuationTokenKey&&(f=_.j3().getState(),d=_.DR(f.entities,"continuationTokenEntity",d.continuationTokenKey))&&(K.continuation=String(d.continuationToken))};
var DM2=function(){};
_.O(DM2,eJ);_.V=DM2.prototype;_.V.getApiPaths=function(){return x6};
_.V.getExtension=function(K){return _.P(K,_.is)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$11002_getStoreKey=function(K){if((K=this.getExtension(K))&&K.browseId){var d={browseId:K.browseId};K.browseEndpointContextSupportedConfigs&&(d.browseEndpointContextSupportedConfigs=JSON.stringify(K.browseEndpointContextSupportedConfigs));K.params&&(d.params=K.params);K.query&&(d.query=K.query);return _.rL("browse",d)}};
_.V.JSC$10995_buildRequest=function(K,d,f){d.browseId&&(K.browseId=d.browseId);d.params&&(K.params=d.params);d.query&&(K.query=d.query);f.formData?K.formData=f.formData:d.formData&&(K.formData=d.formData);d.browseId==="FEsubscriptions"&&_.aS().getFlag(155)&&(K.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");d.browseId==="SPaccount_playback"&&(f=_.aS(),K.formData||(K.formData={}),K.formData.accountSettingsFormData={flagCaptionsDefaultOff:f.getFlag(65),flagAutoCaptionsDefaultOn:f.getFlag(66),
flagDisableInlinePreview:f.getFlag(186),flagAudioDescriptionDefaultOn:f.getFlag(198)});if(d.browseId==="FEwhat_to_watch"){f=_.aS();var H=f.getFlag(196);f.getFlag(197)&&(K.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:H}}})}d.browseId==="FEwhat_to_watch"&&(d=_.aS().getFlag(186),K.inlineSettingStatus=d?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.V.getRequestConfig=function(K,d){d=d===void 0?{}:d;var f={};if(K=this.JSC$11002_getStoreKey(K,d))f.storeStrategy={storeKey:K,disableCache:d.disableCache};_.M("web_log_browse_ticks_ks")||(f.requestTick="br_s",f.responseTick="br_r");return f};var m_=function(){};
_.O(m_,eJ);m_.prototype.getApiPaths=function(){return VJs};
m_.prototype.getExtension=function(K){return _.P(K,E2t)};
m_.prototype.JSC$10995_buildRequest=function(K,d,f){K.legacyYoutubeChannelUsername=f.legacyYouTubeChannelUsername||"";K.legacyYoutubeChannelPassword=f.legacyYouTubeChannelPassword||""};var lk=function(){};
_.O(lk,eJ);lk.prototype.getApiPaths=function(){return IIk};
lk.prototype.getExtension=function(K){return _.P(K,vb6)};
lk.prototype.JSC$10995_buildRequest=function(K,d,f){f.recaptcha_response_token&&(K.recaptchaResponseToken=f.recaptcha_response_token);f.channel_id&&(K.channelId=f.channel_id)};var WV=function(){};
_.O(WV,eJ);WV.prototype.getApiPaths=function(){return Nsk};
WV.prototype.getExtension=function(K){return _.P(K,Yat)};
WV.prototype.JSC$10995_buildRequest=function(K,d,f){d.externalChannelId&&(K.externalChannelId=d.externalChannelId);f.handle&&(K.handleUpdate={handle:f.handle},d.handleEditSource&&(K.handleUpdate.handleEditSource=d.handleEditSource))};var GP=function(){};
_.O(GP,eJ);GP.prototype.getApiPaths=function(){return $z8};
GP.prototype.getExtension=function(K){return _.P(K,qat)};
GP.prototype.JSC$10995_buildRequest=function(K,d,f){d.request&&(K.channelId=d.request.channelId);var H;if(f==null?0:(H=f.uploadDefaults)==null?0:H.emojiReactionSet)K.uploadDefaultsRequest||(K.uploadDefaultsRequest={}),K.uploadDefaultsRequest.emojiReactionSet=f.uploadDefaults.emojiReactionSet};var AO=function(){};
_.O(AO,eJ);AO.prototype.getApiPaths=function(){return bIt};
AO.prototype.getExtension=function(K){return _.P(K,MH4)};
AO.prototype.JSC$10995_buildRequest=function(K,d,f){d.externalChannelId&&(K.externalChannelId=d.externalChannelId);d.channelHandleEntityKey&&(K.channelHandleEntityKey=d.channelHandleEntityKey);d.handleEditSource&&(K.handleEditSource=d.handleEditSource);f.handle?K.handle=f.handle:f.name&&(K.name=f.name)};var TP=function(){};
_.O(TP,eJ);TP.prototype.getApiPaths=function(){return nf9};
TP.prototype.getExtension=function(K){return _.P(K,eef)};
TP.prototype.JSC$10995_buildRequest=function(K,d){d.actions?K.actions=d.actions:d.action&&(K.actions=[d.action])};var rq=function(){};
_.O(rq,eJ);rq.prototype.getApiPaths=function(){return i5H};
rq.prototype.getExtension=function(K){return _.P(K,_.$P)};
rq.prototype.JSC$10995_buildRequest=function(K,d){d.token&&(K.continuation=d.token)};var q1=function(){};
_.O(q1,eJ);q1.prototype.getApiPaths=function(){return A_2};
q1.prototype.getExtension=function(K){return _.P(K,_.$P)};
q1.prototype.JSC$10995_buildRequest=function(K,d){K.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";d.token&&(K.fetchCommentsParams={continuation:d.token})};var Qz=function(){};
_.O(Qz,eJ);Qz.prototype.getApiPaths=function(){return Up4};
Qz.prototype.getExtension=function(K){return _.P(K,ZTt)};
Qz.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.createReplyParams&&(K.createReplyParams=d.createReplyParams);d.commentText&&(K.commentText=_.qQ(d.commentText));f.comment_text&&(K.commentText=f.comment_text);f.image_blob_id&&(K.imageAttachment={encryptedBlobId:f.image_blob_id});f.botguard_response&&(K.botguardResponse=f.botguard_response)};
_.x$.Object.defineProperties(Qz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jn=function(){};
_.O(jn,eJ);jn.prototype.getApiPaths=function(){return Rl6};
jn.prototype.getExtension=function(K){return _.P(K,_.wEB)};
jn.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.createCommentParams&&(K.createCommentParams=d.createCommentParams);d.commentText&&(K.commentText=_.qQ(d.commentText));d.videoPositionMention&&(K.videoPositionMention=d.videoPositionMention);d.sources&&(K.sources=d.sources);f.comment_text&&(K.commentText=f.comment_text);f.attached_video_id?K.videoAttachment={videoId:f.attached_video_id}:f.poll_options?K.pollAttachment={choices:f.poll_options}:f.image_blob_id?K.imageAttachment=
{encryptedBlobId:f.image_blob_id}:f.shared_post_id&&(K.sharedPostAttachment={postId:f.shared_post_id});f.access_restrictions&&typeof f.access_restrictions==="number"&&(d=f.access_restrictions,K.accessRestrictions={restriction:d!==1&&d===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});f.botguard_response&&(K.botguardResponse=f.botguard_response)};
_.x$.Object.defineProperties(jn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var CC=function(){};
_.O(CC,eJ);CC.prototype.getApiPaths=function(){return Y9N};
CC.prototype.getExtension=function(K){return _.P(K,Kl6)};
CC.prototype.JSC$10995_buildRequest=function(K,d,f){d.commentText&&(K.replyText=_.qQ(d.commentText));f.comment_text&&(K.replyText=f.comment_text);K.updateReplyParams=d.updateReplyParams};
_.x$.Object.defineProperties(CC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xE=function(){};
_.O(xE,eJ);xE.prototype.getApiPaths=function(){return tb4};
xE.prototype.getExtension=function(K){return _.P(K,pEf)};
xE.prototype.JSC$10995_buildRequest=function(K,d,f){d.commentText&&(K.commentText=_.qQ(d.commentText));f.comment_text&&(K.commentText=f.comment_text);K.updateCommentParams=d.updateCommentParams};
_.x$.Object.defineProperties(xE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LC=function(){};
_.O(LC,eJ);LC.prototype.getApiPaths=function(){return oct};
LC.prototype.getExtension=function(K){return _.P(K,G$v)};
LC.prototype.JSC$10995_buildRequest=function(K,d){d.settings&&(K.settings=d.settings)};var BV=function(){};
_.O(BV,eJ);BV.prototype.getApiPaths=function(){return Efs};
BV.prototype.getExtension=function(K){return _.P(K,Pf8)};
BV.prototype.JSC$10995_buildRequest=function(K,d){d.channelCreationToken&&(K.channelCreationToken=d.channelCreationToken);d.source&&(K.source=d.source)};var JO=function(){};
_.O(JO,eJ);JO.prototype.getApiPaths=function(){return IBs};
JO.prototype.getExtension=function(K){return _.P(K,N7N)};
JO.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;if(f.name&&(f.given_name||f.family_name))K=new _.X4("channel creation cannot set both GAIA and YouTube names",d),_.$7(K);else{if(d.zeroStepChannelCreationParams){if(!f.comment_text){K=new _.X4("zero_step_create_comment_params but no zero_step_texts",d);_.$7(K);return}K.zeroStepChannelCreationParams=d.zeroStepChannelCreationParams;K.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(K.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
f.comment_text,f.botguard_response&&(K.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=f.botguard_response))}K.channelCreationToken=d.channelCreationToken;f.given_name&&(K.givenName=f.given_name);f.family_name&&(K.familyName=f.family_name);d.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(K.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(f.name||f.handle||f.avatar_url||f.encryptedBlobId||f.isNameChanged!==void 0||f.isHandleChanged!==void 0||f.isDefaultProfilePhoto!==
void 0||f.obakeImageSource)K.overrideChannelCreationParams={},f.name&&(K.overrideChannelCreationParams.name=f.name),f.handle&&(K.overrideChannelCreationParams.handle=f.handle),f.avatar_url&&(K.overrideChannelCreationParams.avatarUrl=f.avatar_url),f.encryptedBlobId&&(K.overrideChannelCreationParams.blobEncryptionId=f.encryptedBlobId),f.enableIdentityForAllChannelCreationDialog&&(f.encryptedBlobId?K.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
f.isDefaultProfilePhoto!==void 0&&(K.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=f.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),f.isNameChanged!==void 0&&(K.overrideChannelCreationParams.identityForAllChannelCreationNameTag=f.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),f.isHandleChanged!==
void 0&&(K.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=f.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),f.obakeImageSource&&(K.overrideChannelCreationParams.obakeImageSourceType=f.obakeImageSource))}};var sl=function(){};
_.O(sl,eJ);sl.prototype.getApiPaths=function(K){return(K=this.getExtension(K))&&K.status==="DISLIKE"?gf4:K&&K.status==="INDIFFERENT"?ncv:w5N};
sl.prototype.getExtension=function(K){return _.P(K,_.bc)};
sl.prototype.JSC$10995_buildRequest=function(K,d){d.target&&(K.target=d.target);if(d=this.getParams(d))K.params=d};
sl.prototype.getParams=function(K){switch(K==null?void 0:K.status){case "DISLIKE":return K.dislikeParams;case "INDIFFERENT":return K.removeLikeParams;default:return K==null?void 0:K.likeParams}};var kE=function(){};
_.O(kE,eJ);kE.prototype.getApiPaths=function(){return Xnf};
kE.prototype.getExtension=function(K){return _.P(K,SKf)};
kE.prototype.JSC$10995_buildRequest=function(K,d){d.settingItemId&&(K.settingItemId=d.settingItemId);d.stringValue!=null&&d.stringValue!==void 0?K.newValue={stringValue:d.stringValue}:d.intValue?K.newValue={intValue:d.intValue}:d.boolValue!==null&&d.boolValue!==void 0?K.newValue={boolValue:d.boolValue}:(K=new _.X4("Unknown value type for SetSettingEndpoint.",d),_.$7(K))};var wq=function(){};
_.O(wq,eJ);wq.prototype.getApiPaths=function(){return Mbt};
wq.prototype.getExtension=function(K){return _.P(K,Oh2)||void 0};
wq.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.channelIds&&(K.channelIds=d.channelIds);d.siloName&&(K.siloName=d.siloName);d.params&&(K.params=d.params);f.botguardResponse&&(K.botguardResponse=f.botguardResponse);f.feature&&(K.clientFeature=f.feature)};
_.x$.Object.defineProperties(wq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Zc=function(){};
_.O(Zc,eJ);Zc.prototype.getApiPaths=function(){return gcJ};
Zc.prototype.getExtension=function(K){return _.P(K,yfJ)||void 0};
Zc.prototype.JSC$10995_buildRequest=function(K,d){d.channelIds&&(K.channelIds=d.channelIds);d.siloName&&(K.siloName=d.siloName);d.params&&(K.params=d.params)};
_.x$.Object.defineProperties(Zc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var en=function(K){this.shareClientParamsProvider=K};
_.O(en,eJ);en.prototype.getApiPaths=function(){return Qv6};
en.prototype.getExtension=function(K){return _.P(K,bGf)||_.P(K,_.m0B)||_.P(K,hi2)};
en.prototype.JSC$10995_buildRequest=function(K,d){d.serializedShareEntity&&(K.serializedSharedEntity=d.serializedShareEntity);if(d.clientParamIdentifier){var f;if((f=this.shareClientParamsProvider)==null?0:f.clientParams.has(d.clientParamIdentifier)){f=this.shareClientParamsProvider;d=d.clientParamIdentifier;var H=f.clientParams.get(d);H&&f.clientParams.delete(d);K.clientParams=H}}};
en[CG]=[OV9];var pC=function(){};
_.O(pC,eJ);pC.prototype.getApiPaths=function(){return fBt};
pC.prototype.getExtension=function(K){return _.P(K,q34)};
pC.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var KS=function(){};
_.O(KS,eJ);KS.prototype.getApiPaths=function(){return O5J};
KS.prototype.getExtension=function(K){return _.P(K,AIB)};
KS.prototype.JSC$10995_buildRequest=function(K,d){d.dismissal&&(K.items=[d.dismissal])};
_.x$.Object.defineProperties(KS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var d$=function(){};
_.O(d$,eJ);d$.prototype.getApiPaths=function(){return sv8};
d$.prototype.getExtension=function(K){return _.P(K,_.g7)||void 0};
d$.prototype.JSC$10995_buildRequest=function(K,d,f){K.feedbackTokens=[];d.feedbackToken&&K.feedbackTokens.push(d.feedbackToken);if(d=d.cpn||f.cpn)K.feedbackContext={cpn:d};K.isFeedbackTokenUnencrypted=!!f.is_feedback_token_unencrypted;K.shouldMerge=!1;f.extra_feedback_tokens&&(K.shouldMerge=!0,K.feedbackTokens=K.feedbackTokens.concat(f.extra_feedback_tokens))};
_.x$.Object.defineProperties(d$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fS=function(){};
_.O(fS,eJ);fS.prototype.getApiPaths=function(){return sv8};
fS.prototype.getExtension=function(K){return _.P(K,_.y$)};
fS.prototype.JSC$10995_buildRequest=function(K,d,f){f.feedback_tokens&&(K.feedbackTokens=f.feedback_tokens,K.shouldMerge=!0)};
_.x$.Object.defineProperties(fS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var H1=function(){};
_.O(H1,eJ);H1.prototype.getApiPaths=function(){return sv8};
H1.prototype.getExtension=function(K){return _.P(K,WYX)};
H1.prototype.JSC$10995_buildRequest=function(K,d){d.undoToken&&(K.feedbackTokens=[d.undoToken]);d.isUndoTokenUnencrypted&&(K.isFeedbackTokenUnencrypted=d.isUndoTokenUnencrypted)};
_.x$.Object.defineProperties(H1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var D3=function(){};
_.O(D3,eJ);D3.prototype.getApiPaths=function(){return mzk};
D3.prototype.getExtension=function(K){return _.P(K,lbN)};
D3.prototype.JSC$10995_buildRequest=function(K,d){d.nextEndpoint&&_.P(d.nextEndpoint,_.TE)?K.nextEndpoint={urlEndpoint:_.P(d.nextEndpoint,_.TE)}:d.nextEndpoint&&_.P(d.nextEndpoint,_.qu)&&(K.nextEndpoint={watchEndpoint:_.P(d.nextEndpoint,_.qu)});d.setRacy&&(K.setRacy=d.setRacy);d.setControvercy&&(K.setControvercy=d.setControvercy)};var aN=function(K){this.JSC$15664_storeWithEntities=K};
_.O(aN,eJ);aN.prototype.getApiPaths=function(){return Y0t};
aN.prototype.getExtension=function(K){return _.P(K,DOs)};
aN.prototype.JSC$10995_buildRequest=function(K,d){d.flowId&&(K.flowId=d.flowId);d.targetId&&(K.targetId=d.targetId);d.continuation&&(K.continuation=d.continuation);var f=d.flowStateEntityKey;if(d.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&f&&this.JSC$15664_storeWithEntities){var H;if(d=(H=this.JSC$15664_storeWithEntities.getState())==null?void 0:H.entities)if(H=_.KF(f).entityType,H=_.DR(d,H,f))K.flowState=H,K.flowStateEntityKey=f}};
_.x$.Object.defineProperties(aN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
aN[CG]=[Ks];var VBv=function(){};
_.O(VBv,eJ);_.V=VBv.prototype;_.V.getApiPaths=function(){return J_8};
_.V.JSC$11002_getStoreKey=function(){return _.rL("guide")};
_.V.getRequestConfig=function(){var K=this.JSC$11002_getStoreKey(),d;K&&(d={storeStrategy:{storeKey:K}});return d};
_.V.isNavigationCommand=function(){return!0};
_.V.getExtension=function(K){return _.P(K,_.y$)};
_.V.JSC$10995_buildRequest=function(K){K.fetchLiveState=!0};var IN=function(){};
_.O(IN,eJ);IN.prototype.getApiPaths=function(){return S0s};
IN.prototype.getExtension=function(K){return _.P(K,Cet)};
IN.prototype.JSC$10995_buildRequest=function(){};var Ue=function(){};
_.O(Ue,eJ);Ue.prototype.getApiPaths=function(){return y_2};
Ue.prototype.getExtension=function(K){return _.P(K,sUN)};
Ue.prototype.JSC$10995_buildRequest=function(){};var RN=function(){};
_.O(RN,eJ);RN.prototype.getApiPaths=function(){return dpv};
RN.prototype.getExtension=function(K){return _.P(K,_.$P)};
RN.prototype.JSC$10995_buildRequest=function(K,d){d.token&&(K.continuation=d.token);var f,H;K==null||(f=K.context)==null||(H=f.user)==null||delete H.onBehalfOfUser};
RN.prototype.getRequestConfig=function(K){var d={},f;if(((f=this.getExtension(K))==null?void 0:f.sessionIndex)!==void 0){var H;d={authStrategy:{sessionIndex:(H=this.getExtension(K))==null?void 0:H.sessionIndex}}}return d};var FL=function(){};
_.O(FL,eJ);FL.prototype.JSC$10995_getRequest=function(K){var d=this.getExtension(K),f=K="";if(d==null?0:d.popup)K="true";if(d==null?0:d.disableSignout)f="true";d={};return{input:"/getAccountSwitcherEndpoint",requestShell:Tw("/getAccountSwitcherEndpoint","GET",(d["X-YouTube-Delegation-Context"]=_.mD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),d["X-YouTube-Account-Switcher-Popup"]=K,d["X-YouTube-Account-Switcher-Disable-Signout"]=f,d)),innerTubeRequest:{}}};
FL.prototype.getApiPaths=function(){return[]};
FL.prototype.getExtension=function(K){return _.P(K,_.iCz)};
FL.prototype.JSC$10995_buildRequest=function(){};var zB=function(){};
_.O(zB,eJ);zB.prototype.JSC$10995_getRequest=function(K){var d="/cross_account_channel_transfer";(K=this.getExtension(K))&&(d=v$X(d,{target_session:K.targetSessionIndex,source_rapt:K.sourceRapt,rapt:K.targetRapt}));return{input:d,requestShell:Tw(d,"GET"),innerTubeRequest:{}}};
zB.prototype.getApiPaths=function(){return[]};
zB.prototype.getExtension=function(K){return _.P(K,j9f)};
zB.prototype.JSC$10995_buildRequest=function(){};var XL=function(){};
_.O(XL,eJ);XL.prototype.getApiPaths=function(){return tJN};
XL.prototype.isNavigationCommand=function(){return!0};
XL.prototype.getExtension=function(K){return _.P(K,_.y$)};
XL.prototype.JSC$10995_buildRequest=function(K){var d=_.aS().get("gsml","");d&&(K.safetyModeLockerObfuscatedGaiaId=d);K.userInterfaceTheme=_.X7(!0);_.vW()?K.deviceTheme="DEVICE_THEME_SELECTED":_.R4J()?K.deviceTheme="DEVICE_THEME_SUPPORTED":K.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var v1=function(){};
_.O(v1,eJ);v1.prototype.getApiPaths=function(){return dpv};
v1.prototype.getExtension=function(K){return _.P(K,CcH)};
v1.prototype.JSC$10995_buildRequest=function(K,d){if(d&&d.requestType&&(K.requestType=d.requestType,d.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||d.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var f=d.nextUrl;f&&(_.PTo(f)||kM(f))&&(K.nextNavendpoint={urlEndpoint:{url:f}})}d&&d.channelSwitcherQuery&&(K.channelSwitcherQuery=d.channelSwitcherQuery);d&&d.triggerChannelCreation&&(K.triggerChannelCreation=d.triggerChannelCreation);var H;if(d==null?0:(H=d.contentOwnerConfig)==
null?0:H.externalContentOwnerId)K.contentOwnerConfig=d.contentOwnerConfig;K.callCircumstance=d&&d.requestType&&d.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var D,S;d=K==null?void 0:(D=K.context)==null?void 0:(S=D.user)==null?void 0:S.onBehalfOfUser;if(d!==void 0){K.obfuscatedSelectedGaiaId=d;var n,u;K==null||(n=K.context)==null||(u=n.user)==null||delete u.onBehalfOfUser}var a,R;if(D=K==null?void 0:(a=K.context)==null?void 0:(R=a.user)==null?
void 0:R.serializedDelegationContext)K.selectedSerializedDelegationContext=D};var MP=function(){};
_.O(MP,eJ);MP.prototype.getApiPaths=function(){return q0k};
MP.prototype.getExtension=function(K){return _.P(K,T3H)};
MP.prototype.JSC$10995_buildRequest=function(K,d){d.profileOwnerExternalChannelId&&(K.profileOwnerExternalChannelId=d.profileOwnerExternalChannelId);d.profileCardContext&&(K.profileCardContext=d.profileCardContext)};var P1=function(){};
_.O(P1,eJ);P1.prototype.getApiPaths=function(){return H59};
P1.prototype.getExtension=function(K){return _.P(K,l9s)};
P1.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var g$=function(){};
_.O(g$,eJ);g$.prototype.getApiPaths=function(){return aBN};
g$.prototype.getExtension=function(K){return _.P(K,_.st9)};
g$.prototype.JSC$10995_buildRequest=function(K,d){if(d=d.createBroadcastRequest)K.useMasks=d.useMasks,K.broadcastType=d.broadcastType,K.broadcastSource=d.broadcastSource,K.broadcastMetadata=d.broadcastMetadata,K.broadcastMetadataMask=d.broadcastMetadataMask,K.videoMetadata=d.videoMetadata,K.videoMetadataMask=d.videoMetadataMask,K.liveChatSettingsUpdate=d.liveChatSettingsUpdate,K.liveChatSettingsUpdateMask=d.liveChatSettingsUpdateMask,K.cloneVideoId=d.cloneVideoId,K.cloneWithOverrides=d.cloneWithOverrides,
K.targetEntity=d.targetEntity,K.scheduledRedirectMetadata=d.scheduledRedirectMetadata};var Oe=function(){};
_.O(Oe,eJ);Oe.prototype.getApiPaths=function(){return FMs};
Oe.prototype.getExtension=function(K){return _.P(K,JBJ)};
Oe.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.params&&(K.params=d.params);f.questionText&&(K.questionText=f.questionText);f.optionText&&f.optionText.length>0&&(K.optionText=f.optionText)};var NP=function(){};
_.O(NP,eJ);NP.prototype.getApiPaths=function(){return vfJ};
NP.prototype.getExtension=function(K){return _.P(K,L99)};
NP.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var Yu=function(){};
_.O(Yu,eJ);Yu.prototype.getApiPaths=function(){return b5J};
Yu.prototype.getExtension=function(K){return _.P(K,Q_L)};
Yu.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var tw=function(){};
_.O(tw,eJ);tw.prototype.getApiPaths=function(){return lB2};
tw.prototype.getExtension=function(K){return _.P(K,j_t)};
tw.prototype.JSC$10995_buildRequest=function(K,d,f){d.params&&(K.params=d.params);d.continuation&&(K.continuation=d.continuation);f.currentPlayerState&&f.currentPlayerState.playerOffsetMs&&(K.currentPlayerState={playerOffsetMs:f.currentPlayerState.playerOffsetMs.toString()})};var oN=function(){};
_.O(oN,eJ);oN.prototype.getApiPaths=function(){return WM4};
oN.prototype.getExtension=function(K){return _.P(K,qGt)};
oN.prototype.JSC$10995_buildRequest=function(K,d,f){d.params&&(K.params=d.params);f.continuation&&(K.continuation=f.continuation);"hidden"in f&&(K.webClientInfo={isDocumentHidden:f.hidden});f.isInvalidationTimeoutRequest&&(K.isInvalidationTimeoutRequest=f.isInvalidationTimeoutRequest);f.invalidationPayload&&(d=rB2(_.Us(wF(f.invalidationPayload))),K.invalidationPayloadLastPublishAtUsec=Mi(d,2));f.reloadActionPanel&&(K.reloadActionPanel=f.reloadActionPanel);f.fullReload&&(K.fullReload=f.fullReload);
f.currentPlayerState&&(K.currentPlayerState=f.currentPlayerState)};var $u=function(){};
_.O($u,eJ);$u.prototype.getApiPaths=function(){return Z5f};
$u.prototype.getExtension=function(K){return _.P(K,B9k)};
$u.prototype.JSC$10995_buildRequest=function(K,d){K.params=d.params};var Ee=function(){};
_.O(Ee,eJ);Ee.prototype.getApiPaths=function(){return mpv};
Ee.prototype.getExtension=function(K){return _.P(K,wtk)};
Ee.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var hw=function(){};
_.O(hw,eJ);hw.prototype.getApiPaths=function(){return GZ9};
hw.prototype.getExtension=function(K){return _.P(K,ZG4)};
hw.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var br=function(){};
_.O(br,eJ);br.prototype.getApiPaths=function(){return elv};
br.prototype.getExtension=function(K){return _.P(K,s_8)};
br.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var mJ=function(){};
_.O(mJ,eJ);mJ.prototype.getApiPaths=function(){return KPs};
mJ.prototype.getExtension=function(K){return _.P(K,klk)};
mJ.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var lr=function(){};
_.O(lr,eJ);lr.prototype.getApiPaths=function(){return iIJ};
lr.prototype.getExtension=function(K){return _.P(K,AzN)};
lr.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var W1=function(){};
_.O(W1,eJ);W1.prototype.getApiPaths=function(){return FP4};
W1.prototype.getExtension=function(K){return _.P(K,_.wcf)};
W1.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.params&&(K.params=d.params);f.client_message_id&&(K.clientMessageId=f.client_message_id);f.recaptcha_token&&(K.recaptchaToken=f.recaptcha_token);f.rich_message&&f.rich_message.text_segments?(d=f.rich_message.text_segments.map(function(H){var D={};H.text&&(D.text=H.text);H.emoji_id&&(D.emojiId=H.emoji_id);return D}),K.richMessage={textSegments:d}):f.message&&(K.message=f.message);
f.currentPlayerState&&(K.currentPlayerState=f.currentPlayerState)};var GB=function(){};
_.O(GB,eJ);GB.prototype.getApiPaths=function(){return zL4};
GB.prototype.getExtension=function(K){return _.P(K,ZgB)};
GB.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var Aw=function(){};
_.O(Aw,eJ);Aw.prototype.getApiPaths=function(){return Pmt};
Aw.prototype.getExtension=function(K){return _.P(K,pc2)};
Aw.prototype.JSC$10995_buildRequest=function(K,d,f){d.isUserInitiated&&(K.isUserInitiated=d.isUserInitiated);d.initiationSource&&(K.initiationSource=d.initiationSource);f.locationInfo&&(K.context.client.locationInfo=f.locationInfo)};var TB=function(){};
_.O(TB,eJ);TB.prototype.getApiPaths=function(){return p5s};
TB.prototype.getExtension=function(K){return _.P(K,kMB)};
TB.prototype.JSC$10995_buildRequest=function(K,d,f){d.metadataUpdateRequest&&(d=d.metadataUpdateRequest,K.encryptedVideoId=d.encryptedVideoId,d.liveChat&&(d=d.liveChat,K.liveChat||(K.liveChat={}),d.performAsExternalChannelId&&(K.liveChat.performAsExternalChannelId=d.performAsExternalChannelId),d.source&&(K.liveChat.source=d.source)));var H;if(f==null?0:(H=f.liveChat)==null?0:H.liveChatSettings)K.liveChat||(K.liveChat={}),f=f.liveChat.liveChatSettings,K.liveChat.newLiveChatSettings=f,K.liveChat.newLiveChatSettingsMask||
(K.liveChat.newLiveChatSettingsMask={}),f.emojiReactionSet&&(K.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var r$=function(){};
_.O(r$,eJ);r$.prototype.getApiPaths=function(){return hL4};
r$.prototype.getExtension=function(K){return _.P(K,_.n5v)};
r$.prototype.JSC$10995_buildRequest=function(K,d,f){f.continuation?K.continuation=f.continuation:d.videoId&&(K.videoId=d.videoId);f.clientParams&&(K.clientParams=f.clientParams)};var qP=function(){};
_.O(qP,eJ);qP.prototype.getApiPaths=function(){return A_2};
qP.prototype.getExtension=function(K){return _.P(K,_.gd)};
qP.prototype.JSC$10995_buildRequest=function(K,d){K.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";K.fetchCommentsParams={};d.videoId&&(K.fetchCommentsParams.encryptedVideoId=d.videoId);d.postId&&(K.fetchCommentsParams.postId=d.postId);d.externalChannelId&&(K.fetchCommentsParams.externalChannelId=d.externalChannelId);d.linkedCommentId&&(K.fetchCommentsParams.linkedCommentId=d.linkedCommentId);(0,_.PR.isEmpty)(K.fetchCommentsParams)&&delete K.fetchCommentsParams};var Qs=function(){};
_.O(Qs,eJ);Qs.prototype.getApiPaths=function(){return x6};
Qs.prototype.JSC$10995_buildRequest=function(K){K.browseId="FEnotifications_inbox"};
Qs.prototype.getExtension=function(K){return _.P(K,_.y$)};var jM=function(){};
_.O(jM,eJ);jM.prototype.getApiPaths=function(){return A_2};
jM.prototype.JSC$10995_buildRequest=function(K,d){d.signal==="GET_NOTIFICATIONS_MENU"&&(K.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");d.ctoken&&(K.ctoken=d.ctoken)};
var ScJ=function(){};
_.O(ScJ,jM);ScJ.prototype.getExtension=function(K){return _.P(K,_.y$)};
var y$v=function(){};
_.O(y$v,jM);y$v.prototype.getExtension=function(K){return _.P(K,hHN)};var CS=function(){};
_.O(CS,eJ);CS.prototype.getApiPaths=function(){return xps};
CS.prototype.getExtension=function(K){return _.P(K,_.y$)};
CS.prototype.JSC$10995_buildRequest=function(){};var xu=function(){};
_.O(xu,eJ);xu.prototype.getApiPaths=function(){return dz6};
xu.prototype.getExtension=function(K){return _.P(K,Hhs)||void 0};
xu.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params);d.secondaryParams&&(K.secondaryParams=d.secondaryParams)};var LS=function(){};
_.O(LS,eJ);LS.prototype.getApiPaths=function(){return fIJ};
LS.prototype.getExtension=function(K){return _.P(K,W82)};
LS.prototype.JSC$10995_buildRequest=function(K,d){d.undo&&(K.undo=d.undo);d.serializedOptOut&&(K.serializedOptOut=d.serializedOptOut);d.serializedRecordInteractionsRequest&&(K.serializedRecordInteractionsRequest=d.serializedRecordInteractionsRequest)};var B1=function(){};
_.O(B1,eJ);B1.prototype.getApiPaths=function(){return VbH};
B1.prototype.getExtension=function(K){return _.P(K,Gd4)};
B1.prototype.JSC$10995_buildRequest=function(K,d){d.serializedInteractionsRequest&&(K.serializedRecordNotificationInteractionsRequest=d.serializedInteractionsRequest)};var Jw=function(){};
_.O(Jw,eJ);Jw.prototype.getApiPaths=function(){return y8Y};
Jw.prototype.getExtension=function(K){return _.P(K,zfN)};
Jw.prototype.JSC$10995_buildRequest=function(K,d,f){d=d===void 0?{}:d;f=f===void 0?{}:f;d.videoId?K.videoId=d.videoId:d.playlistId&&(K.playlistId=d.playlistId);var H,D=(H=d.offlineWebClientEligibility)!=null?H:f.offlineWebClientEligibility;D&&(K.offlineWebClientEligibility=D);var S;if(H=(S=d.preferredFormatType)!=null?S:f.preferredFormatType)K.preferredFormatType=H;var n;if(S=(n=d.lastOfflineQualitySettingsSavedMs)!=null?n:f.lastOfflineQualitySettingsSavedMs)K.lastOfflineQualitySettingsSavedMs=S;
d.params&&(K.params=d.params)};var se=function(){};
_.O(se,eJ);se.prototype.getApiPaths=function(){return qV};
se.prototype.getExtension=function(K){return _.P(K,_.$P)};
se.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.token&&(K.continuation=d.token);f.formData&&(K.formData=f.formData)};var ku=function(){};
_.O(ku,eJ);ku.prototype.getApiPaths=function(){return qV};
ku.prototype.getExtension=function(K){return _.P(K,CJ6)};
ku.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;K.continuation=f.continuation};var w$=function(){};
_.O(w$,eJ);w$.prototype.getApiPaths=function(){return qV};
w$.prototype.getExtension=function(K){return _.P(K,_.Pd)};
w$.prototype.JSC$10995_buildRequest=function(K,d){var f,H=d.panelIdentifier||((f=d.identifier)==null?void 0:f.tag);H&&(K.panelId=H);var D;if((D=d.globalConfiguration)==null?0:D.params){var S;K.params=(S=d.globalConfiguration)==null?void 0:S.params}};
_.x$.Object.defineProperties(w$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Z3=function(){};
_.O(Z3,eJ);Z3.prototype.getApiPaths=function(){return qV};
Z3.prototype.getExtension=function(K){return _.P(K,YKv)};
Z3.prototype.JSC$10995_buildRequest=function(K,d){d.panelLoadingStrategy&&KBG(K,d.panelLoadingStrategy)};var eM=function(){};
_.O(eM,eJ);eM.prototype.getApiPaths=function(){return qV};
eM.prototype.getExtension=function(K){return _.P(K,Jzf)};
eM.prototype.JSC$10995_buildRequest=function(K,d){d.loadingStrategy&&KBG(K,d.loadingStrategy)};var pS=function(){};
_.O(pS,eJ);pS.prototype.getApiPaths=function(){return qV};
pS.prototype.getExtension=function(K){return _.P(K,_.iX)};
pS.prototype.JSC$10995_buildRequest=function(K,d){d.panelLoadingStrategy&&KBG(K,d.panelLoadingStrategy)};var Ki=function(){};
_.O(Ki,eJ);Ki.prototype.getApiPaths=function(){return qV};
Ki.prototype.getExtension=function(K){return _.P(K,sZ9)};
Ki.prototype.JSC$10995_buildRequest=function(K,d){var f,H=(f=d.contentSourcePanelIdentifier)==null?void 0:f.tag;H&&(K.panelId=H);var D;if((D=d.globalConfiguration)==null?0:D.params){var S;K.params=(S=d.globalConfiguration)==null?void 0:S.params}};var dK=function(){};
_.O(dK,eJ);dK.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
dK.prototype.getExtension=function(K){return _.P(K,kdt)};
dK.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var fi=function(){};
_.O(fi,eJ);fi.prototype.getApiPaths=function(){return EcB};
fi.prototype.getExtension=function(K){return _.P(K,eiJ)};
fi.prototype.JSC$10995_buildRequest=function(K,d){d.externalChannelId&&(K.externalChannelId=d.externalChannelId);d.superChatAction&&(K.superChatAction=d.superChatAction);d.superStickersAction&&(K.superStickersAction=d.superStickersAction)};var HQ=function(){};
_.O(HQ,eJ);HQ.prototype.getApiPaths=function(){return ofN};
HQ.prototype.getExtension=function(K){return _.P(K,js4)||_.P(K,vEX)};
HQ.prototype.JSC$10995_buildRequest=function(K,d){d.videoIds?K.videoIds=d.videoIds:d.videoId&&(K.videoIds=[d.videoId]);d.playlistId&&(K.playlistId=d.playlistId);d.params&&(K.params=d.params);K.excludeWatchLater=!1};var Di=function(){};
_.O(Di,eJ);Di.prototype.getApiPaths=function(){return zl2};
Di.prototype.getExtension=function(K){return _.P(K,_.EI)};
Di.prototype.JSC$10995_buildRequest=function(K,d,f){f.create_playlist_title?K.title=f.create_playlist_title:d.title&&(K.title=d.title);if(f.create_playlist_privacy_status&&typeof f.create_playlist_privacy_status==="number"){a:{var H=f.create_playlist_privacy_status;if(H!==0){if(H===1){H="PUBLIC";break a}if(H===2){H="UNLISTED";break a}}H="PRIVATE"}K.privacyStatus=H}else d.privacyStatus&&(K.privacyStatus=d.privacyStatus);f.create_playlist_description&&(K.description=f.create_playlist_description);d.videoIds&&
(K.videoIds=d.videoIds);d.params&&(K.params=d.params);d.sourcePlaylistId&&(K.sourcePlaylistId=d.sourcePlaylistId)};var VY=function(){};
_.O(VY,eJ);VY.prototype.getApiPaths=function(){return MJs};
VY.prototype.getExtension=function(K){return _.P(K,dgs)};
VY.prototype.JSC$10995_buildRequest=function(K,d){K.playlistId=d.playlistId};var S8=function(){};
_.O(S8,eJ);S8.prototype.getApiPaths=function(){return TxJ};
S8.prototype.getExtension=function(K){return _.P(K,$0k)};
S8.prototype.JSC$10995_buildRequest=function(K,d){d.playlistId&&(K.playlistId=d.playlistId);d.params&&(K.params=d.params)};var yY=function(){};
_.O(yY,eJ);yY.prototype.getApiPaths=function(){return DzL};
yY.prototype.getExtension=function(K){return _.P(K,_.OI)||void 0};
yY.prototype.JSC$10995_buildRequest=function(K,d){d.actions&&(K.actions=d.actions);d.params&&(K.params=d.params);d.playlistId&&(K.playlistId=d.playlistId)};var ni=function(){};
_.O(ni,eJ);_.V=ni.prototype;_.V.getApiPaths=function(){return S9k};
_.V.getExtension=function(K){return _.P(K,_.IM)};
_.V.JSC$10995_buildRequest=function(K,d){d.videoId&&(K.playerRequest={videoId:d.videoId},d.playerParams&&(K.playerRequest.params=d.playerParams),d.racyCheckOk&&(K.playerRequest.racyCheckOk=!!d.racyCheckOk),d.contentCheckOk&&(K.playerRequest.contentCheckOk=!!d.contentCheckOk));d.params&&(K.params=d.params);d.inputType&&(K.inputType=d.inputType);K.disablePlayerResponse=!0};
_.V.getRequestConfig=function(K){var d;(K=this.JSC$11002_getStoreKey(K))&&(d={storeStrategy:{storeKey:K}});_.M("web_log_reels_ticks")&&(d=d||{},d.requestTick="r_wrs",d.responseTick="r_wrr");return d};
_.V.JSC$11002_getStoreKey=function(K){K=this.getExtension(K);if(_.M("shorts_controller_retrieve_seedless_sequence_v2")){if((K==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.rL("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.M("web_prefetch_riw_for_next_video")||_.M("web_shorts_prefetch_service_enabled"))&&K!=null&&K.videoId){var d={videoId:K.videoId};K.params&&(d.params=K.params);return _.rL("reel_item_watch",d)}};var i0=function(){};
_.O(i0,eJ);_.V=i0.prototype;_.V.getApiPaths=function(){return yjv};
_.V.getExtension=function(K){return _.P(K,_.IM)};
_.V.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;K.sequenceParams=d.sequenceParams;var H;((H=f)==null?0:H.contentPlaybackContext)&&_.M("web_shorts_prefetch_service_enabled")&&(K.playbackContext={contentPlaybackContext:f.contentPlaybackContext})};
_.V.JSC$11002_getStoreKey=function(K){if(_.M("shorts_controller_retrieve_seedless_sequence_v2")&&(K=this.getExtension(K),K==null?0:K.sequenceParams))return _.rL("reel_watch_sequence",{sequenceParams:K.sequenceParams})};
_.V.getRequestConfig=function(K){K=this.JSC$11002_getStoreKey(K);var d;K&&(d={storeStrategy:{storeKey:K}});_.M("reel_watch_sequence_request_log_ticks")&&(d=d||{},d.requestTick="r_wsrs",d.responseTick="r_wsrr",d.processorTick="r_wsrp");return d};
var cQ=function(){};
_.O(cQ,eJ);cQ.prototype.getApiPaths=function(){return yjv};
cQ.prototype.getExtension=function(K){return _.P(K,_.$P)};
cQ.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.token&&(K.continuation=d.token);var H;((H=f)==null?0:H.contentPlaybackContext)&&_.M("web_shorts_prefetch_service_enabled")&&(K.playbackContext={contentPlaybackContext:f.contentPlaybackContext})};
cQ.prototype.getRequestConfig=function(K){K=this.JSC$11002_getStoreKey(K);var d;K&&(d={storeStrategy:{storeKey:K}});_.M("reel_watch_sequence_request_log_ticks")&&(d=d||{},d.requestTick="r_wsrs",d.responseTick="r_wsrr",d.processorTick="r_wsrp");return d};var u0=function(){};
_.O(u0,eJ);u0.prototype.getApiPaths=function(){return Nx9};
u0.prototype.getExtension=function(K){return _.P(K,_.Hg4)};
u0.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.flagAction&&(K.action=d.flagAction);d.flagRequestType&&(K.flagRequestType=d.flagRequestType);d.additionalDetailCheckboxChecked&&(K.additionalDetailCheckboxChecked=d.additionalDetailCheckboxChecked);d.legalCheckboxChecked&&(K.legalCheckboxChecked=d.legalCheckboxChecked);d={};f.flag_issue_type!==void 0&&(d.issue=f.flag_issue_type);f.flag_affiliation!==void 0&&(d.affiliation=f.flag_affiliation);f.flag_full_name&&(d.fullName=f.flag_full_name);
Object.keys(d).length&&(K.legalReportDetails=d);if(f.flag_description||f.text)K.userComments=f.flag_description||f.text;d={};f.minutes!==void 0&&f.seconds!==void 0&&(d.minutes=f.minutes,d.seconds=f.seconds);f.vss_id&&(d.vssId=f.vss_id);Object.keys(d).length&&(K.videoReportDetails=d);d={};f.video_ids&&(d.videoIds=f.video_ids);f.impersonated_channel_url&&(d.impersonatedChannelUrl=f.impersonated_channel_url);Object.keys(d).length&&(K.channelAbuseReportDetails=d)};
_.x$.Object.defineProperties(u0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ap=function(){};
_.O(ap,eJ);ap.prototype.getApiPaths=function(){return hl6};
ap.prototype.getExtension=function(K){return _.P(K,hPv)};
ap.prototype.JSC$10995_buildRequest=function(K,d){d.blockedForKidsContent&&(K.blockedForKidsContent=d.blockedForKidsContent)};var Ip=function(){};
_.O(Ip,eJ);Ip.prototype.getApiPaths=function(){return cj9};
Ip.prototype.getExtension=function(K){return _.P(K,XVn)};
Ip.prototype.JSC$10995_buildRequest=function(K,d,f){K.params=d.params;f.impersonated_channel_url&&(K.impersonatedChannelUrl=f.impersonated_channel_url)};var UB=function(){};
_.O(UB,eJ);UB.prototype.getApiPaths=function(){return kZv};
UB.prototype.getExtension=function(K){return _.P(K,_.bgs)};
UB.prototype.JSC$10995_buildRequest=function(K,d){d.items&&(K.items=d.items);d.kidGaiaId&&(K.kidGaiaId=d.kidGaiaId)};var Rp=function(){};
_.O(Rp,eJ);Rp.prototype.getApiPaths=function(){return $p9};
Rp.prototype.getExtension=function(K){return _.P(K,_.qAJ)};
Rp.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params);d.targetId&&(K.targetId=d.targetId)};var FA=function(){};
_.O(FA,eJ);FA.prototype.getApiPaths=function(){return Uz9};
FA.prototype.getExtension=function(K){return _.P(K,bOf)};
FA.prototype.JSC$10995_buildRequest=function(K,d){d.externalVideoId&&(K.externalVideoId=d.externalVideoId);d.query&&(K.query=d.query);d.sourceTimelines&&(K.sourceTimelines=d.sourceTimelines)};var zN=function(){};
_.O(zN,eJ);zN.prototype.getApiPaths=function(){return RLJ};
zN.prototype.getExtension=function(K){return _.P(K,_.$P)||void 0};
zN.prototype.JSC$10995_buildRequest=function(K,d){d.token&&(K.continuation=d.token)};
_.n09=function(){};
_.O(_.n09,eJ);_.V=_.n09.prototype;_.V.getApiPaths=function(){return RLJ};
_.V.getExtension=function(K){return _.P(K,_.cW)||void 0};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$11002_getStoreKey=function(K,d){d=d===void 0?{}:d;if(!d.disableCache&&(K=this.getExtension(K))&&K.query)return d={query:K.query},K.params&&(d.params=K.params),_.rL("search",d)};
_.V.JSC$10995_buildRequest=function(K,d,f){d.query&&(K.query=d.query);d.params&&(K.params=d.params);if(!_.M("web_forward_suggest_stats_killswitch")){var H=_.P(d,PS8);H&&(K.suggestStats=H)}var D;!_.M("kevlar_searchbox_stats_killswitch")&&((D=f.tempData)==null?0:D.gs_l)&&!_.P(d,PS8)&&(K.webSearchboxStatsUrl="/search?oq="+(f.tempData.oq||"")+"&gs_l="+f.tempData.gs_l);var S;if((S=f.tempData)==null?0:S.entityMid)d=K.suggestionSearchParams||{},d.entityMid=f.tempData.entityMid,K.suggestionSearchParams=d};
_.V.getRequestConfig=function(K,d){d=d===void 0?{}:d;K=this.JSC$11002_getStoreKey(K,d);var f;K&&(f={storeStrategy:{storeKey:K}});_.M("web_log_search_ticks_ks")||(f=f||{},f.requestTick="sr_s",f.responseTick="sr_r");return f};var XA=function(){};
_.O(XA,eJ);XA.prototype.getApiPaths=function(){return jvB};
XA.prototype.getExtension=function(K){return _.P(K,IP8)};
XA.prototype.JSC$10995_buildRequest=function(K,d){d.serializedGetSharingProviderDataParams&&(K.serializedGetSharingProviderDataParams=d.serializedGetSharingProviderDataParams)};var vQ=function(){};
_.O(vQ,eJ);vQ.prototype.getApiPaths=function(){return Cik};
vQ.prototype.getExtension=function(K){return _.P(K,eHH)};
vQ.prototype.JSC$10995_buildRequest=function(K,d){d.endpoint&&(K.endpoint=d.endpoint);d.action&&(K.action=d.action)};var MW=function(){};
_.O(MW,eJ);MW.prototype.getApiPaths=function(){return PiL};
MW.prototype.getExtension=function(K){return _.P(K,fPB)};
MW.prototype.JSC$10995_buildRequest=function(K,d){K.videoId=d.videoId;d.scheduledRedirectMetadataSourceVideoId&&(K.scheduledRedirectMetadata={sourceVideoId:d.scheduledRedirectMetadataSourceVideoId})};var PQ=function(){};
_.O(PQ,eJ);PQ.prototype.getApiPaths=function(){return vcN};
PQ.prototype.getExtension=function(K){return _.P(K,_.sb2)};
PQ.prototype.JSC$10995_buildRequest=function(K,d){K.params=d.params;K.correctionText=d.correctionText};var gK=function(){};
_.O(gK,eJ);gK.prototype.getApiPaths=function(){return V9N};
gK.prototype.getExtension=function(K){return _.P(K,_.miL)};
gK.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params);K.searchQuery=d.searchQuery;K.languageCode=d.languageCode;K.kind=d.kind;K.name=d.name;K.externalVideoId=d.externalVideoId};var OB=function(){};
_.O(OB,eJ);OB.prototype.getApiPaths=function(){return WPf};
OB.prototype.getExtension=function(K){return _.P(K,nH9)};
OB.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.params=d.params)};var NW=function(K){this.JSC$15939_storeWithEntities=K};
_.O(NW,eJ);NW.prototype.getApiPaths=function(){return c_4};
NW.prototype.getExtension=function(K){return _.P(K,cQH)||_.P(K,aDt)};
NW.prototype.JSC$10995_buildRequest=function(K,d,f){f.client_data&&(K.clientData=f.client_data);if(d.commerceActionConfig){var H=d.commerceActionConfig;d=H.actionId;H=H.commerceActionParams;d&&(K.actionId=d);H&&(K.commerceActionParams=H)}else{var D=d.actionId,S=d.commerceActionParams;f=d.entityKeys;D&&(K.actionId=D);S&&(K.commerceActionParams=S);var n;d=(H=this.JSC$15939_storeWithEntities)==null?void 0:(n=H.getState())==null?void 0:n.entities;if(f&&d){H=[];n=_.y(f);for(f=n.next();!f.done;f=n.next())if(D=
f.value,f=_.KF(D).entityType,D=_.DR(d,f,D))S={},H.push((S[f]=D,S));K.entityMutationPayloads=H}}};
NW.prototype.getRequestConfig=function(K){var d,f=(d=_.P(K,cQH))==null?void 0:d.requestSequenceType;if(f&&K.clickTrackingParams&&f!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:K.clickTrackingParams,sequenceType:f}}};
NW[CG]=[Ks];var Yj=function(){};
_.O(Yj,eJ);Yj.prototype.getApiPaths=function(){return G8H};
Yj.prototype.getExtension=function(K){return _.P(K,_.hxs)};
Yj.prototype.JSC$10995_buildRequest=function(K,d){d.feedbackData&&(K.feedbackData=d.feedbackData);d.params&&(K.itemParams=d.params)};
_.x$.Object.defineProperties(Yj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var t7=function(){};
_.O(t7,eJ);t7.prototype.getApiPaths=function(){return AjB};
t7.prototype.getExtension=function(K){return _.P(K,b26)};
t7.prototype.JSC$10995_buildRequest=function(K,d,f){f.payments_payload&&(K.paymentsPayload=f.payments_payload);f.offer_params&&(K.offerParams=f.offer_params);d.transactionParams&&(K.transactionParams=d.transactionParams)};var op=function(){};
_.O(op,eJ);op.prototype.getApiPaths=function(){return TsJ};
op.prototype.getExtension=function(K){return _.P(K,_.mVN)};
op.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.buybucketParams&&(K.buybucketData={params:d.buybucketParams},d.stickerParams?K.buybucketData.stickerParams=d.stickerParams:(f.rich_chat_message?K.buybucketData.richChatMessage=f.rich_chat_message:f.chat_message_text&&(K.buybucketData.chatMessageText=f.chat_message_text),f.purchase_price_micros&&(K.buybucketData.purchasePriceMicros=f.purchase_price_micros.toString())));d.donationAmountMicros&&(K.tipAmountMicros=d.donationAmountMicros,
d.tipParams&&(K.tipParams=d.tipParams));d.offerParams&&(K.offerParams=d.offerParams);d.productData&&(K.productData=d.productData);d.transactionParams&&(K.transactionParams=d.transactionParams)};var EB=function(){};
_.O(EB,eJ);EB.prototype.getApiPaths=function(){return rjv};
EB.prototype.getExtension=function(K){return _.P(K,GIf)};
EB.prototype.JSC$10995_buildRequest=function(K,d){d.updateFopParams&&(K.updateFopParams=d.updateFopParams)};var h7=function(){};
_.O(h7,eJ);h7.prototype.getApiPaths=function(){return q9L};
h7.prototype.getExtension=function(K){return _.P(K,_.kB)};
h7.prototype.JSC$10995_buildRequest=function(K,d){d.couponCode&&(K.couponCode=d.couponCode);d.params&&(K.itemParams=d.params)};var b0=function(){};
_.O(b0,eJ);b0.prototype.getApiPaths=function(){return QCs};
b0.prototype.getExtension=function(K){return _.P(K,_.u39)};
b0.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;d.params&&(K.params=d.params);f.ctk&&(K.clientToken=f.ctk)};var mI=function(K){this.JSC$15974_storeWithEntities=K};
_.O(mI,eJ);mI.prototype.getApiPaths=function(){return jCH};
mI.prototype.getExtension=function(K){return _.P(K,_.bq)};
mI.prototype.JSC$10995_buildRequest=function(K,d,f){f.purchase_price_micros&&(K.productData={pdgData:{purchasePriceMicros:f.purchase_price_micros.toString()}},f.rich_chat_message&&(K.productData.pdgData.richChatMessage=f.rich_chat_message),f.currency_code&&(K.productData.pdgData.currencyCode=f.currency_code));d.transactionParams&&(K.transactionParams=d.transactionParams);d.clientLocationContext&&(K.clientLocationContext=d.clientLocationContext);f.payments_payload&&(K.paymentsPayload=f.payments_payload);
f.funds_guarantee_callback_client_data&&(K.fundsGuaranteeCallbackClientData=f.funds_guarantee_callback_client_data);var H,D;f=(H=this.JSC$15974_storeWithEntities)==null?void 0:(D=H.getState())==null?void 0:D.entities;if(d.entityKeys&&f){H=[];d=_.y(d.entityKeys);for(D=d.next();!D.done;D=d.next()){var S=D.value;D=_.KF(S).entityType;if(S=_.DR(f,D,S)){var n={};H.push((n[D]=S,n))}}K.entityMutationPayloads=H}};
mI[CG]=[Ks];var l0=function(){};
_.O(l0,eJ);l0.prototype.getApiPaths=function(){return Cms};
l0.prototype.getExtension=function(K){return _.P(K,lD9)};
l0.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;f.backend_analytics&&(K.serializedBackendAnalyticsEvent=f.backend_analytics);d.offerParams&&(K.offerParams=d.offerParams)};var WQ=function(){};
_.O(WQ,eJ);WQ.prototype.getApiPaths=function(){return q9L};
WQ.prototype.getExtension=function(K){return _.P(K,ezY)};
WQ.prototype.JSC$10995_buildRequest=function(K,d){d.params&&(K.itemParams=d.params)};var GN=function(){};
_.O(GN,eJ);GN.prototype.getApiPaths=function(){return xz2};
GN.prototype.getExtension=function(K){return _.P(K,_.zxN)};
GN.prototype.JSC$10995_buildRequest=function(K,d,f){f.resume_time_ms&&(K.resumeTimeMs=f.resume_time_ms);d.pauseParams&&(K.pauseParams=d.pauseParams)};var A7=function(){};
_.O(A7,eJ);A7.prototype.getApiPaths=function(){return LP4};
A7.prototype.getExtension=function(K){return _.P(K,_.Wv2)};
A7.prototype.JSC$10995_buildRequest=function(K,d,f){f=f===void 0?{}:f;f.c&&(K.redeemCode=f.c);f.rd&&(K.riskData=f.rd);f.ctk&&(K.clientToken=f.ctk)};var TN=function(){};
_.O(TN,eJ);TN.prototype.getApiPaths=function(){return BsJ};
TN.prototype.getExtension=function(K){return _.P(K,_.Xrf)};
TN.prototype.JSC$10995_buildRequest=function(K,d){d.resumeParams&&(K.resumeParams=d.resumeParams)};var rK=function(K,d){this.clientName=K;this.defaultExpirationDelayMs=d};
rK.prototype.put=function(K,d){var f=this,H;return _.c(function(D){H=Object.assign({},d.data);H.key=K;H.clientName=f.clientName;H.expireTimestampMs===void 0&&(H.expireTimestampMs=(Math.round((0,_.k_)())+f.defaultExpirationDelayMs).toString());return D.return(f.putInternal(K,H))})};
rK[CG]=[Fx,gvs];var ip2=function(){rK.apply(this,arguments);this.JSC$16004_responseStore=new Map};
_.O(ip2,rK);_.V=ip2.prototype;_.V.get=function(K){var d=this;return _.c(function(f){return f.return(HI(d,K))})};
_.V.putInternal=function(K,d){var f=this,H,D,S;return _.c(function(n){H=f.defaultExpirationDelayMs;d.expireTimestampMs&&(H=Number(d.expireTimestampMs)-Math.round((0,_.k_)()),D=_.di("mweb_override_response_store_expiration_ms"),D>0&&D<H&&(H=D));S=setTimeout(function(){f.remove(K)},H);
f.JSC$16004_responseStore.set(K,{entryData:d,timer:S});_.iQ(n)})};
_.V.remove=function(K){var d=this;return _.c(function(f){c$J(d,K);_.iQ(f)})};
_.V.removeAll=function(){var K=this;return _.c(function(d){K.JSC$16004_responseStore.forEach(function(f){clearTimeout(f.timer)});
K.JSC$16004_responseStore.clear();_.iQ(d)})};
_.V.has=function(K){return!!this.JSC$16004_responseStore.get(K)};
_.V.getKeys=function(){return this.JSC$16004_responseStore.keys()};
var HI=function(K,d){if(K=K.JSC$16004_responseStore.get(d))return new _.fv(K.entryData)},c$J=function(K,d){var f=K.JSC$16004_responseStore.get(d);
f&&(clearTimeout(f.timer),K.JSC$16004_responseStore.delete(d))};var d4X;var D4N=function(K,d,f){rK.call(this,K,d);this.token=f};
_.O(D4N,rK);_.V=D4N.prototype;_.V.get=function(K){var d=this,f,H;return _.c(function(D){return D.nextAddress==1?_.I(D,HzN(d.token),2):D.nextAddress!=3?(f=D.yieldResult,_.I(D,f.get("ResponseStore",[K,d.clientName]),3)):(H=D.yieldResult)?D.return(new _.fv(H)):D.return(void 0)})};
_.V.putInternal=function(K,d){var f=this,H;return _.c(function(D){if(D.nextAddress==1)return _.I(D,HzN(f.token),2);H=D.yieldResult;return _.I(D,H.put("ResponseStore",d),0)})};
_.V.remove=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,HzN(d.token),2);f=H.yieldResult;return H.return(f.delete("ResponseStore",[K,d.clientName]))})};
_.V.removeAll=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,HzN(K.token),2);d=f.yieldResult;return _.I(f,Wg8(d,IDBKeyRange.only(K.clientName)),0)})};
_.V.has=function(){throw Error("Ti");};_.qW=new _.xn("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var ugB=function(K){var d;this.stateTagsData=(d=K.responseContext)==null?void 0:d.stateTags},aAs=function(K){var d;
return((d=K.stateTagsData)==null?void 0:d.stateTagsModified)||[]};var IAH;IAH=function(K){this.JSC$16017_responseStore=K};
_.m4=function(K,d,f){if(!_.M("state_tags_killswitch")){var H=new ugB(d);if(aAs(H).length>0){var D=K.JSC$16017_responseStore.getKeys();D=_.y(D);for(var S=D.next();!S.done;S=D.next()){S=S.value;var n=HI(K.JSC$16017_responseStore,S);if(n){var u=_.ed(n);a:{var a=void 0;n=aAs(H);u=((a=(new ugB(u)).stateTagsData)==null?void 0:a.relevantStateTags)||[];a=_.y(u);for(u=a.next();!u.done;u=a.next())if(u=u.value,u.stateTag!=null&&n.includes(u.stateTag)&&u.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){n=
!0;break a}n=!1}n&&c$J(K.JSC$16017_responseStore,S)}}}}var R;H=(R=d.responseContext)==null?void 0:R.maxAgeSeconds;_.M("web_prefetch_riw_for_next_video")&&!H&&d.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(H=3600);f&&H&&Number(H)>0&&(d=ZW(d,H),K.JSC$16017_responseStore.put(f,new _.fv(d)))};
IAH.prototype.handleResponse=function(K,d){if(!d)throw Error("Ui");var f,H;d=(f=d.config)==null?void 0:(H=f.storeStrategy)==null?void 0:H.storeKey;_.m4(this,K,d)};
IAH[CG]=[_.dJ];_.sPz=new _.xn("STORE_RESPONSE_PROCESSOR_TOKEN");var UMs=function(K){this.JSC$16020_responseStore=K};
UMs.prototype.handleResponse=function(K,d){if(d.input.match(_.CF(yjv))){var f;if(K==null?0:(f=K.entries)==null?0:f.length)for(K=_.y(K.entries),d=K.next();!d.done;d=K.next()){f=d.value.command;var H=void 0;d=(H=_.P(f,_.IM))==null?void 0:H.unserializedPrefetchData;if(!f||!d)break;H=(new ni).JSC$11002_getStoreKey(f);var D=_.P(d,OfJ),S=void 0,n=void 0,u=void 0,a=_.di("web_shorts_prefetch_service_ttl_seconds")>0?_.di("web_shorts_prefetch_service_ttl_seconds"):Number((u=(S=D)==null?void 0:(n=S.responseContext)==
null?void 0:n.maxAgeSeconds)!=null?u:3600);H&&a>0&&(D=ZW(D,a),this.JSC$16020_responseStore.put(H,new _.fv(D)));f=(new Hn).JSC$11002_getStoreKey(f);d=_.P(d,yoJ);S=D=H=void 0;n=_.di("web_shorts_prefetch_service_ttl_seconds")>0?_.di("web_shorts_prefetch_service_ttl_seconds"):Number((S=(H=d)==null?void 0:(D=H.responseContext)==null?void 0:D.maxAgeSeconds)!=null?S:3600);f&&n>0&&(d=ZW(d,n),this.JSC$16020_responseStore.put(f,new _.fv(d)))}}};
UMs[CG]=[_.dJ];var Rr6=function(K){this.innertubeTransportService=K};
Rr6[CG]=[_.Nn];var FyH=new _.xn("SUBMIT_API_SERVICE_TOKEN");var QY=function(){this.scheduler=_.Xm()},zrH;
QY.prototype.pause=function(){throw Error("Vi");};
QY.prototype.resume=function(){throw Error("Vi");};
QY.prototype.queue=function(K){var d=this,f=_.Gz(),H=_.va(this.scheduler,function(){try{var D;if(_.V2.instance)var S=_.V2.instance;else{var n=new _.X4("Error: Unexpected uninitialized CommandHandler.");_.$7(n);S=void 0}(D=S)==null||D.resolveCommand(K.command);f.resolve()}catch(u){f.reject(u)}});
f.promise.thenCatch(function(D){D instanceof _.mf&&d.scheduler.cancelJob(H)});
return f.promise};
QY.prototype.queueAll=function(K){var d=new Map;K=_.y(K);for(var f=K.next();!f.done;f=K.next())f=f.value,d.set(f.id,this.queue(f));return d};var v0L=function(K,d){var f=this;this.taskModel=K;this.onTaskCancelledCallback=d;this.resolver=_.Gz();K=K.proto.prefetchConfig;if(!K)throw Error("Wi");if(!K.prefetchAction)throw Error("Xi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(H){H instanceof _.mf&&(XN6(f,f.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),f.onTaskCancelledCallback(f.taskModel.id,f.jobId),f.tick("pcc"));
throw H;});
this.timerName=this.taskModel.id;_.NY(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},MBs=function(K){switch(K.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},XN6=function(K,d){_.Ox({prefetchInfo:{cancellationReason:d}},K.timerName)};
v0L.prototype.tick=function(K){_.YJ(K,void 0,this.timerName)};var Ci=function(){var K=this;this.scheduler=_.Xm();this.maxInflightTasks=_.di("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.di("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new HU6;this.onTaskCancelled=function(d,f){f&&K.scheduler.cancelJob(f);Pd4(K,d);j8(K,3)}},g0H=function(){Ci.instance||(Ci.instance=new Ci);
return Ci.instance};
Ci.prototype.pause=function(){this.prefetchCoordinatorState=0};
Ci.prototype.resume=function(){j8(this,0)};
Ci.prototype.queue=function(K){K=Ops(this,K);j8(this,1);return K};
Ci.prototype.queueAll=function(K){var d=new Map;K=_.y(K);for(var f=K.next();!f.done;f=K.next())f=f.value,d.set(f.id,Ops(this,f));j8(this,1);return d};
var Ops=function(K,d){var f=K.allPrefetchTasks.get(d.id);if(f)return f.cancellablePromise;try{var H=new v0L(d,K.onTaskCancelled)}catch(S){return _.vv(S)}f=H;f.tick("pcq");var D={prefetchInfo:{taskId:f.taskModel.id,isPrefetch:!0,fetchAction:f.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:f.taskModel.command.clickTrackingParams}};f.taskModel.csn&&(D.clientScreenNonce=f.taskModel.csn);_.Ox(D,f.timerName);K.allPrefetchTasks.set(d.id,H);K.drainingHeap.insert(-MBs(H),H);return H.cancellablePromise},
j8=function(K,d){K.prefetchCoordinatorState===d&&(K.prefetchCoordinatorState=2,NZ6(K))},NZ6=function(K){for(var d={};K.prefetchCoordinatorState!==0;d={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(K.inflightPrefetchTasks.size>=K.maxInflightTasks){K.prefetchCoordinatorState=3;break}d.prefetchTask$jscomp$1=K.drainingHeap.remove();if(!d.prefetchTask$jscomp$1){K.prefetchCoordinatorState=1;break}d.taskId$jscomp$3=d.prefetchTask$jscomp$1.taskModel.id;if(K.allPrefetchTasks.has(d.taskId$jscomp$3)){var f=-1;K.coordinatorTimeoutMs>0&&(f=_.va(K.scheduler,function(H){return function(){xj(K,H.taskId$jscomp$3,Error("Yi"))}}(d),K.coordinatorTimeoutMs));
K.inflightPrefetchTasks.set(d.taskId$jscomp$3,f);if(!K.JSC$16038_commandHandler){if(!_.V2.instance){xj(K,d.taskId$jscomp$3,Error("Zi"));continue}K.JSC$16038_commandHandler=_.V2.instance}a:switch(d.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":f=1;break a;default:f=0}d.prefetchTask$jscomp$1.jobId=K.scheduler.addJob(function(H){return function(){H.prefetchTask$jscomp$1.tick("pcr");try{K.JSC$16038_commandHandler.resolveCommand(H.prefetchTask$jscomp$1.taskModel.command)||
xj(K,H.taskId$jscomp$3,Error("$i"))}catch(D){xj(K,H.taskId$jscomp$3,D)}}}(d),f,0)}}},YcL=function(K,d){(d=Pd4(K,d))!=null&&(d.resolver.resolve(),d.tick("pce"));
j8(K,3)},xj=function(K,d,f){(d=Pd4(K,d,f))!=null&&(d.resolver.reject(f),d.tick("pcc"),XN6(d,"CANCELLATION_REASON_ERROR"),Math.random()<=_.di("prefetch_coordinator_error_logging_sampling_rate")&&(f=new _.X4("Prefetch Command failed.",d.taskModel.id,f.message),_.$7(f)));
j8(K,3)},Pd4=function(K,d,f){var H=K.allPrefetchTasks.get(d);
H?((f=K.inflightPrefetchTasks.get(d))&&f!==-1&&K.scheduler.cancelJob(f),K.inflightPrefetchTasks.delete(d),K.allPrefetchTasks.delete(d)):_.h3(new _.X4("Unexpected missing prefetch task when deleting task.",d,f==null?void 0:f.message));return H};var tB2=function(K,d,f,H,D){this.id=K;this.triggerOn=d;this.cancelOn=f;this.command=H;this.proto=D};
_.x$.Object.defineProperties(tB2.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var o06=function(){this.JSC$16043_prefetchCoordinator=g0H();zrH||(zrH=new QY);this.defaultCoordinator=zrH},$Mk;
o06.getInstance=function(){$Mk||($Mk=new o06);return $Mk};
o06.prototype.get=function(K){switch(K){case 0:return this.JSC$16043_prefetchCoordinator;default:return this.defaultCoordinator}};var Li=function(){this.coordinatorSupplier=o06.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},bpB=function(K){var d=_.te()||void 0,f=Object.keys(E0H)[0];
if(f){var H=K.taskIdByTriggerId.get(f);if(H!=null){K.taskIdByTriggerId.delete(f);f=[];H=_.y(H);for(var D=H.next();!D.done;D=H.next())if(D=K.tasks.get(D.value))d!=="UNDEFINED_CSN"&&(D.csn=d),f.push(D);f=yrX(f);d=[];f=_.y(f);for(H=f.next();!H.done;H=f.next()){D=_.y(H.value);H=D.next().value;D=D.next().value;H=K.coordinatorSupplier.get(H).queueAll(D);H=_.y(H);var S=H.next();for(D={};!S.done;D={taskId$jscomp$9:void 0},S=H.next()){var n=_.y(S.value);S=n.next().value;n=n.next().value;D.taskId$jscomp$9=
S;S=n;d.push(D.taskId$jscomp$9);K.queuedPromisesByTask.set(D.taskId$jscomp$9,_.It(S,function(u){return function(){hr8(K,u.taskId$jscomp$9)}}(D)))}}}}else _.h3(new _.X4("Unexpected malformed TriggerEvent."))};
Li.prototype.trigger=function(K,d){var f=this,H=this.tasks.get(K);if(!H||this.queuedPromisesByTask.has(K))return!1;mM6(this,K,H.triggerOn);d!=="UNDEFINED_CSN"&&(H.csn=d);d=this.coordinatorSupplier.get(H.taskType).queue(H);this.queuedPromisesByTask.set(K,_.It(d,function(){hr8(f,K)}));
return!0};
Li.prototype.cancel=function(K){var d=this.queuedPromisesByTask.get(K);if(d)d.cancel();else return hr8(this,K)};
var hr8=function(K,d){K.queuedPromisesByTask.delete(d);var f=K.tasks.get(d);if(!f)return!1;K.tasks.delete(d);mM6(K,d,f.triggerOn);(f=SWX(f.cancelOn))&&(K=K.taskIdByCancelId.get(f))&&K.delete(d);return!0},mM6=function(K,d,f){(f=Object.keys(f)[0])&&(K=K.taskIdByTriggerId.get(f))&&K.delete(d)};var E0H={taskRegistered:{}},BQ=function(){Li.instance||(Li.instance=new Li);this.JSC$16052_taskManager=Li.instance};
_.O(BQ,ER);
BQ.prototype.resolveCommand=function(K){var d=this,f,H;return _.c(function(D){f=_.P(K,NO8);if((H=f)==null||!H.tasks){var S=new _.X4("RegisterTasksCommand is missing tasks.");_.$7(S);return D.return()}S=d.JSC$16052_taskManager;for(var n=_.y(f.tasks),u=n.next();!u.done;u=n.next())if(u=u.value,u=u.id&&u.triggerOn&&u.cancelOn&&u.command?new tB2(u.id,u.triggerOn,u.cancelOn,u.command,u):void 0,u){var a=Object.keys(u.triggerOn)[0];if(a){var R=SWX(u.cancelOn);R?(S.tasks.set(u.id,u),S.taskIdByTriggerId.has(a)||S.taskIdByTriggerId.set(a,
new Set),S.taskIdByTriggerId.get(a).add(u.id),S.taskIdByCancelId.has(R)||S.taskIdByCancelId.set(R,new Set),S.taskIdByCancelId.get(R).add(u.id)):_.h3(new _.X4("Unexpected malformed cancelOn field."))}else _.h3(new _.X4("Unexpected malformed triggerOn field."))}else _.h3(new _.X4("Unexpected malformed Task proto."));bpB(d.JSC$16052_taskManager);_.iQ(D)})};var lAJ={},Wyv=(lAJ.rendered={priority:0,callback:function(){var K={};K.numCpu=navigator.hardwareConcurrency;var d={};d.ramGb=_.Hu.navigator.deviceMemory;var f={staticContext:{}};d.ramGb&&nUY(d.ramGb)&&(f.staticContext.memoryTotalKbytes=(d.ramGb*1048576).toString());K.numCpu&&nUY(K.numCpu)&&(f.staticContext.cpuCores=K.numCpu);if(_.M("web_enable_adaptive_appl_signal")){K={};d=_.$J("rses_dpj");var H=_.$J("rsef_dpj");d&&d>0&&H&&H>0&&(d=Math.ceil(H-d),d>0&&(K.loadLatency=d));K.loadLatency&&nUY(K.loadLatency)&&
(f.appL=K.loadLatency.toString())}_.t3("applicationStarted",f)}},lAJ);var GKJ=new _.xn("WINDOW_ON_ERROR"),A$s=new _.xn("ERROR_WEIGHT_MAPS"),TZv=new _.xn("INIT_ERROR");var r$9={},qct=(r$9.initialized={priority:10,callback:function(K){K.injector.resolve(TZv)()}},r$9);var Qi8=function(){},jit=function(){var K=_.T2("meta_logger_impl");
K||(K=new Qi8,_.B6("meta_logger_impl",K));return K},Cdv=function(){jit().csiSubscriptionKey=UQJ("meta_logging_csi_event",function(K){var d=K.timerName;
if(K=K.timelineData){_.NY(d,{startTime:K.startTime},d);K.infos&&_.Ox(K.infos,d);for(var f=_.y(Object.keys(K.ticks)),H=f.next();!H.done;H=f.next())H=H.value,_.YJ(H,K.ticks[H],d)}})};
Qi8.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&zMz(this.csiSubscriptionKey)};var xMt={},Ly6=(xMt.initialized={priority:10,callback:function(){Cdv()}},xMt);var BZH=function(K,d){this.innertubeClientName=K;this.JSC$16068_prefCookie=d};
BZH.prototype.record=function(){if(_.M("web_li_record_binary_eval_tick")){var K=_.$J("rsef_dpj");var d=_.$J("rses_dpj");K=K!==void 0&&d!==void 0?Math.round(K-d):void 0;if(K!==void 0&&K>0){d=_.KI(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var f=this.poolSize;if(!(d.valuesSeen>=1E9)){if(d.valuesSample.length<f)d.valuesSample.push(K);else{var H=Math.floor(Math.random()*(d.valuesSeen+1));H<f&&(d.valuesSample[H]=K)}d.valuesSeen+=1}_.p5(this.storagePrefix+"-"+this.innertubeClientName,
d,2592E3);K=d.valuesSample;d=iz5(K);K=K.length<5?void 0:d<400?1:d<1700?2:3;K!==void 0&&(this.JSC$16068_prefCookie.set(this.cookiePrefix+this.innertubeClientName,K),this.JSC$16068_prefCookie.save())}}else _.ds(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16068_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16068_prefCookie.save()};
BZH[CG]=[Fx,Bb];var J$t=function(){BZH.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.O(J$t,BZH);var si2=new _.xn("PAGE_LOAD_TIME_TOKEN");var kK9=new _.xn("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var J7=function(K,d){this.JSC$16089_storeWithEntities=K;this.JSC$16089_commandHandler=d;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
J7.prototype.start=function(){this.JSC$16089_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
J7.prototype.observeDownloadingEntities=function(){var K=_.g5X(this.JSC$16089_storeWithEntities.getState().entities).map(function(H){return Ohz(H)});
if(K.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var d={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:Pao()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.kJ(_.iB("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16089_commandHandler.resolveCommand(d)}this.downloadingEntities=K}else if(this.downloadingEntities.length){var f=P4G(this.JSC$16089_storeWithEntities.getState().entities).map(function(H){return Ohz(H)});
this.downloadingEntities.filter(function(H){return f.includes(H)}).length&&(K={openPopupAction:BbX()},this.JSC$16089_commandHandler.resolveCommand(K));
this.downloadingEntities=[]}};
J7[CG]=[Ks,_.pQ];var wN8;_.sB=function(K,d,f,H,D,S,n,u){this.JSC$16092_playerApiPromise=K;this.JSC$16092_commandHandler=d;this.JSC$16092_screenManager=f;this.offlineWebClientEligibility=H;this.JSC$16092_prefStorage=D;this.JSC$16092_actionRouter=S;this.entityTypeMap=n;this.JSC$16092_persistentStorePromiseAccessor=u;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
wN8=function(){var K=_.eq().resolve(_.sB),d;_.c(function(f){if(f.nextAddress==1)return K.downloadFailureListenerBound?f.return():_.I(f,K.JSC$16092_playerApiPromise,2);d=f.yieldResult;d.addEventListener("onOfflineOperationFailure",function(H){if(H.failureReason&&H.entityKey&&H.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(H.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var D=_.KF(H.entityKey).entityId;D&&K.JSC$16092_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
D)}else if(_.M("kevlar_woffle")){D=K.JSC$16092_commandHandler;var S=D.resolveCommand;H=H.failureReason;var n=_.iB("TRANSFER_FAILED",void 0,"Download failed");H==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(n=_.iB("STORAGE_FULL",void 0,"Storage full"));S.call(D,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.kJ(n),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
K.downloadFailureListenerBound=!0;_.iQ(f)})};
_.sB.prototype.deleteVideo=function(K,d){var f=this,H,D,S;return _.c(function(n){if(n.nextAddress==1)return _.I(n,f.JSC$16092_playerApiPromise,2);H=n.yieldResult;S={offlineLoggingData:{offlineDeleteReason:(D=d)!=null?D:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.I(n,H.queueOfflineAction(K,f.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",S),0)})};
_.sB.prototype.pauseVideoDownload=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,d.JSC$16092_playerApiPromise,2);f=H.yieldResult;f.pauseVideoDownload(K);_.iQ(H)})};
_.sB.prototype.resumeVideoDownload=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,d.JSC$16092_playerApiPromise,2);f=H.yieldResult;return _.I(H,f.resumeVideoDownload(K),0)})};
_.sB[CG]=[_.kP,_.pQ,_.FD,kK9,wY,QP,wUB,fI];var ZpJ=new _.xn("DOWNLOAD_STATE_STORE_TOKEN");var erL=function(K,d){this.JSC$16111_persistentStorePromiseAccessor=K;this.store=d;this.upliftCompletionResolver=new _.fU},dNH=function(){var K=_.eq().resolve(pNJ),d;
_.c(function(f){switch(f.nextAddress){case 1:if(K.upliftImplPromise)return f.return(K.upliftImplPromise);_.HF(f,2);K.upliftImplPromise=Kuv(K);return _.I(f,K.upliftImplPromise,4);case 4:K.upliftCompletionResolver.resolve();_.Ts(f,3);break;case 2:throw d=_.n7(f),K.upliftCompletionResolver.reject(d),d;case 3:return f.return(K.upliftImplPromise)}})},Kuv=function(K){var d,f,H;
return _.c(function(D){switch(D.nextAddress){case 1:return _.lx("LOGGED_IN")?_.I(D,K.JSC$16111_persistentStorePromiseAccessor(),2):D.return();case 2:d=D.yieldResult;if(!d)return _.YJ("vdeur"),D.return();_.YJ("vdeus");_.HF(D,3);return _.I(D,fss(d),5);case 5:f=D.yieldResult;K.store.dispatch(yfB(f));d.observe(function(S){n5O(K.store,S)});
_.Ts(D,4);break;case 3:throw H=_.n7(D),_.YJ("vdeur"),H;case 4:_.YJ("vdeuc"),_.iQ(D)}})},fss=function(K){var d;
return _.c(function(f){if(f.nextAddress==1)return _.I(f,FBp(K),2);d=f.yieldResult;return f.return(d.reduce(function(H,D){if(!D.data||!D.key||!D.entityType)return H;H[D.entityType]||(H[D.entityType]={});H[D.entityType][D.key]=D.data;return H},{}))})};
erL[CG]=[fI,_.tj];var pNJ;pNJ=new _.xn("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.kj=new _.xn("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var wK=function(K,d){this.JSC$16114_persistentStorePromiseAccessor=K;this.transportService=d};
wK.prototype.refresh=function(){var K=this,d,f,H,D;return _.c(function(S){if(S.nextAddress==1)return _.lx("LOGGED_IN")?_.I(S,K.JSC$16114_persistentStorePromiseAccessor(),2):S.return();if(S.nextAddress!=3)return(d=S.yieldResult)?_.I(S,ehJ(d),3):S.return();if((f=S.yieldResult)&&!(Number(f.data.refreshTimestampMs||0)<(0,_.k_)()))return S.return();H={browseId:"SPaccount_downloads"};D=_.CF(x6);_.Np(K.transportService,H,D).then(function(n){var u;if(d&&(n==null?void 0:(u=n.responseContext)==null?void 0:
u.maxAgeSeconds)!==0){var a;u=(n==null?void 0:(a=n.responseContext)==null?void 0:a.maxAgeSeconds)||604800;a=String(Math.floor((0,_.k_)())+u*1E3);d.put("service:downloads_settings:fallback",new _.fv({innertubeResponse:n,refreshTimestampMs:a}))}});
_.iQ(S)})};
wK[CG]=[_.qW,_.Nn];var Zi=function(K,d){this.JSC$16118_playerPromise=K;this.store=d;this.started=!1};
Zi.prototype.start=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return K.started?f.return():_.I(f,K.JSC$16118_playerPromise,2);d=f.yieldResult;d.addEventListener("onOrchestrationBecameLeader",K.updateIsLeader.bind(K,!0));d.addEventListener("onOrchestrationLostLeader",K.updateIsLeader.bind(K,!1));if(d.isOrchestrationLeader)K.updateIsLeader(d.isOrchestrationLeader());else{var H=new _.X4("Function isOrchestrationLeader is undefined",{"player.isReady":d.isReady(),"player.playVideo":d.playVideo?
"defined":"undefined"});_.$7(H);K.updateIsLeader(!1)}K.started=!0;_.iQ(f)})};
Zi.prototype.updateIsLeader=function(K){this.store.dispatch(_.es({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:K}}))};
Zi[CG]=[_.kP,_.tj];var H4J=function(K,d){this.networkStatusManager=K;this.JSC$16121_prefStoragePromise=d;this.redirectsToPreload=["https://youtube.com"]},DNL=function(){var K=_.eq().resolve(H4J),d,f,H,D,S,n;
_.c(function(u){switch(u.nextAddress){case 1:return _.I(u,K.JSC$16121_prefStoragePromise,2);case 2:d=u.yieldResult;if(!(f=d)){u.jumpTo(3);break}return _.I(u,d.get("yt-redirect-prefetch-id"),4);case 4:f=u.yieldResult;case 3:if(f||!K.networkStatusManager.isNetworkAvailable())return u.return();H={cache:"reload",redirect:"manual"};D=_.y(K.redirectsToPreload);S=D.next();case 5:if(S.done){if(!d){u.jumpTo(0);break}return _.I(u,d.set("yt-redirect-prefetch-id",!0,86400),0)}n=S.value;_.HF(u,8);return _.I(u,
_.Hu.fetch(n,H),10);case 10:_.Ts(u,6);break;case 8:_.n7(u);case 6:S=D.next(),u.jumpTo(5)}})};var e8=function(K){K?(this.container=K,this.containerWasInjected=!0):this.containerWasInjected=!1};
e8.prototype.openDialog=function(K,d,f){var H=this,D;return _.c(function(S){(D=H.container)==null||D.openDialog(K,d,f);_.iQ(S)})};
e8.prototype.closeDialog=function(){var K=this,d;return _.c(function(f){(d=K.container)==null||d.closeDialog();_.iQ(f)})};
e8.prototype.isDialogOpen=function(){var K=this,d,f;return _.c(function(H){return H.return((f=(d=K.container)==null?void 0:d.isDialogOpen())!=null?f:!1)})};
e8[CG]=[_.Zd(UP4)];_.Vyt=new _.xn("POPUP_CONTROLLER_TOKEN");var SMN=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
SMN.prototype.registerPanel=function(K,d){if(K){this.panelMap.set(K,d);var f=this.pendingPanelResolvers.get(K);f&&(f.resolve(d),this.pendingPanelResolvers.delete(K))}};
SMN.prototype.getPanel=function(K){var d=this,f;return _.c(function(H){return(f=d.panelMap.get(K))?H.return(f):H.return(yF4(d,K))})};
var yF4=function(K,d){var f,H;return _.c(function(D){if(f=K.pendingPanelResolvers.get(d))return D.return(f.promise);H=new _.fU;K.pendingPanelResolvers.set(d,H);return D.return(H.promise)})},nCs=function(K){SMN.call(this);
var d=this;this.popupController=K;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return d.panelMap.size}}};
_.O(nCs,SMN);_.V=nCs.prototype;_.V.getReloadContinuation=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,d.getPanel(K),2);f=H.yieldResult;return H.return(f.getReloadContinuation())})};
_.V.showPanel=function(K,d,f,H,D,S,n){var u=this,a,R,F,z;return _.c(function(v){if(v.nextAddress==1){n&&u.updatePanelContinuationDatas.set(K,n);if((a=f)==null?0:(R=a.engagementPanelPopupPresentationConfig)==null?0:R.popupType){F=f.engagementPanelPopupPresentationConfig.popupType;D===void 0&&(D=document.body);var g=v.return,N=u.popupController,h=N.openPopup;a:switch(F){case "PANEL_POPUP_TYPE_DIALOG":var m="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":m="DROPDOWN";break a;default:throw Error("bj`"+
F);}return g.call(v,h.call(N,K,d,m,D))}return _.I(v,u.getPanel(K),2)}z=v.yieldResult;(d||S)&&z.updatePanel(d,!1,H,S);z.showPanel(H);_.iQ(v)})};
_.V.hidePanel=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,d.getPanel(K),2);f=H.yieldResult;f.hidePanel();d.popupController.closePopup(K);_.iQ(H)})};
_.V.isVisible=function(K,d){var f=this,H;return _.c(function(D){if(D.nextAddress==1)return d&&!f.panelMap.has(K)?D.return(!1):_.I(D,f.getPanel(K),2);H=D.yieldResult;return D.return(H.isVisible())})};
_.V.updatePanel=function(K,d,f,H,D,S){f=f===void 0?!1:f;var n=this,u;return _.c(function(a){if(a.nextAddress==1){if(!d&&!D)return a.return();S&&n.updatePanelContinuationDatas.set(K,S);return _.I(a,n.getPanel(K),2)}u=a.yieldResult;u.updatePanel(d,f,H,D);_.iQ(a)})};
_.V.registerPanelContent=function(K,d){K&&this.panelContentMap.set(K,d)};
_.V.getPanelContent=function(K){return this.panelContentMap.get(K)};
_.V.getUpdatePanelContinuationData=function(K){return this.updatePanelContinuationDatas.get(K)};
nCs[CG]=[_.Vyt];var pi=function(K,d){this.innertubeTransportService=K;this.JSC$16137_screenManager=d},i4t=function(K){var d;
return!((d=K.panelLoadingStrategy)==null||!d.requestTemplate)};
pi.prototype.makeRequest=function(K){var d=this,f,H;return _.c(function(D){switch(D.nextAddress){case 1:if(!i4t(d)){D.jumpTo(2);break}_.HF(D,3);return _.I(D,_.Wp(d.innertubeTransportService,K),5);case 5:return f=D.yieldResult,f?D.return(f.content):(_.$7(Error("cj")),D.return(void 0));case 3:H=_.n7(D),_.$7(H);case 2:return D.return(void 0)}})};
pi.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
pi.prototype.execute=function(K){var d=this,f,H,D,S,n,u,a,R,F,z;return _.c(function(v){if(v.nextAddress==1){f=K;H=f.data;D=f.fallbackVe;S=f.parentVe;n=f.createScreenConfig;u=f.renderFn;a=f.command;d.panelLoadingStrategy=H;var g,N,h=((g=d.panelLoadingStrategy)==null?0:g.screenVe)?(N=d.panelLoadingStrategy)==null?void 0:N.screenVe:D;h&&_.eA(d.JSC$16137_screenManager,h,S,n);return(R=d.getContent())?_.I(v,u(R),2):v.jumpTo(2)}return v.nextAddress!=4?i4t(d)?_.I(v,d.makeRequest(a),4):v.return():(z=F=v.yieldResult)?
_.I(v,u(z),0):v.return()})};
pi[CG]=[_.Nn,_.FD];var K$=function(){};
K$.prototype.getContainer=function(){return _.Je()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
K$.prototype.openSheet=function(K,d){var f=this,H,D,S,n,u,a;return _.c(function(R){switch(R.nextAddress){case 1:return H={stack:[],error:void 0,hasError:!1},_.HF(R,2,3),D=kl,_.I(R,f.isSheetOpen(),5);case 5:S=R.yieldResult;DCX(H,oMX(D));if(S&&!_.M("delay_sheet_open_killswitch")){if(d&&f.currentTarget===d)return(n=f.getContainer())==null||n.closeSheet(),R.return();f.pendingData={data:K,target:Yws(f,d)};return R.return()}K.viewModel&&(K={viewModel:K.viewModel});(u=f.getContainer())==null||u.openSheet(K,
d);f.currentTarget=d;case 3:_.Vu(R);n3z(H);_.yu(R,0);break;case 2:a=_.n7(R),H.error=a,H.hasError=!0,R.jumpTo(3)}})};
K$.prototype.closeSheet=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,(d=K.getContainer())==null?void 0:d.closeSheet(),2);if(f.nextAddress!=4)return K.currentTarget=void 0,!K.pendingData||_.M("delay_sheet_open_killswitch")?f.jumpTo(0):_.I(f,K.openSheet(K.pendingData.data,K.pendingData.target),4);K.pendingData=void 0;_.iQ(f)})};
K$.prototype.isSheetOpen=function(){var K=this,d,f;return _.c(function(H){return H.return((f=(d=K.getContainer())==null?void 0:d.isSheetOpen())!=null?f:!1)})};
var Yws=function(K,d){if(!_.M("web_parent_target_for_sheets"))return d;var f,H;return(H=(f=K.getContainer())==null?void 0:f.getParentTarget(d))!=null?H:d};var d7=window.documentPictureInPicture;var $4J=_.Am(["dark"]),EU5=_.Am(["system-icons"]),hVX=_.Am(["typography"]),bzB=_.Am(["lang"]),m4u=_.Am(["style"]),NpO=_.Am(["dir"]),YWX=_.Am(["rounded-container"]),tzB=_.Am(["style"]),WBO=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],de=function(K){this.JSC$16149_clientRoot=K;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
de.prototype.openWindow=function(K){var d=this,f,H;return _.c(function(D){if(D.nextAddress==1)return window.documentPictureInPicture&&_.m5()&&!d.currentPipWindow?_.I(D,(f=d7?d7:null)==null?void 0:f.requestWindow(K),2):D.return(!1);if(D.nextAddress!=3){H=D.yieldResult;if(!H)return D.return(!1);H.addEventListener("pagehide",function(){cF4(d)});
H.addEventListener("resize",d.handlePipWindowResize);d.pipWindowResizeDelay=new _.Jd(function(){d.currentPipWindow&&_.ev(d.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.n0(d.currentPipWindow.innerWidth,d.currentPipWindow.innerHeight)])},H);
lOG(H);ArS(H);return _.I(D,OzN(H),3)}if(!MzN())return D.return(!1);d.currentPipWindow=H;d.JSC$16149_eventForwarder=GqG(H,d.JSC$16149_clientRoot);d.pipWindowResizeDelay.start();return D.return(!0)})};
de.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var cF4=function(K){if(K.currentPipWindow){var d,f;(d=d7?d7:null)==null||(f=d.window)==null||f.close();K.currentPipWindow.removeEventListener("resize",K.handlePipWindowResize);var H;(H=K.pipWindowResizeDelay)==null||H.dispose();K.pipWindowResizeDelay=void 0;var D;(D=K.JSC$16149_eventForwarder)==null||D.stop();K.JSC$16149_eventForwarder=void 0;d=_.y(K.onCloseCallbacks);for(f=d.next();!f.done;f=d.next())f=f.value,f();K.onCloseCallbacks=[];K.currentPipWindow=null}};
de.prototype.getWindow=function(){return this.currentPipWindow};
var uK6=function(K,d){var f;(f=K.onCloseCallbacks)==null||f.push(d)};
de.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.m5()};
_.x$.Object.defineProperties(de.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
de[CG]=[GPB];var as4=new _.xn("PICTURE_IN_PICTURE_CONTROLLER");var TpS=function(K,d){this.lengthY=this.lengthX=0;this.lengthX=d.x-K.x;this.lengthY=d.y-K.y};var Is2=function(){},Evf=function(K,d){var f;
(f=K.headerElement)==null||f.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:d}))};var UNH=function(){};
UNH.prototype.openPopup=function(K,d,f,H){var D=this,S;return _.c(function(n){if(!D.container)return n.return();S={openPopupAction:{popup:d,popupType:f,uniqueId:K}};return n.return(D.container.handleOpenPopupAction(S,H))})};
UNH.prototype.closePopup=function(K){this.container&&this.container.closePopup(K)};var R_B=function(){this.openTunnels=new Map},VMo=function(K,d,f){if(x4O(f)){var H=_.rG(f,"gclid");
f={handleEvent:function(u){d&&!d.closed&&typeof d.postMessage==="function"&&u&&u.origin&&u.source===d&&u.data&&u.data.action==="gcl_setup"&&d.postMessage(Object.assign({},{action:"gcl_transfer"},H&&{gclid:H},{gadSource:2}),u.origin)}};
for(var D=_.y(K.openTunnels),S=D.next();!S.done;S=D.next()){var n=_.y(S.value);S=n.next().value;n=n.next().value;if(S.closed)try{window.removeEventListener("message",n),K.openTunnels.delete(S)}catch(u){_.$7(u)}}d&&K.openTunnels.size<15&&(K.openTunnels.set(d,f),window.addEventListener("message",f))}};var FuB=function(){this.clientParams=new Map},lZ6=function(K){for(var d=_.y(K.clientParams.keys()),f=d.next();!f.done;f=d.next())f=f.value,f.startsWith("yt-mini-app-share")&&K.clientParams.delete(f)};var z_J=function(K,d){_.gG.call(this);var f=this;this.shortsController=K;this.storeWithShorts=d;K=_.n5(this.storeWithShorts,_.vOz,function(H){if(H){var D,S=(D=f.shortsController.getRoot())==null?void 0:D.getPlayer(),n;(D=(n=f.shortsController.alternativePlayerContainerElement)==null?void 0:n.getPlayerContainer())&&(S==null||S.appendTo(D))}else{var u;n=(u=f.shortsController.alternativePlayerContainerElement)==null?void 0:u.getPlayerContainer().querySelector("#player");D=f.shortsController.activeIndex;
(u=(S=f.shortsController.getRoot())==null?void 0:S.querySelector('ytd-reel-video-renderer[id="'+D+'"] #player-container'))&&(n==null||n.appendTo(u,void 0,!0))}});
this.addOnDisposeCallback(K)};
_.O(z_J,_.gG);var f$=function(K,d,f,H,D){var S=this;this.storeWithShorts=K;this.ephemeralResponseStore=d;this.store=f;this.innertubeTransportService=H;this.innertubeTransportLoader=D;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.th(_.Dl);this.isShortsPipActive=_.th(_.Vb);this.nextReelVe=_.vp(56921);this.prevReelVe=_.vp(56922);this.backButtonVe=_.vp(22156);this.TEST_ONLY={getActiveModules:function(){return S.activeModules}}},d9J,fu8,XhN;
f$.prototype.initOrDisposeActiveModules=function(K){K?this.activeModules.push(new z_J(this,this.storeWithShorts)):(_.w0(this.activeModules),this.activeModules.length=0)};
f$.prototype.getRoot=function(){return this.rootElement};
f$.prototype.setActiveIndex=function(K){this.activeIndex=K};
_.kTk=function(K,d){var f,H,D,S,n,u,a;return _.c(function(R){switch(R.nextAddress){case 1:return f=new ni,(H=f.JSC$11002_getStoreKey(d))&&K.ephemeralResponseStore.has(H)?_.I(R,K.ephemeralResponseStore.get(H),7):_.I(R,XhN(K,d),4);case 4:D=R.yieldResult;if(!H){R.jumpTo(3);break}S=ZW(D,3600);return _.I(R,K.ephemeralResponseStore.put(H,new _.fv(S)),3);case 7:D=(n=R.yieldResult)==null?void 0:_.ed(n);case 3:return((u=D)==null?0:u.replacementEndpoint)&&(a=_.P(D.replacementEndpoint,_.IM))&&D.sequenceContinuation&&
(a.sequenceParams=D.sequenceContinuation),R.return(D)}})};
d9J=function(K,d){d=(new i0).JSC$11002_getStoreKey(d);return!!d&&K.ephemeralResponseStore.has(d)};
fu8=function(K,d,f){var H,D,S,n,u;_.c(function(a){if(a.nextAddress==1){H=new i0;D=H.JSC$11002_getStoreKey(d);if(!D)return a.return();if(f.reelWatchSequenceResponse)return S=ZW(f.reelWatchSequenceResponse,3600),K.ephemeralResponseStore.put(D,new _.fv(S)),a.jumpTo(0);if(!K.ephemeralResponseStore.has(D))return a.jumpTo(0);u=f;return _.I(a,K.ephemeralResponseStore.get(D),4)}u.reelWatchSequenceResponse=(n=a.yieldResult)==null?void 0:_.ed(n);_.iQ(a)})};
XhN=function(K,d){var f=f===void 0?{}:f;var H,D,S;return _.c(function(n){switch(n.nextAddress){case 1:if(K.innertubeTransportService){H=K.innertubeTransportService;n.jumpTo(2);break}if(!K.innertubeTransportLoader){_.G2(Error("ej"));n.jumpTo(2);break}return _.I(n,K.innertubeTransportLoader(),4);case 4:H=n.yieldResult;case 2:return _.I(n,(D=H)==null?void 0:_.Wp(D,d,f),5);case 5:return S=n.yieldResult,n.return(S)}})};
_.x$.Object.defineProperties(f$.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
f$[CG]=[qOs,_.dJ,Ks,_.Zd(_.Nn),_.Zd(WrH)];_.vCN=new _.xn("STORAGE_MANAGER_TOKEN");var wiz=new Set(["touchmove","scroll"]);var My9=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},PMv;
My9.prototype.enqueue=function(K,d){d===1?this.currentPersistentToast=K:this.queue.push(K);this.openToast()};
My9.prototype.openToast=function(){var K;(K=this.currentToast)!=null&&K.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.gC6=new _.xn("TOAST_MANAGER_TOKEN");var O4f;_.NVL=_.C8(function(K){return _.U("basic-content-view-model",{class:_.SC("ytBasicContentViewModelHost",_.QV(K.className))},_.U(_.X,{cond:function(){return K.data().headline},
then:function(d){return _.U("div",{class:"ytBasicContentViewModelHeadline"},_.U(_.ji,{text:d}))}}),_.U(_.v_,{each:function(){return K.data().paragraphs||[]},
keyBy:"INDEX"},function(d){return _.U("div",{class:"ytBasicContentViewModelParagraph"},_.U(_.X,{cond:function(){var f=d();return!!(f.header||f.customHeader||f.headline)},
then:function(){return _.U(O4f,{paragraph:d})}}),_.U(_.X,{cond:function(){return d().asset||d().text},
then:function(){return _.U("div",{class:"ytBasicContentViewModelParagraphContent"},_.U(_.X,{cond:function(){return d().asset},
then:function(f){return _.U("div",{class:"ytBasicContentViewModelParagraphAsset"},_.U(_.z1,{data:f},{contentPreviewImageViewModel:_.kd}))}}),_.U(_.X,{cond:function(){return d().text},
then:function(f){return _.U("div",{class:"ytBasicContentViewModelParagraphText"},_.U(_.ji,{text:f}))}}))}}))}))},"fe");
O4f=_.C8(function(K){var d=K.paragraph;return _.U(_.dF,null,_.U(_.X,{cond:function(){return d().headline},
then:function(f){return _.U(_.ji,{text:f,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.U(_.z1,{data:function(){return d().header||d().customHeader}},{sectionHeaderViewModel:function(f){return _.U(_.d6,{data:f.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"ge");var ty8=_.C8(function(K){return _.U("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.U(_.X,{cond:function(){return K.expanded()},
then:function(){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.U("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.U(_.X,{cond:function(){return K.data().expandedTitleImage},
then:function(d){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.U(_.jV,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:d}))}}),_.U("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.U("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.U(_.ji,{text:function(){return K.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.U(_.ji,{text:function(){return K.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.U(_.ji,{text:function(){return K.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.U("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.U(_.z1,{data:function(){return K.data().infoButton}},{buttonViewModel:_.oY}),_.U(_.z1,{data:function(){return K.data().collapseButton}},{buttonViewModel:function(d){return _.U(_.oY,{data:d.data,
onClick:function(){var f;(f=K.expandedCallback)==null||f.call(K,!1)}})}})))},
else:function(){return _.U(YM9,Object.assign({},K))}}))},"he"),oC8=_.C8(function(K){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.U(_.X,{cond:function(){return K.data().collapsedLabelImage},
then:function(d){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.U(_.jV,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:d,alt:""}))}}),_.U(_.ji,{text:function(){return K.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"ie"),YM9=_.C8(function(K){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.cp(function(){var d;return void((d=K.expandedCallback)==null?void 0:d.call(K,!0))})},_.U("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.U(_.X,{cond:function(){return K.data().collapsedImage},
then:function(d){return _.U("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.U(_.jV,{width:16,height:16,data:d,alt:""}))}}),_.U(_.X,{cond:function(){return K.data().showLeadingCollapsedLabel},
then:function(){return _.U(oC8,Object.assign({},K))}}),_.U("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.U(_.ji,{text:function(){return K.data().collapsedTitle}}))),_.U("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.U(_.X,{cond:function(){return!K.data().showLeadingCollapsedLabel},
then:function(){return _.U(oC8,Object.assign({},K))}}),_.U(_.z1,{data:function(){return K.data().infoButton}},{buttonViewModel:_.oY}),_.U(_.z1,{data:function(){return K.data().expandButton}},{buttonViewModel:function(d){return _.U(_.oY,{data:d.data,
onClick:function(){var f;(f=K.expandedCallback)==null||f.call(K,!0)}})}})))},"je");_.$Nv=_.C8(function(K){var d=_.y(_.am(function(){return K.data().initiallyExpanded})),f=d.next().value,H=d.next().value,D,S=(D=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:D(),n=function(){var u=K.data().colorData;
if(u)return S?u==null?void 0:u.darkColorPalette:u==null?void 0:u.lightColorPalette};
return _.U("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Im({"background-color":function(){var u=n();return(u==null?0:u.section2Color)?_.hG(u.section2Color):""}})},_.U(_.z1,{data:function(){return K.data().header}},{expandableMetadataHeaderViewModel:function(u){return _.U(ty8,{data:u.data,
expanded:function(){return!!f()},
expandedCallback:function(a){H(a)}})}}),_.U(_.X,{cond:function(){return f()},
then:function(){return _.U("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.U(_.z1,{data:function(){return K.data().expandedContent}},{horizontalShelfViewModel:function(u){return _.U(_.Ye,{data:u.data,
includeMargin:!0,forceNarrowLayout:!0,palette:n})},
videoSummaryContentViewModel:function(u){return _.U(up8,{data:u.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(u){return _.U(_.ef,{data:u.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(u){return _.U(_.NVL,{data:u.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.U(_.z1,{data:function(){return K.data().expandedBottomButtons}},{buttonViewModel:function(u){return _.U("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.U(_.oY,{data:u.data}))}}))}}))},"ke");var EC9=_.C8(function(K){var d=K.text;var f=K.marqueeSpacing;var H=K.scrollDelay;var D=K.scrollDuration;var S=K.enableMarqueeScroll;K=K.large;var n=_.y(_.cC(!1,void 0,"kfNqfd")),u=n.next().value,a=n.next().value,R=_.y(_.cC(0,void 0,"bYgZbf"));n=R.next().value;var F=R.next().value,z=_.Co();R=_.Co();var v=_.Co(),g=_.eq().resolve(_.rl);_.ol(function(){if(S()){var m=v.value.getBoundingClientRect().width,T=z.value.getBoundingClientRect().width;if(m>T){var r=(g==="ltr"?-1:1)*(m+(f?f():16));Promise.resolve().then(function(){a(!0);
F(r)})}}});
var N={},h={};return _.U("marquee-scroll",{class:_.SC("ytMarqueeScrollHost",(N.ytMarqueeScrollHostLarge=K,N)),el:z},_.U("div",{id:"marquee-scroll-inner-container",class:_.SC("ytMarqueeScrollInnerContainer",(h.ytMarqueeScrollAnimationEnabled=function(){return u()},h)),
el:R,style:_.Im({gap:f?(0,_.PH)(f):"16px","animation-duration":D?KBB(D):"16s","animation-delay":H?KBB(H):"3s","--marquee-translate":(0,_.PH)(n)})},_.U("span",{el:v,dir:"auto"},_.U(_.ji,{text:d,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.U(_.X,{cond:u,then:function(){return _.U("span",{"aria-hidden":"true",dir:"auto"},_.U(_.ji,{text:d,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"le");_.h_9=_.C8(function(K){var d=K.data;var f=K.overlayDensity;K=_.cp(function(){d().onTapCommand&&_.me(d().onTapCommand);return!1});
var H=_.JUG(),D={};return _.U("reel-sound-metadata-view-model",{class:_.SC("ytReelSoundMetadataViewModelHost",(D.ytReelSoundMetadataViewModelHostLarge=function(){return(f==null?void 0:f())===1},D)),
"on:click":K,tabindex:0,role:"button","on:keydown":H},_.U("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.U(_.X,{cond:function(){return d().musicIcon},
then:function(S){return _.U(_.jV,{data:S,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.U("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.U(EC9,{text:function(){return d().soundMetadata},
enableMarqueeScroll:function(){return!!d().enableMarqueeScroll},
large:function(){return(f==null?void 0:f())===1}}))))},"me");var b4J,mN2,HX,AF4,rFJ,GgB,jH6,QHH;b4J=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];mN2=_.di("wil_icon_max_concurrent_fetches",Infinity);
HX=function(K,d,f){var H=this;this.iconSet=K;this.appDirection=d;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Hu.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.M("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.M("wil_icon_network_first");this.renderWhenIdle=_.M("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.M("wil_icon_load_immediately");this.isPurging=!1;K=function(){H.cacheStorageAvailable&&(H.cacheStorageAsync=_.Hu.caches.open("yt-icons").then(function(S){return H.cacheStorageSync=S}).catch(function(){H.cacheStorageAvailable=!1}))};
f=(f==null?void 0:f())||{};f=_.y(Object.entries(f));for(d=f.next();!d.done;d=f.next()){var D=_.y(d.value);d=D.next().value;D=D.next().value;D=Id(D);lsJ(D);this.iconCache[d]=D.cloneNode(!0)}this.isPurging=Wu4(this);this.isPurging instanceof Promise?this.isPurging.then(K):K()};
_.TrY=function(K,d){var f=K.resolveIcon(d);return f?K.renderingMode===1?GgB(K,f,K.renderingMode):(d=K.iconCache[f.url])?(d=d.cloneNode(!0),AF4(K,d),GgB(K,f,K.renderingMode,d)):_.TVH(K,f).then(function(H){var D=H?0:1;AF4(K,H);return GgB(K,f,D,H)}):(_.EN(new _.X4("Icon not found",{iconShape:d})),function(){})};
AF4=function(K,d){if(d){K.counter+=1;K="_yt"+K.counter;d=[d].concat(_.Me(d.getElementsByTagName("*")));d=_.y(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.tagName==="style"&&f.textContent)f.textContent=rFJ(f.textContent,K,!0);else for(var H=_.y(f.attributes),D=H.next();!D.done;D=H.next()){D=D.value;D.name==="id"&&(D.value+=K);["mask","fill","clip-path"].includes(D.name)&&(D.value=rFJ(D.value,K));if(D.name==="style"){var S=f.style;try{S.cssText=rFJ(S.cssText,K,!0)}catch(F){var n=void 0,u=
void 0,a=void 0,R=void 0;DX({error:((n=F)==null?void 0:(a=(u=n).toString)==null?void 0:a.call(u))||"",el:f.outerHTML,style:!!S,cssText:(R=S)==null?void 0:R.cssText})}}D.name==="xlink:href"&&(D.value=D.value.replace(/#(.*)/,"#$1"+K))}}};
rFJ=function(K,d,f){var H=/url\(["']?#(.*?)["']?\)/;(f===void 0?0:f)&&(H=/url\(["']?#(.*?)["']?\)/g);return K.replace(H,"url(#$1"+d+")")};
GgB=function(K,d,f,H){return function(D,S){var n=Object.assign({},{iconColor:"currentcolor",iconWidth:d.size+"px",iconHeight:d.size+"px",iconDisplay:"block"},S);S=_.RQ("DIV");var u=n.iconColor,a=n.iconFilter;n="width: "+n.iconWidth+"; height: "+n.iconHeight+"; display: "+n.iconDisplay+";";a&&(n+=" filter: "+a+";");f===0&&(n+=" fill: "+u+";");f===1&&(a=d.url,n+=" -webkit-mask: url("+a+") no-repeat center / cover; mask: url("+(a+") no-repeat center / cover; background-color: ")+u);d.allowMirroring&&
K.appDirection==="rtl"&&(n+=" transform: scale(-1, 1); transform-origin: center center;");S.setAttribute("style",n);f===0&&H&&S.appendChild(H);D.appendChild(S)}};
_.TVH=function(K,d){var f,H,D;return _.c(function(S){f=function(n){return ta(n)};
H=d.url;if(!qMB(H))throw Error("fj");D=QHH(K,H);return S.return(D.then(function(n){return n.clone().text()}).then(function(n){var u=f(n);
n=d.size;var a=_.RQ("DIV");_.TY(a,u);u=_.FE(a.firstElementChild!==void 0?a.firstElementChild:_.YY2(a.firstChild,!0));n=lsJ(u,n);K.iconCache[H]=n.cloneNode(!0);delete K.responsePromises[H];return n}).catch(function(){}))})};
jH6=function(K){var d,f=(d=K.requestAninmationFrameResolver)==null?void 0:d.promise;f||(K.requestAninmationFrameResolver=new _.fU,f=K.requestAninmationFrameResolver.promise,_.Hu.requestAnimationFrame(function(){var H;(H=K.requestAninmationFrameResolver)==null||H.resolve();K.requestAninmationFrameResolver=null}));
return f};
QHH=function(K,d){var f,H;return _.c(function(D){if(D.nextAddress==1)return K.waitForAnimationFrame?_.I(D,jH6(K),2):D.jumpTo(2);f=K.responsePromises[d];f||(H=function(){var S,n,u;return _.c(function(a){switch(a.nextAddress){case 1:if(!K.cacheStorageAvailable){S=void 0;a.jumpTo(2);break}if(n=K.cacheStorageSync){a.jumpTo(3);break}return _.I(a,K.cacheStorageAsync,4);case 4:n=a.yieldResult;case 3:S=n;case 2:return u=S,K.isNetworkFirstStrategy?a.return(K.fetchAndUpdateCache(d,u).catch(K.getCacheStorageResponse.bind(K,
d,u))):a.return(K.getCacheStorageResponse(d,u).catch(K.fetchAndUpdateCache.bind(K,d,u)))}})},f=K.renderWhenIdle?new Promise(function(S,n){_.va(_.oc,function(){H().then(S).catch(n)},10)}):H(),K.responsePromises[d]=f);
return D.return(f.catch(function(S){delete K.responsePromises[d];DX({error:(S==null?0:S.toString)?S.toString():"",url:d});throw S;}))})};
HX.prototype.fetchAndUpdateCache=function(K,d){var f=this;return _.c(function(H){return H.return(CM9(f,K).then(function(D){xNJ(f,K,D,d);return D}))})};
var CM9=function(K,d){var f;return _.c(function(H){if(K.numFetches<mN2)return K.numFetches+=1,H.return(LuL(K,d).finally(function(){--K.numFetches;if(Object.keys(K.queuedResponseResolvers).length){var D=Object.keys(K.queuedResponseResolvers)[0],S=K.queuedResponseResolvers[D];delete K.queuedResponseResolvers[D];S.resolve(CM9(K,D))}}));
f=new _.fU;K.queuedResponseResolvers[d]=f;return H.return(f.promise)})},LuL=function(K,d,f){f=f===void 0?2:f;
var H;return _.c(function(D){H={credentials:"same-origin",priority:"low"};return D.return(_.Hu.fetch(d,H).then(function(S){return S.ok?S:Promise.reject(Error("gj`"+S.status+"`"+S.statusText))}).catch(function(S){if(f>0)return LuL(K,d,f-1);
throw S;}))})},xNJ=function(K,d,f,H){_.c(function(D){return H?D.return(new Promise(function(S){_.va(_.oc,function(){var n,u;
return _.c(function(a){switch(a.nextAddress){case 1:if(!K.isNetworkFirstStrategy){n=void 0;a.jumpTo(2);break}return _.I(a,H.match(d).catch(function(){}),3);
case 3:n=a.yieldResult;case 2:if(u=n){a.jumpTo(4);break}return _.I(a,H.put(d,f.clone()).catch(function(R){DX({error:(R==null?0:R.toString)?R.toString():"",url:d})}),4);
case 4:S(),_.iQ(a)}})},50)})):D.return()})};
HX.prototype.getCacheStorageResponse=function(K,d){return _.c(function(f){return d?f.return(d.match(K).then(function(H){return H&&H.ok?H:Promise.reject()})):f.return(Promise.reject())})};
var lsJ=function(K,d){d===void 0||K.getAttribute("viewBox")||K.setAttribute("viewBox","0 0 "+d+" "+d);K.setAttribute("focusable","false");K.setAttribute("aria-hidden","true");try{K.style.pointerEvents="none",K.style.display="inherit",K.style.width="100%",K.style.height="100%"}catch(D){var f;DX({error:((f=D)==null?0:f.toString)?D.toString():""});try{K.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(S){var H;DX({error:((H=S)==null?0:H.toString)?S.toString():
""})}}return K},qMB=function(K){for(var d=_.y(b4J),f=d.next();!f.done;f=d.next())if(K.startsWith(f.value)&&K.endsWith(".svg"))return!0;
return!1};
HX.prototype.resolveIcon=function(K){return this.iconSet.resolveIcon(K)};
var DX=function(K){_.h3(new _.X4("Error in IconManager",K))},Wu4=function(K){if(_.M("wil_icons_cache_purge_killswitch"))return!1;
try{var d=_.Hu.localStorage}catch(S){return!1}if(!d||!K.cacheStorageAvailable)return!1;var f=function(S){try{var n;(n=d)==null||n.setItem("yt-icons-last-purged",S.toString())}catch(a){var u;DX({error:((u=a)==null?0:u.toString)?a.toString():""})}},H=Number(d.getItem("yt-icons-last-purged"));
if(!H)return H=new Date,H=H.setDate(H.getDate()-Math.floor(Math.random()*90+1)),f(H),!1;if(function(S,n){S=new Date(S);n=new Date(n);return n.getMonth()-S.getMonth()+12*(n.getFullYear()-S.getFullYear())}(H,Date.now())<3)return!1;
try{return _.Hu.caches.delete("yt-icons").then(function(S){S&&f(Date.now());return S}).catch(function(){return!1}).finally(function(){K.isPurging=!1})}catch(S){var D;
DX({error:((D=S)==null?0:D.toString)?S.toString():""});return!1}};
HX[CG]=[HR2,_.rl,_.Zd(SwH)];_.Vl=function(K,d){this.iconManager=K;this.iconsToFetch=d};
_.Vl[CG]=[_.DF,_.Zd(VTf)];var BVt=function(){};var JF4=function(K,d,f){this.requestKey=K;this.czV=d;this.pYG=f;this.mYP=function(){return new XMLHttpRequest};
this.oQl=void 0;this.vSc=[]};
JF4.prototype.getLatestChallengeResponse=function(){return this.pYG};
var OMv=function(K,d,f){var H,D,S,n;return _.c(function(u){if(u.nextAddress==1){_.NY("attestation_challenge_fetch");_.YJ("att_fs",void 0,"attestation_challenge_fetch");if(!K.oQl)throw new _.Rt(9,"Missing fetcher");return _.I(u,K.oQl(d,f),2)}H=u.yieldResult;S=(D=H)==null?void 0:D.bgChallenge;if(!S)throw new _.Rt(15,"Missing field");K.pYG=H;K.vSc.forEach(function(a){a(H)});
n=dwB(S);_.YJ("att_fc",void 0,"attestation_challenge_fetch");dhu("attestation_challenge_fetch");return u.return(n)})},Ja6=function(K,d){var f,H,D,S,n;
return _.c(function(u){switch(u.nextAddress){case 1:f=new Sh(100,3E5,.25,2),H=void 0;case 2:if(!(f.currBackoffCount_<10)){u.jumpTo(4);break}_.HF(u,5);if(!(f.currBackoffCount_>0)){u.jumpTo(7);break}return _.I(u,ZzJ(f.getValue()),7);case 7:return _.I(u,sHH(K,d),9);case 9:return D=u.yieldResult,u.return(D);case 5:S=_.n7(u);S instanceof _.Rt?H=S:(n=S instanceof Error?S.message:"Unknown",H=new _.Rt(9,n));l72(f);u.jumpTo(2);break;case 4:if(H)throw H;throw new _.Rt(9,"Unknown error");}})},sHH=function(K,
d){d=aa9(Ia8(new uat,d),K.requestKey);
var f=new _.fU,H=K.mYP();H.open("POST",K.czV);H.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");H.setRequestHeader("Content-Type","application/json+protobuf");H.onload=function(){if(_.ltS(H)){var D=gQs(H.responseText);f.resolve(D)}else f.reject(new _.Rt(_.nm(_.DU(H)),H.statusText))};
H.onerror=function(){f.reject(new _.Rt(_.nm(_.DU(H)),H.statusText))};
H.send(d.serialize());return f.promise};var wht=function(K){this.networkStatusManager=K;this.isDownloaded=plJ===void 0?function(){return!1}:plJ;
this.isReady=!1;this.vYe=kgk(this)},kgk=function(K){var d;
return _.c(function(f){if(f.nextAddress==1)return _.I(f,ElN(),2);if(f.nextAddress!=3)return d=f.yieldResult,_.I(f,C99(d),3);K.bE=f.yieldResult;piu(K.bE).then(function(){K.isReady=!0});
return f.return(K.bE)})},Z49=function(K,d,f){K.bE?(K=K.bE.l9({uv:f,
dmj:!0,n1G:!0}),d.serviceIntegrityDimensions={poToken:K}):_.$7(Error("ij"))};
wht.prototype.processContext=function(K){var d=this;if(!K.input.match(_.CF(HIN)))return _.GI();var f=K.innerTubeRequest,H=f.videoId;return!H||this.isDownloaded(f)||this.networkStatusManager&&!this.bE&&!this.networkStatusManager.isNetworkAvailable()?_.GI():this.bE?this.isReady?(Z49(this,f,H),_.GI()):new Wr(piu(this.bE).then(function(){Z49(d,f,H)})):new Wr(this.vYe.then(function(D){return _.c(function(S){if(S.nextAddress==1)return _.I(S,piu(D),2);
Z49(d,f,H);_.iQ(S)})}))};var e_s=new _.xn("WEB_PO_CONTEXT_PROCESSOR");var phJ=function(K,d){var f=this;this.fbb=0;var H;this.kkO=(H=d==null?void 0:d.kkO)!=null?H:window;this.networkStatusManagerPromise=d==null?void 0:d.networkStatusManagerPromise;var D;this.requestKey=(D=d==null?void 0:d.requestKey)!=null?D:_.fy("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var S;this.pKK=(S=d==null?void 0:d.pKK)!=null?S:function(a){return new gv(a)};
var n;H=(n=d==null?void 0:d.tny)!=null?n:function(a,R,F){return new JF4(a,R,F)};
this.bgChallenge=dwB(K.bgChallenge);this.ttlSeconds=f15(jd(K.challenge||""));this.yR=H(this.requestKey,_.M("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Hu.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",K);eVp(this.yR);var u;this.q1g=(u=d==null?void 0:d.q1g)!=null?u:function(a){_.zG(f.kkO.document,"visibilitychange",function(){f.kkO.document.visibilityState===
"visible"&&a()})}},dJS=function(K){if(!K.bV){var d={maxAttempts:5,
y0j:K.ttlSeconds*1E3};KYo(K.kkO);K.bV=K.pKK({yR:K.yR,n7:{disable:_.M("html5_web_po_disable_remote_logging"),mX:"aGIf",vvZ:$5z("html5_web_po_experiment_ids"),gdh:_.M("wpo_dis_lfdms")?0:1E3,ih:_.M("wpo_gel_strz")?function(H){var D=dZL.get(H);D||(D=new KX4(H),D=new ul(D),dZL.set(H,D));return D}:void 0},
gU2:d,tph:K.bgChallenge,ljm:dEz});K.fbb=Date.now();XgH(K.bV,function(){K.fbb=Date.now()});
lqB(K.bV,function(){return _.c(function(H){return H.return(K5S(K))})});
var f=K.cTQ.bind(K);K.networkStatusManagerPromise&&K.ttlSeconds>0&&K.networkStatusManagerPromise.then(function(H){H.listen("publicytnetworkstatus-online",f)});
K.q1g(f)}};
phJ.prototype.cTQ=function(){if(Date.now()>this.fbb+this.ttlSeconds*1E3){var K;(K=this.bV)==null||zXH(K)}};
var K5S=function(K){if(K.rYS)return K.rYS;if(!K.bV)throw Error("jj");K.rYS=new ot({bV:K.bV,yR:K.yR,xEb:!0,onError:dEz});return K.rYS},HkX=function(K,d){K=new phJ(K,d);
dJS(K);K5S(K)};var Sj=function(K,d){this.store=K;this.queue=[];this.supportsFocus=_.M("web_ephemeral_actions_focus");d==null||d.addEventListener("yt-navigate-start",this.reset.bind(this))};
Sj.prototype.enqueue=function(K){var d=K.command,f=K.durationMs,H=K.elementToFocus;var D=K.label;var S=K.elementToFocus;K.command?D=_.iB("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:D,shortcut:_.iB("SHIFT_PLUS_ENTER")}):S&&this.supportsFocus&&(K=D+". "+_.iB("SHIFT_PLUS_ENTER")+" for more information.",D=_.iB("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:D,shortcut:_.iB("SHIFT_PLUS_ENTER")},K));f={announcement:D,durationMs:f!=null?f:this.supportsFocus?8E3:void 0};d?f.command=d:H&&this.supportsFocus&&(H.classList.add("ephemeral-action-focusable-element"),
f.selector=H.tagName+".ephemeral-action-focusable-element");this.queue.push(f);fnc(this)};
Sj.prototype.activate=function(K){var d=_.IOY(this.store.getState());if(d){if(d==null?0:d.command)_.EP(d.command),this.store.dispatch(e4s(null));(d==null?0:d.selector)&&this.supportsFocus&&(d=document.querySelector(d.selector),_.pCS(d));K.preventDefault()}};
var fnc=function(K){if(!_.IOY(K.store.getState())&&K.queue.length){var d=K.queue.shift();d&&(K.previousAnnouncement===d.announcement&&(d.announcement+="\u00a0"),K.store.dispatch(e4s(d)),K.previousAnnouncement=d.announcement,K.timeoutId=setTimeout(function(){if(d.selector&&K.supportsFocus){var f;(f=document.querySelector(d.selector))==null||f.classList.remove("ephemeral-action-focusable-element")}K.store.dispatch(e4s(null));fnc(K)},d.durationMs))}};
Sj.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(e4s(null));this.queue.length=0;this.timeoutId=void 0};
Sj[CG]=[_.tj,_.um];_.yl=new _.xn("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var HBZ=new _.xn("AUTH_SERVICE_TOKEN");var SCp=_.Am(["about:blank"]),VXz;var DJZ=new _.xn("API_IFRAME_TOKEN"),Vpz=new _.xn("FETCH_FN_TOKEN"),SYZ=new _.xn("PARSE_FN_TOKEN"),yNS=new _.xn("WINDOW_REQUEST_TOKEN");var NyL;NyL=new _.xn("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.nzy=new _.xn("MISC_UI_SHARED_FLAGS_TOKEN");var iBt=function(){};
iBt.prototype.getFlag=function(K){if(K.configType!==2)throw Error("kj");return cNy(K)};
var cNy=function(K){switch(K.flagType){case "bool":return _.M(K.flagName);case "int":return _.k8(_.di(K.flagName));case "double":return _.di(K.flagName);case "string":return _.fy(K.flagName);case "int32_list":return $5z(K.flagName);case "int64_list":return $5z(K.flagName).map(function(d){return _.k8(d)});
case "string_list":return _.H6(K.flagName);default:throw Error("lj");}};var n$=function(K,d,f){d=d===void 0?{}:d;gh.call(this,f===void 0?"uninitialized":f);this.env=K;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}];d.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=d.shouldWaitOnAsyncImmediate)};
_.O(n$,gh);n$.prototype.init=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return d.processPluginOptions.shouldWaitOnAsyncImmediate?_.I(H,K(d.env),2):(K(d.env),H.jumpTo(2));if(H.nextAddress!=4)return d.jobSet?_.I(H,d.jobSet.completedResolver.promise,4):H.jumpTo(4);f=_.ov();f.parkOrScheduleJob(function(){d.transition("rendering")},10,"ci");
_.iQ(H)})};
n$.prototype.initialRender=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return d.processPluginOptions.shouldWaitOnAsyncImmediate?_.I(H,K(d.env),2):(K(d.env),H.jumpTo(2));if(H.nextAddress!=4)return d.jobSet?_.I(H,d.jobSet.completedResolver.promise,4):H.jumpTo(4);f=_.ov();f.parkOrScheduleJob(function(){d.transition("rendered")},10,"cr");
_.iQ(H)})};
n$.prototype.afterRenderImmediate=function(K){var d=this,f;return _.c(function(H){if(H.nextAddress==1)return d.processPluginOptions.shouldWaitOnAsyncImmediate?_.I(H,K(d.env),2):(K(d.env),H.jumpTo(2));if(H.nextAddress!=4)return d.jobSet?_.I(H,d.jobSet.completedResolver.promise,4):H.jumpTo(4);f=_.ov();f.parkOrScheduleJob(function(){d.transition("after-render-deferred")},10,"carml");
_.iQ(H)})};
n$.prototype.afterRenderDeferred=function(K){var d=this;return _.c(function(f){K(d.env);_.iQ(f)})};var uXy={},anl=(uXy.rendered={priority:0,callback:function(K){dHv(K.injector.resolve(MF))}},uXy);var Inz=!1,RDO=0,uYo=null,UEY=null;var UJl=new _.xn("NETWORK_SLI_TOKEN");var RGS=function(K,d,f,H){this.networkSli=K;this.fetchFn=d;this.parseFn=f;this.requestFn=H};
RGS.prototype.fetch=function(K,d,f){var H=this,D,S,n;return _.c(function(u){D=F5P(H,K,d);n=(S=H.fetchFn)!=null?S:fetch;return u.return(n(D).then(function(a){return H.handleResponse(a,f)}).catch(function(a){_.h3(a);
if((f==null?0:f.expectJsonStrict)&&a instanceof nI&&a.errorType===1)return Promise.reject(a)}))})};
var BDv=function(K,d,f,H){var D,S,n,u,a,R;return _.c(function(F){switch(F.nextAddress){case 1:return D=F5P(K,d,f),_.HF(F,2),_.I(F,fetch(D),4);case 4:S=F.yieldResult;_.Ts(F,3);break;case 2:throw _.n7(F),new nI(2,"Failed to parse streaming response",D.url);case 3:if(!S.redirected&&!S.ok)throw(n=K.networkSli)==null||n.failure(),new _.X4("Streaming fetch request not ok",D.url);if(!S.body)throw new _.X4("No response body in streaming response",D.url);u=S.body.pipeThrough(new TextDecoderStream).getReader();
a=new _.k1;R={};return F.return(zGK(K,u,a,evB,R,H))}})},F5P=function(K,d,f){if(K.networkSli){var H=_.ny(_.L1(d,"key"))||"/UNKNOWN_PATH";
K.networkSli.start(H)}H=f;_.M("wug_networking_gzip_request")&&(H=jON(f));var D;return new ((D=K.requestFn)!=null?D:window.Request)(d,H)},zGK=function(K,d,f,H,D,S){var n,u,a,R,F,z,v,g,N;
return _.c(function(h){if(h.nextAddress==1)return _.I(h,d.read(),2);n=h.yieldResult;u=n.value;if(a=n.done)return(R=K.networkSli)==null||R.success(),h.return(D);try{F=f.parse(u)}catch(m){throw new nI(1,"Failed to parse streaming response",u);}if(F!=null)for(z=_.y(F),v=z.next();!v.done;v=z.next())g=v.value,H(D,g),N=void 0,(N=S)==null||N(D,g);return h.return(zGK(K,d,f,H,D,S))})};
RGS.prototype.handleResponse=function(K,d){var f,H=(f=this.parseFn)!=null?f:JSON.parse;f=K.text().then(function(D){if((d==null?0:d.jspbResponseCtor)&&K.ok)return HwS(d.jspbResponseCtor,D);D=D.replace(")]}'","");if((d==null?0:d.expectJsonStrict)&&D)try{var S=H(D)}catch(u){throw new nI(1,"JSON parsing failed after fetch");}var n;return(n=S)!=null?n:H(D)});
K.redirected||K.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),f=f.then(function(D){_.h3(new _.X4("Error: API fetch failed",K.status,K.url,D));return Object.assign({},D,{errorMetadata:{status:K.status}})}));
return f};
RGS[CG]=[_.Zd(UJl),_.Zd(Vpz),_.Zd(SYZ),_.Zd(yNS)];var Xuc=new _.xn("NETWORK_MANAGER_TOKEN");var vzU=[1,2,4,8,16,30],Poi=function(K){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=K.maxTimeMs;this.maxFrameCount=K.maxFrameCount===void 0?Math.ceil(60*K.maxTimeMs/1E3):K.maxFrameCount;K=_.y(vzU);for(var d=K.next();!d.done;d=K.next())this.brokenFrameSummarizers.push(new Mpz(d.value/60*1E3))},gz5=function(K){var d=K.frameCountInternal>=K.maxFrameCount;
return K.elapsedTimeMs>=K.maxTimeMs||d},OB5=function(K){for(var d=[],f=_.y(K.brokenFrameSummarizers),H=f.next();!H.done;H=f.next())H=H.value,H=H.brokenFrameCount!==0?{severityMs:Math.round(H.targetFrameTimeMs),
eventCount:H.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(H.averageDurationBetweenEventsMs)}:void 0,H&&d.push(H);return{summaries:d,monitoringDurationMs:Math.round(K.elapsedTimeMs)}};
_.x$.Object.defineProperties(Poi.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 Mpz=function(K){this.targetFrameTimeMs=K;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.x$.Object.defineProperties(Mpz.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var Nzw=function(){};
Nzw.prototype.start=function(K,d){var f=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var H=new Poi({maxTimeMs:K});this.monitor=H;this.lastSummaryInternal=void 0;this.metadataToLog=d;return new Promise(function(D){var S=function(n){if(n===void 0)f.stop(),D(void 0);else if(f.monitor!==H)n=Object.assign({},OB5(H),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),D(n);else{var u=f.monitor;if(!gz5(u)){u.frameCountInternal++;if(u.prevTime===void 0)u.startTime=
n;else for(var a=n-u.prevTime,R=_.y(u.brokenFrameSummarizers),F=R.next();!F.done;F=R.next()){F=F.value;var z=F.currTimeMs;F.currTimeMs+=a;a>F.targetFrameTimeMs+2&&(F.brokenFrameCount++,F.timeOfFirstBrokenFrameMs===void 0&&(F.timeOfFirstBrokenFrameMs=z),F.timeOfLastBrokenFrameMs=z)}u.prevTime=n}gz5(f.monitor)?D(f.stop()):_.oc.addJob(S,5,0)}};
_.oc.addJob(S,5,0)})};
Nzw.prototype.stop=function(K){if(!this.monitor)return this.lastSummaryInternal;var d=Object.assign({},OB5(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(d.monitoringDurationMs){K=K!=null?K:this.metadataToLog;var f={droppedFramesSummary:d,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};K&&(f[K.type]=K.data);_.t3("manualSmoothnessMeasurement",f)}this.monitor=void 0;this.lastSummaryInternal=d;this.metadataToLog=void 0;return d};_.YYw=new _.xn("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var tpy;tpy=function(K){this.JSC$16273_expiringStorage=new MX(K)};
_.oz5=function(K){if(_.FYX()&&(K=_.zJS(_.F4()+"::"+K)))return new tpy(K)};
tpy.prototype.set=function(K,d,f){f=f!==void 0?Date.now()+f:void 0;this.JSC$16273_expiringStorage.set(K,d,f)};
tpy.prototype.get=function(K){return this.JSC$16273_expiringStorage.get(K)};
tpy.prototype.remove=function(K){this.JSC$16273_expiringStorage.remove(K)};var $JP=new _.xn("SESSION_STORAGE");_.i5=function(){};
_.i5.getInstance=function(){var K=_.T2("ytglobal.storage_");K||(K=new _.i5,_.B6("ytglobal.storage_",K));return K};
_.i5.prototype.estimate=function(){var K,d,f;return _.c(function(H){K=navigator;return((d=K.storage)==null?0:d.estimate)?H.return(K.storage.estimate()):((f=K.webkitTemporaryStorage)==null?0:f.queryUsageAndQuota)?H.return(zDu()):H.return()})};
_.B6("ytglobal.storageClass_",_.i5);var EzP=!1;var hGZ=_.Am(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),bBU=_.Am(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var xyf={"/":_.yg,"/?feature=ytca":_.yg,"/feed/downloads":_.z1B};var SH=function(K,d,f){this.JSC$16286_upliftPromise=K;this.store=d;this.JSC$16286_persistentStorePromiseAccessor=f};
SH.prototype.shouldPreferLocalResponse=function(K){return K.browseId==="FEdownloads"||K.browseId==="FEsmart_downloads"&&_.M("kevlar_modern_downloads_page")?!0:!1};
SH.prototype.localInnertubeResponse=function(K){var d=this;return _.c(function(f){return K.browseId==="FEdownloads"?_.M("kevlar_modern_downloads_page")?f.return(mJy(d)):f.return(lnE(d)):K.browseId==="FEsmart_downloads"&&_.M("kevlar_modern_downloads_page")?f.return(W57(d)):f.return(Promise.reject(Error("nj")))})};
SH.prototype.canProvideFallbackResponse=function(){return!0};
SH.prototype.localFallbackInnertubeResponse=function(K){var d=this,f,H,D;return _.c(function(S){switch(S.nextAddress){case 1:return _.I(S,d.JSC$16286_persistentStorePromiseAccessor(),2);case 2:f=S.yieldResult;if(K.browseId!=="SPaccount_downloads"||!f){S.jumpTo(3);break}return _.I(S,ehJ(f),4);case 4:if(H=S.yieldResult)return S.return(_.ed(H));case 3:return K.browseId==="FEwhat_to_watch"?S.return(GSZ(d)):(D=_.M("web_offline_continuation_automatic_retry")||_.M("web_offline_continuation_retry_button"))&&
K.continuation?S.return(ANz(d)):S.return(Tzw(d))}})};
var GSZ=function(K){var d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,K.JSC$16286_upliftPromise,2);d=_.Kvo(K.store.getState().entities);return d.length?f.return(rNU(K,d)):f.return(Tzw(K))})},lnE=function(K){var d,f;
return _.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$16286_upliftPromise,2);if(H.nextAddress!=3)return d=qYt([{offlineItemSectionRenderer:{}}]),_.I(H,QXt(K,d),3);f=H.yieldResult;f.onResponseReceivedActions=[R9("REFRESH_DOWNLOADS")];return H.return(f)})},mJy=function(K){var d,f,H,D,S,n,u,a,R,F,z,v,g;
return _.c(function(N){if(N.nextAddress==1)return _.I(N,K.JSC$16286_upliftPromise,2);if(N.nextAddress!=3)return d=K.store.getState(),f=d.entities,H=_.vJ(f),D=_.MQ(f),S=_.hxY(d),n=_.EHX(d),u=_.b2N(d),a=_.DVJ(f),R=_.UV(H),F=_.PJ(f),z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.ogz(H,D,a,S,n,R,F,u),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},v=_.iB("DOWNLOADS",void 0,"Downloads"),_.I(N,jXz(K,z,v),3);g=N.yieldResult;
g.onResponseReceivedActions=[R9("REFRESH_DOWNLOADS")];return N.return(g)})},W57=function(K){var d,f,H,D,S,n,u,a,R;
return _.c(function(F){if(F.nextAddress==1)return _.I(F,K.JSC$16286_upliftPromise,2);if(F.nextAddress!=3)return d=K.store.getState(),f=d.entities,H=_.vJ(f),D=_.UV(H),S=_.PJ(f),n={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.EgS(H),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},u=_.iB("SMART_DOWNLOADS",void 0,"Smart downloads"),a=YiO(D,S),_.I(F,jXz(K,n,u,a),3);R=F.yieldResult;R.onResponseReceivedActions=[R9("REFRESH_DOWNLOADS")];
return F.return(R)})},Tzw=function(K){var d,f;
return _.c(function(H){if(H.nextAddress==1)return _.I(H,Zl(K.JSC$16286_upliftPromise,K.store),2);d=H.yieldResult;f=qYt([sxz(d)]);return H.return(QXt(K,f))})},ANz=function(K){var d,f,H,D;
return _.c(function(S){if(S.nextAddress==1)return d={},f=K.store.getState().continuation.continuationCommand,_.OP(d,_.$P,f),_.I(S,Zl(K.JSC$16286_upliftPromise,K.store,d,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);H=S.yieldResult;D={};_.OP(D,_.Q1s,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:H}}}],targetId:"browse-feedFEwhat_to_watch"});return S.return({responseContext:{},onResponseReceivedActions:[D]})})},qYt=function(K){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:K}}}}]}}},rNU=function(K,d){var f,H;
return _.c(function(D){var S={contents:Fr(d)};f=S&&S.contents?S:{};_.M("kevlar_modern_downloads_page")&&(f=Object.assign({},_.h1o(d),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));H={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:f}}}]}};return D.return(QXt(K,H))})},QXt=function(K,d){var f,H;
return _.c(function(D){if(D.nextAddress==1)return _.I(D,K.JSC$16286_persistentStorePromiseAccessor(),2);if(D.nextAddress!=3)return f=D.yieldResult,_.I(D,pY(f),3);H=D.yieldResult;return D.return({responseContext:{},contents:d,topbar:H})})},jXz=function(K,d,f,H){var D,S;
return _.c(function(n){if(n.nextAddress==1)return _.I(n,K.JSC$16286_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return D=n.yieldResult,_.I(n,pY(D),3);S=n.yieldResult;var u=n.return;var a=H;a=a===void 0?"":a;a={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:f}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.iB("SETTINGS",void 0,"Settings"),accessibilityText:_.iB("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:Jy("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:a}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:f};
return u.call(n,{responseContext:{},contents:d,topbar:S,header:{pageHeaderRenderer:a}})})};var CoP=function(){this.moduleRegistry={};this.fetchCount=0};
CoP.prototype.isFetching=function(){return this.fetchCount>0};
var Ea=function(K,d){K.moduleRegistry[d.toString()]={asyncId:d,isFetching:!1};return K};
CoP.prototype.JSC$16297_loadModules=function(){for(var K=this,d=new Map,f=[],H=_.y(_.Pg.apply(0,arguments)),D=H.next();!D.done;D=H.next()){D=D.value;var S=this.moduleRegistry[D];S?S.resolver?d.set(D,S.resolver):(S.resolver=new _.fU,d.set(D,S.resolver),f.push(S.asyncId),S.isFetching=!0):(S=new _.fU,d.set(D,S),S.resolve(void 0))}f.length&&(this.fetchCount+=1,_.It(_.kf.getMultipleAsync.apply(_.kf,_.Me(f)).then(function(n){for(var u=0;u<f.length;u++){var a=n[u],R=K.moduleRegistry[f[u].toString()];R.isFetching=
!1;R.resolver.resolve(a)}}).catch(function(n){for(var u=_.y(f),a=u.next();!a.done;a=u.next()){a=a.value;
var R=K.moduleRegistry[a.toString()];R.resolver=void 0;R.isFetching=!1;d.get(a.toString()).reject(n)}}),function(){--K.fetchCount}));
return Promise.all([].concat(_.Me(d.values())).map(function(n){return n.promise}))};_.hm=new _.xn("MODULE_REGISTRY_TOKEN");var xJy={},L5t=(xJy.rendered={priority:0,callback:function(K){a:{var d=void 0;try{var f;b:{if(_.fvN()){var H=_.FVp(_.F4()+"::pom");if(H){var D=new U9(H);break b}}D=void 0}var S=(f=D)==null?void 0:f.get("role_text");if(!S)break a;d={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:S}]}}}}}}catch(a){}d&&K.injector.resolve(_.pQ).resolveCommand(d)}try{var n=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(n){var u=JSON.parse(n);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
u&&K.injector.resolve(_.pQ).resolveCommand(u)}}catch(a){}}},xJy);var BzP,JNU={},sXZ=(JNU.initialized={priority:10,callback:function(){BzP=Fm()}},JNU.rendering={callback:function(K){var d;
return _.c(function(f){if(f.nextAddress==1)return _.I(f,BzP,2);d=f.yieldResult;if(!d.endpoint)throw Error("pj`"+_.Hu.location.href);Mv(K,d);_.iQ(f)})}},JNU);var kSc={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.Me(_.M("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(K){var d=K.stack;if(d.includes("chrome://")||d.includes("chrome-extension://")||K.message.includes("chrome-extension://")||d.includes("moz-extension://")||d.includes("local.adguard.org")||d.includes("auctioneer3.50million.club")||d.includes("youtubedownloader")||d.includes("youtube_home_page")||d.includes("is_youtube_video_no_longer_available")||
d.includes("switchScreenSizeHack")||d.includes("yt_main_big_banner.js")||d.includes("YouTubeCenter.js")||d.includes("/mytube.js")||d.includes("JSON.parseWrapper")||d.includes("/inj_js/common.js")||d.includes("firebug-lite")||d.includes(".repl.co/")||d.includes("linkfix")||d.includes("playAfterAd")||K.message.includes("Access is denied for this document")&&d.includes("<anonymous>")||K.fileName==="user-script"||K.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
d.includes("<anonymous>"))return!0;if(d.includes("https://www.youtube.com"))return!1;K=d.split("\n");if(!K.length)return!1;if(K.length<=3&&d.includes("s.onloadeddata"))return!0;d=0;for(var f=_.y(K),H=f.next();!H.done;H=f.next())H=H.value,(H.includes("https://")||H.includes("http://"))&&d++;return d/K.length>.95},
weight:0},{callback:function(K){return K.message==="Unknown Error"&&K.name.indexOf("NS_")===0},
weight:100},{callback:function(K){if(!_.kb)return!1;var d=K.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||K.message.includes("available to complete this operation"),f=K.stack.includes("webcomponents")&&K.message==="Object doesn't support this action";K=K.message.includes("object that does not implement interface Element");return d||f||K},
weight:0},{callback:function(K){return K.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(K){return K.message==="Operation is not supported"&&(K.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(K){return K.stack.includes("eval code (eval (code:1:1)")||K.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(K){return K.message.includes("Permission denied")&&K.stack.includes("this.domHandler")?!0:K.name.includes("TypeError")&&K.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(K){if(!K.stack)return!1;var d=K.stack.trim().split("\n");d.length&&d[0].endsWith("Error: "+K.message)&&d.shift();d.length&&d[d.length-1].includes("at window.onerror (")&&d.pop();if(!d.length)return!0;if(K.message==="Script error.")return d[0].includes("www.youtube.com")||d.length>=2&&d[0].startsWith("at new")&&d[1].startsWith("at window.onerror");if(K.message==="Unexpected token")return!0;K=_.y(d);for(d=K.next();!d.done;d=K.next())if(d=d.value,!(d.includes("<anonymous>")||
d.startsWith("load@")||d.startsWith("global code@")||d.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(K){return K.message==="Cannot read property 'experiments'"&&K.stack.includes("/s/player/")},
weight:500},{callback:function(K){return K.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(K){return K.stack.includes("/embed.js")?(K.params&&K.params&&(K.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.M("use_error_suppression"))var K=_.mD("SUPPRESS_CLIENT_ERRORS",!1);else{if(K=_.KO)K=/Chrome\/(\d+)/.exec(_.zS()),K=(K?parseFloat(K[1]):NaN)>=66;K=!(K||_.ps&&_.eH(65)||_.bH&&_.eH(12.1)||x_&&_.eH(79))}return K},
weight:500}]};var wuU={},ZBc=(wuU.initialized={priority:10,callback:function(K){K.injector.addProvider({provide:GPB,useValue:K.root});K.injector.addProvider({provide:GKJ,useValue:IFY});K.injector.addProvider({provide:A$s,useValue:kSc});var d={};K.injector.addProvider((d.provide=TZv,d.useFactory=function(f,H){return function(){aOn(f,H)}},d[CG]=[GKJ,
A$s],d));K.injector.addProvider({provide:y3,useClass:y3})}},wuU);var eGU={},puc=(eGU.initialized={priority:3,callback:function(){var K;if(K=i1N()){K=K.replace("/",".");var d=_.aS();d.set("tz",K);d.save();K=!0}else K=!1;K||(K=_.aS(),K.set("utco",-Math.floor((new Date).getTimezoneOffset())),K.save())}},eGU);var KNE={},dsc=(KNE.initialized={priority:10,callback:function(K){K.injector.resolve(y3).start();K=_.Go();var d=_.lx("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.lx("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.lx("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.lx("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Hd(_.mf5(),{mainAppWeb:Object.assign({},K,{pageType:d})});_.Hd(WoX(),{mainAppWeb:Object.assign({},K,{pageType:d})});
_.Hd(GMB(),{mainAppWeb:K});_.Hd(ADX(),{mainAppWeb:K});IUs(function(){_.Df(GMB(),"FAILURE");_.Df(ADX(),"FAILURE")});
hDn();bkN();B8J()}},KNE);var fL5={},HJK=(fL5.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.YJ("dl"),_.ov().processSignal("pcl");else{var K=function(){_.YJ("dl");_.ov().processSignal("pcl");window.removeEventListener("load",K)};
window.addEventListener("load",K)}}},fL5);var Dsc={},Vtl=(Dsc.rendering={priority:0,callback:function(){var K=_.ov();K.parkOrScheduleJob(function(){K.processSignal("eocs")},10,"eor",5E3)}},Dsc);var SsK=function(){};
_.O(SsK,ER);
SsK.prototype.resolveCommand=function(K,d){var f,H,D,S,n,u,a,R;return _.c(function(F){D=(f=_.P(K,_.NTJ))==null?void 0:(H=f.dialog)==null?void 0:H.commentReplyDialogRenderer;if(!D)throw new _.X4("No dialog in createCommentReplyDialogEndpoint");n=(S=d.form)==null?void 0:S.event;if(!n)throw new _.X4("Event not passed in when resolving command");u=_.y(n.composedPath());for(a=u.next();!a.done;a=u.next())if(R=a.value,R.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||R.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return R.showReplyDialog(D),F.return();
_.iQ(F)})};var cX=function(K){this.pageRequestService=K;this.JSC$16312_prefetchCoordinator=g0H()};
_.O(cX,ER);cX.prototype.resolveCommand=function(K){var d=this,f,H,D,S;return _.c(function(n){if(n.nextAddress==1){f=_.P(K,Dh9);if((H=f)==null||!H.taskId)throw Error("qj");D=f.taskId;_.HF(n,2);return _.I(n,_.pI8(d.pageRequestService,K,{},"").then(function(u){if(!u)throw Error("rj");},function(u){throw Error("sj`"+u);
}),4)}if(n.nextAddress!=2)return YcL(d.JSC$16312_prefetchCoordinator,D),_.Ts(n,0);
S=_.n7(n);xj(d.JSC$16312_prefetchCoordinator,D,S);_.iQ(n)})};
cX[CG]=[R1];var u5=function(K){this.innertubeTransportService=K};
_.O(u5,ER);u5.prototype.resolveCommand=function(K){var d=this,f,H;return _.c(function(D){f=_.P(K,SKf);if(f.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||f.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")H=f.boolValue?2:1,_.jA.getInstance().setState(H,!0,!0);return _.I(D,_.Wp(d.innertubeTransportService,K),0)})};
u5[CG]=[_.Nn];var ae={},y6K=(ae.addToPlaylistEndpoint=BG(Xx),ae.addToToastAction=BG(XZ),ae.adsControlFlowOpportunityReceivedCommand=BG(Ku),ae.captionLanguageSelectActionCommand=BG(mT),ae.captionPickerEndpoint=BG(l7),ae.changeMiniAppPlayStateCommand=BG(vb),ae.changeTimelyActionVisibilityCommand=BG(zP),ae.channelCreationFormEndpoint=BG(a7),ae.clearLocationCommand=BG(ze),ae.clearUrlParamCommand=BG(MI),ae.copyLinkCommand=BG(rY),ae.copyTextEndpoint=BG(Hb),ae.createCommentReplyDialogEndpoint=roz(SsK),ae.createPlaylistServiceEndpoint=
BG(qI),ae.dismissDialogEndpoint=BG(gY),ae.entityUpdateCommand=BG(V_),ae.feedbackEndpoint=BG(nu),ae.getAnswerCommand=BG(hjJ),ae.getPaymentsClientTokenCommand=BG(PV),ae.getTranscriptEndpoint=BG(vV),ae.googlePaymentBillingCommand=BG(gq),ae.googlePaymentPurchaseManagerCommand=BG(Ol),ae.hideEngagementPanelEndpoint=BG(Of),ae.insertRichSectionCommand=BG(Uf),ae.listMutationCommand=BG(R7),ae.logGtmCommand=BG(I7),ae.notifyDropdownOptionSelectedCommand=BG(Pb),ae.openAdAllowlistInstructionCommand=BG(_.dY),ae.openOnePickAddVideoModalCommand=
BG(Q_),ae.persistSubscriptionsDisplayPreferencesCommand=BG(Ji),ae.pingingEndpoint=BG(fu),ae.playlistEditEndpoint=BG(Cu),ae.playlistVotingRefreshPopupCommand=BG(x9),ae.refreshPanelEndpoint=BG(NI),ae.saveImageToDeviceEndpoint=BG(Dg),ae.scrollToSectionEndpoint=roz(bRs),ae.seekToVideoTimestampCommand=BG(Wb),ae.selectCountryCommand=BG(sf),ae.setCookieCommand=BG(k9),ae.setLocalStorageCommand=BG(aI),ae.setPrefStorageEntryCommand=BG(Zg),ae.setSettingEndpoint=BG(u5),ae.sfvAudioItemPlaybackCommand=BG(Ge),ae.shareImageCommand=
BG(e5),ae.sharingProviderDataCommand=BG(pu),ae.showCaptionLanguageSelectActionCommand=BG(Ai),ae.showDialogCommand=BG(o7),ae.showEngagementPanelEndpoint=BG($9),ae.showSheetCommand=BG(Ef),ae.showSnackbarCommand=BG(uk),ae.showTransientPlayerScrimOverlayCommand=BG(Te),ae.submitFormWithValidationFlowCommand=BG(u7),ae.talkToRecsDeselectCommand=BG(II),ae.talkToRecsNextCommand=BG(Ul),ae.talkToRecsSelectCommand=BG(RI),ae.talkToRecsUpdateTextCommand=BG(FZ),ae.toggleEngagementPanelCommand=BG(hi),ae.undoFeedbackEndpoint=
BG(cb),ae.updateEngagementPanelContentCommand=BG(b7),ae.updateUrlParamCommand=BG(M1),ae.verifyCommand=BG(a7),ae.webNativeShareCommand=BG(KC),ae.webSubmitFormCommand=BG(Lu),ae.ACK_PLAYABLES_3P_DATA_CONSENT=BG(dq),ae.CANCEL_NAVIGATION=BG(fC),ae.COPY_SHARE_URL=BG(HV),ae.MINI_APP_EXIT_DIALOG_SEEN=BG(Vz),ae.MINI_APP_OPEN_URL=BG(Dc),ae.REQUEST_MINI_APP_FULLSCREEN=BG(Sn),ae.RESUME_NAVIGATION=BG(yz),ae.SHARE_PLAYABLE_WITH_HIGH_SCORE=BG(nC),ae.TELL_US_WHY=BG(i7),ae);
_.M("web_enable_prefetching_videos_on_home")&&(y6K.prefetchWatchCommand=BG(cX),y6K.registerTasksCommand=BG(BQ));_.M("enable_share_panel_navigation_logging_fix_on_web")&&(y6K.shareEntityServiceEndpoint=BG(Y9));var SQB=Object.assign({},y6K);var n8w={},iJz=(n8w.initialized={priority:10,callback:A1n},n8w);var c6K={},uH5=(c6K.initialized={callback:function(K){var d={},f={};L_J().install((d.document_disposed={callback:function(){_.M("finalize_all_timelines")?fTB():gN();aNu("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.f3Y();var H=K.injector.resolve(y3);H.intervalId!==void 0&&(H.intervalId&&_.oc.cancelJob(H.intervalId),H.intervalId=void 0,--H.currentPartitionIndex,H=OCB(H),H>0&&JQL({mainAppWeb:_.Go(),survivalSli:{partitionMinute:H,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Tdv(mv);lq!=null&&
lq.flush();ZR&&ZR.snapshotAndFlush();H=_.y(dZL.values());for(var D=H.next();!D.done;D=H.next())D.value.snapshotAndFlush()}},d),(f.flush_logs={callback:function(){_.oB()}},f))}},c6K);var aLt={},ILl=(aLt.rendered={priority:0,callback:function(){var K=new H7v;K.increment("STARTED");if(_.mD("LOGGED_IN")&&_.mD("SERVER_VERSION")!=="test"&&_.mD("SERVER_VERSION")!=="dev"&&!jHN()&&!QHX()){K.increment("EXECUTING");var d=document.createElement("iframe");d.style.display="none";_.vsO(d,2,_.Xa("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.mD("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(d);K.increment("DONE")}}},aLt);var Ust={},RBy=(Ust.rendered={callback:function(){g0H().resume()}},Ust);var FNU={acknowledgeChannelTouStrikeCommand:U1(pC),addToPlaylistServiceEndpoint:U1(HQ),addToPlaylistEndpoint:U1(HQ),addUpcomingEventReminderEndpoint:U1(P1),browseEndpoint:U1(DM2),channelCreationFormEndpoint:U1(BV),channelCreationServiceEndpoint:U1(JO),claimLegacyYoutubeChannelEndpoint:U1(m_),clearSearchHistoryEndpoint:U1(IN),clearWatchHistoryEndpoint:U1(Ue),commerceActionCommand:RM(NW),createBackstagePostEndpoint:U1(tO),createBroadcastCommand:U1(g$),createCommentEndpoint:U1(jn),createCommentReplyEndpoint:U1(Qz),
createLiveChatPollEndpoint:U1(Oe),createPlaylistServiceEndpoint:U1(Di),crossAccountChannelTransferEndpoint:U1(zB),deleteLiveChatMessageCommand:U1(NP),deletePlaylistEndpoint:U1(VY),deleteVideoEndpoint:U1(MW),dismissalEndpoint:U1(KS),feedbackEndpoint:U1(d$),flagEndpoint:U1(u0),getAccountSwitcherEndpoint:U1(FL),verifyCommand:U1(YE),getAccountsListInnertubeEndpoint:U1(v1),getCommentsFromInboxCommand:U1(qP),getDownloadActionCommand:U1(Jw),getFlowCommand:RM(aN),getKidsBlocklistPickerCommand:U1(ap),getNotificationMenuEndpoint:U1(y$v),
getPaymentInstrumentsParamsCommand:U1(b0),getPaymentsClientTokenCommand:RM(NW),getPdgBuyFlowCommand:U1(dK),getReportFormEndpoint:U1(Ip),getSearchInVideoCommand:U1(FA),getAnswerCommand:U1(Rp),getSurveyCommand:U1(vQ),getTranscriptEndpoint:U1(gK),getPostVideoPreviewEndpoint:U1($E),decorateMessageEndpoint:U1(oI),likeEndpoint:U1(sl),liveChatActionEndpoint:U1($u),liveChatEndpoint:U1(oN),liveChatItemContextMenuEndpoint:U1(Yu),liveChatPurchaseMessageEndpoint:U1(Ee),liveChatReplayEndpoint:U1(tw),manageLiveChatUserEndpoint:U1(br),
metadataUpdateCommand:U1(TB),moderateLiveChatEndpoint:U1(mJ),modifyChannelNotificationPreferenceEndpoint:U1(xu),notificationOptOutEndpoint:U1(LS),openSuperStickerBuyFlowCommand:U1(hw),performCommentActionEndpoint:U1(TP),playlistEditEndpoint:U1(yY),playlistEditorEndpoint:U1(S8),profileCardCommand:U1(MP),recordNotificationInteractionsEndpoint:U1(B1),reelWatchEndpoint:U1(ni),refreshPanelEndpoint:U1(ku),removeUpcomingEventReminderEndpoint:U1(lr),resolveLocationCommand:U1(Aw),revealBusinessEmailCommand:U1(lk),
searchEndpoint:U1(_.n09),sendLiveChatMessageEndpoint:U1(W1),sendLiveChatVoteEndpoint:U1(GB),setSettingEndpoint:U1(kE),shareEntityServiceEndpoint:RM(en),sharingProviderDataCommand:U1(XA),showEngagementPanelEndpoint:U1(w$),showMoreDrawerCommand:U1(eM),showSheetCommand:U1(pS),showDialogCommand:U1(Z3),subscribeEndpoint:U1(wq),transcriptSubmitCaptionCorrectionCommand:U1(PQ),undoFeedbackEndpoint:U1(H1),unsubscribeEndpoint:U1(Zc),updateBackstagePostEndpoint:U1(hO),updateCommentEndpoint:U1(xE),updateCommentReplyEndpoint:U1(CC),
updateCommentsSettingsEndpoint:U1(LC),updateCreatorChannelInnertubeCommand:U1(GP),updateKidsBlacklistEndpoint:U1(UB),updateEngagementPanelContentCommand:U1(Ki),updatePdgFeatureEnablementCommand:U1(fi),updatedMetadataEndpoint:U1(r$),validateChannelHandleCommand:U1(AO),updateChannelPageSettingsEndpoint:U1(WV),verifyAgeEndpoint:U1(D3),watchEndpoint:RM(Hn),whitelistEditEndpoint:U1(OB),ypcCancelRecurrenceEndpoint:U1(Yj),ypcCompleteTransactionEndpoint:U1(t7),ypcFixInstrumentEndpoint:U1(EB),ypcGetCartEndpoint:U1(op),
ypcGetOffersEndpoint:U1(h7),ypcHandleTransactionEndpoint:RM(mI),ypcLogWalletAnalyticDataEndpoint:U1(l0),ypcOffersEndpoint:U1(WQ),ypcPauseSubscriptionCommand:U1(GN),ypcRedeemCodeEndpoint:U1(A7),ypcResumeSubscriptionCommand:U1(TN),ypcUpdateFopEndpoint:U1(EB)},Ie={},zBE=(Ie.GET_ACCOUNT_MENU=U1(XL),Ie.GET_NOTIFICATIONS_MENU=U1(ScJ),Ie.GET_NOTIFICATIONS_INBOX=U1(Qs),Ie.GET_UNSEEN_NOTIFICATION_COUNT=U1(CS),Ie.GET_USER_MENTION_SUGGESTIONS=U1(El),Ie.LOAD_GUIDE=U1(VBv),Ie.SUBMIT_FEEDBACK=U1(fS),Ie),Ug={},
X4K=(Ug.CONTINUATION_REQUEST_TYPE_BROWSE=U1(bk),Ug.CONTINUATION_REQUEST_TYPE_SEARCH=U1(zN),Ug.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=U1(VJ),Ug.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=U1(RN),Ug.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=U1(q1),Ug.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=U1(rq),Ug.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=U1(cQ),Ug.CONTINUATION_REQUEST_TYPE_GET_PANEL=U1(se),Ug),v8K={player:RM(Hn),watchNext:U1(DI)},Mt7={player:RM(Hn),reelItemWatch:U1(ni),reelWatchSequence:U1(i0)},
P9S={watchEndpoint:RM(Sb)},g8S={commandEndpointMap:FNU,signalEndpointMap:zBE,continuationEndpointMap:X4K,watchEndpointMap:v8K,reelWatchEndpointMap:Mt7,streamingEndpointMap:P9S};var OJw,N2t,Ys5,ttZ={disableAllTransitions:(N2t=(OJw=window).matchMedia)==null?void 0:(Ys5=N2t.call(OJw,"(prefers-reduced-motion: reduce)"))==null?void 0:Ys5.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var o8U=new _.xn("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.Re=new _.xn("VIEW_TRANSITION_MANAGER_TOKEN");var $sz=function(K){this.config=K;this.transitionTasksMap=new Map;K=_.y(K.transitionConfigs);for(var d=K.next();!d.done;d=K.next())d=_.y(d.value).next().value,this.transitionTasksMap.set(d,[])};
$sz[CG]=[o8U];var T1u={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var qCz=["videoPrimaryInfoRenderer","title"],QhY=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var E8y;E8y=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.hBt=_.C8(function(K){K=_.jP(K,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var d=K.data,f=K.playlistData,H=K.expanded,D=K.onExpandClick,S=K.isReadyToResume,n=function(){var F;return!((F=f())==null||!F.contents)},u=function(){var F=f();
return F&&F.totalVideos&&F.currentIndex!==void 0?F.currentIndex+1+" / "+F.totalVideos:""};
K=_.cp(function(){_.F5(_.eq().resolve(_.$b));return!1});
var a=_.cp(function(){n()&&D&&D()}),R={};
return _.U("ytd-miniplayer-info-bar",{class:_.SC("ytdMiniplayerInfoBarHost",(R.ytdMiniplayerInfoBarHasPlaylistData=n,R)),"on:click":a},_.U("div",{class:"ytdMiniplayerInfoBarContent"},_.U("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":K},_.U(_.ji,{text:function(){var F=d();var z=f();if(z==null?0:z.contents){var v;F=(v=_.KPY(z))==null?void 0:v.title}else F=F==null?void 0:F.miniplayerTitle;return Cyu(F)},
noEndpoints:!0,ellipsisTruncate:!0})),_.U("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.U(_.X,{cond:S,then:function(){return _.U(WJN,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:E8y})}}),_.U("h1",null,_.U(_.ji,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var F=d();var z=f();F=S()?{simpleText:_.iB("CONTINUE_WATCHING",void 0,"Continue watching")}:(z==null?0:z.contents)?z.titleText:F==null?void 0:F.miniplayerSubtitle;return Cyu(F)},
noEndpoints:!0,ellipsisTruncate:!0})),_.U(_.X,{cond:function(){return!!u()&&!S()},
then:function(){return _.U("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.U("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.U("span",null,u))}}))),_.U(_.X,{cond:n,
then:function(){return _.U("div",{class:"ytdMiniplayerInfoBarExpand"},_.U(xB,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(F){D&&(D(),F.stopPropagation())}}},
iconName:function(){return H()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ne");var bJc;bJc=_.C8(function(K){return _.U("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.U(xB,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:K.onTap}},
iconName:"yt-icons:close"}))},"oe");
_.msK=_.C8(function(K){K=_.jP(K,{playabilityStatus:void 0,isDisabled:!1});var d=K.size,f=K.playabilityStatus,H=K.isDisabled,D=_.Co();K=_.y(_.cC(void 0,void 0,"bJr0Se"));var S=K.next().value,n=K.next().value;K=_.th(_.Vb);var u=!1,a=function(){return d().height<=0};
_.ol(function(){var v=d(),g=a(),N=S();N&&!g&&N.setInternalSize(v.width,v.height)});
_.Nk(function(){var v,g,N;return _.c(function(h){if(h.nextAddress==1){v=_.eq().resolve(_.$b);g=v.getPlayerElement();if(!v.isMiniplayerActive()||!g||!D.value)return h.return();g.appendTo(D.value);return _.I(h,g.getPlayerPromise(),2)}N=h.yieldResult;N.setSizeStyle(!1,!0);n(N);_.iQ(h)})});
_.$F(function(){R()});
_.ol(function(){var v=S();if(v)if(H()){var g=v.getPlayerState();(u=g===-1||g===1||g===3)&&v.pauseVideo()}else R()});
var R=function(){if(u){u=!1;var v;(v=S())==null||v.playVideo()}},F=_.cp(function(){_.F5(_.eq().resolve(_.$b))}),z={};
return _.U("ytd-miniplayer-player-container",{class:_.SC("ytdMiniplayerPlayerContainerHost",(z.ytdMiniplayerPlayerContainerHidden=a,z.ytdMiniplayerPlayerContainerHostShortsPip=K,z)),style:_.Im({width:function(){return d().width+"px"},
height:function(){return d().height+"px"}})},_.U("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:D}),_.U(_.X,{cond:function(){return!!f()&&!_.QAp(f())},
then:function(){return _.U(OlB,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var v;return((v=f())==null?void 0:v.errorScreen)||null},
status:function(){var v;return((v=f())==null?void 0:v.status)||null}})}}),_.U(_.X,{cond:H,
then:function(){return _.U("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":F},_.U(bJc,{onTap:function(){_.eq().resolve(_.$b).close()}}))}}))},"pe");_.lLi=_.C8(function(K){var d=K.toastData;var f=_.Co();K=_.y(_.am(function(){return!!d()}));
var H=K.next().value,D=K.next().value;K=_.y(_.cC(!1,void 0,"xkrBze"));var S=K.next().value,n=K.next().value,u=function(){var F;return _.qQ((F=d())==null?void 0:F.data.title)};
_.tR(function(){_.hf.requestAvailability();d()&&D(!1)});
var a,R;_.ol(function(){H()&&(_.Zp(f.value,"iron-announce",{text:d().label+" "+u()}),a&&_.oc.cancelJob(a),a=_.oc.addLowPriorityJob(function(){n(!0)},2500))});
_.ol(function(){S()&&(R&&_.oc.cancelJob(R),R=_.oc.addLowPriorityJob(function(){D(!1);n(!1)},300))});
K={};return _.U("ytd-miniplayer-toast",{el:f,class:_.SC("ytdMiniplayerToastHost",(K.ytdMiniplayerToastOpening=function(){return H()},K.ytdMiniplayerToastClosing=function(){return S()},K))},_.U(_.X,{cond:function(){var F;
return(F=d())==null?void 0:F.data},
then:function(F){return _.U(jp6,{className:"ytdMiniplayerToastThumbnail",data:F,width:78})}}),_.U("div",{class:"ytdMiniplayerToastInfo"},_.U("div",{class:"ytdMiniplayerToastLabel"},function(){var F;
return(F=d())==null?void 0:F.label}),_.U("div",{class:"ytdMiniplayerToastTitle"},u)))},"qe");var pBo;var HqX=new Set,frX=null;var V6z=null;var Gkl=_.C8(function(K){var d=K.progressState;var f=K.multiMarkersPlayerBarRenderer;var H=K.progressBarWidth;var D=function(){return iqB(f())},S=function(){return aro(d())},n=function(){return H()*(d().playedTime/d().videoDuration)};
return _.U("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.U(_.v_,{each:D},function(u,a){return _.U(WNS,{modifiedProps:S,chapters:D,index:a,playedProgressWidth:n,backgroundGradientPosition:function(){var R=S(),F=D(),z=a(),v=n();return(R.playedTime-tm(_.P(F[z],Yb)))/R.playedTime*v}})}))},"re"),WNS=_.C8(function(K){var d=K.modifiedProps;
var f=K.chapters;var H=K.index;var D=K.playedProgressWidth;var S=K.backgroundGradientPosition;K={};K=_.SC("ytChapteredProgressBarChapteredPlayerBarChapter",(K.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return n().isScrubbing},K.ytChapteredProgressBarHoveredMacroMarker=function(){return n().scrubberHovering},K.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return n().videoPosition==="seen"},K));
var n=function(){return IrS(d(),f(),H())},u=function(){var a=d();
var R=f(),F=H();if(IrS(a,R,F).videoPosition!=="active")a=0;else{var z=tm(_.P(R[F],Yb));a=(a.playedTime-z)/((tm(_.P(R[F+1],Yb))||a.videoDuration)-z)}return a};
return _.U("div",{class:K,style:_.Im({width:function(){var a=d(),R=f(),F=H(),z=_.P(R[F],Yb);R=_.P(R[F+1],Yb);return(R?tm(R)-tm(z):a.videoDuration-tm(z))/a.videoDuration*100+"%"},
"background-color":function(){a:{var a=n();switch(a.videoPosition){case "pending":a=a.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":a=a.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:a=""}}return a},
"background-size":function(){return(URu(n())?D():"")+"px"},
"background-position-x":function(){return(URu(n())?S():"")+"px"}})},_.U("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var a=d(),R=f(),F=H();if(IrS(a,R,F).videoPosition==="seen")var z=0;else z=tm(_.P(R[F],Yb)),R=tm(_.P(R[F+1],Yb))||a.videoDuration,a=a.videoDuration*a.percentLoaded,z=R<=a?1:z>=a?0:(a-z)/(R-z);return"width: "+z*100+"%"}}),_.U("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Im({width:function(){return u()*100+"%"},
"background-size":function(){return(URu(n(),u())?D():"")+"px"},
"background-position-x":function(){return(URu(n(),u())?S():"")+"px"}})}))},"se");var A6c=function(K,d){d=d===void 0?PL2:d;var f,H=[],D,S=!1;return function(){var n=_.Pg.apply(0,arguments);if(S&&f===this&&d(n,H))return D;D=K.apply(this,n);S=!0;f=this;H=n;return D}}(function(K){var d=K.heatMarkers,f=K.minHeightDp===void 0?0:K.minHeightDp,H=K.maxHeightDp===void 0?60:K.maxHeightDp;
var D=D===void 0?!1:D;var S=1E3/d.length;K=[];K.push({x:0,y:100});for(var n=0;n<d.length;n++){var u=void 0,a=((u=_.P(d[n],H22))==null?void 0:u.heatMarkerIntensityScoreNormalized)||0;u=(n+.5)*S;a=100-_.Oa(a*100,f/321*100,H/321*100);n!==0||D||K.push({x:0,y:a});K.push({x:u,y:a});n===d.length-1&&K.push({x:1E3,y:a})}K.push({x:1E3,y:100});d="";for(f=0;f<K.length;f++)D=K[f],f===0?D="M "+D.x.toFixed(1)+","+D.y.toFixed(1):(H=rru(K[f-1],K[f-2],D),S=rru(D,K[f-1],K[f+1],!0),D=" C "+(H.x.toFixed(1)+","+H.y.toFixed(1)+
" "+S.x.toFixed(1)+","+S.y.toFixed(1)+" "+D.x.toFixed(1)+","+D.y.toFixed(1))),d+=D;return d});var T2w=_.C8(function(K){var d=K.progressBarProps;var f=K.config;var H={};K=_.SC("ytHeatSeekerHost",(H.ytHeatSeekerHighContrast=K.highContrast,H));var D=function(){return shu(f().chapterData)};
return _.U("yt-progress-bar-heatseeker",{class:K,style:function(){var S;return"height: 320px; display: "+(d().isDragging&&((S=D())==null?0:S.heatMarkers)?"block":"none")}},_.U(_.X,{cond:D,
then:function(S){return _.U(_.X,{cond:function(){return S().heatMarkers},
then:function(){return _.U("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.U("path",{d:function(){return A6c(S())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"te");var r6Z=_.C8(function(K){var d=K.progressBarProps;var f=K.config;K={};K=_.SC("ytProgressBarLineProgressBarLine",(K.ytProgressBarLineProgressBarLineRounded=function(){return f().rounded},K.ytProgressBarLineProgressBarLineBottomInset=function(){return f().position===2},K));
return _.U("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.U("div",{class:K},_.U("div",{class:"ytProgressBarLineProgressBarBackground"}),_.U("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+d().percentLoaded*100+"%"}}),_.U("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var H=d();return"width: "+(H.videoDuration?_.Oa(H.hoveredTime/H.videoDuration,0,1):0)*100+"%"}}),_.U("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+LYz(d())*100+"%"}})))},"ue");
r6Z.idomCompat=!0;var qsS=_.C8(function(K){var d=K.progressBarProps;var f=K.playheadData;var H=K.interpolateDotPosition;var D=K.hidePlayhead;K={};var S=_.SC("ytProgressBarPlayheadProgressBarPlayheadDot",(K.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return d().isDragging},K.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!d().isDragging&&D()},K));
return _.U("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Im({"margin-left":function(){return B1z(d())*100+"%"},
transform:function(){return"translateX(-"+(H()?B1z(d())*12:6)+"px)"}})},_.U(_.X,{cond:function(){var n;
return(n=_.QV(f)())==null?void 0:n.playheadImage},
then:function(n){var u={};return _.U("div",{class:_.SC("ytProgressBarPlayheadProgressBarPlayheadCustom",(u.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return d().isDragging},u.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!d().isDragging&&D()},u)),
style:_.Im({"transform-origin":function(){return(H()?B1z(d())*20:10)+"px center"}})},_.U(_.jV,{data:n,
alt:"","aria-hidden":"true"}))},
else:function(){return _.U("div",{class:S,style:_.Im({"transform-origin":function(){return(H()?B1z(d())*12:6)+"px center"}})})}}))},"ve");
qsS.idomCompat=!0;var zm=function(K,d,f,H,D,S){this.getProgressBarRect=K;this.updateProgressBarRect=d;this.getFilmstripYPosition=f;this.setFineScrubbingDraggedTime=H;this.updateFilmStripDraggedYDistance=D;this.resetFilmStripYOffset=S;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Ct(this.onThrottledSeek,100,this)},Qf7=function(K,d,f){return function(H){K.handleClick(H,d(),f())}},xsi=function(K,d){return function(f){jfZ(K,
f,C9U(f),d())}},LNz=function(K,d){return function(f){jfZ(K,f,{x:f.clientX,
y:f.clientY},d())}},J6w=function(K,d,f){return function(H){var D=d(),S=f();
B2c(K,H,C9U(H),D,S,!0);if(S.onTouchMove)S.onTouchMove(D)}},kkZ=function(K,d,f){return function(H){sfw(K,H,d(),f())}},w4w=function(K,d){return function(){K.handleMouseLeave(d())}},ZJl=function(K,d,f){return function(){var H=d(),D=f();
X5(K,H,D);if(D.onTouchEnd)D.onTouchEnd(H)}},eBE=function(K,d,f){return function(){var H=d(),D=f();
X5(K,H,D);if(D.onTouchEnd)D.onTouchEnd(H)}},p4P=function(K,d,f){return function(){X5(K,d(),f())}},KtU=function(K){return function(d){if(d.keyCode===39){var f,H;
(f=K())==null||(H=f.playerApi)==null||H.seekBy(5,void 0,void 0,72)}else if(d.keyCode===37){var D,S;(D=K())==null||(S=D.playerApi)==null||S.seekBy(-5,void 0,void 0,71)}}},dlK=function(K,d,f){return function(H){!f().disableScrubbing&&K.startPosition&&sfw(K,H,d(),f())}},f7U=function(K,d,f){return function(){if(!f().disableScrubbing)if(K.startPosition){var H=d(),D=f();
X5(K,d(),f());if(D.onTouchEnd)D.onTouchEnd(H)}else d().setState({isDragging:!1})}},C9U=function(K){K=K.touches[0];
return{x:K.clientX,y:K.clientY}},sfw=function(K,d,f,H){if(d.buttons!==1){if(d.movementX||d.movementY)d.preventDefault(),d.stopPropagation(),K=HEc(K,f,d.clientX),f.setState({isHovering:!0,
hoveredTime:K*f.videoDuration})}else DlS(f),B2c(K,d,{x:d.clientX,y:d.clientY},f,H,!1)};
zm.prototype.handleMouseLeave=function(K){DlS(K)};
var DlS=function(K){K.isHovering&&K.setState({isHovering:!1,hoveredTime:0})},jfZ=function(K,d,f,H){K.startPosition||(K.startPosition=f,K.updateProgressBarRect(),K.controlsWereVisibleBeforeDragging=H.controlsVisible,d.stopPropagation(),_.M("medium_progress_bar_modification")||d.preventDefault())},B2c=function(K,d,f,H,D,S){if(K.startPosition)if(S&&D.isInlinePlayback&&K.startPosition&&!K.hasDraggedTheMinimumDistance&&Math.abs(f.y-K.startPosition.y)>Math.abs(f.x-K.startPosition.x))X5(K,H,D);
else if(d.preventDefault(),d.stopPropagation(),H.videoDuration&&(K.startPosition&&!K.hasDraggedTheMinimumDistance&&(K.hasDraggedTheMinimumDistance=Math.abs(f.x-K.startPosition.x)>=1),D.enableFineScrubbing&&(K.startPosition&&(K.isDraggedForFineScrubbing=-(f.y-K.startPosition.y)>=60),!K.startPosition||f.y>=K.startPosition.y||(H.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Rbo(H.draggedTime,H,D.chapterData)}),K.setFineScrubbingDraggedTime(H.draggedTime),K.updateFilmStripDraggedYDistance(K.startPosition.y,
f.y,H))),K.hasDraggedTheMinimumDistance)){d=HEc(K,H,f.x);if(K.isDraggedForFineScrubbing){var n;(n=H.playerApi)==null||n.pauseVideo();H.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:H.draggedTime,filmStripXDistance:Rbo(d*H.videoDuration,H,D.chapterData)})}D.enableFineScrubbing&&(!D.enableFineScrubbing||K.getFilmstripYPosition(H)<68)||H.setState({draggedTime:d*H.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:K.controlsWereVisibleBeforeDragging});var u;(u=
D.cancelAutohideControlsFn)==null||u.call(D)}},X5=function(K,d,f){var H=f.enableFineScrubbing&&d.fineScrubbingActiveState!=="off";
if(d.isDragging||H){H={isDragging:!1,playedTime:d.draggedTime,controlsVisible:K.controlsWereVisibleBeforeDragging};f.enableFineScrubbing&&d.fineScrubbingActiveState!=="on"&&(K.resetFilmStripYOffset(),H.fineScrubbingActiveState="off");var D=D===void 0?V6z:D;var S=_.te(0);S&&D&&_.qY(S,D,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(d.playedTime*1E3),endMediaTimeMs:Math.round(d.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});d.setState(H);
K.seekThrottle.fire(d.draggedTime,d,7);_.M("mweb_new_progress_bar_play_on_seek")&&K.resumeVideo(d);f.unmuteOnSeek&&(f=d.playerApi,d.volumeMuted&&(f==null||f.unMute()))}else d.setState({controlsVisible:!d.controlsVisible}),(S=f.triggerAutohideControlsAfterDelayFn)==null||S.call(f);K.startPosition=null;K.hasDraggedTheMinimumDistance=!1;K.isDraggedForFineScrubbing=!1;K.controlsWereVisibleBeforeDragging=!1};
zm.prototype.handleClick=function(K,d,f){this.updateProgressBarRect();K.stopPropagation();K=HEc(this,d,K.clientX)*d.videoDuration;d.setState({playedTime:K});if(d.playerState!==2){var H;(H=f.triggerAutohideControlsAfterDelayFn)==null||H.call(f)}this.seekThrottle.fire(K,d,7)};
var HEc=function(K,d,f){K=K.getProgressBarRect(d);return _.Oa(0,(f-K.left)/K.width,1)};
zm.prototype.resumeVideo=function(K){if(K.draggedTime<K.videoDuration){var d;(d=K.playerApi)==null||d.playVideo()}};
zm.prototype.onThrottledSeek=function(K,d,f){if(d=d.playerApi){var H;if((H=d.getVideoData())==null?0:H.isLive)H=this.getProgressState(d),K+=(H==null?void 0:H.seekableStart)||0;d.seekTo(K,void 0,void 0,void 0,f)}};
zm.prototype.getProgressState=function(K){var d=K==null?void 0:K.getPresentingPlayerType();return K==null?void 0:K.getProgressState(d)};var yPc,SZZ,nww,cPy,VSi,uic,a7E,I7w,Ulz;yPc=_.C8(function(K){var d=K.progressBarProps;var f=K.config;var H=K.progressBarWidthPx;var D=K.chapterData;var S=M6p(d,function(){return f().isShortsPage}),n=function(){return!d().isHovering&&!f().isShortsPage};
K={};var u=_.SC("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(K.ytPlayerStoryboardHostMwebShorts=function(){return f().isShortsPage&&!1},K));
return _.U("yt-player-storyboard",null,_.U(_.X,{cond:function(){return d().isDragging||d().isHovering},
then:function(){return _.U(_.X,{cond:S,then:function(a){return _.U(_.X,{cond:n,then:function(){return _.U("div",{class:u,"aria-hidden":"true"},_.U(VSi,{props:d,config:f,isBigboard:!0,chapterData:D}))},
else:function(){return _.U(SZZ,{props:d,frame:a,config:f,progressBarWidthPx:H,chapterData:D})}})}})}}))},"we");
_.iEz=_.C8(function(K){var d=K.progressBarProps;var f=M6p(d,K.isShortsPage);return _.U("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.U(_.X,{cond:function(){return d().isDragging||d().isHovering},
then:function(){return _.U(_.X,{cond:f,then:function(H){return _.U(nww,{frame:H,props:d,isBigboard:!0})}})}}))},"xe");
SZZ=_.C8(function(K){var d=K.props;var f=K.frame;var H=K.config;var D=K.progressBarWidthPx;K=K.chapterData;var S={};S=_.SC("ytPlayerStoryboardHost",(S.ytPlayerStoryboardHostMwebShorts=function(){return H().isShortsPage&&!1},S.ytPlayerStoryboardHostInlinePlayer=function(){return H().isInlinePlayer},S.ytPlayerStoryboardHostFadeIn=function(){return H().useFadeInAnimation},S));
return _.U("div",{class:S,"aria-hidden":"true",style:function(){var n=d(),u=FEu(f()),a=D();n=zbz(n)/n.videoDuration;var R=a*n,F=u/2+6;u=a-(u/2+6);return"left: "+(R<=F?F/a*100:R>=u?u/a*100:n*100)+"%"}},_.U(_.X,{cond:function(){var n=d();
return!(H().isShortsPage&&n.videoDuration<15)},
then:function(){return _.U(nww,{frame:f,props:d,isBigboard:!1})}}),_.U(VSi,{props:d,
config:H,isBigboard:!1,chapterData:K}))},"ye");
nww=_.C8(function(K){var d=K.frame;var f=K.props;var H=K.isBigboard;var D=function(){var u,a;return(a=(u=f().playerApi)==null?void 0:u.getVideoContentRect())!=null?a:{width:0,height:0}},S=function(){return FEu(d())},n=function(){var u=d();
return u?u.height/u.rows:0};
K={};K=_.SC((K.ytPlayerStoryboardBigboardImageWrapper=H,K.ytPlayerStoryboardStoryboardImageWrapper=function(){return!H()},K));
return _.U("div",{class:K,style:function(){return"width: "+(H()?D().width:S())+"px; height: "+(H()?D().height:n())+"px;"}},_.U(cPy,{frame:d,
storyboardWidth:S,storyboardHeight:n,storyboardScale:function(){return(H()?D().width:S())/S()}}))},"ze");
cPy=_.C8(function(K){var d=K.frame;var f=K.storyboardWidth;var H=K.storyboardHeight;var D=K.storyboardScale;var S=function(){var n=d().row,u=d().column,a=f(),R=H(),F=D();return{left:-u*a*F,top:-n*R*F}};
return _.U("img",{src:function(){return d().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+S().left+"px; top: "+S().top+"px; width: "+d().width*D()+"px; height: "+d().height*D()+"px;"}})},"Ae");
VSi=_.C8(function(K){var d=K.props;var f=K.config;var H=K.isBigboard;var D=K.chapterData;K={};K=_.SC("ytPlayerStoryboardMetadata",(K.ytPlayerStoryboardMetadataBigboard=H,K));return _.U("div",{class:K},_.U(_.X,{cond:H,then:function(){return _.U(_.dF,null,_.U(uic,{props:d,config:f}),_.U(_.X,{cond:function(){a:{var S=d();var n=f(),u=D(),a;if((n==null?0:n.activeChapter)&&((a=_.P(n==null?void 0:n.activeChapter,Yb))==null?0:a.title))S=!0;else{n=_.y(kWn(u));for(n=n.next();!n.done;n=n.next()){S=(n=_.P(n.value,
VAN))&&XDJ(S,n);break a}S=!1}}return S},
then:function(){return _.U(a7E,{props:d,config:f,isBigboard:!0,chapterData:D})}}))},
else:function(){return _.U(_.dF,null,_.U(a7E,{props:d,config:f,isBigboard:!0,chapterData:D}),_.U(uic,{props:d,config:f}))}}))},"Be");
uic=_.C8(function(K){var d=K.props;var f=K.config;K={};K=_.SC("ytPlayerStoryboardTimestamp",(K.ytPlayerStoryboardTimestampShorts=function(){return f().isShortsPage},K.ytPlayerStoryboardTimestampIsHovering=function(){return d().isHovering||f().isShortsPage&&!0},K));
return _.U("div",{class:K},_.U(_.dF,null,function(){return _.vRY(zbz(d()))}))},"Ce");
a7E=_.C8(function(K){var d=K.props;var f=K.config;var H=K.isBigboard;var D=K.chapterData;K={};H=_.SC("ytPlayerStoryboardTitle",(K.ytPlayerStoryboardTitleBigboard=H,K));return _.U("div",{class:H},_.U(_.X,{cond:function(){return!f().isShortsPage},
then:function(){return _.U(I7w,{props:d,activeChapter:function(){return f().activeChapter},
chapterData:D})}}))},"De");
I7w=_.C8(function(K){var d=K.props;var f=K.activeChapter;var H=K.chapterData;return _.U(_.dF,null,_.U(_.v_,{each:function(){return kWn(H())},
keyBy:"INDEX"},function(D){return _.U(_.dF,null,_.U(_.X,{cond:function(){return _.P(D(),VAN)&&XDJ(d(),_.P(D(),VAN))},
then:function(){return _.U(Ulz,{timedMarker:function(){return _.P(D(),VAN)}})}}))}),_.U(_.X,{cond:function(){var D;
return f()&&((D=_.P(f(),Yb))==null?void 0:D.title)},
then:function(D){return _.U(_.ji,{text:D,noPreWrap:!0})}}))},"Ee");
Ulz=_.C8(function(K){var d=K.timedMarker;return _.U(_.dF,null,_.U("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.U(_.U5,{icon:function(){return d().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.U(_.ji,{text:function(){return d().label},
noPreWrap:!0}))},"Fe");_.R5c=_.C8(function(K){var d=K.progressBarProps;var f=K.playheadData;var H=K.config;K=_.Co();var D=_.Co(),S=_.Co(),n=_.y(_.cC({width:0,left:0},void 0,"NcXsUb")),u=n.next().value,a=n.next().value,R=function(){S.value&&a(S.value.getBoundingClientRect())},F=function(){u().width<=0&&R();
return u()};
sN("resize",R);var z=new zm(F,function(){},function(){return 0},function(){},function(){},function(){}),v=function(){return d()};
n=_.y(_.cC(!1,void 0,"ZsF6Xc"));var g=n.next().value,N=n.next().value;n=_.cp(function(){N(!0);H().position===2?setTimeout(function(){R()},100):R()});
var h=_.cp(function(){N(!1);w4w(z,v)()}),m=_.cp(function(qJ){H().doSeekOnClick&&Qf7(z,v,H)(qJ);
return!1}),T=_.cp(function(qJ){xsi(z,v)(qJ);
return!1}),r=_.cp(function(qJ){LNz(z,v)(qJ);
return!1}),J=_.cp(function(qJ){J6w(z,v,H)(qJ);
return!1}),L=_.cp(function(qJ){kkZ(z,v,H)(qJ);
return!1}),fB=_.cp(function(){ZJl(z,v,H)();
return!1}),w=_.cp(function(){eBE(z,v,H)();
return!1}),yO=_.cp(function(){p4P(z,v,H)();
return!1}),FX=_.cp(function(qJ){KtU(v)(qJ);
return!1});
sN("mousemove",dlK(z,v,H));sN("mouseup",f7U(z,v,H));_.tR(function(){SUX(D.value);N(!1);R();f7U(z,v,H)()});
var NJ={};NJ=_.SC("ytPlayerProgressBarHost",function(){return H().className},(NJ.ytPlayerProgressBarHostReadOnly=function(){return H().disableScrubbing},NJ.ytPlayerProgressBarHostHidden=function(){return H().hideProgressBar&&!g()},NJ.ytPlayerProgressBarHostLowerPlayer=function(){return H().position===0},NJ.ytPlayerProgressBarHostBottomEdge=function(){return H().position===1},NJ.ytPlayerProgressBarHostBottomInset=function(){return H().position===2},NJ.ytPlayerProgressBarHostCustom=function(){return H().position===
3},NJ));
var $z={},hN=_.SC("ytPlayerProgressBarBackground",($z.ytPlayerProgressBarBackgroundHide=function(){return H().position===2&&!g()&&!d().isDragging},$z));
$z={};$z=_.SC("ytPlayerProgressBarDragContainer",($z.ytPlayerProgressBarDragContainerBottomEdge=function(){return H().position===1},$z));
var bo={};bo=_.SC("ytPlayerProgressBarProgressBar",(bo.ytPlayerProgressBarProgressBarInset=function(){return H().position===2},bo.ytPlayerProgressBarProgressBarInsetMinimized=function(){return H().position===2&&!g()&&!d().isDragging},bo));
var xz=function(){return Math.floor(LYz(d())*100)};
return _.U("yt-progress-bar",{el:K,class:NJ},_.U(_.X,{cond:function(){return H().position===2},
then:function(){return _.U("div",{class:hN})}}),_.U("div",{el:D,
"on:click":m,"on:touchstart":T,"on:touchmove":J,"on:mouseenter":n,"on:mousedown":r,"on:mouseleave":h,"on:mousemove":L,"on:mouseup":w,"on:touchend":fB,"on:touchcancel":yO,"on:keydown":FX,class:$z,role:"slider","aria-valuenow":xz,"aria-valuetext":function(){return xz()+"%"},
tabindex:0,"aria-label":_.iB("SEEK_SLIDER")},_.U("div",{el:S,class:bo},_.U(T2w,{progressBarProps:d,config:H,highContrast:function(){return!!H().isInlinePlayback}}),_.U(_.X,{cond:function(){return H().chapterData&&wBo(H().chapterData)},
then:function(){return _.U(Gkl,{progressState:d,multiMarkersPlayerBarRenderer:function(){return H().chapterData},
progressBarWidth:function(){return u().width}})},
else:function(){return _.U(r6Z,{progressBarProps:d,config:H})}}),_.U(qsS,{progressBarProps:d,
playheadData:f,interpolateDotPosition:function(){return H().position!==2},
hidePlayhead:function(){return H().playheadDotBehavior===1&&!g()}}))),_.U(yPc,{progressBarProps:d,
config:function(){return{activeChapter:uWz(d(),H().chapterData),getProgressBarWidthPx:function(){return F().width},
isShortsPage:!!H().isShortsPage,isInlinePlayer:!!H().isInlinePlayback,useFadeInAnimation:!!H().isInlinePlayback}},
progressBarWidthPx:function(){return u().width},
chapterData:function(){return H().chapterData}}))},"Ge");
_.R5c.idomCompat=!0;Object.assign({},_.ZkS(),{setState:function(){},
domMeasurements:{},appApi:_.xEY(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Fti;
_.z5w=_.C8(function(){var K,d=(K=_.o1(PPn().playerApi))!=null?K:void 0;K=_.y(_.cC(!1,void 0,"HLFBmb"));var f=K.next().value,H=K.next().value;K=_.y(_.cC(!1,void 0,"lHH9bc"));var D=K.next().value,S=K.next().value;K=_.y(_.cC(!1,void 0,"zsY7yd"));var n=K.next().value,u=K.next().value;K=_.y(_.cC(!1,void 0,"KeHQgc"));var a=K.next().value,R=K.next().value;K=_.y(_.cC(0,void 0,"gLLCj"));var F=K.next().value,z=K.next().value;K=_.y(_.cC(0,void 0,"s3RYkf"));var v=K.next().value,g=K.next().value;K=_.y(_.cC(!1,void 0,
"Dn608e"));var N=K.next().value,h=K.next().value;K=_.y(_.cC(0,void 0,"AnkH1b"));var m=K.next().value,T=K.next().value;K=_.y(_.cC(0,void 0,"QYNL0b"));var r=K.next().value,J=K.next().value;K=_.y(_.cC("",void 0,"Yzw45d"));var L=K.next().value,fB=K.next().value;K=_.y(_.cC(-1,void 0,"iiVI0c"));var w=K.next().value,yO=K.next().value,FX=_.zh(function(){var NJ={controlsVisible:f(),isOverlayHidden:D(),shouldWaitToHideControls:n(),isDragging:a(),isHovering:N(),videoDuration:m(),playedTime:r(),videoId:L(),draggedTime:v(),
hoveredTime:F(),playerState:w()};return Object.assign({},_.ZkS(),NJ,{domMeasurements:{},setState:function($z){$z.controlsVisible!==void 0&&H($z.controlsVisible);$z.isOverlayHidden!==void 0&&S($z.isOverlayHidden);$z.shouldWaitToHideControls!==void 0&&u($z.shouldWaitToHideControls);$z.isDragging!==void 0&&R($z.isDragging);$z.isHovering!==void 0&&h($z.isHovering);$z.draggedTime!==void 0&&g($z.draggedTime);$z.hoveredTime!==void 0&&z($z.hoveredTime);$z.videoDuration!==void 0&&T($z.videoDuration);$z.playedTime!==
void 0&&J($z.playedTime);$z.videoId!==void 0&&fB($z.videoId);$z.playerState!==void 0&&yO($z.playerState)},
appApi:_.xEY(),playerApi:d})},void 0,"ZW7y9");
_.Nk(function(){d==null||d.addEventListener("onVideoProgress",dRO(FX));d==null||d.addEventListener("onVideoDataChange",KEX(FX));d==null||d.addEventListener("onStateChange",eDS(FX))});
_.$F(function(){if(d==null?0:d.isReady())d==null||d.removeEventListener("onVideoProgress",dRO(FX)),d==null||d.removeEventListener("onVideoDataChange",KEX(FX)),d==null||d.removeEventListener("onStateChange",eDS(FX))});
return _.U("desktop-shorts-player-controls",null,_.U(Fti,{playerControlsProps:FX}))},"He");
Fti=_.C8(function(K){var d=K.playerControlsProps;return _.U("div",{class:"desktopShortsPlayerControlsWizHost"},_.U(_.R5c,{progressBarProps:d,config:function(){return{isShortsPage:!0,hideProgressBar:d().videoDuration<30&&d().playerState!==2&&!d().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Ie");_.Zx(_.t6X);_.XKw=_.C8(function(K){var d=K.data;return _.U("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.U(_.pI,{command:function(){return d().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.U(_.X,{cond:function(){return d().iconName},
then:function(f){return _.U(_.U5,{icon:f})}}),_.U("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return d().text}),_.U(_.X,{cond:function(){return d().showEndChevron},
then:function(){return _.U(_.U5,{icon:"CHEVRON_RIGHT"})}})))},"Je");var vw5=_.C8(function(K){var d=K.data;var f=K.overlayDensity;K={};return _.U("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.U(_.z1,{data:function(){return d().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(H){var D=H.data;
return _.U(_.gW,{data:function(){return(f==null?void 0:f())===1?Object.assign({},D(),{avatar:{avatarViewModel:Object.assign({},_.P(D().avatar,_.G1),{avatarImageSize:"AVATAR_SIZE_48"})}}):D()}})}}),_.U(_.z1,{data:function(){return d().avatarStackViewModel}},{avatarStackViewModel:function(H){return _.U(_.O$,{data:H.data})}}),_.U(_.ji,{className:_.SC("ytReelChannelBarViewModelChannelName",(K.ytReelChannelBarViewModelChannelNameLarge=function(){return(f==null?void 0:f())===1},K)),
text:function(){return d().channelName},
linkInheritColor:!0,userInput:!0}),_.U("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.U(_.z1,{data:function(){return d().subscribeButtonViewModel}},{subscribeButtonViewModel:function(H){var D=H.data;
return _.U(_.PI,{data:function(){return(f==null?void 0:f())===1?Object.assign({},D(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},D().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):D()},
isOverlay:!1})},
buttonViewModel:_.oY})),_.U("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.U(_.z1,{data:function(){var H,D;return(D=_.P((H=d())==null?void 0:H.sponsorButtonViewModel,gSs))==null?void 0:D.sponsorButton}},{buttonViewModel:function(H){return _.U(_.oY,{data:H.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Ke");var MS5=_.C8(function(K){var d={};return _.U("yt-reel-multi-format-link-view-model",{class:_.SC("ytReelMultiFormatLinkViewModelHost",(d.ytReelMultiFormatLinkViewModelHostTall=!0,d.ytReelMultiFormatLinkViewModelHostLarge=function(){var f;return((f=K.overlayDensity)==null?void 0:f.call(K))===1},d))},_.U(_.pI,{ariaLabel:function(){return K.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.$A(K.data().command)},
dangerousStopPropagation:!1},_.U("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.U(_.X,{cond:function(){return K.data().icon},
then:function(f){return _.U(_.jV,{data:f,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.U(_.ji,{text:function(){return K.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Le");
MS5.idomCompat=!0;var PUP=_.C8(function(K){var d=K.data;var f=K.overlayDensity;var H=_.Co();K=_.y(_.cC(!1,void 0,"xDqzhe"));var D=K.next().value,S=K.next().value;K=_.y(_.cC(!1,void 0,"LI9CFd"));var n=K.next().value,u=K.next().value,a=function(){return d().isMultiLineSa},R=_.yF(YdY,function(){var J,L;
return(L=(J=d().toggleableContent)==null?void 0:J.entityKey)!=null?L:""}),F=function(){var J,L,fB;
return(fB=d().toggleableContent)!=null&&fB.entityKey?(L=(J=R())==null?void 0:J.value)!=null?L:!1:!1},z=function(){var J,L,fB,w,yO,FX,NJ,$z,hN,bo,xz;
return d().toggleableContent?F()?(J=d().toggleableContent)==null?void 0:J.toggledData:(L=d().toggleableContent)==null?void 0:L.untoggledData:{primaryText:($z=(fB=d().defaultContent)==null?void 0:fB.primaryText)!=null?$z:d().text,secondaryText:(w=d().defaultContent)==null?void 0:w.secondaryText,onTapCommand:(hN=(yO=d().defaultContent)==null?void 0:yO.onTapCommand)!=null?hN:d().onTapCommand,icon:(bo=(FX=d().defaultContent)==null?void 0:FX.icon)!=null?bo:d().icon,image:(xz=(NJ=d().defaultContent)==null?
void 0:NJ.image)!=null?xz:d().image}},v=function(){return a()?d().trailingTapTarget:void 0};
K=function(J,L){return function(){return D()?L:J}};
var g={leadingSection:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};K={};K=_.SC((K.ytShortsSuggestedActionViewModelStaticHost=function(){return!a()},K.ytShortsSuggestedActionViewModelDynamicHost=a,K.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return a()&&n()},K.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return a()&&!n()},K));
_.tR(function(){if(a()){var J=0,L;if((L=d().animationParams)==null?0:L.shouldExpand){var fB,w;J=((w=(fB=d().animationParams)==null?void 0:fB.expansionDelaySecs)!=null?w:0)*1E3}var yO,FX=((yO=d().animationParams)==null?0:yO.shouldExpand)?setTimeout(function(){S(!0)},J):void 0,NJ,$z;
J=((NJ=d().animationParams)==null?0:NJ.visibilityDelaySecs)?(($z=d().animationParams)==null?NaN:$z.visibilityDelaySecs)*1E3:0;var hN=setTimeout(function(){u(!0)},J);
_.$F(function(){FX&&clearTimeout(FX);clearTimeout(hN)})}});
var N=function(J){_.me(J,Object.assign({},{form:{element:H.value}}))},h=_.cp(function(){var J,L=(J=z())==null?void 0:J.onTapCommand;
L&&N(L)}),m=_.cp(function(){var J,L;
if(J=(L=v())==null?void 0:L.onTapCommand)return N(J),!1}),T=_.Im({"vertical-align":"bottom",
"border-radius":function(){var J;return a()?((J=d().defaultContent)==null?0:J.isCircleImage)?"50%":"4px":"0px"},
width:function(){var J,L,fB;return a()&&((J=d().defaultContent)==null?0:J.imageSize)?((fB=(L=d().defaultContent)==null?void 0:L.imageSize)!=null?fB:24)+"px":null},
height:function(){var J,L,fB;return a()&&((J=d().defaultContent)==null?0:J.imageSize)?((fB=(L=d().defaultContent)==null?void 0:L.imageSize)!=null?fB:24)+"px":null}}),r={};
return _.U("yt-shorts-suggested-action-view-model",{class:K,el:H},_.U("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.U("button",{class:_.SC(function(){return a()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var J;
return(J=d().useFullRoundedBorder)!=null&&J?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!v()&&a()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":a()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var J;
return(J=d().disableFixedHeight)!=null&&J?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(r.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(f==null?void 0:f())===1},r)),
"on:click":h},_.U(_.zz,{model:{color:4}}),_.U("div",{class:_.SC(function(){return a()?g.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.U(_.X,{cond:function(){var J;
return(J=z())==null?void 0:J.image},
then:function(J){return _.U(_.jV,{data:J,alt:"",className:function(){return a()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:T})}}),_.U(_.X,{cond:function(){var J,L;
return(J=z())==null?void 0:(L=J.icon)==null?void 0:L.iconType},
then:function(J){return _.U(_.U5,{icon:J,active:F,className:function(){return a()?D()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.U("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.U(_.X,{cond:function(){var J;
return(J=z())==null?void 0:J.primaryText},
then:function(J){return _.U("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.U(_.ji,{text:J}))}}),_.U(_.X,{cond:function(){var J;
return(J=z())==null?void 0:J.secondaryText},
then:function(J){return _.U("div",{class:g.secondaryText},_.U(_.ji,{text:J}))}}))),_.U(_.X,{cond:v,
then:function(J){return _.U("div",{class:g.trailingSection,"aria-label":function(){var L;return(L=J().a11yLabel)!=null?L:""},
"on:click":m,role:"button",tabindex:0},_.U(_.zz,{model:{color:4}}),_.U(_.U5,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Me");var gwS=_.C8(function(K){var d=K.data;var f=K.overlayDensity;var H=_.Co();K=_.cp(function(n){if(_.kmO(_.bX(n),H.value,["A".toString()]))return!1;(n=d().truncatedTextOnTapCommand)&&_.me(n);return!1});
var D={},S={};return _.U("yt-shorts-video-title-view-model",{el:H,class:_.SC("ytShortsVideoTitleViewModelHost",(D.ytShortsVideoTitleViewModelHostClickable=function(){return!!d().truncatedTextOnTapCommand},D)),
"on:click":K},_.U("h2",{class:_.SC("ytShortsVideoTitleViewModelShortsVideoTitle",(S.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(f==null?void 0:f())===1},S))},_.U(_.ji,{text:function(){return d().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ne");_.OEw=_.C8(function(K){var d=K.data;var f=K.overlayDensity;return _.U("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.U(_.z1,{data:function(){return d().metadataItems}},{badgeViewModel:function(H){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(_.s$,{data:H.data}))},
playerDisclosureViewModel:function(H){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(_.XKw,{data:H.data}))},
shortsSuggestedActionViewModel:function(H){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(PUP,{data:H.data,overlayDensity:f}))},
reelChannelBarViewModel:function(H){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(vw5,{data:H.data,overlayDensity:f}))},
reelMultiFormatLinkViewModel:function(H){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(MS5,{data:H.data,overlayDensity:f}))},
shortsVideoTitleViewModel:function(H){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(gwS,{data:H.data,overlayDensity:f}))},
reelSoundMetadataViewModel:function(H){return _.U("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.U(_.h_9,{data:H.data,overlayDensity:f}))}}))},"Oe");var Nwc=_.C8(function(K){var d=_.jP(K,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),f=d.size,H=d.onTap,D=d.disabled,S=d.tooltipText;return _.U("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.U(xB,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:f(),disabled:D(),tooltipText:S(),onTap:H}},
iconName:K.iconType}))},"Pe"),YZ7=_.C8(function(K){function d(F){F.stopPropagation();
F.code==="ArrowUp"?(F.preventDefault(),hbO(u.value)):F.code==="ArrowDown"?(F.preventDefault(),bqp(u.value)):F.code==="KeyM"?$RN():(F.code==="KeyK"||F.code==="Space")&&ER5(a())}
var f=_.jP(K,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});K=f.previousButtonDisabled;var H=f.nextButtonDisabled,D=f.data,S=f.playabilityStatus,n=f.previewThumbnail,u=_.Co(),a=_.th(_.zx5),R;_.Nk(function(){(R=_.oL(u.value))&&R.addEventListener("keydown",d)});
_.$F(function(){var F;(F=R)==null||F.removeEventListener("keydown",d)});
f=function(){var F,z,v;return(F=D())==null?void 0:(z=F.reelPlayerOverlayRenderer)==null?void 0:(v=z.likeButton)==null?void 0:v.likeButtonRenderer};
return _.U("ytd-shorts-miniplayer-overlay",{el:u,class:"ytdShortsMiniplayerOverlayHost"},_.U("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Im({"background-image":function(){var F=n();return F?'url("'+_.wl(F.thumbnails)+'")':""}})}),_.U("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.U("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.U(Nwc,{iconType:function(){var F=a();
return F===2||F===-1||F===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){ER5(a())},
tooltipText:function(){var F=a();return F===1||F===3?_.iB("PLAYER_LABEL_PAUSE"):_.iB("PLAYER_LABEL_PLAY")}}),_.U(_.t6X,null)),_.U("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.U(Nwc,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:K,onTap:function(){hbO(u.value)},
tooltipText:_.iB("PREVIOUS_VIDEO_LABEL")}),_.U(Nwc,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:H,onTap:function(){bqp(u.value)},
tooltipText:_.iB("NEXT_VIDEO_LABEL")}),_.M("web_shorts_pip_like_button")?_.U("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.U(Hlf,{buttonTooltipPosition:"left",data:f,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.U("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.U(_.X,{cond:function(){var F,z;return _.P((F=D())==null?void 0:(z=F.reelPlayerOverlayRenderer)==null?void 0:z.metapanel,
_.XLN)},
then:function(F){return _.U("div",{class:_.SC("ytdShortsMiniplayerOverlayInteractive")},_.U(_.OEw,{data:F}))}})),_.U("div",{class:_.SC("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var F;return!((F=D())==null||!F.adsOverlay)||S()&&!qWp(S())}},_.U("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.U(_.z5w,null)))),_.U(_.X,{cond:function(){var F=D(),z,v;
F=_.P(F==null?void 0:(z=F.adsOverlay)==null?void 0:(v=z.fulfillmentContent)==null?void 0:v.fulfilledLayout,ZYf);return _.P(F==null?void 0:F.renderingContent,fft)},
then:function(F){return _.U("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.U(nOB,{data:F}))}}))},"Qe");var mRz=_.C8(function(){var K=_.y(_.cC(new _.n0(NaN,NaN),void 0,"HSMFk")),d=K.next().value,f=K.next().value;K=_.y(_.cC(!1,void 0,"uaAxwf"));var H=K.next().value,D=K.next().value,S=_.y(_.cC(!1,void 0,"nVSwef"));K=S.next().value;var n=S.next().value,u=_.eq().resolve(_.$b).miniplayerPropSignalMap[0],a=u.data,R=u.shortsData,F=u.nextButtonDisabled,z=u.shortsPreviewThumbnail,v=u.previousButtonDisabled,g=u.externalPlaylistData;S=u.toastData;var N=u.playabilityStatus,h=u.isDisabled,m=u.playerVe,T=u.closeVe;
u=_.th(_.Vb);_.j7("yt-pip-window-resized",function(fB){f(fB)});
_.j7("yt-activate-pip-miniplayer",function(){return _.c(function(fB){n(!0);_.iQ(fB)})});
var r=function(){var fB;return!((fB=g())==null||!fB.contents)&&H()},J=function(){var fB=d(),w=!!a(),yO=r();
fB=fB.clone();w&&(fB.height-=76);yO&&(fB.height-=285);return fB},L=function(){D(!H())};
_.ol(function(){var fB=m(),w=_.te(11),yO=_.YZ(11);w&&yO&&fB&&(_.lB(w,yO,fB),yO=T())&&(_.WG(w,fB,[yO]),_.Ay(w,[yO]))});
return _.U("ytd-pip-container",{class:"ytdPipContainerHost"},_.U(_.X,{cond:K,then:function(){return _.U(_.msK,{isDisabled:h,playabilityStatus:N,size:J})}}),_.U(_.X,{cond:a,
then:function(){return _.U(_.hBt,{data:a,expanded:H,onExpandClick:L,playlistData:g})}}),_.U(_.X,{cond:r,
then:function(){return _.U("div",{class:"ytdPipContainerPlaylistPanel"},_.U(_.dBH,{data:g,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.U(_.X,{cond:u,
then:function(){return _.U(YZ7,{data:R,nextButtonDisabled:F,previousButtonDisabled:v,playabilityStatus:N,previewThumbnail:z})}}),_.U("div",{class:"ytdPipContainerToast"},_.U(_.lLi,{toastData:S})))},"Re");var vX=function(K,d){var f=this;this.pipController=K;this.JSC$16456_clientRoot=d;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=r1z();this.watchPipEnabled=_.M("web_watch_pip");this.shortsPipEnabled=_.M("web_shorts_pip");this.JSC$16456_watchWhileEnabled=_.M("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;_.n5(_.j3(),_.IDX,function(H){f.isSingleOptionSurveyActive=H});
this.JSC$16456_onPlayerPlayVideo=this.JSC$16456_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);_.qF(_.rU.getInstance(),this.miniplayerServiceActionMap,this.JSC$16456_clientRoot);K.pictureInPictureSupported()&&_.t3("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},rOH,GyE,bE7,APw,Twl,Qgs;
vX.prototype.handleMediaSessionPipActivation=function(){var K=this,d;return _.c(function(f){_.SJ().mediaSessionPipActivation=!0;d=_.eq().resolve(_.jC);return d.isOnWatch()&&K.watchPipEnabled?(_.SJ().watchPipActivation=!0,_.tSw(K,d.data),f.jumpTo(0)):d.isOnShorts()&&K.shortsPipEnabled?(_.SJ().shortsPipActivation=!0,_.owc(K),f.jumpTo(0)):K.isMiniplayerActive()&&K.watchPipEnabled&&!K.watchWhileMode?_.I(f,$lc(K),0):f.jumpTo(0)})};
var $lc=function(K){var d,f,H,D;return _.c(function(S){if(S.nextAddress==1)return d=!K.miniplayerToPipMode,f=K.playerElement,H=K.miniplayerData,D=K.watchResponse,_.I(S,K.deactivate(),2);if(S.nextAddress!=3)return d?(_.SJ().mediaSessionPipActivation=!0,_.SJ().watchPipActivation=!0):_.SJ().miniplayerButtonActivation=!0,_.I(S,K.activate(f,H,D),3);K.miniplayerToPipMode=d;_.iQ(S)})};
vX.prototype.onDownloadedVideoDeleted=function(K){var d,f=_.P((d=this.miniplayerData)==null?void 0:d.watchEndpoint,_.qu),H,D;f&&((H=this.watchResponse)==null?void 0:(D=H.playerResponse)==null?void 0:D.offlineState)!==void 0&&(d=f.videoId)&&K&&d===K&&this.close()};
vX.prototype.onShowMiniplayerCommand=function(K){var d=this,f,H,D,S,n,u,a,R,F,z,v,g,N;return _.c(function(h){switch(h.nextAddress){case 1:return f=_.P(K,nk2),D=(H=f)==null?void 0:H.miniplayerCommand,S=_.P(D,_.qu),D&&S&&!d.active?_.I(h,_.Rv.getInstance(),2):h.return();case 2:return n=h.yieldResult,_.I(h,(u=n)==null?void 0:u.get("yt-miniplayer-shown-video-id"),3);case 3:a=h.yieldResult;R=S.videoId;if(!R||a===R)return h.return();F=_.eq().resolve(_.jC);if(F.isOnWatch())return _.h3(Error("Bj")),h.return();
z={channelItem:{externalId:btoa(R)}};d.readyToResumeVe=_.vp(121253,void 0,void 0,z);_.SJ().showMiniplayerCommandActivation=!0;return _.I(h,_.jgH(d,D,!0),4);case 4:return d.active?(_.MG(d,{readyToResumeVe:d.readyToResumeVe,continueWatching:!0,premiumBranding:!((v=f)==null||!v.showPremiumBranding)}),_.M("ytd_miniplayer_to_wiz")&&_.MG(d,{isReadyToResume:!0}),d.isReadyToResume=!0):_.MG(d,{continueWatching:!0,premiumBranding:!((g=f)==null||!g.showPremiumBranding)}),_.I(h,(N=n)==null?void 0:N.set("yt-miniplayer-shown-video-id",
S.videoId),5);case 5:d.readyToResumeVe=void 0,_.iQ(h)}})};
vX.prototype.init=function(K){this.miniplayerEl?_.h3(new _.X4("MiniplayerService already initialized.")):this.miniplayerEl=K};
vX.prototype.isInitialized=function(){var K=!!this.miniplayerEl;K||_.h3(new _.X4("MiniplayerService used before initialized."));return K};
_.tSw=function(K,d){if(K.isInitialized()){var f=_.jhG(d.response,d.playerResponse),H=_.eq().resolve(_.jC).getPlayerFromWatch();_.SJ().currentEndpoint=f.watchEndpoint||null;K.activate(H,f,d)}};
_.owc=function(K){if(K.isInitialized()){var d=_.eq().resolve(_.jC).getPlayerFromShorts();K.activate(d)}};
rOH=function(K,d){var f;(f=!K.isInitialized())||(f=_.eq().resolve(_.jC).isOnWatch()&&K.watchPipMode,f=!(K.isMiniplayerActive()&&(_.SJ().userActivation||_.SJ().lockupActivation||f)));if(f)return!1;Ewy(K,d)?_.F5(K):Qgs(K,d);return K.watchPipMode?!_.eq().resolve(_.jC).isOnWatch():!0};
vX.prototype.isMiniplayerActive=function(){return this.active};
var Ewy=function(K,d){var f;d=(f=_.P(d,_.qu))==null?void 0:f.videoId;var H,D;K=(D=_.P((H=K.miniplayerData)==null?void 0:H.watchEndpoint,_.qu))==null?void 0:D.videoId;return d!=null&&d===K};
vX.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Zp(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.ev(this.miniplayerEl,"yt-navigate-home-action"))};
_.jgH=function(K,d,f,H){f=f===void 0?!1:f;var D,S,n;return _.c(function(u){switch(u.nextAddress){case 1:if(K.active){u.jumpTo(2);break}D=_.eq().resolve(_.jC);if(n=(S=K.playerElement)!=null?S:D.getPlayerFromWatch()){u.jumpTo(3);break}return _.I(u,_.eq().resolve(_.kP),4);case 4:n=D.getPlayerFromWatch();case 3:if(!n){_.h3(Error("Dj"));u.jumpTo(2);break}return _.I(u,K.activate(n,H),2);case 2:return K.active?_.I(u,Qgs(K,d,f),0):u.return()}})};
vX.prototype.activate=function(K,d,f){var H=this,D,S,n,u,a,R,F,z,v;return _.c(function(g){switch(g.nextAddress){case 1:if(!H.isInitialized())return g.return();if(!K)return _.h3(Error("Dj")),g.return();if(_.R4s()||H.isMiniplayerActive())var N=!0;else N=_.SJ().watchPipActivation||_.SJ().watchWhileActivation,_.eq().resolve(_.jC).isOnWatch()&&!N?(_.h3(new _.X4("miniplayer activated on watch page")),N=!0):N=_.SJ().watchWhileActivation?H.userDeactivatedWatchWhile||!!document.pictureInPictureElement||MzN():
!1;if(N)return Urs(),g.return();D=_.SJ().mediaSessionPipActivation;S=_.SJ().shortsPipActivation;n=_.SJ().watchPipActivation;a=(u=_.SJ().watchWhileActivation)||n;R=n||S;if(!H.pictureInPictureEnabled()||!R){g.jumpTo(2);break}return _.I(g,h5c(H,D),3);case 3:if(!g.yieldResult)return _.h3(Error("Cj")),Urs(),g.return();case 2:return H.setActive(!0),H.watchResponse=f,H.playerElement=K,H.updateMiniplayerData(d),_.I(g,bE7(H,K),4);case 4:if(!H.active)return _.h3(new _.X4("miniplayer deactivated during activation")),
H.removePlayerListeners(),g.return();N=_.eq().resolve(_.Yf);N.addEventListener("yt-navigate",_.Dm(H,H.onPlaylistNavigate));N.addEventListener("yt-playlist-data-updated",_.Dm(H,H.JSC$16456_onPlaylistDataUpdated));H.JSC$16456_onPlaylistDataUpdated();Urs();H.JSC$16456_watchWhileEnabled&&_.mll(H,u);H.pictureInPictureEnabled()&&H.shortsPipEnabled&&(H.shortsPipMode=S,_.j3().dispatch(d3v(H.shortsPipMode)));H.pictureInPictureEnabled()&&H.watchPipEnabled&&(H.watchPipMode=n,_.gUz(H.handleMediaSessionPipActivation));
H.player&&(F=H.player.getPlayerState(),z=F===1,_.j3().dispatch(cV2(F)),_.p1(H.miniplayerEl,"yt-miniplayer-play-state-changed",[z]),_.SJ().isVideoPlaying=z);_.p1(H.miniplayerEl,"yt-miniplayer-endpoint-changed");l7w(H);_.Wtw(H);return H.shortsPipMode||H.watchPipMode?_.I(g,_.Kd(H.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.M("ytd_miniplayer_to_wiz")?_.I(g,_.Kd(H.miniplayerEl,"yt-activate-miniplayer",[a]),6):_.I(g,_.Kd(H.miniplayerEl,"yt-activate-miniplayer-action",[K,a]),6);case 6:if(H.watchResponse&&
!_.M("miniplayer_copy_screen_on_activation_killswitch")){N=H.getScreenLayer();var h=_.te(0),m=zwG(0);h&&m&&(_.$Z(h,m,N),N===0&&RwJ(void 0,0))}GyE(H);APw(H,!0);(v=H.getPlayerElement())==null||v.focusOnPlayer();_.iQ(g)}})};
vX.prototype.updateMiniplayerData=function(K){this.miniplayerData=K;_.MG(this,{data:K})};
_.Wtw=function(K){var d,f,H=((d=K.miniplayerData)==null?void 0:(f=d.miniplayerRenderer)==null?void 0:f.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";d=K.watchWhileMode||K.watchPipMode?H&&!_.eq().resolve(_.jC).isOnWatch():H;_.MG(K,{isDisabled:d});var D,S;f=_.P((D=K.miniplayerData)==null?void 0:(S=D.miniplayerRenderer)==null?void 0:S.minimizedEndpoint,_.X3);d&&f&&_.eq().resolve(_.vI).openSheet({openPopupActionCommand:{openPopupAction:f}},K.miniplayerEl)};
GyE=function(K){if(K.watchResponse&&!Twl(K)){var d,f=(d=K.watchResponse.playerResponse)==null?void 0:d.trackingParams;f&&(_.MG(K,{expandVe:_.vp(35989),closeVe:_.vp(34699),readyToResumeCloseVe:_.vp(131070),repositionVe:_.vp(226204),resizeVe:_.vp(226205)}),_.MG(K,{playerVe:_.RG(f)}))}};
bE7=function(K,d){return _.c(function(f){if(f.nextAddress==1)return d.preparePlayer(),_.I(f,d.getPlayerPromise(),2);K.player=f.yieldResult;K.player&&(K.player.addEventListener("onPlayVideo",K.JSC$16456_onPlayerPlayVideo),K.player.addEventListener("onCloseMiniplayer",K.onPlayerCloseMiniplayer),K.player.addEventListener("onExpandMiniplayer",K.onPlayerExpandMiniplayer),K.player.addEventListener("onStateChange",K.onPlayerStateChange));_.iQ(f)})};
_.V=vX.prototype;_.V.JSC$16456_onPlayerPlayVideo=function(K){var d=K.sessionData&&"autonav"in K.sessionData,f;K.sessionData&&K.sessionData.itct&&(f=K.sessionData.itct);var H=K.watchEndpoint;d=H&&d?_.$1X(H,f):_.sx(K.videoId,K.listId||void 0,f);K.sessionData&&_.xZ(_.P(d.commandMetadata,_.B0).url,K.sessionData);Qgs(this,d)};
_.V.onPlayerExpandMiniplayer=function(){_.F5(this)};
_.V.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.V.onPlayerStateChange=function(){if(this.player){var K=this.player.getPlayerState(),d=K===1;_.j3().dispatch(cV2(K));_.j3().dispatch(_.av4(K));_.p1(this.miniplayerEl,"yt-miniplayer-play-state-changed",[d]);_.SJ().isVideoPlaying=d;if(K===0){d=!_.jA.getInstance().isAutoplaySetExplicitly();var f,H,D,S,n,u,a=(f=this.watchResponse.response)==null?void 0:(H=f.contents)==null?void 0:(D=H.twoColumnWatchNextResults)==null?void 0:(S=D.autoplay)==null?void 0:(n=S.autoplay)==null?void 0:(u=n.autoplayExplicitChoiceDialogRenderer)==
null?void 0:u.confirmDialogRenderer;d&&a&&this.player.setAutonavState(1)}K===0&&this.watchWhileMode&&this.deactivate()}};
_.V.onPlaylistNavigate=function(K,d){var f=this,H,D,S,n,u,a,R;return _.c(function(F){if(F.nextAddress==1){if(!_.P(d.endpoint,_.qu))return F.return();_.SJ().currentEndpoint=d.endpoint;_.p1(f.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.eq().resolve(_.jC).isOnWatch()&&(f.watchWhileMode||f.watchPipMode))return F.return();K.stopPropagation();(S=(D=_.P((H=d.endpoint)==null?void 0:H.commandMetadata,_.B0))==null?void 0:D.url)&&d.tempData&&!_.PR.isEmpty(d.tempData)&&_.xZ(S,d.tempData);n={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};u=new UZf(function(){return f.getPlayerElement()},n,{layer:f.getScreenLayer()});
a=function(z){u.processChunk({endpoint:d.endpoint,data:z})};
rPi(f);f.miniplayerFetchRequest=qZE(f,d.endpoint,a);_.HF(F,2);return _.I(F,f.miniplayerFetchRequest,4)}if(F.nextAddress!=2)return R=F.yieldResult,Qz7(f,R),_.Ts(F,0);_.n7(F);_.iQ(F)})};
_.V.JSC$16456_onPlaylistDataUpdated=function(){var K=_.eq().resolve(_.Yf).getPlaylistData();this.hasPlaylistData=!!K;_.MG(this,{externalPlaylistData:K||{}})};
_.V.close=function(K){if(this.isInitialized())if(K){if(!((this.watchWhileMode||this.watchPipMode)&&_.eq().resolve(_.jC).isOnWatch()||this.shortsPipMode)){var d;(d=this.getPlayerElement())==null||d.stop()}this.deactivate()}else _.h_().closeMiniplayer(this.miniplayerEl)};
_.V.deactivate=function(K){var d=this,f,H,D,S;return _.c(function(n){if(n.nextAddress==1){if(!d.isInitialized()||!d.active)return n.return();d.setActive(!1);rPi(d);(f=!!K&&Ewy(d,K))&&d.isSingleOptionSurveyActive&&_.ev(d.miniplayerEl,"yt-show-watch-page-survey",[d.isSingleOptionSurveyActive]);return _.I(n,jzK(d),2)}if(n.nextAddress!=3){APw(d,!1);d.isReadyToResume=!1;d.watchResponse=void 0;d.updateMiniplayerData(void 0);d.shortsPipMode&&(d.shortsPipMode=!1,_.j3().dispatch(d3v(d.shortsPipMode)),cF4(d.pipController),
(H=d.player)==null||H.setInternalSize(NaN,NaN));d.watchPipMode&&(d.watchPipMode=!1,cF4(d.pipController));(D=d.watchWhileMode)&&_.mll(d,!1);d.removePlayerListeners();var u=_.eq().resolve(_.Yf);u.removeEventListener("yt-navigate",_.Dm(d,d.onPlaylistNavigate));u.removeEventListener("yt-playlist-data-updated",_.Dm(d,d.JSC$16456_onPlaylistDataUpdated));_.SJ().currentEndpoint=null;_.p1(d.miniplayerEl,"yt-miniplayer-endpoint-changed");d.playerElement=null;Urs();return d.shortsPipMode||d.watchPipMode?n.jumpTo(3):
_.I(n,_.Kd(d.miniplayerEl,_.M("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[f,D]),3)}(S=d.player)==null||S.setInternalSize(NaN,NaN);d.player=null;_.iQ(n)})};
var jzK=function(K){var d;return _.c(function(f){d=_.eq().resolve(_.jC);return K.shortsPipMode?_.I(f,d.movePlayerToShorts(K.playerElement),0):_.I(f,d.movePlayerToWatch(K.playerElement),0)})};
vX.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16456_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
vX.prototype.setActive=function(K){this.active=K;this.isSingleOptionSurveyActive?_.ev(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.ev(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.j3().dispatch(_.es({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.mll=function(K,d){K.watchWhileMode=d;_.MG(K,{watchWhile:d})};
APw=function(K,d){if(!Twl(K))if(K.shortsPipMode||K.watchPipMode){var f;(f=K.player)==null||f.setDocumentPictureInPicture(d)}else{var H;(H=K.player)==null||H.setMinimized(d)}};
Twl=function(K){return K.watchWhileMode&&_.M("kevlar_watch_while_counterfactual")};
_.F5=function(K){var d;return _.c(function(f){switch(f.nextAddress){case 1:if(!K.isInitialized())return f.return();_.HF(f,2);return _.I(f,K.miniplayerFetchRequest,4);case 4:_.Ts(f,3);break;case 2:_.n7(f);case 3:K.watchResponse&&K.miniplayerData&&K.miniplayerData.watchEndpoint?(d={url:K.watchResponse.url,endpoint:K.miniplayerData.watchEndpoint,data:K.watchResponse,miniplayer:!0},_.Zp(K.miniplayerEl,"yt-navigate-cache",d)):K.miniplayerData&&K.miniplayerData.watchEndpoint&&_.Zp(K.miniplayerEl,"yt-navigate",
{endpoint:K.miniplayerData.watchEndpoint}),_.iQ(f)}})};
Qgs=function(K,d,f){var H,D,S,n;return _.c(function(u){if(u.nextAddress==1){if(Ewy(K,d))return u.return();_.SJ().currentEndpoint=d;_.p1(K.miniplayerEl,"yt-miniplayer-endpoint-changed");_.p1(K.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.SJ().isVideoPlaying=!1;H={clientParams:{miniplayer:!0,autoSaveToQueue:!f}};D=new UZf(function(){return K.getPlayerElement()},H,{layer:K.getScreenLayer(),
parentLayer:0},void 0,K.readyToResumeVe);S=function(a){var R,F,z=Object.assign({},(R=a.playerResponse)==null?void 0:(F=R.playerConfig)==null?void 0:F.playbackStartConfig,{startPaused:!0}),v;f&&((v=a.playerResponse)==null?0:v.playerConfig)&&(a.playerResponse.playerConfig.playbackStartConfig=z);D.processChunk({endpoint:d,data:a})};
rPi(K);K.miniplayerFetchRequest=qZE(K,d,S);_.HF(u,2);return _.I(u,K.miniplayerFetchRequest,4)}if(u.nextAddress!=2)return n=u.yieldResult,Qz7(K,n),_.Ts(u,0);_.n7(u);_.iQ(u)})};
vX.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var rPi=function(K){K.miniplayerFetchRequest&&(K.miniplayerFetchRequest.cancel&&K.miniplayerFetchRequest.cancel("Active request obsolete"),K.miniplayerFetchRequest=null)},qZE=function(K,d,f){var H=_.im.instance,D,S=(D=_.P(d.commandMetadata,_.B0))==null?void 0:D.url,n;
D=!S||_.M("disable_miniplayer_tempdata")?{}:(n=D0z(S))!=null?n:{};return bf(H,d,D,window.location.href,"watch",function(u,a){f(a)},function(u){return u!==K.miniplayerFetchRequest})},Qz7=function(K,d){var f;
_.c(function(H){if(!d)return H.return();K.watchResponse=d;GyE(K);l7w(K);f=_.jhG(d.response,d.playerResponse);if(K.isMiniplayerActive()){d.response&&(K.playerElement.watchNextData=d.response);var D=_.PR.getValueByKeys.apply(_.PR,[d].concat(_.Me(Nak)));_.PR.getValueByKeys.apply(_.PR,[d].concat(_.Me(EVk)))&&D&&_.eq().resolve(_.Yf).setAutoplayRenderer(D);if(D)if(_.M("kevlar_is_pupi_enabled")){var S,n,u,a,R,F=((S=d.response)==null?0:(n=S.playerOverlays)==null?0:(u=n.playerOverlayRenderer)==null?0:(a=u.autonavToggle)==
null?0:(R=a.autoplaySwitchButtonRenderer)==null?0:R.enabled)?2:1;_.jA.getInstance().setState(F,!1,!1)}else S=ziX()?2:1,(F=K.player)==null||F.setAutonavState(S);K.updateMiniplayerData(f);_.Wtw(K)}_.iQ(H)})},l7w=function(K){var d,f,H=(d=K.watchResponse)==null?void 0:(f=d.playerResponse)==null?void 0:f.playabilityStatus,D;
d=H==null?void 0:(D=H.miniplayer)==null?void 0:D.miniplayerRenderer;(d==null?void 0:d.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&d.minimizedEndpoint&&_.dN(K.miniplayerEl,[d.minimizedEndpoint]);_.MG(K,{miniplayerRenderer:d,playabilityStatus:H})};
vX.prototype.openToast=function(K,d){_.MG(this,{toastData:{data:K,label:d}})};
_.MG=function(K,d){var f=K.miniplayerEl,H;for(H in d)f[H]=d[H];(0,K.miniplayerPropSignalMap[1])(d)};
vX.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var K;return this.playerElement?this.playerElement:(K=_.E(this.miniplayerEl).querySelector("#player-container"))==null?void 0:K.firstElementChild};
vX.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var h5c=function(K,d){d=d===void 0?!1:d;var f,H,D,S,n,u,a;return _.c(function(R){if(R.nextAddress==1){f=navigator.userActivation.isActive||d;if(!f||!K.pictureInPictureSupported())return R.return(!1);H=CUw(K);D=H.width;S=H.height;return _.I(R,K.pipController.openWindow({width:D,height:S}),2)}n=R.yieldResult;u=K.pipController.getWindow();if(!u||!n)return R.return(!1);u.document.body.style.overflow="hidden";a=lrz(u);uK6(K.pipController,function(){xl5(K);a()});
return R.return(!0)})},CUw=function(K){var d=_.SJ().shortsPipActivation,f,H;
K=d?.5625:(H=(f=K.player)==null?void 0:f.getVideoAspectRatio())!=null?H:16/9;f=Math.min(window.innerWidth,window.innerHeight)/2;d=d?0:76;return K>1?new _.n0(f,d+f/K):new _.n0(f*K,d+f)},xl5=function(K){var d;
_.c(function(f){d=_.eq().resolve(_.jC);return d.isOnWatch()&&K.watchPipMode||d.isOnShorts()&&K.shortsPipMode?_.I(f,K.deactivate(),0):K.miniplayerToPipMode?_.I(f,$lc(K),0):K.watchPipMode?_.I(f,_.F5(K),0):f.jumpTo(0)})};
vX.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.x$.Object.defineProperties(vX.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
vX[CG]=[as4,GPB];var LtZ="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(" "),
Bwz="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(" "),JP5="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
szt="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var kyS=null;var wKc={},ZE7=(wKc.initialized={priority:10,callback:function(K){var d=_.eq();d.addProvider({provide:NyL,useClass:iBt});d.addProvider({provide:_.nzy,useFactory:function(){return new Yof}});
d.addProvider({provide:Fx,useValue:_.mD("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});d.addProvider({provide:gvs,useValue:5184E6});d.addProvider({provide:TE8,useValue:_.Xm()});d.addProvider({provide:si2,useClass:Z9N});d.addProvider({provide:bY,useClass:bY});d.addProvider({provide:_.kP,useFactory:function(){return HDH.promise}});
d.addProvider({provide:_.V_8,useFactory:function(){return _.D3L.promise}});
d.addProvider({provide:YeN,useValue:function(){var u;return((u=_.xP())==null?void 0:u.getPlayer())||null}});
var f={};d.addProvider((f.provide=_.qW,f.useFactory=function(u,a){return function(){return Vz5(u,a)}},f[CG]=[Fx,
gvs],f));f={};d.addProvider((f.provide=_.dJ,f.useClass=ip2,f[CG]=[Fx,gvs],f));f={};d.addProvider((f.provide=_.sPz,f.useClass=IAH,f[CG]=[_.dJ],f));d.addProvider({provide:y_,useFactory:_.j3});d.addProvider({provide:Ks,useFactory:_.j3});d.addProvider({provide:ZpJ,useFactory:_.j3});d.addProvider({provide:qOs,useFactory:_.j3});d.addProvider({provide:_.tj,useFactory:_.j3});d.addProvider({provide:fI,useValue:_.yj});d.addProvider({provide:HBZ,useClass:PB5});d.addProvider({provide:dys,useClass:KF2});d.addProvider({provide:NW,
useClass:NW});d.addProvider({provide:Hn,useClass:Hn});d.addProvider({provide:DI,useClass:DI});d.addProvider({provide:Sb,useClass:Sb});d.addProvider({provide:mI,useClass:mI});d.addProvider({provide:aN,useClass:aN});d.addProvider({provide:en,useClass:en});d.addProvider({provide:ejs,useValue:g8S});d.addProvider({provide:_.FD,useFactory:_.cv});d.addProvider({provide:Bb,useFactory:_.aS});f={};d.addProvider((f.provide=oDS,f.useFactory=function(u){return function(a){var R=R===void 0?{}:R;var F,z,v=(z=_.P((F=
a.endpoint)==null?void 0:F.commandMetadata,_.B0))==null?void 0:z.rootVe;if(v){var g,N;if(F=a.previousCsn||((N=_.P((g=a.endpoint)==null?void 0:g.commandMetadata,Th6))==null?void 0:N.parentCsn)){var h=h===void 0?{}:h;if(F!==_.te(h.layer)||v!==zwG(h.layer))gkG(F,h.cttAuthInfo,h.layer||0),RwJ(F,h.layer||0),g=h.layer||0,_.bx(Foo(g===void 0?0:g),v);R.parentCsn=F}a.endpoint&&F?KZs(u,a.endpoint,R):_.eA(u,v,void 0,R);var m;((m=a.response)==null?0:m.trackingParams)&&u.graftServerVe(a.response.trackingParams);
var T;((T=a.playerResponse)==null?0:T.trackingParams)&&u.graftServerVe(a.playerResponse.trackingParams);var r;((r=a.reelWatchSequenceResponse)==null?0:r.trackingParams)&&u.graftServerVe(a.reelWatchSequenceResponse.trackingParams)}}},f[CG]=[_.FD],f));
f={};d.addProvider((f.provide=pNJ,f.useClass=erL,f[CG]=[fI,_.tj],f));f={};d.addProvider((f.provide=Zi,f.useClass=Zi,f[CG]=[_.kP,_.tj],f));f={};d.addProvider((f.provide=J7,f.useClass=J7,f[CG]=[Ks,_.pQ],f));d.addProvider({provide:_.Vyt,useClass:UNH});f={};d.addProvider((f.provide=_.XM,f.useClass=nCs,f[CG]=[_.Vyt],f));d.addProvider({provide:_.vI,useClass:K$});d.addProvider({provide:myB,useClass:BVt});d.addProvider({provide:_.MZ,useClass:e8});f={};d.addProvider((f.provide=_.j5,f.useClass=Is2,f[CG]=[_.j5],
f));d.addProvider({provide:_.Z2,useClass:sV4});d.addProvider({provide:a7,useClass:a7});d.addProvider({provide:Xx,useClass:Xx});d.addProvider({provide:ti,useClass:pi});f={};d.addProvider((f.provide=Ef,f.useClass=Ef,f[CG]=[_.vI,ti],f));_.M("web_enable_feedback_endpoint_resolver")&&(f={},d.addProvider((f.provide=nu,f.useClass=nu,f[CG]=[y_,S5],f)),d.addProvider({provide:S5,useClass:Rjt}));_.M("web_enable_feedback_endpoint_resolver_batch_2")&&(f={},d.addProvider((f.provide=cb,f.useClass=cb,f[CG]=[y_],
f)),f={},d.addProvider((f.provide=i7,f.useClass=i7,f[CG]=[S5],f)));f={};d.addProvider((f.provide=o7,f.useClass=o7,f[CG]=[_.MZ,ti],f));f={};d.addProvider((f.provide=gY,f.useClass=gY,f[CG]=[_.MZ],f));f={};d.addProvider((f.provide=$9,f.useClass=$9,f[CG]=[_.Nn,_.XM],f));f={};d.addProvider((f.provide=Y9,f.useClass=Y9,f[CG]=[_.Nn,_.FD],f));d.addProvider({provide:e5,useClass:e5});f={};d.addProvider((f.provide=Lu,f.useClass=Lu,f[CG]=[y_],f));d.addProvider({provide:uk,useClass:uk});f={};d.addProvider((f.provide=
II,f.useClass=II,f[CG]=[y_],f));f={};d.addProvider((f.provide=Ul,f.useClass=Ul,f[CG]=[_.Nn,y_],f));f={};d.addProvider((f.provide=RI,f.useClass=RI,f[CG]=[y_],f));f={};d.addProvider((f.provide=FZ,f.useClass=FZ,f[CG]=[y_],f));f={};d.addProvider((f.provide=Of,f.useClass=Of,f[CG]=[_.XM],f));f={};d.addProvider((f.provide=HV,f.useClass=HV,f[CG]=[_.FD],f));f={};d.addProvider((f.provide=ik,f.useClass=ik,f[CG]=[wY],f));f={};d.addProvider((f.provide=cV,f.useClass=cV,f[CG]=[wY],f));d.addProvider({provide:Sn,
useClass:Sn});d.addProvider({provide:yz,useClass:yz});d.addProvider({provide:fC,useClass:fC});f={};d.addProvider((f.provide=hi,f.useClass=hi,f[CG]=[_.XM,_.pQ],f));d.addProvider({provide:R7,useClass:R7});f={};d.addProvider((f.provide=NI,f.useClass=NI,f[CG]=[_.Nn,_.XM],f));d.addProvider({provide:vb,useClass:vb});f={};d.addProvider((f.provide=Cu,f.useClass=Cu,f[CG]=[y_,_.Nn,_.j5],f));f={};d.addProvider((f.provide=qI,f.useClass=qI,f[CG]=[_.Nn,_.pQ],f));d.addProvider({provide:O$s,useValue:Pjp});d.addProvider({provide:$GL,
useValue:db5});d.addProvider({provide:Q_,useClass:Q_});f={};d.addProvider((f.provide=rY,f.useClass=rY,f[CG]=[y_],f));f={};d.addProvider((f.provide=x9,f.useClass=x9,f[CG]=[_.Z2,_.pQ],f));f={};d.addProvider((f.provide=u7,f.useClass=u7,f[CG]=[_.pQ],f));d.addProvider({provide:V_,useFactory:function(){return new V_(_.j3())}});
d.addProvider({provide:ebz,useFactory:_.PW.getInstance});f={};d.addProvider((f.provide=ze,f.useClass=ze,f[CG]=[Fx,ebz,_.pQ],f));d.addProvider({provide:I7,useClass:I7});d.addProvider({provide:Ku,useClass:Ku});d.addProvider({provide:fu,useClass:fu});d.addProvider({provide:_.dY,useClass:_.dY});d.addProvider({provide:vV,useClass:vV});f={};d.addProvider((f.provide=Ge,f.useClass=Ge,f[CG]=[Ks],f));f={};d.addProvider((f.provide=Ai,f.useClass=Ai,f[CG]=[_.pQ],f));_.M("web_enable_prefetching_videos_on_home")&&
(d.addProvider({provide:BQ,useClass:BQ}),d.addProvider({provide:cX,useClass:cX}));f={};d.addProvider((f.provide=XZ,f.useClass=XZ,f[CG]=[_.pQ],f));d.addProvider({provide:Hb,useClass:Hb});f={};d.addProvider((f.provide=pu,f.useClass=pu,f[CG]=[_.Nn,_.pQ],f));f={};d.addProvider((f.provide=Dg,f.useClass=Dg,f[CG]=[_.pQ],f));d.addProvider({provide:u5,useClass:u5});d.addProvider({provide:l7,useClass:l7});f={};d.addProvider((f.provide=mT,f.useClass=mT,f[CG]=[Ks,_.pQ],f));f={};d.addProvider((f.provide=gq,f.useClass=
gq,f[CG]=[Ks,_.pQ,_.Nn],f));f={};d.addProvider((f.provide=Ol,f.useClass=Ol,f[CG]=[_.pQ],f));f={};d.addProvider((f.provide=PV,f.useClass=PV,f[CG]=[_.pQ,_.Nn],f));f={};d.addProvider((f.provide=Te,f.useClass=Te,f[CG]=[_.kP],f));f={};d.addProvider((f.provide=Wb,f.useClass=Wb,f[CG]=[_.kP],f));d.addProvider({provide:k9,useClass:k9});d.addProvider({provide:Zg,useClass:Zg});d.addProvider({provide:aI,useClass:aI});d.addProvider({provide:KC,useClass:KC});d.addProvider({provide:sf,useClass:sf});d.addProvider({provide:MI,
useClass:MI});d.addProvider({provide:Ji,useClass:Ji});_.M("kevlar_enable_mss_lazy_load")&&d.addProvider({provide:_.hm,useClass:CoP});d.addProvider({provide:_.yJ,useClass:f$});d.addProvider({provide:QP,useFactory:function(){return _.rU.getInstance()}});
d.addProvider({provide:kK9,useFactory:vUn});d.addProvider({provide:wY,useFactory:function(){return _.Rv.getInstance()}});
d.addProvider({provide:wUB,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});f={};d.addProvider((f.provide=_.sB,f.useClass=_.sB,f[CG]=[_.kP,_.pQ,_.FD,kK9,wY,QP,wUB,fI],f));d.addProvider({provide:_.SE,useClass:vEH});d.addProvider({provide:_.NE2,useClass:ORt});f={};d.addProvider((f.provide=Pb,f.useClass=Pb,f[CG]=[_.NE2],f));f={};d.addProvider((f.provide=_.kj,f.useFactory=function(u){return u.upliftCompletionResolver.promise},f[CG]=[pNJ],f));
f=_.lx("IS_SHELL_LOAD")?"aa":"eocs";var H=_.lx("IS_SHELL_LOAD")?3:2;_.ov().parkOrScheduleJob(function(){dNH()},H,f);
_.ov().parkOrScheduleJob(function(){_.eq().resolve(Zi).start()},2,"eocs");
_.ov().parkOrScheduleJob(function(){wN8()},2,"eocs");
_.ov().parkOrScheduleJob(function(){_.eq().resolve(J7).start()},2,"eocs");
_.M("kevlar_debug_data_app_registration_ks")||ZCY();d.addProvider({provide:_.Pp,useValue:new S6t(K.root)});d.addProvider({provide:A3,useValue:new qPJ});d.addProvider({provide:_.UBk,useValue:new aY9(K.root)});d.addProvider({provide:_.O1,useValue:new IY6});d.addProvider({provide:_.um,useClass:cI});d.addProvider({provide:as4,useClass:de});_.M("kevlar_network_sli_killswitch")||d.addProvider({provide:UJl,useValue:rH6});d.addProvider({provide:DJZ,useFactory:y1X});_.M("web_bind_fetch")&&(f={},d.addProvider((f.provide=
Vpz,f.useFactory=nDO,f[CG]=[_.Zd(DJZ)],f)));_.M("web_bind_parse")&&(f={},d.addProvider((f.provide=SYZ,f.useFactory=iku,f[CG]=[_.Zd(DJZ)],f)));_.M("web_bind_window_request")&&(f={},d.addProvider((f.provide=yNS,f.useFactory=c1X,f[CG]=[_.Zd(DJZ)],f)));f={};d.addProvider((f.provide=jyk,f.useFactory=N1S,f[CG]=[_.kj,y_,_.qW],f));f={};d.addProvider((f.provide=Qyt,f.useClass=N1,f[CG]=[jyk],f));d.addProvider({provide:Hp6,useClass:p8s});d.addProvider({provide:AkB,useClass:rkv});f=[].concat(_.Me(Ah));_.M("web_continuation_response_processing")&&
f.push(_.$P);f.push(cQH);_.M("enable_share_panel_navigation_logging_fix_on_web")&&f.push(_.m0B);d.addProvider({provide:IcN,useValue:f});d.addProvider({provide:d$5,useClass:G_2});d.addProvider({provide:Xuc,useClass:RGS});f={};d.addProvider((f.provide=Zq5,f.useClass=Nuf,f[CG]=[Ks],f));_.oc.addLowPriorityJob(function(){BMu()});
f={};d.addProvider((f.provide=CZH,f.useFactory=function(u){return function(a){var R,F=(R=_.P(a.commandMetadata,_.B0))==null?void 0:R.url;if(!F)throw new _.X4("No URL for PBJ Command",a);F=v$X(F,{pbj:"1"});R=TXG(F,{})||{};R=Object.assign({},R,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.mD("STS").toString()});a=_.c6({command:JSON.stringify(a),session_token:_.mD("XSRF_TOKEN")});return u.fetch(F,{method:"POST",headers:R,body:a})}},f[CG]=[Xuc],f));
f=[];f.push(d.resolve(AkB));H={};H=(H.client_location=_.PW.getInstance(),H.consistency=_.vL5(),H.entities=d.resolve(dys),H.response_received_commands=d.resolve(d$5),H.store=d.resolve(_.sPz),H.tokens=d.resolve(AkB),H);if(_.M("web_shorts_prefetch_service_enabled")){var D=new UMs(d.resolve(_.dJ));H.shorts_prefetch=D}H.adblock_detection=d.resolve(Zq5);d.addProvider({provide:_.jc,useClass:_.jc});D=d.resolve(ejs);var S=[];if(_.M("PremiumClientSharedConfig__enable_att_context_processor")||_.M("enable_att_for_transcript_request_on_web_client"))d.addProvider({provide:rns,
useClass:GrL}),S.push(d.resolve(rns));if(_.M("owl_pl_await")){var n={};d.addProvider((n.provide=e_s,n.useFactory=function(u){return new wht(u)},n[CG]=[_.jc],n));
S.push(d.resolve(e_s))}jR4(D,d.resolve(Xuc),d.resolve(HBZ),H,d.resolve(_.dJ),f,S,d.resolve(Qyt),d.resolve(Hp6));d.addProvider({provide:_.Nn,useValue:_.md.instance});_.M("start_client_gcf")&&d.addProvider({provide:MF,useValue:eA4()});d.addProvider({provide:H4J,useFactory:function(){return new H4J(_.eq().resolve(_.jc),_.Rv.getInstance())}});
_.ov().parkOrScheduleJob(function(){DNL()},1,"eocs");
f={};d.addProvider((f.provide=wK,f.useClass=wK,f[CG]=[_.qW,_.Nn],f));d.addProvider({provide:_.vCN,useFactory:_.i5.getInstance});_.ov().parkOrScheduleJob(function(){_.eq().resolve(wK).refresh()},0,"eocs");
xZv(g8S.watchEndpointMap||{},D.reelWatchEndpointMap||{},K.injector.resolve(_.Nn));d.addProvider({provide:R1,useValue:_.im.instance});_.M("kevlar_signal_collection_killswitch")||(f={},d.addProvider((f.provide=J$t,f.useClass=J$t,f[CG]=[Fx,Bb],f)),_.ov().parkOrScheduleJob(function(){_.eq().resolve(J$t).record()},1,"eocs"));
_.M("web_debug_handler_registration_killswitch")||_.ov().parkOrScheduleJob(function(){kPz("DOWNLOAD_PES",XiN);_.M("offline_client_state_export_ks")||kPz("OFFLINE_CLIENT_STATE",RV5)},0,"eocs");
_.M("kevlar_prevent_polymer_dynamic_font_load")&&_.ov().parkOrScheduleJob(function(){var u=[_.p7(hGZ),_.p7(bBU)];u=_.y(u);for(var a=u.next();!a.done;a=u.next()){a=a.value;var R=document.createElement("link");_.qD(R,a,"stylesheet");document.head.appendChild(R)}},1,"eocs");
f=K.injector.resolve(_.Nn);_.TuL.instance=new _.TuL(f);Dwp(Er6(new Anv(f)));f={};K.injector.addProvider((f.provide=k7,f.useFactory=function(u){(u=u==null?void 0:u.getCurrentPage())?u=u.visibilityObserver:(kyS||(kyS=YQO()),u=kyS);return u},f[CG]=[_.Zd(_.jC)],f.skipCache=!0,f));
d.addProvider({provide:_.$b,useClass:vX});d.addProvider({provide:iZ,useClass:tn2});K.injector.addProvider({provide:AX9,useValue:VrN});d.addProvider({provide:nys,useValue:PDJ});d.addProvider({provide:_.AJ,useValue:mLz});K=d.addProvider;PMv||(PMv=new My9);K.call(d,{provide:_.gC6,useValue:PMv});d.addProvider({provide:_.rl,useValue:_.mD("HTML_DIR")==="rtl"?"rtl":"ltr"});d.addProvider({provide:HR2,useClass:ICH});d.addProvider({provide:_.DF,useClass:HX});_.eq().addProvider({provide:VTf,useValue:_.M("enable_web_delhi_icons")?
Bwz.concat(szt):LtZ.concat(JP5)});d.addProvider({provide:_.Vl,useClass:_.Vl});d.addProvider({provide:_.YYw,useValue:new Nzw});d.addProvider({provide:D$2,useClass:e$9});d.addProvider({provide:dq,useClass:dq});d.addProvider({provide:Dc,useClass:Dc});K={};d.addProvider((K.provide=b7,K.useClass=b7,K[CG]=[_.Nn,_.XM],K));d.addProvider({provide:M1,useClass:M1});d.addProvider({provide:OV9,useClass:FuB});d.addProvider({provide:nC,useClass:nC});d.addProvider({provide:HbN,useValue:j88});d.addProvider({provide:_.b_,
useClass:p78});_.M("enable_payments_purchase_manager")&&d.addProvider({provide:Cus,useClass:q69});d.addProvider({provide:$JP,useFactory:function(){return function(u){return _.oz5(u)}}});
d.addProvider({provide:_.lCt,useClass:WFN});K={};d.addProvider((K.provide=zP,K.useClass=zP,K[CG]=[_.lCt],K));d.addProvider({provide:Vz,useClass:Vz});d.addProvider({provide:XBs,useValue:sr8});d.addProvider({provide:AU8,useValue:_.$Nv});d.addProvider({provide:Sen,useClass:R_B});d.addProvider({provide:o8U,useValue:ttZ});K={};d.addProvider((K.provide=_.Re,K.useClass=$sz,K[CG]=[o8U],K));_.M("web_ephemeral_actions")&&(K={},d.addProvider((K.provide=_.yl,K.useClass=Sj,K[CG]=[_.tj,_.um],K)));if(_.M("web_explore_hub_on_hover")||
_.M("web_client_explore_hub_on_hover"))K={},d.addProvider((K.provide=Uf,K.useClass=Uf,K[CG]=[_.Nn,QP],K));d.addProvider({provide:A0O,useValue:ETO});K={};d.addProvider((K.provide=FyH,K.useClass=Rr6,K[CG]=[_.Nn],K))}},wKc);var e5z={},pKw=(e5z.initialized={priority:10,callback:function(){if(!Inz){BmO();aNu("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.SQ(_.uB(aNu,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.M("log_heartbeat_with_lifecycles")){var K={};xV.instance||(xV.instance=new xV);xV.instance.install((K.document_visible={callback:IN5,priority:10},K.document_hidden={callback:IN5,priority:10},K))}else _.wR(document,"visibilitychange",IN5);Inz=!0}(K=_.te())&&K!=="UNDEFINED_CSN"&&I5z(K)}},e5z);var KbZ={},d8P=(KbZ.initialized={callback:function(K){var d=_.vp(232091),f=K.injector.resolve(_.FD);_.p2(f,d);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?WEJ()&&_.dx(f,d):(K=K.injector.resolve($JP)("refresh_detector"))&&(K.get("first_tab_load")?_.dx(f,d):K.set("first_tab_load","1"))}},KbZ);var fM7={},Hwy=(fM7.initialized={priority:10,callback:CPY},fM7);var D8w={},Vw5=(D8w.initialized={priority:0,callback:function(){var K=new fwv,d="other";_.KO?d="chrome":_.ps?d="firefox":_.bH?d="safari":x_&&(d="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(f){K.increment(_.R0(),f,d)}).catch(function(){K.increment(_.R0(),!1,d)}):K.increment(_.R0(),!1,d)}},D8w);var SjS={},y4w=(SjS.rendering={priority:8,callback:xR5},SjS);var nsy={},iwt=(nsy.rendering={priority:10,callback:HVo},nsy.rendered={callback:fZS},nsy),c4S={},uez=(c4S.rendering={callback:HVo},c4S.rendered={callback:fZS},c4S);var aMS=!1,IMw={},U8K=(IMw.initialized={priority:10,callback:function(){aMS||(g7o({didPatch:function(K){K.el&&UGX(K.el,K.props)},
didUnmount:function(K){aXX(K.el)}}),aMS=!0)}},IMw);var Rqw=/^\/shorts\/?$/;_.bx("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.M("kevlar_enable_mss")){_.fdS(new A3v);var Fby=!0,zqZ,PX;Fby=Fby===void 0?!1:Fby;zqZ=zqZ===void 0?!1:zqZ;PX=PX===void 0?{}:PX;var XxE=PX.cssRowKey||"",vsc=PX.combinedSignature||"";!XxE&&window&&window._F_cssRowKey&&(XxE=window._F_cssRowKey,!vsc&&window._F_combinedSignature&&(vsc=window._F_combinedSignature));if(XxE&&typeof window._F_installCss!=="function")throw Error("td");var Mwi=PX.loaderClass||_.EA,ge=jdo("base-js"),PNS,gst=xkB("",ge);PNS=_.yL(gst);var Og=new Mwi(PNS,XxE,vsc,Fby,zqZ),Oww=
PX.useCors||ge&&ge.hasAttribute("crossorigin"),N4i=PX.corsMode||ge&&ge.getAttribute("crossorigin");Oww&&(Og.useCors_=Oww);N4i&&(Og.corsMode_=N4i);PX.urlMaxLength&&(Og.urlMaxLength=PX.urlMaxLength);PX.fetchPriority&&(Og.fetchPriority=PX.fetchPriority);var YjK=Em();YjK.JSC$8059_loader_=Og;YjK.setBatchModeEnabled(!0)}
(function(){var K=document.querySelector("ytd-app");if(!K)throw Error("Ej");K=new n$({root:K,injector:_.eq()});K.install(pKw);var d={};K.install((d.initialized={priority:10,callback:FrG},d));_.M("wp_lat_b")&&(d={},K.install((d.initialized={priority:10,callback:function(){DEo()}},d)));
d={};K.install((d.rendered={priority:0,callback:IvX},d));d={};K.install((d.rendered={priority:0,callback:function(){_.oc.addLowPriorityJob(function(){_.Uyk>1&&(SLO(),uIX())},4E4)}},d));
K.install(HJK);K.install(d8P);K.install(U8K);EzP||(EzP=!0,Object.assign(dQ,{handleError:XBY,enableComponentStacksInErrorMessages:!1,enableLazyTsx:_.M("mweb_enable_wiz_lazy_tsx")||_.M("kevlar_enable_wiz_lazy_tsx")}),boX=wAs,M7B=vDn,A3O=eNB,lxO=pS5,_.M("ytwiz_enable_debug_component_props")&&CpG());K.install(uH5);K.install(ZBc);K.install(dsc);K.install(qct);K.install(Ly6);K.install(iJz);K.install(ZE7);_.M("kevlar_enable_mss_lazy_load")&&K.install(Hwy);K.install(puc);K.install(Vw5);if(!_.lx("IS_SHELL_LOAD")||
_.M("kevlar_fetch_initial_data_promise_client")||_.M("sw_nav_preload_pbj")){var f=_.ny(window.location.href);d=f&&f==="/watch";f=f&&f.match(Rqw);d?K.install(uez):f?K.install(y4w):K.install(iwt)}else K.install(sXZ);K.install(Vtl);_.M("web_enable_prefetching_videos_on_home")&&K.install(RBy);_.M("start_client_gcf")&&K.install(anl);K.install(Wyv);(new H7v).increment("INSTALLED");K.install(ILl);K.install(L5t);K.transition("initialized");kqG()})();
_.dm=[[["aW5kI2lqemRmcmg5aTN0Mms=","b3A5d2o3cWl6bWkzdmFsdWUj"],"NHI1bDQ3dHBhZnI5QURfUExBQ0VNRU5UX0tJTkRfUEFVU0Uj"]];_.KU=["Z2xvYmFsQ2FsbGJhY2tzI2p0aWVneWg2aG51Zw==","dGVkI3hyajZwcWRidW51Ym9uQWJub3JtYWxpdHlEZXRlYw==","b25BZFNraXAjdWwyMnV2ODZtZGVs","ZXNwb25zZSNrbmtqcG0yZHhxaHdyYXdfcGxheWVyX3I=","ZGVyaW5nQ29udGVudCN5YXh0YTc0anVocGtyZW4="];_.li="Z2xvYmFsQ2FsbGJhY2tzI2p0aWVneWg2aG51Zw== dGVkI3hyajZwcWRidW51Ym9uQWJub3JtYWxpdHlEZXRlYw== b25BZFNraXAjdWwyMnV2ODZtZGVs ZXNwb25zZSNrbmtqcG0yZHhxaHdyYXdfcGxheWVyX3I= dWV1ZV9tdWx0aXBsZV9za2lwc19rcyNhaHJ0ZGl1ZGVwZ2J3ZWJfcGxheWxpc3RfcQ== YWJfc2FfZWYjcDF0bWw5eDV4OGJl ZGVyaW5nQ29udGVudCN5YXh0YTc0anVocGtyZW4=".split(" ");
_._ModuleManager_initialize=function(K,d){if(!_.oQ){if(!_.$l)return;_.fdS(_.$l())}_.oQ.setAllModuleInfoString(K,d)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.$y=function(K,d,f,H,D){var S={};d&&(S[d]=f);H?S.errorType=H:D&&(S.errorReason=D);_.t3(K,S);_.oB()};
_.Eg=function(K){var d=_.ov();return _.AVk(d,K,1)};
_.vP({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 K=this.query;K&&(this.full||K[0]==="("||(K="("+K+")"),this._mq=window.matchMedia(K),this._add(),this.queryHandler(this._mq))},
queryHandler:function(K){this._setQueryMatches(K.matches)}});var Gi5;var A4U;var T4w=function(){};
_.V=T4w.prototype;_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._focusedChanged=function(){};
_.V._createRipple=function(){};
_.V.registered=function(){};
_.V._invalidChanged=function(){};
_.V.hasValidator=function(){};
_.V.validate=function(){};
_.V._getValidity=function(){};
_.V._requiredChanged=function(){};
_.V._valueChanged=function(){};
_.V._checkedChanged=function(){};
_.V._buttonStateChanged=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
T4w=_.vP({is:"tp-yt-paper-radio-button",_template:function(){if(A4U!==void 0)return A4U;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Gi5===void 0&&(Gi5=document.createElement("template"));var H=Gi5;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return A4U=K},
behaviors:[_.Phv],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(){_.jW(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var K=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),d=Math.floor(3*K);d%2!==K%2&&d++;this.updateStyles({"--paper-radio-button-ink-size":d+"px"})}})}});var r4w;var qji;_.vP({_template:function(){if(qji!==void 0)return qji;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;r4w===void 0&&(r4w=document.createElement("template"));var H=r4w;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return qji=K},
is:"tp-yt-paper-radio-group",behaviors:[_.GC8],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(K){var d=this._valueToItem(K);if(!d||!d.hasAttribute("disabled")){if(this.selected){d=this._valueToItem(this.selected);if(this.selected==K)if(this.allowEmptySelection)K="";else{d&&(d.checked=!0);return}d&&
(d.checked=!1)}_.WP.select.apply(this,[K]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(K){this._focusPrevious();K.preventDefault();this._activateFocusedItem()},
_onDownKey:function(K){this._focusNext();K.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(K){_.WxH._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(K){_.WxH._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.WP._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.v3._resetTabindices.apply(this,arguments);this.items.forEach(function(K){K.removeAttribute("aria-selected")},this)}});var Q6t;_.Na("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var hU=function(){return _.q.apply(this,arguments)||this};
_.O(hU,_.q);_.V=hU.prototype;_.V.computeHasPrimaryIcon=function(K){return!(!K.icon&&!K.thumbnail)};
_.V.computeHasSecondary=function(K){return!(!K.secondaryIcon&&!K.secondaryNotificationText)};
_.V.computeHideSecondaryString=function(K){return!_.M("disable_hide_empty_secondary_string")&&!K.secondaryNotificationText};
_.V.computeCompactLinkStyle=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.V.computeHasFitHeight=function(K){return K==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.V.isActiveEndpoint=function(K){return(K=this.get("commandMetadata.webCommandMetadata.url",K))?_.ny(window.location.href)!=="/account_transfer_channel"&&_.ny(window.location.href)!=="/gaia_link"&&_.ny(window.location.href)!=="/channel_switcher"||K!=="/account"?_.ny(window.location.href)===K:!0:!1};
_.V.onTap=function(){var K;((K=this.data)==null?0:K.serviceEndpoint)&&_.dN(this.hostElement,[this.data.serviceEndpoint])};
hU.prototype.onTap=hU.prototype.onTap;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],hU.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.B("design:type",Boolean)],hU.prototype,"active",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.B("design:type",String)],hU.prototype,"compactLinkStyle",void 0);
_.x([_.A({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],hU.prototype,"icon",void 0);_.x([_.A({computed:"computeIcon_(data.secondaryIcon)"}),_.B("design:type",Object)],hU.prototype,"secondaryIcon",void 0);_.x([_.A({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],hU.prototype,"hasSecondary",void 0);_.x([_.A({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],hU.prototype,"hideSecondaryString",void 0);
_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hU.prototype,"onTap",null);hU=_.x([_.Q({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],hU);
_.C(hU,"ytd-compact-link-renderer",function(){if(Q6t!==void 0)return Q6t;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Q6t=K},{mode:1});var j6U;_.Na("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var b5=function(){var K=_.q.apply(this,arguments)||this;K.role="link";K.tabindex="0";K.actionMap=_.M("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 K};
_.O(b5,_.q);_.V=b5.prototype;_.V.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.X7()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.V.getCurrentTheme=function(){return _.vW()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.X7()};
_.V.onThemeSelected=function(K,d){var f=K||d?K:_.zo(),H=(f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.FZn(_.ny(window.location.href));_.IS(0,165,K);_.IS(0,174,d);this.prefs.save();H&&_.ev(this.hostElement,"yt-dark-mode-toggled-action",[f]);_.ev(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.onTap=function(){this.data.serviceEndpoint&&_.dN(this.hostElement,[this.data.serviceEndpoint])};
_.V.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.V.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.V.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
b5.prototype.onTap=b5.prototype.onTap;b5.prototype.dataChanged=b5.prototype.dataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],b5.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.rO),_.B("design:type",Object)],b5.prototype,"paperItemBehaviors",void 0);_.x([_.A(),_.B("design:type",Object)],b5.prototype,"data",void 0);_.x([_.A({value:function(){return _.aS()}}),
_.B("design:type",_.Bt)],b5.prototype,"prefs",void 0);_.x([_.A(),_.B("design:type",Object)],b5.prototype,"label",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],b5.prototype,"role",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],b5.prototype,"tabindex",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],b5.prototype,"dataChanged",null);
_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],b5.prototype,"onTap",null);b5=_.x([_.Q({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],b5);
_.C(b5,"ytd-toggle-theme-compact-link-renderer",function(){if(j6U!==void 0)return j6U;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return j6U=K},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.JZ=function(K){return function(d,f){var H=K||f.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(d,f,{get:function(){var D;return this.$?this.$[H]:(D=_.yV(this))==null?void 0:D.querySelector("#"+H)},
enumerable:!0,configurable:!0})}};_.sT=function(K){K=K===void 0?!1:K;_.gG.call(this);this.pubSub_=new _.uH(K);_.cy(this,this.pubSub_)};
_.Bd(_.sT,_.gG);_.sT.prototype.subscribe=function(K,d,f){return this.isDisposed()?0:this.pubSub_.subscribe(K,d,f)};
_.sT.prototype.unsubscribe=function(K,d,f){return this.isDisposed()?!1:this.pubSub_.unsubscribe(K,d,f)};
_.sT.prototype.unsubscribeByKey=function(K){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(K)};
_.sT.prototype.publish=function(K,d){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var OC5=function(){_.$y("ypcRedeemFlowStarted")},cD=function(K){_.$y("ypcRedeemFlowFailed",void 0,void 0,void 0,K)},Nqz=function(K,d,f){d&&f&&(K.videos.forEach(function(H){H.videoId===d&&(H.itemId=f)}),K.recommendedVideos.forEach(function(H){H.videoId===d&&(H.itemId=f)}))};var YlZ;var tnw;/*

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
*/
_.vP({_template:function(){if(tnw!==void 0)return tnw;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;YlZ===void 0&&(YlZ=document.createElement("template"));var H=YlZ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return tnw=K},
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(K,d){var f=this._resolveSrc(K);f!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",K===""||d?this._setLoading(!1):(this._resolvedSrc=f,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 K=this.$.sizedImgDiv.style,d=this.$.placeholder.style;K.backgroundSize=d.backgroundSize=this.sizing;K.backgroundPosition=d.backgroundPosition=this.sizing?this.position:"";K.backgroundRepeat=d.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(K){K=_.K3(K,this.$.baseURIAnchor.href);K.length>=2&&K[0]==="/"&&K[1]!=="/"&&(K=(location.origin||location.protocol+"//"+location.host)+K);return K}});var oEP;var $1z;_.vP({_template:function(){if($1z!==void 0)return $1z;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;oEP===void 0&&(oEP=document.createElement("template"));var H=oEP;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return $1z=K},
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(K){return K?"false":"true"},
_headingChanged:function(K){var d=this.getAttribute("heading"),f=this.getAttribute("aria-label");typeof f==="string"&&f!==d||this.setAttribute("aria-label",K)},
_computeHeadingClass:function(K){return K?" over-image":""},
_computeAnimated:function(K){return K}});var EEK=new _.Z("addRendererToItemSectionAction");var hfz;var uP=function(){return _.q.apply(this,arguments)||this};
_.O(uP,_.q);uP.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],uP.prototype,"rendererBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],uP.prototype,"dismissibleItemBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],uP.prototype,"rendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],uP.prototype,"data",void 0);uP=_.x([_.Q({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],uP);
_.C(uP,"ytd-comment-history-entry-renderer",function(){if(hfz!==void 0)return hfz;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return hfz=K},{mode:1});var bCl;_.Na("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Na("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var aP=function(){return _.q.apply(this,arguments)||this};
_.O(aP,_.q);_.V=aP.prototype;_.V.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.onKeyUp=function(K){if(K.keyCode===13)this.onTap()};
_.V.onTap=function(){this.data.recordClickEndpoint&&_.eq().resolve(_.pQ).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var K=this.data.navigationEndpoint;K&&_.P(K,_.gd)&&_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}})};
_.V.readChanged=function(){var K;_.pU(this.hostElement,"unread",!((K=this.data)==null?0:K.read))};
_.V.dataChanged=function(){this.data&&_.pU(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.V.computeThumbnailSize=function(){var K;return((K=this.data)==null?0:K.highPriorityNotification)?32:48};
_.V.getEndpointURL=function(K){return K&&!_.P(K,_.gd)?this.componentBehavior.computeHref_(K):null};
_.V.getEndpointData=function(K){return K&&!_.P(K,_.gd)?K:null};
aP.prototype.computeThumbnailSize=aP.prototype.computeThumbnailSize;aP.prototype.dataChanged=aP.prototype.dataChanged;aP.prototype.readChanged=aP.prototype.readChanged;aP.prototype.onKeyUp=aP.prototype.onKeyUp;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],aP.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],aP.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],aP.prototype,"data",void 0);_.x([_.A({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.B("design:type",Number)],aP.prototype,"thumbnailSize",void 0);_.x([_.VV("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],aP.prototype,"onKeyUp",null);
_.x([_.SP("data.read"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aP.prototype,"readChanged",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aP.prototype,"dataChanged",null);_.x([_.SP("data.highPriorityNotification"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aP.prototype,"computeThumbnailSize",null);
aP=_.x([_.Q({is:"ytd-notification-renderer",disableElementRegistration:!0})],aP);
_.C(aP,"ytd-notification-renderer",function(){if(bCl!==void 0)return bCl;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return bCl=K},{mode:1});var m1S;var IP=function(){return _.q.apply(this,arguments)||this};
_.O(IP,_.q);IP.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"}}}};
IP.prototype.computeActionButtonClass=function(K){return!K.actionButtons||K.actionButtons.length<=1?"single-button":K.description?"vertical-buttons":"horizontal-buttons"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],IP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],IP.prototype,"data",void 0);IP=_.x([_.Q({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],IP);
_.C(IP,"ytd-playlist-show-metadata-renderer",function(){if(m1S!==void 0)return m1S;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return m1S=K},{mode:1});var lcw;_.Na("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var UU=function(){return _.q.apply(this,arguments)||this};
_.O(UU,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],UU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],UU.prototype,"data",void 0);UU=_.x([_.Q({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],UU);
_.C(UU,"ytd-purchase-item-renderer",function(){if(lcw!==void 0)return lcw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return lcw=K},{mode:1});var W_z;var GP5={};GP5.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(K){if(K)return K.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(K){if(K==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Na("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var RP=function(){return _.q.apply(this,arguments)||this};
_.O(RP,_.q);RP.prototype.onYtNavigate=function(K){var d=this.openPopupBehavior.getNavigationEndpointPopupAction(K.detail.endpoint);d&&(K.stopPropagation(),this.openPopupBehavior.openPopup(d))};
RP.prototype.onYtNavigate=RP.prototype.onYtNavigate;_.x([_.l(GP5.YtSimpleTextSectionBehavior),_.B("design:type",Object)],RP.prototype,"ytSimpleTextSectionBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],RP.prototype,"openPopupBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],RP.prototype,"data",void 0);
_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],RP.prototype,"onYtNavigate",null);RP=_.x([_.Q({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],RP);
_.C(RP,"ytd-simple-text-section-renderer",function(){if(W_z!==void 0)return W_z;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return W_z=K},{mode:1});var AO5;_.Na("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var FW=function(){return _.q.apply(this,arguments)||this};
_.O(FW,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],FW.prototype,"data",void 0);FW=_.x([_.Q({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],FW);
_.C(FW,"ytd-unlimited-page-feature-info-renderer",function(){if(AO5!==void 0)return AO5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return AO5=K},{mode:1});var TqK;var rOi;var zc=function(){return _.q.apply(this,arguments)||this};
_.O(zc,_.q);zc.prototype.dataChanged=function(){if(this.data){var K=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);K&&(K=_.kA(K,screen.width),this.hostElement.style.backgroundImage="url("+K+")")}};
zc.prototype.dataChanged=zc.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],zc.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zc.prototype,"dataChanged",null);zc=_.x([_.Q({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],zc);
_.C(zc,"ytd-post-redemption-section-renderer",function(){if(rOi!==void 0)return rOi;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return rOi=K},{mode:1});var qli;var XW=function(){return _.q.apply(this,arguments)||this};
_.O(XW,_.q);XW.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],XW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],XW.prototype,"data",void 0);XW=_.x([_.Q({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],XW);
_.C(XW,"ytd-ypc-post-redemption-renderer",function(){if(qli!==void 0)return qli;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return qli=K},{mode:1});_.Na("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var vD=function(){var K=_.q.apply(this,arguments)||this;K.MIN_CODE_LENGTH=12;K.MAX_CODE_LENGTH=24;return K};
_.O(vD,_.q);_.V=vD.prototype;_.V.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.V.created=function(){this.riskService=new _.r8B;this.loadPaymentThenable=_.QxG(_.mD("YPC_MB_URL"))};
_.V.ready=function(){var K=this;this.code.addEventListener("keypress",function(d){K.onCodeInputKeypress(d)})};
_.V.dataChanged=function(){var K=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(d){d=_.y(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f.type==="attributes"&&f.attributeName==="dark"&&K.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.V.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var K=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+K+")")}};
_.V.computeRedeemButton=function(K){(K=this.get("redeemButton.buttonRenderer",K))&&(K=Object.assign({},K,{serviceEndpoint:void 0}));return K};
_.V.onRedeemButtonTap=function(K){K.stopPropagation();OC5();this.redeemCode()};
_.V.redeemCode=function(){var K=this;this.isLoading=!0;var d=this.riskService.init();_.at([d,this.loadPaymentThenable]).then(function(){var f=K.data.redeemButton.buttonRenderer.serviceEndpoint,H=_.quO(),D=payments.business.integration.ClientTokenFactory.createClientToken(_.P(f,_.Wv2).countryCode,H);H={c:K.code.value.trim(),rd:window.btoa(H),ctk:D};f&&_.eq().resolve(_.pQ).resolveCommand(f,{form:Object.assign({},H,{element:K.hostElement})})},function(){K.showGenericError();
cD("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.G2(Error("Sl"))})};
_.V.onYtServiceRequestCompleted=function(K){K.stopPropagation();this.isLoading=!1;var d,f;this.errorMessage=(d=K.detail)==null?void 0:(f=d.data)==null?void 0:f.errorMessage;var H,D;this.postRedemptionRenderer=(H=K.detail)==null?void 0:(D=H.data)==null?void 0:D.renderer;var S,n;if(K=(S=K.detail)==null?void 0:(n=S.data)==null?void 0:n.redirectEndpoint)this.isLoading=!0,_.Zp(this.hostElement,"yt-navigate",{endpoint:K});this.errorMessage?cD("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
K)&&_.$y("ypcRedeemFlowSucceeded")};
_.V.onYtServiceRequestError=function(K){K.stopPropagation();this.isLoading=!1;if(K=this.get("detail.error.message",K))this.errorMessage=_.rB(K);cD("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.V.onInvokeInstrumentManagerActionCompleted=function(K){K.stopPropagation();this.redeemCode()};
_.V.onInvokeInstrumentManagerActionError=function(K){K.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",K)){case "instrumentManagerLoadError":this.showGenericError();cD("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();cD("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.$y("ypcRedeemFlowCancelled")}};
_.V.onInput=function(){var K=this;_.mx(this,"onInput",function(){var d=K.code.value.trim();K.redeemButtonDisabled=d.length<K.MIN_CODE_LENGTH||d.length>K.MAX_CODE_LENGTH},200)};
_.V.onCodeInputKeypress=function(K){K.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(OC5(),this.redeemCode())};
_.V.computeImageUrl=function(K){return K?_.kA(K.thumbnails,600):null};
_.V.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
vD.prototype.onInvokeInstrumentManagerActionError=vD.prototype.onInvokeInstrumentManagerActionError;vD.prototype.onInvokeInstrumentManagerActionCompleted=vD.prototype.onInvokeInstrumentManagerActionCompleted;vD.prototype.onYtServiceRequestError=vD.prototype.onYtServiceRequestError;vD.prototype.onYtServiceRequestCompleted=vD.prototype.onYtServiceRequestCompleted;vD.prototype.dataChanged=vD.prototype.dataChanged;
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vD.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],vD.prototype,"isLoading",void 0);_.x([_.A(),_.B("design:type",Boolean)],vD.prototype,"redeemButtonDisabled",void 0);
_.x([_.A(),_.B("design:type",Object)],vD.prototype,"errorMessage",void 0);_.x([_.A(),_.B("design:type",Object)],vD.prototype,"postRedemptionRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],vD.prototype,"observer",void 0);_.x([_.n8("#code"),_.B("design:type",HTMLInputElement)],vD.prototype,"code",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vD.prototype,"dataChanged",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vD.prototype,"onYtServiceRequestCompleted",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vD.prototype,"onYtServiceRequestError",null);
_.x([_.VV("yt-invoke-instrument-manager-action-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vD.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.x([_.VV("yt-invoke-instrument-manager-action-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vD.prototype,"onInvokeInstrumentManagerActionError",null);vD=_.x([_.Q({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],vD);
_.C(vD,"ytd-redeem-code-renderer",function(){if(TqK!==void 0)return TqK;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return TqK=K},{mode:1});var QIt;_.Na("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var MR=function(){var K=_.q.apply(this,arguments)||this;K.businessEmailDisplayState="HIDE_SECTION";return K};
_.O(MR,_.q);_.V=MR.prototype;_.V.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}}}}}};
_.V.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"};
_.V.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.V.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.mV("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.V.onYtServiceRequestCompleted=function(K){var d;if((d=K.detail.data)==null?0:d.businessEmail)this.businessEmail=K.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var f;if((f=K.detail.data)==null?0:f.errorMessage)this.businessEmailErrorMessage=K.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.V.computeEmailHref=function(K){return"mailto:"+K};
_.V.computeSafeUrl=function(K){if(K)return _.Xa(K)};
_.V.onBusinessEmailCaptchaSubmit=function(){var K;(K=this.data)!=null&&K.onBusinessEmailRevealClickCommand&&(K=this.JSC$19068_captchaTextarea.value)&&(K={recaptcha_response_token:K,channel_id:this.data.channelId},_.eq().resolve(_.pQ).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},K,{element:this.hostElement})}))};
_.V.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.x$.Object.defineProperties(MR.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 K,d;return!((K=this.data)==null||!K.primaryLinks)&&!((d=this.data)==null?0:d.links)&&this.data.primaryLinks.every(function(f){return f.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var K,d;return!((K=this.data)==null||!K.primaryLinks)&&!((d=this.data)==null?0:d.links)&&!this.shouldShowNewLinks}}});
MR.prototype.onYtServiceRequestCompleted=MR.prototype.onYtServiceRequestCompleted;MR.prototype.dataChanged=MR.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],MR.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.n8("#g-recaptcha-response"),_.B("design:type",HTMLTextAreaElement)],MR.prototype,"JSC$19068_captchaTextarea",void 0);_.x([_.A(),_.B("design:type",Object)],MR.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],MR.prototype,"businessEmailDisplayState",void 0);_.x([_.A(),_.B("design:type",String)],MR.prototype,"businessEmail",void 0);_.x([_.A(),_.B("design:type",String)],MR.prototype,"businessEmailErrorMessage",void 0);
_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],MR.prototype,"hideDetailsSection",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MR.prototype,"dataChanged",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],MR.prototype,"shouldShowNewLinks",null);_.x([_.W("data","shouldShowLinks"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],MR.prototype,"shouldShowLegacyLinks",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],MR.prototype,"onYtServiceRequestCompleted",null);MR=_.x([_.Q({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],MR);
_.C(MR,"ytd-channel-about-metadata-renderer",function(){if(QIt!==void 0)return QIt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return QIt=K},{mode:1});var jIc;_.Na("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var PD=function(){return _.q.apply(this,arguments)||this};
_.O(PD,_.q);PD.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],PD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],PD.prototype,"data",void 0);PD=_.x([_.Q({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],PD);
_.C(PD,"ytd-channel-featured-content-renderer",function(){if(jIc!==void 0)return jIc;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return jIc=K},{mode:1});var CkU;_.Na("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var g_=function(){var K=_.q.apply(this,arguments)||this;K.roundContainer=!0;K.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");return K};
_.O(g_,_.q);_.V=g_.prototype;_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V.dataChanged=function(){this.imageWidth=this.imageHeight=24;var K=this.data;K.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!K.style&&K.image&&K.image.thumbnails.length&&(K=K.image.thumbnails[0],this.imageWidth=K.width||0,this.imageHeight=K.height||0)};
_.V.computeSource=function(K){return K.secondarySource?_.qQ(K.secondarySource):_.qQ(K.source)};
_.V.computeClarifyStyle=function(K){return K?K.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.V.isLargeStyle=function(K){return K==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.V.computeBackgroundStyle=function(K){return K?K.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.V.computeHasActionButton=function(K){return!!K.actionButton};
_.V.computeHasBottomSection=function(K){return!!K.ctaHasBottomSection};
_.V.computeIsSourceMissing=function(K){return K.ctaHasBottomSection===!1?!0:K&&this.computeSource(K)?!1:!0};
_.V.computeSecondaryEndpoint=function(K){return K.secondaryEndpoint||K.endpoint};
g_.prototype.dataChanged=g_.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],g_.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Number)],g_.prototype,"imageWidth",void 0);_.x([_.A(),_.B("design:type",Number)],g_.prototype,"imageHeight",void 0);
_.x([_.A({computed:"computeSecondaryEndpoint(data)"}),_.B("design:type",Object)],g_.prototype,"secondaryEndpoint",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.B("design:type",Boolean)],g_.prototype,"hasActionButton",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.B("design:type",Boolean)],g_.prototype,"hasBottomSection",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.B("design:type",Boolean)],g_.prototype,"missingSource",void 0);_.x([_.A({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],g_.prototype,"icon",void 0);_.x([_.A({computed:"computeIcon_(data.secondaryIcon)"}),_.B("design:type",String)],g_.prototype,"secondaryIcon",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.B("design:type",String)],g_.prototype,"clarifyStyle",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.B("design:type",String)],g_.prototype,"backgroundStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],g_.prototype,"roundContainer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],g_.prototype,"amsterdamEnabled",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],g_.prototype,"dataChanged",null);
g_=_.x([_.Q({is:"ytd-clarification-renderer",disableElementRegistration:!0})],g_);
_.C(g_,"ytd-clarification-renderer",function(){if(CkU!==void 0)return CkU;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return CkU=K},{mode:1});var x1S;var L_l;var OU=function(){var K=_.q.apply(this,arguments)||this;K.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");return K};
_.O(OU,_.q);_.V=OU.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.V.computeIcon=function(K){return K?"yt-icons:"+K.toLowerCase():null};
_.V.computeUseContacts=function(K){return!!K.contacts&&K.contacts.length>0};
_.V.computePhoneContact=function(K){var d,f;return(d=K.contacts)==null?void 0:(f=d.find(function(H){var D;return(H==null?void 0:(D=H.icon)==null?void 0:D.iconType)==="PHONE"}))==null?void 0:f.actionText};
_.V.computeSmsContact=function(K){var d,f;return(d=K.contacts)==null?void 0:(f=d.find(function(H){var D;return(H==null?void 0:(D=H.icon)==null?void 0:D.iconType)==="SMS"}))==null?void 0:f.actionText};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],OU.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],OU.prototype,"amsterdamEnabled",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.B("design:type",Boolean)],OU.prototype,"useContacts",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.B("design:type",String)],OU.prototype,"phoneContact",void 0);OU=_.x([_.Q({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],OU);
_.C(OU,"ytd-single-action-emergency-support-renderer",function(){if(L_l!==void 0)return L_l;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return L_l=K},{mode:1});_.Na("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var NR=function(){var K=_.q.apply(this,arguments)||this;K.roundedContainer=!0;K.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");return K};
_.O(NR,_.q);NR.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"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],NR.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NR.prototype,"roundedContainer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],NR.prototype,"amsterdamEnabled",void 0);
NR=_.x([_.Q({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],NR);
_.C(NR,"ytd-emergency-onebox-renderer",function(){if(x1S!==void 0)return x1S;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return x1S=K},{mode:1});var Bqw;_.Na("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var YR=function(){return _.q.apply(this,arguments)||this};
_.O(YR,_.q);YR.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],YR.prototype,"data",void 0);YR=_.x([_.Q({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],YR);
_.C(YR,"ytd-exploratory-results-renderer",function(){if(Bqw!==void 0)return Bqw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Bqw=K},{mode:1});var JOZ;_.Na("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var tq=function(){var K=_.q.apply(this,arguments)||this;K.messageData=null;return K};
_.O(tq,_.q);_.V=tq.prototype;_.V.onServiceRequestCompleted=function(K,d){K=d.actions||[];d=0;for(var f=K.length;d<f;d++){var H=K[d],D=void 0,S=void 0;if((D=_.P(H,_.Ia))==null?0:(S=D.item)==null?0:S.messageRenderer)this.messageData=_.P(H,_.Ia).item.messageRenderer}};
_.V.dataChanged=function(){var K=this.data;this.hostElement.hidden=!1;_.pU(this.hostElement,"is-channel",K&&!K.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.V.computeThumbnailWidth=function(K){return K?126:56};
_.V.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.V.onSubmitTap=function(){var K=this.data,d=this.selectedResponseIndex;K!==void 0&&d!==void 0&&(K=K.responses[d],K.responseData&&_.eq().resolve(_.pQ).resolveCommand(K.responseData,{form:{element:this.hostElement}}))};
_.V.onDismissTap=function(){this.hostElement.hidden=!0;var K=this.data;K!==void 0&&K.dismissalEndpoint&&_.eq().resolve(_.pQ).resolveCommand(K.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.updateSelectedResponseIndexFromBinding=function(K){this.selectedResponseIndex=K.detail.value};
tq.prototype.onSelectedResponseIndexChange=tq.prototype.onSelectedResponseIndexChange;tq.prototype.dataChanged=tq.prototype.dataChanged;tq.prototype.onServiceRequestCompleted=tq.prototype.onServiceRequestCompleted;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],tq.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],tq.prototype,"messageData",void 0);
_.x([_.A(),_.B("design:type",Number)],tq.prototype,"selectedResponseIndex",void 0);_.x([_.n8("#submit-button"),_.B("design:type",HTMLButtonElement)],tq.prototype,"submitButton",void 0);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],tq.prototype,"onServiceRequestCompleted",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tq.prototype,"dataChanged",null);
_.x([_.SP("selectedResponseIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tq.prototype,"onSelectedResponseIndexChange",null);tq=_.x([_.Q({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],tq);
_.C(tq,"ytd-feedback-elicitation-single-question-renderer",function(){if(JOZ!==void 0)return JOZ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return JOZ=K},{mode:1});var sI5;var oP=function(){return _.q.apply(this,arguments)||this};
_.O(oP,_.q);oP.prototype.computeThumbnailWidth=function(K){return K?602:428};
oP.prototype.updateWideFromBinding=function(K){this.wide=K.detail.value};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],oP.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],oP.prototype,"wide",void 0);oP=_.x([_.Q({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],oP);
_.C(oP,"ytd-newspaper-hero-video-renderer",function(){if(sI5!==void 0)return sI5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return sI5=K},{mode:1});var kPw;var $R=function(){return _.q.apply(this,arguments)||this};
_.O($R,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$R.prototype,"rendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$R.prototype,"data",void 0);$R=_.x([_.Q({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],$R);
_.C($R,"ytd-newspaper-mini-video-renderer",function(){if(kPw!==void 0)return kPw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return kPw=K},{mode:1});var wVK;_.Na("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var EU=function(){return _.q.apply(this,arguments)||this};
_.O(EU,_.q);EU.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"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],EU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],EU.prototype,"data",void 0);EU=_.x([_.Q({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],EU);
_.C(EU,"ytd-newspaper-renderer",function(){if(wVK!==void 0)return wVK;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return wVK=K},{mode:1});var ZCZ;_.Na("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var hq=function(){var K=_.q.apply(this,arguments)||this;K.isSegment=!1;K.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};K.nextContinuation={continuationType:"playlistVideoListContinuation"};return K};
_.O(hq,_.q);_.V=hq.prototype;_.V.attached=function(){_.eq();var K;(K=_.eq().resolve(_.Zd(_.j5)))!=null&&(K.playlistVideoListElement=this.hostElement)};
_.V.detached=function(){var K;(K=_.eq().resolve(_.Zd(_.j5)))!=null&&(K.playlistVideoListElement=void 0);K=_.eq().resolve(_.Zd(_.Z2));_.M("web_enable_voting_animation")&&K&&(K.parentElem=void 0,K.videos=[],K.continuationsPresent=!1,K.showRefreshPill=!1)};
_.V.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"}}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V.dataChanged=function(){var K=_.eq().resolve(_.Zd(_.Z2));if(_.M("web_enable_voting_animation")&&this.data&&K){var d=_.E(this.hostElement).querySelector("#contents");d&&(K.parentElem=d);K.addVideos(this.data.contents)}_.evJ(this.ytReorderableBehavior)};
_.V.onRendererstamperFinished=function(){this.canReorder&&_.pbB(this.ytReorderableBehavior,_.E(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.V.onPlaylistReloading=function(){this.isReloading=!0};
_.V.onUpdateSetVideoId=function(K){if(K.detail&&this.data&&this.data.contents){var d=K.detail;K=this.data.contents.findIndex(function(D){var S;return((S=D.playlistVideoRenderer)==null?void 0:S.videoId)===d.videoId});
if(!(K<0)&&d.setVideoId&&(this.set("data.contents."+K+".playlistVideoRenderer.setVideoId",d.setVideoId),_.M("web_enable_voting_animation"))){var f;if(K=_.P((f=this.data.contents[K].playlistVideoRenderer)==null?void 0:f.engagementBar,_.uFz)){var H;(H=K.actions)==null||H.forEach(function(D){if(D=_.P(D,_.a1p))D.itemId=d.setVideoId})}(f=_.eq().resolve(_.Zd(_.Z2)))&&Nqz(f,d.videoId,d.setVideoId)}}};
_.V.computeContentsClass=function(K){return K?"reloading":""};
_.V.computeIsSortable=function(K,d){return K&&d>0&&!this.isSegment&&!_.M("shorts_in_playlists_web")};
_.V.computeIsEditable=function(K){return K};
_.V.computeCanReorder=function(K){return K};
_.V.handlePlaylistRemoveVideosAction=function(K){if(this.get("playlistRemoveVideosAction.setVideoIds",K)&&this.data&&this.data.contents){K=_.P(K,_.L44).setVideoIds;for(var d=this.data.contents.length-1;d>=0;){var f=this.data.contents[d].playlistVideoRenderer;f&&f.setVideoId&&K.includes(f.setVideoId)&&this.splice("data.contents",d,1);d--}_.ev(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.V.updateIndices=function(){if(this.data&&this.data.contents)for(var K=0;K<this.data.contents.length;K++)this.set("data.contents."+K+".playlistVideoRenderer.index",_.rB(String(K+1)))};
_.V.handleDrop=function(K){K=K.currDragItem;var d=_.CB(K.parentNode.childNodes,K),f=this.data.contents.splice(Number(_.qQ(K.data.index))-1,1)[0];this.data.contents.splice(d,0,f);d=d?this.get("contents."+(d-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();K=this.buildReorderServiceEndpoint(K.data.setVideoId,d);this.ytComponentBehavior.resolveCommand(K)};
_.V.buildReorderServiceEndpoint=function(K,d){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",K),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",d),this.data.onReorderEndpoint):null};
_.V.handleUpdatePlaylistAction=function(K){var d;(K=_.P((d=_.P(K,_.B7k))==null?void 0:d.updatedRenderer,_.iff))&&this.canReorder!==K.canReorder&&this.set("data.canReorder",K.canReorder);K&&K.contents&&(this.set("data.contents",K.contents),this.isReloading=!1);K&&K.continuations&&this.set("data.continuations",K.continuations)};
_.V.handleAddRendererToItemSectionAction=function(K){var d,f=(d=_.P(K,EEK))==null?void 0:d.renderer,H;f&&((H=_.P(K,EEK))==null?void 0:H.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,f),K=_.eq().resolve(_.Zd(_.Z2)),_.M("web_enable_voting_animation")&&K&&(f&&(d=_.c85(f))&&K.recommendedVideos.push({itemId:d,videoId:_.I1N(f),voteCount:_.UwS(f),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.V.isVotingEnabledOnPlaylist=function(K){if(!K)return!1;K=_.y(K);for(K=K.next();!K.done;K=K.next()){var d=void 0;return!!_.P((d=K.value.playlistVideoRenderer)==null?void 0:d.engagementBar,_.uFz)}return!1};
_.V.onAppendContinuationItemsActionFinished=function(){var K;this.isVotingEnabledOnPlaylist((K=this.data)==null?void 0:K.contents)&&(this.updateIndices(),K=_.eq().resolve(_.Zd(_.Z2)),_.M("web_enable_voting_animation")&&K&&this.data&&K.addVideos(this.data.contents))};
_.V.updateVideoData=function(K){if(K.detail&&this.data&&this.data.contents){var d=K.detail;K=d.toIdx;var f=d.itemId,H=d.newVoteCount,D=d.voteStatus;d=d.hideItem;var S,n,u=(S=this.data)==null?void 0:(n=S.contents)==null?void 0:n.findIndex(function(z){return _.c85(z)===f});
if(!(u<0)){S=this.data.contents[u];var a;if((a=S.playlistVideoRenderer)==null?0:a.voteCount)S.playlistVideoRenderer.voteCount=H;var R;if(a=_.P((R=S.playlistVideoRenderer)==null?void 0:R.engagementBar,_.uFz)){var F;(F=a.actions)==null||F.forEach(function(z){(z=_.P(z,_.a1p))&&z.initialState&&(z.initialState.votes=H,z.initialState.status=D)})}this.data.contents.splice(u,1);
d||this.data.contents.splice(K,0,S);this.updateIndices()}}};
hq.prototype.updateVideoData=hq.prototype.updateVideoData;hq.prototype.onAppendContinuationItemsActionFinished=hq.prototype.onAppendContinuationItemsActionFinished;hq.prototype.onUpdateSetVideoId=hq.prototype.onUpdateSetVideoId;hq.prototype.onPlaylistReloading=hq.prototype.onPlaylistReloading;hq.prototype.onRendererstamperFinished=hq.prototype.onRendererstamperFinished;hq.prototype.dataChanged=hq.prototype.dataChanged;
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],hq.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.Ws.YtNextContinuationBehavior),_.B("design:type",Object)],hq.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.l(_.K_8),_.B("design:type",Object)],hq.prototype,"ytReorderableBehavior",void 0);_.x([_.l(_.lY),_.B("design:type",Object)],hq.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],hq.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],hq.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],hq.prototype,"isReloading",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],hq.prototype,"isSegment",void 0);_.x([_.A({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.B("design:type",Boolean)],hq.prototype,"isSortable",void 0);_.x([_.A({computed:"computeIsEditable(data.isEditable)"}),_.B("design:type",Boolean)],hq.prototype,"isEditable",void 0);_.x([_.A({computed:"computeCanReorder(data.canReorder)"}),_.B("design:type",Boolean)],hq.prototype,"canReorder",void 0);
_.x([_.A({value:101}),_.B("design:type",Number)],hq.prototype,"scrollMargin",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hq.prototype,"dataChanged",null);_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hq.prototype,"onRendererstamperFinished",null);
_.x([_.VV("yt-playlist-reloading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hq.prototype,"onPlaylistReloading",null);_.x([_.VV("yt-update-set-video-id"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],hq.prototype,"onUpdateSetVideoId",null);
_.x([_.VV("yt-append-continuation-items-action-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hq.prototype,"onAppendContinuationItemsActionFinished",null);_.x([_.VV("yt-update-video-data-voting-animation"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],hq.prototype,"updateVideoData",null);hq=_.x([_.Q({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],hq);
_.C(hq,"ytd-playlist-video-list-renderer",function(){if(ZCZ!==void 0)return ZCZ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ZCZ=K},{mode:_.p8("kevlar_poly_si_batch_j047")?1:2});var efP;var bP=function(){return _.q.apply(this,arguments)||this};
_.O(bP,_.q);bP.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"}}}}};
bP.prototype.onTextWrapperTap=function(K){var d=this.data&&this.data.navigationEndpoint;d&&!_.qa(_.qn(K),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Zp(this.hostElement,"yt-navigate",{endpoint:d})};
bP.prototype.dataChanged=function(){var K=this.get("data.offerButton.buttonRenderer.serviceEndpoint");K&&K.commandMetadata&&_.P(K.commandMetadata,_.vr)&&_.P(K.commandMetadata,_.vr).fireAutomatically&&_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}})};
bP.prototype.dataChanged=bP.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.AV),_.B("design:type",Object)],bP.prototype,"ytdLockupBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],bP.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],bP.prototype,"useBiggerThumbs",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.fy("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],bP.prototype,"biggerThumbsStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],bP.prototype,"leftAligned",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bP.prototype,"dataChanged",null);bP=_.x([_.Q({disableElementRegistration:!0,is:"ytd-movie-renderer"})],bP);
_.C(bP,"ytd-movie-renderer",function(){if(efP!==void 0)return efP;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return efP=K},{mode:1});var pV5;var mE=function(){var K=_.q.apply(this,arguments)||this;K.rounded=!0;K.pageAttachedTo=void 0;K.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return K};
_.O(mE,_.q);mE.prototype.attached=function(){this.pageAttachedTo=_.eq().resolve(_.jC).getCurrentPage();_.Zp(this.hostElement,"yt-player-attached",this.player)};
mE.prototype.detached=function(){var K;if((K=this.pageAttachedTo)==null?0:K.hostElement)_.Zp(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
mE.prototype.dataChanged=function(){var K;if((K=this.data)==null?0:K.videoId)K={video_id:this.data.videoId,autoplay:!0},!_.M("miniplayer_stop_channel_video_autoplay_killswitch")&&_.eq().resolve(_.$b).isMiniplayerActive()&&(K.pause_at_start=!0,K.autoplay=!1),this.player.loadVideoWithPlayerVars(K)};
mE.prototype.handleSignalActionPausePlayer=function(){_.LK().pause()};
mE.prototype.dataChanged=mE.prototype.dataChanged;_.x([_.A(),_.B("design:type",Object)],mE.prototype,"data",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],mE.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],mE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],mE.prototype,"rounded",void 0);_.x([_.n8("#player"),_.B("design:type",Object)],mE.prototype,"player",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mE.prototype,"dataChanged",null);mE=_.x([_.Q({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],mE);
_.C(mE,"ytd-channel-video-player-renderer",function(){if(pV5!==void 0)return pV5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return pV5=K},{mode:1});var KJU;var dPU;var f3Z;var lP=function(){var K=_.q.apply(this,arguments)||this;K.playing=!1;K.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.DL(K);K.active=!1;return K};
_.O(lP,_.q);_.V=lP.prototype;_.V.detached=function(){this.stop()};
_.V.play=function(){var K=this,d,f,H,D,S;return _.c(function(n){if(n.nextAddress==1)return K.active=!0,d=K.get("data.inlinePlaybackEndpoint.watchEndpoint"),f=d.videoId||K.data.videoId,H=d.startTimeSeconds||0,D=d.playerParams||null,_.M("kevlar_player_update_killswitch")?_.I(n,K.playerEl.update({args:{video_id:f,startSeconds:H,player_params:D}}),2):(K.playerEl.loadVideoWithPlayerVars({video_id:f,startSeconds:H,player_params:D,autoplay:!0}),n.jumpTo(2));if(n.nextAddress!=4)return _.I(n,K.playerEl.getPlayerPromise(),
4);S=n.yieldResult;S.unloadModule("annotations_module");S.addEventListener("onStateChange",function(u){K.onPlayerStateChange(u)});
_.iQ(n)})};
_.V.onPlayerStateChange=function(K){if(this.active)switch(this.playing=K===1,K){case 1:_.Zp(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Zp(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.V.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.V.resize=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,K.playerEl.getPlayerPromise(),2);d=f.yieldResult;d.setSize(NaN,NaN);_.iQ(f)})};
_.x([_.A(),_.B("design:type",Object)],lP.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],lP.prototype,"playing",void 0);_.x([_.A(),_.B("design:type",Object)],lP.prototype,"playerId",void 0);_.x([_.n8("#player"),_.B("design:type",Object)],lP.prototype,"playerEl",void 0);lP=_.x([_.Q({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],lP);
_.C(lP,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(f3Z!==void 0)return f3Z;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return f3Z=K},{mode:1});var HSz;var DP7;var WD=function(){var K=_.q.apply(this,arguments)||this;K.width=0;return K};
_.O(WD,_.q);_.V=WD.prototype;_.V.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Dm(this,this.onEnded));this.mp4El.addEventListener("error",_.Dm(this,this.onError))};
_.V.detached=function(){this.videoEl.removeEventListener("ended",_.Dm(this,this.onEnded));this.mp4El.removeEventListener("error",_.Dm(this,this.onError))};
_.V.play=function(){var K=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var d=this.videoEl.play();d?d.then(function(){K.handleVideoStartPlaying()}).catch(function(){_.Zp(K.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Zp(this.hostElement,"yt-video-thumbnail-not-playing")};
_.V.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.V.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.V.dataChanged=function(){var K;if((K=this.data)==null?0:K.thumbnailPlaceholder)K=_.kA(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+K+")";this.stop();this.autoplay&&this.play()};
_.V.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.V.onEnded=function(){this.stop();_.Zp(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.V.onError=function(){_.Zp(this.hostElement,"yt-video-thumbnail-error")};
_.V.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.V.getVideoThumbnail=function(K){if(K&&K.length)return K[0]};
WD.prototype.dataChanged=WD.prototype.dataChanged;_.x([_.A(),_.B("design:type",Object)],WD.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],WD.prototype,"animatePlaceholderOnEntrance",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],WD.prototype,"autoplay",void 0);_.x([_.A({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.B("design:type",Object)],WD.prototype,"videoThumbnail",void 0);
_.x([_.A(),_.B("design:type",Boolean)],WD.prototype,"loop",void 0);_.x([_.A(),_.B("design:type",Boolean)],WD.prototype,"isVideoPlaying",void 0);_.x([_.A(),_.B("design:type",Object)],WD.prototype,"width",void 0);_.x([_.n8("#mp4"),_.B("design:type",HTMLElement)],WD.prototype,"mp4El",void 0);_.x([_.n8("#placeholder"),_.B("design:type",HTMLElement)],WD.prototype,"placeholderEl",void 0);_.x([_.n8("#video"),_.B("design:type",HTMLVideoElement)],WD.prototype,"videoEl",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WD.prototype,"dataChanged",null);WD=_.x([_.N7({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],WD);
_.C(WD,"yt-video-as-thumbnail-details",function(){if(DP7===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;HSz===void 0&&(HSz=document.createElement("template"));var H=HSz;f.call(d,H.content.cloneNode(!0),K.content.firstChild);DP7=K}K=DP7;return K},{mode:2});var Gc=function(){var K=_.q.apply(this,arguments)||this;K.disableGridStateAware=!1;K.animationEnabled=_.M("enable_web_ketchup_hero_animation");K.transitioningOut=!1;K.narrow=!1;K.narrower=!1;K.isCarouselInFeed=!1;K.videoTimeoutJobId=0;K.panelTimeoutJobId=0;K.panelTimeoutJobStartMs=0;K.actionMap={"yt-window-resized":"onWindowResized"};return K};
_.O(Gc,_.q);_.V=Gc.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.V.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var K;this.player&&((K=this.data)==null?0:K.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.V.attached=function(){this.onWindowResized()};
_.V.detached=function(){this.clearTimeouts()};
_.V.onWindowResized=function(){this.updateSize()};
_.V.computePanelLayout=function(K){return K&&K.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.V.playVideo=function(){var K;this.video&&((K=this.data)==null?0:K.videoThumbnail)&&this.video.play();var d;this.player&&((d=this.data)==null?0:d.inlinePlaybackRenderer)&&this.player.play()};
_.V.stopVideo=function(){var K;this.video&&((K=this.data)==null?0:K.videoThumbnail)&&this.video.stop();var d;this.player&&((d=this.data)==null?0:d.inlinePlaybackRenderer)&&this.player.stop()};
_.V.transitionOut=function(){var K=this;this.transitioningOut=!0;return new Promise(function(d){var f=function(){_.E(K.hostElement).querySelector("#action-button").removeEventListener("animationend",f);_.oc.cancelJob(H);d();K.transitioningOut=!1};
var H=_.va(_.oc,f,1E3);_.E(K.hostElement).querySelector("#action-button").addEventListener("animationend",f);K.player&&(K.player.playing=!1)})};
_.V.computeMetadataOrder=function(K){return K&&K.metadataOrder&&K.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?K.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.V.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.V.computeAvatarSize=function(K){return K&&K.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.V.onContentClick=function(K){if(!_.qa(_.qn(K),this.hostElement,["A".toString(),"BUTTON".toString()])){var d;if((d=this.data)==null?0:d.navigationEndpoint){var f;this.componentBehavior.resolveCommand((f=this.data)==null?void 0:f.navigationEndpoint)}}};
_.V.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.V.setBackgroundImage=function(K){if(K=this.getBackgroundImageUrl(K))_.E(this.hostElement).querySelector("#hero").style.backgroundImage="url("+K+")"};
_.V.setScrimLayer=function(K){var d=this.getScrimLayerColorStops(K);K=((K==null?void 0:K.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(K=180);_.mD("HTML_DIR")==="rtl"&&(K=-K);d&&(_.E(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+K+"deg, "+d+")")};
_.V.isNarrower=function(){return this.hostElement.clientWidth<Gc.NARROW_VERSION_SIZE};
_.V.getScrimLayerColorStops=function(){var K,d=(K=this.data)==null?void 0:K.scrimColorValues;if(!d)return null;if(d.length===1)return K=_.hG(d[0]),K+" 0%, "+K+" 100%";if(d.length===3){var f=[0,72,98];return d.map(function(H,D){return _.hG(H)+" "+f[D]+"%"}).join(",")}return null};
_.V.getBackgroundImageUrl=function(K){return K&&K.largeFormFactorBackgroundThumbnail?_.kA((K.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||K.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.V.onPlaying=function(){this.startVideoTimeout()};
_.V.onEnded=function(){this.rotate()};
_.V.startPanelTimeout=function(){var K=this;if(!this.panelTimeoutJobId){var d=this.get("data.minPanelDisplayDurationMs");d&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.va(_.oc,function(){K.rotate()},d))}};
_.V.startVideoTimeout=function(){var K=this;if(!this.videoTimeoutJobId){_.oc.cancelJob(this.panelTimeoutJobId);var d=Date.now()-this.panelTimeoutJobStartMs;d=Math.max(0,this.get("data.minPanelDisplayDurationMs")-d);d=Math.max(this.get("data.minVideoPlayDurationMs")||0,d);this.videoTimeoutJobId=_.va(_.oc,function(){K.rotate()},d)}};
_.V.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.oc.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.oc.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.V.rotate=function(){this.clearTimeouts();_.Zp(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.x$.Object.defineProperties(Gc.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#video")}}});
_.x$.Object.defineProperties(Gc,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Gc.prototype.onEnded=Gc.prototype.onEnded;Gc.prototype.onPlaying=Gc.prototype.onPlaying;Gc.prototype.dataChanged=Gc.prototype.dataChanged;_.x([_.l(_.bO),_.B("design:type",Object)],Gc.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Gc.prototype,"componentBehavior",void 0);_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Gc.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.l(_.lr8),_.B("design:type",Object)],Gc.prototype,"ytBooleanLogicBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Gc.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Gc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gc.prototype,"disableGridStateAware",void 0);_.x([_.A(),_.B("design:type",Object)],Gc.prototype,"data",void 0);_.x([_.A({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.B("design:type",String)],Gc.prototype,"panelLayout",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gc.prototype,"animationEnabled",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gc.prototype,"transitioningOut",void 0);
_.x([_.A({computed:"computeMetadataOrder(data)"}),_.B("design:type",Boolean)],Gc.prototype,"metadataOrder",void 0);_.x([_.A({computed:"computeByline(data)"}),_.B("design:type",Object)],Gc.prototype,"byline",void 0);_.x([_.A({computed:"computeAvatarSize(data)"}),_.B("design:type",Number)],Gc.prototype,"avatarSize",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gc.prototype,"narrow",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gc.prototype,"narrower",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gc.prototype,"layoutStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gc.prototype,"isCarouselInFeed",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gc.prototype,"dataChanged",null);_.x([_.VV("yt-default-promo-panel-renderer-playing"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gc.prototype,"onPlaying",null);
_.x([_.VV("yt-default-promo-panel-renderer-ended"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gc.prototype,"onEnded",null);Gc=_.x([_.Q({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Gc);
_.C(Gc,"ytd-default-promo-panel-renderer",function(){if(dPU!==void 0)return dPU;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return dPU=K},{mode:1});_.Na("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Aq=function(){var K=_.q.apply(this,arguments)||this;K.narrower=!1;K.dotMenuVisible=!1;K.paginationThumbnailsVisible=!1;K.active=!0;K.disableGridStateAware=!1;K.actionMap={"yt-window-resized":"onWindowResized"};return K};
_.O(Aq,_.q);_.V=Aq.prototype;_.V.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]]"}}}}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.Dm(this,this.onPageTypeChange));this.currentPageSubtype=_.ym(location.pathname);this.onWindowResized()};
_.V.detached=function(){this.jobId&&_.oc.cancelJob(this.jobId);this.updateSizeJobId&&_.oc.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Dm(this,this.onPageTypeChange))};
_.V.onPageTypeChange=function(K){this.active=K.detail.newPageSubtype===this.currentPageSubtype};
_.V.onWindowResized=function(){this.updateSize()};
_.V.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.V.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.V.setCarouselItem=function(K){K>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.oc.cancelJob(this.jobId);var d=this.getCurrentPanelElement();d&&d.stopVideo();this.currentItemIndex=K%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(d||(d=this.getCurrentPanelElement()),d.playVideo()):this.startRotationJob()};
_.V.scrollThumbnails=function(K){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var d=this.getCurrentPaginationElement();if(d){var f=_.E(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?f.style.transform="translateX(0)":(d=d.offsetWidth+8,f.style.transform="translateX(-"+d*(K-Math.ceil(Math.floor(this.overlay.offsetWidth/d)/2)+1)+"px)")}}};
_.V.onDataChanged=function(){var K=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.FN(_.oc,function(){K.getCurrentPanelElement().updateSize();K.updateSize()}))};
_.V.getCurrentPanelElement=function(){return _.E(_.E(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.V.getCurrentPaginationElement=function(){return _.E(_.E(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.V.getNavigationClass=function(K,d){return K===d?"selected":""};
_.V.getNavigationDurationStyle=function(K){return"animation-duration:"+(this.get("data.carouselItems."+K+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.V.onNavigationTap=function(K){var d=this,f=K.model.index;f!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){d.setCarouselItem(f)}),this.autorotateActive=!1)};
_.V.onVideoThumbnailEnded=function(){var K=this;if(this.shouldRotate()){var d=this.getCurrentPaginationElement();d&&(d.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){d.classList.remove("finished");K.setNextCarouselItem()}))}};
_.V.onVideoThumbnailError=function(){this.startRotationJob()};
_.V.onVideoNotPlaying=function(){this.startRotationJob()};
_.V.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.V.startRotationJob=function(){var K=this;_.oc.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.oc.addLowPriorityJob(function(){K.getCurrentPanelElement().transitionOut().then(function(){K.setNextCarouselItem()})},this.rotationTimeout))};
_.V.computeDotMenuVisible=function(K,d){return!!K&&!!K.carouselItems&&K.carouselItems.length>1&&!K.paginationThumbnails||!!d};
_.V.computePaginationThumbnailsVisible=function(K,d){var f,H;return((H=K==null?void 0:(f=K.paginationThumbnails)==null?void 0:f.length)!=null?H:0)>1&&!d};
_.V.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.V.computePaginatorAlignment=function(K){return(K==null?void 0:K.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.V.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.V.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.V.isNarrower=function(K){return(K!=null?K:0)<Gc.NARROW_VERSION_SIZE};
Aq.prototype.activeChanged=Aq.prototype.activeChanged;Aq.prototype.onVideoNotPlaying=Aq.prototype.onVideoNotPlaying;Aq.prototype.onVideoThumbnailError=Aq.prototype.onVideoThumbnailError;Aq.prototype.onVideoThumbnailEnded=Aq.prototype.onVideoThumbnailEnded;Aq.prototype.onDataChanged=Aq.prototype.onDataChanged;_.x([_.l(_.bO),_.B("design:type",Object)],Aq.prototype,"ytdGridStateAwareBehavior",void 0);
_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Aq.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Aq.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Aq.prototype,"currentItem",void 0);
_.x([_.A(),_.B("design:type",Number)],Aq.prototype,"currentItemIndex",void 0);_.x([_.A(),_.B("design:type",Number)],Aq.prototype,"rotationTimeout",void 0);_.x([_.A(),_.B("design:type",Number)],Aq.prototype,"loopCount",void 0);_.x([_.A({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.B("design:type",String)],Aq.prototype,"paginatorAlignment",void 0);_.x([_.A(),_.B("design:type",Number)],Aq.prototype,"jobId",void 0);
_.x([_.A(),_.B("design:type",Number)],Aq.prototype,"updateSizeJobId",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Aq.prototype,"isCarouselInFeed",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Aq.prototype,"narrower",void 0);_.x([_.A({computed:"computeDotMenuVisible(data, narrower)"}),_.B("design:type",Object)],Aq.prototype,"dotMenuVisible",void 0);
_.x([_.A({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.B("design:type",Object)],Aq.prototype,"paginationThumbnailsVisible",void 0);_.x([_.A({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.B("design:type",String)],Aq.prototype,"layoutType",void 0);_.x([_.A({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],Aq.prototype,"autorotateActive",void 0);_.x([_.A(),_.B("design:type",Object)],Aq.prototype,"active",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Aq.prototype,"disableGridStateAware",void 0);_.x([_.n8("#overlay"),_.B("design:type",HTMLElement)],Aq.prototype,"overlay",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Aq.prototype,"onDataChanged",null);
_.x([_.VV("yt-video-thumbnail-ended"),_.VV("yt-default-promo-panel-renderer-rotate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Aq.prototype,"onVideoThumbnailEnded",null);_.x([_.VV("yt-video-thumbnail-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Aq.prototype,"onVideoThumbnailError",null);
_.x([_.VV("yt-video-thumbnail-not-playing"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Aq.prototype,"onVideoNotPlaying",null);_.x([_.an("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Aq.prototype,"activeChanged",null);Aq=_.x([_.Q({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Aq);
_.C(Aq,"ytd-carousel-item-renderer",function(){if(KJU!==void 0)return KJU;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return KJU=K},{mode:2});var VMU;var Se7;var ywt;var nu7;var Tc=function(){var K=_.q.apply(this,arguments)||this;K.originalQuery=null;K.originalEndpoint=null;return K};
_.O(Tc,_.q);Tc.prototype.computeShowOriginalQueryWithoutEndpoint_=function(K,d){return!(!K||d)};
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Tc.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Tc.prototype,"correctedText",void 0);_.x([_.A(),_.B("design:type",Object)],Tc.prototype,"correctedQuery",void 0);_.x([_.A(),_.B("design:type",Object)],Tc.prototype,"correctedEndpoint",void 0);_.x([_.A(),_.B("design:type",Object)],Tc.prototype,"originalText",void 0);_.x([_.A(),_.B("design:type",Object)],Tc.prototype,"originalQuery",void 0);
_.x([_.A(),_.B("design:type",Object)],Tc.prototype,"originalEndpoint",void 0);_.x([_.A({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.B("design:type",Boolean)],Tc.prototype,"showOriginalQueryWithoutEndpoint",void 0);Tc=_.x([_.N7({is:"yt-search-query-correction",disableElementRegistration:!0})],Tc);
_.C(Tc,"yt-search-query-correction",function(){if(nu7===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;ywt===void 0&&(ywt=document.createElement("template"));var H=ywt;f.call(d,H.content.cloneNode(!0),K.content.firstChild);nu7=K}K=nu7;return K},{mode:2});_.Na("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var r_=function(){return _.q.apply(this,arguments)||this};
_.O(r_,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],r_.prototype,"data",void 0);r_=_.x([_.N7({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],r_);
_.C(r_,"yt-did-you-mean-renderer",function(){if(Se7===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;VMU===void 0&&(VMU=document.createElement("template"));var H=VMU;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Se7=K}K=Se7;return K},{mode:2});var iSP;var cwK;_.Na("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var qR=function(){return _.q.apply(this,arguments)||this};
_.O(qR,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qR.prototype,"data",void 0);qR=_.x([_.N7({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],qR);
_.C(qR,"yt-including-results-for-renderer",function(){if(cwK===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;iSP===void 0&&(iSP=document.createElement("template"));var H=iSP;f.call(d,H.content.cloneNode(!0),K.content.firstChild);cwK=K}K=cwK;return K},{mode:2});var uLw;var a3Z;_.Na("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var QT=function(){return _.q.apply(this,arguments)||this};
_.O(QT,_.q);QT.prototype.computeExtraClasses_=function(K,d){var f="";K&&(f+=" "+K.toLowerCase().replace(/_/g,"-"));d&&(f+=" "+d.toLowerCase().replace(/_/g,"-"));return f};
QT.prototype.computeUrlImg_=function(){var K=this.data;K.image&&(_.E(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.kA(K.image.thumbnails,Number.MAX_VALUE)+")")};
QT.prototype.computeUrlImg_=QT.prototype.computeUrlImg_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],QT.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QT.prototype,"computeUrlImg_",null);QT=_.x([_.N7({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],QT);
_.C(QT,"yt-music-pass-feature-info-renderer",function(){if(a3Z===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;uLw===void 0&&(uLw=document.createElement("template"));var H=uLw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);a3Z=K}K=a3Z;return K},{mode:2});var I3w;var UPK;_.Na("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var j6=function(){return _.q.apply(this,arguments)||this};
_.O(j6,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],j6.prototype,"data",void 0);j6=_.x([_.N7({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],j6);
_.C(j6,"yt-no-results-found-showing-results-for-renderer",function(){if(UPK===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;I3w===void 0&&(I3w=document.createElement("template"));var H=I3w;f.call(d,H.content.cloneNode(!0),K.content.firstChild);UPK=K}K=UPK;return K},{mode:2});var RYZ;var FJZ;_.Na("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Cq=function(){return _.q.apply(this,arguments)||this};
_.O(Cq,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Cq.prototype,"data",void 0);Cq=_.x([_.N7({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Cq);
_.C(Cq,"yt-results-without-quotes-renderer",function(){if(FJZ===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;RYZ===void 0&&(RYZ=document.createElement("template"));var H=RYZ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);FJZ=K}K=FJZ;return K},{mode:2});var zYP;var X1l;_.Na("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var xR=function(){return _.q.apply(this,arguments)||this};
_.O(xR,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],xR.prototype,"data",void 0);xR=_.x([_.N7({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],xR);
_.C(xR,"yt-search-no-results-renderer",function(){if(X1l===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;zYP===void 0&&(zYP=document.createElement("template"));var H=zYP;f.call(d,H.content.cloneNode(!0),K.content.firstChild);X1l=K}K=X1l;return K},{mode:2});var vu5;var MMw;_.Na("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Lq=function(){return _.q.apply(this,arguments)||this};
_.O(Lq,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Lq.prototype,"data",void 0);Lq=_.x([_.N7({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Lq);
_.C(Lq,"yt-showing-results-for-renderer",function(){if(MMw===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;vu5===void 0&&(vu5=document.createElement("template"));var H=vu5;f.call(d,H.content.cloneNode(!0),K.content.firstChild);MMw=K}K=MMw;return K},{mode:2});var PrP;var guz;var OSZ;var N$Z;var BD=function(){var K=_.q.apply(this,arguments)||this;K.answerExpanded=!1;return K};
_.O(BD,_.q);BD.prototype.toggleAnswer_=function(K){var d=_.Qm(K);d&&d.classList.contains("yt-simple-endpoint")||(K.preventDefault(),K.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
BD.prototype.toggleAnswer_=BD.prototype.toggleAnswer_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],BD.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],BD.prototype,"answerExpanded",void 0);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],BD.prototype,"toggleAnswer_",null);
BD=_.x([_.N7({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],BD);
_.C(BD,"yt-generic-faq-question-renderer",function(){if(N$Z===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;OSZ===void 0&&(OSZ=document.createElement("template"));var H=OSZ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);N$Z=K}K=N$Z;return K},{mode:2});_.Na("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Jq=function(){return _.q.apply(this,arguments)||this};
_.O(Jq,_.q);Jq.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Jq.prototype,"data",void 0);Jq=_.x([_.N7({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Jq);
_.C(Jq,"yt-faq-section-renderer",function(){if(guz===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;PrP===void 0&&(PrP=document.createElement("template"));var H=PrP;f.call(d,H.content.cloneNode(!0),K.content.firstChild);guz=K}K=guz;return K},{mode:2});var YeP;var tMi;_.Na("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var sU=function(){return _.q.apply(this,arguments)||this};
_.O(sU,_.q);
sU.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"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],sU.prototype,"data",void 0);sU=_.x([_.N7({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],sU);
_.C(sU,"yt-offer-item-expanded-renderer",function(){if(tMi===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;YeP===void 0&&(YeP=document.createElement("template"));var H=YeP;f.call(d,H.content.cloneNode(!0),K.content.firstChild);tMi=K}K=tMi;return K},{mode:2});var ouw;var $Pw;_.Na("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var kR=function(){return _.q.apply(this,arguments)||this};
_.O(kR,_.q);
kR.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"}}}}};
kR.prototype.computeFullWidthMode=function(K){return!(!K||!K.fullWidthMode)};
kR.prototype.computeBorderlessMode=function(K){return!(!K||!K.borderlessMode)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],kR.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.B("design:type",Boolean)],kR.prototype,"fullWidthMode",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.B("design:type",Boolean)],kR.prototype,"borderlessMode",void 0);kR=_.x([_.N7({is:"yt-offer-item-renderer",disableElementRegistration:!0})],kR);
_.C(kR,"yt-offer-item-renderer",function(){if($Pw===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;ouw===void 0&&(ouw=document.createElement("template"));var H=ouw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);$Pw=K}K=$Pw;return K},{mode:2});var EuE;var hYK;_.Na("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var w_=function(){return _.q.apply(this,arguments)||this};
_.O(w_,_.q);w_.prototype.computeAriaLevel_=function(K){return this.getLevelID_(K)};
w_.prototype.getLevelID_=function(K){return(K=K.match(/[0-9]+$/))&&K.length==1?K[0]:"1"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],w_.prototype,"data",void 0);_.x([_.A({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.B("design:type",String)],w_.prototype,"ariaLevel",void 0);_.x([_.A({value:"heading",reflectToAttribute:!0}),_.B("design:type",String)],w_.prototype,"role",void 0);
_.x([_.A({value:-1,reflectToAttribute:!0}),_.B("design:type",Number)],w_.prototype,"tabindex",void 0);w_=_.x([_.N7({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],w_);
_.C(w_,"yt-subscription-product-header-renderer",function(){if(hYK===void 0){var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;EuE===void 0&&(EuE=document.createElement("template"));var H=EuE;f.call(d,H.content.cloneNode(!0),K.content.firstChild);hYK=K}K=hYK;return K},{mode:2});var bSt;var mPw;_.Na("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Zr=function(){return _.q.apply(this,arguments)||this};
_.O(Zr,_.q);Zr.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:_.YP("menuRenderer"),events:!0}}};
Zr.prototype.onStampFinished_=function(){_.E(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Zr.prototype.onStampFinished_=Zr.prototype.onStampFinished_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Zr.prototype,"data",void 0);_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zr.prototype,"onStampFinished_",null);
Zr=_.x([_.N7({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Zr);
_.C(Zr,"yt-subscription-product-renderer",function(){if(mPw===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;bSt===void 0&&(bSt=document.createElement("template"));var H=bSt;f.call(d,H.content.cloneNode(!0),K.content.firstChild);mPw=K}K=mPw;return K},{mode:2});var l3w;var WJt;_.Na("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var e6=function(){return _.q.apply(this,arguments)||this};
_.O(e6,_.q);e6.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
e6.prototype.imageScrimColorValuesChanged_=function(){var K,d=(K=this.data)==null?void 0:K.imageScrimColorValues;_.E(this.hostElement).querySelector("#scrim").style.backgroundColor=d?_.hG(d[0]):"transparent"};
e6.prototype.imageScrimColorValuesChanged_=e6.prototype.imageScrimColorValuesChanged_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],e6.prototype,"data",void 0);
_.x([_.SP("data.imageScrimColorValues"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e6.prototype,"imageScrimColorValuesChanged_",null);e6=_.x([_.N7({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],e6);
_.C(e6,"yt-subscription-product-upsell-offer-renderer",function(){if(WJt===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;l3w===void 0&&(l3w=document.createElement("template"));var H=l3w;f.call(d,H.content.cloneNode(!0),K.content.firstChild);WJt=K}K=WJt;return K},{mode:2});var GBy;var AwS;var T$y;var rwz;var qel;var QNz;var pq=function(){return _.q.apply(this,arguments)||this};
_.O(pq,_.q);pq.prototype.onYtServiceRequestError_=function(K){_.B9(this.hostElement,K.detail.error.message)};
pq.prototype.onYtServiceRequestError_=pq.prototype.onYtServiceRequestError_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],pq.prototype,"data",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],pq.prototype,"collapsible",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],pq.prototype,"isManageRed",void 0);
_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],pq.prototype,"onYtServiceRequestError_",null);pq=_.x([_.N7({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],pq);
_.C(pq,"yt-single-ypc-offer-renderer",function(){if(QNz===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;qel===void 0&&(qel=document.createElement("template"));var H=qel;f.call(d,H.content.cloneNode(!0),K.content.firstChild);QNz=K}K=QNz;return K},{mode:2});var KV=function(){return _.q.apply(this,arguments)||this};
_.O(KV,_.q);KV.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],KV.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],KV.prototype,"isManageRed",void 0);KV=_.x([_.N7({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],KV);
_.C(KV,"yt-single-ypc-offer-list-renderer",function(){if(rwz===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;T$y===void 0&&(T$y=document.createElement("template"));var H=T$y;f.call(d,H.content.cloneNode(!0),K.content.firstChild);rwz=K}K=rwz;return K},{mode:2});var jNc;var Cry;_.Na("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var dg=function(){return _.q.apply(this,arguments)||this};
_.O(dg,_.q);dg.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],dg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],dg.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],dg.prototype,"isManageRed",void 0);dg=_.x([_.N7({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],dg);
_.C(dg,"yt-ypc-offers-list-renderer",function(){if(Cry===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;jNc===void 0&&(jNc=document.createElement("template"));var H=jNc;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Cry=K}K=Cry;return K},{mode:2});_.Na("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var fV=function(){return _.q.apply(this,arguments)||this};
_.O(fV,_.q);
fV.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}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],fV.prototype,"data",void 0);fV=_.x([_.N7({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],fV);
_.C(fV,"yt-unlimited-manage-subscription-page-renderer",function(){if(AwS===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;GBy===void 0&&(GBy=document.createElement("template"));var H=GBy;f.call(d,H.content.cloneNode(!0),K.content.firstChild);AwS=K}K=AwS;return K},{mode:2});var xPw;var LJ5;var Hm=function(){return _.q.apply(this,arguments)||this};
_.O(Hm,_.q);_.V=Hm.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.V.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.onKeypress_=function(K){K.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.V.handleHeaderTap_=function(K){K.preventDefault();K.stopPropagation();this.expandOffers_()};
_.V.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.V.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Hm.prototype.dataChanged_=Hm.prototype.dataChanged_;_.x([_.l(_.u4),_.B("design:type",Object)],Hm.prototype,"ironA11yKeysBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Hm.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hm.prototype,"offersVisible_",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hm.prototype,"dataChanged_",null);Hm=_.x([_.N7({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Hm);
_.C(Hm,"yt-collapsible-ypc-offer-renderer",function(){if(LJ5===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;xPw===void 0&&(xPw=document.createElement("template"));var H=xPw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);LJ5=K}K=LJ5;return K},{mode:2});var B$U;var Jwl;_.Na("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var DZ=function(){return _.q.apply(this,arguments)||this};
_.O(DZ,_.q);_.V=DZ.prototype;_.V.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.V.dataChanged_=function(){if(this.data.backgroundImage){var K=_.kA(this.data.backgroundImage.thumbnails,screen.width),d=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=d?"linear-gradient(180deg, "+d+"), url("+K+")":"url("+K+")";this.data.gtmId&&_.F8(this.data.gtmId,_.mD("GL",""))}};
_.V.onYtServiceRequestError_=function(K){_.B9(this.hostElement,K.detail.error.message)};
_.V.getScrimLayerColorStops_=function(){var K,d,f=(K=this.data.unlimitedHeaderV2Data)==null?void 0:(d=K.unlimitedHeaderV2Data)==null?void 0:d.scrimLayerColors;if(!f)return null;var H=100/f.length;return f.map(function(D,S){S*=H;return _.hG(D)+" "+S+"%"}).join(",")};
_.V.computeLogoWithPadding=function(K){var d,f,H;return(K=(d=K.unlimitedLogoImage)==null?void 0:(f=d.thumbnails)==null?void 0:(H=f[0])==null?void 0:H.height)&&K%31===0?!0:!1};
DZ.prototype.onYtServiceRequestError_=DZ.prototype.onYtServiceRequestError_;DZ.prototype.dataChanged_=DZ.prototype.dataChanged_;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],DZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.x([_.A({computed:"computeLogoWithPadding(data)"}),_.B("design:type",Boolean)],DZ.prototype,"logoWithPadding",void 0);
_.x([_.A(),_.B("design:type",Object)],DZ.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DZ.prototype,"dataChanged_",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DZ.prototype,"onYtServiceRequestError_",null);DZ=_.x([_.N7({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],DZ);
_.C(DZ,"yt-unlimited-page-header-renderer",function(){if(Jwl===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;B$U===void 0&&(B$U=document.createElement("template"));var H=B$U;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Jwl=K}K=Jwl;return K},{mode:2});var sNK;var kBi;_.Na("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Vf=function(){return _.q.apply(this,arguments)||this};
_.O(Vf,_.q);Vf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Vf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Vf.prototype,"data",void 0);Vf=_.x([_.N7({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Vf);
_.C(Vf,"yt-unlimited-user-notification-renderer",function(){if(kBi===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;sNK===void 0&&(sNK=document.createElement("template"));var H=sNK;f.call(d,H.content.cloneNode(!0),K.content.firstChild);kBi=K}K=kBi;return K},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Sb7=_.C8(function(K){var d=_.jP(K,{numberOfChips:5}).numberOfChips;return _.U("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.U(_.v_,{each:function(){return Array(d==null?void 0:d())}},function(){return _.U("div",{class:"ytGhostChipShelfChip"})}))},"dg");_.yR7=_.C8(function(K){var d=_.ft(),f=_.eq().resolve(_.rl);_.Nk(function(){requestAnimationFrame(function(){var D;(D=d.lottieEl)==null||D.addEventListener("DOMLoaded",function(){var S;(S=K.onLottieLoaded)==null||S.call(K)})})});
var H={};return _.U("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var D;return((D=K.data)==null?void 0:D.call(K).targetId)||""}},_.U(_.yC,{className:_.SC((H.ytChatLoadingViewModelRtl=f==="rtl",H)),
animationName:"YOUCHAT_LOADER",data:function(){var D;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((D=K.data)==null?void 0:D.call(K).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:d}))},"eg");
}catch(e){_._DumpException(e)}
try{
var $D7,EGz,hXZ,bMw,mDi,lat,Wcw,ky,we,Aaw,T5c,raS,Qo5,kYc,ZX,soy,xDK,JaP,B5t,LcE,C$Z,wg5,ZMc,eXK,pgz,ej,KHt,deU,fwc,y5E,Sot,VlS,H7c,Dey,nQZ,i7z,c5K,uyl,awt,FHZ,vQz,Mli,PQw,O77,Yoz,oQw,$eS,EQ5,hcy,meS,lwK,WHt,GfS,A5U,TyZ,r5U,QEZ,LHw,xew,jEE,ByP,CQz,J5y,Z7S,wFK,sEK,kfZ,df,ecc,pFP,dmi,Dmz,cAS,uTP,a4c,I4t,UmU,RTi,F2K,zTc,XRt,vhy,PW7,ghK,O0P,GY7,yA7;
_.JU=function(K){var d=new _.X4("Error accessing DB");return _.h4O().then(function(f){return new Promise(function(H,D){try{var S=f.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(K);S.onsuccess=function(){var n=S.result;H(n?n.value:null)};
S.onerror=function(){d.params={key:K,source:"onerror"};D(d)}}catch(n){d.params={key:K,
thrownError:String(n)},D(d)}})},function(){return null})};
_.oGZ=function(K,d){var f=_.FbS(d);f!=="javascript:"&&f!=="data:"&&K.setAttribute("href",d)};
$D7=function(K,d){return _.DR(K.entities,"flowStateEntity",d)};
EGz=function(K){return(K=K.getOption("captions","track"))?!!K.displayName:!1};
hXZ=function(K,d){d=d.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(d==null||!d.length)return K;var f=d.filter(function(n){return n});
d=K.filter(function(n){return n.languageCode.startsWith("en")});
f=_.y(f);for(var H=f.next();!H.done;H=f.next())if(H=H.value,d.length){var D=d[0],S=Object.assign({},D);D.languageCode!==H.languageCode&&(S.displayName=D.languageName+" >> "+H.languageName,S.translationLanguage=H,K.push(S))}return K};
bMw=function(K){var d,f=(d=K.getOption("captions","tracklist",{includeAsr:!0}))!=null?d:[];return f=hXZ(f,K)};
mDi=function(K){return _.rz(K,function(d){return d.languageCode==="en"})};
lat=function(K){var d=sg;if(EGz(K))K.setOption("captions","stickyLoading",{}),K.setOption("captions","track",{});else{var f=_.rz(bMw(K),function(H){return H.displayName===d});
K.setOption("captions","track",f)}};
Wcw=function(K){if(!K)return 0;var d=K.getPresentingPlayerType(),f=K.getVideoData();return f&&f.isLive?(K=K.getProgressState(d),K.seekableEnd-K.seekableStart):K.getDuration(d)};
ky=function(K,d){_.Nv(d,K,function(){return GY7[d]},function(f){GY7[d]=f;
if(!_.M("mweb_player_ve_show_ks")){var H=_.te(0);H&&f&&_.Gu(H,f)}})};
we=function(K){(K=GY7[K])&&_.dx(_.cv(),K)};
Aaw=function(K,d){for(var f=_.y(Object.keys(K)),H=f.next();!H.done;H=f.next())if(H=H.value,K[H]!==d[H])return!1;return!0};
T5c=function(){return document.getElementById("player-control-overlay")};
raS=function(K){K!==-1&&!_.M("player_controls_log_creation_killswitch")&&T5c()&&(_.YJ("pcu_cs",K),_.YJ("pcu_ce"))};
Qo5=function(K){return _.U("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(K.subscribeButton?[K.subscribeButton,K.channelAccess]:[K.channelAccess]).map(function(d){return _.U("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.U("div",{class:"yt-profile-identity-info-view-model-wiz--button"},q2z(d)))}))};
_.joP=function(K){var d=K.data;K=K.hideDivider;var f={};f=(f["yt-profile-identity-info-view-model-wiz__frame"]=!0,f["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!d.channelBanner,f);f={class:_.nK(f)};var H,D={imageBannerViewModel:{image:(H=d.channelBanner)==null?void 0:H.image,style:"IMAGE_BANNER_STYLE_INSET"}};H=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},d.channelBanner?_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
q2z(D,{imageBannerViewModel:{isPositionRelative:!0}})):null);D=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},q2z(d.avatar));var S;var n=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},d.channelDisplayName),d.verifiedOrOacBadge?_.U("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.U(_.jV,{data:{thumbnails:[{url:(S=d.verifiedOrOacBadge)==null?void 0:S.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);S=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},n,q2z(d.threeDotMenu));n=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.U("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.U("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},d.channelHandle),d.channelPronouns&&d.channelHandle?_.U("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.U("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},d.channelPronouns)),_.U("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.U("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},d.leftOfBulletInfo),d.leftOfBulletInfo&&d.rightOfBulletInfo?_.U("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.U("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},d.rightOfBulletInfo)));S=_.U("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},S,n);return _.U("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.U("div",f,H,_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},D,S),d.channelDescription?_.U("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},d.channelDescription):
null,Qo5(d),K?null:_.U("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
kYc=function(K,d){var f=_.QV(K,{}),H=C$Z("top",d),D=C$Z("bottom",d),S=C$Z("left",d),n=C$Z("right",d);return _.Im({top:function(){return ZX(f().position,H)},
bottom:function(){return ZX(f().position,D)},
left:function(){return ZX(f().position,S)},
right:function(){return ZX(f().position,n)},
position:function(){return ZX(f().positionType,xDK)},
height:function(){return ZX(f().height,ej)},
width:function(){return ZX(f().width,ej)},
"min-width":function(){return ZX(f().minWidth,ej)},
"min-height":function(){return ZX(f().minHeight,ej)},
"max-width":function(){return ZX(f().maxWidth,ej)},
"max-height":function(){return ZX(f().maxHeight,ej)},
"aspect-ratio":function(){return ZX(f().aspectRatio,String)},
"margin-top":function(){return ZX(f().margin,H)},
"margin-bottom":function(){return ZX(f().margin,D)},
"margin-left":function(){return ZX(f().margin,S)},
"margin-right":function(){return ZX(f().margin,n)},
"padding-top":function(){return ZX(f().padding,H)},
"padding-bottom":function(){return ZX(f().padding,D)},
"padding-left":function(){return ZX(f().padding,S)},
"padding-right":function(){return ZX(f().padding,n)},
"flex-direction":function(){return ZX(f().flexDirection,LcE)},
"justify-content":function(){return ZX(f().justifyContent,B5t)},
"align-items":function(){return ZX(f().alignItems,JaP)},
"flex-grow":function(){return ZX(f().flexGrow,String)},
"flex-shrink":function(){return ZX(f().flexShrink,String)},
"flex-basis":function(){return ZX(f().flexBasis,ej)},
"align-self":function(){return ZX(f().alignSelf,JaP)},
"flex-wrap":function(){return ZX(f().flexWrap,soy)},
"align-content":function(){return ZX(f().alignContent,JaP)}})};
ZX=function(K,d){return K!==void 0?d(K):void 0};
soy=function(K){switch(K){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
xDK=function(K){switch(K){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
JaP=function(K){switch(K){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"}};
B5t=function(K){switch(K){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"}};
LcE=function(K){switch(K){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"}};
C$Z=function(K,d){var f=d==="rtl";switch(K){case "top":var H=wg5;break;case "bottom":H=ZMc;break;case "left":H=eXK;break;default:H=pgz}return function(D){return ZX(H(D,f),ej)}};
wg5=function(K){var d=K.top;var f=K.vertical;K=K.all;var H;return(H=d!=null?d:f)!=null?H:K};
ZMc=function(K){var d=K.bottom;var f=K.vertical;K=K.all;var H;return(H=d!=null?d:f)!=null?H:K};
eXK=function(K,d){var f=K.left;var H=K.end;var D=K.start;var S=K.horizontal;K=K.all;var n,u;return(u=(n=f!=null?f:d?H:D)!=null?n:S)!=null?u:K};
pgz=function(K,d){var f=K.right;var H=K.end;var D=K.start;var S=K.horizontal;K=K.all;var n,u;return(u=(n=f!=null?f:d?D:H)!=null?n:S)!=null?u:K};
ej=function(K){var d=K.value;switch(K.unit){case "YPC_DIMENSION_UNIT_POINT":return d+"px";case "YPC_DIMENSION_UNIT_FRACTION":return d+"%";default:return""+d}};
KHt=function(K){switch(K){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"}};
deU=function(K){var d=K!=null?K:{};K=d.fontRole;var f=d.fontSize;d=d.fontWeight;if(K!==null&&f!==null)switch(K){case "YPC_FONT_ROLE_DISPLAY":switch(f){case "YPC_FONT_SIZE_L":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(f){case "YPC_FONT_SIZE_L":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return d===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(f){case "YPC_FONT_SIZE_XL":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
fwc=function(K,d){return _.DR(K.entities,"pdpStateEntity",d)};
y5E=function(K,d,f){function H(R){return Object.values(R).map(function(F){var z=F.productId;F=F.pricingOptionIndex;return H7c(D(z).pricingOptions,F).pricingOptionId})}
function D(R){return u().get(R)}
function S(R){R=H(R);f(R)}
var n=Dey([K,d],function(R,F){var z=R==null?void 0:R.selectedPricingOptions;R={};var v=!0;if(z&&F.length)for(var g=_.y(F),N=g.next();!N.done;N=g.next()){N=N.value;var h=VlS(N.pricingOptions,function(m){a:{m=m.pricingOptionId;for(var T=_.y(z),r=T.next();!r.done;r=T.next())if(r.value===m){m=!0;break a}m=!1}return m});
h>=0&&(v=!1,R[N.groupId]={productId:N.productId,pricingOptionIndex:h})}v&&F.length&&(R[F[0].groupId]={productId:F[0].productId,pricingOptionIndex:0});return R}),u=Dey([d],function(R){return new Map(R.map(function(F){return[F.productId,
F]}))}),a=Dey([d],function(R){var F=new Map;
R=_.y(R);for(var z=R.next();!z.done;z=R.next()){var v=z.value;z=v.groupId;var g=v.productId;v=_.y(Sot(v.pricingOptions));for(var N=v.next();!N.done;N=v.next()){var h=_.y(N.value);N=h.next().value;h=h.next().value;F.set(h.pricingOptionId,{groupId:z,productId:g,index:N,pricingOption:h})}}return F});
return{getProductById:D,isProductSelected:function(R){var F=D(R);if(!F)return!1;var z;return((z=n()[F.groupId])==null?void 0:z.productId)===R},
getSelectedPricingOptions:function(){return Object.values(n()).map(function(R){var F=R.productId;R=R.pricingOptionIndex;return H7c(D(F).pricingOptions,R)})},
getSelectedProductByGroupId:function(R){var F;return(R=(F=n()[R])==null?void 0:F.productId)?D(R):void 0},
onProductSelected:function(R){var F=D(R);if(F){var z=n(),v;if(((v=z[F.groupId])==null?void 0:v.productId)!==R){var g,N;v=(N=(g=z[F.groupId])==null?void 0:g.pricingOptionIndex)!=null?N:0;g=0;for(N=F.pricingOptions[Symbol.iterator]();!N.next().done;)++g;g<=v&&(v=0);g={};S(Object.assign({},z,(g[F.groupId]={productId:R,pricingOptionIndex:v},g)))}}},
onPricingOptionSelected:function(R){var F=a().get(R);if(F){R=F.groupId;var z=F.productId;F=F.index;var v=n(),g,N;if(((g=v[R])==null?void 0:g.productId)!==z||((N=v[R])==null?void 0:N.pricingOptionIndex)!==F){var h,m;g=(m=(h=v[R])==null?void 0:h.pricingGroupAttributes)!=null?m:[];h={};S(Object.assign({},v,(h[R]={productId:z,pricingOptionIndex:F,pricingGroupAttributes:g},h)))}}},
onClearGroupSelected:function(R){var F=n();F[R]&&(F=Object.fromEntries(Object.entries(F).filter(function(z){return _.y(z).next().value!==R})),S(F))}}};
Sot=function(K){return function f(){var H,D,S,n,u;return _.LBp(f,function(a){switch(a.nextAddress){case 1:_.Sl(a,2),H=0,D=_.y(K),S=D.next();case 4:if(S.done){a.jumpTo(2);break}n=S.value;u=_.BpB;return _.I(a,[H++,n],7);case 7:u(a.yieldResult);S=D.next();a.jumpTo(4);break;case 2:_.Vu(a),_.yu(a,0)}})}()};
VlS=function(K,d){K=_.y(Sot(K));for(var f=K.next();!f.done;f=K.next()){var H=_.y(f.value);f=H.next().value;H=H.next().value;if(d(H))return f}return-1};
H7c=function(K,d){K=_.y(Sot(K));for(var f=K.next();!f.done;f=K.next()){var H=_.y(f.value);f=H.next().value;H=H.next().value;if(f===d)return H}};
Dey=function(K,d){var f,H;return function(){for(var D=K.map(function(n){return n()}),S=0;S<D.length;S++)if(!f||D[S]!==f[S]){f=D;
H=d.apply(null,_.Me(D));break}return H}};
nQZ=function(K){var d;return!!(K.productId&&K.groupId&&((d=K.pricingOptions)==null?0:d.length)&&K.pricingOptions.every(function(f){return f.pricingOptionId}))};
i7z=function(K,d,f){return y5E(K,Dey([d],function(H){return H.filter(nQZ)}),f)};
c5K=function(K,d){return d.length===0?[K]:[K.slice(0,d[0]),K.slice(d[0])].filter(function(f){return f.length>0})};
uyl=function(K){switch(K){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""}};
awt=function(K,d,f,H){H=Object.assign({},H);_.OP(H,p$,{selectedOptionId:K,primaryButtonOverride:f});_.TC().dispatch(_.nt("flowStateEntity",d,H))};
_.RcP=function(){if(!IwU){var K=_.y(_.cC(new Map,void 0,"UJImUe"));IwU=K.next().value;Uec=K.next().value}return IwU};
FHZ=function(K){if(K)return _.RcP()().get(K)};
_.zc5=function(K,d){if(K&&d){var f=_.RcP();f().set(K,d);K=f();Uec(new Map(K))}};
_.XFE=function(K){return{onSubmit:function(){var d;(d=FHZ(K()))==null||d.onSubmit()},
isValid:function(){var d=FHZ(K());return d?d.isValid():!0},
isSubmitting:function(){var d,f;return!!((d=FHZ(K()))==null?0:(f=d.isSubmitting)==null?0:f.call(d))}}};
vQz=function(K,d){return _.DR(K.entities,"contextNoteFeedEntityPayload",d)};
Mli=function(K){K.style.height="auto";K.style.height=K.scrollHeight+"px"};
PQw=function(K){return[K.syncStep,K.asyncStep].filter(function(d){return d!==void 0})};
O77=function(K){var d,f,H;if(K=(d=K.structuredContextNoteFormSchema)==null?void 0:(f=d.fieldSchemas)==null?void 0:(H=f.noteBody)==null?void 0:H.validationSchema)for(d=_.y(PQw(K)),f=d.next();!f.done;f=d.next()){f=f.value.rules;if(!f)break;f=_.y(f);for(f=f.next();!f.done;f=f.next())return _.P(f.value,_.gQZ)}};
Yoz=function(K){if(K){K=_.y(PQw(K));for(var d=K.next();!d.done;d=K.next()){d=d.value.rules;if(!d)break;d=_.y(d);for(d=d.next();!d.done;d=d.next())return _.P(d.value,Ny7)}}};
oQw=function(K){if(K){K=_.y(PQw(K));for(var d=K.next();!d.done;d=K.next()){d=d.value.rules;if(!d)break;d=_.y(d);for(d=d.next();!d.done;d=d.next())return _.P(d.value,tl7)}}};
$eS=function(K){K=/^https?:\/\//.test(K)?K:"http://"+K;try{var d=_.QX(K)}catch(f){return!1}if(d.toString()!==K)return!1;K=d.JSC$8037_domain_.split(".");return K.length>1&&K.every(function(f){return!!f})};
EQ5=function(K,d,f,H){var D;H=(D=H.structuredContextNoteData)==null?void 0:D.createCommentEndpoint;if(D=_.P(H,_.wEB))return D.commentText=_.rB(K),D.videoPositionMention=d,D.sources=f,H};
hcy=function(K){return K==null?void 0:K.stringValue};
meS=function(K,d,f){K=K.map(function(H,D){return{listItemViewModel:{title:H.title,subtitle:H.subtitle,leadingImage:H.leadingImage,trailingImage:D===d?b7l:void 0,rendererContext:{commandContext:{onTap:H.onTap}}}}});
return Object.assign({},f&&{header:{panelHeaderViewModel:{title:f}}},{content:{listViewModel:{listItems:K}}})};
lwK=function(K,d){if(K&&d)switch(d){case "SELECTION_TYPE_BOOL":return K.boolValue;case "SELECTION_TYPE_INT":return K.intValue;case "SELECTION_TYPE_STRING":return K.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return K.privacyStatusValue}};
WHt=function(K){var d;K=(d=K.options)==null?void 0:d.findIndex(function(f){return f.isSelected});
return K===void 0?-1:K};
GfS=function(K,d,f){var H=function(){return K().label},D={},S=_.SC("ytDropdownViewModelLabel",(D.ytDropdownViewModelLabelError=d,D));
return _.U(_.X,{cond:function(){return K().label&&!(f()===-1&&K().label&&!K().placeholderText)},
then:function(){return _.U("div",{class:S},_.U(_.ji,{text:H}))}})};
A5U=function(K,d){var f={};f=_.SC("ytDropdownViewModelTitle",(f.ytDropdownViewModelTitlePlaceholder=function(){return d()===-1},f));
return _.U("div",{class:f},_.U(_.ji,{text:function(){var H=K();var D=d();if(D===-1)H=H.placeholderText?H.placeholderText:H.label;else{var S,n;H=(S=H.options)==null?void 0:(n=S[D])==null?void 0:n.title}return H}}))};
TyZ=function(K,d){var f=function(){return K().hint};
return _.U(_.dF,null,_.U(_.X,{cond:function(){return f()&&!d()},
then:function(){return _.U("div",{class:_.SC("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.U(_.ji,{text:f,className:"ytDropdownViewModelSupportText"}))}}),_.U(_.X,{cond:d,
then:function(){return _.U("div",{id:"dropdown-view-model-error",role:"alert",class:_.SC("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.U(_.U5,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.U(_.ji,{text:d,className:"ytDropdownViewModelSupportText"}))}}))};
r5U=function(K,d){var f=_.eq().resolve(_.NE2);_.tR(function(){var H=K().id;H&&f!=null&&f.dropdownMap.set(H,d)})};
QEZ=function(K){K=_.P(K.scheduleButton,qow);K=_.P(K==null?void 0:K.primaryButton,_.XN);K=_.P(K==null?void 0:K.onTap,_.oG);var d,f,H=((f=_.P(K,_.DE))==null?void 0:f.commands)||[K];f=_.y(H);for(K=f.next();!K.done&&!(d=_.P(K.value,_.st9));K=f.next());var D;d=(D=d)==null?void 0:D.createBroadcastRequest;if(!d)throw Error("Gj");return d};
LHw=function(K,d,f){f=f===void 0?{}:f;var H,D;return _.c(function(S){if(H=jEE(d))return S.return(H);(D=CQz(K,d,f))&&xew(d,D);return S.return(D)})};
xew=function(K,d){var f=ByP(K);f&&d.then(function(H){_.eq().resolve(_.dJ).put(f,new _.fv({innertubeResponse:H}))})};
jEE=function(K){if(K=ByP(K)){var d=_.eq().resolve(_.dJ);if(d.has(K))return d.get(K).then(function(f){return f==null?void 0:_.ed(f)})}return null};
ByP=function(K){var d=_.P(K.endpoint,_.qu);if(d!=null&&d.videoId)return d={videoId:d.videoId},_.M("web_imp_player_mute_params")&&(d.mutedAtStart=K.startPlaybackInMutedState),_.rL("inline_playback",d)};
CQz=function(K,d,f){K=_.Wp(K,d.endpoint,J5y(d,f)).then(function(H){return H});
return Promise.resolve(K)};
J5y=function(K,d){d=_.M("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!K.startPlaybackInMutedState},d):Object.assign({},{vis:5,autonav:"1"},d);var f;d={contentPlaybackContext:_.F7(d,(f=_.P(K.endpoint.commandMetadata,_.B0))==null?void 0:f.url,window.location.href)};_.M("web_imp_player_mute_params")&&(d.overrideMutedAtStart=!K.startPlaybackInMutedState);return d};
Z7S=function(K,d){var f=window.MutationObserver;f&&(KP=new f(function(H,D){H=_.y(H);for(var S=H.next();!S.done;S=H.next()){S=S.value;var n;if(n=S.type==="childList"&&S.target)a:{n=K;S=sEK(S.target);n=sEK(n);for(var u=null,a=0;a<S.length;a++)if(n.includes(S[a])){if(a===0){n=!1;break a}u=S[a];break}u?(S=kfZ(S,u),n=kfZ(n,u),n=S<n):n=!1}if(n){d();D.disconnect();break}}}),(f=wFK())&&KP.observe(f,{childList:!0,
subtree:!0}))};
wFK=function(){var K=document.getElementsByTagName("ytd-rich-grid-renderer");if(K.length>0)return K[0];K=document.getElementsByTagName("ytd-section-list-renderer");return K.length>0?K[0]:null};
sEK=function(K){for(var d=[];K;)d.push(K),K=K.parentElement;return d};
kfZ=function(K,d){var f=Array.from(d.children);d=K.indexOf(d);return d>0?f.indexOf(K[d-1]):-1};
df=function(K,d,f){f=f===void 0?{}:f;return _.iB(K,f,d)};
ecc=function(K){switch(K){case "MUSIC":return!0;default:return!1}};
pFP=function(K){return K==null?void 0:K.filter(function(d){return d.premiereTrailerBadgeRenderer})};
dmi=function(K){var d,f=K==null?void 0:(d=K.find(function(z){return z.thumbnailOverlayTimeStatusRenderer}))==null?void 0:d.thumbnailOverlayTimeStatusRenderer,H,D;
if((f==null?0:(H=f.icon)==null?0:H.iconType)&&ecc(f==null?void 0:(D=f.icon)==null?void 0:D.iconType)){var S;return{icon:f==null?void 0:(S=f.icon)==null?void 0:S.iconType}}var n,u;var a=(K=(n=K==null?void 0:(a=K.find(function(z){return z.thumbnailBottomOverlayViewModel}))==null?void 0:a.thumbnailBottomOverlayViewModel)==null?void 0:(u=n.badges)==null?void 0:u.find(function(z){var v,g;
return((v=_.P(z,K2S))==null?void 0:(g=v.inlinePlaybackBadgeData)==null?void 0:g.replicateAsTimestamp)===!0}))?_.P(K,K2S):void 0;
if(a==null?0:a.icon){var R,F;if((a=(R=_.cYJ(a==null?void 0:a.icon))==null?void 0:(F=R.clientResource)==null?void 0:F.imageName)&&ecc(a))return{icon:a}}return{}};
Dmz=function(K,d){var f="",H="";switch(K){case -1:case 0:f=d?"VOLUME_OFF":"VOLUME_OFF_FILLED";H=f4w;break;case 1:f=d?"VOLUME_UP_OUTLINE":"VOLUME_UP";H=H0P;break;default:_.nE(K)}return{iconName:f,ariaLabel:H}};
cAS=function(K,d){var f=V4l,H=_.y(_.cC(S7c(new yA7(function(){},f,d)),void 0,"PAnyd")),D=H.next().value,S=H.next().value,n=new yA7(function(u){S(u)},f,d);
_.ol(function(){Promise.resolve().then(function(){var u,a=(u=K())!=null?u:{};n.playerControlsData=a;_.M("player_controls_skip_double_signal_old")&&(n.lastSeenPlayerApi=_.o1(a.playerApi));_.M("player_controls_skip_double_signal_old")||(n.lastSeenPlayerApi=_.o1(a.playerApi));nhS(n)});
_.$F(function(){i0y(n)})});
_.$F(function(){i0y(n)});
return function(){return D()}};
uTP=function(K){return function(d){var f=K(),H={playerState:d};if(d===1){var D;(D=f.playerApi)==null||D.loadModule("captions")}if(d===0){var S;(S=f.playerApi)==null||S.unloadModule("captions")}(d!==-1||_.M("web_imp_controls_set_player_state_killswitch"))&&f.setState(H)}};
a4c=function(K){return function(d){K().setState({playbackRate:d})}};
I4t=function(K){return function(d){var f=K(),H=f.playerApi,D=H==null?void 0:H.getVideoData(),S=(D==null?void 0:D.isLive)||!1;D=D==null?void 0:D.video_id;S={videoDuration:Wcw(H||void 0),isLive:S,videoId:D};S.videoId!==f.videoId&&(S=Object.assign({},_.ZkS(H),S));if(d==null?0:d.playertype)S.playerType=d.playertype;if(H){S.captionsAvailable=!!H.getOptions("captions");d=S;var n;D=(n=H.getStoryboardLevel(H.getNumberOfStoryboardLevels()-1))==null?void 0:n.intervalMs;d.storyboardInterval=D?D/1E3:void 0;S.captionsAvailable&&
(S.captionsEnabled=EGz(H))}S.volumeMuted=!(H==null||!H.isMuted());f.setState(S)}};
UmU=function(K){return function(d){var f=K(),H=f.playerApi;if(H){var D=H.getPresentingPlayerType();d={playedTime:d||0,percentLoaded:H.getVideoLoadedFraction(),playerType:D};f.playerState===0&&(d.playedTime=f.videoDuration);f.isLive&&(D=H.getProgressState(D),d.playedTime-=D.seekableStart,d.videoDuration=Wcw(H));if(f.playerType===1)H=!1;else{var S;if((S=f.uxConfig)==null?0:S.showCuedOverlay){var n;H=!((n=f.playerApi)==null?0:n.getPlayerStateObject(f.playerType).isDomPaused)}else H=!0}H&&delete d.playedTime;
f.setState(d)}}};
RTi=function(K){return function(){var d=K(),f,H,D,S={volume:(D=(f=d.playerApi)==null?void 0:f.getVolume())!=null?D:0,volumeMuted:!((H=d.playerApi)==null||!H.isMuted())};d.setState(S)}};
F2K=function(K){return function(){var d=K(),f=d.playerApi;if(f){var H={captionsAvailable:!!f.getOptions("captions")};H.captionsAvailable&&(H.captionsEnabled=EGz(f));d.setState(H)}}};
zTc=function(K){return function(){var d=K();if(d.playerApi&&!(d.volumeMuted||d.controlsVisible&&d.isProbablyAScreenreaderUser)){d.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var f;(f=document.querySelector(".player-control-play-pause-icon"))==null||f.focus()}}};
XRt=function(K){return{appApi:Object.assign({},_.xEY(),{showCaptionsToggleToast:function(d){var f,H;(H=(f=K()).showCaptionsToggleToast)==null||H.call(f,d)},
openInMiniplayer:function(){var d,f;(f=(d=K()).openInMiniplayer)==null||f.call(d)}})}};
vhy=function(K,d){var f,H,D;return!!(K==null?0:(f=K.playerResponse)==null?0:(H=f.playerConfig)==null?0:(D=H.inlinePlaybackConfig)==null?0:D.showScrubbingControls)&&!(d==null?0:d.hideScrubbingControls)};
_.M4t=function(K){var d=!K.miniplayerIsActive;return[5,2,0].includes(K.miniplayerPlaybackState)||d};
PW7={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};ghK=function(K,d){var f,H,D,S,n;_.c(function(u){if(!d.length)return u.return([]);f=[];H=_.y(d);for(D=H.next();!D.done;D=H.next())S=D.value,(n=K.resolveIcon(S))&&!K.iconCache[n.url]&&f.push(_.TVH(K,n).then(function(){}).catch(function(){}));
return u.return(Promise.all(f))})};
O0P=function(K,d){var f=[];d=(new Set(d)).values();d=_.y(d);for(var H=d.next();!H.done;H=d.next()){H=H.value;for(var D=_.y(Object.values(PW7)),S=D.next();!S.done;S=D.next())f.push({iconName:H,iconStyle:S.value})}ghK(K.iconManager,f)};
_.N0t=function(K,d,f){var H=f!=null?f:K.iconsToFetch;H!=null&&H.length?d!==void 0&&d>=0?_.va(_.oc,function(){O0P(K,H)},d):O0P(K,H):Promise.resolve()};
GY7={};
yA7=function(K,d,f){var H=this;this.renderFn=K;this.listeners=d;this.context=f;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var D;this.lastSeenPlayerApi=_.o1((D=this.playerControlsData)==null?void 0:D.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.ZkS(),void 0);_.M("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){S7c(H).setState({playerState:-1});H.resetRecentlyNavigatedJobId&&_.oc.cancelJob(H.resetRecentlyNavigatedJobId);H.recentlyNavigated=
!0;H.resetRecentlyNavigatedJobId=_.oc.addJob(function(){H.recentlyNavigated=!1},8,1E4)})};
yA7.prototype.setState=function(K){if(!_.M("mweb_player_skip_no_op_state_changes")||!Aaw(K,this.state))if(this.state=Object.assign({},this.state,K),!_.M("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)K=-1,_.M("player_controls_log_creation_killswitch")||T5c()||(K=(0,_.k_)()),_.YJ("pcu_s"),_.YJ("pcu_se"),_.YJ("pcu_rs"),this.renderFn(S7c(this)),_.YJ("pcu_re"),raS(K),_.oc.addJob(function(){_.YJ("pcu_ap")},8)};
var S7c=function(K){var d;var f=_.o1((d=K.playerControlsData)==null?void 0:d.playerApi);return Object.assign({},K.state,{setState:K.boundSetState,domMeasurements:{progressBarLineRect:K.progressBarLineRect},playerApi:f,appApi:K.context.appApi,playerContainer:K.context.playerContainer,playerControlContainer:K.context.playerControlContainer,uxConfig:K.context.uxConfig})},nhS=function(K){K.listeners.forEach(function(d){K.eventListenerCleanupFunctions.push(d.register(function(){return S7c(K)},function(){return K.getData()}))})},
i0y=function(K){K.eventListenerCleanupFunctions.forEach(function(d){d()});
K.eventListenerCleanupFunctions.length=0};
yA7.prototype.getData=function(){return this.playerControlsData};
var fP=new _.Z("abuseReportFlowState");var Y7l=new _.Z("feedbackFormFlowState");var t45=new _.Z("inputBoxViewModel");var ohy=new _.Z("flowNextStepCommand");var $m7=new _.Z("flowPrevStepCommand");var Eh5=new _.Z("updateFlowCommand");_.hTt=new _.Z("flowStepRenderer");_.gQZ=new _.Z("lengthValidationRule");var Ny7=new _.Z("regexValidationRule");var tl7=new _.Z("selectedValidationRule");var b0U=new _.Z("talkToRecsViewModel");var mmS=new _.Z("creatorGoalSetUpFlowDropdownItemViewModel");var l4c=new _.Z("creatorGoalSetUpFlowDropdownViewModel");var K2S=new _.Z("thumbnailBadgeViewModel");_.W2Z=new _.Z("radioButtonGroupViewModel");var qow=new _.Z("panelFooterViewModel");var Gj7=new _.Z("ypcCancelRecurrenceCommand");var AAt=new _.Z("cancellationFlowState");var p$=new _.Z("premiumPurchaseFlowState");var T0S=new _.Z("surveyAnswerCardRenderer");var rAy=new _.Z("showMoreButtonRenderer");var q7y;var QLP,jLc=function(){if(QLP!==void 0)return QLP;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;q7y===void 0&&(q7y=document.createElement("template"));var H=q7y;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return QLP=K};var Hj=function(){var K=_.q.apply(this,arguments)||this;K.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";K.goalDescription="";K.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";K.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";K.startButtonId="start-button";K.exampleButtonId="example-button";return K};
_.O(Hj,_.q);_.V=Hj.prototype;_.V.getGoalDropdownItems=function(){var K,d;return(d=_.P((K=this.data)==null?void 0:K.purchaseTargetDropdown,l4c))==null?void 0:d.dropdownItems};
_.V.getTimerDropdownItems=function(){var K,d;return(d=_.P((K=this.data)==null?void 0:K.timerDropdown,l4c))==null?void 0:d.dropdownItems};
_.V.getColorDropdownItems=function(){var K,d;return(d=_.P((K=this.data)==null?void 0:K.colorDropdown,l4c))==null?void 0:d.dropdownItems};
_.V.getDropdownItemText=function(K){var d;return(d=_.P(K,mmS))==null?void 0:d.itemLabel};
_.V.getDropdownItemValue=function(K){K=_.P(K,mmS);return(K==null?void 0:K.timeLimit)||(K==null?void 0:K.purchaseTarget)||(K==null?void 0:K.eligiblePurchaseType)};
_.V.updateFlowState=function(K){_.ev(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:K}])};
_.V.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.V.updateGoalValue=function(K){this.goal=K.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.V.onTextValueChanged=function(K){this.goalDescription=K.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.V.updateTimerValue=function(K){this.timer=K.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.V.updateTierValue=function(K){this.tier=K.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.V.getButtonViewModel=function(K){K=(K==null?void 0:K.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var d,f=_.P((d=this.data)==null?void 0:d.startGoalButton,_.XN);return Object.assign({},f,{state:K})};
_.x$.Object.defineProperties(Hj,{template:{configurable:!0,enumerable:!0,get:function(){return jLc()}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Hj.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Hj.prototype,"goal",void 0);_.x([_.A(),_.B("design:type",Object)],Hj.prototype,"goalDescription",void 0);_.x([_.A(),_.B("design:type",Object)],Hj.prototype,"timer",void 0);_.x([_.A(),_.B("design:type",Object)],Hj.prototype,"tier",void 0);
_.x([_.A(),_.B("design:type",Object)],Hj.prototype,"startButtonId",void 0);_.x([_.A(),_.B("design:type",Object)],Hj.prototype,"exampleButtonId",void 0);Hj=_.x([_.N7({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Hj);_.C(Hj,"yt-creator-goal-set-up-flow-view-model",function(){return jLc()},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var CWP;var xmw;var L25;var Do=function(){return _.q.apply(this,arguments)||this};
_.O(Do,_.q);_.x([_.A(),_.B("design:type",Object)],Do.prototype,"data",void 0);Do=_.x([_.N7({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Do);
_.C(Do,"yt-survey-answer-card-renderer",function(){if(L25===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;xmw===void 0&&(xmw=document.createElement("template"));var H=xmw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);L25=K}K=L25;return K},{mode:2});var B0c;var JAZ;var VS=function(){return _.q.apply(this,arguments)||this};
_.O(VS,_.q);_.V=VS.prototype;_.V.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.V.selectedItemChanged=function(K){_.ev(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[K.feedbackToken||""]}])};
_.V.surveyAnswerCardRendererClicked=function(K){if(K.target&&_.P(K.model.item,T0S)){var d=K.target;K=_.P(K.model.item,T0S);K.onTapCommand?_.fd(d,[K.onTapCommand],d):this.data.onTapCommand&&_.fd(d,[this.data.onTapCommand],d);this.selectedItemChanged(K)}};
_.V.checkIsCancellationStyle=function(K){return K==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.V.updateSelectedItemFromBinding=function(K){this.selectedItem=K.detail.value};
VS.prototype.onSelectedItemChanged=VS.prototype.onSelectedItemChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],VS.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],VS.prototype,"selectedItem",void 0);_.x([_.A({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.B("design:type",Boolean)],VS.prototype,"isCancellationStyle",void 0);
_.x([_.SP("selectedItem"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VS.prototype,"onSelectedItemChanged",null);VS=_.x([_.N7({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],VS);
_.C(VS,"yt-survey-flow-step-renderer",function(){if(JAZ===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;B0c===void 0&&(B0c=document.createElement("template"));var H=B0c;f.call(d,H.content.cloneNode(!0),K.content.firstChild);JAZ=K}K=JAZ;return K},{mode:2});var Sa=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return K};
_.O(Sa,_.q);Sa.prototype.handleSurveyFlowStepOptionChanged=function(K){this.ytdReduxBehavior.dispatch(_.es({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:K}));_.ev(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:K}}])};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Sa.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Sa.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Sa.prototype,"data",void 0);Sa=_.x([_.Q({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Sa);
_.C(Sa,"ytd-survey-flow-step-renderer",function(){if(CWP!==void 0)return CWP;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return CWP=K},{mode:1});var q2z;q2z=_.IY({avatarViewModel:_.Pz,buttonViewModel:_.oY,subscribeButtonViewModel:_.PI,imageBannerViewModel:_.x4v});_.sLy=_.ih(_.joP);_.Zx(_.joP);var kj5;var yS=function(){return _.q.apply(this,arguments)||this};
_.O(yS,_.q);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],yS.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],yS.prototype,"data",void 0);yS=_.x([_.Q({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],yS);
_.C(yS,"ytd-channel-history-renderer",function(){if(kj5!==void 0)return kj5;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return kj5=K},{mode:1});var wR5;var nP=function(){return _.q.apply(this,arguments)||this};
_.O(nP,_.q);_.x([_.A(),_.B("design:type",Object)],nP.prototype,"data",void 0);nP=_.x([_.Q({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],nP);
_.C(nP,"ytd-feature-enablement-info-renderer",function(){if(wR5!==void 0)return wR5;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return wR5=K},{mode:1});var Z0Z;var eTi;var iC=function(){var K=_.q.apply(this,arguments)||this;K.textBoxMaxLength=_.M("enable_tvod_campaign_code_integration")?15:12;return K};
_.O(iC,_.q);_.V=iC.prototype;_.V.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.V.onSubmit=function(){var K=this.data.serviceEndpoint,d=_.P(K,_.kB);d&&K&&(d.couponCode=this.userInput,_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}}))};
_.V.validate=function(){var K=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=K&&!this.data.errorMessage;this.showErrorMessage=K&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.M("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.V.computeStyle=function(K){return K};
_.V.computeShowValidationBelowInput=function(K){return K!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.V.updateUserInputFromBinding=function(K){this.userInput=K.currentTarget.value};
_.V.updateShowErrorMessageFromBinding=function(K){this.showErrorMessage=K.detail.value};
_.x$.Object.defineProperties(iC.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
iC.prototype.dataChanged=iC.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],iC.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],iC.prototype,"userInput",void 0);_.x([_.A(),_.B("design:type",Boolean)],iC.prototype,"disableApplyButton",void 0);_.x([_.A(),_.B("design:type",Boolean)],iC.prototype,"hideApplyButton",void 0);
_.x([_.A(),_.B("design:type",Boolean)],iC.prototype,"hideErrorMessage",void 0);_.x([_.A(),_.B("design:type",Boolean)],iC.prototype,"showTick",void 0);_.x([_.A(),_.B("design:type",Boolean)],iC.prototype,"showErrorMessage",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],iC.prototype,"couponStyle",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.B("design:type",Boolean)],iC.prototype,"showValidationBelowInput",void 0);_.x([_.A(),_.B("design:type",Object)],iC.prototype,"textBoxMaxLength",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iC.prototype,"dataChanged",null);
_.x([_.W("showTick","showErrorMessage","userInput"),_.B("design:type",String),_.B("design:paramtypes",[])],iC.prototype,"validationState",null);iC=_.x([_.Q({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],iC);
_.C(iC,"ytd-ypc-coupon-renderer",function(){if(eTi!==void 0)return eTi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return eTi=K},{mode:1});var cj=function(){return _.q.apply(this,arguments)||this};
_.O(cj,_.q);cj.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"}}}};
cj.prototype.computeStyle=function(K){return K};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],cj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],cj.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],cj.prototype,"buttonStyle",void 0);cj=_.x([_.Q({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],cj);
_.C(cj,"ytd-flow-bottom-bar-renderer",function(){if(Z0Z!==void 0)return Z0Z;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Z0Z=K},{mode:1});var pRE;var K$c;var doy;var uC=function(){return _.q.apply(this,arguments)||this};
_.O(uC,_.q);uC.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
uC.prototype.focus=function(K){this.title&&_.LA(this.title,K)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],uC.prototype,"data",void 0);_.x([_.n8("#title"),_.B("design:type",HTMLElement)],uC.prototype,"title",void 0);uC=_.x([_.Q({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],uC);
_.C(uC,"ytd-flow-top-bar-renderer",function(){if(doy!==void 0)return doy;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return doy=K},{mode:1});var fqZ;var Hmt;var Dow;var a5=function(){return _.q.apply(this,arguments)||this};
_.O(a5,_.q);a5.prototype.freeTextValueChanged=function(){_.ev(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
a5.prototype.updateFreeTextValueFromBinding=function(K){this.freeTextValue=K.detail.value};
_.x$.Object.defineProperties(a5.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(d=(K=this.data)==null?void 0:K.responseMaxLength)!=null?d:500,H;return((H=this.freeTextValue)!=null?H:"").length>=f?"maxed-out":""}}});
a5.prototype.freeTextValueChanged=a5.prototype.freeTextValueChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],a5.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],a5.prototype,"freeTextValue",void 0);_.x([_.n8("#user-input"),_.B("design:type",HTMLTextAreaElement)],a5.prototype,"input",void 0);
_.x([_.W("freeTextValue"),_.B("design:type",Object),_.B("design:paramtypes",[])],a5.prototype,"characterLimitClass",null);_.x([_.SP("freeTextValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],a5.prototype,"freeTextValueChanged",null);a5=_.x([_.N7({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],a5);
_.C(a5,"yt-free-text-input-flow-step-renderer",function(){if(Dow===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Hmt===void 0&&(Hmt=document.createElement("template"));var H=Hmt;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Dow=K}K=Dow;return K},{mode:2});var I5=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return K};
_.O(I5,_.q);I5.prototype.handleFreeTextFlowStepInputChanged=function(K){_.ev(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:K}}])};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],I5.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],I5.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],I5.prototype,"data",void 0);I5=_.x([_.Q({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],I5);
_.C(I5,"ytd-free-text-input-flow-step-renderer",function(){if(fqZ!==void 0)return fqZ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return fqZ=K},{mode:1});var VhS;var Sm5;var UT=function(){return _.q.apply(this,arguments)||this};
_.O(UT,_.q);_.x([_.A(),_.B("design:type",Object)],UT.prototype,"data",void 0);UT=_.x([_.Q({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],UT);
_.C(UT,"ytd-metadata-line-renderer",function(){if(Sm5!==void 0)return Sm5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Sm5=K},{mode:1});var R5=function(){return _.q.apply(this,arguments)||this};
_.O(R5,_.q);R5.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],R5.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],R5.prototype,"isMasthead",void 0);R5=_.x([_.Q({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],R5);
_.C(R5,"ytd-media-product-renderer",function(){if(VhS!==void 0)return VhS;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return VhS=K},{mode:1});var ysU;var Fp=function(){return _.q.apply(this,arguments)||this};
_.O(Fp,_.q);Fp.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Fp.prototype.onBillboardImageLoaded=function(){_.Zp(this.hostElement,"yt-refit")};
Fp.prototype.onBillboardImageLoaded=Fp.prototype.onBillboardImageLoaded;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Fp.prototype,"data",void 0);_.x([_.n8("#billboardImage"),_.B("design:type",Object)],Fp.prototype,"billboardImage",void 0);_.x([_.VV("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fp.prototype,"onBillboardImageLoaded",null);
Fp=_.x([_.Q({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Fp);
_.C(Fp,"ytd-billboard-masthead-renderer",function(){if(ysU!==void 0)return ysU;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ysU=K},{mode:1});var nl7;var za=function(){var K=_.q.apply(this,arguments)||this;K.smallSize=!1;return K};
_.O(za,_.q);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],za.prototype,"ytComponentBehaviorType",void 0);_.x([_.A(),_.B("design:type",Object)],za.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],za.prototype,"smallSize",void 0);za=_.x([_.Q({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],za);
_.C(za,"ytd-bullet-formatted-string",function(){if(nl7!==void 0)return nl7;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return nl7=K},{mode:1});var imw;var Xp=function(){return _.q.apply(this,arguments)||this};
_.O(Xp,_.q);Xp.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Xp.prototype,"data",void 0);Xp=_.x([_.Q({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Xp);
_.C(Xp,"ytd-offer-detail-renderer",function(){if(imw!==void 0)return imw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return imw=K},{mode:1});var csw;var vj=function(){return _.q.apply(this,arguments)||this};
_.O(vj,_.q);vj.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],vj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vj.prototype,"data",void 0);vj=_.x([_.Q({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],vj);
_.C(vj,"ytd-offer-detail-step-renderer",function(){if(csw!==void 0)return csw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return csw=K},{mode:1});var uEZ;var Mc=function(){var K=_.q.apply(this,arguments)||this;K.isInOfferModule=!1;return K};
_.O(Mc,_.q);_.V=Mc.prototype;_.V.computeHasEndpoint=function(){var K;return!((K=this.data)==null||!K.onClickCommand)};
_.V.dataChanged=function(){var K;if((K=this.data)==null?0:K.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")};
_.V.detached=function(){var K;if((K=this.data)==null?0:K.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.V.handleClickEvent=function(){var K;if((K=this.data)==null?0:K.onClickCommand){var d;this.componentBehavior.resolveCommand((d=this.data)==null?void 0:d.onClickCommand)}};
_.V.onContentKeyDown=function(K){K.key==="Enter"?this.handleClickEvent(K):K.key===" "&&K.preventDefault()};
_.V.onContentKeyUp=function(K){K.key===" "&&this.handleClickEvent(K)};
Mc.prototype.dataChanged=Mc.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Mc.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Mc.prototype,"data",void 0);_.x([_.A({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Mc.prototype,"hasEndpoint",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Mc.prototype,"isInOfferModule",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mc.prototype,"dataChanged",null);Mc=_.x([_.Q({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Mc);
_.C(Mc,"ytd-channel-masthead-renderer",function(){if(uEZ!==void 0)return uEZ;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return uEZ=K},{mode:1});var aqw;var Pj=function(){var K=_.q.apply(this,arguments)||this;K.thumbnailObjectFit="CONTAIN";K.thumbnailObjectPosition="LEFT";K.isExpanded=!1;return K};
_.O(Pj,_.q);_.V=Pj.prototype;_.V.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.V.dataChanged=function(){this.resetStates()};
_.V.computeisTapOnOfferInfoContainerEnabled=function(){var K;return((K=this.data)==null?void 0:K.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.V.onExpandBtnClick=function(){var K,d=_.P((K=this.data)==null?void 0:K.showMoreButtonRenderer,rAy);d&&_.f5(_.cv(),d.trackingParams);this.isExpanded=!this.isExpanded};
_.V.onOfferInfoClick=function(K){this.isTapOnOfferInfoContainerEnabled&&(_.qa(_.qn(K)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.QC(_.qn(K)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.V.onBottomBarClick=function(){this.executeTapCommand()};
_.V.executeTapCommand=function(){var K,d=(K=this.data)==null?void 0:K.tapCommand;d&&this.ytComponentBehavior.resolveCommand(d)};
_.V.resetStates=function(){this.isExpanded=!1};
_.x$.Object.defineProperties(Pj.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var K=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),d,f,H;return((d=this.data)==null?void 0:d.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&K&&!!((f=this.data)==null?0:(H=f.benefits)==null?0:H.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((d=_.P((K=this.data)==null?void 0:K.showMoreButtonRenderer,rAy))==null?void 0:d.showMoreButtonTitle)||((f=this.data)==null?void 0:f.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((d=_.P((K=this.data)==null?void 0:K.showMoreButtonRenderer,rAy))==null?void 0:d.showLessButtonTitle)||((f=this.data)==null?void 0:f.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var K;return(K=this.showLessButtonTitle)!=null?K:""}var d;return(d=this.showMoreButtonTitle)!=null?d:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((K=this.data)==null?void 0:K.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((d=this.data)==null?0:d.footerTitle)||((f=this.data)==null?0:f.footerSubtitle))}}});
Pj.prototype.dataChanged=Pj.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Pj.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",String)],Pj.prototype,"thumbnailObjectFit",void 0);
_.x([_.A(),_.B("design:type",String)],Pj.prototype,"thumbnailObjectPosition",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.B("design:type",Boolean)],Pj.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.x([_.A(),_.B("design:type",Object)],Pj.prototype,"isExpanded",void 0);_.x([_.A(),_.B("design:type",Object)],Pj.prototype,"data",void 0);_.x([_.A({computed:"computeIcon_(data.footerIcon)"}),_.B("design:type",String)],Pj.prototype,"icon",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pj.prototype,"dataChanged",null);_.x([_.W("data.thumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pj.prototype,"hasThumbnail",null);_.x([_.W("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pj.prototype,"enableExpandButton",null);
_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pj.prototype,"enableOfferContentIcon",null);_.x([_.W("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pj.prototype,"showMoreButtonTitle",null);_.x([_.W("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pj.prototype,"showLessButtonTitle",null);
_.x([_.W("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.B("design:type",String),_.B("design:paramtypes",[])],Pj.prototype,"expandedBtnText",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pj.prototype,"enableBottomBar",null);Pj=_.x([_.Q({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Pj);
_.C(Pj,"ytd-offer-card-renderer",function(){if(aqw!==void 0)return aqw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return aqw=K},{mode:1});var Iqc;var gf=function(){return _.q.apply(this,arguments)||this};
_.O(gf,_.q);gf.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"}}}};
gf.prototype.onClick=function(K){if(!_.qa(K.composedPath()||[],this.hostElement,["A".toString()])){var d,f;if((K=(f=_.P((d=this.data)==null?void 0:d.actionButton,_.tQ))==null?void 0:f.command)&&!this.ytComponentBehavior.resolveCommand(K)){var H;(H=_.cv())==null||H.clickCommand(K);_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}})}}};
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],gf.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gf.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],gf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gf.prototype,"data",void 0);gf=_.x([_.Q({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],gf);
_.C(gf,"ytd-offer-content-renderer",function(){if(Iqc!==void 0)return Iqc;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Iqc=K},{mode:1});var Uol;var OT=function(){return _.q.apply(this,arguments)||this};
_.O(OT,_.q);OT.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.x$.Object.defineProperties(OT.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var K,d;return!((K=this.data)==null||!K.title)||!((d=this.data)==null||!d.description)}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],OT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],OT.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],OT.prototype,"hasHeaderData",null);OT=_.x([_.Q({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],OT);
_.C(OT,"ytd-offer-section-renderer",function(){if(Uol!==void 0)return Uol;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Uol=K},{mode:1});var RQS;var Nc=function(){return _.q.apply(this,arguments)||this};
_.O(Nc,_.q);
Nc.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"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Nc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Nc.prototype,"data",void 0);Nc=_.x([_.Q({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Nc);
_.C(Nc,"ytd-offer-selection-step-renderer",function(){if(RQS!==void 0)return RQS;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return RQS=K},{mode:1});var F$U;var Yq=function(){return _.q.apply(this,arguments)||this};
_.O(Yq,_.q);Yq.prototype.computeStyle=function(K){return K};
Yq.prototype.computeImageWidth=function(K){return K==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.x([_.A({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.B("design:type",String)],Yq.prototype,"containerStyle",void 0);_.x([_.A({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.B("design:type",String)],Yq.prototype,"imageWidth",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Yq.prototype,"data",void 0);
Yq=_.x([_.Q({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Yq);
_.C(Yq,"ytd-confirmation-masthead-renderer",function(){if(F$U!==void 0)return F$U;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return F$U=K},{mode:1});var zQt;var tZ=function(){return _.q.apply(this,arguments)||this};
_.O(tZ,_.q);tZ.prototype.computeStyle=function(K){return K};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],tZ.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.B("design:type",String)],tZ.prototype,"containerStyle",void 0);tZ=_.x([_.Q({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],tZ);
_.C(tZ,"ytd-purchase-complete-detail-renderer",function(){if(zQt!==void 0)return zQt;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return zQt=K},{mode:1});var XyS;var o5=function(){var K=_.q.apply(this,arguments)||this;K.scriptsAppended=!1;return K};
_.O(o5,_.q);o5.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"}}}};
o5.prototype.onDataChanged=function(){var K=this.get("data.gtmId");K&&(_.F8(K,_.mD("GL","")),this.setupConversionTracking())};
o5.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var K=document.createElement("noscript");K.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(K);this.scriptsAppended=!0}};
o5.prototype.onDataChanged=o5.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],o5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],o5.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],o5.prototype,"scriptsAppended",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],o5.prototype,"onDataChanged",null);o5=_.x([_.Q({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],o5);
_.C(o5,"ytd-purchase-complete-step-renderer",function(){if(XyS!==void 0)return XyS;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return XyS=K},{mode:1});var vlw;var $q=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O($q,_.q);$q.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$q.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],$q.prototype,"darkerDarkTheme",void 0);$q=_.x([_.Q({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],$q);
_.C($q,"ytd-ypc-transaction-error-message-renderer",function(){if(vlw!==void 0)return vlw;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return vlw=K},{mode:1});var Mhz;var Ply;var ET=function(){var K=_.q.apply(this,arguments)||this;K.handlePhoneVerificationSuccess=function(d){if(K.isValidPhoneVerificationCompletionMessageEvent(d)){var f;((f=K.data)==null?0:f.nextStepCommand)&&K.ytComponentBehavior.resolveCommand(K.data.nextStepCommand)}};
return K};
_.O(ET,_.q);ET.prototype.isValidPhoneVerificationCompletionMessageEvent=function(K){if(K.data!=="yt-phone-verification-complete")return!1;K=_.JR(K.origin);return K!==null&&K.includes("youtube.com")};
ET.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
ET.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ET.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ET.prototype,"data",void 0);ET=_.x([_.N7({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],ET);
_.C(ET,"yt-feature-enablement-soft-entry-renderer",function(){if(Ply===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Mhz===void 0&&(Mhz=document.createElement("template"));var H=Mhz;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Ply=K}K=Ply;return K},{mode:1});var gli;var Omw;var NGZ;var Ymz;var hZ=function(){return _.q.apply(this,arguments)||this};
_.O(hZ,_.q);_.x([_.A(),_.B("design:type",Object)],hZ.prototype,"data",void 0);hZ=_.x([_.N7({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],hZ);
_.C(hZ,"yt-benefits-item-renderer",function(){if(Ymz===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;NGZ===void 0&&(NGZ=document.createElement("template"));var H=NGZ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Ymz=K}K=Ymz;return K},{mode:2});var th5;var olZ;var bC=function(){return _.q.apply(this,arguments)||this};
_.O(bC,_.q);bC.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
bC.prototype.computeisWithoutPadding=function(){var K;return((K=this.data)==null?void 0:K.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],bC.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.B("design:type",Boolean)],bC.prototype,"isWithoutPadding",void 0);bC=_.x([_.N7({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],bC);
_.C(bC,"yt-benefits-section-renderer",function(){if(olZ===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;th5===void 0&&(th5=document.createElement("template"));var H=th5;f.call(d,H.content.cloneNode(!0),K.content.firstChild);olZ=K}K=olZ;return K},{mode:2});var mC=function(){return _.q.apply(this,arguments)||this};
_.O(mC,_.q);mC.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
mC.prototype.computeisUsingLargeWidth=function(){var K;return((K=this.data)==null?void 0:K.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],mC.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.B("design:type",Boolean)],mC.prototype,"isUsingLargeWidth",void 0);mC=_.x([_.N7({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],mC);
_.C(mC,"yt-benefits-flow-step-renderer",function(){if(Omw===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;gli===void 0&&(gli=document.createElement("template"));var H=gli;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Omw=K}K=Omw;return K},{mode:2});var $oE;var ElP;var lC=function(){return _.q.apply(this,arguments)||this};
_.O(lC,_.q);lC.prototype.checkIsUsingLargeWidth=function(){var K;return((K=this.data)==null?void 0:K.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.x([_.A(),_.B("design:type",Object)],lC.prototype,"data",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.x([_.A({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.B("design:type",Boolean)],lC.prototype,"isUsingLargeWidth",void 0);lC=_.x([_.N7({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],lC);
_.C(lC,"yt-confirmation-flow-step-renderer",function(){if(ElP===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;$oE===void 0&&($oE=document.createElement("template"));var H=$oE;f.call(d,H.content.cloneNode(!0),K.content.firstChild);ElP=K}K=ElP;return K},{mode:2});var hQU;var bmi;var Wj=function(){return _.q.apply(this,arguments)||this};
_.O(Wj,_.q);_.x([_.A(),_.B("design:type",Object)],Wj.prototype,"data",void 0);Wj=_.x([_.N7({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Wj);
_.C(Wj,"yt-info-flow-step-renderer",function(){if(bmi===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;hQU===void 0&&(hQU=document.createElement("template"));var H=hQU;f.call(d,H.content.cloneNode(!0),K.content.firstChild);bmi=K}K=bmi;return K},{mode:2});var moz;var lqE;var Ga=function(){return _.q.apply(this,arguments)||this};
_.O(Ga,_.q);_.x([_.A(),_.B("design:type",Object)],Ga.prototype,"data",void 0);Ga=_.x([_.N7({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Ga);
_.C(Ga,"yt-info-list-flow-step-renderer",function(){if(lqE===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;moz===void 0&&(moz=document.createElement("template"));var H=moz;f.call(d,H.content.cloneNode(!0),K.content.firstChild);lqE=K}K=lqE;return K},{mode:2});var W$c=_.C8(function(K){var d=K.data;return _.U("styled-text-view-model",{class:_.SC("ytStyledTextViewModelHost",function(){return deU(d().fontAttributes)},function(){return KHt(d().color)})},_.U(_.ji,{text:function(){return d().text},
ariaLabel:function(){var f,H,D;return(D=(f=d().accessibility)==null?void 0:(H=f.accessibilityData)==null?void 0:H.label)!=null?D:""}}))},"Se");
W$c.idomCompat=!0;var Gpy=_.C8(function(K){var d=function(){var D,S,n,u;return(u=(n=(D=K.alt)==null?void 0:D.call(K))!=null?n:(S=K.data().accessibilityData)==null?void 0:S.label)!=null?u:""},f=function(){return K.data().imageWidth},H=function(){return K.data().imageHeight};
return _.U("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.U(_.X,{cond:function(){var D=K.data();if(D){var S,n,u;var a=((S=_.eq().resolve(_.Zd(_.AJ)))==null?0:S())?(n=D.imageDark)!=null?n:D.imageLight:(u=D.imageLight)!=null?u:D.imageDark}else a=void 0;return a},
then:function(D){return _.U(_.jV,Object.assign({},K,{data:D,alt:d,targetWidth:f,targetHeight:H,preserveHeight:!0,preserveWidth:!0}))}}))},"Te");
Gpy.idomCompat=!0;var AZ=_.C8(function(K){var d=K.data;K=_.QV(function(){return d().slots},[]);
var f=_.QV(function(){return d().layoutProperties},{}),H=_.eq().resolve(_.rl);
return _.U("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:kYc(f,H)},_.U(_.v_,{each:K,keyBy:"INDEX"},function(D){return _.U("div",{class:"ytContainerLayoutViewModelSlot",style:kYc(function(){return D().layoutProperties},H)},_.U(_.z1,{data:function(){return D().contents}},{containerLayoutViewModel:AZ,
badgeViewModel:_.s$,buttonViewModel:_.oY,styledTextViewModel:W$c,contentPreviewImageViewModel:function(S){return _.U(_.kd,{data:S.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(S){return _.U(Gpy,{data:S.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Ue");
AZ.idomCompat=!0;var AsS=_.C8(function(K){var d=K.data;var f=K.stateFns;var H=function(){var R=d(),F=R.productId;return!(!R.clearGroupId&&!F)},D=function(){var R=d(),F=R.clearGroupId;
return(R=R.productId)?f().isProductSelected(R):F?f().getSelectedProductByGroupId(F)==null:!1},S=function(){var R=d(),F=R.clearGroupId;
if(R=R.productId)f().onProductSelected(R);else if(F)f().onClearGroupSelected(F)},n=function(){var R=d(),F=R.clearGroupId;
if(R=R.productId){var z;return"group:"+(((z=f().getProductById(R))==null?void 0:z.groupId)||"")}return F?"group:"+F:""},u=_.QV(function(){return d().header},[]),a=_.QV(function(){return d().body},[]);
return _.U("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.U(_.X,{cond:function(){return u().length>0||H()},
then:function(){return _.U("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.U("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.U(_.z1,{data:u},{containerLayoutViewModel:function(R){return _.U("div",{class:"ytPdpCardSectionViewModelContentItem"},_.U(AZ,{data:R.data}))},
styledTextViewModel:function(R){return _.U("div",{class:"ytPdpCardSectionViewModelContentItem"},_.U(W$c,{data:R.data}))}})),_.U(_.X,{cond:H,
then:function(){return _.U("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.U(_.g6,{checked:D,name:n,onChange:S}))}}))}}),_.U(_.X,{cond:function(){return a().length>0},
then:function(){return _.U("div",null,_.U(_.z1,{data:a},{containerLayoutViewModel:function(R){return _.U("div",{class:"ytPdpCardSectionViewModelContentItem"},_.U(AZ,{data:R.data}))}}))}}))},"Ve");
AsS.idomCompat=!0;var TGi=_.C8(function(K){var d=K.data;var f=K.stateFns;return _.U("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.U(_.X,{cond:function(){return d().banner},
then:function(H){return _.U("div",{class:"ytPdpCardViewModelBanner"},_.U(_.ji,{text:H}))}}),_.U(_.z1,{data:function(){return d().sections}},{pdpCardSectionViewModel:function(H){H=H.data;
var D={};return _.U("div",{class:_.SC("ytPdpCardViewModelSectionContainer",(D.ytPdpCardViewModelShowDividers=function(){return d().showDividers},D))},_.U(AsS,{data:H,
stateFns:f}))}}))},"We");
TGi.idomCompat=!0;var rsZ=_.C8(function(K){var d=K.data;var f=K.isOverlay;K={};return _.U("pdp-masthead-view-model",{class:_.SC("ytPdpMastheadViewModelHost",(K.ytPdpMastheadViewModelIsOverlay=f,K))},_.U(_.z1,{data:function(){return d().image}},{contentPreviewImageViewModel:_.kd,
themedImageViewModel:function(H){return _.U(Gpy,{data:H.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.U(_.X,{cond:function(){return d().title},
then:function(H){return _.U("h1",{class:"ytPdpMastheadViewModelHeading"},_.U(_.ji,{text:H,isOverlay:f}))}}),_.U(_.v_,{each:function(){var H;
return(H=d().finePrint)!=null?H:[]}},function(H){return _.U("div",{class:"ytPdpMastheadViewModelFinePrint"},_.U(_.ji,{text:H,
isOverlay:f}))}))},"Xe");
rsZ.idomCompat=!0;var qmc=_.C8(function(K){var d=K.data;var f=K.stateFns;return _.U("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.U(_.v_,{each:function(){var H=f().getSelectedPricingOptions().map(function(S){return S.pricingOptionId}),D=f().getSelectedProductByGroupId(d().groupId);
return D?D.pricingOptions.map(function(S){return{pricingOption:S,isSelected:H.includes(S.pricingOptionId)}}):(_.EN(Error("Fj`"+d().groupId)),[])},
keyBy:"INDEX"},function(H){return _.U("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.U("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.U(_.z1,{data:function(){return H().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:AZ})),_.U("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.U(_.g6,{checked:function(){return H().isSelected},
onClick:function(){f().onPricingOptionSelected(H().pricingOption.pricingOptionId);var D=H().pricingOption.onSelectPricingOption;if(D=_.$A(D)){var S;(S=_.eq().resolve(_.pQ))==null||S.resolveCommand(D)}}})))}))},"Ye");
qmc.idomCompat=!0;var QQP=_.C8(function(K){var d=K.data;var f=K.stateFns;return _.U("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.U(_.z1,{data:function(){var H,D;return(D=(H=f().getSelectedPricingOptions()[0])==null?void 0:H.primaryButton)!=null?D:d().emptyStateButton}},{buttonViewModel:_.oY}))},"Ze");
QQP.idomCompat=!0;var jQy=_.C8(function(K){var d=K.stateFns;return _.U("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.U(_.z1,{data:function(){return d().getSelectedPricingOptions().flatMap(function(f){return f.summaryLines}).filter(function(f){return!!f})}},{containerLayoutViewModel:function(f){return _.U("div",{class:"ytPdpSummaryViewModelLineItem"},_.U(AZ,{data:f.data}))}}))},"$e");
jQy.idomCompat=!0;var Cl7=_.C8(function(K){function d(m){var T=n();_.q7(_.P9("pdpStateEntity",T,{key:T,selectedPricingOptions:m}))}
var f=K.data;var H=K.internalScrolling;var D=K.stateFnsForTesting;var S=_.QV(function(){return f().allProducts},[]),n=_.QV(function(){return f().pdpStateEntityKey},""),u=_.yF(fwc,n),a=_.zh(function(){_.hc(!0);
var m;return(m=D==null?void 0:D())!=null?m:i7z(u,S,d)},void 0,"POBqwe"),R=_.QV(function(){return f().body},[]),F=_.QV(function(){return f().columnBreakHints},[]),z=function(){return f().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},v=function(){return z()||f().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},g=_.zh(function(){var m=_.QF(f().background),T;
if(m==null?0:(T=m.sources)==null?0:T.length){var r=r===void 0?!0:r;m=_.I8O(void 0,m.sources,void 0,r,r?1E3:void 0,r?void 0:1E3)}else m=null;return m},void 0,"BkCmEd");
K=_.Im({"--pdp-view-model-background":function(){return g()?"url("+g()+")":void 0}});
var N={};H=_.SC("ytPdpViewModelHost",(N.ytPdpViewModelHasBackground=function(){return v()||!!g()},N.ytPdpViewModelHasDarkBackground=v,N.ytPdpViewModelHasScrim=z,N.ytPdpViewModelInternalScrolling=_.QV(H,!1),N));
var h=function(m){var T={};return _.SC("ytPdpViewModelItem",(T.ytPdpViewModelFullBleed=function(){return _.r7X(m())==="dividerViewModel"||_.r7X(m())==="sectionHeaderViewModel"},T.ytPdpViewModelNoVerticalPadding=function(){return _.r7X(m())==="sectionHeaderViewModel"},T))};
_.tR(function(){var m=f().onStartCommand;if(m&&(m=_.$A(m))){var T;(T=_.eq().resolve(_.pQ))==null||T.resolveCommand(m)}});
return _.U("pdp-view-model",{class:H,style:K},_.U("div",{class:"ytPdpViewModelColumnContainer"},_.U(_.v_,{each:function(){return c5K(R(),F())},
keyBy:"INDEX"},function(m){return _.U("div",{class:"ytPdpViewModelColumn"},_.U(_.z1,{data:m},{containerLayoutViewModel:function(T,r){T=T.data;return _.U("div",{class:h(function(){return m()[r()]})},_.U(AZ,{data:T}))},
dividerViewModel:function(T,r){T=T.data;return _.U("div",{class:h(function(){return m()[r()]})},_.U(_.ehs,{data:T}))},
pdpCardViewModel:function(T,r){T=T.data;return _.U("div",{class:h(function(){return m()[r()]})},_.U(TGi,{data:T,
stateFns:a}))},
pdpMastheadViewModel:function(T,r){T=T.data;return _.U("div",{class:h(function(){return m()[r()]})},_.U(rsZ,{data:T,
isOverlay:v}))},
pdpPricingOptionSelectorViewModel:function(T,r){T=T.data;return _.U("div",{class:h(function(){return m()[r()]})},_.U(qmc,{data:T,
stateFns:a}))},
pdpPrimaryButtonViewModel:function(T,r){T=T.data;return _.U("div",{class:h(function(){return m()[r()]})},_.U(QQP,{data:T,
stateFns:a}))},
pdpSummaryViewModel:function(T,r){T=T.data;return _.U("div",{class:h(function(){return m()[r()]})},_.U(jQy,{data:T,
stateFns:a}))},
sectionHeaderViewModel:function(T,r){T=T.data;return _.U("div",{class:h(function(){return m()[r()]})},_.U(_.d6,{data:T}))}}))})))},"af");
Cl7.idomCompat=!0;_.sP(Cl7,"pdp-view-model",{props:{data:_.rs,stateFnsForTesting:_.JJ,internalScrolling:_.JJ}});var xot=_.C8(function(K){var d=K.data;var f=K.className;var H=_.yF(_.B$,function(){return d().flowStateEntityKey});
return _.U("ytm-premium-purchase-button-renderer",{class:_.SC("yt-premium-purchase-button-renderer",f)},_.U(_.z1,{data:function(){var D;return(D=_.P(H(),p$))==null?void 0:D.primaryButtonOverride}},{buttonRenderer:function(D){return _.U(_.T5,{data:D.data,
className:f})},
buttonViewModel:function(D){return _.U(_.oY,{data:D.data,className:f})}}))},"bf");
xot.idomCompat=!0;var L$w=_.C8(function(K){var d=K.data;var f=function(){return uyl(d().style)},H=_.SC("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",f),D=_.SC("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",f);
return _.U("yt-flow-bottom-bar-renderer",{class:_.SC("yt-flow-bottom-bar-renderer",K.className,f)},_.U(_.z1,{data:function(){return d().secondaryButton}},{buttonRenderer:function(S){return _.U(_.T5,{data:S.data,
className:D})},
buttonViewModel:function(S){return _.U(_.oY,{data:S.data,className:D})},
premiumPurchaseButtonRenderer:function(S){return _.U(xot,{data:S.data,className:D})}}),_.U(_.z1,{data:function(){return d().primaryButton}},{buttonRenderer:function(S){return _.U(_.T5,{data:S.data,
className:H})},
buttonViewModel:function(S){return _.U(_.oY,{data:S.data,className:H})},
premiumPurchaseButtonRenderer:function(S){return _.U(xot,{data:S.data,className:H})}}))},"cf");
L$w.idomCompat=!0;_.sP(L$w,"yt-flow-bottom-bar-renderer",{props:{data:_.rs,className:_.rs}});var BG5=_.C8(function(K){return _.U("yt-offer-summary-renderer",{class:_.SC(K.className,"ytOfferSummaryRendererHost")},_.U("div",{class:"ytOfferSummaryRendererTextContainer"},_.U("div",{class:"ytOfferSummaryRendererEyebrowText"},_.U(_.ji,{text:function(){return K.data().eyebrowText}})),_.U("div",{class:"ytOfferSummaryRendererTitle"},_.U(_.ji,{text:function(){return K.data().title}})),_.U("div",{class:"ytOfferSummaryRendererSubtitle"},_.U(_.ji,{text:function(){return K.data().subtitle}})),_.U("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.U(_.v_,{each:function(){var d;
return(d=K.data().featureListData)!=null?d:[]}},function(d){var f;
return _.U("div",{class:"ytOfferSummaryRendererFeatureList"},_.U(_.U5,{icon:(f=d.icon)==null?void 0:f.iconType,className:d.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.U("div",{class:"ytOfferSummaryRendererFeatureListText"},_.U(_.ji,{text:d.text})))})),_.U("div",{class:"ytOfferSummaryRendererDescription"},_.U(_.ji,{text:function(){return K.data().description}}))))},"df");_.sP(_.C8(function(K){var d={};d=_.SC("ytOfferSummaryFlowStepRendererHost",(d.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=K.shouldDisableHeaderTopMargin,d));return _.U("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:d},_.U("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.U("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.U(_.ji,{text:function(){return K.data().header}})),_.U("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.U(_.ji,{text:function(){return K.data().subtitle}}))),_.U("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.U(_.z1,{data:function(){return K.data().offerSummary}},{offerSummaryRenderer:function(f){return _.U(BG5,{data:f.data,
className:K.flowClassName})}})))},"ef"),"yt-offer-summary-flow-step-renderer",{props:{data:_.JJ,
flowClassName:_.JJ,flowStateEntityKey:_.JJ,shouldDisableHeaderTopMargin:_.JJ}});var Jsc=_.C8(function(K){var d=K.data;var f=K.className;var H=K.flowStateEntityKey;var D=K.selectionStepStyle;K=_.cp(function(a){var R=d(),F=H==null?void 0:H();a.target&&(a.stopPropagation(),a=F||"",F=_.B$(_.TC().getState(),a),R=Object.assign({},F,{premiumPurchaseFlowState:{selectedOptionId:R.optionId,primaryButtonOverride:R.primaryButtonOverride}}),_.TC().dispatch(_.nt("flowStateEntity",a,R)));return!1});
var S=function(){return(H==null?void 0:H())||""},n=_.yF(_.B$,S);
_.tR(function(){var a=d(),R=S(),F=n();!_.P(F,p$)&&a.defaultSelected&&R!==""&&a.primaryButtonOverride&&awt(a.optionId||"",R,a.primaryButtonOverride,F)});
var u={};return _.U("ytm-option-item-renderer",{"on:click":K,class:_.SC(f,"ytm-option-item-renderer",(u["ytm-option-item-renderer--lp2-style"]=function(){return(D==null?void 0:D())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},u))},_.U("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.U("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var a=d(),R=S(),F=n();F=_.P(F,p$);return(F?(F==null?void 0:F.selectedOptionId)||"":a.defaultSelected&&R!==""?(a==null?void 0:a.optionId)||"":"")===d().optionId},
name:("input"+_.Ot(_.MS)).toString()})),_.U("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.U(_.X,{cond:function(){return d().eyebrowText},
then:function(){return _.U("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.U(_.ji,{text:function(){return d().eyebrowText}}))}}),_.U("div",{class:"ytm-option-item-renderer__option-item-title"},_.U(_.ji,{text:function(){return d().title}})),_.U("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.U(_.ji,{text:function(){return d().subtitle}})),_.U("div",{class:"ytm-option-item-renderer__option-item-description"},_.U(_.ji,{text:function(){return d().description}}))))},
"ff");var sQ5=_.C8(function(K){var d=K.data;var f=K.flowClassName;var H=K.flowStateEntityKey;var D=K.selectionStepStyle;return _.U("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.U("div",{class:"yt-option-section-renderer__option-section-header-section"},_.U("div",{class:"yt-option-section-renderer__option-section-header"},_.U(_.ji,{text:function(){return d().title}}),_.U(_.z1,{data:function(){return d().titleBadge}},{badgeViewModel:function(S){return _.U(_.s$,
{data:S.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.U(_.X,{cond:function(){return d().subtitle},
then:function(){return _.U("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.U(_.ji,{text:function(){return d().subtitle}}))}}),_.U(_.X,{cond:function(){return d().featureListData},
then:function(S){return _.U("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.U(_.v_,{each:S},function(n){var u;return _.U("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.U(_.U5,{icon:(u=n.icon)==null?void 0:u.iconType,className:n.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.U("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.U(_.ji,{text:n.text})))}))}}),_.U(_.v_,{each:function(){return d().sectionDisclaimers||[]}},function(S){return _.U("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.U(_.ji,{text:S}))})),_.U(_.z1,{data:function(){return d().optionItems}},{optionItemRenderer:function(S){return _.U("div",{class:"yt-option-section-renderer__option-item"},_.U(Jsc,{data:S.data,
className:f,flowStateEntityKey:H,selectionStepStyle:D}))}}),_.U(_.X,{cond:function(){return d().offerText},
then:function(){return _.U("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.U(_.ji,{text:function(){return d().offerText}}))}}))},"gf");
sQ5.idomCompat=!0;var kpl=_.C8(function(K){var d=K.data;var f=K.flowClassName;var H=K.flowStateEntityKey;K=K.isDesktop;var D=function(){var R;return(R=d().flowStateEntityKey)!=null?R:H==null?void 0:H()},S=function(){return(D==null?void 0:D())||""},n=function(){return d().style},u=_.yF(_.B$,S);
_.tR(function(){var R=d(),F=S(),z=u();!_.P(z,p$)&&R.noPreselect&&F!==""&&R.defaultButtonOverride&&awt("default",F,R.defaultButtonOverride,z)});
var a={};return _.U("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.SC("ytm-option-selection-flow-step-renderer",(a["ytm-option-selection-flow-step-renderer--desktop"]=K,a["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return d().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},a))},_.U("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"},
_.U("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.U(_.ji,{text:function(){return d().header}})),_.U("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.U(_.ji,{text:function(){return d().subtitle}}))),_.U(_.z1,{data:function(){return d().optionItems||[]}},{optionItemRenderer:function(R){return _.U("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.U(Jsc,{data:R.data,
className:f,flowStateEntityKey:D,selectionStepStyle:n}))},
optionSectionRenderer:function(R){return _.U("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.U(sQ5,{data:R.data,flowClassName:f,flowStateEntityKey:D,selectionStepStyle:n}))}}))},"hf");
kpl.idomCompat=!0;_.sP(kpl,"yt-option-selection-flow-step-renderer",{props:{data:_.rs,flowClassName:_.rs,flowStateEntityKey:_.rs,isDesktop:_.rs}});var IwU,Uec;_.Ta=_.C8(function(K){var d=_.jP(K,{type:1,disablePadding:!1,disablePrimaryButton:!1}),f=d.data,H=d.type;K=d.disablePadding;var D=d.disablePrimaryButton,S=d.onClickPrimaryButton,n=function(){return f().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},u=function(){return{disabled:D(),
state:D()?"disabled":"active"}},a=function(){return f().leadingLabel||f().trailingLabel};
d={};return _.U("yt-panel-footer-view-model",{class:_.SC("yt-panel-footer-view-model-wiz",(d["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return f().shouldHideDivider},d["yt-panel-footer-view-model-wiz--disable-padding"]=K,d))},_.U(_.X,{cond:a,
then:function(){var R={},F={};return _.U("div",{class:_.SC("yt-panel-footer-view-model-wiz__text-row",(R["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var z=f();return!(!z.leadingLabel&&!z.trailingLabel||!z.primaryButton&&!z.secondaryButton)},R))},_.U(_.ji,{text:function(){return f().leadingLabel},
className:_.SC((F["yt-panel-footer-view-model-wiz--text-padding"]=a,F))}),_.U(_.ji,{text:function(){return f().trailingLabel}}))}}),_.U(_.X,{cond:n,
then:function(){var R={};return _.U("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.U("div",{class:_.SC("yt-panel-footer-view-model-wiz__primary-button",(R["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return f().secondaryButton},R))},_.U(_.z1,{data:function(){return f().primaryButton}},{buttonViewModel:function(F){return _.U(_.oY,{data:F.data,
buttonOverrides:u,onClick:S})}})),_.U(_.z1,{data:function(){return f().secondaryButton}},{buttonViewModel:_.oY}))}}),_.U(_.X,{cond:function(){return!n()},
then:function(){var R={},F={},z={};return _.U("div",{class:_.SC("yt-panel-footer-view-model-wiz__button-row",(R["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===H()},R))},_.U("div",{class:_.SC("yt-panel-footer-view-model-wiz__button-row--left-button",(F["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===H()},F["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!f().secondaryButton||0===H()},F["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===H()},F))},_.U(_.z1,{data:function(){return f().secondaryButton}},{buttonViewModel:_.oY})),_.U("div",{class:_.SC("yt-panel-footer-view-model-wiz__primary-button",(z["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===H()||1===H()},z["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===H()},z))},_.U(_.z1,{data:function(){return f().primaryButton}},{buttonViewModel:function(v){return _.U(_.oY,{data:v.data,
buttonOverrides:u,onClick:S})}})))}}))},"jf");
_.Ta.idomCompat=!0;_.wyi=_.C8(function(K){K=_.jP(K,{disablePadding:!1});var d=K.data,f=K.disablePadding;K=_.XFE(function(){return d().formId});
var H=K.onSubmit,D=K.isValid,S=K.isSubmitting;return _.U("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.U(_.z1,{data:function(){return d().panelFooter}},{panelFooterViewModel:function(n){return _.U(_.Ta,{data:n.data,
onClickPrimaryButton:function(){H()},
disablePrimaryButton:function(){return!D()||S()},
disablePadding:f})}}))},"kf");_.sP(_.wyi,"yt-form-footer-view-model",{props:{data:_.rs,disablePadding:_.rs}});_.sP(_.C8(function(K){return _.U("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.U("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.U(_.X,{cond:function(){var d;return(d=K.data())==null?void 0:d.image},
then:function(d){return _.U(_.jV,{data:d,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.U("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.U(_.ji,{text:function(){var d;
return(d=K.data())==null?void 0:d.title}})),_.U("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.U(_.ji,{text:function(){var d;
return(d=K.data())==null?void 0:d.subtitle}})),_.U("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.U(_.z1,{data:function(){var d;
return(d=K.data())==null?void 0:d.viewTipsButton}},{buttonViewModel:_.oY}))))},"lf"),"yt-contributor-zero-state-view-model",{props:{data:_.rs}});var Zmi=_.C8(function(K){var d=_.yF(vQz,_.QV(function(){var f;return(f=K.data())==null?void 0:f.noteFeedEntityKey},""));
return _.U("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.U("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.U("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.U(_.X,{cond:function(){var f,H;return(f=K.data())==null?void 0:(H=f.noteData)==null?void 0:H.isPinned},
then:function(){return _.U(_.U5,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.U(_.ji,{text:function(){var f,H;
return(f=K.data())==null?void 0:(H=f.noteData)==null?void 0:H.headerText}}),_.U("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.U(_.ji,{text:function(){var f,H;
return(f=K.data())==null?void 0:(H=f.noteData)==null?void 0:H.delimiter}})),_.U(_.ji,{text:function(){var f,H;
return(f=d())==null?void 0:(H=f.contributorNote)==null?void 0:H.publishedTimeText}})),_.U(_.z1,{data:function(){var f,H,D,S=(f=K.data())==null?void 0:f.noteData;
f=(H=d())==null?void 0:(D=H.contributorNote)==null?void 0:D.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:S.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:S.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:S.deleteDialogTitle}]},dialogMessages:[{runs:[{text:S.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:S.deleteActionText}]},command:{performCommentActionEndpoint:{action:f}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:S.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(f){return _.U(_.oY,{data:f.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.U("div",{class:"ytNoteViewModelNoteContent"},_.U(_.ji,{text:function(){var f,H;
return(f=d())==null?void 0:(H=f.contributorNote)==null?void 0:H.text}})))},"mf");
Zmi.idomCompat=!0;_.sP(Zmi,"yt-note-view-model",{props:{data:_.rs}});var rf=_.C8(function(K){var d=_.jP(K,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),f=d.label,H=d.text,D=d.placeholder,S=d.hint;K=d.rows;var n=d.overflowStyle,u=d.outline,a=d.disabled,R=d.disableNewLines,F=d.characterLimit,z=d.validation,v=d.onInput,g=_.Co();d=_.y(_.am(function(){return H()}));
var N=d.next().value,h=d.next().value;d=_.y(_.cC(!1,void 0,"fXvinf"));var m=d.next().value,T=d.next().value,r=function(){T(!0)},J=function(){T(!1)};
_.tR(function(){var xz=g.value,qJ=n(),Y8=N();qJ==="expand-vertically"&&Y8&&Mli(xz);g.value.addEventListener("focusin",r);g.value.addEventListener("focusout",J)});
_.$F(function(){g.value.removeEventListener("focusin",r);g.value.removeEventListener("focusout",J)});
var L=function(){var xz;return(xz=z())==null?void 0:xz.validate(N())},fB=function(){return F()&&!L()&&N().length>F().maxChars},w=function(){return!!L()||fB()};
d=_.cp(function(xz){if(!xz.currentTarget)return!1;xz=xz.currentTarget;h(xz.value);n()==="expand-vertically"&&Mli(xz);v==null||v(xz.value);return!0});
var yO=_.cp(function(xz){R()&&xz.key==="Enter"&&xz.preventDefault();return!1}),FX=_.cp(function(){g.value.focus()}),NJ=function(){return D()||f()},$z={},hN={},bo={};
return _.U("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.U("div",{class:_.SC("ytStandardsTextareaShapeTextareaContainer",($z.ytStandardsTextareaShapeTextareaContainerOutline=u,$z.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=a,$z.ytStandardsTextareaShapeTextareaContainerOutlineError=w,$z)),"on:click":FX},_.U("label",{class:_.SC("ytStandardsTextareaShapeLabel",(hN.ytStandardsTextareaShapeLabelFocused=m,hN.ytStandardsTextareaShapeLabelDisabled=a,hN.ytStandardsTextareaShapeLabelError=
function(){return w()&&!a()},hN.ytStandardsTextareaShapeLabelHidden=function(){return!m()&&!N()&&!!NJ()},hN))},f),_.U("div",{class:_.SC("ytStandardsTextareaShapePlaceholder",(bo.ytStandardsTextareaShapePlaceholderVisible=function(){return!m()&&!N()},bo)),
"aria-hidden":"true"},NJ),_.U("textarea",{el:g,class:"ytStandardsTextareaShapeTextarea",rows:K,disabled:a,placeholder:NJ,"on:input":d,"on:keydown":yO},N)),_.U(_.X,{cond:function(){return S()&&!w()},
then:function(){var xz={};return _.U("div",{class:_.SC("ytStandardsTextareaShapeHint",(xz.ytStandardsTextareaShapeHintDisabled=a,xz))},_.U("div",{class:"ytStandardsTextareaShapeHintHintMessage"},S))}}),_.U(_.X,{cond:L,
then:function(){return _.U(eQc,{disabled:a},_.U("div",{class:"ytStandardsTextareaShapeErrorMessage"},L))}}),_.U(_.X,{cond:F,
then:function(xz){return _.U(_.X,{cond:fB,then:function(){return _.U(eQc,{disabled:a},_.U("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return xz().errorMessage}),_.U("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return N().length+"/"+xz().maxChars}))}})}}))},"nf");
rf.idomCompat={callbacks:{onInput:!0}};var eQc=_.C8(function(K){var d={};return _.U("div",{class:_.SC("ytStandardsTextareaShapeError",(d.ytStandardsTextareaShapeErrorDisabled=K.disabled,d)),role:"alert"},_.U(_.U5,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),K.children)},"of");_.pyE=_.C8(function(K){var d=K.data;return _.U("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.U(rf,{text:K.text,label:function(){var f;return(f=d().contentProperties)==null?void 0:f.labelText},
placeholder:function(){var f;return(f=d().contentProperties)==null?void 0:f.placeholderText},
hint:function(){var f;return(f=d().contentProperties)==null?void 0:f.hintText},
outline:function(){var f;return!((f=d().displayProperties)==null?0:f.hideBorder)},
overflowStyle:function(){var f;return((f=d().displayProperties)==null?0:f.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:K.disabled,disableNewLines:function(){var f;return(f=d().displayProperties)==null?void 0:f.disableNewLines},
onInput:K.onInput,characterLimit:K.characterLimit,validation:K.validation,rows:function(){var f;return(f=d().displayProperties)==null?void 0:f.rows}}))},"pf");_.KUz=_.C8(function(K){var d=K.data;return _.U("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.U(rf,{text:K.text,label:function(){var f;return(f=d().contentProperties)==null?void 0:f.labelText},
placeholder:function(){var f;return(f=d().contentProperties)==null?void 0:f.placeholderText},
hint:function(){var f;return(f=d().contentProperties)==null?void 0:f.hintText},
outline:function(){var f;return!((f=d().displayProperties)==null?0:f.hideBorder)},
overflowStyle:function(){var f;return((f=d().displayProperties)==null?0:f.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var f;return(f=d().displayProperties)==null?void 0:f.disableNewLines},
onInput:K.onInput,characterLimit:K.characterLimit,validation:K.validation,rows:function(){var f;return(f=d().displayProperties)==null?void 0:f.rows}}))},"qf");var dqE=_.C8(function(K){var d=_.y(_.am(function(){var NJ,$z;return((NJ=K.data().structuredContextNoteFormSchema)==null?0:($z=NJ.initialValues)==null?0:$z.noteBody)?K.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),f=d.next().value,H=d.next().value;
d=_.y(_.am(function(){K.data();return!1}));
var D=d.next().value,S=d.next().value;d=_.y(_.am(function(){K.data();return!1}));
var n=d.next().value,u=d.next().value;d=_.y(_.am(function(){var NJ,$z;return((NJ=K.data().structuredContextNoteFormSchema)==null?0:($z=NJ.initialValues)==null?0:$z.timestamp)?K.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var a=d.next().value,R=d.next().value;d=_.y(_.am(function(){K.data();return!1}));
var F=d.next().value,z=d.next().value;d=_.y(_.am(function(){var NJ,$z;return((NJ=K.data().structuredContextNoteFormSchema)==null?0:($z=NJ.initialValues)==null?0:$z.sources)?[K.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var v=d.next().value,g=d.next().value;d=_.y(_.am(function(){K.data();return!1}));
var N=d.next().value,h=d.next().value;d=_.y(_.am(function(){return!1}));
var m=d.next().value,T=d.next().value;_.tR(function(){var NJ;_.zc5((NJ=K.data().structuredContextNoteFormSchema)==null?void 0:NJ.id,{isSubmitting:m,onSubmit:function(){T(!0);var $z=EQ5(f(),a(),v(),K.data()),hN=_.eq().resolve(_.pQ);$z&&hN&&hN.resolveCommand($z,{commandController:{onSuccess:function(){T(!1)}}})},
isValid:function(){return D()&&!n()&&!F()&&!N()}})});
var r=function(NJ){if(NJ!==void 0&&(H(NJ),!D()&&NJ.length>0&&S(!0),D())){var $z=O77(K.data());if($z){var hN=$z.minLength;$z=$z.maxLength;hN&&NJ.length<hN?u(!0):$z&&NJ.length>$z?u(!0):u(!1)}}},J=function(NJ){if(NJ!==void 0){R(NJ);
if(NJ.length>0){var $z,hN,bo,xz,qJ=Yoz(($z=K.data())==null?void 0:(hN=$z.structuredContextNoteFormSchema)==null?void 0:(bo=hN.fieldSchemas)==null?void 0:(xz=bo.timestamp)==null?void 0:xz.validationSchema);if(qJ&&($z=qJ.regex)&&!(new RegExp($z)).test(NJ)){z(!0);return}}z(!1)}},L=function(NJ){if(NJ!==void 0){var $z=NJ.split(/[ \n]/).map(function(hN){return hN.trim()});
g($z);if(NJ.length>0)for(NJ=_.y($z),$z=NJ.next();!$z.done;$z=NJ.next())if(!$eS($z.value)){h(!0);return}h(!1)}},fB=function(){return{validate:function(NJ){if(D()){var $z=O77(K.data());
if($z){var hN=$z.minLength;$z=$z.translations;if(hN&&NJ.length<hN)return $z==null?void 0:$z.minLengthErrorMessage}}}}},w=function(){var NJ=O77(K.data()),$z=NJ==null?void 0:NJ.maxLength,hN;
NJ=NJ==null?void 0:(hN=NJ.translations)==null?void 0:hN.maxLengthErrorMessage;if($z&&NJ)return{maxChars:$z,errorMessage:NJ}},yO=function(){return{validate:function(NJ){if(NJ){var $z,hN,bo,xz,qJ=Yoz(($z=K.data())==null?void 0:(hN=$z.structuredContextNoteFormSchema)==null?void 0:(bo=hN.fieldSchemas)==null?void 0:(xz=bo.timestamp)==null?void 0:xz.validationSchema);
if(qJ&&($z=qJ.regex,qJ=qJ.translations,$z&&!(new RegExp($z)).test(NJ)))return qJ==null?void 0:qJ.regexErrorMessage}}}},FX=function(){return{validate:function(NJ){if(NJ){var $z,hN,bo,xz,qJ=oQw(($z=K.data())==null?void 0:(hN=$z.structuredContextNoteFormSchema)==null?void 0:(bo=hN.fieldSchemas)==null?void 0:(xz=bo.sources)==null?void 0:xz.validationSchema);
if(qJ&&($z=qJ.translations,$z==null?0:$z.selectedErrorMessage))for(NJ=NJ.split(/[ \n]/).map(function(Y8){return Y8.trim()}),NJ=_.y(NJ),hN=NJ.next();!hN.done;hN=NJ.next())if(!$eS(hN.value))return NJ=void 0,(NJ=$z)==null?void 0:NJ.selectedErrorMessage}}}};
return _.U("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.U("div",{class:"ytStructuredContextNoteViewModelTextField"},_.U(_.z1,{data:function(){var NJ;return(NJ=K.data())==null?void 0:NJ.noteContents}},{textFormFieldViewModel:function(NJ){return _.U(_.KUz,{data:NJ.data,
onInput:r,validation:fB,characterLimit:w})},
textFieldViewModel:function(NJ){return _.U(_.pyE,{data:NJ.data,onInput:r,validation:fB,characterLimit:w})}})),_.U("div",{class:"ytStructuredContextNoteViewModelTextField"},_.U(_.z1,{data:function(){var NJ;
return(NJ=K.data())==null?void 0:NJ.noteTimestamp}},{textFormFieldViewModel:function(NJ){return _.U(_.KUz,{data:NJ.data,
onInput:J,validation:yO})},
textFieldViewModel:function(NJ){return _.U(_.pyE,{data:NJ.data,onInput:J,validation:yO})}})),_.U("div",{class:"ytStructuredContextNoteViewModelTextField"},_.U(_.z1,{data:function(){var NJ;
return(NJ=K.data())==null?void 0:NJ.noteSources}},{textFormFieldViewModel:function(NJ){return _.U(_.KUz,{data:NJ.data,
onInput:L,validation:FX})},
textFieldViewModel:function(NJ){return _.U(_.pyE,{data:NJ.data,onInput:L,validation:FX})}})))},"rf");
dqE.idomCompat=!0;_.sP(dqE,"yt-structured-context-note-view-model",{props:{data:_.rs}});var fKl=_.C8(function(K){var d=_.y(_.am(function(){var S;if((S=K.controlled)==null?0:S.call(K))return[];var n;return(((n=K.data())==null?void 0:n.chips)||[]).map(function(u){u=_.P(u,_.hQ);if(u==null?0:u.selected)return hcy(u.chipValue)}).filter(function(u){return u!==void 0})})),f=d.next().value,H=d.next().value,D=function(S){var n=hcy(S.chipValue);
if(n!==void 0){var u;if((u=K.controlled)==null?0:u.call(K))return void K.controlled().onTap(n);S=f().includes(n)?[].concat(_.Me(f().filter(function(R){return R!==n}))):[].concat(_.Me(f()),[n]);
H(S);var a;if((a=K.uncontrolled)==null?0:a.call(K))K.uncontrolled().onUpdate(S)}};
return _.U("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.U(_.v_,{each:function(){return K.data().chips||[]}},function(S){return _.U("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.U(_.wlB,{data:function(){return _.P(S,_.hQ)},
selected:function(){var n;if(n=_.P(S,_.hQ)){var u=hcy(n.chipValue);if(u!==void 0){var a;n=((a=K.controlled)==null?0:a.call(K))?K.controlled().selectedValues.includes(u):f().includes(u)}else n=void 0}else n=!1;return n},
callback:D}))}))},"sf");var Hnw=_.C8(function(K){var d=K.data;var f=function(){var u;return((u=d())==null?void 0:u.flowStateKey)||""},H=_.yF(_.B$,f),D=function(){var u;
return(u=_.P(H(),Y7l))==null?void 0:u.chips},S=function(u){if(u!==void 0){var a=D()||[];
a=a.find(function(R){return R===u})?a.filter(function(R){return R!==u}):[].concat(_.Me(a),[u]);
a=Object.assign({},H(),{feedbackFormFlowState:Object.assign({},_.P(H(),Y7l),{chips:a})});_.q7(_.nt("flowStateEntity",f(),a))}},n=function(){var u;
return _.P((u=d())==null?void 0:u.inputBox,t45)};
K=_.iR(function(u){var a=n();a=!(a==null?0:a.maxChars)||u.length<=a.maxChars;u=Object.assign({},H(),{feedbackFormFlowState:Object.assign({},_.P(H(),Y7l),{detail:u}),abuseReportFlowState:Object.assign({},_.P(H(),fP),{navigationEnabled:a})});_.q7(_.nt("flowStateEntity",f(),u))},150);
return _.U("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.U("div",{class:"ytFeedbackFormViewModelChips"},_.U(_.z1,{data:function(){var u;return(u=d())==null?void 0:u.chipSelection}},{chipSelectionFormFieldViewModel:function(u){return _.U(fKl,{data:u.data,
controlled:function(){return{selectedValues:D()||[],onTap:S}}})}})),_.U("div",{class:"ytFeedbackFormViewModelInputBox"},_.U(rf,{text:function(){var u;
return(u=_.P(H(),Y7l))==null?void 0:u.detail},
placeholder:function(){var u;return((u=n())==null?void 0:u.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var u=n();if(u&&u.maxChars)return{maxChars:u.maxChars,errorMessage:u.maxCharsExceededErrorMessage||""}},
onInput:K})),_.U("div",{class:"ytFeedbackFormViewModelFooterText"},_.U(_.ji,{text:function(){return d().footerText}})))},"tf");
Hnw.idomCompat=!0;_.sP(Hnw,"yt-feedback-form-view-model",{props:{data:_.rs}});var Dqz=_.C8(function(K){var d=K.data;var f=function(){return d().flowStateKey||""},H=_.yF($D7,f),D=function(){return _.P(H(),fP)},S=function(){if(_.M("enable_gff_accessibility_fix")){var n=!0,u;
if((u=D())==null?0:u.navigationEnabled){var a;_.me((a=D())==null?void 0:a.navigationCommand);n=!1}u=Object.assign({},H(),{abuseReportFlowState:Object.assign({},D(),{isReportFormDirty:n})});_.q7(_.nt("flowStateEntity",f(),u))}else _.me((n=D())==null?void 0:n.navigationCommand)};
return _.U("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.U("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.U(_.z1,{data:function(){return d().cancelButton}},{buttonViewModel:function(n){return _.U(_.oY,{data:n.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:S})}}),_.U(_.z1,{data:function(){var n;
if(d().navButton){var u=Object;var a=u.assign,R=_.P(d().navButton,_.XN),F=((n=D())==null?0:n.navigationEnabled)||_.M("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",z,v;n=_.P((z=D())==null?void 0:z.navigationCommand,_.oG);z=(v=_.P(n,_.TE))==null?void 0:v.url;u={buttonViewModel:a.call(u,{},R,{state:F,iconName:z?"OPEN_IN_NEW":""})}}else u=void 0;return u}},{buttonViewModel:function(n){return _.U(_.oY,{data:n.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:S})}})))},"uf");
Dqz.idomCompat=!0;_.sP(Dqz,"yt-report-form-bottom-bar-view-model",{props:{data:_.rs}});var VD5=_.C8(function(K){var d=K.nextStep;return _.U("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.U("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.U(_.U5,{icon:function(){return d().iconName||""}})),_.U("div",null,_.U(_.ji,{text:function(){return d().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"vf"),Snc=_.C8(function(K){var d=K.data;
var f,H=(f=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:f(),D=_.yF(_.B$,function(){return d().flowStateKey||""});
return _.U("yt-report-form-confirmation-page-view-model",{class:function(){var S;return((S=_.P(D(),fP))==null?void 0:S.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.U("div",{class:function(){var S;
return((S=_.P(D(),fP))==null?void 0:S.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.U(_.jV,{data:function(){return H&&d().imageDark?d().imageDark:d().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.U("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.U("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return d().confirmationHeader}),_.U("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.U(_.ji,{text:function(){return d().confirmationText}})),_.U("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.U(_.ji,{text:function(){return d().lawEnforcementText}})),
_.U("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return d().whatToExpectHeader}),_.U(_.X,{cond:function(){return d().nextSteps},
then:function(S){return _.U("div",null,_.U(_.v_,{each:S},function(n){return _.U(VD5,{nextStep:n})}))}}),_.U(_.X,{cond:function(){return d().legalReportText},
then:function(S){return _.U("div",null,_.U(_.ji,{text:S,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"wf");
Snc.idomCompat=!0;_.sP(Snc,"yt-report-form-confirmation-page-view-model",{props:{data:_.rs}});var ycw=_.C8(function(K){var d=K.data;var f=function(){var S;return((S=_.P(d().inputBox,t45))==null?void 0:S.maxChars)||500},H=function(){return d().flowStateKey||""},D=_.yF(_.B$,H);
K=_.iR(function(S){S=Object.assign({},D(),{flowFormState:{isValid:S.length<=f()},abuseReportFlowState:{userComments:S,navigationEnabled:!(S.length>f()),isReportFormDirty:!0}});_.TC().dispatch(_.P9("flowStateEntity",H(),S))},150);
_.tR(function(){var S=Object.assign({},D(),{flowFormState:{isValid:!0}});_.TC().dispatch(_.P9("flowStateEntity",H(),S))});
return _.U("yt-report-form-details-page-view-model",{class:function(){var S;return((S=_.P(D(),fP))==null?void 0:S.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.U("h1",{class:function(){var S;
return((S=_.P(D(),fP))==null?void 0:S.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return d().detailsPageHeader}),_.U("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.U(_.ji,{text:function(){return d().bodyText}})),_.U("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.U(rf,{label:function(){var S;
return((S=_.P(d().inputBox,t45))==null?void 0:S.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var S;return{errorMessage:((S=_.P(d().inputBox,t45))==null?void 0:S.maxCharsExceededErrorMessage)||"",maxChars:f()}},
onInput:K})))},"xf");
ycw.idomCompat=!0;_.sP(ycw,"yt-report-form-details-page-view-model",{props:{data:_.rs}});var nFt=_.C8(function(K){var d=K.data;var f=K.selectedKey;var H=K.onSelected;var D=K.groupName;var S=function(){return d().text},n=function(){return d().attributedText},u=function(){return d().subtext},a=function(){return d().attributedSubtext},R=_.U("div",{class:"ytRadioButtonItemViewModelLabel"},_.U(_.X,{cond:S,
then:function(){return _.U("div",null,S)}}),_.U(_.X,{cond:n,
then:function(){return _.U(_.ji,{text:n})}}),_.U(_.X,{cond:u,
then:function(){return _.U("div",{class:"ytRadioButtonItemViewModelSubText"},u)}}),_.U(_.X,{cond:a,
then:function(){return _.U("div",{class:"ytRadioButtonItemViewModelSubText"},_.U(_.ji,{text:a}))}})),F=function(){if(n()){var v;
return(v=n())==null?void 0:v.content}return S()},z=function(){if(a()){var v;
return(v=a())==null?void 0:v.content}return u()};
K={};return _.U("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.U(_.g6,{name:D,checked:function(){return!(f==null||!f()||d().key!==(f==null?void 0:f()))},
onChange:function(v){H==null||H(v.target,d(),D==null?void 0:D())},
labelRenderable:function(){return R},
ariaLabel:function(){return z()?F()+", "+z():F()},
className:_.SC((K.ytRadioButtonItemViewModelSubTitle=function(){return!!d().subtext},K))}))},"yf");_.inZ=_.C8(function(K){var d=K.data;var f=K.onSelected;var H=K.selectedKey;var D=K.groupName;return _.U("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.U("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.U(_.z1,{data:function(){return d().radioButtons}},{radioButtonItemViewModel:function(S){return _.U(nFt,{data:S.data,
onSelected:f,selectedKey:H,groupName:function(){return(D==null?void 0:D())||d().key}})}})))},"zf");var ccK=_.C8(function(K){var d=K.data;var f=_.x7(),H=function(){return d().flowStateKey||""},D=_.yF(_.B$,H),S=function(){return _.P(D(),fP)};
_.ol(function(){var n,u;if(((n=S())==null?0:n.isReportFormDirty)&&((u=S())==null||!u.navigationEnabled)&&_.M("enable_gff_accessibility_fix")){var a;if(((a=S())==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var R;(R=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||R.scrollIntoView()}else{var F;(F=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||F.scrollIntoView()}}});
return _.U("yt-report-form-reason-select-page-view-model",{class:function(){var n;return((n=S())==null?void 0:n.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.U("h1",{class:function(){var n;
return((n=S())==null?void 0:n.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return d().pageHeader}),_.U("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.U(_.ji,{text:function(){return d().bodyText}})),_.U("div",{class:function(){var n;
return((n=S())==null?void 0:n.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.U(_.X,{cond:function(){var n,u;
return((n=S())==null?void 0:n.isReportFormDirty)&&!((u=S())==null?0:u.navigationEnabled)&&_.M("enable_gff_accessibility_fix")},
then:function(){return _.U("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:f},_.U(_.U5,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.U("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return d().emptyReasonSelectErrorMessage}))}}),_.U(_.inZ,{data:function(){return _.P(d().radioButtonGroup,_.W2Z)},
onSelected:function(n,u){n=Object.assign({},D(),{abuseReportFlowState:Object.assign({},S(),{reasonKey:u.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:u.command})});_.q7(_.nt("flowStateEntity",H(),n))},
selectedKey:function(){var n;return(n=S())==null?void 0:n.reasonKey},
groupName:"report-form-reason-select-page"})))},"Af");
ccK.idomCompat=!0;_.sP(ccK,"yt-report-form-reason-select-page-view-model",{props:{data:_.rs}});var uRw=_.C8(function(K){var d=K.data;var f,H=(f=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:f();return _.U("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.U("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.U(_.jV,{data:function(){return H&&d().imageDark?d().imageDark:d().image},
alt:""})),_.U("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.U("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return d().header}),_.U(_.ji,{text:function(){return d().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Bf");
uRw.idomCompat=!0;_.sP(uRw,"yt-report-form-sign-in-page-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=K.data;var f=function(){var R;return(R=d().textInputPlaceholder)==null?void 0:R.content},H=function(R){R=R.target.value.trim();
var F=d().onUpdateText;F&&_.me(F,{form:{userQuery:R}});d().userQuery=R},D=_.iR(function(R){H(R)},150),S=_.cp(function(R){D(R);
return!1}),n=_.cp(function(R){R.key==="Enter"&&(H(R),(R=d().onNextStepCommand)&&_.me(R,{}));
return!1}),u=_.Co(),a=function(){if(_.M("web_hide_explore_hub_until_user_navigates_back_to_home")){var R,F,z;
(z=(F=(R=u.value)==null?void 0:R.closest("ytd-flow-step-renderer"))==null?void 0:F.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||z.click()}};
return _.U("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:u},_.U("div",{class:"ytwTalkToRecsTopCornerButton"},_.U(_.z1,{data:function(){return d().topCornerButton}},{buttonViewModel:_.oY})),_.U("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.U("div",{class:"ytwTalkToRecsTitle"},_.U(_.ji,{text:function(){return d().title}})),_.U("div",{class:"ytwTalkToRecsSubtitle"},_.U(_.ji,{text:function(){return d().subtitle}})),_.U("div",{class:"ytwTalkToRecsChipsShelf"},_.U(_.z1,{data:function(){return d().answersShelf}},
{chipsShelfViewModel:function(R){return _.U(_.VzN,{data:R.data,
callback:a})}})),_.U(_.X,{cond:function(){return d().showOpenTextInput&&!_.M("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.U("div",{class:"ytwTalkToRecsUserInputBox"},_.U("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:f,value:function(){return d().userQuery},
"on:input":S,"on:keyup":n}))}})))},"Cf"),"yt-talk-to-recs-view-model",{props:{data:_.rs}});var b7l={sources:[{clientResource:{imageName:"CHECK"}}]};_.aKS=_.C8(function(K){var d=_.Co();K=_.jP(K,{error:void 0});var f=K.data,H=K.error,D=K.onSelected;K=_.y(_.am(function(){return WHt(f())}));
var S=K.next().value,n=K.next().value;r5U(f,function(z){n(z);var v,g,N=lwK((v=f().options)==null?void 0:(g=v[z])==null?void 0:g.value,f().type);D==null||D(N);d.value.focus()});
K=_.cp(function(){if(!f().disabled){var z=f(),v=S(),g=d.value;z.options&&(z=meS(z.options,v,z.label),_.eq().resolve(_.vI).openSheet({viewModel:z},g))}});
var u=_.sen(),a=function(){return!!H()},R=function(){return!!f().disabled},F={};
F=_.SC("ytDropdownViewModelDropdownContainer",(F.ytDropdownViewModelDropdownContainerErrorBorder=a,F.ytDropdownViewModelDropdownContainerDisabled=R,F));return _.U("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.U("div",{class:F,"on:click":K,el:d,role:"combobox",tabindex:0,"on:keydown":u,"aria-invalid":a,"aria-disabled":R,"aria-describedby":function(){return a()?"dropdown-view-model-error":void 0}},_.U("div",{class:"ytDropdownViewModelText"},GfS(f,a,S),A5U(f,S)),_.U("div",{class:"ytDropdownViewModelChevronDown"},
_.U(_.U5,{icon:"CHEVRON_DOWN"}))),TyZ(f,H))},"Df");_.sP(_.C8(function(K){var d=K.data;var f=function(D){var S=QEZ(d());S.videoMetadata||(S.videoMetadata={});S.videoMetadata.sponsorshipsMetadata||(S.videoMetadata.sponsorshipsMetadata={});S.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(D)},H=function(D){var S=QEZ(d());
S.scheduledRedirectMetadata||(S.scheduledRedirectMetadata={});S.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(D)};
return _.U("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.U("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.U("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.U(_.ji,{text:function(){return d().title}}),_.U(_.U5,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.U(_.ji,{text:function(){return d().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.U(_.z1,{data:function(){return d().tierChoices}},{dropdownViewModel:function(D){return _.U("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.U(_.aKS,{data:D.data,
onSelected:f}))}}),_.U(_.z1,{data:function(){return d().startTimeChoices}},{dropdownViewModel:function(D){return _.U("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.U(_.aKS,{data:D.data,
onSelected:H}))}}),_.U(_.ji,{text:function(){return d().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.U("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.U(_.z1,{data:function(){return d().scheduleButton}},{panelFooterViewModel:_.Ta})))},"Ef"),"ytfz-schedule-fanzone-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=K.data;K=K.className===void 0?"":K.className;var f=_.yF($D7,function(){return d().flowStateEntityKey||""}),H={};
H=_.SC("ytFlowBottomBarViewModelFlowBottomBarButtons",(H.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},H));
var D={},S=_.SC("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",H,(D.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},D.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},D));
D={};var n=_.SC("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",H,(D.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},D.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},D));
H={};H=_.SC("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
H));
return _.U("yt-flow-bottom-bar-view-model",{class:_.SC("ytFlowBottomBarViewModelHost",K)},_.U(_.X,{cond:function(){var u;return(u=d())==null?void 0:u.textSection},
then:function(u){return _.U("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.U(_.ji,{text:u}))}}),_.U("div",{class:H},_.U(_.z1,{data:function(){return d().secondaryButton}},{buttonViewModel:function(u){return _.U(_.oY,{data:u.data,
className:n})}}),_.U(_.z1,{data:function(){return d().primaryButton}},{buttonViewModel:function(u){return _.U(_.oY,{data:u.data,
className:S,buttonOverrides:function(){var a;return{disabled:!((a=f())==null||!a.primaryButtonDisabled)}}})}})))},"Ff"),"yt-flow-bottom-bar-view-model",{props:{data:_.rs,
className:_.JJ}});var IKw="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),qc=function(){var K=_.q.apply(this,arguments)||this;K.enableScrollingFix=!0;K.bottomBar=!1;K.hideBottomBar=!1;K.fitContent=!1;return K};
_.O(qc,_.q);_.V=qc.prototype;_.V.ready=function(){_.M("enable_pdp_icon_prefetch")&&_.N0t(_.eq().resolve(_.Vl),0,IKw)};
_.V.focus=function(K){this.topBar?_.LA(this.topBar,K):this.paperDialog.focus(K)};
_.V.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16812_scroller&&(this.JSC$16812_scroller.dialogElement=this.paperDialog,this.JSC$16812_scroller.attached&&typeof this.JSC$16812_scroller.attached==="function"&&this.JSC$16812_scroller.attached())};
_.V.onDataChanged=function(){var K;this.fitContent=!((K=this.data)==null||!K.fitContent);var d;this.bottomBar=!((d=this.data)==null||!d.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.V.onProgressChanged=function(){var K,d,f=((d=(K=this.data)==null?void 0:K.progress)!=null?d:0)*100;this.progressElement.style.width=f+"%"};
_.V.isProgressHidden=function(){var K;return!((K=this.data)==null?0:K.progress)};
_.V.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(K){return _.M("enable_wiz_next_lp2_msof")&&K&&!K.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.x$.Object.defineProperties(qc.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var K;return _.M("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.P((K=this.data)==null?void 0:K.content,b0U)}}});
qc.prototype.onProgressChanged=qc.prototype.onProgressChanged;qc.prototype.onDataChanged=qc.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],qc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qc.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],qc.prototype,"enableScrollingFix",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],qc.prototype,"bottomBar",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],qc.prototype,"hideBottomBar",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],qc.prototype,"containsExploreHub",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],qc.prototype,"fitContent",void 0);_.x([_.n8("#progress"),_.B("design:type",HTMLElement)],qc.prototype,"progressElement",void 0);
_.x([_.n8("#scroller"),_.B("design:type",Object)],qc.prototype,"JSC$16812_scroller",void 0);_.x([_.n8("ytd-flow-top-bar-renderer"),_.B("design:type",HTMLElement)],qc.prototype,"topBar",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qc.prototype,"onDataChanged",null);_.x([_.SP("data.progress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qc.prototype,"onProgressChanged",null);
qc=_.x([_.Q({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],qc);
_.C(qc,"ytd-flow-step-renderer",function(){if(K$c!==void 0)return K$c;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return K$c=K},{mode:1});var UqP=function(K){this.resolveCommand=K;this.steps={}},R7S=function(K,d){d=_.y(d||[]);
for(var f=d.next();!f.done;f=d.next()){f=f.value;var H=Object.values(f)[0],D=void 0;if((D=H)==null?0:D.stepId)K.steps[H.stepId]=f}},XCt=function(K,d){var f,H,D,S,n;
return _.c(function(u){if((f=K.state)==null||!f.currentStepId)return u.return(void 0);H=FUc(K);if(!H)return u.return(z7S(K));if(D=_.P(H,_.hTt)){var a;((a=D.screenLoggingData)==null?0:a.screenVeType)&&_.eA(_.cv(),D.screenLoggingData.screenVeType);((S=D)==null?0:S.onStepStartCommand)&&K.resolveCommand((n=D)==null?void 0:n.onStepStartCommand,{})}if(D&&d){a=D;var R,F,z,v;((R=d.flowLoggingData)==null?0:R.eventNamespace)&&((F=a.flowEventData)==null?0:F.eventType)&&((z=a.flowEventData)==null?0:z.eventMetadata)&&
((v=d.flowLoggingData)==null?0:v.flowType)&&(R=_.HW(d.flowLoggingData.eventNamespace,a.flowEventData.eventType,a.flowEventData.eventMetadata),_.De(_.Vm(),R,d.flowLoggingData.flowType));d.steps&&!d.steps.includes(H)&&d.steps.push(H)}return u.return(H)})};
UqP.prototype.back=function(){var K;(K=this.state)!=null&&K.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
UqP.prototype.handleUpdateFlowCommand=function(K){K.steps&&R7S(this,K.steps);K.entityUpdateCommand&&this.resolveCommand(K.entityUpdateCommand,{});K.flowContinuationCommand&&(K=K.flowContinuationCommand)&&(this.getFlowContinuationCommand=K);this.awaitFlowContinuation&&(this.awaitFlowContinuation(FUc(this)),this.awaitFlowContinuation=void 0)};
UqP.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var z7S=function(K){return _.c(function(d){return K.getFlowContinuationCommand?d.return(new Promise(function(f){K.awaitFlowContinuation=f;K.getFlowContinuationCommand&&K.resolveCommand(K.getFlowContinuationCommand,{flow_state:K.state})})):d.return(Promise.resolve(void 0))})},FUc=function(K){var d;
if((d=K.state)!=null&&d.currentStepId)return K.steps[K.state.currentStepId]};var QS=function(){var K=_.q.apply(this,arguments)||this;K.flowState=new UqP(function(d,f){f=f===void 0?{}:f;_.V2.instance.resolveCommand(d,{form:{form:f,element:K.hostElement}})});
K.initialState=!0;K.isLoading=!1;K.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return K};
_.O(QS,_.q);_.V=QS.prototype;_.V.onPopupClosed=function(K){K&&this.hostElement!==K.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.V.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.V.focus=function(K){var d=this;_.bL(function(){var f=_.E(d.hostElement).querySelector("ytd-flow-step-renderer");(f==null?0:f.topBar)?f.focus(K):d.topBar&&_.LA(d.topBar,K)},1)};
_.V.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.V.computeTopBarHidden=function(K){var d;return!((d=_.P(K,_.hTt))==null||!d.topBarOverride)};
_.V.dataChanged=function(){var K=this,d,f;return _.c(function(H){if(H.nextAddress==1){((d=K.data)==null?0:d.steps)&&R7S(K.flowState,K.data.steps);if((f=K.data)==null?0:f.flowContinuationCommand){var D=K.flowState,S=K.data.flowContinuationCommand;S&&(D.getFlowContinuationCommand=S)}return _.I(H,XCt(K.flowState,K.data),2)}K.currentFlowStep=H.yieldResult;_.iQ(H)})};
_.V.flowChanged=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1){if(!K.flow)return f.return();K.flowState.state=K.flow;K.isLoading=!0;return _.I(f,XCt(K.flowState,K.data),2)}d=f.yieldResult;if(!d||K.flow.isLoading)return f.return();K.currentFlowStep=d;K.initialState=!1;K.isLoading=!1;K.autofocusAndRefit();_.iQ(f)})};
_.V.autofocusAndRefit=function(){var K=this,d=_.eq().resolve(_.Zd(_.eb)),f=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),H=document.querySelector("yt-report-form-confirmation-page-view-model"),D=document.querySelector("yt-report-form-details-page-view-model"),S=document.querySelector("yt-report-form-reason-select-page-view-model"),n=document.querySelector("yt-contributor-zero-state-view-model"),
u=document.querySelector("yt-structured-context-note-view-model"),a=document.querySelector("yt-note-view-model");(!f&&d&&d.isKeyBoardInUse()||H||!f&&D||!f&&S||n||u||a)&&_.BA(this.hostElement);_.jW(this,function(){_.Zp(K.hostElement,"yt-refit")})};
_.V.handleUpdateFlowCommand=function(K){this.data&&(K=_.P(K,Eh5),K.targetId===this.data.targetId&&(K.flowContinuationCommand&&(this.data.flowContinuationCommand=K.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(K),this.autofocusAndRefit()))};
_.V.handleFlowNextStepCommand=function(K){this.data&&this.flow&&this.flow.key&&(K=_.P(K,ohy),K.targetId===this.data.targetId&&(K=K.stepId||"",this.ytdReduxBehavior.dispatch(_.P9("flowStateEntity",this.flow.key,{currentStepId:K,stepIdStack:(this.flow.stepIdStack||[]).concat(K)}))))};
_.V.handleFlowPrevStepCommand=function(K){if(this.data&&this.flow&&this.flow.key&&(K=_.P(K,$m7),K.targetId===this.data.targetId)){var d=[].concat(_.Me(this.flow.stepIdStack||[]));d.length>1?(d.pop(),this.ytdReduxBehavior.dispatch(_.P9("flowStateEntity",this.flow.key,{currentStepId:d[d.length-1],stepIdStack:d}))):K.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(K.onFirstStepCommand)}};
_.V.handleYpcCancelRecurrenceCommand=function(K){if(this.data&&this.flow&&this.flow.key&&(K=_.P(K,Gj7),K.targetId===this.data.targetId&&K.endpointCommand)){var d=_.P(this.flow,AAt);d&&_.P(K.endpointCommand,_.hxs)&&(_.P(K.endpointCommand,_.hxs).feedbackData=d.surveyFeedback);this.ytComponentBehavior.resolveCommand(K.endpointCommand)}};
_.V.handlePartialUpdateFlowStateEntity=function(K){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.P9("flowStateEntity",this.flow.key,K,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
QS.prototype.flowChanged=QS.prototype.flowChanged;QS.prototype.dataChanged=QS.prototype.dataChanged;QS.prototype.onPopupClosed=QS.prototype.onPopupClosed;_.x([_.l(_.ou),_.B("design:type",Object)],QS.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],QS.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],QS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],QS.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],QS.prototype,"initialState",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],QS.prototype,"isLoading",void 0);_.x([_.A(),_.B("design:type",Object)],QS.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],QS.prototype,"currentFlowStep",void 0);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],QS.prototype,"onPopupClosed",null);_.x([_.A({selectorArgs:["data.flowStateEntityKey"],selector:$D7}),_.B("design:type",Object)],QS.prototype,"flow",void 0);_.x([_.n8("ytd-flow-top-bar-renderer"),_.B("design:type",HTMLElement)],QS.prototype,"topBar",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],QS.prototype,"dataChanged",null);_.x([_.an("flow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],QS.prototype,"flowChanged",null);QS=_.x([_.Q({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],QS);
_.vF5=_.eP()(QS,"ytd-flow-root-renderer",function(){if(pRE!==void 0)return pRE;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return pRE=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var MDc;var KP=null;_.sP(_.C8(function(K){return _.U("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.U("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.U(_.ji,{text:function(){return K.data().text}}),_.U("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Gf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.rs}});var P8Z=_.C8(function(K){var d=K.playerControlsProps;var f=K.isShortsPage;return _.U("yt-bigboard",null,_.U(_.X,{cond:function(){return d().isDragging},
then:function(){return _.U("div",{class:"ytBigboardStoryboardHost"},_.U(_.iEz,{progressBarProps:d,isShortsPage:f}))}}))},"Hf");
P8Z.idomCompat=!0;_.ja={ACCOUNT_LABEL:df("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:df("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:df("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:df("AD_BADGE_HINT"),AD_BADGE_TEXT:df("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:df("ALL_CHANNELS_LABEL"),AMBIENT_MODE:df("AMBIENT_MODE"),AMBIENT_MODE_OFF:df("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:df("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:df("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:df("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:df("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:df("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:df("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:df("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:df("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:df("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:df("AUTOPLAY_UP_NEXT_IN"),BACK:df("BACK"),CANCEL:df("CANCEL"),CHANNEL_SWITCHER_LABEL:df("CHANNEL_SWITCHER_LABEL"),CLOSE:df("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:df("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:df("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:df("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:df("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:df("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:df("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:df("COMMENT_MODAL_CONTENT"),CONFIRM_OK:df("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:df("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:df("COPIED_TO_CLIPBOARD"),COPY:df("COPY"),COPY_DEBUG_INFO:df("COPY_DEBUG_INFO"),COPY_EMBED_CODE:df("COPY_EMBED_CODE"),COPY_LINK_LABEL:df("COPY_LINK_LABEL"),
COPY_VIDEO_URL:df("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:df("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:df("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:df("DELETE_FROM_DOWNLOADS"),DIALOG:df("DIALOG"),DONE:df("DONE"),DOWNLOAD:df("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:df("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:df("FLAG_CONFIRM"),FLAG_CONTENT:df("FLAG_CONTENT"),FLAG_LABEL:df("FLAG_LABEL"),FLAG_TITLE:df("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:df("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:df("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:df("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:df("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:df("HIDE_SEARCH_FILTERS_LABEL"),HOME:df("HOME","Home"),INVALID_RESPONSE_RECEIVED:df("INVALID_RESPONSE_RECEIVED"),LIBRARY:df("LIBRARY","Library"),LISTENING:df("LISTENING"),LOADING:df("LOADING"),LONG_PRESS_MIC_TO_SPEAK:df("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:df("LOOP"),MENU_DESKTOP:df("MENU_DESKTOP"),MENU_EXIT:df("MENU_EXIT"),
MENU_FEEDBACK:df("MENU_FEEDBACK"),MENU_HELP:df("MENU_HELP"),MENU_IMPRESSUM:df("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:df("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:df("MENU_SETTINGS"),MENU_SIGN_IN:df("MENU_SIGN_IN"),MENU_TITLE:df("MENU_TITLE"),MENU_YOUR_DATA:df("MENU_YOUR_DATA"),MORE_INFO:df("MORE_INFO"),MORE_OPTIONS:df("MORE_OPTIONS"),MUTE_VOLUME:df("MUTE_VOLUME"),NEW_PLAYLIST:df("NEW_PLAYLIST"),NEXT_VIDEO:df("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:df("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:df("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:df("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:df("NOT_FOUND_TITLE"),NO_DOWNLOADS:df("NO_DOWNLOADS"),NO_MIC_INPUT:df("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:df("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:df("OOPS_MESSAGE"),OPEN_APP:df("OPEN_APP"),OPEN_YOUTUBE:df("OPEN_YOUTUBE"),PAUSE:df("PAUSE"),PLAY:df("PLAY"),PLAYER_CAPTION:df("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:df("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:df("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:df("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:df("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:df("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:df("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:df("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:df("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:df("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:df("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:df("PLAYER_MINIMIZE"),PLAYER_NEXT:df("PLAYER_NEXT"),PLAYER_PAUSE:df("PLAYER_PAUSE"),PLAYER_PLAY:df("PLAYER_PLAY"),
PLAYER_PREVIOUS:df("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:df("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:df("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:df("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:df("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:df("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:df("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:df("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:df("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:df("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:df("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:df("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:df("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:df("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:df("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:df("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:df("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:df("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:df("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:df("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:df("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:df("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:df("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:df("PLAY_ALL"),PLEASE_FIX_ERRORS:df("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:df("PREVIOUS_VIDEO"),PRIVACY_POLICY:df("PRIVACY_POLICY"),RELOAD:df("RELOAD"),REQUIRED_LABEL:df("REQUIRED_LABEL"),SAVE_PLAYLIST:df("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:df("SCRUB_SLIDE_USER_EDU"),SEARCH:df("SEARCH","Search"),SEARCH_APPEND_LABEL:df("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:df("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:df("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:df("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:df("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:df("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:df("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:df("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:df("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:df("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:df("SEEK_SLIDER"),SETTINGS_LABEL:df("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:df("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:df("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:df("SHOW_LESS"),SHOW_MORE:df("SHOW_MORE"),SHOW_PLAYER_CONTROLS:df("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:df("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:df("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:df("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:df("SIGN_IN_ON_WEB"),STABLE_VOLUME:df("STABLE_VOLUME"),
STABLE_VOLUME_OFF:df("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:df("STABLE_VOLUME_ON"),STATS_FOR_NERDS:df("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:df("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:df("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:df("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:df("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:df("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:df("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:df("TIMESTAMP_SECONDS"),TOGGLE_OFF:df("TOGGLE_OFF"),
TOGGLE_ON:df("TOGGLE_ON"),TRENDING:df("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:df("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:df("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:df("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:df("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:df("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:df("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:df("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:df("VIDEO_LINK_LABEL")};var gF7=_.C8(function(K){var d=K.playerApi;K=_.Co(function(H){ky(H,36843)});
var f=df("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.U("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.U("button",{el:K,class:"ytPlayerControlsJumpForwardButtonButton",title:f,"aria-label":f,"on:click":_.cp(function(){we(36843);d&&d().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.U("span",null,_.U(_.U5,{icon:"FAST_FORWARD"}))))},"If");var OnE=_.C8(function(K){var d=K.appApi;K=_.Co(function(H){ky(H,62946)});
var f=df("OPEN_IN_MINIPLAYER");return _.U("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.U("button",{el:K,class:"ytMiniplayerButtonButton",title:f,"aria-label":f,"on:click":_.cp(function(){we(62946);var H,D;(D=(H=d()).openInMiniplayer)==null||D.call(H);return!1})},_.U(_.U5,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Jf");var NQP=_.C8(function(K){var d=K.playerApi;K=_.Co(function(S){ky(S,142812)});
var f=_.y(_.cC(!1,void 0,"I3VCyb")),H=f.next().value,D=f.next().value;f=function(){return df("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(H()?1:2)})};
return _.U("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.U("button",{el:K,class:"ytPlaybackSpeedButtonButton",title:f,"aria-label":f,"on:click":_.cp(function(){we(142812);if(d){var S=d(),n=H();S.setPlaybackRate(n?1:2);D(!H())}return!1})},_.U("span",null,_.U(_.U5,{icon:function(){return H()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Kf");var Yn5=_.C8(function(K){var d=K.title;var f=K.ariaLabel;var H=K.icon;var D=K.command;var S=K.veType;K=_.Co(function(n){S&&ky(n,S())});
return _.U("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.U("button",{el:K,class:"ytdThumbnailOverlayButtonButton",title:d,"aria-label":f,"on:click":_.cp(function(){S&&we(S());D&&_.eq().resolve(_.pQ).resolveCommand(D())})},_.U(_.U5,{icon:H})))},"Lf");var tD5=["en-CA","en","es-MX","fr-CA"];var oFK=_.C8(function(K){var d=_.jP(K,{isOverlay:!1}),f=d.captionIconType,H=d.onClick;K=d.ariaLabel;var D=d.ariaPressed,S=d.isOverlay;d=_.Co(function(a){ky(a,127299)});
var n=_.cp(function(a){we(127299);H==null||H(a);return!1}),u={};
return _.U("ytm-closed-captioning-button",{class:_.SC("ytmClosedCaptioningButtonHost",(u.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return f()===-1&&S()},u.ytmClosedCaptioningButtonIconDisabled=function(){return f()===-1&&!S()},u))},_.U("button",{el:d,
class:"ytmClosedCaptioningButtonButton",title:K,"aria-label":K,"aria-pressed":D,"on:click":n},_.U(_.U5,{icon:function(){var a="";var R=_.aS().get("hl");R=!R||tD5.includes(R)?"CLOSED_CAPTION":"SUBTITLES";var F=f();switch(F){case -1:case 0:a=R;break;case 1:a=R+"_FILLED";break;default:_.nE(F)}return a}})))},"Mf");
oFK.idomCompat={callbacks:{onClick:!0}};var sg="";var $qS=_.C8(function(K){var d=K.playerControlsProps,f=K.onClickFn;K=_.zh(function(){var S=d(),n=-1;S.captionsAvailable&&(n=S.captionsEnabled?1:0);return n},void 0,"WecR8e");
var H=_.zh(function(){var S=d();return S.captionsAvailable?_.iB(S.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.iB("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),D=_.zh(function(){var S=d();
S=S.captionsAvailable?S.captionsEnabled:void 0;return S},void 0,"Q17ly");
return _.U("yt-closed-captions-toggle-button",null,_.U(oFK,{captionIconType:K,ariaLabel:H,ariaPressed:D,onClick:function(S){var n=d();if(n.captionsAvailable){var u=n.playerApi;if(u){var a=n.playerApi;if(a){var R=sg;if(R){a=a.getOption("captions","track");var F;sg=(F=a?a.displayName:null)!=null?F:R}else a.getOptions("captions")?(R=bMw(a),sg=R.length?(F=mDi(R))?F.displayName:R[0].displayName:""):sg=""}lat(u);_.M("mweb_disable_set_state_captions_killswitch")&&n.setState({captionsEnabled:!n.captionsEnabled})}}var z,
v;(v=(z=n.appApi).showCaptionsToggleToast)==null||v.call(z,n);f==null||f(S)},
isOverlay:!0}))},"Nf");var EFy=_.C8(function(K){var d=K.data;return _.U("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.U(_.qT,{data:function(){return{type:16,text:_.iX5(d().label)}}}))},"Of");var h7w=_.C8(function(K){var d=_.SC("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return K.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return K.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return K.size()==="small"?K.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
K.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.U("animated-seek-arrows",{class:_.SC("ytPlayerControlsAnimatedSeekArrowsHost")},_.U("span",{class:d}),_.U("span",{class:d}),_.U("span",{class:d}))},"Pf");
h7w.idomCompat=!0;var bnw=_.C8(function(){var K=_.iB("PLAYER_SECONDS",{seconds_placeholder:"30"}),d=_.y(_.cC(!1,void 0,"Yj8msb")),f=d.next().value,H=d.next().value,D=_.y(_.cC(!1,void 0,"r9Z50e"));d=D.next().value;var S=D.next().value;D={};var n=_.SC("jumpForwardOverlayOverlay",(D.jumpForwardOverlayOverlayHidden=d,D));_.tR(function(){var u=null,a=null,R=function(){u!==null&&_.Xm().cancelJob(u);a!==null&&_.Xm().cancelJob(a);S(!0);H(!0);_.pZ(_.Xm(),function(){S(!1)});
u=_.pZ(_.Xm(),function(){S(!0);a=_.pZ(_.Xm(),function(){H(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",R);_.$F(function(){window.removeEventListener("jump-forward-clicked",R)})});
return _.U("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.U(_.X,{cond:f,then:function(){return _.U("div",{class:n},_.U(h7w,{direction:1,size:"large"}),_.U("div",null,K))}}))},"Qf");var H0P=_.ja.MUTE_VOLUME,f4w=_.ja.UNMUTE_VOLUME,mqw=_.C8(function(K){var d=K.muteIconType;var f=K.onClick;var H=K.useOutlineIcon;K=_.Co(function(S){ky(S,28662)});
var D=function(){return Dmz(d(),H==null?void 0:H()).ariaLabel};
return _.U("ytm-mute-button",{class:"ytmMuteButtonHost"},_.U("button",{el:K,class:"ytmMuteButtonButton",title:D,"aria-label":D,"on:click":_.cp(function(S){we(28662);f==null||f(S);return!1})},_.U("span",null,_.U(_.U5,{icon:function(){return Dmz(d(),H==null?void 0:H()).iconName}}))))},"Rf");var lKw=_.C8(function(K){var d=K.volumeProps;var f=K.onClickFn;var H=K.useOutlineIcon;return _.U("yt-mute-toggle-button",null,_.U(mqw,{muteIconType:function(){var D=d(),S=!_.M("mweb_treat_zero_volume_as_muted_killswitch")&&D.volume===0;return D.volumeMuted||S?0:1},
onClick:function(D){var S=d().playerApi;S&&(S.isMuted()?S.unMute():S.mute(!1));f==null||f(D)},
useOutlineIcon:function(){return!(H==null||!H())}}))},"Sf");
lKw.idomCompat=!0;var WUK=_.C8(function(K){var d=K.data;var f=_.Co();return _.U("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:f,"on:animationend":_.cp(function(){f.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.U(_.pI,{command:function(){return d().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.U(_.X,{cond:function(){var H;return(H=d().icon)==null?void 0:H.iconType},
then:function(){return _.U("span",null,_.U(_.U5,{icon:function(){var H;return(H=d().icon)==null?void 0:H.iconType}}))}}),_.U("div",{class:"ytmPaidContentOverlayText"},_.U(_.ji,{text:function(){return d().text}})),_.U(_.X,{cond:function(){return d().navigationEndpoint},
then:function(){return _.U(_.U5,{icon:"CHEVRON_RIGHT"})}})))},"Tf");
WUK.idomCompat=!0;var V4l=[].concat(_.Me([{register:function(K){var d=RTi(K),f;(f=K().playerApi)==null||f.addEventListener("onVolumeChange",d);return function(){}}},
{register:function(K){var d=F2K(K);K=K().playerApi;K==null||K.addEventListener("captionschanged",d);K==null||K.addEventListener("captionssettingschanged",d);K==null||K.addEventListener("onCaptionsTrackListChanged",d);return function(){}}},
{register:function(K){if(!_.M("mweb_screenreader_accessible_player"))return function(){};
var d=zTc(K),f=document.querySelector("video");f==null||f.addEventListener("touchend",d);return function(){f==null||f.removeEventListener("touchend",d)}}},
{register:function(K){if(!_.M("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var d=zTc(K),f=document.querySelector("video");f==null||f.addEventListener("focus",d);return function(){f==null||f.removeEventListener("focus",d)}}}]),[{register:function(K){var d=uTP(K),f;
(f=K().playerApi)==null||f.addEventListener("onStateChange",d);return function(){}}},
{register:function(K){var d=a4c(K),f;(f=K().playerApi)==null||f.addEventListener("onPlaybackRateChange",d);return function(){}}},
{register:function(K){var d=I4t(K),f;(f=K().playerApi)==null||f.addEventListener("onVideoDataChange",d);return function(){}}},
{register:function(K){var d=UmU(K),f,H;(f=K())==null||(H=f.playerApi)==null||H.addEventListener("onVideoProgress",d);return function(){}}}]);var Ghl=_.C8(function(K){var d=K.data;var f=function(){return _.iB("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+d().playbackRate})};
return _.U(_.X,{cond:function(){return d().playbackRate&&d().playbackRate!==1},
then:function(){return _.U("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.U("div",{class:"ytPlaybackRateOverlayOverlay"},_.U(h7w,{direction:1,size:"small"}),_.U("div",{class:"ytPlaybackRateOverlayLabel"},f)))}})},"Uf");var AcK=_.C8(function(K){var d=K.data;return _.U("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.U(_.X,{cond:function(){var f,H=(f=d())==null?void 0:f.playerResponse,D;return H==null?void 0:(D=H.paidContentOverlay)==null?void 0:D.paidContentOverlayRenderer},
then:function(f){return _.U(WUK,{data:f})}}))},"Wf"),TQ5=_.C8(function(K){var d=K.props;
var f=K.data;var H=K.options;var D=function(){var R,F,z,v;return(R=f())==null?void 0:(F=R.playerResponse)==null?void 0:(z=F.playerConfig)==null?void 0:(v=z.inlinePlaybackConfig)==null?void 0:v.showAudioControls},S=function(){var R,F;
if(D()&&((R=H())==null?void 0:(F=R.additionalButton)==null?void 0:F.button)!==void 0){var z,v,g;R=(z=f())==null?void 0:(v=z.playerApi)==null?void 0:(g=v.getSize())==null?void 0:g.height;if(!(R===void 0||R<180)){var N,h;return(N=H())==null?void 0:(h=N.additionalButton)==null?void 0:h.button}}},n=function(){var R,F;
return(R=H())==null?void 0:(F=R.additionalButton)==null?void 0:F.thumbnailOverlayButtonRenderers},u=function(){var R,F;
return(R=H())==null?void 0:(F=R.additionalButton)==null?void 0:F.thumbnailOverlayButtonViewModels},a=function(){var R=[_.U(lKw,{volumeProps:d}),
_.U($qS,{playerControlsProps:d})];S()===1&&R.push(_.U(gF7,{playerApi:function(){return d().playerApi}}));
S()===2&&R.push(_.U(OnE,{appApi:function(){return d().appApi}}));
S()===3&&R.push(_.U(NQP,{playerApi:function(){return d().playerApi}}));
var F=n();if(S()===4&&F){F=_.y(F);for(var z=F.next(),v={};!z.done;v={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$51:void 0,command$jscomp$567:void 0},z=F.next()){z=z.value;v.tooltip$jscomp$2=z.tooltip;var g=void 0,N=void 0;v.ariaLabel$jscomp$19=((g=z.accessibility)==null?void 0:(N=g.accessibilityData)==null?void 0:N.label)||v.tooltip$jscomp$2;g=void 0;v.icon$jscomp$51=(g=z.icon)==null?void 0:g.iconType;v.command$jscomp$567=z.command;v.tooltip$jscomp$2&&v.ariaLabel$jscomp$19&&v.icon$jscomp$51&&
R.push(_.U(Yn5,{title:function(h){return function(){return h.tooltip$jscomp$2}}(v),
ariaLabel:function(h){return function(){return h.ariaLabel$jscomp$19}}(v),
icon:function(h){return function(){return h.icon$jscomp$51}}(v),
command:function(h){return function(){return h.command$jscomp$567}}(v)}))}}F=u();
if(S()===4&&F)for(F=_.y(F),z=F.next(),v={};!z.done;v={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$568:void 0},z=F.next())z=z.value,v.tooltip$jscomp$3=z.title,v.ariaLabel$jscomp$20=z.accessibilityText||v.tooltip$jscomp$3,v.icon$jscomp$52=z.iconName,v.command$jscomp$568=_.$A(z.onTap),v.tooltip$jscomp$3&&v.ariaLabel$jscomp$20&&v.icon$jscomp$52&&R.push(_.U(Yn5,{title:function(h){return function(){return h.tooltip$jscomp$3}}(v),
ariaLabel:function(h){return function(){return h.ariaLabel$jscomp$20}}(v),
icon:function(h){return function(){return h.icon$jscomp$52}}(v),
command:function(h){return function(){return h.command$jscomp$568}}(v)}));
return R};
return _.U(_.X,{cond:D,then:function(){return _.U("div",{class:"ytInlinePlayerControlsTopRightControls"},_.U(_.v_,{each:a},function(R){return _.U("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.U("div",{class:"ytInlinePlayerControlsButtonIcon"},R))}))}})},"Xf"),QlZ=_.C8(function(K){var d=K.props;
var f=K.data;var H=K.options;K={};K=_.SC("ytInlinePlayerControlsBottomRightControls",(K.ytInlinePlayerControlsBottomRightControlsHidden=function(){var D;return vhy(f(),H())&&((D=H())==null?void 0:D.insetProgressBar)&&(d().isHovering||d().isDragging)},K));
return _.U("div",{class:K},_.U(rcw,{data:f}),_.U(_.X,{cond:function(){var D;return!((D=H())==null?0:D.hideTimeDisplay)},
then:function(){return _.U(qnP,{props:d,data:f})}}))},"Yf"),rcw=_.C8(function(K){var d=K.data;
return _.U(_.z1,{data:function(){var f;return pFP((f=d())==null?void 0:f.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:EFy})},"Zf"),qnP=_.C8(function(K){var d=K.props;
var f=K.data;return _.U(_.X,{cond:function(){return d().isLive},
then:function(){return _.U(jlE,null)},
else:function(){return _.U(C8y,{props:d,data:f})}})},"$f"),C8y=_.C8(function(K){var d=K.props;
var f=K.data;var H=_.zh(function(){var D;return dmi((D=f())==null?void 0:D.thumbnailOverlays)},void 0,"kUmuA");
return _.U("div",{class:_.SC("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.ja.PLAYER_TIME_ELAPSED+" "+_.vRY(d().playedTime)}},_.U(_.qT,{data:function(){var D=_.vRY(d().videoDuration-d().playedTime);
return Object.assign({},{type:16,text:D},H())}}))},"ag"),jlE=_.C8(function(){return _.U("div",{class:_.SC("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.U(_.qT,{data:{type:17,
text:_.ja.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"bg"),xqP=_.C8(function(K){var d=K.props;
var f=K.data;var H=K.options;return _.U(_.R5c,{progressBarProps:d,config:function(){var D,S=_.P((D=f())==null?void 0:D.multiMarkersPlayerBar,_.fDs),n;D=((n=H())==null?0:n.insetProgressBar)?2:1;var u;n=(u=H())==null?void 0:u.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:D,chapterData:S,isInlinePlayback:!0,doSeekOnClick:n,playheadDotBehavior:n?1:0}}})},"cg");_.sP(_.C8(function(K){var d=K.data;var f=K.appApi;var H=K.options;var D=cAS(d,XRt(f));K={};f={};return _.U("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.U("div",{class:_.SC("ytInlinePlayerControlsDarkenedOverlay",(K.ytInlinePlayerControlsDarkenedOverlayShow=function(){return D().isHovering},K))}),_.U(bnw,null),_.U(Ghl,{data:D}),_.U(AcK,{data:d}),_.U(P8Z,{playerControlsProps:D,
isShortsPage:!1}),_.U("div",{class:_.SC((f.ytInlinePlayerControlsControlsHidden=function(){return D().isDragging},f))},_.U(TQ5,{props:D,
data:d,options:H}),_.U(QlZ,{props:D,data:d,options:H})),_.U(_.X,{cond:function(){return vhy(d(),H())},
then:function(){return _.U(xqP,{props:D,data:d,options:H})}}))},"Vf"),"yt-inline-player-controls",{props:{data:_.rs,
appApi:_.JJ,options:_.rs}});var CP=function(){var K=_.q.apply(this,arguments)||this;K.opts=null;K.playerControlsData=null;K.playerControlsAppApi={openInMiniplayer:function(){K.openInMiniplayer()}};
K.playerControlsOptions={};K.noAnimation=!1;K.playbackIntentTriggered=!1;K.positionData=null;K.hidden=!0;K.active=!1;K.playing=!1;K.videoPreviewDataIndex=0;K.JSC$16870_playerPromise=null;K.player=null;K.enableAudioControls=!1;K.hasBeenUnmuted=!1;K.captionsHaveBeenTurnedOff=!1;K.JSC$16870_playerEvents=new Map;K.videoPreviewFetchRequest=null;K.scheduledPreviewEndJobId=null;K.JSC$16870_preventProgressSaveTimer=null;K.watchEndpointStartTimeUpdaterInterval=null;K.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};K.windowOnBlurFn=function(){K.deactivate()};
return K};
_.O(CP,_.q);_.V=CP.prototype;
_.V.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.M("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.V.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16870_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16870_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16870_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16870_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Dm(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Dm(this,this.onScroll))};
_.V.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Dm(this,this.onScroll))};
_.V.onPageTypeChange=function(){this.deactivate()};
_.V.onWindowResized=function(){this.deactivate()};
_.V.onCaptionsChanged=function(K){K=!!K.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!K);this.setCaptionSize()};
_.V.setCaptionSize=function(){var K;if(this.active&&!this.captionsHaveBeenTurnedOff&&((K=this.player)==null?0:K.getCaptionWindowContainerId())){var d;(d=this.player)==null||d.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.V.currentPageAllowed=function(){return!this.isWatchPage};
_.V.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var K=this.positionData,d=K.initialTopPosition,f=K.initialHorizontalPosition;_.f8(this.hostElement,{"--ytd-video-preview-translate-left":K.finalHorizontalPosition-f+"px","--ytd-video-preview-translate-top":K.finalTopPosition-d+"px","--ytd-video-preview-original-top-position":d+"px","--ytd-video-preview-original-horizontal-position":f+"px",
"--ytd-video-preview-initial-scale":"scale("+K.initialScale+")","--ytd-video-preview-width":K.videoPreviewWidth+"px","--ytd-video-preview-height":K.videoPreviewHeight+"px"});return!0};
_.V.handleOpenVideoPreviewAction=function(K){var d=this,f;return _.c(function(H){if(!d.currentPageAllowed())return H.return(0);d.opts=K;return(f=d.alignVideoPreviewForAnimation(K.thumbnail))?H.return(d.activate()):H.return(0)})};
_.V.onMouseLeave=function(K){this.shouldDeactivateOnMouseLeave(K)&&this.deactivate()};
_.V.onScroll=function(){var K,d;((K=this.opts)==null?0:K.isAutoplay)&&((d=this.opts)==null?0:d.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.V.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.oc.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.V.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.V.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",CP.JSC$16869_DEFAULT_CLICK_LOCATION_BEHAVIOR,CP.JSC$16869_CLICK_LOCATION_ID_MAP)};
_.V.shouldDeactivateOnMouseLeave=function(K){K=K.relatedTarget;if(!K)return!0;var d;return(d=this.opts)!=null&&d.mediaRenderer?!_.eZ(this.opts.mediaRenderer).contains(K):!0};
_.V.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.V.onPlaybackStart=function(){var K=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$16870_preventProgressSaveTimer=
_.pZ(_.oc,function(){K.resetPreventProgressSaveTimer()},1E4);
var d;if((d=this.opts)==null?0:d.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.pZ(_.oc,function(){K.hasMultipleVideoPreviews()?K.startPlaybackForNextVideo():K.deactivate()},this.opts.videoPreviewDurationMs);
var f;this.player.setGlobalCrop(((f=this.opts)==null?0:f.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.V.getRoundedCornersSize=function(){var K;if((K=this.opts)==null?0:K.roundedCornersSize){var d;return(d=this.opts)==null?void 0:d.roundedCornersSize}var f;if((f=this.opts)==null?0:f.enableRounding){var H;if(((H=this.opts)==null?void 0:H.thumbnailSize)==="small")return 1;var D;if(((D=this.opts)==null?void 0:D.thumbnailSize)==="medium")return 2;var S;if(((S=this.opts)==null?void 0:S.thumbnailSize)==="large")return 3}return _.M("web_imp_inset_progress_bar")?3:0};
_.V.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.V.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.V.onMediaContainerClick=function(K){this.isShortcutClick(K)||(this.navigateToWatch(K),K.preventDefault(),K.stopPropagation())};
_.V.activate=function(){var K=this,d,f,H,D,S,n,u,a,R;return _.c(function(F){switch(F.nextAddress){case 1:if(!K.currentPageAllowed())return F.return(0);f=(d=K.videoPreviewData)==null?void 0:d.inlinePlaybackEndpoint;H=_.md.instance;if(!f||!H)return F.return(0);K.playbackIntentTriggered=!0;((D=K.opts)==null?0:D.mediaRenderer)&&((S=K.opts)==null||!S.isAutoplay)&&Z7S(K.opts.mediaRenderer,function(){K.deactivate()});
_.jW(K,function(){K.revealPreviewUi()});
n={};_.M("enable_unknown_lact_fix_on_html5")&&(_.eq().resolve(_.Pp),n.lact=_.pA());K.videoPreviewFetchRequest=LHw(H,K.getInlinePlaybackRequestData(K.videoPreviewData),n);_.HF(F,2);return _.I(F,K.videoPreviewFetchRequest,4);case 4:u=F.yieldResult;if(((a=u)==null?void 0:(R=a.playabilityStatus)==null?void 0:R.status)==="OK")return F.return(K.handlePlayerResponse(u));throw Error("Hj");case 2:_.n7(F),K.deactivate();case 3:return F.return(1)}})};
_.V.getInlinePlaybackRequestData=function(K){var d,f=_.M("web_imp_player_mute_params")?((d=this.opts)==null?void 0:d.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:K.inlinePlaybackEndpoint,startPlaybackInMutedState:f}};
_.V.handlePlayerResponse=function(K){var d=this,f,H,D,S,n,u,a,R,F,z;return _.c(function(v){if(v.nextAddress==1){f=d.getInlinePlaybackVideoId();if(!(((H=K)==null?0:(D=H.videoDetails)==null?0:D.videoId)&&d.currentPageAllowed()&&d.playbackIntentTriggered&&d.opts&&f))return d.deactivate(),v.return(0);if(K.videoDetails.videoId!==f)return v.return(0);d.enableAudioControls=!!((S=K.playerConfig)==null?0:(n=S.inlinePlaybackConfig)==null?0:n.showAudioControls);K.trackingParams=d.getInlinePlaybackTrackingParams();
if(!d.inlinePlayer)return v.return(0);u={};if(R=_.P((a=d.videoPreviewData)==null?void 0:a.inlinePlaybackEndpoint,_.qu))u.watch_endpoint=R;if(d.videoPreviewData){var g,N=(g=_.P(d.videoPreviewData.inlinePlaybackEndpoint,_.qu))==null?void 0:g.startTimeSeconds;N!==void 0&&(K.playerConfig||(K.playerConfig={}),K.playerConfig.playbackStartConfig||(K.playerConfig.playbackStartConfig={}),K.playerConfig.playbackStartConfig.startPosition||(K.playerConfig.playbackStartConfig.startPosition={}),K.playerConfig.playbackStartConfig.startSeconds=
N,K.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(N*1E3))}d.inlinePlayer.loadVideoWithPlayerResponse(K,u);if(d.JSC$16870_playerPromise)return v.jumpTo(2);d.JSC$16870_playerPromise=d.inlinePlayer.getPlayerPromise();return _.I(v,d.JSC$16870_playerPromise,3)}v.nextAddress!=2&&(F=v.yieldResult,F.setInlinePreview(!0),F.setSizeStyle(!1,!0),d.ytPlayerListenerBehavior.listenToPlayerEvents(F,d.JSC$16870_playerEvents),d.player=F,_.Zp(d.hostElement,"player-api-ready"));((z=d.opts)==
null?0:z.showPlayerControls)&&d.videoPreviewData&&d.player&&(d.playerControlsData={playerResponse:K,isInlinePlayback:!0,thumbnailOverlays:d.videoPreviewData.thumbnailOverlays,playerApi:d.player},d.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!d.unroundCornersForPlayback,additionalButton:d.getAdditionalButtonType(d.videoPreviewData.thumbnailOverlays)});return v.return(2)})};
_.V.revealPreviewUi=function(){var K=this;this.playbackIntentTriggered&&_.bYz(this,function(){K.hasThumbnailPositionChangedSinceTriggered()||(K.updateActiveState(!0),K.noAnimation=!1)})};
_.V.hasThumbnailPositionChangedSinceTriggered=function(){var K=this.positionData,d=this.getThumbnailPositionData();return(K==null?void 0:K.initialTopPosition)!==(d==null?void 0:d.initialTopPosition)||(K==null?void 0:K.initialHorizontalPosition)!==(d==null?void 0:d.initialHorizontalPosition)};
_.V.getThumbnailPositionData=function(){var K,d;if((d=this.opts)==null||!d.thumbnail)return null;d=this.opts.thumbnail;var f=((K=this.opts)==null?0:K.cropPlayerToFillThumbnailHorizontally)?!1:!0;var H=d.getBoundingClientRect();K=H.width;d=H.height;var D=H.top+window.scrollY;H=H.left+window.scrollX;var S=f?Math.ceil(K):K;f=f?Math.ceil(d):d;var n=K/S;K={initialScale:n,initialTopPosition:D-12*n,finalTopPosition:D-12-(f-d)/2,initialHorizontalPosition:H-(12+(S-K)/2),finalHorizontalPosition:H-12-(S-K)/
2,videoPreviewWidth:S,videoPreviewHeight:f};return K};
_.V.updateActiveState=function(K){this.active=K;this.ytdReduxBehavior.dispatch(_.es({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:K}))};
_.V.stopPlayer=function(K){K=K.resetWatchEndpointStartTime===void 0?!1:K.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(K)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.oc.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.V.deactivate=function(K){K=K===void 0?{}:K;K=K.resetWatchEndpointStartTime===void 0?!1:K.resetWatchEndpointStartTime;KP&&(KP.disconnect(),KP=null);this.stopPlayer({resetWatchEndpointStartTime:K});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.V.isValidThumbnailOverlayButton=function(K,d){K=K.thumbnailOverlayButtonRenderer;var f;return!!K&&!!K.tooltip&&!((f=K.icon)==null||!f.iconType)&&d.includes(K.icon.iconType)};
_.V.isValidThumbnailOverlayButtonViewModel=function(K,d){var f;K=_.P((f=K.thumbnailOverlayButtonViewModel)==null?void 0:f.overlayButton,_.XN);return!!K&&!!K.title&&!!K.iconName&&d.includes(K.iconName)};
_.V.getAdditionalButtonType=function(K){var d=this;if(_.M("web_imp_fastforward_button"))return{button:1};if(_.M("web_imp_miniplayer_button"))return{button:2};if(_.M("web_imp_playback_speed_button"))return{button:3};var f=["BOX_STACK_3"],H=(K||[]).filter(function(S){return d.isValidThumbnailOverlayButton(S,f)}).map(function(S){return S.thumbnailOverlayButtonRenderer});
if(H.length)return{button:4,thumbnailOverlayButtonRenderers:H};var D=["BOX_STACK_3"];K=(K||[]).filter(function(S){return d.isValidThumbnailOverlayButtonViewModel(S,D)}).map(function(S){return _.P(S.thumbnailOverlayButtonViewModel.overlayButton,_.XN)});
if(K.length)return{button:4,thumbnailOverlayButtonViewModels:K}};
_.V.allowCaptions=function(){var K;return!((K=this.opts)==null?0:K.forceCaptionsOff)};
_.V.allowUnmuting=function(){var K;return this.enableAudioControls&&!((K=this.opts)==null?0:K.forceMutedVolume)};
_.V.beginStartTimeUpdater=function(){var K=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.SQ(function(){K.updateWatchEndpointStartTime()},1E3)};
_.V.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.V.resetPreventProgressSaveTimer=function(){this.JSC$16870_preventProgressSaveTimer!==null&&(_.oc.cancelJob(this.JSC$16870_preventProgressSaveTimer),this.JSC$16870_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.V.updateWatchEndpointStartTime=function(K){var d=this.videoPreviewData;if(this.player&&d!=null&&d.inlinePlaybackEndpoint&&!this.JSC$16870_preventProgressSaveTimer){K=K?0:Math.floor(this.player.getCurrentTime());var f=_.P(d.navigationEndpoint,_.qu);f&&(f.startTimeSeconds=K);if(d=_.P(d.inlinePlaybackEndpoint,_.qu))d.startTimeSeconds=K}};
_.V.isShortcutClick=function(K){return!!K&&(K.ctrlKey||K.shiftKey||K.metaKey)};
_.V.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.V.openInMiniplayer=function(){var K=this,d,f;return _.c(function(H){if(H.nextAddress==1){f=(d=K.videoPreviewData)==null?void 0:d.navigationEndpoint;if(!f)return H.return();_.SJ().lockupActivation=!0;return _.I(H,_.jgH(_.eq().resolve(_.$b),f),2)}_.SJ().userActivation=!0;_.iQ(H)})};
_.V.navigateToWatch=function(K){var d,f=(d=this.videoPreviewData)==null?void 0:d.navigationEndpoint;if(f){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(f,K,!0);else{if(_.M("web_thumbnail_to_watch_transition")){var H,D;(H=this.opts)==null||(D=H.onNavigateToWatchCallback)==null||D.call(H)}_.Zp(this.hostElement,"yt-navigate",{endpoint:f})}this.deactivate()}};
_.V.getInlinePlaybackVideoId=function(){var K,d;return(d=_.P((K=this.videoPreviewData)==null?void 0:K.inlinePlaybackEndpoint,_.qu))==null?void 0:d.videoId};
_.V.getInlinePlaybackTrackingParams=function(){var K,d;return(K=this.videoPreviewData)==null?void 0:(d=K.inlinePlaybackEndpoint)==null?void 0:d.clickTrackingParams};
_.V.hasMultipleVideoPreviews=function(){var K;return!!(((K=this.opts)==null?0:K.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.V.startPlaybackForNextVideo=function(){var K;(K=this.opts)!=null&&K.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())};
_.x$.Object.defineProperties(CP.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.opts)==null?0:K.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.opts)==null||!K.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 K;if(Array.isArray((K=this.opts)==null?void 0:K.videoPreviewData)){var d;return(d=this.opts)==null?void 0:d.videoPreviewData[this.videoPreviewDataIndex]}var f;return(f=this.opts)==null?void 0:f.videoPreviewData}}});
CP.prototype.onIsAdsVideoChange=CP.prototype.onIsAdsVideoChange;CP.prototype.onInlinePreviewIsEnabledChange=CP.prototype.onInlinePreviewIsEnabledChange;CP.prototype.optsChanged=CP.prototype.optsChanged;CP.prototype.onMouseLeave=CP.prototype.onMouseLeave;CP.JSC$16869_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);CP.JSC$16869_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"}];
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],CP.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],CP.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],CP.prototype,"componentBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],CP.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.sL.YtSparklesClickLocationBehavior),_.B("design:type",Object)],CP.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],CP.prototype,"opts",void 0);_.x([_.A(),_.B("design:type",Object)],CP.prototype,"playerControlsData",void 0);
_.x([_.A(),_.B("design:type",Object)],CP.prototype,"playerControlsAppApi",void 0);_.x([_.A(),_.B("design:type",Object)],CP.prototype,"playerControlsOptions",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],CP.prototype,"noAnimation",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],CP.prototype,"hidden",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],CP.prototype,"active",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],CP.prototype,"playing",void 0);_.x([_.A({selector:_.Fvo}),_.B("design:type",Boolean)],CP.prototype,"inlinePreviewIsEnabled",void 0);_.x([_.A(),_.B("design:type",String)],CP.prototype,"pagePath",void 0);_.x([_.A({selector:_.tp}),_.B("design:type",Boolean)],CP.prototype,"isWatchPage",void 0);_.x([_.W("videoPreviewData"),_.B("design:type",Object),_.B("design:paramtypes",[])],CP.prototype,"thumbnailData",null);
_.x([_.W("opts","active"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CP.prototype,"hidePlayerControls",null);_.x([_.W("opts"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CP.prototype,"isAdsVideo",null);_.x([_.W("opts"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CP.prototype,"roundedCornersSmall",null);
_.x([_.W("opts"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CP.prototype,"roundedCornersMedium",null);_.x([_.W("opts"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CP.prototype,"roundedCornersLarge",null);_.x([_.W("opts"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CP.prototype,"unroundCornersForPlayback",null);
_.x([_.W("opts","videoPreviewDataIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],CP.prototype,"videoPreviewData",null);_.x([_.A(),_.B("design:type",Object)],CP.prototype,"videoPreviewDataIndex",void 0);_.x([_.n8("#inline-player"),_.B("design:type",Object)],CP.prototype,"inlinePlayer",void 0);_.x([_.VV("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],CP.prototype,"onMouseLeave",null);
_.x([_.an("opts"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CP.prototype,"optsChanged",null);_.x([_.an("inlinePreviewIsEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CP.prototype,"onInlinePreviewIsEnabledChange",null);_.x([_.SP("isAdsVideo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CP.prototype,"onIsAdsVideoChange",null);
CP=_.x([_.Q({is:"ytd-video-preview",disableElementRegistration:!0})],CP);
_.C(CP,"ytd-video-preview",function(){if(MDc!==void 0)return MDc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return MDc=K},{mode:2});
}catch(e){_._DumpException(e)}
try{
var CNU;var x8c;/*

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
*/
_.vP({_template:function(){if(x8c!==void 0)return x8c;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;CNU===void 0&&(CNU=document.createElement("template"));var H=CNU;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return x8c=K},
is:"tp-yt-paper-checkbox",behaviors:[_.Phv],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.jW(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var K=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),d="px",f=K.match(/[A-Za-z]+$/);f!==null&&(d=f[0]);K=parseFloat(K);f=8/3*K;d==="px"&&(f=Math.floor(f),f%2!==K%2&&f++);this.updateStyles({"--paper-checkbox-ink-size":f+
d})}})},
_computeCheckboxClass:function(K,d){var f="";K&&(f+="checked ");d&&(f+="invalid");return f},
_computeCheckmarkClass:function(K){return K?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.vPv._createRipple.call(this)}});var LbZ=new _.Z("radioButtonSurveyOptionRenderer"),B4S=new _.Z("checkboxSurveyOptionRenderer");var J4w;var s6w;var kiZ=0,m7=function(){var K=_.q.call(this)||this;K.selected=!1;K.isOverlay=!1;K.inputId="toggle-option-"+kiZ;kiZ++;return K};
_.O(m7,_.q);m7.prototype.onTap=function(){_.Zp(this.hostElement,"ytd-toggle-option-clicked")};
_.x([_.A(),_.B("design:type",String)],m7.prototype,"label",void 0);_.x([_.A(),_.B("design:type",String)],m7.prototype,"inputId",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],m7.prototype,"selected",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],m7.prototype,"isOverlay",void 0);m7=_.x([_.Q({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.B("design:paramtypes",[])],m7);
_.C(m7,"ytd-toggle-option-renderer",function(){if(s6w!==void 0)return s6w;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return s6w=K},{mode:1});var l5=function(){var K=_.q.apply(this,arguments)||this;K.isToggleOption=!1;K.isOverlay=!1;return K};
_.O(l5,_.q);l5.prototype.onTap=function(K){K.preventDefault();this.data&&(K=!this.data.checked,this.set("data.checked",K),_.Zp(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:K,value:this.data.value}))};
_.x$.Object.defineProperties(l5.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
l5.prototype.onTap=l5.prototype.onTap;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],l5.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],l5.prototype,"isToggleOption",void 0);_.x([_.A(),_.B("design:type",Object)],l5.prototype,"isOverlay",void 0);_.x([_.W("data.responseText"),_.B("design:type",String),_.B("design:paramtypes",[])],l5.prototype,"label",null);
_.x([_.VV("ytd-toggle-option-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],l5.prototype,"onTap",null);l5=_.x([_.Q({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],l5);
_.C(l5,"ytd-checkbox-survey-option-renderer",function(){if(J4w!==void 0)return J4w;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return J4w=K},{mode:1});var wxK;var Zwy;var WX=function(){var K=_.q.apply(this,arguments)||this;K.checked=!1;K.isToggleOption=!1;return K};
_.O(WX,_.q);WX.prototype.onTap=function(){this.data&&(this.checked?_.ev(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.ev(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
WX.prototype.onTap=WX.prototype.onTap;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],WX.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],WX.prototype,"checked",void 0);_.x([_.A(),_.B("design:type",Object)],WX.prototype,"isToggleOption",void 0);_.x([_.VV("ytd-toggle-option-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],WX.prototype,"onTap",null);
WX=_.x([_.Q({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],WX);
_.C(WX,"ytd-radio-button-survey-option-renderer",function(){if(Zwy!==void 0)return Zwy;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Zwy=K},{mode:1});var Gm=function(){var K=_.q.apply(this,arguments)||this;K.disableAnimation=!1;K.isToggleOption=!0;K.followUpSurveyCommand=null;K.selectedRatingEndpoint=null;K.isSlimlineSurveyFollowUp=!1;K.isShortsStyle=!1;K.styleOverrideAttribute=!0;K.isDarkMode=!1;K.isSubmitted=!1;K.roundedContainer=!0;K.improveShortsResponseRate=_.M("web_improve_shorts_response_rate");K.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 K};
_.O(Gm,_.q);_.V=Gm.prototype;
_.V.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"}}}}};
_.V.attached=function(){var K=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(f){var H;if((H=f[0])!=null&&H.isIntersecting){_.nZ().reportShown(K.hostElement);var D;(D=K.intersectionObserver)==null||D.unobserve(K.hostElement)}},{rootMargin:"0px",
threshold:.6});var d;(d=this.intersectionObserver)==null||d.observe(this.hostElement)};
_.V.onDarkModeToggledAction=function(K){this.isDarkMode=K};
_.V.dataChanged=function(){var K;if(((K=this.data)==null?void 0:K.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var d;((d=this.data)==null?void 0:d.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var f,H,D,S;this.darkColorPalette=(f=this.data)==null?void 0:(H=f.inlineContent)==null?void 0:(D=H.compactVideoRenderer)==null?void 0:(S=D.thumbnail)==null?
void 0:S.darkColorPalette;var n,u,a,R;this.lightColorPalette=(n=this.data)==null?void 0:(u=n.inlineContent)==null?void 0:(a=u.compactVideoRenderer)==null?void 0:(R=a.thumbnail)==null?void 0:R.lightColorPalette;var F,z;if(((F=this.data)==null?0:(z=F.inlineContent)==null?0:z.compactVideoRenderer)&&this.isShortsStyle){var v,g,N,h;K=_.wl((v=this.data)==null?void 0:(g=v.inlineContent)==null?void 0:(N=g.compactVideoRenderer)==null?void 0:(h=N.thumbnail)==null?void 0:h.thumbnails);_.f8(this.hostElement,
{"--yt-background-url":"url("+K+")"})}};
_.V.handleRequestCompletion=function(){this.hostElement.hidden&&_.Zp(this.hostElement,"yt-dismissible-item-dismissed")};
_.V.onPopupClosed=function(K){var d;((d=K.detail)==null?void 0:d.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.ev(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.V.handleInlineSurveyRatingSelect=function(K,d){var f=this;this.selectedRatingEndpoint=K;this.followUpSurveyCommand=d;this.expanded=!!K;this.getOptionRenderers().forEach(function(H,D){f.notifyPath("followUpSurveyCommand.followUpOptions."+D+".checkboxSurveyOptionRenderer.checked");f.set("followUpSurveyCommand.followUpOptions."+D+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),K=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.ev(this.hostElement,"yt-reel-non-video-content-dismissal-command",[K]))};
_.V.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.ev(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var K,d=(K=this.data)==null?void 0:K.dismissalEndpoint;d&&this.ytComponentBehavior.resolveCommand(d)}};
_.V.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.ev(this.hostElement,"yt-close-popup-action"))};
_.V.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var K=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{K=this.getOptionRenderers().filter(function(H){return H.checked});
if(K.length===0)return;K=K.map(function(H){return H.responseEndpoint})}var d=[];
K.forEach(function(H,D){D!==0&&(H=_.P(H,_.g7))&&H.feedbackToken&&d.push(H.feedbackToken)});
if(K=K[0]){var f={};d.length>0&&(f.extra_feedback_tokens=d);this.ytComponentBehavior.resolveCommand(K,{form:f})}}};
_.V.getOptionRenderers=function(){var K=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(d){K.isSingleSelect=!!_.P(d,LbZ);return K.isSingleSelect?_.P(d,LbZ):_.P(d,B4S)}):[]};
_.V.handleInlineSurveyOptionSelect=function(K){K=this.optionSelector.indexOf(K);K!==-1&&this.optionSelector.selectIndex(K)};
_.V.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.V.maybeGetBackgroundColor=function(K){return this.isDarkMode?K.section2Color:K.section3Color};
_.V.colorPaletteChanged=function(){var K=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;K=K&&this.maybeGetBackgroundColor(K);this.dismissibleEl.style.backgroundColor=!K||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.E1(K)};
_.x$.Object.defineProperties(Gm.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Gm.prototype.colorPaletteChanged=Gm.prototype.colorPaletteChanged;Gm.prototype.onPopupClosed=Gm.prototype.onPopupClosed;Gm.prototype.handleRequestCompletion=Gm.prototype.handleRequestCompletion;Gm.prototype.dataChanged=Gm.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Gm.prototype,"actionHandlerBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Gm.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],Gm.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.n8("#follow-up-survey-options"),_.B("design:type",Object)],Gm.prototype,"optionSelector",void 0);_.x([_.A(),_.B("design:type",Object)],Gm.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],Gm.prototype,"disableAnimation",void 0);_.x([_.A(),_.B("design:type",Object)],Gm.prototype,"isToggleOption",void 0);_.x([_.A(),_.B("design:type",Object)],Gm.prototype,"followUpSurveyCommand",void 0);_.x([_.A(),_.B("design:type",Object)],Gm.prototype,"selectedRatingEndpoint",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Gm.prototype,"expanded",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gm.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gm.prototype,"isShortsStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gm.prototype,"styleOverrideAttribute",void 0);_.x([_.A(),_.B("design:type",Boolean)],Gm.prototype,"isSingleSelect",void 0);_.x([_.A(),_.B("design:type",Object)],Gm.prototype,"isDarkMode",void 0);
_.x([_.A(),_.B("design:type",Object)],Gm.prototype,"lightColorPalette",void 0);_.x([_.A(),_.B("design:type",Object)],Gm.prototype,"darkColorPalette",void 0);_.x([_.W("selectedRatingEndpoint","isShortsStyle"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gm.prototype,"isOptionSelected",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gm.prototype,"roundedContainer",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Gm.prototype,"improveShortsResponseRate",void 0);_.x([_.n8("#dismissible"),_.B("design:type",HTMLElement)],Gm.prototype,"dismissibleEl",void 0);_.x([_.n8("#dismiss-button yt-icon-button"),_.B("design:type",HTMLElement)],Gm.prototype,"dismissButtonEl",void 0);_.x([_.n8("#inline-survey-header yt-icon-button"),_.B("design:type",HTMLElement)],Gm.prototype,"inlineHeaderDismissButtonEl",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gm.prototype,"dataChanged",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gm.prototype,"handleRequestCompletion",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Gm.prototype,"onPopupClosed",null);
_.x([_.SP("darkColorPalette","lightColorPalette","isDarkMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gm.prototype,"colorPaletteChanged",null);Gm=_.x([_.Q({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Gm);
_.C(Gm,"ytd-inline-survey-renderer",function(){if(wxK!==void 0)return wxK;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return wxK=K},{mode:1});
}catch(e){_._DumpException(e)}
try{
var oiU,$6i,EiK;oiU=function(K){return _.M("kevlar_watch_cinematics_invisible")||K.fullscreen&&_.M("kevlar_watch_cinematics_invisible_in_fullscreen")||K.theater&&!K.fullscreen&&_.M("kevlar_watch_cinematics_invisible_in_theater")};
$6i=function(){var K=document.createElement("canvas"),d=K.getContext("2d");if(!d)throw Error("Wl");_.NO(K,{position:"absolute",width:"100%",height:"100%"});return{element:K,context:d}};
EiK=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.M("kevlar_watch_cinematics_css_blur")};
_.hzc=function(K,d,f){return Math.abs(K-d)<=(f||1E-6)};
_.bct=function(K,d){return K==d?!0:K&&d?K.width==d.width&&K.height==d.height:!1};_.m6Z=new _.Z("notificationActionRenderer");var l$S=function(K){var d=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.fU;this.element.addEventListener("load",function(){d.loaded=!0;d.resolver.resolve(d.element)});
this.element.addEventListener("error",function(){d.failed=!0});
this.element.src=K};var W6E=function(K,d){this.image=K;this.frame=d};
W6E.prototype.drawToCanvas=function(K,d){var f=this.frame.width/this.frame.columns,H=this.frame.height/this.frame.rows,D=d.offsetX,S=d.offsetY;oiU(d)?(K.fillStyle=d.fullscreen?"#000":"#0f0f0f",K.fillRect(D,S,(d==null?void 0:d.width)||f,(d==null?void 0:d.height)||H)):K.drawImage(this.image,this.frame.column*f,this.frame.row*H,f,H,D,S,(d==null?void 0:d.width)||f,(d==null?void 0:d.height)||H)};
var GRz=function(K){this.color=K};
GRz.prototype.drawToCanvas=function(K,d){var f=d.offsetX,H=d.offsetY,D=d.width,S=d.height;K.fillStyle=oiU(d)?d.fullscreen?"#000":"#0f0f0f":this.color;K.fillRect(f,H,D,S)};var er=function(K,d){_.sT.call(this);this.playerApi=d;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.n0(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();AKw(this,K);ToP(this);this.update()};
_.O(er,_.sT);er.prototype.addEventListeners=function(){var K=this,d=function(){K.update()},f=function(D){K.paused||(D.type==="newdata"&&(K.mosaics.clear(),rKw(K),pl(K)),ToP(K),K.update())},H=function(){K.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",d);this.playerApi.addEventListener("onVideoDataChange",f);this.playerApi.addEventListener("onStateChange",H);this.addOnDisposeCallback(function(){K.playerApi.removeEventListener("onVideoProgress",d);K.playerApi.removeEventListener("onVideoDataChange",f);K.playerApi.removeEventListener("onStateChange",H)})};
var AKw=function(K,d){K.cinematicContainerRenderer!==d&&(K.cinematicContainerRenderer=d,rKw(K),pl(K),K.colorStoreUpdateJobId=_.oc.addLowPriorityJob(function(){var f;if((f=K.cinematicContainerRenderer.colorStore)!=null&&f.sampledColors){f=Infinity;for(var H=_.y(K.cinematicContainerRenderer.colorStore.sampledColors),D=H.next();!D.done;D=H.next()){D=D.value;var S=Number(D.key);S!==0&&S<f&&(f=S);S=_.hG(D.value);K.colorStore.set(D.key,S)}K.colorStoreTimeInterval=f}}))},rKw=function(K){K.colorStoreUpdateJobId&&
(_.oc.cancelJob(K.colorStoreUpdateJobId),K.colorStoreUpdateJobId=void 0);
K.colorStore.clear();K.currentStoryboardColor=void 0},qqK=function(K,d){var f;
return(f=K.getStoryboardFrame(d))==null?void 0:f.url};
er.prototype.onPlayerStateChange=function(){this.update()};
er.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var ToP=function(K){var d=K.getStoryboardFrame(0);d&&(d=new _.n0(d.width/d.columns,d.height/d.rows),_.bct(K.currentStoryboardSize,d)||(K.currentStoryboardSize=d,K.publish("STORYBOARD_SIZE_CHANGED",K.currentStoryboardSize)))},QKU=function(K,d){K.currentStoryboardIndex=d;
K.pendingStoryboardIndex=NaN;d=K.getStoryboardFrame(K.currentStoryboardIndex);K.currentStoryboard=new W6E(K.mosaics.get(d.url).element,d);K.publish("STORYBOARD_CHANGED",K.currentStoryboard);K.lastUpdateTime=(0,_.k_)()};
er.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var pl=function(K){K.currentStoryboardIndex=NaN;K.pendingStoryboardIndex=NaN;K.currentStoryboard&&(K.currentStoryboard=void 0,K.publish("STORYBOARD_CHANGED",void 0));K.lastUpdateTime=NaN};
er.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)pl(this);else{var K=this.playerApi.getPlayerState(1);if(K===-1||K===5||K===0)pl(this);else if(isNaN(this.lastUpdateTime)||!((0,_.k_)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(K=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){K=""+Math.round(K*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var d=this.colorStore.get(K);d?d!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=d,this.currentStoryboard=new GRz(d),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.k_)()):(_.h3(new _.X4("Could not find color for timestamp: "+K,this.cinematicContainerRenderer)),pl(this))}else pl(this);else jK7(this,K)}};
var jK7=function(K,d){var f=K.getStoryboardFrameIndex(d);if(f!==K.currentStoryboardIndex&&f!==K.pendingStoryboardIndex){d=qqK(K,f);var H=K.mosaics.get(d);H?H.loaded&&QKU(K,f):(K.pendingStoryboardIndex=f,f=new l$S(d),K.mosaics.set(d,f),f.resolver.promise.then(function(){if(!K.isDisposed()&&!K.paused&&!isNaN(K.pendingStoryboardIndex)){var D=qqK(K,K.pendingStoryboardIndex);if(D){var S;(S=K.mosaics.get(D))!=null&&S.loaded&&QKU(K,K.pendingStoryboardIndex)}else pl(K)}}))}};
er.prototype.getStoryboardFrameIndex=function(K){var d=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(K,d)};
er.prototype.getStoryboardFrame=function(K){var d=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,f,H;return((H=(f=this.playerApi).getStoryboardFrame)==null?void 0:H.call(f,K,d))||null};
er.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var dE=function(K,d,f,H){H=H===void 0?!1:H;_.gG.call(this);this.cinematicContainerRenderer=d;this.playerApi=f;this.theater=this.fullscreen=!1;var D;this.ambientLightThemeEnabled=!H&&!!(d==null?0:(D=d.config)==null?0:D.enableInLightTheme);this.ambientFullscreenEnabled=H&&_.M("web_cinematic_fullscreen");this.container=document.createElement("div");K.appendChild(this.container);var S;if(_.M("web_cinematic_theater_mode")||_.M("web_cinematic_fullscreen")||(d==null?0:(S=d.config)==null?0:S.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);CE5(this);K=this.ambientV2Container||this.container;this.backCanvas=$6i();this.frontCanvas=$6i();K.appendChild(this.backCanvas.element);K.appendChild(this.frontCanvas.element);this.storyboardManager=new er(d,this.playerApi);_.cy(this,this.storyboardManager);this.addEventListeners();x6Z(this)?L65(this,100+KR(this)*3*2,100+KR(this)*3*2):BoE(this);JKc(this,this.storyboardManager.currentStoryboard)};
_.O(dE,_.gG);var CE5=function(K){K.ambientV2Container?sKP(K):(_.NO(K.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+kRt(K)+", "+wfw(K)+")"}),EiK()&&_.NO(K.container,"filter","blur("+_.di("cinematic_watch_css_filter_blur_strength",40)+"px)"))},sKP=function(K){if(K.ambientV2Container){var d=K.playerApi.getVideoAspectRatio();
_.NO(K.container,{"aspect-ratio":""+d,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.NO(K.ambientV2Container,{"aspect-ratio":""+d,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+kRt(K)+", "+wfw(K)+")"});EiK()&&_.NO(K.ambientV2Container,"filter","blur("+_.di("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
dE.prototype.setFullscreen=function(K,d){this.fullscreen=K;this.theater=!!d;CE5(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),K=this.storyboardManager.currentStoryboard,Zcw(this),K&&ezZ(this,K)};
dE.prototype.addEventListeners=function(){var K=this,d=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(D){JKc(K,D)}),f=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){BoE(K)});
this.addOnDisposeCallback(function(){K.storyboardManager.unsubscribeByKey(d);K.storyboardManager.unsubscribeByKey(f)});
if(this.ambientV2Container){var H=function(){sKP(K)};
this.playerApi.addEventListener("onVideoDataChange",H);this.addOnDisposeCallback(function(){K.playerApi.removeEventListener("onVideoDataChange",H)})}};
var BoE=function(K){if(!x6Z(K)){var d=K.storyboardManager.currentStoryboardSize;isNaN(d.width)||isNaN(d.height)||L65(K,Number(d.width)+KR(K)*3*2,Number(d.height)+KR(K)*3*2)}},L65=function(K,d,f){K.backCanvas.element.width=d;
K.backCanvas.element.height=f;K.frontCanvas.element.width=d;K.frontCanvas.element.height=f},x6Z=function(K){return K.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},JKc=function(K,d,f){f=f===void 0?!1:f;
var H=K.frontCanvas.element.getAnimations()[0];H?(H.pause(),K.backCanvas.context.globalAlpha=Number(getComputedStyle(K.frontCanvas.element).opacity),K.frontCanvas.element.style.opacity="0",H.finish()):K.backCanvas.context.globalAlpha=1;K.backCanvas.context.drawImage(K.frontCanvas.element,0,0,K.backCanvas.element.width,K.backCanvas.element.height);Zcw(K);d&&ezZ(K,d);d=d?K.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.di("cinematic_watch_fade_out_duration",500);H=_.di("cinematic_watch_transition_frame_rate")/
1E3;var D={};H&&(D={easing:"steps("+Math.round(d*H)+")"});(f===void 0?0:f)||K.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:d,iterations:1},D));K.frontCanvas.element.style.opacity="1"},Zcw=function(K){var d=K.ambientLightThemeEnabled,f=K.ambientLightThemeEnabled||K.ambientFullscreenEnabled&&!_.M("web_cinematic_fullscreen_v2");
K.frontCanvas.context.fillStyle=K.theater&&d||K.fullscreen&&f?"#000":"#0f0f0f";EiK()||(K.frontCanvas.context.filter="blur(0)");K.frontCanvas.context.fillRect(0,0,K.frontCanvas.element.width,K.frontCanvas.element.height)},ezZ=function(K,d){EiK()||(K.frontCanvas.context.filter="blur("+KR(K)+"px)");
K.frontCanvas.context.globalAlpha=_.di("cinematic_watch_effect_opacity",.4);var f={offsetX:KR(K)*3,offsetY:KR(K)*3,theater:K.theater,fullscreen:K.fullscreen};x6Z(K)&&(f.width=100,f.height=100);d.drawToCanvas(K.frontCanvas.context,f);K.frontCanvas.context.globalAlpha=1},KR=function(K){var d;
return(d=K.cinematicContainerRenderer.config.blurStrength)!=null?d:5},kRt=function(K){var d,f;
if((K.fullscreen||K.theater)&&((d=K.cinematicContainerRenderer.config)==null?0:(f=d.watchFullscreenConfig)==null?0:f.colorSourceWidthMultiplier))return K.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var H;return(H=K.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?H:K.cinematicContainerRenderer.config.colorSourceSizeMultiplier},wfw=function(K){var d,f;
if((K.fullscreen||K.theater)&&((d=K.cinematicContainerRenderer.config)==null?0:(f=d.watchFullscreenConfig)==null?0:f.colorSourceHeightMultiplier))return K.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var H;return(H=K.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?H:K.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
dE.prototype.disposeInternal=function(){_.gG.prototype.disposeInternal.call(this);this.container.remove()};
dE.prototype.clear=function(){JKc(this,void 0,!0)};
dE.prototype.pause=function(){this.storyboardManager.pause()};var pfz;pfz=_.yi(function(){var K,d,f=!((d=(K=document.createElement("canvas")).getContext)==null||!d.call(K,"2d")),H;K=!((H=CSS)==null||!H.supports("filter: blur(0)"));H=!!Element.prototype.animate&&!!Element.prototype.getAnimations;d=_.M("web_cinematic_fullscreen")||_.M("web_cinematic_theater_mode")||_.M("web_cinematic_light_theme")||!1;var D;return f&&K&&H&&(!d||!((D=CSS)==null||!D.supports("aspect-ratio: 1 / 1")))});
_.fR=function(K,d){_.sT.call(this);this.container=K;this.playerApi=d;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=KGE(this);this.update()};
_.O(_.fR,_.sT);_.dAi=function(K){var d=document.documentElement.hasAttribute("dark");K.isDarkModeEnabled=d;K.update()};
_.f05=function(K,d){K.settingEnabled=d;K.update()};
_.fR.prototype.setFullscreen=function(K,d){this.fullscreen=K;this.theater=!!d;this.update()};
_.HaU=function(K,d){K.cinematicContainerRenderer=d;K.cinematicContainerRenderer&&(K.cinematicsVe=_.vp(K.isShorts()?227858:159022),_.p2(_.cv(),K.cinematicsVe),K.loggingClientData={watchCinematicContainerData:{presentationStyle:K.cinematicContainerRenderer.presentationStyle}});K.update()};
_.fR.prototype.isShorts=function(){var K,d;return((K=this.cinematicContainerRenderer)==null?void 0:(d=K.config)==null?void 0:d.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.fR.prototype.isAllowed=function(){var K;if(K=pfz()){var d,f,H;K=((f=this.cinematicContainerRenderer)==null?void 0:f.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((H=this.cinematicContainerRenderer)==null||!H.colorStore)||((d=this.cinematicContainerRenderer)==null?void 0:d.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(K)if(_.M("web_cinematics_pausing")){var D,S;K=this.isDarkModeEnabled||!!((D=this.cinematicContainerRenderer)==
null?0:(S=D.config)==null?0:S.enableInLightTheme)}else{var n,u;D=!!((n=this.cinematicContainerRenderer)==null?0:(u=n.config)==null?0:u.enableInLightTheme)&&(_.mD("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);K=this.isDarkModeEnabled||D}if(n=K){var a,R;n=!((R=(a=this.prefersReducedMotionQuery)==null?void 0:a.matches)!=null&&R)}return n};
_.DA7=function(K){(K=K.currentCinematicEffect)!=null&&(K=K.storyboardManager,K.paused=!1,ToP(K),K.update())};
_.fR.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var KGE=function(K){if(!_.M("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var d=window.matchMedia("(prefers-reduced-motion: reduce)"),f=function(){K.update()};
d.addListener(f);K.addOnDisposeCallback(function(){d.removeListener(f)});
return d}};
_.fR.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var K=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new dE(this.container,K,this.playerApi,this.isDarkModeEnabled),_.cy(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var d=this.currentCinematicEffect;d.cinematicContainerRenderer!==
K&&(d.cinematicContainerRenderer=K,AKw(d.storyboardManager,K),CE5(d));K=_.aS();_.IS(0,194,!0);K.save();K=_.te();this.cinematicsVe&&K&&_.Ay(K,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(K=_.te(),this.cinematicsVe&&K&&_.Tu(K,[this.cinematicsVe],!1,this.loggingClientData),_.kh(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.x$.Object.defineProperties(_.fR.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var HcE;var D6U;_.vP({_template:function(){if(D6U!==void 0)return D6U;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=
K.content,f=d.insertBefore;HcE===void 0&&(HcE=document.createElement("template"));var H=HcE;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return D6U=K},
is:"tp-yt-iron-pages",behaviors:[_.Mg,_.WP],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var e9E;_.pQc=function(){if(_.M("kevlar_home_skeleton")&&!e9E){var K=document.querySelector("#home-page-skeleton");K&&(_.YJ("hgcr"),_.FE(K),e9E=!0)}};
e9E=!1;_.M$=new _.Z("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var ZSy,eYl,p1l,KI7,dW5,fiU,V8t,y7P,nj7,SBw,HiZ,DWy,uAE,ai5;_.w1t=function(K,d,f){d=d===void 0?5:d;if(d!==0){var H=typeof K==="function"?K():document.querySelector(K);H?(f==null?0:f.enableSmartFocus)?_.pCS(H):H.focus():setTimeout(function(){_.w1t(K,d-1,f)},500)}};
ZSy=function(K){return _.d3O(_.KrS(K&16777215))<.5};
eYl=function(K,d,f){var H=f.minimumRowsOfVideosBetweenSections===void 0?1:f.minimumRowsOfVideosBetweenSections;return K<(f.minimumRowsOfVideosAtStart===void 0?2:f.minimumRowsOfVideosAtStart)||d!==null&&K-d<=H?!1:!0};
p1l=function(K,d){var f=0,H=0;K=_.y(K);for(var D=K.next();!D.done;D=K.next()){var S=D.value;if(S.richItemRenderer)S.richItemRenderer.rowIndex=H,S.richItemRenderer.colIndex=f++,f===d&&(f=0,H++);else if(S.richGroupRenderer&&S.richGroupRenderer.numColumns!==void 0)S.richGroupRenderer.rowIndex=H,S.richGroupRenderer.colIndex=f,f+=S.richGroupRenderer.numColumns,f===d&&(f=0,H++);else if(S.richSectionRenderer){var n=D=void 0;if(S=_.P((D=S)==null?void 0:(n=D.richSectionRenderer)==null?void 0:n.content,_.Y3f))S.rowIndex=
H++}}};
KI7=function(K,d){var f=d.contentElement;d=d.rendererToTagNameMap;if(f&&d&&d.size!==0){for(var H=new Map,D=_.y(f.children),S=D.next();!S.done;S=D.next()){S=S.value;var n=S.tagName.toLowerCase(),u=H.get(n);u||(u=[],H.set(n,u));u.push(S)}if(H.size!==0)for(D=Math.min(K.length,f.children.length),S=new Map,n=0;n<D;n++){u=Object.keys(K[n])[0];u=d.get(u);if(!u)break;var a=S.get(u);a===void 0&&(a=0,S.set(u,a));var R=H.get(u);if(!R||a>=R.length)break;S.set(u,a+1);u=R[a];a=f.children[n];a!==u&&(_.LKp=!0,_.B6X.set(u,
!0),f.insertBefore(u,a),_.B6X.delete(u),_.LKp=!1)}}};
dW5=function(K,d,f,H,D,S,n){H=H===void 0?{}:H;if(!K||!K.length)return[];K=K.slice();var u=[],a=[];D=null;for(var R=0,F=function(T){a.sort(function(L,fB){return fB.skippedOnRow-L.skippedOnRow});
for(var r,J=(r=a.shift())==null?void 0:r.content;J;)!J.richSectionRenderer&&T||u.push(J),r=void 0,J=(r=a.shift())==null?void 0:r.content},z=[];K.length>0||a.length>0;){for(var v=[],g=d;g>0;){var N=void 0,h=void 0,m=(h=a[0]&&a[0].skippedOnRow<R?(N=a.shift())==null?void 0:N.content:void 0)!=null?h:K.shift();
if(!m)break;if(m.richItemRenderer)N=m.richItemRenderer.targetId,h=void 0,N&&((h=n)==null?0:h.has(N))&&z.push(n.get(N)),v.push(m),g--;else if(m.richGroupRenderer&&m.richGroupRenderer.numColumns!==void 0)m.richGroupRenderer.numColumns<=g?(v.push(m),g-=m.richGroupRenderer.numColumns):g===d&&m.richGroupRenderer.numColumns>d?(v.push({richGroupRenderer:Object.assign({},m.richGroupRenderer,{numColumns:d})}),g=0):a.push({content:m,skippedOnRow:R});else if(m.richSectionRenderer)if(eYl(R,D,H)&&g===d){u.push(m);
D=R;R++;continue}else a.push({content:m,skippedOnRow:R});else if(m.continuationItemRenderer){F(!0);u.push(m);g=0;break}if(g===0)u.push.apply(u,_.Me(v));else if(!f&&K.length===0){F(!1);u.push.apply(u,_.Me(v));g=0;break}}R++;z=_.y(z);for(v=z.next();!v.done;v=z.next())u.push(v.value),R++;z=[]}p1l(u,d);S&&KI7(u,S);return u};
fiU=function(K){return K.talkToRecs};
V8t=function(K,d){if(d){var f=_.j3().getState().entities.flowStateEntity,H=HiZ(K),D=[d];H&&H!==d&&D.push(H);var S=!0,n;if(f&&K.flowStateEntityKey&&((n=f[K.flowStateEntityKey])==null?void 0:n.primaryButtonDisabled)!==void 0){var u;S=!((u=f[K.flowStateEntityKey])==null||!u.primaryButtonDisabled)}DWy(K,H!=null?H:d,D,S)}};
y7P=function(K){return _.n5(_.j3(),function(d){return d.entities.flowStateEntity},function(d,f){if(K.flowStateEntityKey){var H,D=d==null?void 0:(H=d[K.flowStateEntityKey])==null?void 0:H.currentStepId,S;
f=f==null?void 0:(S=f[K.flowStateEntityKey])==null?void 0:S.currentStepId;S=_.j3().getState().talkToRecs;if(D&&D!==f){var n;d=(d==null?void 0:(n=d[K.flowStateEntityKey])==null?void 0:n.stepIdStack)||Object.keys(S.stepStates);n=!SBw(S==null?void 0:S.stepStates[D]);DWy(K,D,d,n)}}})};
nj7=function(K){return _.n5(_.j3(),fiU,function(d){var f=HiZ(K);if(f){var H=Object.keys(d.stepStates);d=!SBw(d==null?void 0:d.stepStates[f]);DWy(K,f,H,d)}})};
SBw=function(K){var d=Object.keys((K==null?void 0:K.selectionStates)||{}).reduce(function(S,n){return S||(K==null?void 0:K.selectionStates[n].isSelected)},!1),f,H,D=!!(K==null?0:(f=K.userQuery)==null?0:(H=f.userQuery)==null?0:H.trim());
return d||D};
HiZ=function(K){if(K.flowStateEntityKey){var d,f,H=(d=_.j3().getState().entities.flowStateEntity)==null?void 0:(f=d[K.flowStateEntityKey])==null?void 0:f.currentStepId;if(H)return H}};
DWy=function(K,d,f,H){_.j3().dispatch(_.nt("flowStateEntity",K.flowStateEntityKey,{currentStepId:d,stepIdStack:f,key:K.flowStateEntityKey,primaryButtonDisabled:H}))};
_.iiU=function(K,d){return _.DR(K.entities,"youchatPendingResponseEntity",d)};
_.c7w=function(K){return function(d){_.q7(_.nt("youchatPendingResponseEntity",K,{entityKey:K,isPendingResponse:d}))}};
uAE=function(K){K==null||K.addEventListener("DOMLoaded",function(){K.goToAndPlay(K.totalFrames-48,!0)})};var Iiy;_.vP({_template:function(){if(Iiy!==void 0)return Iiy;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
var d=K.content,f=d.insertBefore;ai5===void 0&&(ai5=document.createElement("template"));var H=ai5;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return Iiy=K},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var UWi=new _.Z("talkToRecsFlowRenderer");var R9E=new _.Z("flowRootRenderer");var FI7=new _.Z("learningJourneyQuizViewModel");var z9i=new _.Z("chipsShelfViewModel");var XQU=new _.Z("horizontalShelfViewModel");_.vjZ=new _.Z("engagementPanelSectionListRenderer");var M8Z=new _.Z("conversationResourceViewModel");var P0E=function(){this.horizontal=!1},gj7=function(K,d){K.horizontal=d};
P0E.prototype.position=function(K,d,f,H){H=H===void 0?1:H;K=this.delta(K)*H+d;H=Math.max(d,f);return K>=Math.min(d,f)&&K<=H?K:f};
P0E.prototype.axis=function(K){K=this.direction(K);return K==="up"||K==="down"?"Y":"X"};var Su=function(K,d,f){d=d===void 0?_.IC():d;this.target=K;this.manager=d;this.touchAction=f;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Su.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(_.Me(this.events)));for(var K=_.y(this.events),d=K.next();!d.done;d=K.next())this.listen(d.value)}};
Su.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Me(this.events)));for(var K=_.y(this.events),d=K.next();!d.done;d=K.next())this.unlisten(d.value)}};
Su.prototype.listen=function(K){this.eventMap[K]&&this.target.addEventListener(K,this.eventMap[K])};
Su.prototype.unlisten=function(K){this.eventMap[K]&&this.target.removeEventListener(K,this.eventMap[K])};var yf=function(){P0E.apply(this,arguments)};
_.O(yf,P0E);yf.prototype.direction=function(K){var d=K.detail;K=d.deltaY;d=d.deltaX;return K&&!this.horizontal?K>0?"down":"up":d&&this.horizontal?d>0?"right":"left":"none"};
yf.prototype.distance=function(K){return Math.abs(this.delta(K))};
yf.prototype.delta=function(K){var d=this.direction(K),f=K.detail;K=f.deltaX;f=f.deltaY;return d==="up"||d==="down"?f||0:K||0};
yf.prototype.velocity=function(K){var d=this.direction(K),f=K.detail;K=f.velocityX;f=f.velocityY;return Math.abs(d==="up"||d==="down"?f||0:K||0)};_.nV=function(K,d,f,H,D,S){D=D===void 0?new yf:D;S=S===void 0?_.IC():S;Su.call(this,d,S,H);var n=this;this.element=K;this.target=d;this.config=f;this.input=D;this.manager=S;this.events=["panstart","panmove","panend"];this.onPanStart=function(){n.config.draggingClass&&n.element.classList.add(n.config.draggingClass);n.config.startAction&&n.config.startAction()};
this.onPanMove=function(u){var a=OiU(n,u);if(a){n.move(u,a);a.fade&&n.fade(u,a);var R=n.input.direction(u);a.moveAction&&a.moveAction(NKU(n,u,a),R)}};
this.onPanEnd=function(u){var a,R,F,z,v,g;return _.c(function(N){if(N.nextAddress==1){n.animationRequestId&&cancelAnimationFrame(n.animationRequestId);n.animationRequestId=void 0;a=OiU(n,u);if(!a)return N.return();R=a;F=R.triggerAction;z=R.fade;v=R.disableFinish;g=R.translateBack;var h=n.input.velocity(u),m=n.input.distance(u),T=n.threshold(a);return h>.3&&m>10||m>T?v?N.jumpTo(6):z?_.I(N,YBl(n,u),6):_.I(N,t8i(n,u,a),6):g?_.I(N,n.translateBack(u),3):N.jumpTo(3)}N.nextAddress!=3&&F&&F();n.config.draggingClass&&
n.element.classList.remove(n.config.draggingClass);n.reset();_.iQ(N)})};
K=Object.keys(f.triggers);this.directions=new Set(K);gj7(this.input,this.directions.has("right")||this.directions.has("left"))};
_.O(_.nV,Su);_.nV.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var OiU=function(K,d){d=K.input.direction(d);return K.config.triggers[d]};
_.nV.prototype.move=function(K,d){var f=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var H=f.input.axis(K),D=f.input.position(K,f.config.startPosition,d.endPosition,d.moveRatio||1);f.element.style.transform="translate"+H+"("+D+"px)";f.animationRequestId=void 0}))};
var NKU=function(K,d,f){var H=f.moveRatio||1;f=Math.abs(K.config.startPosition-f.endPosition);return Math.min(K.input.distance(d)*H,f)/f};
_.nV.prototype.fade=function(K,d){var f=d.endOpacity;K=NKU(this,K,d);K>0&&(this.element.style.opacity=""+(((f||0)-1)*K+1))};
_.nV.prototype.threshold=function(K){return K.threshold?K.threshold:Math.abs(K.endPosition-this.config.startPosition)/3};
var t8i=function(K,d,f){var H,D,S,n,u,a,R;return _.c(function(F){if(F.nextAddress==1)return H=K.input.delta(d)+K.config.startPosition,D=K.input.axis(d),S=f,n=S.endPosition,u=S.transitionEndPosition,R=(a=u)!=null?a:n,_.I(F,K.element.animate([{transform:"translate"+D+"("+H+"px)"},{transform:"translate"+D+"("+R+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);K.element.style.transform="translate"+D+"("+R+"px)";_.iQ(F)})};
_.nV.prototype.translateBack=function(K){var d=this,f,H;return _.c(function(D){if(D.nextAddress==1){if(!d.element.style.transform)return D.return();f=d.input.axis(K);H=d.config.startPosition;return _.I(D,d.element.animate([{transform:d.element.style.transform},{transform:"translate"+f+"("+H+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}d.element.style.transform="translate"+f+"("+H+"px)";_.iQ(D)})};
var YBl=function(K,d){var f,H,D,S;return _.c(function(n){if(n.nextAddress==1)return f=K.input.delta(d)+K.config.startPosition,H=K.input.axis(d),D=f+70,S=K.element.style.opacity===""?1:K.element.style.opacity,_.I(n,K.element.animate([{transform:"translate"+H+"("+f+"px)",opacity:S},{transform:"translate"+H+"("+D+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);K.element.style.transform="translate"+H+"("+D+"px)";K.element.style.opacity="0";_.iQ(n)})};var ig=function(){var K=_.cP.apply(this,arguments)||this;K._noAccessors=!0;K.scrollRate=3;K.autoScrollAnimationStart=0;K.autoScrollPaused=!1;K.autoScrollRafId=0;return K};
_.O(ig,_.cP);_.V=ig.prototype;_.V.created=function(){var K=this;this.boundAutoScrollHandler=function(d){K.autoScroll(d)}};
_.V.detached=function(){this.hostElement.removeEventListener("mouseout",_.Dm(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Dm(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Dm(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.V.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Dm(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Dm(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Dm(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Dm(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Dm(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Dm(this,this.endAutoScroll)),this.endAutoScroll())};
_.V.autoScroll=function(K){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=K);var d;if(d=!this.autoScrollPaused&&this.scrollTarget)d=this.scrollTarget,d=d.scrollHeight-d.scrollTop!==d.clientHeight;d&&(d=1E3/this.scrollRate,K-=this.autoScrollAnimationStart,K>d&&(this.scrollTarget.scrollTop+=Math.ceil(K/d),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.V.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.V.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
ig.prototype.autoScrollEnabledChanged=ig.prototype.autoScrollEnabledChanged;_.x([_.A(),_.B("design:type",Object)],ig.prototype,"scrollRate",void 0);_.x([_.A(),_.B("design:type",Object)],ig.prototype,"scrollTarget",void 0);_.x([_.A(),_.B("design:type",Boolean)],ig.prototype,"autoScrollEnabled",void 0);_.x([_.SP("autoScrollEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ig.prototype,"autoScrollEnabledChanged",null);ig=_.x([_.uL()],ig);_.ojZ=[ig.prototype];var $W7;var cm=function(){var K=_.q.apply(this,arguments)||this;K.buttonUpdate=_.M("web_button_rework");K.dismissButtonOverrides=_.M("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;K.forceDarkTheme=!1;K.forceLightTheme=!1;K.dynamicTextHeight=94;K.hasOverflowButton=!1;K.isInfeedModernization=!1;return K};
_.O(cm,_.q);_.V=cm.prototype;_.V.computeUrlImg=function(K){if(K)return _.wl(K.thumbnails)};
_.V.getLogoHeight=function(K){return this.logoWithPadding(K)?"31":"24"};
_.V.getLogoClassName=function(K){return this.logoWithPadding(K)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.V.logoWithPadding=function(K){var d,f;return(K=(d=K.thumbnails)==null?void 0:(f=d[0])==null?void 0:f.height)&&K%31===0?!0:!1};
_.V.sendImpressionEndpoints=function(K){K.impressionEndpoints&&_.dN(this.hostElement,K.impressionEndpoints)};
_.V.observeBasicPalette=function(){var K,d,f=(K=this.data)==null?void 0:(d=K.colorData)==null?void 0:d.basicColorPaletteData;f?_.gH(this.hostElement,f):_.gH(this.hostElement,{})};
_.V.observeDataChanged=function(){var K;this.dynamicTextHeight=((K=this.data)==null?0:K.supplementalText)?74:94;var d;this.hasSupplementalText=!((d=this.data)==null||!d.supplementalText);if(_.M("web_button_rework")){var f,H,D,S;K=(f=this.data)==null?void 0:(H=f.actionButton)==null?void 0:(D=H.buttonRenderer)==null?void 0:(S=D.colorData)==null?void 0:S.basicColorPaletteData;var n,u,a;if(!((n=this.data)==null?0:(u=n.actionButton)==null?0:(a=u.buttonRenderer)==null?0:a.style)&&K){this.computeIsInfeedModernization(this.data)||
(K.borderColor=K.foregroundTitleColor);var R,F;this.set("data.actionButton.buttonRenderer",_.PR.unsafeClone((R=this.data)==null?void 0:(F=R.actionButton)==null?void 0:F.buttonRenderer))}}};
_.V.observeDataForCounterfactual=function(){if(_.M("kevlar_banner_cf_extra_logging")){var K;((K=this.data)==null?0:K.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.V.computeSupplementalStyle=function(){var K;if((K=this.data)!=null&&K.supplementalText){var d,f,H;if((d=this.data)==null?0:(f=d.colorData)==null?0:(H=f.basicColorPaletteData)==null?0:H.foregroundActivatedColor)return K=_.E1(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+K+"; --yt-endpoint-hover-color:"+K+"; --yt-endpoint-visited-color:"+K+"; --yt-formatted-string-bold-font-weight:700;"}};
_.V.computeForcedDarkTheme=function(){var K,d,f,H=(K=this.data)==null?void 0:(d=K.actionButton)==null?void 0:(f=d.buttonRenderer)==null?void 0:f.style,D,S,n;K=ZSy(((D=this.data)==null?void 0:(S=D.colorData)==null?void 0:(n=S.basicColorPaletteData)==null?void 0:n.backgroundColor)||0);return H&&K};
_.V.computeForcedLightTheme=function(){var K,d,f,H=(K=this.data)==null?void 0:(d=K.actionButton)==null?void 0:(f=d.buttonRenderer)==null?void 0:f.style,D,S,n;K=!ZSy(((D=this.data)==null?void 0:(S=D.colorData)==null?void 0:(n=S.basicColorPaletteData)==null?void 0:n.backgroundColor)||0);return H&&K};
_.V.computeHasOverflowButton=function(K){return!!K.overflowButton};
_.V.computeHasTitle=function(K){return!!K.title};
_.V.computeTitleMaxFontSize=function(K){return this.computeHasOverflowButton(K)?28:64};
_.V.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.V.computeIsInfeedModernization=function(){var K,d,f,H,D=(K=this.data)==null?void 0:(d=K.actionButton)==null?void 0:(f=d.buttonRenderer)==null?void 0:(H=f.colorData)==null?void 0:H.basicColorPaletteData;return(D==null?void 0:D.backgroundColor)===452984831||(D==null?void 0:D.backgroundColor)===218103808};
cm.prototype.observeDataForCounterfactual=cm.prototype.observeDataForCounterfactual;cm.prototype.observeDataChanged=cm.prototype.observeDataChanged;cm.prototype.observeBasicPalette=cm.prototype.observeBasicPalette;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],cm.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],cm.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],cm.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],cm.prototype,"buttonUpdate",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],cm.prototype,"hasSupplementalText",void 0);_.x([_.A(),_.B("design:type",Object)],cm.prototype,"dismissButtonOverrides",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.B("design:type",Boolean)],cm.prototype,"hasTitle",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.B("design:type",Object)],cm.prototype,"forceDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.B("design:type",Object)],cm.prototype,"forceLightTheme",void 0);_.x([_.A(),_.B("design:type",Object)],cm.prototype,"dynamicTextHeight",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.B("design:type",Object)],cm.prototype,"hasOverflowButton",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.B("design:type",Object)],cm.prototype,"isInfeedModernization",void 0);_.x([_.SP("data.colorData.basicColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cm.prototype,"observeBasicPalette",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cm.prototype,"observeDataChanged",null);_.x([_.SP("data.isVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cm.prototype,"observeDataForCounterfactual",null);cm=_.x([_.Q({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],cm);
_.C(cm,"ytd-banner-promo-renderer",function(){if($W7!==void 0)return $W7;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return $W7=K},{mode:1});var EjK;var h9w;var biS;var ug=function(){return _.q.apply(this,arguments)||this};
_.O(ug,_.q);_.x([_.A(),_.B("design:type",Object)],ug.prototype,"data",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ug.prototype,"ytRendererBehavior",void 0);ug=_.x([_.Q({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],ug);
_.C(ug,"ytd-hashtag-grid-tile-renderer",function(){if(biS!==void 0)return biS;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return biS=K},{mode:1});var ar=function(){return _.q.apply(this,arguments)||this};
_.O(ar,_.q);ar.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
ar.prototype.updateRichGridTrendingHashtagsVisibility=function(){var K,d;if(((K=this.data)==null||!K.isExpanded)&&(d=this.data)!=null&&d.tiles){K=this.data.tiles.length;d=K>this.richGridItemsPerRow?this.richGridItemsPerRow+1:K;var f=Math.ceil(K/d);this.fullyVisibleRows=K%d===1&&f===2?1:Math.min(f,2);this.isShowMoreVisible=this.fullyVisibleRows<f}};
ar.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
ar.prototype.updateRichGridTrendingHashtagsVisibility=ar.prototype.updateRichGridTrendingHashtagsVisibility;_.x([_.A(),_.B("design:type",Object)],ar.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Number)],ar.prototype,"fullyVisibleRows",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],ar.prototype,"isShowMoreVisible",void 0);_.x([_.A({selector:_.NQ,value:0}),_.B("design:type",Number)],ar.prototype,"richGridItemsPerRow",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],ar.prototype,"ytdReduxBehavior",void 0);_.x([_.SP("data","richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ar.prototype,"updateRichGridTrendingHashtagsVisibility",null);
ar=_.x([_.Q({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],ar);
_.C(ar,"ytd-hashtag-grid-shelf-renderer",function(){if(h9w!==void 0)return h9w;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return h9w=K},{mode:1});var mWc;var liK;var Ir=function(){var K=_.q.apply(this,arguments)||this;K.visibleVideos=[];K.hiddenVideos=[];K.modern=_.M("web_modern_buttons");K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(Ir,_.q);_.V=Ir.prototype;_.V.attached=function(){var K=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",K);this.onDarkModeToggledAction(K)};
_.V.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"}}}};
_.V.dataChanged=function(){var K=this;this.requestElementsPerRow();var d,f;this.currentColorPalette=this.isDarkTheme?(d=this.data)==null?void 0:d.darkColorData:(f=this.data)==null?void 0:f.lightColorData;var H;if((H=this.currentColorPalette)==null?0:H.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.jW(this,function(){K.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.V.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.V.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.V.computeIsFirstFeedItem=function(K){return K};
_.V.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&this.set("isDarkTheme",K);this.data&&(this.currentColorPalette=K?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.V.getCurrentLogo=function(K,d){if(K)return d?K.darkLogoImage:K.lightLogoImage};
_.V.computeTitleStyle=function(K){var d;if((d=this.data)!=null&&d.title&&K&&K.textPrimary!==void 0)return"color:"+_.E1(K.textPrimary)+";"};
_.V.computeSubtitleStyle=function(K){var d;if((d=this.data)!=null&&d.subtitle&&K&&K.textSecondary!==void 0)return"color:"+_.E1(K.textSecondary)+";"};
_.V.computeDismissIconStyle=function(K){if(this.data&&this.data.dismissButton&&K&&K.textPrimary!==void 0)return"--yt-button-color:"+_.E1(K.textPrimary)+";"};
_.V.computeOverflowButtonStyle=function(K){if(this.data&&this.data.overflowButton&&K&&K.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.E1(K.textPrimary)+";--yt-spec-icon-active-other:"+_.E1(K.textPrimary)+";"};
_.V.computeBackgroundStyle=function(K){if(K&&this.data){var d="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var f=_.wl((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);f&&(d+='background-image:url("'+f+'");')}K.backgroundColor!==void 0&&(d+="background-color:"+_.hG(K.backgroundColor)+";");return d}};
_.V.computeButton=function(){var K,d=Object.assign({},_.P((K=this.data)==null?void 0:K.showMoreButton,_.tQ));if(this.modern&&d){d.style="STYLE_MONO_OUTLINE";var f;if(K=(f=this.currentColorPalette)==null?void 0:f.textPrimary)d.colorData={basicColorPaletteData:{foregroundTitleColor:K,borderColor:K}}}return d};
_.V.shouldShowBottomButton=function(K,d){return!(K==null?0:K.header)&&!(K==null||!K.primaryButton)&&d<3};
_.V.checkExpanded=function(K){this.isExpanded=K&&K.content?this.hiddenVideos.length===0:!0};
_.V.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.V.getLogoHeight=function(K){return this.logoWithPadding(K)?"26":"20"};
_.V.getLogoImageId=function(K){return this.logoWithPadding(K)?"logo-image-with-padding":"logo-image"};
_.V.computeHasSectionHeader=function(K){return!!K.header};
_.V.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var K;if((K=this.data.primaryButton)==null?0:K.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 d;((d=this.data.dismissButton)==null?0:d.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var f,H;((f=this.data)==null?0:(H=f.primaryButton)==null?0:H.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.V.setVisibleVideos=function(K){if(this.data&&this.data.content)if(this.data.content.length){var d=this.data.content.length;this.data.header?K?(this.visibleVideos=this.data.content.slice(0,Math.min(d,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.slimItemsPerRow),d)):(this.visibleVideos=this.data.content.slice(0,Math.min(d,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.elementsPerRow),d)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(d,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.elementsPerRow),d)):(this.visibleVideos=this.data.content.slice(0,Math.min(d,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.elementsPerRow-1),d))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.V.setHasMovieRenderer=function(){var K;if((K=this.data)!=null&&K.content){var d;this.hasMovieRenderer=!!_.P((d=this.data)==null?void 0:d.content[0],_.d0k)}else this.hasMovieRenderer=!1};
_.V.requestElementsPerRow=function(){_.Zp(this.hostElement,"yt-request-elements-per-row")};
_.V.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var K=_.y(this.hiddenMediaRenderers),d=K.next();!d.done;d=K.next())d.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(K=_.E(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&K.focus()}};
_.V.updateTitleSpec=function(){var K;(K=this.data)!=null&&K.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.V.logoWithPadding=function(K){var d,f,H;return(K=(d=this.getCurrentLogo(K,this.isDarkTheme))==null?void 0:(f=d.thumbnails)==null?void 0:(H=f[0])==null?void 0:H.height)&&K%31===0?!0:!1};
_.V.onUpdateElementsPerRowAction=function(K,d,f){K&&this.elementsPerRow!==K&&(this.elementsPerRow=K);f&&this.slimItemsPerRow!==f&&(this.slimItemsPerRow=f)};
Ir.prototype.slimItemsPerRowChanged=Ir.prototype.slimItemsPerRowChanged;Ir.prototype.elementsPerRowChanged=Ir.prototype.elementsPerRowChanged;Ir.prototype.dataChanged=Ir.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],Ir.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Ir.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Ir.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ir.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Ir.prototype,"currentColorPalette",void 0);_.x([_.A(),_.B("design:type",Array)],Ir.prototype,"visibleVideos",void 0);_.x([_.A(),_.B("design:type",Array)],Ir.prototype,"hiddenVideos",void 0);
_.x([_.A(),_.B("design:type",Object)],Ir.prototype,"primaryButton",void 0);_.x([_.A({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],Ir.prototype,"elementsPerRow",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Ir.prototype,"isDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Ir.prototype,"isExpanded",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Ir.prototype,"largeTitle",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Ir.prototype,"hasMovieRenderer",void 0);_.x([_.A(),_.B("design:type",Number)],Ir.prototype,"slimItemsPerRow",void 0);_.x([_.A(),_.B("design:type",Boolean)],Ir.prototype,"showLightVideoMetadata",void 0);_.x([_.A(),_.B("design:type",Boolean)],Ir.prototype,"showDarkVideoMetadata",void 0);_.x([_.A(),_.B("design:type",Number)],Ir.prototype,"videoMetadataColor",void 0);
_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],Ir.prototype,"miniMode",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.B("design:type",Boolean)],Ir.prototype,"isFirstFeedItem",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.B("design:type",Boolean)],Ir.prototype,"hasSectionHeader",void 0);
_.x([_.A({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Ir.prototype,"roundedContainer",void 0);_.x([_.iL("#visible-video-container ytd-rich-grid-media"),_.B("design:type",Array)],Ir.prototype,"visibleMediaRenderers",void 0);_.x([_.iL("#hidden-video-container ytd-rich-grid-media"),_.B("design:type",Array)],Ir.prototype,"hiddenMediaRenderers",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ir.prototype,"modern",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ir.prototype,"dataChanged",null);_.x([_.SP("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ir.prototype,"elementsPerRowChanged",null);_.x([_.SP("slimItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ir.prototype,"slimItemsPerRowChanged",null);
Ir=_.x([_.Q({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Ir);
_.C(Ir,"ytd-brand-video-shelf-renderer",function(){if(liK!==void 0)return liK;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return liK=K},{mode:1});var WI5;var UJ=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(UJ,_.q);_.V=UJ.prototype;_.V.attached=function(){var K=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",K);this.onDarkModeToggledAction(K)};
_.V.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"}}}};
_.V.dataChanged=function(){this.requestElementsPerRow();var K,d;this.currentColorPalette=this.isDarkTheme?(K=this.data)==null?void 0:K.darkColorData:(d=this.data)==null?void 0:d.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.V.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.V.computeIsFirstFeedItem=function(K){return K};
_.V.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&this.set("isDarkTheme",K);this.data&&(this.currentColorPalette=K?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(K),this.updateButtonPalette())};
_.V.shouldShowThumbnailInMetadata=function(K){return K<=1};
_.V.computeVideoMetadataColor=function(){if(this.data){var K;if((K=this.currentColorPalette)==null?0:K.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.V.computeTitleStyle=function(K){var d;if((d=this.data)!=null&&d.title&&K&&K.textPrimary!==void 0)return"color:"+_.E1(K.textPrimary)+";"};
_.V.computeSubtitleStyle=function(K){var d;if((d=this.data)!=null&&d.subtitle&&K&&K.textSecondary!==void 0)return"color:"+_.E1(K.textSecondary)+";"};
_.V.computeOverflowButtonStyle=function(K){var d;if(this.data&&this.data.overflowButton&&(K==null?0:(d=K.dismissButtonColorData)==null?0:d.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.E1(K.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.E1(K.dismissButtonColorData.foregroundTitleColor)+";"};
_.V.computeBackgroundStyle=function(K){if(K&&this.data){var d="";K.backgroundColor!==void 0&&(d+="background-color:"+_.hG(K.backgroundColor)+";");return d}};
_.V.computeHasOverflowButton=function(K){return!!K.overflowButton};
_.V.updateButtonPalette=function(){if(this.data){var K;if((K=this.data.primaryButton)==null?0:K.buttonRenderer){var d;if((d=this.currentColorPalette)==null?0:d.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var f;((f=this.currentColorPalette)==null?0:f.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)})}}};
_.V.requestElementsPerRow=function(){_.Zp(this.hostElement,"yt-request-elements-per-row")};
_.V.updateTitleSpec=function(){var K;(K=this.data)!=null&&K.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")};
_.V.onUpdateElementsPerRowAction=function(K){K&&this.elementsPerRow!==K&&(this.elementsPerRow=K)};
UJ.prototype.elementsPerRowChanged=UJ.prototype.elementsPerRowChanged;UJ.prototype.dataChanged=UJ.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],UJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],UJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],UJ.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],UJ.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],UJ.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],UJ.prototype,"currentColorPalette",void 0);_.x([_.A(),_.B("design:type",Object)],UJ.prototype,"primaryButton",void 0);
_.x([_.A({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],UJ.prototype,"elementsPerRow",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],UJ.prototype,"isDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],UJ.prototype,"titleSize",void 0);_.x([_.A(),_.B("design:type",Number)],UJ.prototype,"videoMetadataColor",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],UJ.prototype,"miniMode",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.B("design:type",Boolean)],UJ.prototype,"isFirstFeedItem",void 0);_.x([_.A({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],UJ.prototype,"roundedContainer",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.B("design:type",Boolean)],UJ.prototype,"hasOverflowButton",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UJ.prototype,"dataChanged",null);_.x([_.SP("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UJ.prototype,"elementsPerRowChanged",null);UJ=_.x([_.Q({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],UJ);
_.C(UJ,"ytd-brand-video-singleton-renderer",function(){if(WI5!==void 0)return WI5;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return WI5=K},{mode:_.p8("kevlar_poly_si_batch_j070")?1:2});var GNi;var A7U=_.C8(function(K){var d=K.data;return _.U(_.jV,{data:function(){return d().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(d().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var f=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":f=88;break a;default:f=88}return f},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return d().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"gi"),r7i=_.C8(function(K){var d=K.metadataRow;
var f=K.delimiter;return _.U(_.v_,{each:function(){return d().textParts||[]},
keyBy:"INDEX"},function(H,D){return _.U(_.dF,null,_.U(_.ji,{text:H,noWrap:!0,userInput:!0}),_.U(TKZ,{delimiter:f,max:function(){return d().textParts.length},
index:D}))})},"hi"),TKZ=_.C8(function(K){var d=K.delimiter;
var f=K.max;var H=K.index;return _.U(_.X,{cond:function(){return(d==null?void 0:d())&&f()-1>H()},
then:function(){return _.U("span",null,d)}})},"ii"),qBP=_.C8(function(K){var d=K.data;
K={};return _.U("yt-profile-page-header-information-view-model",{class:_.SC("profile-page-header-information-view-model-wiz",(K["profile-page-header-information-view-model-wiz--mobile"]=!1,K))},_.U(_.X,{cond:function(){return d().onTap},
then:function(){return _.U(_.pI,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.$A(d().onTap)}},_.U(_.z1,{data:function(){return d().thumbnail}},{profilePageHeaderThumbnailViewModel:A7U}))},
else:function(){return _.U("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.U(_.z1,{data:function(){return d().thumbnail}},{profilePageHeaderThumbnailViewModel:A7U}))}}),_.U("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.U(_.X,{cond:function(){return d().onTap},
then:function(){return _.U(_.z1,{data:function(){return d().title}},{profilePageHeaderTitleViewModel:function(f){var H=f.data;
return _.U(_.pI,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.$A(H().onTap)}},_.U(_.ji,{text:function(){return H().title}}))}})},
else:function(){return _.U(_.z1,{data:function(){return d().title}},{profilePageHeaderTitleViewModel:function(f){var H=f.data;
return _.U(_.ji,{text:function(){return H().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.U(_.z1,{data:function(){return d().metadata}},{profilePageHeaderMetadataViewModel:function(f){var H=f.data;
return _.U(_.X,{cond:function(){return H().metadataRows},
then:function(D){return _.U("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.U(_.v_,{each:D,keyBy:"INDEX"},function(S,n){return _.U(_.dF,null,_.U(r7i,{metadataRow:S,delimiter:" \u2022 "}),_.U(TKZ,{delimiter:" \u2022 ",max:function(){return D().length},
index:n}))}))}})}})))},"ji");
qBP.idomCompat=!0;_.sP(qBP,"yt-profile-page-header-information-view-model",{props:{data:_.rs}});var Rr=function(){return _.q.apply(this,arguments)||this};
_.O(Rr,_.q);Rr.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Rr.prototype,"data",void 0);Rr=_.x([_.Q({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Rr);
_.C(Rr,"ytd-effect-pivot-header-view-model",function(){if(GNi!==void 0)return GNi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return GNi=
K},{mode:1});var QpS;var FG=function(){return _.q.apply(this,arguments)||this};
_.O(FG,_.q);FG.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],FG.prototype,"data",void 0);FG=_.x([_.Q({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],FG);
_.C(FG,"ytd-source-pivot-header-renderer",function(){if(QpS!==void 0)return QpS;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return QpS=K},{mode:1});_.jpP=_.C8(function(K){var d=K.data;K=_.Co();_.W9(K,function(){return d().rendererContext});
var f=function(){var H;return _.lX((H=d())==null?void 0:H.rendererContext)};
return _.U("content-list-item-view-model",{el:K,class:"ytContentListItemViewModelHost",role:function(){return f()?"listitem":void 0},
tabindex:function(){return f()?0:void 0}},_.U("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.U("div",{class:"ytContentListItemViewModelImageContainer"},_.U(_.X,{cond:function(){return d().image},
then:function(H){return _.U(_.jV,{data:H,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.U(_.z1,{data:function(){var H;
return(H=d())==null?void 0:H.avatar}},{avatarViewModel:_.Pz})),_.U("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.U("div",{class:"ytContentListItemViewModelTitle"},_.U(_.ji,{text:function(){return d().title}})),_.U("div",{class:"ytContentListItemViewModelMetadata"},_.U(_.z1,{data:function(){return d().metadata}},{contentMetadataViewModel:function(H){return _.U(_.eUt,{data:H.data,
layout:1})}})))),_.U("div",{class:"ytContentListItemViewModelActionButton"},_.U(_.z1,{data:function(){var H;
return(H=d())==null?void 0:H.actionButton}},{buttonViewModel:_.oY,
toggleButtonViewModel:_.MT})))},"ki");_.sP(_.C8(function(K){var d={},f={},H={},D={};return _.U("yt-card-view-model",{class:_.SC("ytCardViewModelHost",K.className,(d.ytCardViewModelOutline=function(){return K.data().cardStyle==="CARD_STYLE_OUTLINE"},d),(f.ytCardViewModelRaised=function(){return K.data().cardStyle==="CARD_STYLE_RAISED"||K.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},f),(H.ytCardViewModelTonal=function(){return K.data().cardStyle==="CARD_STYLE_TONAL"},H),(D.ytCardViewModelInverted=function(){return K.data().cardStyle===
"CARD_STYLE_INVERSE"},D))},_.U(_.z1,{data:function(){return K.data().background}},{cinematicContainerViewModel:function(S){return _.U(_.Ark,{data:S.data})}}),_.U("div",{class:"ytCardViewModelContentWrapper"},_.U(_.z1,{data:function(){return K.data().content}},{contentListItemViewModel:function(S){return _.U(_.jpP,{data:S.data})}})),_.U(_.z1,{data:function(){return K.data().dismissAction}},{buttonViewModel:function(S){return _.U(_.oY,{data:S.data})}}))},"li"),"yt-card-view-model",{props:{data:_.rs,
className:_.rs}});_.sP(_.C8(function(K){var d=function(){return _.P(K.data().flowRoot,R9E)};
_.tR(function(){var f=d(),H=function(){},D=function(){};
if(f){var S,n,u=(n=_.P((S=f.steps)==null?void 0:S[0],_.hTt))==null?void 0:n.stepId;V8t(f,u||"");H=y7P(f);D=nj7(f)}_.$F(function(){H();H=function(){};
D();D=function(){}})});
return _.U("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.U(_.fo6,{contentId:function(){return K.data().contentId}},function(){return _.U("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.U(_.X,{cond:d,
then:function(f){return _.U(_.vF5,{data:f})}}))}))},"mi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.rs}});_.sP(_.C8(function(){return _.U("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.U("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.U("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.U(_.Sb7,null)),_.U(_.HcJ,{data:{rows:1},isExploreHub:!0}))},"ni"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.sP(_.C8(function(K){var d=K.data;var f=K.standardUnitMinWidth;K=_.Co();var H=_.y((0,_.yKf)(d)),D=H.next().value,S=H.next().value,n=function(){var a,R=(a=D())==null?void 0:a.contents;return R==null||R.length===0},u=function(){S(Object.assign({},D(),{contents:[]}))};
_.wU(K,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var a=_.P(d().chipsShelf,z9i);if(a!=null&&a!=null&&a.autoselectChipOnVisible){var R,F,z=_.P(a==null?void 0:(R=a.contents)==null?void 0:R[(F=a.autoselectedChipIndex)!=null?F:0],_.hQ);z&&z.tapCommand&&_.me(z.tapCommand)}}});
return _.U("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:K},_.U(_.fo6,{contentId:function(){return d().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.U("div",null,_.U("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.U(_.z1,{data:function(){return d().header}},{sectionHeaderViewModel:function(a){return _.U(_.d6,{data:a.data,
disableHorizontalPadding:!0})}})),_.U("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.U(_.z1,{data:function(){return d().chipsShelf}},{chipsShelfViewModel:function(a){return _.U(_.VzN,{data:a.data,
callback:u,enableSingleChipSelection:!0})}})),_.U("div",null,_.U(_.X,{cond:n,
then:function(){return _.U("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.U(_.HcJ,{data:{rows:1},isExploreHub:!0}))}}),_.U(_.z1,{data:function(){var a;
return(a=D())==null?void 0:a.contents}},{richShelfRenderer:function(a){return _.U(_.SHs,{data:a.data,
isInnerShelf:!0,standardUnitMinWidth:f})}})))}))},"oi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.rs,
standardUnitMinWidth:_.rs}});var z6=function(){return _.q.apply(this,arguments)||this};
_.O(z6,_.q);
z6.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",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}}};
z6.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.x([_.l(_.ou),_.B("design:type",Object)],z6.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.lY),_.B("design:type",Object)],z6.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],z6.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Number)],z6.prototype,"standardUnitMinWidth",void 0);z6=_.x([_.Q({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],z6);
_.C(z6,"ytd-rich-section-renderer",function(){if(mWc!==void 0)return mWc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return mWc=K},{mode:_.p8("kevlar_poly_si_batch_j029")?
1:2});_.sP(_.sLy,"yt-profile-identity-info-view-model",{props:{data:_.rs,hideDivider:_.rs}});_.sP(_.BpJ,"yt-page-header-view-model",{props:{data:_.rs,noPadding:_.rs,enableBanner:_.rs,cinematicContainerTopbarOffset:_.rs,allowCinematicContainerOverflow:_.rs,displayAsSidebar:_.rs,displayAsPanel:_.rs}});_.sP(_.C8(function(K){var d=K.data;var f=function(){var D;return(D=d().numColumns)!=null?D:2},H=function(){return f()>1?3:2};
K={};return _.U("ytd-rich-grid-group",{class:_.SC("ytdRichGridGroupHost",(K.ytdRichGridGroupHostFirstColumn=function(){return d().colIndex===0},K)),
style:_.Im({"--ytd-rich-grid-group-num-columns":f,"--ytd-rich-grid-items-per-group":H})},_.U("div",{class:"ytdRichGridGroupContents"},_.U(_.z1,{data:function(){var D;return(D=d().contents)==null?void 0:D.slice(0,H())}},{richItemRenderer:function(D){return _.U(_.DLk,{data:D.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"pi"),"ytd-rich-grid-group",{props:{data:_.rs}});var XG=function(){var K=_.q.apply(this,arguments)||this;K.resizeOnObserverInit=!1;K.isInlinePreviewDisabled=_.M("web_disable_inline_preview");K.disableStickyFilterBar=!1;K.transparentBackgroundChipsBar=!1;K.hideChipsBar=!1;K.isWatchDefaultLayout=!0;K.continuationShowButton=!1;K.rowReducedHorizontalMargin=!1;K.useCompactList=!1;K.manualDownloadsPresent=!1;K.smartDownloadsPresent=!1;K.shouldRenderDownloadsBanner=!1;K.hasOptedIntoSmartDownloads=!1;K.elementsPerRow=4;K.typographyBump=!1;K.showGnomeContents=
!1;K.showExploreHubContents=!1;K.slimItemsPerRow=1;K.pageLoadingFromNavigation=!1;K.loggingRefactor=_.M("kevlar_rich_grid_logging_fix");K.resizeObserver=null;K.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"};K.rendererToTagNameMap=
new Map(Object.entries(K.contentMapping()).map(function(d){var f=_.y(d);d=f.next().value;f=f.next().value;return[d,f.component]}));
K.insertedContent=new Map;return K};
_.O(XG,_.q);_.V=XG.prototype;_.V.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var K=_.y(_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),d=K.next();!d.done;d=K.next())d.value.useCompactList=this.useCompactList};
_.V.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var K=_.y(_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),d=K.next();!d.done;d=K.next())d=d.value,d.sizing=this.sizing,d.typographyBump=this.typographyBump};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.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]]"}}}};
_.V.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}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.Dm(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.Ct(this.resizeObserved,_.di("rich_grid_resize_delay_ms",50),this)};
_.V.detached=function(){var K;(K=this.resizeObserver)==null||K.disconnect();document.removeEventListener("yt-page-type-changed",_.Dm(this,this.onPageChange))};
_.V.insertRichSection=function(K){var d=K.richItemTargetId;K=K.richSectionRendererToInsert;d&&K&&(this.insertedContent.set(d,K),this.reflowContent())};
_.V.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.V.computeIsInlinePreviewEnabled=function(K,d,f){return _.M("web_disable_inline_preview")?!1:!f&&_.M4t({miniplayerIsActive:K,miniplayerPlaybackState:d})};
_.V.computeSizing=function(){var K=_.pju(this.data);if(K||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return K?this.useCompactList?"COMPACT":K:this.miniMode?"COMPACT":_.M("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.V.updateItemMinAndMaxWidth=function(){var K=_.di("rich_grid_max_item_width",500);K>0&&_.f8(this.hostElement,{"--ytd-rich-grid-item-max-width":K+"px"});var d;K=this.getRichItemMinWidth((d=this.hostElement)==null?void 0:d.clientWidth);K>0&&_.f8(this.hostElement,{"--ytd-rich-grid-item-min-width":K+"px"})};
_.V.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.V.resizeObserved=function(){_.p1(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.V.navigateBackToHome=function(){_.M("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.M("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var K=_.eq().resolve(_.jC).isOnWatch(),d,f=((d=_.ym(location.pathname))==null?void 0:d.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(f)||K)&&this.gnomeContents&&_.M("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);K&&this.exploreHubContents&&_.M("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.j3().dispatch(_.es({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.V.onPageChange=function(){var K=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.M("disable_chip_select_on_nav")||_.p1(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.oc.addJob(function(){K.pageLoadingFromNavigation=!1;_.M("disable_chip_select_on_nav")&&_.M("h5_reset_cache_and_filter_before_update_masthead")&&K.resetCacheAndIsFilteredFeed();K.setMasthead();K.maybeSetBigYoodle();K.forceRefreshAndLog();K.terminateVideoPreview();_.M("web_hide_gnome_until_user_navigates_back_to_home")&&
(K.dataChanged(),_.jW(K,function(){if(K.showGnomeContents){var d=Array.from(_.E(K.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(H){H=_.E(H).querySelector("ytd-rich-shelf-renderer");return!!H&&H.isGnomeShelf()});
if(d){d=d.offsetTop-K.contentsElement.offsetTop;var f=_.eq().resolve(_.jC).getCurrentPage();f&&f.getPageScrollingElement().scrollTo({top:d,behavior:"smooth"})}}}));
_.M("web_hide_explore_hub_until_user_navigates_back_to_home")&&(K.dataChanged(),_.jW(K,function(){if(K.showExploreHubContents&&!_.M("web_explore_hub_no_scroll")){var d=Array.from(_.E(K.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(H){return!!H.querySelector("ytd-talk-to-recs-flow-renderer")});
if(d){d=d.offsetTop-K.contentsElement.offsetTop;var f=_.eq().resolve(_.jC).getCurrentPage();f&&f.getPageScrollingElement().scrollTo({top:d,behavior:"smooth"})}}}))},8)):((_.M("web_hide_gnome_until_user_navigates_back_to_home")||_.M("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.V.dataChanged=function(){var K=this,d=_.di("web_rich_grid_row_margin",0);d>0&&_.f8(this.hostElement,{"--ytd-rich-grid-row-margin":d+"px"});_.p1(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.jW(this,function(){K.updateRichItemGridPositions();K.contentsElement&&_.f8(K.hostElement,{"--ytd-rich-grid-content-offset-top":K.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.V.initResizeObserver=function(){var K=this;if(window.ResizeObserver){var d;(d=this.resizeObserver)==null||d.disconnect();var f=!1;this.resizeObserver=new ResizeObserver(function(){if(f){var H;(H=K.resizeObserver)==null||H.disconnect();var D;(D=K.throttledOnResize)==null||D.fire();requestAnimationFrame(function(){var n;(n=K.throttledOnResize)==null||n.fire();K.initResizeObserver()})}else if(f=!0,K.resizeOnObserverInit){var S;
(S=K.throttledOnResize)==null||S.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.V.contentLengthChanged=function(){if(_.M("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.p1(this.hostElement,"ytd-rich-item-index-update-action")};
_.V.updateElementsPerRow=function(){_.p1(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.es({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.es({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.V.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.V.onRichShelfRendererCollapse=function(K){if(this.shownItems){var d=K.detail;K=this.shownItems.findIndex(function(H){var D,S;return((S=_.P(H==null?void 0:(D=H.richSectionRenderer)==null?void 0:D.content,_.Y3f))==null?void 0:S.trackingParams)===d});
var f=K+1;K<0||f>=this.contentsElement.children.length||!this.shownItems[f].richItemRenderer||this.contentsElement.children[f].scrollIntoView({behavior:"smooth",block:"start"})}};
_.V.onSoftReloadPage=function(){this.scrollUpToTop()};
_.V.handleRerenderDownloadsData=function(){_.M("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.V.handlePlaylistRemoveVideosAction=function(K){var d;if(((d=_.P(K,_.L44))==null?0:d.setVideoIds)&&this.data&&this.data.contents){K=_.P(K,_.L44).setVideoIds;for(d=this.data.contents.length-1;d>=0;){var f=_.P(this.data.contents[d],_.MV);(f=f&&_.P(f.content,_.YH))&&f.setVideoId&&K.includes(f.setVideoId)&&this.splice("data.contents",d,1);d--}this.updateIndices()}};
_.V.updateIndices=function(){if(this.data&&this.data.contents)for(var K=0;K<this.data.contents.length;K++)this.set("data.contents."+K+".richItemRenderer.index",_.rB(String(K+1)))};
_.V.hasTopRowInlinePlayableVideoWithEndorsement=function(K){var d;return!((d=K.slice(0,this.getItemsPerRow()))==null||!d.some(function(f){var H;f=_.P(f==null?void 0:(H=f.richItemRenderer)==null?void 0:H.content,_.$H);var D;return(f==null?void 0:f.inlinePlaybackEndpoint)&&(f==null?void 0:(D=f.thumbnailOverlays)==null?void 0:D.some(function(S){return S.thumbnailOverlayEndorsementRenderer}))}))};
_.V.refreshGridLayoutNew=function(K,d,f,H){var D=H.postsPerRow;var S=H.slimItemsPerRow;var n=H.gameCardsPerRow;H=H.miniGameCardsPerRow;var u;if((u=this.data)==null||!u.contents||!this.containerWidth)return!1;var a;if((a=this.data.responsiveContainerConfiguration)==null?0:a.responsiveSize){var R=_.WOG(this.data.responsiveContainerConfiguration,this.containerWidth),F;u=_.rP(Object.assign({},R,{standardUnitMinWidth:(F=this.data)==null?void 0:F.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&R.isCompactList)}else u=_.rP({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(R=this.data)==null?void 0:R.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=u.typographyBump;F=!1;if(K||this.elementsPerRow!==u.numItems||this.postsPerRow!==D||this.slimItemsPerRow!==S||this.gameCardsPerRow!==
n||this.miniGameCardsPerRow!==H||this.gutter!==u.gutter)F=this.elementsPerRow!==u.numItems,this.elementsPerRow=u.numItems,this.postsPerRow=D,this.slimItemsPerRow=S,this.gameCardsPerRow=n,this.miniGameCardsPerRow=H,this.gutter=u.gutter,this.itemWidth=u.itemWidth,this.reflowContent(d),_.f8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":u.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(f);this.ytdReduxBehavior.dispatch(_.es({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:u.maxContainerWidth}));return F};
_.V.refreshGridLayout=function(K,d){var f,H=(f=this.hostElement)==null?void 0:f.clientWidth;this.containerWidth=this.adjustRichGridWidth(H,!0);var D;if((D=this.data)==null||!D.contents||!this.containerWidth)return K&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.M("rg_pending_reflow_ks")&&(K=!0,this.pendingForceReflow=!1);f=this.getRichItemMinWidth(H);var S=this.isShortsPanel?146:194,n=this.getMiniGameCardMinWidth(),u=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
H=f=this.calcElementsPerRow(f,u);(D=f<=3&&this.miniModeAllowed())&&(f=this.calcElementsPerRow(240,4));var a=this.calcMaxSlimElementsPerRow(f,u,this.isDefaultGrid);u=this.calcElementsPerRow(S,a);var R=this.calcElementsPerRow(this.isCompactGrid?S:154,a);S=this.calcElementsPerRow(this.isCompactGrid?S:n,a);n=!1;if(this.sizing)return this.refreshGridLayoutNew(K,d,D,{postsPerRow:H,slimItemsPerRow:u,gameCardsPerRow:R,miniGameCardsPerRow:S});if(K||this.elementsPerRow!==f||this.postsPerRow!==H||this.slimItemsPerRow!==
u||this.gameCardsPerRow!==R||this.miniGameCardsPerRow!==S)n=this.elementsPerRow!==f,this.elementsPerRow=f,this.postsPerRow=H,this.slimItemsPerRow=u,this.gameCardsPerRow=R,this.miniGameCardsPerRow=S,this.reflowContent(d),this.updateElementsPerRow(),_.f8(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)&&_.f8(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(D);_.p1(this.hostElement,"yt-rich-grid-layout-refreshed");return n};
_.V.getRichItemMinWidth=function(K){var d=_.di("rich_grid_min_item_width",310);if(!_.M("kevlar_disable_min_width_override")){var f,H;d=(H=(f=this.data)==null?void 0:f.minItemWidth)!=null?H:d}return d+_.Bfz(K)};
_.V.calcMaxSlimElementsPerRow=function(K,d,f){return(f===void 0?0:f)?K===1?2:K%2===0?_.M("web_shorts_2_by_3_reduce_items_per_row")&&K>=4?K/2*3-1:K/2*3:_.M("web_shorts_2_by_3_reduce_items_per_row")&&K>=3?K+1:K+2:d*2};
_.V.adjustRichGridWidth=function(K,d){var f=_.M("disable_rich_grid_guide_compensation");if(!this.isWatch&&!f){f=_.eq().resolve(_.Zd(_.mr));var H=f==null?void 0:f.guideElement;if(!(!f||f.getData()||H!=null&&H.opened||f.getMiniGuideVisible()))if(f.canFitPersistentGuide(K)&&f.getGuideExpandsAutomatically()){var D,S,n=Number((D=window.getComputedStyle(this.hostElement))==null?void 0:(S=D.getPropertyValue("--app-drawer-width"))==null?void 0:S.replace("px",""));K-=n||0}else if(f.canFitMiniGuide(K)){var u;
D=Number((n=window.getComputedStyle(this.hostElement))==null?void 0:(u=n.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:u.replace("px",""));K-=D||0}}K>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(K-=d?32:48));return K};
_.V.calcElementsPerRow=function(K,d){var f=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),H=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((f+H)/(K+H))||1,d)};
_.V.reflowContent=function(K){var d=this;if(!this.isReflowing){this.isReflowing=!0;var f,H,D=!!((f=this.data)==null?0:(H=f.contents)==null?0:H.some(function(g){return _.P(g,_.k6)}));
f=this.getItemsPerRow();var S;H=(S=this.data)==null?void 0:S.reflowOptions;K&&(_.YJ("rgr_s"),_.jW(this,function(){_.YJ("rgr_nrf")}));
K={};(S=_.E(this.hostElement).querySelector("#contents"))&&(K={contentElement:S,rendererToTagNameMap:this.rendererToTagNameMap});S=(S=this.data.contents)?S.slice():[];var n=(_.M("web_hide_gnome_behind_feed_filter_chip")||_.M("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,u=_.M("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,a=-1,R=-1;if(this.isHomePage&&u){for(u=0;u<S.length;u++){var F=void 0,z=void 0;_.P((F=S[u])==null?void 0:
(z=F.richSectionRenderer)==null?void 0:z.content,UWi)&&(R=u)}R>-1&&(this.exploreHubContents=S.splice(R,1))}if(this.isHomePage&&n){for(R=0;R<S.length;R++)z=F=void 0,(u=_.P((F=S[R])==null?void 0:(z=F.richSectionRenderer)==null?void 0:z.content,_.Y3f))&&n&&(z=F=void 0,u=_.P((F=u)==null?void 0:(z=F.contents)==null?void 0:z[0],_.MV),F=void 0,_.P((F=u)==null?void 0:F.content,_.oW8)&&(a=R));a>-1&&(this.gnomeContents=S.splice(a,1))}var v=dW5(S,f,D,H,this.getRichGridStyle(),K,this.insertedContent);D=function(){d.shownItems=
v;d.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(v),_.jW(this,D)):D()}};
_.V.getFirstRowItems=function(K){for(var d=[],f=0;f<K.length;f++){var H=void 0,D=void 0,S=void 0,n=void 0,u=void 0,a=void 0;if(((H=K[f])==null?void 0:(D=H.richItemRenderer)==null?void 0:D.rowIndex)===0||((S=K[f])==null?void 0:(n=S.richGroupRenderer)==null?void 0:n.rowIndex)===0||((u=K[f])==null?void 0:(a=u.richSectionRenderer)==null?void 0:a.rowIndex)===0)d.push(K[f]);else break}return d};
_.V.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.V.handleChipCloudChipSelectAction=function(K,d){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.M("web_hide_gnome_behind_feed_filter_chip")&&(d?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.V.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.M("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.V.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.M("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.V.terminateVideoPreview=function(){_.p1(this.hostElement,"yt-terminate-video-preview-action")};
_.V.updateRichItemGridPositions=function(){var K={gridData:{gridColumnCount:this.elementsPerRow}},d;if((d=this.data)==null?0:d.trackingParams)this.loggingRefactor?_.cv().stateChanged(this.data.trackingParams,K):(d=_.te())&&_.Q$(d,_.RG(this.data.trackingParams),K);_.p1(this.hostElement,"ytd-rich-item-index-update-action")};
_.V.miniModeAllowed=function(){return _.M("disable_channels_mini_mode")?!1:this.isChannelPage};
_.V.getMiniGameCardMinWidth=function(){return 154};
_.V.updateMiniMode=function(K){this.miniMode=this.miniModeAllowed()&&K;this.ytdReduxBehavior.dispatch(_.es({type:"SET_RICH_GRID_MINI_MODE",payload:K}))};
_.V.isCurrentPage=function(){return location.pathname===this.pagePath};
_.V.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var K=_.eq().resolve(_.jC).getCurrentPage();K&&K.setScrollTop(0)}};
_.V.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.V.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.V.maybeSetBigYoodle=function(){var K,d=(K=this.data)==null?void 0:K.bigYoodle;this.bigYoodleData!==d&&(this.bigYoodleData=d)};
_.V.setMasthead=function(){var K;((K=this.data)==null?0:K.masthead)?this.mastheadData=this.data.masthead:_.M("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.V.getRichGridStyle=function(){var K,d;return(d=(K=this.data)==null?void 0:K.style)!=null?d:"RICH_GRID_STYLE_UNKNOWN"};
_.V.onIsShortsGridChange=function(){var K=this.ytdReduxBehavior,d=K.dispatch,f=this.getRichGridStyle();d.call(K,_.es({type:"SET_RICH_GRID_STYLE",payload:f}))};
_.x$.Object.defineProperties(XG.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var K=_.eq().resolve(_.jC).getCurrentPage(),d,f,H;return(((d=this.data)==null?void 0:d.targetId)==="browse-feedFEsfv_audio_pivot"||_.M("web_enable_channel_pivot_panel")&&((f=this.data)==null?void 0:f.targetId)==="browse-feedFEsfv_channel_pivot"||_.M("web_enable_effect_pivot_panel")&&((H=this.data)==null?void 0:H.targetId)==="browse-feedFEsfv_effect_pivot")&&(K==null?void 0:K.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.M("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 K;return!((K=this.data)==null?0:K.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var K;return((K=_.eq().resolve(_.jC).getCurrentPage())==null?void 0:K.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var K;return((K=_.eq().resolve(_.jC).getCurrentPage())==null?void 0:K.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var K;return this.hideChipsBar||(((K=this.data)==null?void 0:K.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.M("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.targetId)||"")==="watch-next-feed"&&!_.M("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((K=this.data)==null?0:K.enableContentSpecificAspectRatio)||((d=this.data)==null?0:(f=d.responsiveContainerConfiguration)==null?0:f.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.di("web_continuation_handler_margin",0):0}}});
XG.prototype.onIsShortsGridChange=XG.prototype.onIsShortsGridChange;XG.prototype.onReloadContinuationFinish=XG.prototype.onReloadContinuationFinish;XG.prototype.reflowContent=XG.prototype.reflowContent;XG.prototype.handleRerenderDownloadsData=XG.prototype.handleRerenderDownloadsData;XG.prototype.onRichShelfRendererCollapse=XG.prototype.onRichShelfRendererCollapse;XG.prototype.onRequestElementsPerRow=XG.prototype.onRequestElementsPerRow;XG.prototype.contentLengthChanged=XG.prototype.contentLengthChanged;
XG.prototype.dataChanged=XG.prototype.dataChanged;XG.prototype.onSizingChange=XG.prototype.onSizingChange;XG.prototype.onUseCompactListChange=XG.prototype.onUseCompactListChange;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],XG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.Mg),_.B("design:type",Object)],XG.prototype,"ironResizableBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],XG.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.lY),_.B("design:type",Object)],XG.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],XG.prototype,"componentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],XG.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],XG.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],XG.prototype,"miniMode",void 0);_.x([_.A({value:[]}),_.B("design:type",Array)],XG.prototype,"shownItems",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],XG.prototype,"isReflowing",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],XG.prototype,"isFilteredFeed",void 0);_.x([_.A({selector:_.aDp}),_.B("design:type",Boolean)],XG.prototype,"guideIsExpanded",void 0);
_.x([_.A({selectorArgs:["entitySelectorType"],selector:function(K,d){if(_.M("kevlar_modern_downloads_page")&&d&&d!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(d){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var f=K.entities;d=_.vJ(f);var H=_.MQ(f),D=_.hxY(K),S=_.EHX(K);K=_.b2N(K);var n=_.DVJ(f),u=_.UV(d);f=_.PJ(f);return _.ogz(d,H,n,D,S,u,f,K);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return d=_.vJ(K.entities),_.EgS(d);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return d=
_.Kvo(K.entities),_.h1o(d);default:_.h3(new _.X4("Error: entitySelectorType defined but not matched in selector.",K,d))}}}),
_.B("design:type",Object)],XG.prototype,"entityDrivenRichGridData",void 0);_.x([_.A(),_.B("design:type",Object)],XG.prototype,"resizeOnObserverInit",void 0);_.x([_.A(),_.B("design:type",Object)],XG.prototype,"bigYoodleData",void 0);_.x([_.A(),_.B("design:type",Object)],XG.prototype,"mastheadData",void 0);_.x([_.A(),_.B("design:type",Boolean)],XG.prototype,"isInlinePreviewDisabled",void 0);_.x([_.A(),_.B("design:type",Object)],XG.prototype,"disableStickyFilterBar",void 0);
_.x([_.A(),_.B("design:type",Object)],XG.prototype,"transparentBackgroundChipsBar",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],XG.prototype,"hideChipsBar",void 0);_.x([_.A(),_.B("design:type",Object)],XG.prototype,"isWatchDefaultLayout",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],XG.prototype,"continuationShowButton",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],XG.prototype,"rowReducedHorizontalMargin",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],XG.prototype,"useCompactList",void 0);_.x([_.A({selector:function(K){return _.MQ(K.entities).length>0}}),
_.B("design:type",Object)],XG.prototype,"manualDownloadsPresent",void 0);_.x([_.A({selector:function(K){return _.vJ(K.entities).length>0}}),
_.B("design:type",Object)],XG.prototype,"smartDownloadsPresent",void 0);_.x([_.A({selector:_.EHX}),_.B("design:type",Object)],XG.prototype,"shouldRenderDownloadsBanner",void 0);_.x([_.A({selector:_.hxY}),_.B("design:type",Object)],XG.prototype,"hasOptedIntoSmartDownloads",void 0);_.x([_.SP("useCompactList"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XG.prototype,"onUseCompactListChange",null);
_.x([_.SP("sizing","typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XG.prototype,"onSizingChange",null);_.x([_.A({selector:_.zx5}),_.B("design:type",Number)],XG.prototype,"miniplayerPlaybackState",void 0);_.x([_.A({selector:_.Yo}),_.B("design:type",Boolean)],XG.prototype,"miniplayerIsActive",void 0);
_.x([_.A({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.B("design:type",Boolean)],XG.prototype,"isInlinePreviewEnabled",void 0);_.x([_.A({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.B("design:type",String)],XG.prototype,"sizing",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],XG.prototype,"elementsPerRow",void 0);
_.x([_.A(),_.B("design:type",Object)],XG.prototype,"typographyBump",void 0);_.x([_.A(),_.B("design:type",Number)],XG.prototype,"itemWidth",void 0);_.x([_.n8("#header"),_.B("design:type",HTMLElement)],XG.prototype,"headerElement",void 0);_.x([_.n8("#contents"),_.B("design:type",HTMLElement)],XG.prototype,"contentsElement",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XG.prototype,"dataChanged",null);
_.x([_.an("data.contents.length"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XG.prototype,"contentLengthChanged",null);_.x([_.VV("yt-request-elements-per-row"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XG.prototype,"onRequestElementsPerRow",null);
_.x([_.VV("yt-rich-shelf-renderer-collapse"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],XG.prototype,"onRichShelfRendererCollapse",null);_.x([_.an("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XG.prototype,"handleRerenderDownloadsData",null);
_.x([_.W("data"),_.B("design:type",String),_.B("design:paramtypes",[])],XG.prototype,"entitySelectorType",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"isSub",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"isWatch",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"isShortsPanel",null);_.x([_.A({reflectToAttribute:!0}),_.W("isWatch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"reducedTopMargin",null);_.x([_.A({reflectToAttribute:!0}),_.W("data","isWatch","isWatchDefaultLayout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"noTopMargin",null);
_.x([_.A({reflectToAttribute:!0}),_.W("isInlinePreviewEnabled","shownItems"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"topRowEndorsement",null);_.x([_.W("data.header"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"hideHeader",null);_.x([_.VV("yt-rich-grid-reflow"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],XG.prototype,"reflowContent",null);
_.x([_.VV("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XG.prototype,"onReloadContinuationFinish",null);_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"isSlimGrid",null);_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"isShortsGrid",null);
_.x([_.W("data","isSlimGrid","isShortsGrid"),_.A(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"noRichItemGutterMargins",null);_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"isShortsGridSlim",null);_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"isCompactGrid",null);
_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"isDefaultGrid",null);_.x([_.W("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"hideChipsBarOnHome",null);_.x([_.W("data.targetId"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"hideChipsBarOnWatch",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XG.prototype,"onIsShortsGridChange",null);_.x([_.W("data.enableContentSpecificAspectRatio"),_.A(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XG.prototype,"force16By9ThumbnailAspectRatio",null);_.x([_.W("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],XG.prototype,"continuationTriggerOffset",null);XG=_.x([_.Q({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],XG);
_.C(XG,"ytd-rich-grid-renderer",function(){if(EjK!==void 0)return EjK;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return EjK=K},{mode:2});var C0U=_.C8(function(K){var d=K.thumbsUp;K=K.thumbsDown;var f=_.y(_.cC(!1,void 0,"OxPsH")),H=f.next().value,D=f.next().value;f=_.y(_.cC(!1,void 0,"V5vWne"));var S=f.next().value,n=f.next().value;return _.U("div",{class:"ytwThumbsUpDownThumbs"},_.U(_.MT,{data:d,onToggle:function(u){D(u);S()&&n(!1)},
buttonShapeOverrides:function(){return{toggled:H()}}}),_.U(_.MT,{data:K,
onToggle:function(u){n(u);H()&&D(!1)},
buttonShapeOverrides:function(){return{toggled:S()}}}))},"qi");
C0U.idomCompat=!0;var LIz=_.C8(function(K){var d=function(){return K.data().pendingStateEntityKey||""},f=_.yF(_.iiU,d),H=function(){var D;
if(!(D=K.disabled())){var S;D=!((S=f())==null||!S.isPendingResponse)}return D};
return _.U("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.U(_.v_,{each:function(){return K.data().chipData||[]},
keyBy:"REFERENCE"},function(D){return _.U(xWl,{data:D,disabled:H,pendingStateKey:d,onError:K.onError})}))},"ri"),xWl=_.C8(function(K){var d=_.Co(),f=_.y(_.cC(!0,void 0,"HBREAe")),H=f.next().value,D=f.next().value,S=function(){return K.data().text.content},n=_.cp(function(u){var a,R,F,z,v,g,N,h;
return _.c(function(m){switch(m.nextAddress){case 1:u.stopPropagation();if(K.disabled())return m.return();R=String(Math.floor(((a=_.dP())==null?void 0:a.getCurrentTime())||0)*1E3);F="youchat-"+Date.now();z=function(){_.EP(K.data().onClick||{});var T={continuationCommand:{token:K.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},r={inputComposerFormData:{clientMessageId:F,playerOffsetMs:R}};return new Promise(function(J,L){_.EP(T,{form:{formData:r},commandController:{onSuccess:function(fB,
w){J(w)},
onServerError:function(fB,w){L(w.error)}}})})};
v=_.c7w(K.pendingStateKey());v(!0);_.w1t("#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");D(!1);_.HF(m,2);return _.I(m,z(),4);case 4:_.Ts(m,3);break;case 2:g=_.n7(m),(h=(N=K).onError)==null||h.call(N,g);case 3:v(!1),_.iQ(m)}})});
return _.U(_.X,{cond:H,then:function(){return _.U("div",{class:"ytwYouChatChipsDataChipWrapper"},_.U("button",{el:d,class:"ytwYouChatChipsDataChip","data-disabled":K.disabled,"on:click":n,tabindex:0},S))}})},"si");var BKz=_.C8(function(K){var d=K.data;return _.U("yt-conversation-resource-view-model",{class:_.SC("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.U(_.z1,{data:function(){var f,H;return((f=d().conversationResourceData)==null?void 0:(H=f.learningGuideData)==null?void 0:H.sections)||[]}},{expandableMetadataViewModel:function(f){return _.U(_.$Nv,{data:f.data})}}))},"ti");
BKz.idomCompat=!0;var J7l=_.C8(function(K){var d=function(){var r;return(r=K.data().text)==null?void 0:r.content},f=function(){var r,J;
return(r=K.data().webData)==null?void 0:(J=r.textResult)==null?void 0:J.content},H=_.eq().resolve(_.rl),D=_.ft(),S=function(){return K.data().chatResponseStyle},n=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:K.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},u=function(){var r;
return K.data().webData||((r=K.data().text)==null?void 0:r.content)||K.data().videoResultsData||K.data().conversationResourceViewModel||K.data().quiz},a=function(){var r;
return(r=K.data().videoResultsData)==null?void 0:r.videoShelf},R=function(){var r;
return _.P(((r=K.data().videoResultsData)==null?void 0:r.videoShelf)||{},XQU)},F=function(){var r;
return(r=K.data().webData)==null?void 0:r.sourcesShelf},z=function(){var r;
return _.P(((r=K.data().webData)==null?void 0:r.sourcesShelf)||{},XQU)},v=function(){return _.P(K.data().conversationResourceViewModel||{},M8Z)},g=function(){return _.P(K.data().quiz||{},FI7)},N=function(){return S()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||S()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:K.data().thumbsDownViewModel&&K.data().thumbsUpViewModel},h=function(){return _.P(K.data().thumbsUpViewModel,_.v9)},m=function(){return _.P(K.data().thumbsDownViewModel,_.v9)};
_.Nk(function(){requestAnimationFrame(function(){var r;(r=K.shouldAnimateIcon)!=null&&r.call(K)&&uAE(D.lottieEl)})});
var T={};return _.U("you-chat-item-view-model",{class:_.SC("ytwYouChatItemViewModelYouChatItemViewModel",(T.ytwYouChatItemViewModelHostNoPadding=function(){return!1},T)),
"data-target-id":function(){return K.data().id||""}},_.U(_.X,{cond:u,
then:function(){var r={};return _.U("div",{"aria-hidden":"true"},_.U(_.yC,{className:_.SC("ytwYouChatItemViewModelIcon",(r.ytwYouChatItemViewModelRtl=H==="rtl",r.ytwYouChatItemViewModelHidden=function(){return!(K.data().hideIcon||S()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||S()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:u())},r)),
animationName:"YOUCHAT_ICON",data:n,animationRef:D}))}}),_.U(_.X,{cond:u,
then:function(){var r={};return _.U("div",{class:_.SC("ytwYouChatItemViewModelHost",(r.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return S()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},r.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return S()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},r.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return S()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},r)),
role:"alert"},_.U(_.X,{cond:d,then:function(J){return _.U(_.oD,{text:J})}}),_.U(_.X,{cond:f,
then:function(J){return _.U(_.oD,{text:J})}}),_.U(_.X,{cond:a,
then:function(){return _.U("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.U(_.Ye,{data:R,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.U(_.X,{cond:F,
then:function(){return _.U("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.U(_.Ye,{data:z,hasPeek:!0,disableArrows:!1}))}}),_.U(_.X,{cond:v,
then:function(){return _.U(BKz,{data:v})}}),_.U(_.X,{cond:g,
then:function(){return _.U(_.oUv,{data:g})}}),_.U(_.X,{cond:N,
then:function(){return _.U(C0U,{thumbsUp:h,thumbsDown:m})}}))}}),_.U(_.X,{cond:function(){return K.data().chipsData},
then:function(r){return _.U(LIz,{data:r,disabled:K.pending,onError:K.onError})}}))},"ui");
J7l.idomCompat={callbacks:{onError:!0,onSend:!0}};var spS=_.C8(function(K){var d=function(){return K.data().choiceSelectedText};
return _.U("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.U(_.X,{cond:d,then:function(){return _.U("div",{class:"ytYouChatUserTurnChoiceSelected"},_.U(_.ji,{text:d}))}}),_.U("div",{class:"ytYouChatUserTurnUserMessage"},function(){return K.data().text}))},"vi");var kNc=_.C8(function(K){var d=_.y((0,_.cKB)(K.data)).next().value;return _.U("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return K.data().targetId||""}},_.U(_.z1,{data:function(){return K.data().header}},{chipBarViewModel:_.ZHk}),_.U(_.z1,{data:function(){return d().contents}},{accordionViewModel:_.hVf,
alertBannerViewModel:_.D46,chatLoadingViewModel:_.yR7,chatUserTurnViewModel:spS,learningJourneyLoaderViewModel:_.tzJ,lockupViewModel:_.ef,youChatItemViewModel:function(f){return _.U(J7l,{data:f.data,pending:!1})}}))},"wi");_.sP(_.C8(function(K){var d=_.y((0,_.cKB)(K.data)).next().value;return _.U("yt-section-list-renderer",{class:_.SC("ytSectionListRendererHost",K.className),"data-target-id":function(){return K.data().targetId||""}},_.U(_.z1,{data:function(){return d().contents}},{itemSectionRenderer:kNc}))},"xi"),"yt-section-list-renderer",{props:{data:_.rs,
className:_.JJ}});var wQw;var ZiU;var vm=function(){return _.q.apply(this,arguments)||this};
_.O(vm,_.q);_.x([_.A(),_.B("design:type",Object)],vm.prototype,"data",void 0);vm=_.x([_.N7({is:"yt-alert-renderer",disableElementRegistration:!0})],vm);
_.C(vm,"yt-alert-renderer",function(){if(ZiU===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;wQw===void 0&&(wQw=document.createElement("template"));var H=wQw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);ZiU=K}K=ZiU;return K},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.hqi=function(K,d){var f,H;d=d===void 0?{}:d;var D,S,n,u,a,R,F,z,v,g,N,h;return _.c(function(m){switch(m.nextAddress){case 1:D=d;S=D.shouldWrap===void 0?!0:D.shouldWrap;n=D.skipTransitionTimeoutMs===void 0?300:D.skipTransitionTimeoutMs;u=D.beforeTransition;a=D.afterTransition;if(!S||!document.startViewTransition||document.visibilityState==="hidden")return m.return(K());f=window.innerWidth;H=window.innerHeight;R=!1;(F=u)==null||F();_.HF(m,2);z=document.startViewTransition(K);v=setTimeout(function(){z.skipTransition();
R=!0},n);
return _.I(m,z.ready,4);case 4:return clearTimeout(v),_.I(m,z.finished,5);case 5:clearTimeout(v);(g=a)==null||g();_.Ts(m,0);break;case 2:N=_.n7(m),(h=a)==null||h(),N&&!R&&document.visibilityState!=="hidden"&&f===window.innerWidth&&H===window.innerHeight&&_.$7(N),_.iQ(m)}})};
_.NG=function(K){return K!=null&&K.watch?K.watch.isTheaterMode:!1};
_.Yy=function(){for(var K=Array(36),d=0,f,H=0;H<36;H++)H==8||H==13||H==18||H==23?K[H]="-":H==14?K[H]="4":(d<=2&&(d=33554432+Math.random()*16777216|0),f=d&15,d>>=4,K[H]=_.x7J[H==19?f&3|8:f]);return K.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var bwz=_.Am(['<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>']),
m8E=_.b3B(bwz);m8E.setAttribute("style","display: none;");document.head.appendChild(m8E.content);_.tU=_.Px5(function(K){var d=_.RQ("DIV");K&&(d.className=K);d.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";K=_.RQ("DIV");_.Co6(K,"200px","200px");d.appendChild(K);document.body.appendChild(d);K=d.offsetWidth-d.clientWidth;_.FE(d);return K});var lMS;var Wb5;var oe=function(){var K=_.q.apply(this,arguments)||this;K.icon=null;return K};
_.O(oe,_.q);oe.prototype.dismiss=function(){_.Zp(this.hostElement,"yt-live-chat-error-message-dismiss")};
oe.prototype.computeIcon=function(K){return K&&K.iconType?"yt-icons:"+K.iconType.toLowerCase():"yt-icons:close"};
_.x([_.A(),_.B("design:type",Object)],oe.prototype,"data",void 0);_.x([_.A({computed:"computeIcon(data.icon)"}),_.B("design:type",Object)],oe.prototype,"icon",void 0);oe=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],oe);
_.C(oe,"yt-live-chat-error-message-renderer",function(){if(Wb5===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;lMS===void 0&&(lMS=document.createElement("template"));var H=lMS;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Wb5=K}K=Wb5;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var p2c,KOK,dUw,f6i,ngi,iXt,cCt,uOw,a6Z,tk,I6K,UUy,oy,R1K,FOE,z1E,XMP,vgZ,MLy,PaU,gg7,OXw,NnP,Yic,tLU,ogw,$U5,Egy,h1U,bXE,mUZ,l6z,$v,WO5,GQy,ACS,qiU,Q37,j3w,CaS,xUc,LOS,Tnl,rCt,JCi,s3E,kQZ,wMt,ZXi,Bnw,pMU;p2c=function(K,d){return _.DR(K.entities,"timedMarkersListSyncEntity",d)};
KOK=function(K,d){return _.DR(K.entities,"liveReactionsDataEntity",d)};
dUw=function(K,d){K=_.DR(K.entities,"booleanEntity",d);return!(!K||!K.value)};
f6i=function(K,d){var f=_.te();f&&K&&_.lB(f,_.RG(K),d)};
_.HXw=function(){_.M("web_watch_log_theater_mode")&&_.GmO("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.DUP=function(K,d,f){if(!K.includes("START_TIME_PLACEHOLDER")||!K.includes("END_TIME_PLACEHOLDER"))return K;var H=new Date(0),D=new Date(0);H.setUTCMilliseconds(d);D.setUTCMilliseconds(f);return K.replace("START_TIME_PLACEHOLDER",_.WJ(H,7)).replace("END_TIME_PLACEHOLDER",_.WJ(D,7))};
_.VL5=function(K){return K.watch.isWatchActive};
_.Ny=function(K){return K!=null&&K.watch?K.watch.isWatchFullscreen:!1};
_.Sii=function(K){return _.NG(K)||_.Ny(K)||_.qgY(K)};
_.yCi=function(K){return!_.Sii(K)};
_.Yv=function(K){return K.watch.watchScrollTop};
ngi=function(K){return K.watch.isLiveChatCollapsed};
iXt=function(K){return K.watch.openEngagementPanels};
cCt=function(K,d){return _.DR(K.entities,"booleanEntity",d)};
uOw=function(){return function(K){_.q7(_.nt("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:K}))}};
a6Z=function(K){switch(K){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}};
tk=function(K,d,f){var H=_.$A(f);K&&d&&H&&K.getPlayerPromise().then(function(D){_.I3z(H)&&_.oB();(new _.UR(D)).executeCommand(H,d);_.M("continue_playback_on_desktop_companion_click")||D.pauseVideo()})};
I6K=function(K){var d=_.xP(),f;if(f=_.T2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;f=(H=f())==null?void 0:H.layoutId}else f=null;tk(d,f,K)};
UUy=function(K){var d=_.xP(),f;if(f=_.T2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;f=(H=f())==null?void 0:H.layoutId}else f=null;tk(d,f,K)};
oy=function(K,d){var f=K<0?"-":"";K=Math.abs(K);var H=Math.floor(K/3600),D=Math.floor(K)%3600,S=Math.floor(D/60);D=Math.floor(D)%60;var n="";(d===void 0?0:d)&&(n="."+Math.round((K-Math.floor(K))*10));return H>0?f+H+":"+(S<10?"0"+S:""+S)+":"+(D<10?"0"+D:""+D)+n:f+S+":"+(D<10?"0"+D:""+D)+n};
R1K=function(K){var d=K.match(/[^0-9:\.]/g);if(d&&d.length>0)return null;K=K.split(":");if(K.length===0||K.length>3)return null;d=1;for(var f=0;K.length>0;){var H=K.pop();if(H===void 0)break;var D=Number(H);if(H===""||isNaN(D))return null;f+=D*d;d*=60}return f};
FOE=function(K,d,f,H){K=Math.max(f,K);d=Math.min(d,H-f);K+d>H?(f=H,K=f-d):f=K+d;return{start:K,end:f}};
z1E=function(K,d,f,H,D,S){K<f?K=f:K+D>H&&(K=H-D);d>H&&(d=H);d=Math.min(K+S,Math.max(K+D,d));return{start:K,end:d}};
XMP=function(K,d,f,H,D,S){d>H?d=H:d-D<f&&(d=f+D);K<f&&(K=f);K=Math.min(d-D,Math.max(d-S,K));return{start:K,end:d}};
vgZ=function(K){return _.M("web_transcript_cue_id_killswitch")?String(K):"ytd-transcript-renderer_"+K};
MLy=function(K){return _.M("web_transcript_cue_id_killswitch")?!0:K.startsWith("ytd-transcript-renderer")};
PaU=function(K){var d=_.xP(),f;if(f=_.T2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;f=(H=f())==null?void 0:H.layoutId}else f=null;tk(d,f,K)};
gg7=function(K){K.style.height="auto";K.style.height=Math.min(K.scrollHeight||20,80)+"px"};
OXw=function(K,d){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:d}}],insertByPositionInSection:{sectionTargetId:K,position:"INSERTION_POSITION_LAST"}}}]}}}};
NnP=function(K){var d=_.xP(),f;f=(f=_.T2("yt.www.ads.eventcache.getLastCompanionData"))?(f=f())&&f.layoutId:null;tk(d,f,K)};
Yic=function(K){var d=_.xP(),f;f=(f=_.T2("yt.www.ads.eventcache.getLastCompanionData"))?(f=f())&&f.layoutId:null;tk(d,f,K)};
tLU=function(K,d){d=d===void 0?!1:d;if(K.simpleText)K=[{text:K.simpleText}];else{var f;K=((f=K.runs)!=null?f:[]).map(function(H){return Object.assign({},H)})}if(d)for(d=_.y(K),f=d.next();!f.done;f=d.next())f.value.bold=!0;
return K};
ogw=function(K){var d=K.startEndTimeTemplate,f=K.startTimeUtcMillis;K=K.endTimeUtcMillis;if(d&&f&&K)return _.rB(_.DUP(_.qQ(d),Number(f),Number(K)))};
$U5=function(K,d){var f,H,D=K==null?void 0:(f=K.viewCount)==null?void 0:(H=f.videoViewCountRenderer)==null?void 0:H.shortViewCount;if(!d&&D)return D;var S,n;return K==null?void 0:(S=K.viewCount)==null?void 0:(n=S.videoViewCountRenderer)==null?void 0:n.viewCount};
Egy=function(K,d){var f=K==null?void 0:K.relativeDateText;return!d&&f?[f,!0]:[K==null?void 0:K.dateText,!1]};
h1U=function(K,d,f,H,D){H=H===void 0?!0:H;D=D===void 0?"":D;var S=$U5(K,d),n=_.y(Egy(K,d)),u=n.next().value;n=n.next().value;d=d?K==null?void 0:K.sponsorsOnlyFirstTimeLongText:K==null?void 0:K.sponsorsOnlyFirstTimeShortText;var a=[];f&&S&&a.push(S);!f&&n||!u||a.push(u);K=[].concat(_.Me(a),[d,K==null?void 0:K.stationName,K==null?void 0:K.rating,K?ogw(K):void 0,K==null?void 0:K.upNextProgramText,K==null?void 0:K.superTitleLink]).filter(function(R){return!!R});
f={runs:[]};for(S=0;S<K.length;S++)f.runs.push.apply(f.runs,_.Me(tLU(K[S],H))),S<K.length-1&&f.runs.push({text:" "+D+" ",bold:H});return f};
bXE=function(K){if(K)return{runs:[{text:K,bold:!0}]}};
mUZ=function(K){var d,f,H,D;if(K=K==null?void 0:(d=K.contents)==null?void 0:(f=d.twoColumnWatchNextResults)==null?void 0:(H=f.results)==null?void 0:(D=H.results)==null?void 0:D.contents){var S,n;return(n=(S=K.find(function(u){return!!u.videoPrimaryInfoRenderer}))==null?void 0:S.videoPrimaryInfoRenderer)==null?void 0:n.updatedMetadataEndpoint}};
l6z=function(K,d){var f;return(f=K.sourceConfigs)==null?void 0:f.find(function(H){return H.videoId===d})};
$v=function(K){return K==="End of video"||K==="End of playlist"};
WO5=function(K){var d,f,H,D;return(d=K.getWatchNextResponse())==null?void 0:(f=d.contents)==null?void 0:(H=f.twoColumnWatchNextResults)==null?void 0:(D=H.playlist)==null?void 0:D.playlist};
GQy=function(K){var d,f,H,D,S,n;return(d=WO5(K))==null?void 0:(f=d.playlistButtons)==null?void 0:(H=f.menuRenderer)==null?void 0:(D=H.topLevelButtons)==null?void 0:(S=D[0])==null?void 0:(n=S.playlistLoopButtonRenderer)==null?void 0:n.playlistLoopStateEntityKey};
ACS=function(K){var d=_.eq().resolve(_.Yf),f;return(d=(f=_.P(d.getAutoplayEndpoint(),_.qu))==null?void 0:f.playlistId)&&d===K};
qiU=function(K,d,f,H,D){function S(){_.oc.cancelJob(Ew);var n=Tnl(d,f/K.getPlaybackRate()),u=n.hours,a=n.minutes;n=(n.seconds*1E3||6E4)/K.getPlaybackRate();K.setVideoTimeLeft(rCt(u,a));H&&K.getPlayerState()!==0&&K.setSleepTimerTimeLeft(rCt(u,a,!0));(u>0||a>0)&&!D&&(Ew=_.uX(_.oc,S,n))}
_.oc.cancelJob(Ew);Ew=_.uX(_.oc,S)};
Q37=function(K,d,f){function H(){_.oc.cancelJob(hk);var D=Tnl(d,f),S=D.hours;D=D.minutes;var n=6E4/K.getPlaybackRate();if(S>0||D>0)K.setSleepTimerTimeLeft(rCt(S,D,!0)),hk=_.uX(_.oc,H,n)}
_.oc.cancelJob(hk);hk=_.uX(_.oc,H)};
j3w=function(K,d){var f=K.getVolume()/(d/500),H=function(D){_.oc.cancelJob(bt);var S=Math.floor(D-f);K.setVolume(S,!1);S>0&&(bt=_.uX(_.oc,function(){H(S)},500))};
_.oc.cancelJob(bt);bt=_.uX(_.oc,function(){H(K.getVolume())})};
CaS=function(K,d){_.oc.cancelJob(bt);d&&K.syncVolume()};
xUc=function(){var K={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.iB("SLEEP_TIMER_DISRUPTED")}}}}};_.eq().resolve(_.pQ).resolveCommand(K)};
LOS=function(K){return(K.getDuration()-K.getProgressState().current)*1E3};
Tnl=function(K,d){K=K+d-(0,_.k_)();if(K<=0)return{hours:0,minutes:0,seconds:0};var f=new Bnw(0,0,0,0,0,0,K);K=f.getHours();d=f.getMinutes();f=f.getSeconds();f!==0&&d++;d!==0&&d%60===0&&(K++,d=0);return{hours:K,minutes:d,seconds:f}};
rCt=function(K,d,f){return K>0&&d>0?f?_.iB("TIME_LEFT_HOURS_MINUTES",{hours:K.toString(),minutes:d.toString()}):_.iB("TIME_HOURS_MINUTES",{hours:K.toString(),minutes:d.toString()}):K>0?f?_.cG("TIME_LEFT_HOURS",K):_.cG("TIME_HOURS",K):f?_.iB("TIME_LEFT_MINUTES",{minutes:d.toString()}):_.iB("TIME_MINUTES",{minutes:d.toString()})};
JCi=function(K,d){if(K.timelyActions)return K.timelyActions.find(function(f){var H;return((H=_.P(f,mF))==null?void 0:H.cueRangeId)===d})};
s3E=function(K){var d=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Z5(K);K.keyMap_.forEach(function(f,H){_.Bu(d,H)||this.remove(H)},K)};
kQZ=function(K,d){K.reloadContinuationItemsCommandMatcher=d};
_.lt=function(K,d){K.insertBefore(d,K.childNodes[0]||null)};
wMt=function(K){if(K>=48&&K<=57||K>=96&&K<=106||K>=65&&K<=90||_.Zf&&K==0)return!0;switch(K){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 _.w7;default:return!1}};
ZXi=function(K){if(K.altKey&&!K.ctrlKey||K.metaKey||K.keyCode>=112&&K.keyCode<=123)return!1;if(wMt(K.keyCode))return!0;switch(K.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!_.w7;default:return K.keyCode<166||K.keyCode>183}};
Bnw=function(K,d,f,H,D,S,n){this.date=typeof K==="number"?new Date(K,d||0,f||1,H||0,D||0,S||0,n||0):new Date(K&&K.getTime?K.getTime():_.Ls())};
_.Bd(Bnw,_.IU);_.V=Bnw.prototype;_.V.getHours=function(){return this.date.getHours()};
_.V.getMinutes=function(){return this.date.getMinutes()};
_.V.getSeconds=function(){return this.date.getSeconds()};
_.V.getMilliseconds=function(){return this.date.getMilliseconds()};
_.V.getUTCDay=function(){return this.date.getUTCDay()};
_.V.getUTCHours=function(){return this.date.getUTCHours()};
_.V.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.V.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.V.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.V.setHours=function(K){this.date.setHours(K)};
_.V.setMinutes=function(K){this.date.setMinutes(K)};
_.V.setSeconds=function(K){this.date.setSeconds(K)};
_.V.setMilliseconds=function(K){this.date.setMilliseconds(K)};
_.V.setUTCHours=function(K){this.date.setUTCHours(K)};
_.V.setUTCMinutes=function(K){this.date.setUTCMinutes(K)};
_.V.setUTCSeconds=function(K){this.date.setUTCSeconds(K)};
_.V.setUTCMilliseconds=function(K){this.date.setUTCMilliseconds(K)};
_.V.add=function(K){_.IU.prototype.add.call(this,K);K.hours&&this.setUTCHours(this.date.getUTCHours()+K.hours);K.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+K.minutes);K.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+K.seconds)};
_.V.JSC$9231_toIsoString=function(K){var d=_.IU.prototype.JSC$9231_toIsoString.call(this,K);return K?d+"T"+_.LO(this.getHours(),2)+":"+_.LO(this.getMinutes(),2)+":"+_.LO(this.getSeconds(),2):d+"T"+_.LO(this.getHours(),2)+_.LO(this.getMinutes(),2)+_.LO(this.getSeconds(),2)};
_.V.equals=function(K){return this.getTime()==K.getTime()};
_.V.toString=function(){return this.JSC$9231_toIsoString()};
_.V.clone=function(){var K=new Bnw(this.date);K.firstDayOfWeek_=this.firstDayOfWeek_;K.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return K};
_.e1z=function(K){return _.es({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:K}})};
pMU=new _.Z("imageTileRenderer");var KLK=new _.Z("adGridCardCollectionViewModel");var d2i=new _.Z("carouselTitleViewModel");var fyS=new _.Z("ctaCarouselItemViewModel");var H6E=new _.Z("textFieldViewModel");_.D2K=new _.Z("engagementPanelHeaderShowNavigationButtonCommand");var VmE=new _.Z("hideEngagementPanelScrimAction");var S_K=new _.Z("setActivePanelItemAction");var yuP=new _.Z("showEngagementPanelScrimAction");var nxl=new _.Z("updateEngagementPanelAction");var i6i=new _.Z("updateSearchInVideoResultsAction");var cuU=new _.Z("transcriptCueGroupRenderer");var uzU=new _.Z("transcriptCueRenderer");var ayK=new _.Z("transcriptFooterRenderer");var IyZ=new _.Z("engagementPanelAdSubtitleRenderer");var U2l=new _.Z("videoDescriptionFantasySectionViewModel");var REP=new _.Z("deleteClipEngagementPanelCommand");var FLS=new _.Z("loopCommand");var zEy=new _.Z("changeCreatorEndscreenVisibilityCommand");var XTw=new _.Z("liveChatCallForQuestionsRenderer");var vxU=new _.Z("updateTimedMarkersSyncObserverCommand");var mF=new _.Z("timelyActionViewModel");var Mmz=new _.Z("timelyActionsOverlayViewModel");var PIz=new _.Z("repeatChapterCommand");var gxE=new _.Z("watchPlayerOverflowMenuCommand");var O6U=new _.Z("compositeVideoOverlayRenderer");var NIc=new _.Z("sortFilterSubMenuRenderer");var Y_w=new _.Z("switchListItemViewModel");var tm5=new _.Z("inputComposerViewModel");var oxi=new _.Z("transcriptEditSegmentCommand");var $2P=new _.Z("transcriptUpdateSegmentTextCommand");var ExP=new _.Z("transcriptSearchBoxRenderer");var hEt=new _.Z("transcriptSegmentListRenderer");var b6K=new _.Z("transcriptSegmentRenderer");_.m2l=new _.Z("updateDateTextAction");var lyw=new _.Z("updateTitleAction");var WLw=new _.Z("updateViewershipAction");var GLE=new _.Z("carouselLockupRenderer");var Aut=new _.Z("expandableVideoDescriptionBodyRenderer");var TIi=new _.Z("videoDescriptionYouchatSectionViewModel");_.W8=_.di("kevlar_watch_page_horizontal_margin",24);_.rul=_.di("kevlar_watch_page_columns_top_padding",24);_.q_w=426+_.W8*2;_.G_=_.di("kevlar_watch_two_column_width_threshold",1E3);_.Q8U=_.W8*2;_.j8w=_.di("kevlar_watch_secondary_width",402);_.CIK=_.di("kevlar_watch_max_player_width",1280);_.x2Z=_.di("kevlar_watch_flexy_metadata_height",136);_.LLw=_.Q8U+310+_.W8;_.BIc=_.Q8U+360+_.W8;var JuU={PAUSE_CHAT:18};var s8w;var kLz;var Ak=function(){return _.q.apply(this,arguments)||this};
_.O(Ak,_.q);Ak.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Ak.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var K=_.P(this.data.button,_.XN);K&&(K.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.x$.Object.defineProperties(Ak,{template:{configurable:!0,enumerable:!0,get:function(){if(kLz===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;s8w===void 0&&(s8w=document.createElement("template"));var H=s8w;f.call(d,H.content.cloneNode(!0),K.content.firstChild);kLz=K}K=kLz;return K}}});
_.x([_.l(_.$c),_.B("design:type",Object)],Ak.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ak.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A({selectorArgs:["data.enabledEntityKey"],selector:dUw,observer:"onEnabledChange"}),_.B("design:type",Boolean)],Ak.prototype,"enabled",void 0);_.x([_.A(),_.B("design:type",Object)],Ak.prototype,"data",void 0);Ak=_.x([_.N7({is:"yt-disableable-button-view-model",noInjection:!0})],Ak);var wTU;var Z6c;var eEl=["transVert01","transVert02","transVert03"],pTi="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),T_=function(){var K=_.q.apply(this,arguments)||this;K.emojiManager=_.$L;K.isDarkTheme=document.documentElement.hasAttribute("dark");K.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};K.reactionBuckets=[];K.noEmojiIdentifier="NO_EMOJI";return K};
_.O(T_,_.q);_.V=T_.prototype;_.V.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.V.desktopFountainEmojiSizePxChanged=function(){_.f8(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.V.createUserReactionAnimation=function(K){this.createEmojiAnimation(K,!0)};
_.V.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var K;((K=this.data)==null?0:K.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.nt("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Me(this.emojiContainer.children)).forEach(function(d){d.remove()})};
_.V.detached=function(){this.cleanupFountain()};
_.V.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var K;this.reactionBuckets=_.PR.unsafeClone((K=this.emojiFountainData)==null?void 0:K.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.V.processEmojiBucket=function(K){var d=this;if(this.reactionBuckets&&!(K>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var f=this.reactionBuckets[K];this.generateEmojiAnimations(f);if(K<this.reactionBuckets.length-1){var H;if(f==null?0:(H=f.duration)==null?0:H.seconds)this.emojiBucketTimerId=setTimeout(function(){d.processEmojiBucket(K+1)},Number(f.duration.seconds)*1E3)}}};
_.V.generateEmojiAnimations=function(K){var d=this,f=this.getRandomEmojiIdFromBucketWithOverride(K);if(f&&f!==this.noEmojiIdentifier){var H=0;K.targetEps?(H=this.linearInterpolateBounded(1,20,100,12,K.emojiSizeIndex||0),this.createEmojiAnimation(f,!1,K.emojiAnimationMs,H),H=this.getEmojiDelayMsFromTargetEps(K.targetEps)):(this.createEmojiAnimation(f),H=this.getEmojiDelayMsFromDistribution(K.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){d.generateEmojiAnimations(K)},H)}};
_.V.getRandomEmojiIdFromBucketWithOverride=function(K){if(!(K&&K.reactionsData&&K.reactionsData.length&&K.totalReactions))return this.noEmojiIdentifier;for(var d=K.totalReactions,f=1,H=_.y(K.reactionsData),D=H.next();!D.done;D=H.next())D=D.value,(D.reactionWeightOverride||D.reactionWeightOverride===0)&&D.reactionCount&&(d-=D.reactionCount,f-=D.reactionWeightOverride);H=!0;f<0&&(H=!1,d=K.totalReactions,f=1);if(H&&f>0&&d===0)if(f===1){D=0;for(var S=_.y(K.reactionsData),n=S.next();!n.done;n=S.next())n=
n.value,n.reactionCount&&n.reactionCount>0&&D++;D=1/D;S=_.y(K.reactionsData);for(n=S.next();!n.done;n=S.next())n.value.reactionWeightOverride=D}else for(D=1/(1-f),S=_.y(K.reactionsData),n=S.next();!n.done;n=S.next())n=n.value,n.reactionWeightOverride&&(n.reactionWeightOverride*=D);D=Math.random();S=0;n=_.y(K.reactionsData);for(var u=n.next();!u.done;u=n.next())if(u=u.value,u.reactionCount&&(S=(u.reactionWeightOverride||u.reactionWeightOverride===0)&&H?S+u.reactionWeightOverride:S+f*u.reactionCount/
d,S>D&&(u.reactionCount--,K.totalReactions--,u=this.reactionItemToEmojiString(u),u!==this.noEmojiIdentifier)))return u;return this.noEmojiIdentifier};
_.V.reactionItemToEmojiString=function(K){if(K.unicodeEmojiId)return K.unicodeEmojiId;if(K.emoteId)return K.emoteId;if(K.videoReactionType)switch(K.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.V.createEmojiAnimation=function(K,d,f,H){d=d===void 0?!1:d;this.lastEmojiRequestedForTesting=K;var D=K.startsWith("yt-icons:"),S=_.tT(this.emojiManager,K);if(S||D){var n=document.createElement("emoji");n.classList.add("yt-emoji-fountain-view-model");n.classList.add(eEl[Math.floor(Math.random()*eEl.length)]);var u=document.createElement("div");u.classList.add("yt-emoji-fountain-view-model");u.classList.add("horizontal-container");u.classList.add(pTi[Math.floor(Math.random()*pTi.length)]);d?(f=document.createElement("div"),
f.classList.add("user-reaction-bubble"),f.classList.add("yt-emoji-fountain-view-model"),u.appendChild(f)):(f&&(n.style.animationDuration=f+"ms",u.style.animationDuration=f+"ms"),H&&(n.style.width=H+"px",n.style.height=H+"px"));D?(D=document.createElement("yt-icon"),D.polymerController.icon=K,H&&(D.style.width=H+"px",D.style.height=H+"px"),K=D):K=this.emojiManager.createEmoji(S,!1);K.classList.add("yt-emoji-fountain-view-model");u.appendChild(K);n.appendChild(u);this.emojiContainer.appendChild(n);
n.addEventListener("animationend",function(){n.remove()});
var a,R;if((a=this.data)==null?0:(R=a.loggingDirectives)==null?0:R.trackingParams)d=d?_.vp(183501):_.vp(183500),f6i(this.data.loggingDirectives.trackingParams,d),_.P7Y(d);setTimeout(function(){n&&n.remove()},2E3)}};
_.V.getEmojiDelayMsFromDistribution=function(K){return Math.random()*(K||1)*1E3};
_.V.getEmojiDelayMsFromTargetEps=function(K){return Math.random()*2*(1/K)*1E3};
_.V.linearInterpolateBounded=function(K,d,f,H,D){D=Math.min(Math.max(D,K),f);return(d*(f-D)+H*(D-K))/(f-K)};
T_.prototype.onEmojiFountainDataEntityUpdate=T_.prototype.onEmojiFountainDataEntityUpdate;T_.prototype.desktopFountainEmojiSizePxChanged=T_.prototype.desktopFountainEmojiSizePxChanged;T_.prototype.isActiveChanged=T_.prototype.isActiveChanged;_.x([_.A(),_.B("design:type",_.YL)],T_.prototype,"emojiManager",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.$c),_.B("design:type",Object)],T_.prototype,"ytLiveChatReduxBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],T_.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],T_.prototype,"data",void 0);_.x([_.A({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(K,d){return _.DR(K.entities,"emojiFountainDataEntity",d)}}),
_.B("design:type",Object)],T_.prototype,"emojiFountainData",void 0);_.x([_.A(),_.B("design:type",Boolean)],T_.prototype,"isActive",void 0);_.x([_.SP("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T_.prototype,"isActiveChanged",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],T_.prototype,"isDarkTheme",void 0);_.x([_.A(),_.B("design:type",String)],T_.prototype,"lastEmojiRequestedForTesting",void 0);
_.x([_.A({value:function(){return _.di("desktop_fountain_emoji_size_px",20)}}),
_.B("design:type",Number)],T_.prototype,"desktopFountainEmojiSizePx",void 0);_.x([_.SP("desktopFountainEmojiSizePx"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T_.prototype,"desktopFountainEmojiSizePxChanged",null);_.x([_.n8("#emoji-container"),_.B("design:type",HTMLElement)],T_.prototype,"emojiContainer",void 0);
_.x([_.SP("emojiFountainData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T_.prototype,"onEmojiFountainDataEntityUpdate",null);T_=_.x([_.N7({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],T_);
_.C(T_,"yt-emoji-fountain-view-model",function(){if(Z6c===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;wTU===void 0&&(wTU=document.createElement("template"));var H=wTU;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Z6c=K}K=Z6c;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var K3S;var dLP;var rE=function(){return _.q.apply(this,arguments)||this};
_.O(rE,_.q);rE.prototype.onChoiceChanged=function(){this.data&&_.f8(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
rE.prototype.onChoiceChanged=rE.prototype.onChoiceChanged;_.x([_.A(),_.B("design:type",Object)],rE.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rE.prototype,"onChoiceChanged",null);rE=_.x([_.Q({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],rE);
_.C(rE,"yt-live-chat-banner-poll-choice",function(){if(dLP===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;K3S===void 0&&(K3S=document.createElement("template"));var H=K3S;f.call(d,H.content.cloneNode(!0),K.content.firstChild);dLP=K}K=dLP;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var fji;var Hbt;var qy=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("web_button_rework_with_live");K.small=!1;return K};
_.O(qy,_.q);qy.prototype.computeIsSmall=function(){var K;return((K=this.buttonOverrides)==null?void 0:K.size)==="S"};
qy.prototype.computeId=function(){return this.data&&this.data.targetId};
_.x([_.l(_.E9.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],qy.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.A({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",String)],qy.prototype,"id",void 0);_.x([_.A(),_.B("design:type",Object)],qy.prototype,"buttonOverrides",void 0);_.x([_.A(),_.B("design:type",Object)],qy.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],qy.prototype,"modern",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.B("design:type",Object)],qy.prototype,"small",void 0);qy=_.x([_.Q({disableElementRegistration:!0,is:"yt-live-chat-button"})],qy);
_.C(qy,"yt-live-chat-button",function(){if(Hbt===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;fji===void 0&&(fji=document.createElement("template"));var H=fji;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Hbt=K}K=Hbt;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var DLy;var VkZ;var QE=function(){var K=_.q.apply(this,arguments)||this;K.inCollapsedBanner=!1;K.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};K.questionButtonOverrides={style:"mono",type:"filled"};return K};
_.O(QE,_.q);_.V=QE.prototype;_.V.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]]"}}}}}};
_.V.onContextMenuButtonClick=function(K){this.ytLiveChatItemBehavior.showContextMenu(K)};
_.V.onYtRendererstamperFinished=function(){this.menuButton=_.E(this.hostElement).querySelector("#menu-button")};
_.V.dataChanged=function(){var K,d;if((d=_.P((K=this.data)==null?void 0:K.overflowMenuButton,_.tQ))==null?0:d.command)this.data.contextMenuEndpoint=_.P(this.data.overflowMenuButton,_.tQ).command};
_.V.onButtonClick=function(){var K,d=_.P((K=this.data)==null?void 0:K.askQuestionButton,_.tQ);if(d){if(d.trackingParams&&(K=_.RG(d.trackingParams))){var f=_.te();f&&_.rN(f,K)}_.Zp(this.hostElement,"innertube-command",d.command)}};
QE.prototype.onYtRendererstamperFinished=QE.prototype.onYtRendererstamperFinished;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.$c),_.B("design:type",Object)],QE.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],QE.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.A({observer:"dataChanged"}),_.B("design:type",Object)],QE.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],QE.prototype,"inCollapsedBanner",void 0);_.x([_.A(),_.B("design:type",Object)],QE.prototype,"buttonOverrides",void 0);_.x([_.A(),_.B("design:type",Object)],QE.prototype,"questionButtonOverrides",void 0);_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QE.prototype,"onYtRendererstamperFinished",null);
QE=_.x([_.Q({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],QE);
_.C(QE,"yt-live-chat-call-for-questions-renderer",function(){if(VkZ===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;DLy===void 0&&(DLy=document.createElement("template"));var H=DLy;f.call(d,H.content.cloneNode(!0),K.content.firstChild);VkZ=K}K=VkZ;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var SHl={};SHl.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 K=this;window.requestAnimationFrame(function(){K.restoreFocusNode_||(K.restoreFocusNode_=document.activeElement);var d=_.Kd8(K.hostElement);d.length&&d[d.length-1].focus()})},
isAttachedChanged_:function(K,d){K?this.focusChild_():d&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(K){this.hidden||_.qn(K).indexOf(this.hostElement)!==-1||(K.stopPropagation(),this.focusChild_())}};var yxi;var ntw;var jT=function(){return _.q.apply(this,arguments)||this};
_.O(jT,_.q);jT.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
jT.prototype.onClick=function(K){K.target!==this.confirmButton&&K.target!==this.cancelButton&&(this.hidden=!0)};
_.x([_.n8("#confirm_button"),_.B("design:type",Object)],jT.prototype,"confirmButton",void 0);_.x([_.n8("#cancel_button"),_.B("design:type",Object)],jT.prototype,"cancelButton",void 0);_.x([_.A(),_.B("design:type",ibS)],jT.prototype,"data",void 0);_.x([_.A({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],jT.prototype,"hidden",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(SHl.YtLiveChatDialogBehavior),_.B("design:type",Object)],jT.prototype,"ytLiveChatDialogBehavior",void 0);jT=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],jT);
var ibS=_.C(jT,"yt-live-chat-dialog-renderer",function(){if(ntw===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;yxi===void 0&&(yxi=document.createElement("template"));var H=yxi;f.call(d,H.content.cloneNode(!0),K.content.firstChild);ntw=K}K=ntw;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var cx5;var uUl,aj5=function(){if(uUl!==void 0)return uUl;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;cx5===void 0&&(cx5=document.createElement("template"));var H=cx5;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return uUl=K};var IjP;var ULw;var CR=function(){var K=_.q.apply(this,arguments)||this;K.tooltip=null;K.data=null;K.id="";K.active=!1;K.icon="";K.disabled=!1;K.showTooltip=!1;K.useToggledActiveState=!0;K.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return K};
_.O(CR,_.q);_.V=CR.prototype;
_.V.dataChanged=function(){var K;((K=this.data)==null?0:K.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,_.dj)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var d;if((d=this.data)==null?0:d.disabled)this.disabled=!0};
_.V.computeId=function(K){return K};
_.V.computeIcon=function(K,d){if(!K)return"";if(this.useToggledActiveState)return"yt-icons:"+K.toLowerCase();var f,H;return d&&((f=this.data)==null?0:(H=f.toggledIcon)==null?0:H.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+K.toLowerCase()};
_.V.logPDGEntryPoint=function(){_.pno(_.HW("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")};
_.V.immediatelyShowTooltip=function(){var K=_.E(this.hostElement).querySelector("#tooltip");K.animationDelay=0;K.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};K.show()};
_.V.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.V.onClick=function(K){var d;((d=this.data)==null?0:d.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(),K.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Zp(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.V.computeShowTooltip=function(K,d){return!!(K&&K.tooltip&&d)};
_.V.maybeUpdateTooltipText=function(){var K=this,d;if((d=this.data)==null?0:d.tooltip){var f=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.dj)(K.tooltip).textContent=f},250)}};
_.V.handleLiveChatActions=function(K){var d=this;K.length&&(this.id!=="creator"&&this.id!=="product-picker"||K.forEach(function(f){(f=d.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",f))&&f.durationSec===f.fullDurationSec&&d.startBubble(d.colorFromDecimal(f.startBackgroundColor))}))};
_.V.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.V.startBubble=function(K){_.f8(this.hostElement,{"--yt-live-chat-monetization-button-glow":K});this.hostElement.setAttribute("bubble","")};
_.V.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.V.colorFromDecimal=function(K){typeof K==="string"&&(K=Number(K));return"rgba("+[K>>16&255,K>>8&255,K&255,(K>>24&255)/255].join()+")"};
CR.prototype.onAnimationEnd=CR.prototype.onAnimationEnd;CR.prototype.disabledChanged=CR.prototype.disabledChanged;CR.prototype.dataChanged=CR.prototype.dataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],CR.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.E9.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],CR.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],CR.prototype,"data",void 0);_.x([_.A({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",Object)],CR.prototype,"id",void 0);_.x([_.A({notify:!0,reflectToAttribute:!0}),_.B("design:type",Object)],CR.prototype,"active",void 0);
_.x([_.A({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.B("design:type",Object)],CR.prototype,"icon",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],CR.prototype,"disabled",void 0);_.x([_.A({computed:"computeShowTooltip(data, disabled)"}),_.B("design:type",Object)],CR.prototype,"showTooltip",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],CR.prototype,"useToggledActiveState",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CR.prototype,"dataChanged",null);_.x([_.SP("disabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CR.prototype,"disabledChanged",null);_.x([_.VV("animationend"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],CR.prototype,"onAnimationEnd",null);
CR=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],CR);
_.C(CR,"yt-live-chat-icon-toggle-button-renderer",function(){if(ULw===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;IjP===void 0&&(IjP=document.createElement("template"));var H=IjP;f.call(d,H.content.cloneNode(!0),K.content.firstChild);ULw=K}K=ULw;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var RuE;var F3y;var xv=function(){return _.q.apply(this,arguments)||this};
_.O(xv,_.q);xv.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.x([_.A(),_.B("design:type",Object)],xv.prototype,"data",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);xv=_.x([_.Q({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],xv);
_.C(xv,"yt-live-chat-message-input-prompt-header-renderer",function(){if(F3y===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;RuE===void 0&&(RuE=document.createElement("template"));var H=RuE;f.call(d,H.content.cloneNode(!0),K.content.firstChild);F3y=K}K=F3y;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var zuU;var Xqw;var vtz;var Mk5;var PDl;var gtc;var LR=function(){return _.q.apply(this,arguments)||this};
_.O(LR,_.q);_.x([_.A(),_.B("design:type",Object)],LR.prototype,"data",void 0);LR=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],LR);
_.C(LR,"yt-live-chat-message-subtext-renderer",function(){if(gtc===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;PDl===void 0&&(PDl=document.createElement("template"));var H=PDl;f.call(d,H.content.cloneNode(!0),K.content.firstChild);gtc=K}K=gtc;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var B8=function(){var K=_.q.apply(this,arguments)||this;K.subtextOnBottom=!1;K.buttonOverrides={style:"mono",type:"tonal"};return K};
_.O(B8,_.q);B8.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],B8.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],B8.prototype,"subtextOnBottom",void 0);_.x([_.A(),_.B("design:type",Object)],B8.prototype,"buttonOverrides",void 0);
B8=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],B8);
_.C(B8,"yt-live-chat-message-renderer",function(){if(Mk5===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;vtz===void 0&&(vtz=document.createElement("template"));var H=vtz;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Mk5=K}K=Mk5;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var Ob7;var NMS;var Jk=function(){var K=_.q.apply(this,arguments)||this;K.isRemovable=!1;K.hasPrefilledText=!1;K.isInputDirty=!1;K.overCharacterLimit=!1;K.underCharacterLimit=!1;K.showErrorMessage=!1;return K};
_.O(Jk,_.q);_.V=Jk.prototype;_.V.computeId=function(){return this.data.id};
_.V.computeInputData=function(){return this.data.inputData};
_.V.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.V.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.V.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.V.getLiveChatRichMessageInput=function(){return _.E(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.V.clearInput=function(){_.E(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.V.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.V.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.V.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.V.handleTextInputCharCountChanged=function(K){K=K.detail&&K.detail.characterCount;K!==void 0&&(this.characterCount=K,K!==0&&(this.isInputDirty=!0))};
_.V.onInputFocusOut=function(){this.isInputDirty=!0};
_.V.onClickCloseButton=function(){_.Zp(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Jk.prototype.handleTextInputCharCountChanged=Jk.prototype.handleTextInputCharCountChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Jk.prototype,"data",void 0);_.x([_.A({computed:"computeId(data.id)"}),_.B("design:type",String)],Jk.prototype,"id",void 0);_.x([_.A({computed:"computeInputData(data.inputData)"}),_.B("design:type",Object)],Jk.prototype,"inputData",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.B("design:type",Object)],Jk.prototype,"isRemovable",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.B("design:type",Object)],Jk.prototype,"hasPrefilledText",void 0);_.x([_.A({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.B("design:type",Number)],Jk.prototype,"charactersRemaining",void 0);
_.x([_.A(),_.B("design:type",Number)],Jk.prototype,"characterCount",void 0);_.x([_.A(),_.B("design:type",Object)],Jk.prototype,"isInputDirty",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.B("design:type",Object)],Jk.prototype,"overCharacterLimit",void 0);_.x([_.A({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.B("design:type",Object)],Jk.prototype,"underCharacterLimit",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.B("design:type",Object)],Jk.prototype,"showErrorMessage",void 0);_.x([_.VV("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Jk.prototype,"handleTextInputCharCountChanged",null);
Jk=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Jk);
_.C(Jk,"yt-live-chat-poll-editor-input",function(){if(NMS===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Ob7===void 0&&(Ob7=document.createElement("template"));var H=Ob7;f.call(d,H.content.cloneNode(!0),K.content.firstChild);NMS=K}K=NMS;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var YHl;var tk7;var otE={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},sw=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("web_button_rework_with_live");K.closeButtonOverrides={iconPosition:"icon-only"};K.startButtonOverrides={style:"mono",type:"filled"};K.addOptionButtonOverrides={style:"mono",type:"text"};return K};
_.O(sw,_.q);_.V=sw.prototype;
_.V.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"}}}}};
_.V.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var K;_.P((K=this.data)==null?void 0:K.startButton,_.tQ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.V.computeId=function(){return this.data&&this.data.id||""};
_.V.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.V.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.V.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.V.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.V.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var K=0;K<this.pollEditorInfoWithDefaults.minPollOptions;K++)this.addPollOptionData()};
_.V.getIsValidPoll=function(){var K=this;if(!this.pollEditorInfoWithDefaults)return!1;var d=this.pollEditorInfoWithDefaults,f=d.minPollOptionChars,H=d.maxPollOptionChars,D=d.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>d.maxPollQuestionChars)return!1;d=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(d).every(function(S,n){S=S.characterCount;!S&&D[n]&&(S=K.ytRendererBehavior.getSimpleString(D[n]).length);return S!==void 0&&S>=f&&S<=H})};
_.V.isValidPollChanged=function(){var K;_.P((K=this.data)==null?void 0:K.startButton,_.tQ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.V.addPollOptionData=function(){var K=this.pollEditorInfoWithDefaults,d=K.maxPollOptionChars,f=K.optionPlaceholderText,H=K.customOptionPlaceholderText,D=K.pollOptionData;this.currentNumPollOptions>=K.maxPollOptions||(K={liveChatPollOptionInput:{inputData:{placeholder:H[this.currentNumPollOptions]||f,maxCharacterLimit:d},maxCharacterLimit:d,minCharacterLimit:K.minPollOptionChars,hasPrefilledText:!!H[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=K.minPollOptions}},D.charCountErrorText&&
(K.liveChatPollOptionInput.charCountErrorText=D.charCountErrorText),D.charsRemainingAltLabel&&(K.liveChatPollOptionInput.charsRemainingAltLabel=D.charsRemainingAltLabel),D.removeOptionAltText&&(K.liveChatPollOptionInput.removeOptionAltText=D.removeOptionAltText),this.push("pollOptionsData",K),D=Array.from(_.E(_.E(this.hostElement).querySelector("#poll-options")).children),D.forEach(function(S,n){S.polymerController.set("data.id",n)}),_.E(D[D.length-1]).querySelector("#input").focus())};
_.V.getPollOptionInputValues=function(){var K=this,d=[],f=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),H=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(f).forEach(function(D,S){var n=null;D=D.getLiveChatRichMessageInput();var u;(D==null?0:(u=D.textSegments)==null?0:u.length)?n=_.E5(D):H[S]&&(n=K.formattedStringToLiveChatRichMessageInput(H[S]));d.push(n)});
return d};
_.V.requestCreateAndStartPoll=function(K){var d=this.getPollOptionInputValues();if(!d.some(function(H){return!H})){d={optionText:d};
var f=_.E(_.E(this.hostElement).querySelector("#poll-question")).firstChild;f&&f.liveChatRichMessageInput&&(d.questionText=_.E5(f.liveChatRichMessageInput));_.dN(this.hostElement,[K,d])}};
_.V.selectedChanged=function(){if(this.selected){var K=_.E(_.E(this.hostElement).querySelector("#start-button")).firstElementChild;if(K){var d;(d=_.E(K).querySelector("#button")||_.eZ(K).querySelector("button"))==null||d.focus()}}};
_.V.handleTextInputChanged=function(K){var d;((d=K.target)==null?void 0:d.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=K.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.V.handleStartButtonAction=function(K){K.detail.actionName==="yt-service-request"&&(K.stopPropagation(),(K=K.detail.args[1])&&this.requestCreateAndStartPoll(K))};
_.V.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.V.handleServiceRequestCompleted=function(K){this.createPollRequestInFlight=!1;(K=K.detail&&K.detail.data)&&K.success&&(_.Zp(this.hostElement,"picker-cancelled"),_.ev(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.V.onCloseClick=function(){_.Zp(this.hostElement,"picker-cancelled");_.ev(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.V.handlePollEditorInputClosed=function(K){var d=this.pollOptionsData.findIndex(function(f){return f.liveChatPollOptionInput.id===K.detail.id});
this.splice("pollOptionsData",d,1);this.isValidPoll=this.getIsValidPoll()};
_.V.onPickerCancelled=function(){this.reset()};
_.V.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var K=_.E(_.E(this.hostElement).querySelector("#poll-question")).firstChild;K&&K.setLiveChatRichMessageInput(null);if(K=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){K=_.y(Array.from(K));for(var d=K.next();!d.done;d=K.next())d.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.V.formattedStringToLiveChatRichMessageInput=function(K){return K.simpleText?{text_segments:[K.simpleText]}:{text_segments:K.runs}};
_.x$.Object.defineProperties(sw.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(otE,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
sw.prototype.onPickerCancelled=sw.prototype.onPickerCancelled;sw.prototype.handlePollEditorInputClosed=sw.prototype.handlePollEditorInputClosed;sw.prototype.handleServiceRequestCompleted=sw.prototype.handleServiceRequestCompleted;sw.prototype.handleServiceRequestSent=sw.prototype.handleServiceRequestSent;sw.prototype.handleTextInputChanged=sw.prototype.handleTextInputChanged;sw.prototype.selectedChanged=sw.prototype.selectedChanged;sw.prototype.isValidPollChanged=sw.prototype.isValidPollChanged;
sw.prototype.shouldInitializePollChanged=sw.prototype.shouldInitializePollChanged;sw.prototype.dataChanged=sw.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],sw.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],sw.prototype,"modern",void 0);
_.x([_.A(),_.B("design:type",Object)],sw.prototype,"closeButtonOverrides",void 0);_.x([_.A(),_.B("design:type",Object)],sw.prototype,"startButtonOverrides",void 0);_.x([_.A(),_.B("design:type",Object)],sw.prototype,"addOptionButtonOverrides",void 0);_.x([_.A({computed:"computeId(data.id)",reflectToAttribute:!0}),_.B("design:type",String)],sw.prototype,"id",void 0);_.x([_.A({value:function(){return[]}}),
_.B("design:type",Array)],sw.prototype,"pollOptionsData",void 0);_.x([_.W("pollEditorInfoWithDefaults"),_.B("design:type",Object),_.B("design:paramtypes",[])],sw.prototype,"pollQuestionData",null);_.x([_.A({value:0}),_.B("design:type",Number)],sw.prototype,"pollQuestionCharacterCount",void 0);_.x([_.W("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],sw.prototype,"pollQuestionCharactersRemaining",null);
_.x([_.A({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.B("design:type",Boolean)],sw.prototype,"overQuestionCharacterLimit",void 0);_.x([_.W("data.pollEditorInfo"),_.B("design:type",Object),_.B("design:paramtypes",[])],sw.prototype,"pollEditorInfoWithDefaults",null);_.x([_.A({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.B("design:type",Number)],sw.prototype,"currentNumPollOptions",void 0);
_.x([_.A({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.B("design:type",Boolean)],sw.prototype,"hasMaxNumPollOptions",void 0);_.x([_.W("pollEditorInfoWithDefaults","pollOptionsData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],sw.prototype,"shouldInitializePoll",null);_.x([_.A(),_.B("design:type",Object)],sw.prototype,"isValidPoll",void 0);
_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],sw.prototype,"createPollRequestInFlight",void 0);_.x([_.A(),_.B("design:type",Object)],sw.prototype,"selected",void 0);_.x([_.A({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.B("design:type",Boolean)],sw.prototype,"showQuestionErrorMessage",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sw.prototype,"dataChanged",null);_.x([_.SP("shouldInitializePoll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sw.prototype,"shouldInitializePollChanged",null);_.x([_.SP("isValidPoll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sw.prototype,"isValidPollChanged",null);
_.x([_.SP("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sw.prototype,"selectedChanged",null);_.x([_.VV("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],sw.prototype,"handleTextInputChanged",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sw.prototype,"handleServiceRequestSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],sw.prototype,"handleServiceRequestCompleted",null);
_.x([_.VV("yt-live-chat-poll-editor-input-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],sw.prototype,"handlePollEditorInputClosed",null);_.x([_.VV("picker-cancelled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sw.prototype,"onPickerCancelled",null);sw=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],sw);
_.C(sw,"yt-live-chat-poll-editor-panel-renderer",function(){if(tk7===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;YHl===void 0&&(YHl=document.createElement("template"));var H=YHl;f.call(d,H.content.cloneNode(!0),K.content.firstChild);tk7=K}K=tk7;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var $Lz;var Etc;var kv=function(){return _.q.apply(this,arguments)||this};
_.O(kv,_.q);kv.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
kv.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.x$.Object.defineProperties(kv.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var K,d;return(K=this.data)==null?void 0:(d=K.title)==null?void 0:d.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var K;return _.$A((K=this.data)==null?void 0:K.onTapCommand)}}});
_.x([_.l(_.SY.YtEndpointBehavior),_.B("design:type",Object)],kv.prototype,"ytEndpointBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],kv.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],kv.prototype,"itemId",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kv.prototype,"hasPromotion",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],kv.prototype,"innertubeCommand",null);kv=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],kv);
_.C(kv,"yt-live-chat-product-picker-panel-item-view-model",function(){if(Etc===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;$Lz===void 0&&($Lz=document.createElement("template"));var H=$Lz;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Etc=K}K=Etc;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var huZ;var bbK;var wE=function(){var K=_.q.apply(this,arguments)||this;K.id="product-picker";K.selected=!1;K.closeButtonId="close-button";K.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return K};
_.O(wE,_.q);_.V=wE.prototype;_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.V.observeSelected=function(){this.selected&&this.hostElement.focus();var K=_.E(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");K.length&&K[0].focus()};
_.V.onCloseBuyFlow=function(){_.Zp(this.hostElement,"picker-cancelled")};
_.V.onCloseClick=function(){_.Zp(this.hostElement,"picker-cancelled");var K;((K=this.data)==null?0:K.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.P(this.data.closeButton,_.XN))};
_.V.onCloseEngageWithAudienceEditorPanels=function(){_.Zp(this.hostElement,"picker-cancelled")};
wE.prototype.observeSelected=wE.prototype.observeSelected;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],wE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],wE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],wE.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],wE.prototype,"id",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],wE.prototype,"selected",void 0);_.x([_.A(),_.B("design:type",Object)],wE.prototype,"closeButtonId",void 0);_.x([_.SP("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wE.prototype,"observeSelected",null);
wE=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],wE);
_.C(wE,"yt-live-chat-product-picker-panel-view-model",function(){if(bbK===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;huZ===void 0&&(huZ=document.createElement("template"));var H=huZ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);bbK=K}K=bbK;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var mLw;var lji;var ZC=function(){var K=_.q.apply(this,arguments)||this;K.iconId="";K.icon="";K.disabled=!1;K.systemIcons=_.M("kevlar_system_icons");return K};
_.O(ZC,_.q);_.V=ZC.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.V.computeIconId=function(K){return K&&K.icon&&K.icon.iconType?K.icon.iconType.toLowerCase():""};
_.V.computeIcon=function(K){return K&&K.icon&&K.icon.iconType?(K=K.icon.iconType.toLowerCase(),(K.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+K):""};
_.V.computeDisabled=function(K){return!!K};
_.V.computeCommand=function(K,d){return d?void 0:K};
_.V.computeTooltip=function(K,d){return d&&K?K:""};
_.V.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.x([_.l(_.SY.YtEndpointBehavior),_.B("design:type",Object)],ZC.prototype,"ytEndpointBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ZC.prototype,"data",void 0);_.x([_.A({computed:"computeIconId(data)",reflectToAttribute:!0}),_.B("design:type",Object)],ZC.prototype,"iconId",void 0);
_.x([_.A({computed:"computeIcon(data)",reflectToAttribute:!0}),_.B("design:type",Object)],ZC.prototype,"icon",void 0);_.x([_.A({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.B("design:type",Object)],ZC.prototype,"disabled",void 0);_.x([_.A({computed:"computeCommand(data.command, disabled)"}),_.B("design:type",Object)],ZC.prototype,"command",void 0);_.x([_.A({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.B("design:type",String)],ZC.prototype,"tooltip",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ZC.prototype,"systemIcons",void 0);ZC=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],ZC);
_.C(ZC,"yt-live-chat-product-button-renderer",function(){if(lji===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;mLw===void 0&&(mLw=document.createElement("template"));var H=mLw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);lji=K}K=lji;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var W3K;var GVl;var eT=function(){var K=_.q.apply(this,arguments)||this;K.selected=!1;K.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 K};
_.O(eT,_.q);_.V=eT.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.computeId=function(K){return K.id||""};
_.V.onCloseClick=function(){_.Zp(this.hostElement,"picker-cancelled")};
_.V.observeSelected=function(){this.selected&&this.hostElement.focus();var K=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");K.length&&K[0].focus()};
_.V.onCloseBuyFlow=function(){_.Zp(this.hostElement,"picker-cancelled")};
_.V.onCloseEngageWithAudienceEditorPanels=function(){_.Zp(this.hostElement,"picker-cancelled")};
eT.prototype.observeSelected=eT.prototype.observeSelected;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],eT.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],eT.prototype,"data",void 0);
_.x([_.A({computed:"computeId(data)",reflectToAttribute:!0}),_.B("design:type",String)],eT.prototype,"id",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],eT.prototype,"selected",void 0);_.x([_.SP("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eT.prototype,"observeSelected",null);eT=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],eT);
_.C(eT,"yt-live-chat-product-picker-renderer",function(){if(GVl===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;W3K===void 0&&(W3K=document.createElement("template"));var H=W3K;f.call(d,H.content.cloneNode(!0),K.content.firstChild);GVl=K}K=GVl;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var AxS;var TMz;var rxw;var qH7;var pR=function(){return _.q.apply(this,arguments)||this};
_.O(pR,_.q);pR.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()};
pR.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
pR.prototype.created=function(){this.ids={background:_.Yy(),maskOne:_.Yy(),maskTwo:_.Yy(),gradient:_.Yy(),largeBackground:_.Yy(),largeGradientOne:_.Yy(),largeGradientTwo:_.Yy(),largeGradientPath:_.Yy()}};
pR.prototype.maybeLoadAnimationBackground=pR.prototype.maybeLoadAnimationBackground;_.x([_.A({value:!1}),_.B("design:type",Boolean)],pR.prototype,"useLargeBackground",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],pR.prototype,"useAnimationBackground",void 0);_.x([_.A({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.B("design:type",Boolean)],pR.prototype,"useRegularBackground",void 0);
_.x([_.A(),_.B("design:type",Object)],pR.prototype,"ids",void 0);_.x([_.A(),_.B("design:type",Object)],pR.prototype,"lottieAnimation",void 0);_.x([_.n8("#animation-background"),_.B("design:type",HTMLDivElement)],pR.prototype,"animationBackground",void 0);_.x([_.SP("useAnimationBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pR.prototype,"maybeLoadAnimationBackground",null);
pR=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],pR);
_.C(pR,"yt-live-interactivity-component-background",function(){if(qH7===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;rxw===void 0&&(rxw=document.createElement("template"));var H=rxw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);qH7=K}K=qH7;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var Kp=function(){var K=_.q.apply(this,arguments)||this;K.characterCount=0;K.showInputErrorMessage=!1;K.startQnaRequestInFlight=!1;K.modern=_.M("web_button_rework_with_live");K.buttonOverrides={style:"mono",type:"filled"};K.closeButtonOverrides={iconPosition:"icon-only"};K.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return K};
_.O(Kp,_.q);_.V=Kp.prototype;
_.V.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]]"}}}}}};
_.V.onCharacterCountChanged=function(K){var d,f,H,D,S=(f=_.P(this==null?void 0:(d=this.data)==null?void 0:d.creatorCallForQuestions,XTw))==null?void 0:(H=f.inputField)==null?void 0:(D=H.liveChatTextInputFieldRenderer)==null?void 0:D.maxCharacterLimit,n,u;S!=null&&(K==null?void 0:(n=K.detail)==null?void 0:n.characterCount)!=null&&_.P(this==null?void 0:(u=this.data)==null?void 0:u.startButton,_.tQ)&&(d=K.detail.characterCount>S,this.set("data.startButton.buttonRenderer.isDisabled",K.detail.characterCount===
0||d),this.showInputErrorMessage=d)};
_.V.onCloseClick=function(){_.Zp(this.hostElement,"picker-cancelled");_.ev(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.onPickerCancelled=function(){var K=_.E(this.hostElement).querySelector("#qna-creator-text-input-field");K&&K.setLiveChatRichMessageInput(null)};
_.V.handleOpenQnaStartPanel=function(){var K=_.E(this.hostElement).querySelector("#qna-creator-text-input-field");K&&K.focus()};
_.V.handleStartButtonAction=function(K){var d=this;if(K.detail.actionName==="yt-service-request"&&(K.stopPropagation(),K=K.detail.args[1])){var f=_.E(this.hostElement).querySelector("#qna-creator-text-input-field"),H;(f==null?0:(H=f.liveChatRichMessageInput)==null?0:H.textSegments)&&f.liveChatRichMessageInput.textSegments.length!==0&&(H={rich_message:_.E5(f.liveChatRichMessageInput)},_.dN(this.hostElement,[K,H]).then(function(){_.Zp(d.hostElement,"picker-cancelled")}))}};
_.V.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.V.handleServiceRequestCompleted=function(K){var d;K=K==null?void 0:(d=K.detail)==null?void 0:d.data;(K==null?0:K.actions)&&K.actions.length>0?this.startQnaRequestInFlight=!1:_.ev(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Kp.prototype.handleServiceRequestError=Kp.prototype.handleServiceRequestError;Kp.prototype.handleServiceRequestCompleted=Kp.prototype.handleServiceRequestCompleted;Kp.prototype.handleServiceRequestSent=Kp.prototype.handleServiceRequestSent;Kp.prototype.onPickerCancelled=Kp.prototype.onPickerCancelled;Kp.prototype.onCharacterCountChanged=Kp.prototype.onCharacterCountChanged;_.x([_.A(),_.B("design:type",Object)],Kp.prototype,"characterCount",void 0);
_.x([_.A(),_.B("design:type",Object)],Kp.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Kp.prototype,"showInputErrorMessage",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Kp.prototype,"startQnaRequestInFlight",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Kp.prototype,"modern",void 0);_.x([_.A(),_.B("design:type",Object)],Kp.prototype,"buttonOverrides",void 0);
_.x([_.A(),_.B("design:type",Object)],Kp.prototype,"closeButtonOverrides",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.$c),_.B("design:type",Object)],Kp.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.l(_.EQ.YtLiveChatItemBehavior),_.B("design:type",_.hT)],Kp.prototype,"ytLiveChatItemBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Kp.prototype,"ytActionHandlerBehavior",void 0);_.x([_.VV("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Kp.prototype,"onCharacterCountChanged",null);_.x([_.VV("picker-cancelled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kp.prototype,"onPickerCancelled",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kp.prototype,"handleServiceRequestSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Kp.prototype,"handleServiceRequestCompleted",null);
_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Kp.prototype,"handleServiceRequestError",null);Kp=_.x([_.Q({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Kp);
_.C(Kp,"yt-live-chat-qna-start-panel-renderer",function(){if(TMz===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;AxS===void 0&&(AxS=document.createElement("template"));var H=AxS;f.call(d,H.content.cloneNode(!0),K.content.firstChild);TMz=K}K=TMz;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var Qgl;var jgi;var dZ=function(){return _.q.apply(this,arguments)||this};
_.O(dZ,_.q);dZ.prototype.dismiss=function(){_.Zp(this.hostElement,"yt-live-chat-error-message-dismiss")};
dZ.prototype.edit=function(){_.Zp(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.x([_.A(),_.B("design:type",Object)],dZ.prototype,"data",void 0);dZ=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],dZ);
_.C(dZ,"yt-live-chat-text-actions-error-message-renderer",function(){if(jgi===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Qgl===void 0&&(Qgl=document.createElement("template"));var H=Qgl;f.call(d,H.content.cloneNode(!0),K.content.firstChild);jgi=K}K=jgi;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var CDw;var xLE;var L3U;var BMK;var fp=function(){var K=_.q.apply(this,arguments)||this;K.isDarkTheme=document.documentElement.hasAttribute("dark");K.newnessDotEligible=!1;return K};
_.O(fp,_.q);fp.prototype.sendReaction=function(){var K,d,f=((K=this.data)==null?void 0:K.emojiId)||((d=this.data)==null?void 0:d.emoteId),H;f&&((H=this.data)==null?0:H.shouldTriggerAnimation)&&_.ev(this.hostElement,"yt-create-user-reaction-animation",[f]);var D;(K=_.$A((D=this.data)==null?void 0:D.onTap))&&_.SV(K,this.hostElement);this.showNewnessDot&&_.ev(this.hostElement,"yt-hide-newness-dot")};
fp.prototype.onClick=function(K){(!K||K.clientX||K.clientY)&&this.sendReaction()};
fp.prototype.onKeyDown=function(K){K.key!=="Enter"&&K.key!==" "||K.repeat||this.sendReaction()};
_.x$.Object.defineProperties(fp.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var K,d;return!!(((K=this.data)==null?0:K.emojiId)||((d=this.data)==null?0:d.emoteId))}}});
_.x([_.A(),_.B("design:type",Object)],fp.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],fp.prototype,"isDarkTheme",void 0);_.x([_.A(),_.B("design:type",Object)],fp.prototype,"newnessDotEligible",void 0);_.x([_.W("data.maybeShowNewnessDot"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"showNewnessDot",null);_.x([_.W("data.emojiId","data.emoteId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],fp.prototype,"useYtImage",null);
fp=_.x([_.N7({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],fp);
_.C(fp,"yt-reaction-control-panel-button-view-model",function(){if(BMK===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;L3U===void 0&&(L3U=document.createElement("template"));var H=L3U;f.call(d,H.content.cloneNode(!0),K.content.firstChild);BMK=K}K=BMK;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var Jxy;var sgZ;var HN=function(){var K=_.q.apply(this,arguments)||this;K.reactionControlPanelExpanded=!1;K.isDarkTheme=document.documentElement.hasAttribute("dark");K.newnessDotEligible=!1;return K};
_.O(HN,_.q);_.V=HN.prototype;_.V.expandedButtonsChanged=function(){var K,d;_.f8(this.hostElement,{"--expanded-buttons-height":((d=(K=this.expandedButtonsData)==null?void 0:K.length)!=null?d:0)*36+"px"})};
_.V.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}}};
_.V.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.V.onMouseLeave=function(){var K=this;this.collapseTimer=setTimeout(function(){K.reactionControlPanelExpanded=!1},500)};
_.V.onFocusIn=function(){this.onMouseEnter()};
_.V.onFocusOut=function(){this.onMouseLeave()};
_.V.onCollapsedButtonFocusIn=function(){var K=this;setTimeout(function(){var d;(d=K.expandedButtons.querySelector("button"))==null||d.focus()},100)};
_.V.onCollapsedButtonFocusOut=function(K){K.stopPropagation()};
_.x$.Object.defineProperties(HN.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var K,d;return _.PR.unsafeClone((K=this.liveReactionsData)==null?void 0:K.emojiButtonData)||((d=this.data)==null?void 0:d.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var K;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((K=this.data)==null||!K.maybeShowNewnessDot)}}});
HN.prototype.expandedButtonsChanged=HN.prototype.expandedButtonsChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],HN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.$c),_.B("design:type",Object)],HN.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],HN.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],HN.prototype,"reactionControlPanelExpanded",void 0);_.x([_.A({selectorArgs:["data.liveReactionsDataEntityKey"],selector:KOK}),_.B("design:type",Object)],HN.prototype,"liveReactionsData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],HN.prototype,"isDarkTheme",void 0);_.x([_.A(),_.B("design:type",Object)],HN.prototype,"newnessDotEligible",void 0);
_.x([_.W("liveReactionsData","data.expandedButtons"),_.B("design:type",Object),_.B("design:paramtypes",[])],HN.prototype,"expandedButtonsData",null);_.x([_.W("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.A({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],HN.prototype,"showNewnessDot",null);_.x([_.n8("#expanded-buttons"),_.B("design:type",HTMLElement)],HN.prototype,"expandedButtons",void 0);
_.x([_.SP("expandedButtonsData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HN.prototype,"expandedButtonsChanged",null);HN=_.x([_.N7({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],HN);
_.C(HN,"yt-reaction-control-panel-view-model",function(){if(sgZ===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Jxy===void 0&&(Jxy=document.createElement("template"));var H=Jxy;f.call(d,H.content.cloneNode(!0),K.content.firstChild);sgZ=K}K=sgZ;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var DA=new _.mn("yt-live-chat"),kVi=Date.parse("2024-7-24"),Vq=function(){var K=_.q.apply(this,arguments)||this;K.emojiManager=_.$L;K.newnessDotEligible=!1;K.newnessDotImpressionCounted=!1;K.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return K};
_.O(Vq,_.q);_.V=Vq.prototype;_.V.emojiCustomizationEnabledChanged=function(){var K;((K=this.data)==null?0:K.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((K=DA.getCreationTime("emoji-customization-count"))&&K<kVi&&DA.set("emoji-customization-count","0"),K=Number(DA.get("emoji-customization-count"))||0,K<3&&(this.newnessDotEligible=!0,DA.set("emoji-customization-count",(K+1).toString())),this.newnessDotImpressionCounted=!0)};
_.V.hideNewnessDot=function(){this.newnessDotEligible=!1;DA.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.V.handleReactionsMute=function(K){var d=_.te(),f=_.vp(206221),H={checkboxData:{state:K?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};d&&_.rN(d,f,H);this.reactionsMuted=K};
_.V.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.V.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}}};
_.x$.Object.defineProperties(Vq.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var K;return(!((K=this.liveReactionsData)==null||!K.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Vq.prototype.liveReactionsSettingChanged=Vq.prototype.liveReactionsSettingChanged;Vq.prototype.emojiCustomizationEnabledChanged=Vq.prototype.emojiCustomizationEnabledChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Vq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.$c),_.B("design:type",Object)],Vq.prototype,"ytLiveChatReduxBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Vq.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Vq.prototype,"data",void 0);_.x([_.A(),_.B("design:type",_.YL)],Vq.prototype,"emojiManager",void 0);_.x([_.A(),_.B("design:type",Object)],Vq.prototype,"newnessDotEligible",void 0);_.x([_.A(),_.B("design:type",Object)],Vq.prototype,"newnessDotImpressionCounted",void 0);
_.x([_.A({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:dUw}),_.B("design:type",Boolean)],Vq.prototype,"liveReactionsSetting",void 0);_.x([_.A({selectorArgs:["data.liveReactionsDataEntityKey"],selector:KOK}),_.B("design:type",Object)],Vq.prototype,"liveReactionsData",void 0);_.x([_.A({value:function(){var K=_.M("enable_lwe_web_mute"),d=DA.get("allow-reactions");return d===void 0?!1:!d&&K}}),
_.B("design:type",Boolean)],Vq.prototype,"reactionsMuted",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Vq.prototype,"liveReactionsEnabled",null);_.x([_.SP("data.emojiCustomizationEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vq.prototype,"emojiCustomizationEnabledChanged",null);
_.x([_.SP("liveReactionsEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vq.prototype,"liveReactionsSettingChanged",null);Vq=_.x([_.N7({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Vq);
_.C(Vq,"yt-reaction-control-panel-overlay-view-model",function(){if(xLE===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;CDw===void 0&&(CDw=document.createElement("template"));var H=CDw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);xLE=K}K=xLE;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var wqU={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(K){var d=this.$.pickers.selected;if(d){_.E(this.hostElement).removeAttribute(d+"-open");var f="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(f="#picker-buttons",d==="emoji"&&_.E(this.hostElement).querySelector("#emoji-picker-button")&&(f="#emoji-picker-button"));if(f=_.E(this.hostElement).querySelector(f).querySelector("#"+d))f.active=!1}f=K;d==K&&(f=null);d!=K&&
_.E(this.hostElement).setAttribute(K+"-open","");this.$.pickers.selected=f;_.ev(this.hostElement,"yt-live-chat-picker-changed",[f])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var SB=function(){var K=_.q.apply(this,arguments)||this;K.numSentMessages=0;K.timeoutDurationMs=0;K.timeoutMs=0;K.lastTimeoutTimeMs=0;K.pendingMessageId="";K.hasFiredInitialFocusActions=!1;K.isBeforeFocusEnabled=!0;K.id="";K.characterCount=0;K.maxCharacterLimit=0;K.remainingCharacterCount=0;K.inputExpanded=!1;K.buttonOverrides={iconPosition:"icon-only"};K.inReplyPanel=!1;K.countdownRatio=0;K.isTooltipVisible=!1;K.tooltipTimeout=1E4;K.systemIcons=_.M("kevlar_system_icons");K.tallerEmojiPicker=_.M("live_chat_taller_emoji_picker");
K.blockSendMessageWithCountdown=!_.M("live_chat_enable_send_button_in_slow_mode");K.sendReplyMessageInFlight=!1;K.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"};K.onResize=function(){K.maybeToggleCharacterCount()};
return K};
_.O(SB,_.q);_.V=SB.prototype;
_.V.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"}}}};
_.V.attached=function(){window.addEventListener("resize",this.onResize)};
_.V.detached=function(){window.removeEventListener("resize",this.onResize)};
_.V.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.V.sendMessage=function(){var K=this,d,f,H,D;return _.c(function(S){if(K.sendDisabled)return S.return();K.isTooltipVisible&&_.ev(K.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(K.data.sendButton&&K.data.sendButton.buttonRenderer){K.input.completeEmojis();d=K.data.sendButton.buttonRenderer.serviceEndpoint;if(!d)return S.return();H=((f=_.P(d,_.wcf))==null?void 0:f.clientIdPrefix)||"";D={client_message_id:H+String(K.numSentMessages++),rich_message:_.E5(K.input.liveChatRichMessageInput)};
K.pendingMessageId=D.client_message_id;K.inReplyPanel&&(K.sendReplyMessageInFlight=!0);_.dN(K.hostElement,[d,D]);K.input.setLiveChatRichMessageInput(null)}_.iQ(S)})};
_.V.handleSendButtonAction=function(K){K.detail.actionName==="yt-service-request"&&(K.stopPropagation(),this.sendMessage())};
_.V.onSendCompleted=function(K,d){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(K=this.get("timeoutDurationUsec",d.data))&&this.handleTimeout(Number(K)/1E3);this.errorMessage=this.get("errorMessage",d.data);this.pendingMessageId=""};
_.V.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.ev(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.V.handlePickerButtonToggle=function(K){K=K.detail.targetId;this.ytPickerBehavior.togglePicker_(K);if(K==="emoji")this.input.focus();else if(K==="qna-start-panel"){var d,f;(d=_.E(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(f=d.querySelector("#qna-creator-text-input-field"))==null||f.focus()}};
_.V.onComponentReplaced=function(K){var d,f;K.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((d=K.replacement.liveChatMessageInputRenderer)==null?0:(f=d.headerRenderer)==null?0:f.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.V.onEmojiSelect=function(K){this.input.focus();this.input.insertEmoji(K.detail)};
_.V.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.V.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.ev(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.ev(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.V.onOpenPopupAction=function(K,d){var f=this;d===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.ev(f.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.V.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.V.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.V.focusChanged=function(){this.maybeToggleCharacterCount()};
_.V.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var K=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",K>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.V.computeId=function(){return this.data&&this.data.targetId||""};
_.V.computeSendDisabled=function(K,d,f,H){K=!!(this.blockSendMessageWithCountdown&&f||!K||d&&K>d||H);(d=_.E(this.hostElement).querySelector("#send-button"))&&d.children.length&&(d.children[0].disabled=K);return K};
_.V.handleTimeout=function(K){this.timeoutDurationMs=this.timeoutMs=K;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.V.updateTimeout=function(K){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(K-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=K,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.V.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.V.onErrorMessageEdit=function(K){this.input.setLiveChatRichMessageInput(K.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.V.errorMessageChanged=function(){var K=this;_.bL(function(){_.ev(K.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.V.computeAuthorNameColor=function(K){var d;if(_.M("live_chat_author_name_color_usernames")&&(K==null?0:(d=K.authorName)==null?0:d.simpleText))return _.Rso(_.FAY(K.authorName.simpleText));if(_.M("live_chat_seed_color_usernames")&&(K==null?0:K.authorSeedColorArgb))return _.Rso(_.dl(K.authorSeedColorArgb));if(_.M("live_chat_colored_usernames"))return"#cc0000";var f;return _.M("live_chat_simple_color_usernames")&&(K==null?0:(f=K.authorName)==null?0:f.simpleText)&&(K==null?0:K.authorUsernameColorLight)&&
(K==null?0:K.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.dl(K.authorUsernameColorDark):_.dl(K.authorUsernameColorLight):""};
_.V.onIsTooltipVisibleChanged=function(){var K=_.E(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){K.hidden=!1;K.setAttribute("role","alert")},0):(K.hidden=!0,K.removeAttribute("role"))};
_.V.onFocusedChanged=function(K){this.inputFocused=K.detail.value};
_.x$.Object.defineProperties(SB.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 K;return!((K=this.data)==null||!K.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:(d=K.pickers)==null?void 0:d.find(function(f){return f.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var K=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return K?this.ytRendererBehavior.getSimpleString(K):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
SB.prototype.onIsTooltipVisibleChanged=SB.prototype.onIsTooltipVisibleChanged;SB.prototype.errorMessageChanged=SB.prototype.errorMessageChanged;SB.prototype.onErrorMessageEdit=SB.prototype.onErrorMessageEdit;SB.prototype.onErrorMessageDismiss=SB.prototype.onErrorMessageDismiss;SB.prototype.focusChanged=SB.prototype.focusChanged;SB.prototype.characterCountChanged=SB.prototype.characterCountChanged;SB.prototype.onEmojiSelect=SB.prototype.onEmojiSelect;SB.prototype.handlePickerButtonToggle=SB.prototype.handlePickerButtonToggle;
SB.prototype.onSendError=SB.prototype.onSendError;SB.prototype.onSendCompleted=SB.prototype.onSendCompleted;SB.prototype.sendMessage=SB.prototype.sendMessage;SB.prototype.dataChanged=SB.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],SB.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(wqU.YtPickerBehavior),_.B("design:type",Object)],SB.prototype,"ytPickerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.E9.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],SB.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],SB.prototype,"hasFiredInitialFocusActions",void 0);
_.x([_.A(),_.B("design:type",Object)],SB.prototype,"isBeforeFocusEnabled",void 0);_.x([_.A(),_.B("design:type",Object)],SB.prototype,"data",void 0);_.x([_.A({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",Object)],SB.prototype,"id",void 0);_.x([_.A(),_.B("design:type",Object)],SB.prototype,"characterCount",void 0);_.x([_.A(),_.B("design:type",Object)],SB.prototype,"maxCharacterLimit",void 0);
_.x([_.A(),_.B("design:type",Object)],SB.prototype,"remainingCharacterCount",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],SB.prototype,"inputExpanded",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],SB.prototype,"inputFocused",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],SB.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.x([_.A(),_.B("design:type",_.lF)],SB.prototype,"participantsManager",void 0);
_.x([_.A(),_.B("design:type",Object)],SB.prototype,"buttonOverrides",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],SB.prototype,"inReplyPanel",void 0);_.x([_.W("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],SB.prototype,"sendDisabled",null);_.x([_.A(),_.B("design:type",Object)],SB.prototype,"countdownRatio",void 0);
_.x([_.W("countdownRatio"),_.B("design:type",Number),_.B("design:paramtypes",[])],SB.prototype,"countdownStrokeDashOffset",null);_.x([_.W("countdownRatio"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],SB.prototype,"countdownActive",null);_.x([_.W("data.interactionMessage"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],SB.prototype,"hasInteractionMessage",null);
_.x([_.W("data.emojiPickerButton"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],SB.prototype,"hasEmojiPickerButton",null);_.x([_.W("data, characterCount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],SB.prototype,"showAvatar",null);_.x([_.W("data.pickers"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],SB.prototype,"hasProductPickerPanelViewModel",null);
_.x([_.A(),_.B("design:type",Object)],SB.prototype,"errorMessage",void 0);_.x([_.A(),_.B("design:type",Object)],SB.prototype,"genericErrorMessage",void 0);_.x([_.A(),_.B("design:type",Object)],SB.prototype,"isTooltipVisible",void 0);_.x([_.A(),_.B("design:type",Object)],SB.prototype,"tooltipTimeout",void 0);_.x([_.W("data.onInitialFocusCommand"),_.B("design:type",String),_.B("design:paramtypes",[])],SB.prototype,"tooltipMessage",null);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],SB.prototype,"systemIcons",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],SB.prototype,"tallerEmojiPicker",void 0);_.x([_.W("data"),_.B("design:type",String),_.B("design:paramtypes",[])],SB.prototype,"authorNameColor",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],SB.prototype,"blockSendMessageWithCountdown",void 0);_.x([_.A(),_.B("design:type",Object)],SB.prototype,"sendReplyMessageInFlight",void 0);
_.x([_.n8("#input"),_.B("design:type",_.zS8)],SB.prototype,"input",void 0);_.x([_.n8("#count"),_.B("design:type",HTMLElement)],SB.prototype,"count",void 0);_.x([_.n8("#input-container"),_.B("design:type",HTMLElement)],SB.prototype,"inputContainer",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SB.prototype,"dataChanged",null);
_.x([_.VV("yt-live-chat-send-message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],SB.prototype,"sendMessage",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[Event,_.rH]),_.B("design:returntype")],SB.prototype,"onSendCompleted",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SB.prototype,"onSendError",null);
_.x([_.VV("yt-live-chat-icon-toggle-button-renderer-toggle"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],SB.prototype,"handlePickerButtonToggle",null);_.x([_.VV("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],SB.prototype,"onEmojiSelect",null);
_.x([_.SP("characterCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SB.prototype,"characterCountChanged",null);_.x([_.SP("inputFocused"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SB.prototype,"focusChanged",null);_.x([_.VV("yt-live-chat-error-message-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SB.prototype,"onErrorMessageDismiss",null);
_.x([_.VV("yt-live-chat-error-message-edit"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],SB.prototype,"onErrorMessageEdit",null);_.x([_.SP("errorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SB.prototype,"errorMessageChanged",null);_.x([_.SP("isTooltipVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SB.prototype,"onIsTooltipVisibleChanged",null);
SB=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],SB);
_.C(SB,"yt-live-chat-message-input-renderer",function(){if(Xqw===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;zuU===void 0&&(zuU=document.createElement("template"));var H=zuU;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Xqw=K}K=Xqw;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var Zbi;var euw;var yq=function(){var K=_.q.apply(this,arguments)||this;K.systemIcons=_.M("kevlar_system_icons");K.firedOnClickCommand=!1;K.inReplyPanel=!1;return K};
_.O(yq,_.q);
yq.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"}}}};
yq.prototype.onButtonToggle=function(K){K.target.disabled||this.ytPickerBehavior.togglePicker_(K.detail.targetId)};
yq.prototype.onClick=function(){var K=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.ev(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return K.firedOnClickCommand=!1},5E3))};
_.x$.Object.defineProperties(yq.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:(d=K.panels)==null?void 0:d.find(function(f){return f.liveChatProductPickerPanelViewModel}))!==void 0}}});
yq.prototype.onButtonToggle=yq.prototype.onButtonToggle;_.x([_.l(wqU.YtPickerBehavior),_.B("design:type",Object)],yq.prototype,"ytPickerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],yq.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],yq.prototype,"systemIcons",void 0);_.x([_.A({reflectToAttribute:!1}),_.B("design:type",Object)],yq.prototype,"firedOnClickCommand",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],yq.prototype,"inReplyPanel",void 0);_.x([_.W("data.pickers"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yq.prototype,"hasProductPickerPanelViewModel",null);
_.x([_.VV("yt-live-chat-icon-toggle-button-renderer-toggle"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],yq.prototype,"onButtonToggle",null);yq=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],yq);
_.C(yq,"yt-live-chat-restricted-participation-renderer",function(){if(euw===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Zbi===void 0&&(Zbi=document.createElement("template"));var H=Zbi;f.call(d,H.content.cloneNode(!0),K.content.firstChild);euw=K}K=euw;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var np=function(){var K=_.q.apply(this,arguments)||this;K.genericErrorMessage=_.rB("Error, try again.");K.inReplyPanel=!1;K.hideBorder=!1;return K};
_.O(np,_.q);np.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}}}}}};
_.x$.Object.defineProperties(np,{template:{configurable:!0,enumerable:!0,get:function(){return aj5()}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],np.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],np.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],np.prototype,"genericErrorMessage",void 0);_.x([_.A(),_.B("design:type",Object)],np.prototype,"inReplyPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],np.prototype,"hideBorder",void 0);
np=_.x([_.N7({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],np);_.C(np,"yt-live-chat-engagement-panel-input-renderer",function(){return aj5()},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var pqE,KpP;pqE=_.vp(115994);KpP=_.vp(115993);_.id=function(K,d,f){var H=this;var D=f.dragDownAction;this.layer=0;this.JSC$19903_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.JSC$19903_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.fullscreen=!1;var S=_.cv();_.K5(S,pqE,this.layer);_.K5(S,KpP,this.layer);this.dragDownAction=function(){D();_.bh(S,{visualElement:H.fullscreen?pqE:KpP})};
this.gesture=new _.nV(K,d,this.JSC$19903_watchConfig,"pandown");this.attach()};
_.id.prototype.attach=function(){this.gesture.attach()};
_.id.prototype.detach=function(){this.gesture.detach()};
_.id.prototype.update=function(K){this.fullscreen=K;this.gesture.config=K?this.JSC$19903_watchFullScreenConfig:this.JSC$19903_watchConfig};var dwE={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(K){if(K&&K.length==1&&Array.isArray(K[0].loggingUrls)){K=_.PR.unsafeClone(K[0]);var d=this.macros||{},f=this.getAdModuleClient_();if(!f)return _.HG();K.loggingUrls.forEach(function(H){if(H.baseUrl){var D=H.baseUrl;var S=d;S=S===void 0?{}:S;D=f.getOptions().includes("replaceUrlMacros")?_.$c9(f,"replaceUrlMacros",{url:D,additionalMapping:S}):D;H.baseUrl=D}},this);
K=[K]}return _.dN(this.hostElement,K)},
getAdModuleClient_:function(){var K=_.xP(this);return K?(K=K.getPlayer())?new _.UR(K):null:null}}]};var f1t;var cN=function(){var K=_.q.apply(this,arguments)||this;K.isCollapsed=!1;K.modernPanels=_.M("kevlar_watch_modern_panels");K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return K};
_.O(cN,_.q);_.V=cN.prototype;_.V.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.onDonateTap=function(){var K=this.get("data.donateButton.buttonRenderer.command");if(K){var d=_.te(),f=this.get("data.donateButton.buttonRenderer.trackingParams");d&&f&&_.rN(d,_.RG(f));this.ytOpenPopupBehavior.openPopup(K)}};
_.V.onShowMore=function(){this.isCollapsed=!1;var K=_.te(),d=this.get("data.expandButton.buttonRenderer.trackingParams");K&&d&&_.rN(K,_.RG(d))};
_.V.onShowLess=function(){this.isCollapsed=!0};
_.V.dataChanged=function(){_.f8(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.V.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.V.handleUpdate=function(K){if(K=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",K))this.set("data.startLabel",K.startLabel),this.set("data.endLabel",K.endLabel),this.set("data.progress",K.progress),this.set("data.amountRaisedLabel",K.amountRaisedLabel),this.dataChanged()};
_.V.handleOpenPopupAction=function(K){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",K)&&_.ev(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.V.computeHeaderBackgroundUrl=function(K,d){if(K)return d?K.headerBackgroundDarkUrl:K.headerBackgroundUrl};
_.V.isProgressBarVisible=function(K){return!(!K||K.progress===void 0)};
_.V.headerBackgroundClass=function(){return _.mD("HTML_DIR")==="rtl"?"flip":""};
cN.prototype.dataChanged=cN.prototype.dataChanged;_.x([_.l(_.Vr.YtOpenPopupBehavior),_.B("design:type",Object)],cN.prototype,"ytOpenPopupBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],cN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],cN.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],cN.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],cN.prototype,"isCollapsed",void 0);_.x([_.A({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.B("design:type",String)],cN.prototype,"headerBackgroundUrl",void 0);_.x([_.A(),_.B("design:type",Boolean)],cN.prototype,"isDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],cN.prototype,"modernPanels",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cN.prototype,"dataChanged",null);cN=_.x([_.Q({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],cN);
_.C(cN,"ytd-donation-shelf-renderer",function(){if(f1t!==void 0)return f1t;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return f1t=K},{mode:1});var HHy;var ud=function(){return _.q.apply(this,arguments)||this};
_.O(ud,_.q);_.x([_.A(),_.B("design:type",Object)],ud.prototype,"data",void 0);ud=_.x([_.Q({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],ud);
_.C(ud,"ytd-donation-unavailable-renderer",function(){if(HHy!==void 0)return HHy;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return HHy=K},{mode:1});var DwS;var ai=function(){return _.q.apply(this,arguments)||this};
_.O(ai,_.q);ai.prototype.computeIconType=function(K){return K?"yt-icons:"+K.toLowerCase():null};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ai.prototype,"data",void 0);ai=_.x([_.Q({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],ai);
_.C(ai,"ytd-limited-state-message-renderer",function(){if(DwS!==void 0)return DwS;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return DwS=K},{mode:1});var V9P;var Ii=function(){return _.q.apply(this,arguments)||this};
_.O(Ii,_.q);Ii.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Ii.prototype.onTap=function(K){var d=this.data&&this.data.endpoint;d&&!_.qa(_.qn(K),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Zp(this.hostElement,"yt-navigate",{endpoint:d})};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ii.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ii.prototype,"data",void 0);Ii=_.x([_.Q({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Ii);
_.C(Ii,"ytd-autotagging-metadata-renderer",function(){if(V9P!==void 0)return V9P;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return V9P=K},{mode:1});var SuU;var Uc=function(){return _.q.apply(this,arguments)||this};
_.O(Uc,_.q);Uc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Uc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Uc.prototype,"data",void 0);Uc=_.x([_.Q({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Uc);
_.C(Uc,"ytd-autotagging-metadata-row-renderer",function(){if(SuU!==void 0)return SuU;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return SuU=K},{mode:1});var y8Z;var nNw;var Ri=function(){var K=_.q.apply(this,arguments)||this;K.engagementPanelContent=!1;return K};
_.O(Ri,_.q);Ri.prototype.computeHasDividerLine=function(K,d){return K&&!d};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ri.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.B("design:type",Boolean)],Ri.prototype,"hasDividerLine",void 0);_.x([_.A(),_.B("design:type",Object)],Ri.prototype,"engagementPanelContent",void 0);
Ri=_.x([_.Q({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Ri);
_.C(Ri,"ytd-metadata-row-header-renderer",function(){if(nNw!==void 0)return nNw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return nNw=K},{mode:1});var iHP;var Fg=function(){return _.q.apply(this,arguments)||this};
_.O(Fg,_.q);Fg.prototype.computeHasDividerLine=function(K){return K};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Fg.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.B("design:type",Boolean)],Fg.prototype,"hasDividerLine",void 0);Fg=_.x([_.Q({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Fg);
_.C(Fg,"ytd-metadata-row-renderer",function(){if(iHP!==void 0)return iHP;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return iHP=K},{mode:1});var c8t;var zK=function(){return _.q.apply(this,arguments)||this};
_.O(zK,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],zK.prototype,"data",void 0);zK=_.x([_.Q({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],zK);
_.C(zK,"ytd-metadata-with-image-row-renderer",function(){if(c8t!==void 0)return c8t;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return c8t=K},{mode:1});var uFw;var Xg=function(){var K=_.q.apply(this,arguments)||this;K.rounded=!0;K.fixie=!1;K.fullWidth=!1;return K};
_.O(Xg,_.q);_.V=Xg.prototype;_.V.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.onDataChanged=function(){var K=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(d){K.onEndpointLinkKeyPress(d)}))};
_.V.onEndpointLinkKeyPress=function(K){K.target===this.endpointLink&&K.keyCode===13&&_.Zp(this.hostElement,"click")};
_.V.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var K;if((K=this.data)==null?0:K.endpoint)_.fd(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.V.onYtNavigate=function(K){this.endpointHref||(K.stopPropagation(),K.preventDefault())};
_.V.onInformationButtonContainerClick=function(K){K.target.id!=="information-button-container"&&(K.stopPropagation(),K.preventDefault())};
_.V.computeStyle=function(K){return K};
_.V.computeIsThumbnailStyle=function(K){return K==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.V.computeThumbnailWidth=function(K){switch(K){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}};
_.V.computeThumbnailObjectFit=function(K){switch(K){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.x$.Object.defineProperties(Xg.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Xg.prototype.onYtNavigate=Xg.prototype.onYtNavigate;Xg.prototype.onClick=Xg.prototype.onClick;Xg.prototype.onDataChanged=Xg.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Xg.prototype,"componentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],Xg.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],Xg.prototype,"componentStyle",void 0);_.x([_.A({computed:"computeIsThumbnailStyle(data.style)"}),_.B("design:type",Boolean)],Xg.prototype,"isThumbnailStyle",void 0);_.x([_.A({computed:"computeThumbnailObjectFit(data.style)"}),_.B("design:type",String)],Xg.prototype,"thumbnailObjectFit",void 0);
_.x([_.A({computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],Xg.prototype,"thumbnailWidth",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Xg.prototype,"rounded",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Xg.prototype,"fixie",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Xg.prototype,"fullWidth",void 0);_.x([_.n8("#endpoint-link"),_.B("design:type",HTMLAnchorElement)],Xg.prototype,"endpointLink",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xg.prototype,"onDataChanged",null);_.x([_.W("data.endpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],Xg.prototype,"endpointHref",null);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Xg.prototype,"onClick",null);
_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Xg.prototype,"onYtNavigate",null);Xg=_.x([_.Q({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Xg);
_.C(Xg,"ytd-rich-metadata-renderer",function(){if(uFw!==void 0)return uFw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return uFw=K},{mode:_.p8("kevlar_poly_si_batch_j075")?1:2});var a1S;var vN=function(){var K=_.q.apply(this,arguments)||this;K.fixie=!1;K.fullWidth=!1;return K};
_.O(vN,_.q);vN.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
vN.prototype.computeHasDividerLine=function(K){return K};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],vN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vN.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.B("design:type",Boolean)],vN.prototype,"hasDividerLine",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],vN.prototype,"fixie",void 0);_.x([_.A(),_.B("design:type",Object)],vN.prototype,"fullWidth",void 0);
vN=_.x([_.Q({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],vN);
_.C(vN,"ytd-rich-metadata-row-renderer",function(){if(a1S!==void 0)return a1S;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return a1S=K},{mode:1});var MM=function(){var K=_.q.apply(this,arguments)||this;K.engagementPanelContent=!1;K.fixie=!1;K.fullWidth=!1;return K};
_.O(MM,_.q);
MM.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"}}}};
MM.prototype.computeCollapsibleItems=function(K,d,f){return K===void 0||d===void 0||f===void 0||f?[]:K.slice(d)};
MM.prototype.computeAlwaysShownItems=function(K,d){return K&&K.length?K.slice(0,d):[]};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],MM.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],MM.prototype,"collapsed",void 0);
_.x([_.A({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.B("design:type",Array)],MM.prototype,"alwaysShownItems",void 0);_.x([_.A({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.B("design:type",Array)],MM.prototype,"collapsibleItems",void 0);_.x([_.A(),_.B("design:type",Object)],MM.prototype,"engagementPanelContent",void 0);_.x([_.A(),_.B("design:type",Object)],MM.prototype,"fixie",void 0);
_.x([_.A(),_.B("design:type",Object)],MM.prototype,"fullWidth",void 0);MM=_.x([_.Q({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],MM);
_.C(MM,"ytd-metadata-row-container-renderer",function(){if(y8Z!==void 0)return y8Z;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return y8Z=K},{mode:1});var I1P;var PN=function(){var K=_.q.apply(this,arguments)||this;K.currentPageUrl="";K.baseUrl="";K.isHiddenByUser=null;K.hidden=!1;K.showAboveScrim=!1;K.watchNextGrid=_.M("kevlar_watch_grid");K.modernButtons=_.M("web_modern_buttons");K.roundedContainer=!0;K.noBorder=!1;K.roundBackground=!_.M("live_chat_round_background_killswitch");K.overflowHideChat=_.M("live_chat_overflow_hide_chat");K.forceDarkTheme=!1;K.theaterWatchWhile=!1;K.isListeningForPlayerProgress=!1;K.JSC$19939_playerEvents=new Map;K.isFrameReady=
!1;K.player=null;K.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 K};
_.O(PN,_.q);_.V=PN.prototype;_.V.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.p1(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.V.created=function(){var K=this;this.handleIframeEventListener=function(d){K.handleIframeEvent(d)};
this.handleKeyboardEventListener=function(d){K.handleKeyboardEvent(d)};
this.JSC$19939_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19939_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19939_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19939_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19939_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.V.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()};
_.V.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};
_.V.computeBaseUrl=function(K){var d="/live_chat";this.isChatReplay()&&(d="/live_chat_replay");return _.Bk(_.Lx(_.xk(_.QX(K),d),null),"").toString()};
_.V.dataChanged=function(){_.M("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.V.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var K=this.url;if(this.isChatReplay()&&this.player){var d=Math.floor(this.player.getProgressState().current*1E3);K=_.Cm(_.QX(K),"playerOffsetMs",d.toString()).toString()}d=this.chatframe;try{var f=K==="about:blank"?_.BZX:_.Xa(K),H=d.contentDocument.location,D=_.O2(f);D!==void 0&&H.replace(D)}catch(S){d.src=K}}};
_.V.collapsedChanged=function(){_.Zp(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.V.handleIframeEvent=function(K){if(K&&this.baseUrl.startsWith(K.origin)&&K.source===this.chatframe.contentWindow&&_.H4(K.data))if(K.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(K);else if(K.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(K.data["yt-show-feedback-dialog"]){var d=_.eq().resolve(_.Zd(_.UBk));if(d){var f=K.ports,H;f&&f.length&&(H=function(){f[0].postMessage({})});
K=K.data["yt-show-feedback-dialog"];d.showFeedbackDialog(K.customProductData,K.feedbackContent,H,K.bucket)}}else if(K.data["yt-show-survey"])_.Zp(this.hostElement,"yt-show-survey",K.data["yt-show-survey"]);else if(K.data["yt-purchase-membership"])_.eq().resolve(_.pQ).resolveCommand(K.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(K.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(K.data["yt-tunnel-out-live-service-request"]);else if(K.data["yt-user-activity"])_.ec();
else if(K.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(K.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(K.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(K.data["yt-open-popup"]);else if(K.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(K.data["yt-log-flow-logging-event-command"]);else if(K.data["yt-hide-live-chat"])this.onShowHideChat();else K.data["yt-report-moderation-state-log"]&&
this.player&&(d={cpn:this.player.getVideoData().cpn},_.t3("liveChatBeingModerated",d))};
_.V.attachLiveChatResponseVeTrackingParams=function(K){K=_.RG(K);var d=_.te(),f=_.T2("liveChatRenderer.trackingParams",this.data);d&&f&&_.lB(d,_.RG(f),K)};
_.V.handleBuyflowMessages=function(K){var d=K.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,f=K.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,H=K.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.xwz(_.w3(_.rm),d.replace(/-/g,"+").replace(/_/g,"/"),function(D){K.ports[0].postMessage({success:!0,buyFlowResponse:D})},void 0,function(D){K.ports[0].postMessage({success:!1,
error:D&&D.message||"Buyflow rejected without error."})},_.aS().get("hl"),void 0,function(){K.ports[0].postMessage({closed:!0})},f,H)};
_.V.setupPlayerProgressRelay=function(){var K=this;if(!this.isListeningForPlayerProgress){var d=_.LK();d!=null&&d.getPlayerPromise&&(d.getPlayerPromise().then(function(f){K.playerApiReady(f)}),this.isListeningForPlayerProgress=!0)}};
_.V.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.V.playerApiReady=function(K){this.setPlayer(K)};
_.V.playerProgressHandler=function(){if(this.player){var K=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":K.current})}};
_.V.playerAdStartHandler=function(K){this.postToContentWindow({"yt-player-ad-start":K})};
_.V.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.V.playerStateChangeHandler=function(K){this.postToContentWindow({"yt-player-state-change":K})};
_.V.setPlayer=function(K){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19939_playerEvents);K&&(this.player=K,this.ytPlayerListenerBehavior.listenToPlayerEvents(K,this.JSC$19939_playerEvents),_.Zp(this.hostElement,"player-api-ready"))};
_.V.liveChatPageUrl=function(K,d,f,H){return!f||d?"about:blank":f.liveChatRenderer?(d=_.QX(this.currentPageUrl).JSC$8037_queryData_,s3E(d),K=_.QX(K),d.add("continuation",f.liveChatRenderer.continuations[0].reloadContinuationData.continuation),f=_.X7()==="USER_INTERFACE_THEME_DARK",(H||f)&&d.add("dark_theme","true"),_.Lx(K,d),H=_.QX(K.toString()),f=H.JSC$8037_queryData_,"SESSION_INDEX"in _.hR&&(f.add("authuser",_.mD("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.hR&&f.add("pageId",_.mD("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.hR&&f.add("sdc",_.mD("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),H.toString()):""};
_.V.isCollapsed=function(K,d){return d!==null?d:this.isChatReplay()||K&&K.conversationBarRenderer&&K.conversationBarRenderer.availabilityMessage?!0:K?K.liveChatRenderer?K.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.M("live_chat_hide_premiere_replay_message")||K.conversationBarRenderer&&K.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.V.isHidden=function(K,d,f){var H=d&&d.conversationBarRenderer&&d.conversationBarRenderer.availabilityMessage,D=d&&d.liveChatRenderer&&d.liveChatRenderer.showHideButton,S=d&&d.liveChatRenderer&&d.liveChatRenderer.showButton;return f&&K&&!H&&!S||!f&&K&&!H&&!D?!0:d&&d.liveChatRenderer&&d.liveChatRenderer.initialDisplayState?d.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.V.computeButtonOverride=function(K,d){if(K&&d)return{type:"outline"}};
_.V.setCollapsedState=function(K){_.P(K,_.GlJ)&&(this.isHiddenByUser=!!_.P(K,_.GlJ).collapsed,!this.isHiddenByUser&&_.M("enable_teaser_framework_web_client")&&_.ev(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.V.forwardReduxActionToIframe=function(K){this.postToContentWindow({"yt-live-chat-forward-redux-action":K})};
_.V.onLoopRangeChange=function(K){this.showAboveScrim=!(K==null||!K.postId)};
_.V.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.V.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.V.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.V.sendDarkThemePostMessage=function(K){this.postToContentWindow({"yt-live-chat-set-dark-theme":K})};
_.V.onLiveChatBuyFlowCallback=function(K){this.postToContentWindow({"yt-live-chat-buy-flow-callback":K})};
_.V.handleKeyboardEvent=function(K){(0,_.PR.containsValue)(JuU,K.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:K.type,keyCode:K.keyCode}})};
_.V.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.V.postToContentWindow=function(K){if(this.isFrameReady)try{var d=window.location.protocol+"//"+window.location.host,f;(f=this.chatframe)!=null&&f.contentWindow?this.chatframe.contentWindow.postMessage(K,d):_.h3(new _.X4("Tried posting a message to an iframe with no content window",K))}catch(H){_.$7(H)}};
_.V.shouldHideChatFrame=function(K){return K&&_.M("hide_live_chat_button_when_collapsed")};
_.x$.Object.defineProperties(PN.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.M("live_chat_overflow_hide_chat")||_.M("web_watch_chat_hide_button_killswitch"))return _.M("live_chat_overflow_hide_chat");var K,d,f,H;return!!((K=this.data)==null?0:(d=K.liveChatRenderer)==null?0:(f=d.header)==null?0:(H=f.liveChatHeaderRenderer)==null?0:H.collapseButton)}}});
PN.prototype.collapsedChanged=PN.prototype.collapsedChanged;PN.prototype.urlChanged=PN.prototype.urlChanged;PN.prototype.dataChanged=PN.prototype.dataChanged;PN.prototype.onShowHideChat=PN.prototype.onShowHideChat;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],PN.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],PN.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],PN.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.l(_.Vr.YtOpenPopupBehavior),_.B("design:type",Object)],PN.prototype,"ytOpenPopupBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],PN.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],PN.prototype,"currentPageUrl",void 0);
_.x([_.A({computed:"computeBaseUrl(currentPageUrl,data)"}),_.B("design:type",Object)],PN.prototype,"baseUrl",void 0);_.x([_.A({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.B("design:type",String)],PN.prototype,"url",void 0);_.x([_.A(),_.B("design:type",Object)],PN.prototype,"isHiddenByUser",void 0);_.x([_.A({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.B("design:type",Object)],PN.prototype,"hidden",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.B("design:type",Boolean)],PN.prototype,"collapsed",void 0);_.x([_.A({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.B("design:type",Boolean)],PN.prototype,"hideChatFrame",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"showAboveScrim",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"watchNextGrid",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],PN.prototype,"modernButtons",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"roundedContainer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"noBorder",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],PN.prototype,"roundBackground",void 0);
_.x([_.A({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.B("design:type",Object)],PN.prototype,"toggleButtonOverride",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],PN.prototype,"overflowHideChat",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"forceDarkTheme",void 0);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PN.prototype,"enableShowWithoutHideChatButton",null);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"theaterWatchWhile",void 0);_.x([_.n8("#chatframe"),_.B("design:type",HTMLIFrameElement)],PN.prototype,"chatframe",void 0);_.x([_.VV("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PN.prototype,"onShowHideChat",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PN.prototype,"dataChanged",null);
_.x([_.SP("url"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PN.prototype,"urlChanged",null);_.x([_.SP("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PN.prototype,"collapsedChanged",null);PN=_.x([_.Q({is:"ytd-live-chat-frame",disableElementRegistration:!0})],PN);
_.C(PN,"ytd-live-chat-frame",function(){if(I1P!==void 0)return I1P;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return I1P=K},{mode:1});var Uwy;var gZ=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("web_modern_buttons");K.buttonOverrides={style:"call-to-action",type:"filled"};return K};
_.O(gZ,_.q);gZ.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=_.E1(this.data.backgroundColor)))};
gZ.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var K=this.getFormattedStringLoggingDirectives(this.data.headline);K&&this.rendererBehavior.logExplicitClick(K)}};
gZ.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var K=this.getFormattedStringLoggingDirectives(this.data.description);K&&this.rendererBehavior.logExplicitClick(K)}};
gZ.prototype.getFormattedStringLoggingDirectives=function(K){return K&&K.runs&&K.runs.length>0&&K.runs[0]&&K.runs[0].loggingDirectives?K.runs[0].loggingDirectives:null};
gZ.prototype.dataChanged=gZ.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gZ.prototype,"rendererBehavior",void 0);_.x([_.l(dwE.YtMacroReplacementBehavior),_.B("design:type",Object)],gZ.prototype,"macroReplacementBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gZ.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],gZ.prototype,"navigationEndpoint",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],gZ.prototype,"enableColors",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gZ.prototype,"modern",void 0);_.x([_.A(),_.B("design:type",Object)],gZ.prototype,"buttonOverrides",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gZ.prototype,"dataChanged",null);gZ=_.x([_.Q({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],gZ);
_.C(gZ,"ytd-action-basic-immersive-content-renderer",function(){if(Uwy!==void 0)return Uwy;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Uwy=K},{mode:1});var Rh5;var Fpi;var Oc=function(){return _.q.apply(this,arguments)||this};
_.O(Oc,_.q);Oc.prototype.dataChanged=function(){var K;((K=this.data)==null?void 0:K.backgroundColor)!==void 0&&_.f8(this.hostElement,{"--bgu-color":_.E1(this.data.backgroundColor)})};
Oc.prototype.onImageTileClick=function(){var K;((K=this.data)==null?0:K.navigationEndpoint)&&_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var d;((d=this.data)==null?0:d.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.x$.Object.defineProperties(Oc.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var K;if(((K=this.data)==null?void 0:K.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 K;return((K=this.data)==null?void 0:K.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var K,d,f;if(((K=this.data)==null?void 0:(d=K.detailsLine)==null?void 0:d.texts)!=null&&((f=this.data)==null?void 0:f.detailsLine.texts.length)>0){var H;return(H=this.data)==null?void 0:H.detailsLine.texts.map(function(D){return D.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var K,d,f;if(((K=this.data)==null?void 0:(d=K.optionalDetailsLine)==null?void 0:d.texts)!=null&&((f=this.data)==null?void 0:f.optionalDetailsLine.texts.length)>0){var H;return(H=this.data)==null?void 0:H.optionalDetailsLine.texts.map(function(D){return D.text}).join("")}return null}}});
Oc.prototype.dataChanged=Oc.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Oc.prototype,"rendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Oc.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Oc.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data.backgroundColor"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Oc.prototype,"hasBackgroundColor",null);
_.x([_.W("data.objectFit"),_.B("design:type",Object),_.B("design:paramtypes",[])],Oc.prototype,"getObjectFit",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.tileRenderingStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Oc.prototype,"hasTileMetadata",null);_.x([_.W("data.detailsLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Oc.prototype,"getSecondaryDetails",null);
_.x([_.W("data.optionalDetailsLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Oc.prototype,"getOptionalDetails",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Oc.prototype,"dataChanged",null);Oc=_.x([_.Q({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Oc);
_.C(Oc,"ytd-image-tile-renderer",function(){if(Fpi!==void 0)return Fpi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Fpi=K},{mode:1});var zhP;var NM=function(){return _.q.apply(this,arguments)||this};
_.O(NM,_.q);NM.prototype.getOpenLinkIcon=function(){return _.M("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
NM.prototype.onSitelinkTap=function(){_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.M("kevlar_command_handler_migration_killswitch"))_.fd(this.hostElement,this.data.clickCommands,this.hostElement);else for(var K=_.y(this.data.clickCommands),d=K.next();!d.done;d=K.next())this.ytComponentBehavior.resolveCommand(d.value)};
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],NM.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],NM.prototype,"rendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],NM.prototype,"data",void 0);NM=_.x([_.Q({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],NM);
_.C(NM,"ytd-sitelink-renderer",function(){if(zhP!==void 0)return zhP;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return zhP=K},{mode:1});var Y0=function(){var K=_.q.apply(this,arguments)||this;K.paddingFix=_.M("enable_ads_web_ep_buenos_aires_and_padding_fix");return K};
_.O(Y0,_.q);Y0.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"}}}};
Y0.prototype.dataChanged=function(){var K=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(d){d.clickTrackingParams&&delete d.clickTrackingParams;K.ytMacroReplacementBehavior.sendServiceRequestAction([d])})};
Y0.prototype.shouldHideFooter=function(K){return!(K&&_.M("use_ads_engagement_panel_desktop_footer_cta"))};
_.x$.Object.defineProperties(Y0.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:K.imageTileRenderers)===void 0||((d=this.data)==null?void 0:d.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(f){var H;return(H=_.P(f,pMU))==null?void 0:H.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:K.imageTileRenderers)===void 0||((d=this.data)==null?void 0:d.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(f){var H;return((H=_.P(f,pMU))==null?void 0:H.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Y0.prototype.dataChanged=Y0.prototype.dataChanged;_.x([_.l(dwE.YtMacroReplacementBehavior),_.B("design:type",Object)],Y0.prototype,"ytMacroReplacementBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Y0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Y0.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Y0.prototype,"paddingFix",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data.imageTileRenderers"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Y0.prototype,"removeBorderFromImageTiles",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.imageTileRenderers"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Y0.prototype,"useFooteredMetadataRenderingStyle",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Y0.prototype,"dataChanged",null);Y0=_.x([_.Q({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Y0);
_.C(Y0,"ytd-action-engagement-panel-content-renderer",function(){if(Rh5!==void 0)return Rh5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Rh5=K},{mode:1});var XlZ;var vNE=_.C8(function(K){var d=K.data;var f=K.customCommandResolver;K=_.Co();_.T1(K,function(){return d().interaction},f);
_.wU(K,{visibilityCallback:function(H){var D,S=(D=d().interaction)==null?void 0:D.onFirstVisible;H&&S&&_.me(S)},
showOption:_.LW});return _.U("ad-grid-card-image-full-metadata-view-model",{class:function(){var H;return((H=d().interaction)==null?0:H.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:K,"aria-label":function(){var H,D;return(H=d().interaction)==null?void 0:(D=H.accessibility)==null?void 0:D.label}},_.U("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.U(_.z1,{data:function(){return d().adImage}},{adImageViewModel:function(H){return _.U(_.Vy,{data:H.data,
customCommandResolver:f})}})),_.U("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.U(_.X,{cond:function(){return d().headline},
then:function(H){return _.U(_.ji,{text:H,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.U(_.X,{cond:function(){return d().detailsLine},
then:function(H){return _.U("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.U(_.z1,{data:H},{adDetailsLineViewModel:function(D){return _.U(_.Zu,{data:D.data,customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.U(_.X,{cond:function(){return d().secondaryDetailsLine},
then:function(H){return _.U("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.U(_.z1,{data:H},{adDetailsLineViewModel:function(D){return _.U(_.Zu,{data:D.data,customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Fi");var M9y=_.C8(function(K){var d=K.data;var f=K.customCommandResolver;K=_.Co();_.T1(K,function(){return d().interaction},f);
_.wU(K,{visibilityCallback:function(H){var D,S=(D=d().interaction)==null?void 0:D.onFirstVisible;H&&S&&_.me(S)},
showOption:_.LW});return _.U("ad-grid-card-image-view-model",{class:function(){var H;return((H=d().interaction)==null?0:H.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:K,"aria-label":function(){var H,D;return(H=d().interaction)==null?void 0:(D=H.accessibility)==null?void 0:D.label}},_.U(_.z1,{data:function(){return d().adImage}},{adImageViewModel:function(H){return _.U(_.Vy,{data:H.data,
customCommandResolver:f})}}),_.U("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.U(_.z1,{data:function(){return d().adCardBadge}},{adCardBadgeViewModel:_.Zc2})))},"Gi");var PjS=_.C8(function(K){var d=K.data;var f=K.customCommandResolver;K=_.Co();_.T1(K,function(){return d().interaction},f);
_.wU(K,{visibilityCallback:function(H){var D,S=(D=d().interaction)==null?void 0:D.onFirstVisible;H&&S&&_.me(S)},
showOption:_.LW});return _.U("ad-grid-card-text-view-model",{class:function(){var H;return((H=d().interaction)==null?0:H.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:K,"aria-label":function(){var H,D;return(H=d().interaction)==null?void 0:(D=H.accessibility)==null?void 0:D.label}},_.U("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.U(_.X,{cond:function(){return d().title},
then:function(H){return _.U(_.ji,{text:H,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.U("div",{class:function(){return _.M("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.U(_.v_,{each:function(){var H;
return((H=d())==null?void 0:H.descriptions)||[]},
keyBy:"INDEX"},function(H){return _.U(_.ji,{text:H,className:function(){return _.M("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.U("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.U(_.z1,{data:function(){return d().moreInfoButton}},{adButtonViewModel:function(H){return _.U(_.JH,{data:H.data,
customCommandResolver:f})}})))},"Hi");var gNw=_.C8(function(K){var d=K.data;var f=K.customCommandResolver;var H=K.adGridCardCollectionStyle;K=_.Co();_.wU(K,{visibilityCallback:function(D){var S,n=(S=d().interaction)==null?void 0:S.onFirstVisible;D&&n&&_.me(n)},
showOption:_.LW});return _.U("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:K,style:function(){return"grid-template-columns: repeat("+a6Z(H?H():d().style)+", minmax(0, 1fr));"}},_.U(_.z1,{data:function(){var D;
return(D=d())==null?void 0:D.gridCards}},{adGridCardImageViewModel:function(D){return _.U(M9y,{data:D.data,
customCommandResolver:f})},
adGridCardImageFullMetadataViewModel:function(D){return _.U(vNE,{data:D.data,customCommandResolver:f})},
adGridCardTextViewModel:function(D){return _.U(PjS,{data:D.data,customCommandResolver:f})}}))},"Ii");_.sP(_.C8(function(K){var d=K.data;K=_.Co();_.T1(K,function(){return d().interaction},I6K);
_.wU(K,{visibilityCallback:function(f){var H,D=(H=d().interaction)==null?void 0:H.onFirstVisible;f&&D&&_.me(D)},
showOption:_.LW});return _.U("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:K},_.U("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.U(_.X,{cond:_.Y_z("(min-width: "+((0,_.tU)()+_.G_)+"px)"),then:function(){return _.U(_.z1,{data:function(){return d().adGridCardCollection}},{adGridCardCollectionViewModel:function(f){return _.U(gNw,{data:f.data,
customCommandResolver:I6K})}})},
else:function(){return _.U(_.z1,{data:function(){return d().adGridCardCollection}},{adGridCardCollectionViewModel:function(f){return _.U(gNw,{data:f.data,
customCommandResolver:I6K,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.U("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.U(_.z1,{data:function(){return d().adButton}},{adButtonViewModel:function(f){return _.U(_.JH,{data:f.data,
customCommandResolver:I6K})}})))},"Ji"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=K.data;K=_.Co();_.T1(K,function(){return d().interaction},UUy);
_.wU(K,{visibilityCallback:function(f){var H,D=(H=d().interaction)==null?void 0:H.onFirstVisible;f&&D&&_.me(D)},
showOption:_.LW});return _.U("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:K},_.U("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.U(_.z1,{data:function(){if(_.Y_z("(min-width: "+((0,_.tU)()+_.G_)+"px)")())var f=d().adGridCardCollection;else{f=Object.assign({},_.P(d().adGridCardCollection,KLK));var H;f.gridCards!==void 0&&((H=f.gridCards)==null?void 0:H.length)>1?f.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":f.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";f={adGridCardCollectionViewModel:f}}return f}},{adGridCardCollectionViewModel:function(f){return _.U(gNw,{data:f.data,
customCommandResolver:UUy})}})),_.U("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.U(_.z1,{data:function(){return d().adButton}},{adButtonViewModel:function(f){return _.U(_.JH,{data:f.data,
customCommandResolver:UUy})}})))},"Ki"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.rs}});var t$=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return K};
_.O(t$,_.q);_.V=t$.prototype;_.V.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"}}}};
_.V.attached=function(){this.getDataFromPlayerAndRender()};
_.V.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.V.getDataFromPlayerAndRender=function(){var K=this,d=_.xP(this.hostElement);d&&d.getPlayerPromise().then(function(f){K.getCachedDataAndListen(f)})};
_.V.getCachedDataAndListen=function(K){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(K,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(K,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=K)};
_.V.resolveCachedActions=function(){var K=_.T2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(K=K&&K())&&!_.PR.isEmpty(K)&&this.sendUpdateEngagementPanelAction(K);(K=(K=_.T2("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&K())&&!_.PR.isEmpty(K)&&this.sendChangeEngagementPanelVisibilityAction(K);(K=(K=_.T2("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&K())&&!_.PR.isEmpty(K)&&this.sendScrollToEngagementPanelCommand(K)};
_.V.sendUpdateEngagementPanelAction=function(K){var d;_.ev(this.hostElement,"yt-update-engagement-panel-action",[(d=_.PR.get(K,"action"))!=null?d:K])};
_.V.sendChangeEngagementPanelVisibilityAction=function(K){_.ev(this.hostElement,"yt-change-engagement-panel-visibility-action",[K])};
_.V.sendScrollToEngagementPanelCommand=function(K){_.ev(this.hostElement,"yt-scroll-to-engagement-panel-command",[K])};
_.V.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.M("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.h3(Error("fm"))};
t$.prototype.dataChanged=t$.prototype.dataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],t$.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],t$.prototype,"componentBehavior",void 0);_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],t$.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],t$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],t$.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],t$.prototype,"player",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],t$.prototype,"dataChanged",null);t$=_.x([_.Q({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],t$);
_.C(t$,"ytd-ads-engagement-panel-content-renderer",function(){if(XlZ!==void 0)return XlZ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
return XlZ=K},{mode:1});var OHZ;var oi=function(){var K=_.q.apply(this,arguments)||this;K.player=null;K.JSC$19976_playerEvents=new Map;K.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return K};
_.O(oi,_.q);_.V=oi.prototype;_.V.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]]"}}}}}};
_.V.created=function(){this.player=null;this.JSC$19976_playerEvents=new Map;this.JSC$19976_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19976_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19976_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19976_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.V.attached=function(){var K=this,d=_.xP();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));d&&d.getPlayerPromise().then(function(f){K.setPlayer(f);K.set("isPageLoad",!1)})};
_.V.setPlayer=function(K){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19976_playerEvents);this.set("player",K);K&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(K,this.JSC$19976_playerEvents),K.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.V.onLoopRangeChange=function(K){var d=_.eq().resolve(_.Zd(_.jC));if((!d||d.isOnWatch())&&this.hostElement.clientHeight){var f;!K&&((f=this.data)==null?0:f.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.V.onVideoProgress=function(K){var d,f,H=((d=this.player)==null?void 0:(f=d.getPresentingPlayerType)==null?void 0:f.call(d))===2;this.isAdPlaying!==H&&this.set("isAdPlaying",H);var D;if(!H&&(D=this.player)!=null&&D.getLoopRange()){f=this.player.getLoopRange();d=f.startTimeMs;f=f.endTimeMs;H=this.player.getProgressState(1).seekableStart;var S;d<H*1E3&&((S=this.data)==null?0:S.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
K=f<K*1E3;var n;((n=this.player)==null?0:n.getLoopRange())&&K&&this.player.seekTo(d/1E3)}};
_.V.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.V.onYtDeleteClipEngagementPanelCommand=function(K){_.P(K,REP).command&&this.ytComponentBehavior.resolveCommand(_.P(K,REP).command)};
_.x$.Object.defineProperties(oi.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.voteCount)||_.rB("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],oi.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],oi.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],oi.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],oi.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],oi.prototype,"isAdPlaying",void 0);_.x([_.A({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],oi.prototype,"isPageLoad",void 0);_.x([_.A({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],oi.prototype,"isDarkTheme",void 0);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],oi.prototype,"voteCount",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],oi.prototype,"channelEndpoint",null);_.x([_.W("channelEndpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],oi.prototype,"channelHref",null);oi=_.x([_.Q({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],oi);
_.C(oi,"ytd-clip-attribution-renderer",function(){if(OHZ!==void 0)return OHZ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return OHZ=K},{mode:1});var Nby;var $0=function(){var K=_.q.apply(this,arguments)||this;K.player=null;K.JSC$19981_playerEvents=new Map;return K};
_.O($0,_.q);_.V=$0.prototype;_.V.created=function(){this.player=null;this.JSC$19981_playerEvents=new Map;this.JSC$19981_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19981_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19981_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.V.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.V.attached=function(){var K=this,d=_.xP();d&&d.getPlayerPromise().then(function(f){K.setPlayer(f);K.set("isPageLoad",!1)})};
_.V.setPlayer=function(K){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19981_playerEvents);this.set("player",K);if(K){this.ytPlayerListenerBehavior.listenToPlayerEvents(K,this.JSC$19981_playerEvents);var d;(K==null?void 0:(d=K.getPresentingPlayerType)==null?void 0:d.call(K))===2&&this.playerAdStartHandler()}};
_.V.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.V.onVideoProgress=function(){var K,d,f=((K=this.player)==null?void 0:(d=K.getPresentingPlayerType)==null?void 0:d.call(K))===2;this.isAdPlaying!==f&&this.set("isAdPlaying",f)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],$0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],$0.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$0.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],$0.prototype,"isAdPlaying",void 0);
_.x([_.A({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],$0.prototype,"isPageLoad",void 0);$0=_.x([_.Q({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],$0);
_.C($0,"ytd-clip-section-footer-renderer",function(){if(Nby!==void 0)return Nby;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Nby=K},{mode:1});var Yui;var t9i;var Ec=function(){return _.q.apply(this,arguments)||this};
_.O(Ec,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ec.prototype,"data",void 0);Ec=_.x([_.Q({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Ec);
_.C(Ec,"ytd-clip-ad-state-renderer",function(){if(t9i!==void 0)return t9i;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return t9i=K},{mode:1});var oNl;var h$=function(){var K=_.q.apply(this,arguments)||this;K.value="";K.valid=!1;K.userChangedValue=!1;K.disabled=!1;K.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return K};
_.O(h$,_.q);_.V=h$.prototype;_.V.detached=function(){this.userChangedValue=!1};
_.V.handleKeyDown=function(K){if(_.w7)var d=13;else _.HlX&&_.Zf?d=13:d=13;K.keyCode===d&&K.preventDefault()};
_.V.handleInput=function(){var K=_.E(this.hostElement).querySelector("#title");if(K){var d=(K.value||"").replace(/\r|\n/g," ");this.set("value",d);K.value=d;this.valid=K.validate();this.userChangedValue=!0}};
_.V.handleBlur=function(){this.valid=_.E(this.hostElement).querySelector("#title").validate()};
_.V.onValueChanged=function(){_.Zp(this.hostElement,"title-changed",{title:this.value})};
_.V.onValidChanged=function(){_.Zp(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.V.setInput=function(K,d){var f=_.E(this.hostElement).querySelector("#title");f&&(f.value=K,this.handleInput(),d&&(f.invalid=!1,this.valid=!0))};
_.V.onClipCreationDisable=function(){this.set("disabled",!0)};
_.V.onClipCreationEnable=function(){this.set("disabled",!1)};
_.V.onClipCreationVisibilityChange=function(K){var d=this;K.visible?requestAnimationFrame(function(){var f;((f=_.E(d.hostElement).querySelector("#title"))==null?void 0:f.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
h$.prototype.onValidChanged=h$.prototype.onValidChanged;h$.prototype.onValueChanged=h$.prototype.onValueChanged;h$.prototype.handleBlur=h$.prototype.handleBlur;h$.prototype.handleInput=h$.prototype.handleInput;h$.prototype.handleKeyDown=h$.prototype.handleKeyDown;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],h$.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],h$.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],h$.prototype,"value",void 0);_.x([_.A(),_.B("design:type",Object)],h$.prototype,"valid",void 0);_.x([_.A(),_.B("design:type",Object)],h$.prototype,"userChangedValue",void 0);_.x([_.A(),_.B("design:type",Object)],h$.prototype,"disabled",void 0);_.x([_.VV("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],h$.prototype,"handleKeyDown",null);
_.x([_.VV("input"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],h$.prototype,"handleInput",null);_.x([_.VV("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],h$.prototype,"handleBlur",null);_.x([_.SP("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],h$.prototype,"onValueChanged",null);
_.x([_.SP("valid"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],h$.prototype,"onValidChanged",null);h$=_.x([_.Q({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],h$);
_.C(h$,"ytd-clip-creation-text-input-renderer",function(){if(oNl!==void 0)return oNl;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return oNl=K},{mode:1});var $wc;var ENU;var hhy;var bHP;var mww;var bd=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};K.pendingStoryboardImages_={};K.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];K.tickLabelInterval=30;K.mediumTickInterval=5;K.largeTickInterval=15;K.aboveRulerHeight=32;K.rulerHeight=50;K.smallTickHeight=4;K.mediumTickHeight=8;K.largeTickHeight=16;K.mediaListeners_=
{};return K};
_.O(bd,_.q);_.V=bd.prototype;_.V.attached=function(){var K=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(d){d=_.y(["screen and (min-resolution: "+d+")","screen and (max-resolution: "+d+")"]);for(var f=d.next();!f.done;f=d.next()){f=f.value;var H=window.matchMedia(f);H&&(K.mediaListeners_[f]=K.updatePixelRatio_.bind(K),H.addEventListener?H.addEventListener("change",K.mediaListeners_[f]):H.addListener?H.addListener(K.mediaListeners_[f]):delete K.mediaListeners_[f])}})};
_.V.detached=function(){this.setPlayer(null);for(var K=_.y(Object.keys(this.mediaListeners_)),d=K.next();!d.done;d=K.next()){var f=d.value;d=this.mediaListeners_[f];(f=window.matchMedia(f))&&(f.removeEventListener?f.removeEventListener("change",d):f.removeListener&&f.removeListener(d))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.V.onVisibilityChangedAction_=function(K){var d=this;K.visible&&!this.player_&&(K=_.xP())&&K.getPlayerPromise().then(function(f){d.setPlayer(f)})};
_.V.setPlayer=function(K){K&&this.set("player_",K)};
_.V.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.V.setUpCanvas_=function(){var K=this.rulerWidth,d=this.devicePixelRatio_,f=this.visible;this.set("canvasReady_",!1);if(f&&d!==0){f=this.aboveRulerHeight+this.rulerHeight;var H=_.E(this.hostElement).querySelector("#ticks");H.width=K*d;H.height=f*d;H.style.width=K+"px";H.style.height=f+"px";H.getContext("2d").scale(d,d);this.set("canvasReady_",!0)}};
_.V.drawRuler_=function(K,d,f,H,D,S,n,u,a,R,F,z){K&&f&&d&&(K=_.E(this.hostElement).querySelector("#ticks"),d=K.getContext("2d"),d.clearRect(0,0,K.width,K.height),d.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),d.lineWidth=2,d.beginPath(),d.moveTo(0,this.aboveRulerHeight),d.lineTo(K.width,this.aboveRulerHeight),d.moveTo(0,K.height),d.lineTo(K.width,K.height),d.stroke(),this.drawRulerTicks_(K,S,D,H),this.drawStoryboardImages_(K,f,S,D,H),d.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
d.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(n-S,H,!1),this.rulerHeight),f=this.timeToPixels_(u-S,H,!1),d.fillRect(f,this.aboveRulerHeight,K.width-f,this.rulerHeight),this.drawSpeedLines_(K,S,z))};
_.V.drawRulerTicks_=function(K,d,f,H){var D=K.getContext("2d");D.save();D.lineWidth=1;for(var S=Math.floor(Math.max(0,d-this.tickLabelInterval));S<d+f;S++){D.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var n=(S-d)*H;D.beginPath();D.moveTo(n,K.height);var u=this.smallTickHeight;S%this.largeTickInterval===0?u=this.largeTickHeight:S%this.mediumTickInterval===0&&(u=this.mediumTickHeight);D.lineTo(n,K.height-u);D.stroke();S%this.tickLabelInterval===0&&(D.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),D.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),D.fillText(oy(S),n+4,12),D.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),D.moveTo(n,0),D.lineTo(n,this.aboveRulerHeight),D.stroke())}D.restore()};
_.V.percentToHex_=function(K){K=Math.round(K*255).toString(16);K.length<2&&(K="0"+K);return K};
_.V.drawSpeedLines_=function(K,d,f){var H=K.getContext("2d");H.save();var D=Math.min(25,Math.abs(f)-15)/25,S=K.width*.3*D,n=K.width*-.3,u=K.width*1.3,a=this.aboveRulerHeight;K=K.height;var R=Math.round(4*D),F=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");F.length<7&&(F="#"+F.substring(1,4).repeat(2));var z=this.percentToHex_(.5+D/2);z=F+z;F+="00";if(D>0)for(D=0;D<R;D++){var v=n+Math.random()*(u-n),g=a+Math.random()*(K-a),N=S+d%S,h=H.createLinearGradient(v,g,v+N,g);
f<0?(h.addColorStop(0,z),h.addColorStop(.4,z),h.addColorStop(.9,F)):(h.addColorStop(.1,F),h.addColorStop(.6,z),h.addColorStop(1,z));H.strokeStyle=h;H.lineWidth=1;H.beginPath();H.moveTo(v,g);H.lineTo(v+N,g);H.stroke()}H.restore()};
_.V.getStoryboardForTime_=function(K,d,f){f===void 0&&(f=d.getNumberOfStoryboardLevels()-1);K=d.getStoryboardFrameIndex(K,f);return d.getStoryboardFrame(K,f)};
_.V.drawStoryboardImages_=function(K,d,f,H,D){if(!this.disabled){K=K.getContext("2d");var S=this.getStoryboardForTime_(0,d);if(S){var n=S.width/S.columns;S=S.height/S.rows;var u=n/S,a=this.rulerHeight*u;a=this.tickLabelInterval*(u<this.tickLabelInterval*D/this.rulerHeight?1/Math.floor(this.tickLabelInterval*D/a):Math.round(a/(this.tickLabelInterval*D)));var R=a*D,F=this.rulerHeight,z=R/this.rulerHeight,v=Math.floor(Math.max(0,f-a));for(v-=v%a;v<f+H;v+=a){var g=this.getStoryboardForTime_(v,d),N=this.getPreloadedStoryboard_(g.url);
if(N){var h=(v-f)*D,m=this.aboveRulerHeight,T=g.column*n,r=g.row*S;if(u<z){var J=F/(R/u);g=n;J*=S;r+=(S-J)/2}else g=R/(F*u)*n,J=S,T+=(n-g)/2;K.drawImage(N,T,r,g,J,h,m,R,F)}else this.fetchStoryboardImage_(g)}}}};
_.V.getPreloadedStoryboard_=function(K){return this.storyboardImages_.find(function(d){if(d.src==K)return!0;var f=d.src.indexOf(K);return f!=-1&&f==d.src.length-K.length})};
_.V.fetchStoryboardImage_=function(K){var d=this,f=this.getPreloadedStoryboard_(K.url),H=this.pendingStoryboardImages_[K.url];f||H!==void 0||(f=new Promise(function(D){var S=new Image(K.width,K.height);S.src=K.url;S.onload=function(){D(S)};
S.onerror=function(){D(null)}}),this.pendingStoryboardImages_[K.url]=f,f.then(function(D){D&&d.push("storyboardImages_",D);
return D}).finally(function(){delete d.pendingStoryboardImages_[K.url]}))};
_.V.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.V.timeToPixels_=function(K,d,f){K*=d;return f===void 0||f?K+"px":K};
_.V.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
bd.prototype.drawRuler_=bd.prototype.drawRuler_;bd.prototype.setUpCanvas_=bd.prototype.setUpCanvas_;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],bd.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],bd.prototype,"ytRendererBehavior",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],bd.prototype,"start",void 0);_.x([_.A({value:30}),_.B("design:type",Number)],bd.prototype,"end",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],bd.prototype,"visible",void 0);_.x([_.A(),_.B("design:type",Object)],bd.prototype,"player_",void 0);_.x([_.A(),_.B("design:type",Number)],bd.prototype,"tickSpacing",void 0);_.x([_.A(),_.B("design:type",Number)],bd.prototype,"windowSizeSec",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],bd.prototype,"rulerWidth",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],bd.prototype,"rulerShift",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],bd.prototype,"canvasReady_",void 0);_.x([_.A({value:function(){return[]}}),
_.B("design:type",Array)],bd.prototype,"storyboardImages_",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],bd.prototype,"disabled",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],bd.prototype,"forceRender_",void 0);_.x([_.A({value:1}),_.B("design:type",Number)],bd.prototype,"devicePixelRatio_",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],bd.prototype,"windowSpeed",void 0);
_.x([_.SP("visible","devicePixelRatio_","rulerWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bd.prototype,"setUpCanvas_",null);
_.x([_.SP("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.B("design:returntype")],bd.prototype,"drawRuler_",null);bd=_.x([_.N7({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],bd);
_.C(bd,"yt-clip-creation-scrubber-canvas",function(){if(mww===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);mww=K}K=mww;return K},
{mode:2});var l1w;var WpU;var my=function(){var K=_.q.apply(this,arguments)||this;K.start=0;K.end=30;K.visible=!1;K.draggingLeft_=!1;K.draggingRight_=!1;K.draggingRuler_=!1;K.draggingWindow_=!1;K.seekableStart=0;K.seekableEnd=0;K.rulerWidth_=0;K.rulerShift_=0;K.windowSlideSpeed=0;K.disabled=!1;K.initialized=!1;K.durationAccessibilityLabel="";K.activeLoopRange_=!1;K.rulerDragMouseStart_=0;K.rulerDragRulerStart_=0;K.rulerDragStartTime_=0;K.rulerDragEndTime_=0;K.dragMouseLastX_=0;K.scrollInterval_=null;K.scrubberVe_=null;K.boundHandlers_=
{};K.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return K};
_.O(my,_.q);_.V=my.prototype;
_.V.created=function(){var K=this;this.JSC$19994_playerEvents=new Map;this.JSC$19994_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19994_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19994_playerEvents.set("onStateChange",this.onStateChange_);var d={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(d).forEach(function(f){K.boundHandlers_[f]=d[f].bind(K)})};
_.V.attached=function(){this.activeLoopRange_=!1;_.E(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.E(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.vp(156731)};
_.V.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.E(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.E(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.V.onVisibilityChangedAction_=function(K){var d=this;K.visible&&!this.player_&&(K=_.xP())&&K.getPlayerPromise().then(function(f){d.setPlayer(f)})};
_.V.setPlayer=function(K){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19994_playerEvents);K&&(this.set("player_",K),this.ytPlayerListenerBehavior.listenToPlayerEvents(K,this.JSC$19994_playerEvents))};
_.V.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.V.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.V.beginHandleDrag_=function(K){this.disabled||(K.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=K.clientX,K.target===_.E(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():K.target===_.E(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.V.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.V.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.V.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.V.beginRulerDrag_=function(K){this.disabled||(K.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=K.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.V.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.V.beginWindowScroll_=function(){var K=this;this.scrollInterval_=setInterval(function(){var d=K.windowSlideSpeed;if(d=_.hzc(K.start,K.boundedRulerStartLimit_())?d-.1:_.hzc(K.end,K.boundedRulerEndLimit_())?d+.1:0){var f=K.capRulerOffset_(K.rulerShift_+d);f==K.rulerShift_?d=0:(K.set("rulerShift_",f),_.Zp(K.hostElement,"set-fixed-length-range",{start:K.start+d,duration:K.end-K.start}))}K.set("windowSlideSpeed",d)},33)};
_.V.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.V.endDrag_=function(){this.logClick();var K=void 0;this.draggingRight_?K=this.end-1:this.draggingLeft_&&(K=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,K);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))};
_.V.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.V.updateRulerSize_=function(){this.set("rulerWidth_",_.E(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.V.handleMouseDrag_=function(K){K.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(K):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(K):this.draggingWindow_&&this.handleWindowDrag_(K))};
_.V.handleRulerDrag_=function(K){K=this.pixelsToTime_(K.clientX-this.rulerDragMouseStart_);K=this.capRulerOffset_(this.rulerDragRulerStart_-K);this.set("rulerShift_",K);var d=this.rulerDragStartTime_-(this.rulerDragRulerStart_-K);_.Zp(this.hostElement,"set-fixed-length-range",{start:d,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-K)-d})};
_.V.handleWindowDrag_=function(K){var d=K.clientX-this.dragMouseLastX_;this.dragMouseLastX_=K.clientX;K=this.pixelsToTime_(d);_.Zp(this.hostElement,"set-fixed-length-range",{start:this.start+K,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.V.capRulerOffset_=function(K){var d=this.seekableStart-this.pixelsToTime_(16),f=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(d,K),f)};
_.V.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.V.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.V.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.V.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.V.handleWindowHandleDrag_=function(K){var d=K.clientX-this.dragMouseLastX_;this.dragMouseLastX_=K.clientX;K=this.pixelsToTime_(d);if(this.draggingLeft_){var f=this.start+K;var H=this.end}else this.draggingRight_&&(f=this.start,H=this.end+K);_.Zp(this.hostElement,"set-range",{start:f,end:H,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.V.onVideoProgress_=function(K){this.disabled||(K=this.timeToPixels_(K-this.rulerShift_,this.tickSpacing_),_.E(this.hostElement).querySelector("#playhead").style.transform="translateX("+K+")")};
_.V.onClipCreationDisable_=function(){this.endDrag_()};
_.V.timeToPixels_=function(K,d,f){K*=d;return f===void 0||f?K+"px":K};
_.V.pixelsToTime_=function(K){return K/this.tickSpacing_};
_.V.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.V.centerRuler_=function(K,d,f){this.set("rulerShift_",this.capRulerOffset_(K+(d-K)/2-f/2))};
_.V.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.V.updateLoopRange_=function(K,d,f,H,D,S,n){K&&(d&&H&&!f?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(K.pauseVideo(),K.seekTo(D,!1,void 0,void 0,50)):this.draggingRight_?(K.pauseVideo(),K.seekTo(S-.1,!1,void 0,void 0,50)):(n!==void 0?K.seekTo(n,!0,void 0,void 0,50):(d=K.getCurrentTime(),d<D||d>S?K.seekTo(D,!0,void 0,void 0,50):K.seekTo(d,!0,void 0,void 0,50)),K.playVideo()),K.setLoopRange({startTimeMs:D*1E3,endTimeMs:S*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(K.getCurrentTime())):
this.activeLoopRange_&&(K.setLoopRange(null),this.activeLoopRange_=!1))};
_.V.updateHandles_=function(){_.E(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.E(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.V.updateRuler_=function(){var K=this.end,d=this.start,f=this.draggableStartLimit_(),H=this.draggableEndLimit_();(d<f-.001||K>H+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.V.computeDurationLabel_=function(K,d){return K?K.replace("$clip_length",parseFloat(d).toFixed(1)):""};
_.V.computeDuration_=function(K,d){return this.isValidTime_(K)&&this.isValidTime_(d)&&K<d?d-K:0};
_.V.isValidTime_=function(K){return isNaN(parseFloat(K))||K<0?!1:this.player_?K>=this.seekableStart&&K<=this.seekableEnd:!0};
_.V.computeWindowSizeSec_=function(K,d,f){return Math.min((K||12E4)/1E3,f-d)};
_.V.computeTickSpacing_=function(K,d){return d?d/K:1};
_.V.onDragStateChanged_=function(){_.Zp(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.V.centerRangeOnTime_=function(K){var d=this.duration;K=FOE(K-d/2,d,this.seekableStart,this.seekableEnd);_.Zp(this.hostElement,"set-fixed-length-range",{start:K.start,duration:K.end-K.start})};
_.V.nearlyLessThan_=function(K,d,f){return K+(f===void 0?1E-6:f)<d};
_.V.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var K=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(K,this.start)||this.nearlyLessThan_(this.end,K))&&this.centerRangeOnTime_(K)}};
_.V.onStateChange_=function(K){this.visible&&!this.disabled&&K==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.V.computeDragState_=function(K,d,f,H){return K?"left":d?"right":f?"ruler":H?"window":"none"};
_.V.logClick=function(){var K=_.te(),d=_.YZ();K&&d&&this.scrubberVe_&&(_.M("combine_ve_grafts")?_.p2(_.cv(),this.scrubberVe_,d):_.lB(K,d,this.scrubberVe_),_.rN(K,this.scrubberVe_))};
my.prototype.onDragStateChanged_=my.prototype.onDragStateChanged_;my.prototype.updateRuler_=my.prototype.updateRuler_;my.prototype.updateHandles_=my.prototype.updateHandles_;my.prototype.onUpdateLoopRange=my.prototype.onUpdateLoopRange;my.prototype.onInitializedChanged_=my.prototype.onInitializedChanged_;my.prototype.onVisibleChanged_=my.prototype.onVisibleChanged_;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],my.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",Object)],my.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"start",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"end",void 0);_.x([_.A({computed:"computeDuration_(start, end)"}),_.B("design:type",Number)],my.prototype,"duration",void 0);
_.x([_.A(),_.B("design:type",String)],my.prototype,"lengthTemplate",void 0);_.x([_.A({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.B("design:type",String)],my.prototype,"durationLabel",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"visible",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"player_",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"draggingLeft_",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"draggingRight_",void 0);
_.x([_.A(),_.B("design:type",Object)],my.prototype,"draggingRuler_",void 0);_.x([_.A({value:!1}),_.B("design:type",Object)],my.prototype,"draggingWindow_",void 0);_.x([_.A({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.B("design:type",Number)],my.prototype,"tickSpacing_",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"seekableStart",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"seekableEnd",void 0);
_.x([_.A(),_.B("design:type",Number)],my.prototype,"windowSizeMs",void 0);_.x([_.A({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.B("design:type",Number)],my.prototype,"windowSizeSec_",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"rulerWidth_",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"rulerShift_",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"windowSlideSpeed",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],my.prototype,"disabled",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"initialized",void 0);_.x([_.A(),_.B("design:type",Object)],my.prototype,"durationAccessibilityLabel",void 0);_.x([_.A({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.B("design:type",String)],my.prototype,"dragState",void 0);
_.x([_.SP("visible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],my.prototype,"onVisibleChanged_",null);_.x([_.SP("initialized"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],my.prototype,"onInitializedChanged_",null);_.x([_.SP("player_","visible","disabled","initialized","start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],my.prototype,"onUpdateLoopRange",null);
_.x([_.SP("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],my.prototype,"updateHandles_",null);_.x([_.SP("start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],my.prototype,"updateRuler_",null);
_.x([_.SP("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],my.prototype,"onDragStateChanged_",null);my=_.x([_.N7({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],my);
_.C(my,"yt-clip-creation-scrubber-view",function(){if(WpU===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;l1w===void 0&&(l1w=document.createElement("template"));var H=l1w;f.call(d,H.content.cloneNode(!0),K.content.firstChild);WpU=K}K=WpU;return K},{mode:2});var ld=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};K.startHighlightTimeout=0;K.endHighlightTimeout=0;return K};
_.O(ld,_.q);_.V=ld.prototype;_.V.attached=function(){var K=this;this.startInput.addEventListener("input",function(d){return K.handleStartInput_(d)});
this.endInput.addEventListener("input",function(d){return K.handleEndInput_(d)});
this.startInput.addEventListener("focusout",function(d){return K.handleStartBlur_(d)});
this.endInput.addEventListener("focusout",function(d){return K.handleEndBlur_(d)})};
_.V.setPlayer=function(K){this.set("player_",K)};
_.V.onSetFixedLengthRange_=function(K){var d=K.detail;K=d.start;var f=d.duration,H=d.startLimit;d=d.endLimit;H||(H=this.seekableStart_);d||(d=this.seekableEnd_);K=FOE(K,f,H,d);this.start=K.start;this.end=K.end};
_.V.onSetRange_=function(K){var d=K.detail;K=d.start;var f=d.end,H=d.startLimit;d=d.endLimit;H||(H=this.seekableStart_);d||(d=this.seekableEnd_);if(K=z1E(K,f,H,d,this.minLengthSec,this.maxLengthSec))this.start=K.start,this.end=K.end};
_.V.updateInputs_=function(){var K=this.end,d=this.start;this.startInput.focused||(this.startInput.value=oy(d,!0));this.endInput.focused||(this.endInput.value=oy(K,!0))};
_.V.handleStartInput_=function(K){K=R1K(K.target.value);if(K===null)this.set("startValid",!1);else{var d=this.end,f=z1E(K,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);f?(this.set("endWillUpdate",f.end!==d),this.set("startValid",f.start===K)):this.set("startValid",!1)}};
_.V.handleEndInput_=function(K){K=R1K(K.target.value);if(K===null)this.set("endValid",!1);else{var d=this.start,f=XMP(this.start,K,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);f?(this.set("startWillUpdate",f.start!==d),this.set("endValid",f.end===K)):this.set("endValid",!1)}};
_.V.handleStartBlur_=function(K){K=R1K(K.target.value);K===null?this.startInput.value=oy(this.start,!0):this.forceUpdateInputs_(z1E(K,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.V.handleEndBlur_=function(K){K=R1K(K.target.value);K===null?this.endInput.value=oy(this.end,!0):this.forceUpdateInputs_(XMP(this.start,K,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.V.forceUpdateInputs_=function(K){K&&(this.start=K.start,this.end=K.end);this.startInput.value=oy(this.start,!0);this.endInput.value=oy(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.V.initializeClipRange_=function(){var K=this.seekableEnd_,d=this.seekableStart_,f=this.visible_,H=this.player_;if(!H||!f||d===null||!K)this.set("initialized",!1);else if(!this.initialized){var D=H.getCurrentTime(),S=this.getDefaultLengthSec_();f=H.getVideoData();var n=H.getPlayerState()==1,u=f.isLive;S=Math.min(S,K-d);D=Math.max(0,D);K=u?XMP(D-S,D,d,K,this.minLengthSec,this.maxLengthSec):n?FOE(D-S/2,S,d,K):FOE(D,S,d,K);this.start=K.start;this.end=K.end;this.set("initialized",!0);f.isLive&&H.seekTo(K.start);
this.startInput.value=oy(this.start,!0);this.endInput.value=oy(this.end,!0)}};
_.V.onStartChanged_=function(){var K=this;_.Zp(this.hostElement,"start-changed",{start:this.start});var d;isNaN((d=this.oldStart)!=null?d:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){K.set("highlightStart",!1);K.startHighlightTimeout=0;K.oldStart=K.start},3E3))};
_.V.onEndChanged_=function(){var K=this;_.Zp(this.hostElement,"end-changed",{end:this.end});var d;isNaN((d=this.oldEnd)!=null?d:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){K.set("highlightEnd",!1);K.endHighlightTimeout=0;K.oldEnd=K.end},3E3))};
_.V.onVisibilityChangedAction_=function(K){var d=this;this.set("visible_",K.visible);this.visible_&&!this.player_&&(K=_.xP())&&K.getPlayerPromise().then(function(f){d.setPlayer(f)})};
_.V.computeMinLengthSec_=function(K){return K/1E3||5};
_.V.computeMaxLengthSec_=function(K){return K/1E3||60};
_.V.computeDefaultLengthSec_=function(K){return K/1E3};
_.V.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.V.computeSeekableStart_=function(K,d){return K&&d?K.getProgressState(1).seekableStart:0};
_.V.computeSeekableEnd_=function(K,d){return K&&d?K.getProgressState(1).seekableEnd:0};
_.V.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.V.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.V.onDragState_=function(K){this.set("highlightStart",K.detail.startChanging);this.set("highlightEnd",K.detail.endChanging)};
ld.prototype.onDragState_=ld.prototype.onDragState_;ld.prototype.onEndChanged_=ld.prototype.onEndChanged_;ld.prototype.onStartChanged_=ld.prototype.onStartChanged_;ld.prototype.initializeClipRange_=ld.prototype.initializeClipRange_;ld.prototype.updateInputs_=ld.prototype.updateInputs_;ld.prototype.onSetRange_=ld.prototype.onSetRange_;ld.prototype.onSetFixedLengthRange_=ld.prototype.onSetFixedLengthRange_;
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ld.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ld.prototype,"data",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],ld.prototype,"start",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],ld.prototype,"startValid",void 0);
_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],ld.prototype,"startWillUpdate",void 0);_.x([_.A({value:30}),_.B("design:type",Number)],ld.prototype,"end",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],ld.prototype,"endValid",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],ld.prototype,"endWillUpdate",void 0);_.x([_.A({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.B("design:type",Number)],ld.prototype,"minLengthSec",void 0);
_.x([_.A({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.B("design:type",Number)],ld.prototype,"maxLengthSec",void 0);_.x([_.A({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.B("design:type",Number)],ld.prototype,"defaultLengthSec",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],ld.prototype,"visible_",void 0);_.x([_.A(),_.B("design:type",Object)],ld.prototype,"player_",void 0);
_.x([_.A({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.B("design:type",Number)],ld.prototype,"seekableStart_",void 0);_.x([_.A({computed:"computeSeekableEnd_(player_, visible_)"}),_.B("design:type",Number)],ld.prototype,"seekableEnd_",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],ld.prototype,"initialized",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],ld.prototype,"disabled",void 0);
_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],ld.prototype,"highlightStart",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],ld.prototype,"highlightEnd",void 0);_.x([_.n8("#start"),_.B("design:type",HTMLInputElement)],ld.prototype,"startInput",void 0);_.x([_.n8("#end"),_.B("design:type",HTMLInputElement)],ld.prototype,"endInput",void 0);
_.x([_.VV("set-fixed-length-range"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ld.prototype,"onSetFixedLengthRange_",null);_.x([_.VV("set-range"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ld.prototype,"onSetRange_",null);_.x([_.SP("start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ld.prototype,"updateInputs_",null);
_.x([_.SP("player_","visible_","seekableStart_","seekableEnd_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ld.prototype,"initializeClipRange_",null);_.x([_.SP("start"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ld.prototype,"onStartChanged_",null);_.x([_.SP("end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ld.prototype,"onEndChanged_",null);
_.x([_.VV("clips-drag-state"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ld.prototype,"onDragState_",null);ld=_.x([_.N7({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],ld);
_.C(ld,"yt-clip-creation-scrubber-renderer",function(){if(bHP===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;hhy===void 0&&(hhy=document.createElement("template"));var H=hhy;f.call(d,H.content.cloneNode(!0),K.content.firstChild);bHP=K}K=bHP;return K},{mode:2});var WN=function(){var K=_.q.apply(this,arguments)||this;K.player_=null;K.JSC$20008_playerEvents=new Map;K.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return K};
_.O(WN,_.q);_.V=WN.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$20008_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20008_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20008_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20008_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.V.detached=function(){this.setPlayer(null)};
_.V.onVisibilityChangedAction_=function(K){var d=this,f;if((f=this.data)==null?0:f.externalVideoId){var H;this.videoId=(H=this.data)==null?void 0:H.externalVideoId}this.getPlayer().then(function(D){if(K.visible)d.returnTime=D.getCurrentTime(),d.isAtLiveHead=D.getProgressState().isAtLiveHead;else{var S=d.returnTime;d.isAtLiveHead&&(S=Number.POSITIVE_INFINITY);D.seekTo(S,void 0,void 0,void 0,51)}})};
_.V.getPlayer=function(){var K=this;if(!this.player_){var d=_.xP();if(d)return d.getPlayerPromise().then(function(f){K.setPlayer(f);return f})}return Promise.resolve(this.player_)};
_.V.setPlayer=function(K){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20008_playerEvents);if(K){this.player_=K;var d;((d=this.data)==null?0:d.externalVideoId)||this.set("videoId",K.getVideoData().video_id||"");var f;(K==null?void 0:(f=K.getPresentingPlayerType)==null?void 0:f.call(K))===2&&(this.set("isAdPlaying",!0),_.ev(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(K,this.JSC$20008_playerEvents)}};
_.V.ready=function(){_.E(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.V.onTitleChanged_=function(K){this.set("titleValue",K.detail.title)};
_.V.onStartChanged_=function(K){this.set("start",K.detail.start)};
_.V.onEndChanged_=function(K){this.set("end",K.detail.end)};
_.V.onTitleValidChanged_=function(K){this.set("titleValid",K.detail.valid)};
_.V.onStartValidChanged_=function(K){this.set("startValid",K.detail.valid)};
_.V.onEndValidChanged_=function(K){this.set("endValid",K.detail.valid)};
_.V.onVideoDataChange_=function(){var K;if((K=this.data)==null||!K.externalVideoId){var d;this.set("videoId",((d=this.player_)==null?void 0:d.getVideoData().video_id)||"")}};
_.V.computeFormValid_=function(K,d,f,H){return!!(K&&d&&f&&H)};
_.V.computeCancelButton_=function(K,d,f){return K&&_.P(K,_.tQ)?{buttonRenderer:Object.assign({},_.P(K,_.tQ),{isDisabled:d||f})}:null};
_.V.computeSubmitButton_=function(K,d,f){return K&&_.P(K,_.tQ)?{buttonRenderer:Object.assign({},_.P(K,_.tQ),{command:void 0,isDisabled:!this.formValid||d||f})}:null};
_.V.computeSubmitCommand_=function(K){return K||null};
_.V.onSubmit_=function(K){var d=this;K.stopPropagation();K.preventDefault();this.submitCommand_&&(K={},K.comment_text=this.titleValue,K.clip_external_video_id=this.videoId,K.clip_offset_ms=parseInt(this.start*1E3,10),K.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.dN(this.hostElement,[this.submitCommand_,K]).then(function(){d.set("isLoading_",!1)},function(){d.set("isLoading_",!1)}))};
_.V.playerAdStartHandler_=function(){_.ev(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler_=function(){_.ev(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.V.onVideoProgress_=function(){var K=this;this.getPlayer().then(function(d){var f,H=(d==null?void 0:(f=d.getPresentingPlayerType)==null?void 0:f.call(d))===2;K.isAdPlaying!==H&&(H?K.playerAdStartHandler_():K.playerAdEndHandler_())})};
WN.prototype.onEndValidChanged_=WN.prototype.onEndValidChanged_;WN.prototype.onStartValidChanged_=WN.prototype.onStartValidChanged_;WN.prototype.onTitleValidChanged_=WN.prototype.onTitleValidChanged_;WN.prototype.onEndChanged_=WN.prototype.onEndChanged_;WN.prototype.onStartChanged_=WN.prototype.onStartChanged_;WN.prototype.onTitleChanged_=WN.prototype.onTitleChanged_;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],WN.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",Object)],WN.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],WN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],WN.prototype,"data",void 0);_.x([_.A({value:""}),_.B("design:type",String)],WN.prototype,"titleValue",void 0);
_.x([_.A({value:!1}),_.B("design:type",Boolean)],WN.prototype,"titleValid",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],WN.prototype,"start",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],WN.prototype,"startValid",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],WN.prototype,"end",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],WN.prototype,"endValid",void 0);_.x([_.A({value:""}),_.B("design:type",String)],WN.prototype,"videoId",void 0);
_.x([_.A({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.B("design:type",Boolean)],WN.prototype,"formValid",void 0);_.x([_.A({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.B("design:type",Object)],WN.prototype,"submitButton_",void 0);_.x([_.A({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.B("design:type",Object)],WN.prototype,"submitCommand_",void 0);
_.x([_.A({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.B("design:type",Object)],WN.prototype,"cancelButton_",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],WN.prototype,"isLoading_",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],WN.prototype,"isAdPlaying",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],WN.prototype,"returnTime",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],WN.prototype,"isAtLiveHead",void 0);
_.x([_.VV("title-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],WN.prototype,"onTitleChanged_",null);_.x([_.VV("start-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],WN.prototype,"onStartChanged_",null);_.x([_.VV("end-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],WN.prototype,"onEndChanged_",null);
_.x([_.VV("title-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],WN.prototype,"onTitleValidChanged_",null);_.x([_.VV("start-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],WN.prototype,"onStartValidChanged_",null);_.x([_.VV("end-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],WN.prototype,"onEndValidChanged_",null);
WN=_.x([_.N7({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],WN);
_.C(WN,"yt-clip-creation-renderer",function(){if(ENU===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;$wc===void 0&&($wc=document.createElement("template"));var H=$wc;f.call(d,H.content.cloneNode(!0),K.content.firstChild);ENU=K}K=ENU;return K},{mode:2});var GK=function(){return _.q.apply(this,arguments)||this};
_.O(GK,_.q);GK.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"}}}};
GK.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(K){return K.hasOwnProperty("clipCreationRenderer")})&&_.ev(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
GK.prototype.onPanelContentVisibleChanged=GK.prototype.onPanelContentVisibleChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.lm.YtVisibilityBehavior),_.B("design:type",Object)],GK.prototype,"ytVisibilityBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],GK.prototype,"ytdReduxBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],GK.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],GK.prototype,"panelContentVisible",void 0);_.x([_.SP("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GK.prototype,"onPanelContentVisibleChanged",null);GK=_.x([_.Q({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],GK);
_.C(GK,"ytd-clip-section-renderer",function(){if(Yui!==void 0)return Yui;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Yui=K},{mode:1});var GXS;var A$=function(){return _.q.apply(this,arguments)||this};
_.O(A$,_.q);_.V=A$.prototype;
_.V.onKeyDown=function(K){if(this.snippetElements.length!==0&&(K=K.keyCode,K===38||K===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);K===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Oa(this.highlightedIndex,-1,this.snippetElements.length);K=this.snippetElements.length;var d=this.highlightedIndex%K;this.highlightedIndex=d*K<0?d+K:d;K=this.snippetElements[this.highlightedIndex];this.highlightSnippet(K);this.ensureVisible(K)}};
_.V.onKeyUp=function(K){var d=this;ZXi(K)&&(K.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.oc.cancelJob(this.inputTimerId),this.inputTimerId=_.oc.addLowPriorityJob(function(){d.typedValue&&(d.fetchSnippets(d.typedValue),d.logInputGesture(d.data))},1E3))};
_.V.onClick=function(K){(K=_.rN9(K.target,null,"snippet-item"))&&this.selectSnippet(K)};
_.V.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.V.ready=function(){var K=this;this.inputElement.addEventListener("focus",function(){K.snippetsWrapper.style.removeProperty("display")})};
_.V.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.V.getSourceTimelines=function(){if(!this.data)return[];var K=[];if(this.data.searchInVideoSources)for(var d=_.y(this.data.searchInVideoSources),f=d.next();!f.done;f=d.next())f=f.value,f==="SEARCH_IN_VIDEO_SOURCE_ASR"?K.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):f==="SEARCH_IN_VIDEO_SOURCE_OCR"&&K.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return K};
_.V.fetchSnippets=function(K){var d=_.ev(this.hostElement,"yt-get-current-video-id-action")[0],f=this.getSourceTimelines();K={getSearchInVideoCommand:{externalVideoId:d,query:K!=null?K:"",sourceTimelines:f},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}})};
_.V.filterSnippets=function(K,d){var f=this;if(d){this.filteredSnippets=(0,_.PR.unsafeClone)(K);var H=RegExp(_.rIn(d),"i");this.filteredSnippets=this.filteredSnippets.filter(function(n){return H.test(f.ytRendererBehavior.getSimpleString(n.snippet))});
K=_.y(this.filteredSnippets);for(var D=K.next();!D.done;D=K.next()){D=D.value;var S=this.ytRendererBehavior.getSimpleString(D.snippet);D.snippet={runs:[{text:S.substring(0,S.toLowerCase().indexOf(d))},{text:S.substring(S.toLowerCase().indexOf(d),S.toLowerCase().indexOf(d)+d.length),bold:!0},{text:S.substring(S.toLowerCase().indexOf(d)+d.length,S.length)}]}}}else this.filteredSnippets=K};
_.V.onUpdateSearchInVideoResults=function(K){if(!(this.snippets.length>0)){var d,f,H;if((H=(d=_.P(K,i6i))==null?void 0:(f=d.results)==null?void 0:f.length)!=null&&H){var D;this.filteredSnippets=this.snippets=((D=_.P(K,i6i))==null?void 0:D.results).map(function(S){var n,u,a;return{startMs:S==null?void 0:(n=S.searchInVideoResultRenderer)==null?void 0:n.startMs,startTimeText:S==null?void 0:(u=S.searchInVideoResultRenderer)==null?void 0:u.startTimeText,snippet:S==null?void 0:(a=S.searchInVideoResultRenderer)==
null?void 0:a.snippet}})}}};
_.V.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};
_.V.highlightSnippet=function(K){K.classList.add("highlighted")};
_.V.removeSnippetHighlight=function(K){K.classList.remove("highlighted")};
_.V.selectSnippet=function(K){this.typedValue=String(K.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(K);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.V.ensureVisible=function(K){var d=this.snippetsWrapper.scrollTop,f=d+this.snippetsWrapper.clientHeight,H=K.offsetTop-this.snippetsWrapper.offsetTop;K=H+K.clientHeight;H<d?this.snippetsWrapper.scrollTop-=d-H:K>f&&(this.snippetsWrapper.scrollTop+=K-f)};
_.V.seekPlayer=function(K){var d,f;return _.c(function(H){if(H.nextAddress==1){if(!K)return H.jumpTo(0);d=Number(K.dataset.startOffset);return _.I(H,_.LK().getPlayerPromise(),3)}f=H.yieldResult;f.seekTo(d/1E3,!0);f.wakeUpControls();_.iQ(H)})};
_.V.logInputGesture=function(K){var d=_.te();d&&(K==null?0:K.trackingParams)&&_.qY(d,_.RG(K.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.V.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("typed-value-changed",this.typedValue))};
_.V.updateTypedValueFromBinding=function(K){this.typedValue=K.currentTarget.value};
A$.prototype.typedValueChangedForBinding=A$.prototype.typedValueChangedForBinding;A$.prototype.dataChanged=A$.prototype.dataChanged;A$.prototype.panelContentVisibleChanged=A$.prototype.panelContentVisibleChanged;A$.prototype.onClick=A$.prototype.onClick;A$.prototype.onKeyUp=A$.prototype.onKeyUp;A$.prototype.onKeyDown=A$.prototype.onKeyDown;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],A$.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],A$.prototype,"data",void 0);_.x([_.A({value:[]}),_.B("design:type",Array)],A$.prototype,"snippets",void 0);_.x([_.A({value:[]}),_.B("design:type",Array)],A$.prototype,"filteredSnippets",void 0);_.x([_.A({value:[]}),_.B("design:type",Array)],A$.prototype,"snippetElements",void 0);
_.x([_.n8("#siv-input"),_.B("design:type",HTMLElement)],A$.prototype,"inputElement",void 0);_.x([_.n8("#siv-snippets-wrapper"),_.B("design:type",HTMLElement)],A$.prototype,"snippetsWrapper",void 0);_.x([_.A(),_.B("design:type",String)],A$.prototype,"typedValue",void 0);_.x([_.A({value:-1}),_.B("design:type",Number)],A$.prototype,"highlightedIndex",void 0);_.x([_.VV("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[_.Vh]),_.B("design:returntype")],A$.prototype,"onKeyDown",null);
_.x([_.VV("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[_.Vh]),_.B("design:returntype")],A$.prototype,"onKeyUp",null);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],A$.prototype,"onClick",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],A$.prototype,"panelContentVisible",void 0);
_.x([_.SP("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],A$.prototype,"panelContentVisibleChanged",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],A$.prototype,"dataChanged",null);_.x([_.SP("typedValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],A$.prototype,"typedValueChangedForBinding",null);
A$=_.x([_.Q({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],A$);
_.C(A$,"ytd-search-in-video-renderer",function(){if(GXS!==void 0)return GXS;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return GXS=K},{mode:1});var A8S;var TK=function(){return _.q.apply(this,arguments)||this};
_.O(TK,_.q);TK.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
TK.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]]"}}}}}};
TK.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var K,d,f,H,D=(d=_.P((K=this.data)==null?void 0:K.onClickCommand,_.aa))==null?void 0:(f=d.item)==null?void 0:(H=f.notificationTextRenderer)==null?void 0:H.successResponseText;D&&_.BoB(this.hostElement,D)}};
_.x$.Object.defineProperties(TK.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H;return this.isProductPlaceholder&&((K=this.data)==null?void 0:(d=K.hiddenProductOptions)==null?void 0:d.showDropCountdown)&&!!((f=this.data)==null?0:(H=f.hiddenProductOptions)==null?0:H.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var K;return!this.isProductPlaceholder&&!((K=this.data)==null?0:K.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var K,d;return!((K=this.data)==null?0:K.priceReplacementText)&&!((d=this.data)==null||!d.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],TK.prototype,"componentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],TK.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],TK.prototype,"useCenterLayoutContainer",null);_.x([_.A({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],TK.prototype,"buttonOverride",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],TK.prototype,"isProductPlaceholder",null);
_.x([_.W("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],TK.prototype,"showDropCountdown",null);_.x([_.W("isProductPlaceholder","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],TK.prototype,"showBrandName",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],TK.prototype,"showPriceReplacementText",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],TK.prototype,"showPrice",null);
_.x([_.W("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],TK.prototype,"showMetadata",null);TK=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],TK);
_.C(TK,"ytd-product-list-item-renderer",function(){if(A8S!==void 0)return A8S;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return A8S=K},{mode:1});var Tbl;var rZ=function(){return _.q.apply(this,arguments)||this};
_.O(rZ,_.q);rZ.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
rZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
rZ.prototype.panelContentVisibleChanged=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return K.playerApi?f.jumpTo(2):_.I(f,_.LK().getPlayerPromise(),3);f.nextAddress!=2&&(K.playerApi=f.yieldResult);(d=K.playerApi)==null||d.productsInVideoVisibilityUpdated(!!K.panelContentVisible);_.iQ(f)})};
rZ.prototype.panelContentVisibleChanged=rZ.prototype.panelContentVisibleChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],rZ.prototype,"panelContentVisible",void 0);_.x([_.A(),_.B("design:type",Object)],rZ.prototype,"data",void 0);
_.x([_.SP("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],rZ.prototype,"panelContentVisibleChanged",null);rZ=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],rZ);
_.C(rZ,"ytd-product-list-renderer",function(){if(Tbl!==void 0)return Tbl;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Tbl=K},{mode:1});var r8E;var qM=function(){var K=_.q.apply(this,arguments)||this;K.hideTimestamps=!!_.KI("hide-transcript-timestamps");K.currentCueIndex=-1;K.flatCues=[];K.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};K.TEST_ONLY={getFlatCues:function(){return K.flatCues}};
return K};
_.O(qM,_.q);_.V=qM.prototype;_.V.hideTimestampsChanged=function(){_.p5("hide-transcript-timestamps",this.hideTimestamps)};
_.V.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.V.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.V.dataChanged=function(){var K;if((K=this.data)!=null&&K.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;K=_.y(this.data.cueGroups);for(var d=K.next();!d.done;d=K.next()){d=_.y(_.P(d.value,cuU).cues);for(var f=d.next();!f.done;f=d.next())this.flatCues.push(Number(_.P(f.value,uzU).startOffsetMs))}}};
_.V.onYtPlayerTimeChanged=function(K){if(!(K<0)){for(var d=this.currentCueIndex,f=d;;){var H=f>=0?this.flatCues[f]/1E3:-1;if(K+.5<H)--f;else if(H=f+1<this.flatCues.length?this.flatCues[f+1]/1E3:Infinity,K+.5>H)f+=1;else break}f!==d&&(d>=0&&((K=this.getCueElement(d))&&K.classList.remove("active"),(d=this.getCueGroupElement(d))&&d.classList.remove("active")),(d=this.getCueElement(f))&&d.classList.add("active"),(d=this.getCueGroupElement(f))&&d.classList.add("active"),this.currentCueIndex=f,this.isHovered||
this.scrollElementToTop(f))}};
_.V.scrollElementToTop=function(K){K=this.getCueElement(K>=3?K-3:0);this.hostElement.scrollTop=Math.min(K.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.V.getCueElement=function(K){return _.E(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[K]+'"]')};
_.V.getCueGroupElement=function(K){return(K=this.getCueElement(K))&&K.parentElement?K.parentElement.parentElement:null};
_.V.onTap=function(K){var d=_.Qm(K);K.target.classList.contains("cue")&&this.seekCueElement(d)};
_.V.onKeyPress=function(K){K.keyCode==13&&(K=_.rN9(K.target,null,"cue"))&&this.seekCueElement(K)};
_.V.seekCueElement=function(K){K=Number(K.getAttribute("start-offset"));_.ev(this.hostElement,"yt-transcript-player-seek",[K/1E3])};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
qM.prototype.onMouseLeave=qM.prototype.onMouseLeave;qM.prototype.onMouseEnter=qM.prototype.onMouseEnter;qM.prototype.onKeyPress=qM.prototype.onKeyPress;qM.prototype.onTap=qM.prototype.onTap;qM.prototype.dataChanged=qM.prototype.dataChanged;qM.prototype.hideTimestampsChanged=qM.prototype.hideTimestampsChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],qM.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qM.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],qM.prototype,"hideTimestamps",void 0);_.x([_.A(),_.B("design:type",Boolean)],qM.prototype,"isHovered",void 0);_.x([_.SP("hideTimestamps"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qM.prototype,"hideTimestampsChanged",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qM.prototype,"dataChanged",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],qM.prototype,"onTap",null);_.x([_.VV("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],qM.prototype,"onKeyPress",null);
_.x([_.VV("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qM.prototype,"onMouseEnter",null);_.x([_.VV("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qM.prototype,"onMouseLeave",null);qM=_.x([_.Q({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],qM);
_.C(qM,"ytd-transcript-body-renderer",function(){if(r8E!==void 0)return r8E;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return r8E=K},{mode:1});var quc;var Qq=function(){var K=_.q.apply(this,arguments)||this;K.darkerPanels=_.M("web_watch_darker_panels");return K};
_.O(Qq,_.q);Qq.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Qq.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Qq.prototype,"darkerPanels",void 0);Qq=_.x([_.Q({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Qq);
_.C(Qq,"ytd-transcript-footer-renderer",function(){if(quc!==void 0)return quc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return quc=K},{mode:1});var Qx5;var jxt;var jB=function(){var K=_.q.apply(this,arguments)||this;K.systemIcons=_.M("kevlar_system_icons");K.showClearButton=!1;return K};
_.O(jB,_.q);_.V=jB.prototype;_.V.handleInput=function(K){var d=this;K.target.value.length?_.mx(this,"ytdTranscriptSearchBoxSearch",function(){d.emitSearchEvent(K)},500):(_.g4O(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=K.target.value.length>0};
_.V.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.V.handleClick=function(){var K,d=(K=this.data)==null?void 0:K.trackingParams;d&&_.f5(_.cv(),d)};
_.V.handleClear=function(){_.g4O(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var K,d,f=(d=_.P((K=this.data)==null?void 0:K.clearButton,_.tQ))==null?void 0:d.trackingParams;f&&_.f5(_.cv(),f);this.clear()};
_.V.emitSearchEvent=function(K){_.Zp(this.hostElement,"yt-transcript-search-box-search",{query:K.target.value});var d,f;(K=(f=_.P((d=this.data)==null?void 0:d.searchButton,_.tQ))==null?void 0:f.trackingParams)&&_.f5(_.cv(),K)};
_.V.emitClearEvent=function(){_.Zp(this.hostElement,"yt-transcript-search-box-clear")};
_.x$.Object.defineProperties(jB.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],jB.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],jB.prototype,"systemIcons",void 0);jB=_.x([_.Q({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],jB);
_.C(jB,"ytd-transcript-search-box-renderer",function(){if(jxt!==void 0)return jxt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return jxt=K},{mode:1});var Cjw;var xww;var Cp=function(){return _.q.apply(this,arguments)||this};
_.O(Cp,_.q);Cp.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var K,d;this.sectionHeaderAriaLabel=(K=this.data)==null?void 0:(d=K.accessibility)==null?void 0:d.accessibilityData.label}};
Cp.prototype.fireSelectedEvent=function(K){_.Zp(this.hostElement,"ytd-transcript-section-header",{startMs:K})};
Cp.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Cp.prototype.handleKeyPress=function(K){this.data&&K.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.x$.Object.defineProperties(Cp.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var K,d;return(d=(K=this.data)==null?void 0:K.enableTappableTranscriptHeader)!=null?d:!1}}});
Cp.prototype.dataChanged=Cp.prototype.dataChanged;_.x([_.A(),_.B("design:type",Object)],Cp.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],Cp.prototype,"sectionHeaderAriaLabel",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Cp.prototype,"enableTappableTranscriptHeader",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cp.prototype,"dataChanged",null);
Cp=_.x([_.Q({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Cp);
_.C(Cp,"ytd-transcript-section-header-renderer",function(){if(xww!==void 0)return xww;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return xww=K},{mode:1});var Lpc;var Bbi;var x0=function(){var K=_.q.apply(this,arguments)||this;K.isEditMode=!1;K.touchCaptionsEnabled=!1;K.deleteCaptionCorrectionPopupCommand=null;K.voteCaptionCorrectionPopupCommand=null;K.roundedContainer=!0;K.mouseOver=!1;K.textChanged=!1;K.messages={suggest_correction:_.iB("suggest_correction",void 0,"Edit caption"),suggested_caption:_.iB("suggested_caption",void 0,"Suggested caption"),submit_correction:_.iB("submit_correction",void 0,"Submit for review"),cancel_correction:_.iB("cancel_correction",
void 0,"Cancel"),replay_segment:_.iB("replay_segment",void 0,"Re-play segment"),delete_correction:_.iB("delete_correction",void 0,"Delete correction")};K.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return K};
_.O(x0,_.q);_.V=x0.prototype;_.V.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)};
_.V.handleDelete=function(K){if(this.deleteCaptionCorrectionPopupCommand){var d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);d&&this.ytdOpenPopupBehavior.openPopup(d);K.stopPropagation()}};
_.V.handleSubmit=function(K){if(this.data&&this.data.submitCaptionCorrectionCommand&&(K.stopPropagation(),this.textChanged)){var d;K=(d=_.P(this.data.submitCaptionCorrectionCommand,_.sb2))==null?void 0:d.params;d=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:K,correctionText:String(this.ironTextAreaElement.value),originalText:_.qQ(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(d);this.isEditMode=!1}};
_.V.handleUpdateSegmentText=function(K){(K=_.P(K,$2P))&&K.targetId&&this.data&&K.targetId===this.data.targetId&&(K.userCorrection&&(this.editedText=K.userCorrection),K.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.qQ(this.data.snippet)),K.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=K.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=K.voteCaptionCorrectionPopupCommand?
K.voteCaptionCorrectionPopupCommand:null,K.accessibility&&(this.segmentAriaLabel=K.accessibility.accessibilityData.label))};
_.V.handleCancel=function(K){this.isEditMode=!1;K.stopPropagation();this.logClientVe(159409)};
_.V.handleEditSegmentCommand=function(K){(K=_.P(K,oxi))&&K.targetId&&this.data&&K.targetId===this.data.targetId&&this.handleEdit()};
_.V.handleEditButtonClick=function(K){this.data&&(this.handleEdit(),K.stopPropagation())};
_.V.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var K;(K=this.ironTextAreaElement.textarea)==null||K.focus();this.logClientVe(159407)}};
_.V.handleMouseEnter=function(){this.mouseOver=!0};
_.V.handleMouseLeave=function(){this.mouseOver=!1};
_.V.handleReplay=function(K){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),K.stopPropagation(),this.logClientVe(159408))};
_.V.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()))};
_.V.handleKeypress=function(K){this.data&&(this.isEditMode?K.stopPropagation():this.isEnterPress(K)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(K)&&this.logClientVe(138758))};
_.V.handleTextboxClick=function(K){K.stopPropagation()};
_.V.handleTextboxKeydown=function(K){this.isControlEnterPress(K)?this.handleSubmit(K):K.key==="Escape"&&this.handleCancel(K)};
_.V.handleTextboxKeyup=function(){this.textChanged=_.qQ(this.latestText)!==String(this.ironTextAreaElement.value)};
_.V.fireSelectedEvent=function(K){_.Zp(this.hostElement,"yt-transcript-segment-selected",{startMs:K})};
_.V.fireReplayEvent=function(K,d){_.Zp(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(K-100,0),endMs:d})};
_.V.fireEditEvent=function(K,d){_.Zp(this.hostElement,"yt-transcript-segment-edit",{startMs:K,endMs:d})};
_.V.isEnterPress=function(K){return K.key==="Enter"||K.code==="Enter"||K.code==="NumpadEnter"||K.keyCode===13?!0:!1};
_.V.isControlEnterPress=function(K){var d=K.key==="Enter"||K.code==="Enter"||K.code==="NumpadEnter"||K.keyCode===13;return(K.ctrlKey||K.metaKey)&&d};
_.V.isCopyPress=function(K){var d=K.ctrlKey;return K.key==="c"&&d};
_.V.logClick=function(){var K,d=(K=this.data)==null?void 0:K.trackingParams;d&&_.f5(_.cv(),d)};
_.V.logClientVe=function(K){_.dx(_.cv(),_.vp(K))};
_.x$.Object.defineProperties(x0.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}}});
x0.prototype.handleMouseLeave=x0.prototype.handleMouseLeave;x0.prototype.handleMouseEnter=x0.prototype.handleMouseEnter;x0.prototype.dataChanged=x0.prototype.dataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],x0.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],x0.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],x0.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x0.prototype,"isEditMode",void 0);_.x([_.A(),_.B("design:type",Object)],x0.prototype,"touchCaptionsEnabled",void 0);_.x([_.A(),_.B("design:type",Object)],x0.prototype,"editedText",void 0);_.x([_.A(),_.B("design:type",Object)],x0.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.x([_.A(),_.B("design:type",Object)],x0.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.x([_.A(),_.B("design:type",String)],x0.prototype,"segmentAriaLabel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x0.prototype,"roundedContainer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x0.prototype,"mouseOver",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],x0.prototype,"textChanged",void 0);_.x([_.A(),_.B("design:type",Object)],x0.prototype,"messages",void 0);
_.x([_.n8("#suggestion"),_.B("design:type",Object)],x0.prototype,"ironTextAreaElement",void 0);_.x([_.W("data","editedText"),_.B("design:type",Object),_.B("design:paramtypes",[])],x0.prototype,"latestText",null);_.x([_.W("touchCaptionsEnabled","isEditMode"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],x0.prototype,"enableEditButton",null);
_.x([_.W("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],x0.prototype,"enableUndoButton",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x0.prototype,"dataChanged",null);_.x([_.VV("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x0.prototype,"handleMouseEnter",null);
_.x([_.VV("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x0.prototype,"handleMouseLeave",null);x0=_.x([_.Q({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],x0);
_.C(x0,"ytd-transcript-segment-renderer",function(){if(Bbi!==void 0)return Bbi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Bbi=K},{mode:1});var Lp=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};K.isError=!1;K.darkerPanels=_.M("web_watch_darker_panels");K.useParentMaxHeight=_.M("web_watch_transscript_use_parent_max_height");K.segmentOffsets=[];K.segmentIndex=-1;return K};
_.O(Lp,_.q);_.V=Lp.prototype;_.V.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"}}}}};
_.V.segmentsChanged=function(){this.updateOffsets()};
_.V.onYtPlayerTimeChanged=function(K){for(var d=this.segmentIndex,f=d;;){if(f>=0){var H=this.segmentOffsets[f].start;var D=this.segmentOffsets[f].isAutoScrollable}else H=-1,D=!0;var S=K+.5;if(!D){H=f+1<this.segmentOffsets.length?this.segmentOffsets[f+1].start:Infinity;if(S>=H){f+=1;continue}f=-1;break}if(S<H)H=f-1>=0&&this.segmentOffsets[f-1].isAutoScrollable,D=f===0||H?1:2,f-=D;else if(D=f+1<this.segmentOffsets.length&&this.segmentOffsets[f+1].isAutoScrollable?1:2,H=f+D<this.segmentOffsets.length?
this.segmentOffsets[f+D].start:Infinity,S>H)f+=D;else{if(f<0)break;f<this.segmentOffsets.length&&S>this.segmentOffsets[f].end&&(f=-1);break}}if(d!==f){if(d>=0){var n;(n=this.getSegmentElement(d))==null||n.classList.remove("active")}this.segmentIndex=f;if(!(f<0)){var u;(u=this.getSegmentElement(f))==null||u.classList.add("active");this.isHovered||this.scrollElementToTop(f)}}};
_.V.handleSegmentEdit=function(K){K.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=K.target,_.ev(this.hostElement,"yt-transcript-player-edit",[K.detail.startMs/1E3,K.detail.endMs/1E3]))};
_.V.handleSegmentSelected=function(K){_.ev(this.hostElement,"yt-transcript-player-seek",[K.detail.startMs/1E3])};
_.V.handleSegmentReplay=function(K){_.ev(this.hostElement,"yt-transcript-player-replay",[K.detail.startMs/1E3,K.detail.endMs/1E3])};
_.V.handleSectionHeaderSelected=function(K){_.ev(this.hostElement,"yt-transcript-player-seek",[K.detail.startMs/1E3])};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
_.V.onRetryButtonClick=function(){_.Zp(this.hostElement,"transcript-retry-button-click")};
_.V.getSegmentElement=function(K){return _.E(this.hostElement).querySelector(":nth-child("+(K+1)+")")};
_.V.scrollElementToTop=function(K){K=this.getSegmentElement(K>=2?K-2:0);this.hostElement.scrollTop=Math.min(K.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.V.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(K){var d,f=(d=K.transcriptSegmentRenderer)!=null?d:K.transcriptSectionHeaderRenderer;return{start:Number(f.startMs)/1E3,end:Number(f.endMs)/1E3,isAutoScrollable:K.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.V.clearHighlightedSegments=function(){var K=_.E(this.hostElement);K=_.y(K.querySelectorAll("ytd-transcript-segment-renderer"));for(var d=K.next();!d.done;d=K.next())d.value.classList.remove("active")};
_.x$.Object.defineProperties(Lp.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:K.searchResultSegments)||((d=this.data)==null?void 0:d.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
Lp.prototype.onMouseLeave=Lp.prototype.onMouseLeave;Lp.prototype.onMouseEnter=Lp.prototype.onMouseEnter;Lp.prototype.handleSectionHeaderSelected=Lp.prototype.handleSectionHeaderSelected;Lp.prototype.handleSegmentReplay=Lp.prototype.handleSegmentReplay;Lp.prototype.handleSegmentSelected=Lp.prototype.handleSegmentSelected;Lp.prototype.handleSegmentEdit=Lp.prototype.handleSegmentEdit;Lp.prototype.segmentsChanged=Lp.prototype.segmentsChanged;
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Lp.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Lp.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Lp.prototype,"isError",void 0);
_.x([_.A(),_.B("design:type",Object)],Lp.prototype,"noResultLabel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lp.prototype,"darkerPanels",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lp.prototype,"useParentMaxHeight",void 0);_.x([_.W("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],Lp.prototype,"segments",null);
_.x([_.W("segments","noResultLabel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Lp.prototype,"displayNoResults",null);_.x([_.SP("segments"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lp.prototype,"segmentsChanged",null);_.x([_.VV("yt-transcript-segment-edit"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Lp.prototype,"handleSegmentEdit",null);
_.x([_.VV("yt-transcript-segment-selected"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Lp.prototype,"handleSegmentSelected",null);_.x([_.VV("yt-transcript-segment-replay"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Lp.prototype,"handleSegmentReplay",null);
_.x([_.VV("ytd-transcript-section-header"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Lp.prototype,"handleSectionHeaderSelected",null);_.x([_.VV("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lp.prototype,"onMouseEnter",null);_.x([_.VV("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lp.prototype,"onMouseLeave",null);
Lp=_.x([_.Q({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],Lp);
_.C(Lp,"ytd-transcript-segment-list-renderer",function(){if(Lpc!==void 0)return Lpc;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Lpc=K},{mode:1});var BN=function(){var K=_.q.apply(this,arguments)||this;K.hideTimestamps=!!_.KI("hide-transcript-timestamps");K.isLoadingTranscripts=!1;K.darkerPanels=_.M("web_watch_darker_panels");K.isError=!1;K.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return K};
_.O(BN,_.q);_.V=BN.prototype;_.V.headerChanged=function(){var K,d;this.baseGetTranscriptsCommand=(d=_.P((K=this.data)==null?void 0:K.header,ExP))==null?void 0:d.onTextChangeCommand};
_.V.bodyChanged=function(){var K=this.getBodyRenderer();K&&(K.initialSegments&&(this.initialTranscriptsRenderer=K),K.noResultLabel&&(this.noResultLabel=K.noResultLabel),K.retryLabel&&(this.retryLabel=K.retryLabel))};
_.V.detached=function(){this.clearSearchBoxText()};
_.V.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.V.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"}}}};
_.V.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.V.fireSearch=function(K){var d=this;if(K){var f=K.detail.query;if(this.baseGetTranscriptsCommand){var H;K=(H=_.P(this.baseGetTranscriptsCommand,_.miL))==null?void 0:H.params;var D;H=_.P((D=this.data)==null?void 0:D.footer,ayK);var S;if((D=(S=_.P(H==null?void 0:H.languageMenu,NIc))==null?void 0:S.subMenuItems)&&D.length>0&&(S=D.find(function(a){return a.selected}))){var n,u;
K=(n=S.continuation)==null?void 0:(u=n.reloadContinuationData)==null?void 0:u.continuation}n=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:K,searchQuery:f}});this.ytComponentBehavior.resolveCommand(n,{commandController:{onServerError:function(){d.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});kQZ(this.ytContinuationHandlerBehavior,function(){return f===d.getCurrentSearchBoxText()})}}};
_.V.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.V.onRetryButtonClick=function(){this.isError=!1;var K={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:K}))};
_.V.hideTimestampsChanged=function(){_.p5("hide-transcript-timestamps",this.hideTimestamps)};
_.V.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.V.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.V.handleSignalActionCopyTranscript=function(){var K=this,d=this.getBodyRenderer();d&&(d=((d==null?void 0:d.searchResultSegments)||(d==null?void 0:d.initialSegments)||[]).map(function(f){return _.P(f,b6K)}).filter(function(f){return!!f}).map(function(f){return{snippet:f.snippet||{runs:[{text:""}]},
startTimeText:f.startTimeText||{simpleText:""}}}).map(function(f){var H=(f.snippet.runs||[]).reduce(function(D,S){return D+S.text},"");
return K.hideTimestamps?H:f.startTimeText.simpleText+" "+H}).join("\n"),this.copyToClipboard(d))};
_.V.copyToClipboard=function(K){navigator.clipboard&&navigator.clipboard.writeText(K)};
_.V.getCurrentSearchBoxText=function(){var K;return(K=this.searchBox)==null?void 0:K.value};
_.V.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.V.getBodyRenderer=function(){var K;return _.P((K=this.data)==null?void 0:K.body,hEt)};
_.V.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.x$.Object.defineProperties(BN.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
BN.prototype.hideTimestampsChanged=BN.prototype.hideTimestampsChanged;BN.prototype.searchCleared=BN.prototype.searchCleared;BN.prototype.fireSearch=BN.prototype.fireSearch;BN.prototype.onReloadContinuationFinish=BN.prototype.onReloadContinuationFinish;BN.prototype.bodyChanged=BN.prototype.bodyChanged;BN.prototype.headerChanged=BN.prototype.headerChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],BN.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.lY),_.B("design:type",Object)],BN.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],BN.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],BN.prototype,"hideTimestamps",void 0);
_.x([_.A(),_.B("design:type",Object)],BN.prototype,"isLoadingTranscripts",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],BN.prototype,"darkerPanels",void 0);_.x([_.A(),_.B("design:type",Object)],BN.prototype,"isError",void 0);_.x([_.SP("data.header"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BN.prototype,"headerChanged",null);
_.x([_.an("data.body"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BN.prototype,"bodyChanged",null);_.x([_.VV("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BN.prototype,"onReloadContinuationFinish",null);_.x([_.VV("yt-transcript-search-box-search"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],BN.prototype,"fireSearch",null);
_.x([_.VV("yt-transcript-search-box-clear"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BN.prototype,"searchCleared",null);_.x([_.SP("hideTimestamps"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BN.prototype,"hideTimestampsChanged",null);BN=_.x([_.Q({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],BN);
_.C(BN,"ytd-transcript-search-panel-renderer",function(){if(Cjw!==void 0)return Cjw;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Cjw=K},{mode:1});var J$=function(){var K=_.q.apply(this,arguments)||this;K.player=null;K.playerPollJobId=0;return K};
_.O(J$,_.q);_.V=J$.prototype;_.V.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.V.onLoadReloadContinuation=function(K){_.M("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:K.target.data.continuation}}):(K={clickTrackingParams:K.target.data.clickTrackingParams,getTranscriptEndpoint:{params:K.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}}))};
_.V.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"}}}};
_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.V.attached=function(){this.updatePlayerListening()};
_.V.detached=function(){this.updatePlayerListening()};
_.V.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.V.startPlayerListening=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return(d=_.xP())?_.I(f,d.getPlayerPromise(),2):f.return();K.player=f.yieldResult;K.playerPollJobId=_.oc.addLowPriorityJob(function(){K.getPlayerVideoProgress()},1E3);
K.player.addEventListener("onCueRangeEnter",function(H){K.onCueRangeEnter(H)});
K.player.addEventListener("onCueRangeExit",function(H){K.onCueRangeExit(H)});
K.player.addEventListener("onStateChange",function(H){K.onPlayerStateChange(H)});
K.player.addEventListener("SEEK_TO",function(H){K.onPlayerSeek(H)});
_.iQ(f)})};
_.V.getPlayerVideoProgress=function(){var K=this;_.oc.cancelJob(this.playerPollJobId);if(this.player){var d=this.player.getCurrentTime();_.ev(this.hostElement,"yt-player-time-changed",[d])}this.playerPollJobId=_.oc.addLowPriorityJob(function(){K.getPlayerVideoProgress()},1E3)};
_.V.stopPlayerListening=function(){this.player=null;_.oc.cancelJob(this.playerPollJobId)};
_.V.onPlayerStateChange=function(K){K===2&&this.removePendingCue()};
_.V.onPlayerSeek=function(K){var d;if(d=this.pendingReplayCueId)d=this.pendingReplayCueId,d=K===(_.M("web_transcript_cue_id_killswitch")?Number(d):Number(d.split("_")[1]));d||this.removePendingCue()};
_.V.onCueRangeEnter=function(K){MLy(K)&&(this.pendingReplayCueId=K)};
_.V.onCueRangeExit=function(K){MLy(K)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.V.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.V.onYtTranscriptPlayerSeek=function(K){this.player&&this.player.seekTo(K,!0)};
_.V.onYtTranscriptPlayerReplay=function(K,d){this.player&&(this.player.addCueRange(vgZ(K),K,d),this.player.seekTo(K,!0),this.player.playVideo())};
_.V.onYtTranscriptPlayerEdit=function(K,d){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(vgZ(K),K,d),this.player.seekTo(K,!0))};
J$.prototype.onLoadReloadContinuation=J$.prototype.onLoadReloadContinuation;J$.prototype.panelContentVisibleChanged=J$.prototype.panelContentVisibleChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],J$.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],J$.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],J$.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],J$.prototype,"panelContentVisible",void 0);_.x([_.SP("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],J$.prototype,"panelContentVisibleChanged",null);
_.x([_.VV("yt-load-reload-continuation"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],J$.prototype,"onLoadReloadContinuation",null);J$=_.x([_.Q({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],J$);
_.C(J$,"ytd-transcript-renderer",function(){if(Qx5!==void 0)return Qx5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Qx5=K},{mode:1});var J8c;var sxw;var sc=function(){return _.q.apply(this,arguments)||this};
_.O(sc,_.q);sc.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.fd(this.hostElement,[this.data.clickCommand],this.hostElement))};
sc.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.tU)()+_.G_)+"px)"};
sc.prototype.updateShouldHideFromBinding=function(K){this.shouldHide=K.detail.value};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],sc.prototype,"rendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],sc.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],sc.prototype,"shouldHide",void 0);sc=_.x([_.Q({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],sc);
_.C(sc,"ytd-ad-engagement-panel-banner-renderer",function(){if(sxw!==void 0)return sxw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return sxw=K},{mode:_.p8("kevlar_poly_si_batch_j070")?1:2});var kXK;var k0=function(){var K=_.q.apply(this,arguments)||this;K.modernPanels=_.M("kevlar_watch_modern_panels");K.buttonUpdate=_.M("web_modern_buttons");K.adsSemanticText=_.M("enable_ads_web_ep_buenos_aires_and_padding_fix");return K};
_.O(k0,_.q);k0.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.x([_.A(),_.B("design:type",Object)],k0.prototype,"data",void 0);_.x([_.A({computed:"computeHideDefaultAdBadge(data)"}),_.B("design:type",Boolean)],k0.prototype,"hideDefaultAdBadge",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],k0.prototype,"modernPanels",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],k0.prototype,"buttonUpdate",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],k0.prototype,"adsSemanticText",void 0);
k0=_.x([_.Q({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],k0);
_.C(k0,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(kXK!==void 0)return kXK;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return kXK=K},{mode:1});var wl5;var wZ=function(){var K=_.q.apply(this,arguments)||this;K.darkerPanels=_.M("web_watch_darker_panels");K.enableSqueezebackPanels=_.M("web_shorts_enable_squeezeback_panels");K.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");K.modernPanels=_.M("kevlar_watch_modern_panels");K.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return K};
_.O(wZ,_.q);_.V=wZ.prototype;_.V.computeAdsInfoButton=function(){if(_.M("web_modern_buttons")){var K,d;return(d=_.P((K=this.data)==null?void 0:K.subtitleComplex,IyZ))==null?void 0:d.adInfoRenderer}};
_.V.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}}}}}};
_.V.collapsedChanged=function(){var K;(K=this.data)!=null&&K.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.M("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.V.focus=function(K){this.titleElement&&_.LA(this.titleElement,K)};
_.V.computeTitleAriaLabel=function(K){var d=[];if(K.title){var f,H;d.push(this.ytRendererBehavior.getSimpleString(K.title)||((f=K.title.accessibility)==null?void 0:(H=f.accessibilityData)==null?void 0:H.label))}K.contextualInfo&&d.push(this.ytRendererBehavior.getSimpleString(K.contextualInfo));return d.join(" ")};
_.V.onHeaderClick=function(K){this.shouldTriggerHeaderClick(K)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.fd(this.hostElement,[this.data.onClickCommand],this.hostElement)):(K=this.getVisibilityToggleButton())&&K.click())};
_.V.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var K=_.P(this.data.visibilityButton,_.tQ)||_.P(this.data.visibilityButton,_.oa);K&&this.ytRendererBehavior.logExplicitClick(K)}};
_.V.getVisibilityToggleButton=function(){var K=_.E(this.hostElement).querySelector("#visibility-button").firstElementChild;return(K==null?void 0:K.is)==="ytd-toggle-button-renderer"?K:null};
_.V.shouldTriggerHeaderClick=function(K){return!_.qa(_.qn(K),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.V.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(K){K=_.P(K,_.D2K);this.targetId&&(K==null?void 0:K.targetId)===this.targetId&&(K=K.navigationButton)&&this.set("data.navigationButton",K)};
_.x$.Object.defineProperties(wZ.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var K;return!!(((K=this.entity)==null?0:K.isActionButtonHidden)||this.hideActionButton)}}});
wZ.prototype.collapsedChanged=wZ.prototype.collapsedChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],wZ.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],wZ.prototype,"ytdReduxBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],wZ.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],wZ.prototype,"targetId",void 0);_.x([_.A(),_.B("design:type",Boolean)],wZ.prototype,"collapsed",void 0);_.x([_.A(),_.B("design:type",Boolean)],wZ.prototype,"hideActionButton",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],wZ.prototype,"shortsPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],wZ.prototype,"liveChatEngagementPanel",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],wZ.prototype,"darkerPanels",void 0);_.x([_.n8("#title"),_.B("design:type",HTMLElement)],wZ.prototype,"titleElement",void 0);_.x([_.A({computed:"computeAdsInfoButton(data)"}),_.B("design:type",Object)],wZ.prototype,"adsInfoButton",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],wZ.prototype,"enableSqueezebackPanels",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],wZ.prototype,"enableAnchoredPanel",void 0);_.x([_.A({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(K,d){return _.DR(K.entities,"engagementPanelTitleHeaderEntity",d)}}),
_.B("design:type",Object)],wZ.prototype,"entity",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],wZ.prototype,"modernPanels",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wZ.prototype,"adsSemanticText",null);_.x([_.an("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wZ.prototype,"collapsedChanged",null);
_.x([_.W("entity","hideActionButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wZ.prototype,"isActionButtonHidden",null);wZ=_.x([_.Q({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],wZ);
_.C(wZ,"ytd-engagement-panel-title-header-renderer",function(){if(wl5!==void 0)return wl5;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return wl5=K},{mode:1});var ZHy;var ZA=function(){return _.q.apply(this,arguments)||this};
_.O(ZA,_.q);ZA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ZA.prototype,"data",void 0);ZA=_.x([_.Q({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],ZA);
_.C(ZA,"ytd-macro-markers-info-item-renderer",function(){if(ZHy!==void 0)return ZHy;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ZHy=K},{mode:1});var ehl;var d4i=function(K,d,f,H,D,S){_.gG.call(this);var n=this;this.JSC$20110_containerElement=K;this.hostElement=d;this.supportedSyncItems=f;this.syncEntityKey=H;this.options=D;this.renderLazyListItems=S;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;pll(this);KB5(this);this.JSC$20110_scrollAnimation=new _.h0(function(u){K.scrollTop=u});
_.cy(this,this.JSC$20110_scrollAnimation);this.addOnDisposeCallback(function(){n.exitBrowsingMode(!1);n.activeItem&&n.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.O(d4i,_.gG);var pll=function(K){var d=_.n5(_.eq().resolve(_.tj),function(f){return f.entities.markersEngagementPanelSyncEntity||{}},function(f,H){var D;
f[K.syncEntityKey]!==H[K.syncEntityKey]&&((D=f[K.syncEntityKey])==null?void 0:D.activeItemIndex)!==void 0&&K.updatePanelActiveItem(f[K.syncEntityKey].activeItemIndex)});
K.unsubscribeFromTimedMarkersListSyncEntity=d;K.addOnDisposeCallback(d);fOw(K)},fOw=function(K){var d=_.eq().resolve(_.tj);
d=_.P_N(d.getState(),K.syncEntityKey);(d==null?void 0:d.activeItemIndex)!==void 0&&(d=K.getItemByIndex(d.activeItemIndex))&&K.setActiveItem(d)},KB5=function(K){var d=new _.Ct(K.onScroll,50,K);
_.cy(K,d);var f=function(){d.fire()};
K.JSC$20110_containerElement.addEventListener("scroll",f);K.addOnDisposeCallback(function(){K.JSC$20110_containerElement.removeEventListener("scroll",f)})};
_.V=d4i.prototype;
_.V.updatePanelActiveItem=function(K){var d=this.getItemByIndex(K);if(d){if(this.setActiveItem(d),this.contentVisible)if(this.browsingMode){var f;((f=this.options)==null?void 0:f.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(K=HzP(this),d.offsetTop<this.JSC$20110_containerElement.clientHeight+this.JSC$20110_containerElement.scrollTop&&K&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));D4P(this)}else this.scrollToItem(d)}else _.h3(new _.X4("Could not find "+this.supportedSyncItems+
" sync child to set active.",K,this.JSC$20110_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.V.getItemByIndex=function(K){var d;(d=this.renderLazyListItems)==null||d.call(this,K);d=this.JSC$20110_containerElement.querySelectorAll(this.supportedSyncItems);if(d.length>K)return d[K]};
_.V.setActiveItem=function(K){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));K.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=K};
_.V.scrollToItem=function(K){K=this.getScrollPositionForItem(K);this.JSC$20110_containerElement.scrollTop!==K&&this.JSC$20110_scrollAnimation.start(this.JSC$20110_containerElement.scrollTop,K,300)};
_.V.getScrollPositionForItem=function(K){if(this.JSC$20110_containerElement.querySelectorAll(this.supportedSyncItems)[0]===K)return 0;var d,f=((d=this.options)==null?0:d.percentOffset)?this.JSC$20110_containerElement.clientHeight*this.options.percentOffset:0;K=_.E7(K).y+this.JSC$20110_containerElement.scrollTop-(_.E7(this.JSC$20110_containerElement).y+f);return Math.max(0,Math.min(K,this.JSC$20110_containerElement.scrollHeight-this.JSC$20110_containerElement.offsetHeight))};
_.V.onScroll=function(){this.activeItemBelowSyncPosition=HzP(this);if(this.activeItem&&!this.JSC$20110_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20110_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var K;switch((K=this.options)==null?void 0:K.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!Vzt(this));D4P(this);break;default:this.enterBrowsingMode(!0)}}};
_.V.enterBrowsingMode=function(K){var d=this,f,H;return _.c(function(D){if(D.nextAddress==1){if(d.browsingMode)return D.return();d.browsingMode=!0;K&&d.hostElement.classList.add("browsing-mode");d.playerExitBrowsingModeListener=function(){d.exitBrowsingMode(!1)};
return _.I(D,_.Kt(),2)}f=D.yieldResult;(H=f)==null||H.addEventListener("SEEK_TO",d.playerExitBrowsingModeListener);_.iQ(D)})};
_.V.exitBrowsingMode=function(K){K=K===void 0?!0:K;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),K&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.V.removePlayerSeekListener=function(){var K=this,d,f;return _.c(function(H){if(H.nextAddress==1)return K.playerExitBrowsingModeListener?_.I(H,_.Kt(),3):H.jumpTo(0);d=H.yieldResult;(f=d)==null||f.removeEventListener("SEEK_TO",K.playerExitBrowsingModeListener);K.playerExitBrowsingModeListener=void 0;_.iQ(H)})};
var D4P=function(K){var d;((d=K.options)==null?void 0:d.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Vzt(K)?K.hostElement.classList.remove("browsing-mode"):K.activeItem&&K.hostElement.classList.add("browsing-mode"))},HzP=function(K){if(!K.activeItem)return!1;
var d,f=((d=K.options)==null?0:d.percentOffset)?K.JSC$20110_containerElement.clientHeight*K.options.percentOffset:0;return K.activeItem.offsetTop>=K.JSC$20110_containerElement.scrollTop+f},Vzt=function(K){if(!K.activeItem)return!1;
var d=K.activeItem.offsetTop+14<=K.JSC$20110_containerElement.scrollTop+K.JSC$20110_containerElement.clientHeight;return K.activeItem.offsetTop+K.activeItem.clientHeight-14>=K.JSC$20110_containerElement.scrollTop&&d};
d4i.prototype.panelContentVisibleChanged=function(K){(this.contentVisible=K)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var SWi=function(K,d){K.syncEntityKey=d;var f;(f=K.unsubscribeFromTimedMarkersListSyncEntity)==null||f.call(K);pll(K)},yri=function(K,d){K.options=d};var eB=function(){var K=_.q.apply(this,arguments)||this;K.browsingMode=!1;K.modern=_.M("web_button_rework");K.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return K};
_.O(eB,_.q);_.V=eB.prototype;_.V.activeItemChanged=function(){if(!_.M("synced_panel_scrolling_controller")){var K;((K=this.syncEntity)==null?void 0:K.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.V.created=function(){var K=this;_.M("synced_panel_scrolling_controller")||(this.JSC$20114_scrollAnimation=new _.h0(function(d){K.contents.scrollTop=d}),this.boundExitBrowsingMode=function(){K.exitBrowsingMode(!1)})};
_.V.detached=function(){if(_.M("synced_panel_scrolling_controller")){var K;(K=this.scrollController)==null||K.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.V.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"}}}};
_.V.dataChanged=function(){var K=this;_.M("synced_panel_scrolling_controller")?_.jW(this,function(){if(K.scrollController){var d;(d=K.scrollController)==null||d.exitBrowsingMode(!1);var f,H,D;(H=K.scrollController)==null||SWi(H,(D=(f=K.data)==null?void 0:f.syncModelEntityKey)!=null?D:"default-macro-markers-list-renderer-entity-key");var S,n,u;(u=K.scrollController)==null||yri(u,{percentOffset:(S=K.data)==null?void 0:S.selectedItemAlignmentPercentOffset,floatingPillType:(n=K.data)==null?void 0:n.floatingPillType})}else{var a,
R,F,z;K.scrollController=new d4i(K.contents,K.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(z=(a=K.data)==null?void 0:a.syncModelEntityKey)!=null?z:"default-macro-markers-list-renderer-entity-key",{percentOffset:(R=K.data)==null?void 0:R.selectedItemAlignmentPercentOffset,floatingPillType:(F=K.data)==null?void 0:F.floatingPillType},function(v){K.renderLazyListItems(v)})}K.scrollController.panelContentVisibleChanged(!!K.panelContentVisible)}):this.exitBrowsingMode()};
_.V.computeButtonShape=function(){var K=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){K.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.V.computeSyncEnabled=function(K){return!(K==null||!K.syncButtonLabel)};
_.V.renderLazyListItems=function(K){for(var d=this.contents.children,f=0,H=0;H<d.length;H++){var D=void 0;(D=d[H].ytLazyListBehavior)==null||D.fillRemainingListItems();var S=void 0,n=void 0;D=_.P((S=this.data)==null?void 0:(n=S.contents)==null?void 0:n[H],_.WwL);n=S=void 0;if((S=D)==null?0:(n=S.contents)==null?0:n.length)f+=D.contents.length;if(f>=K)break}};
_.V.getItemByIndex=function(K){this.renderLazyListItems(K);var d=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(d.length>K)return d[K]};
_.V.setActiveItem=function(K){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);K.active!==void 0&&(K.active=!0);this.currentActiveItem=K};
_.V.handleSetActivePanelItemAction=function(K){if((K=_.P(K,S_K))&&this.panelTargetId===K.panelTargetId){K=K.itemIndex;if(_.M("synced_panel_scrolling_controller")){var d,f;var H=(f=(d=this.data)==null?void 0:d.syncModelEntityKey)!=null?f:"default-macro-markers-list-renderer-entity-key"}else{var D;H=(D=this.data)==null?void 0:D.syncModelEntityKey}if(H){var S;((S=this.syncEntity)==null?void 0:S.activeItemIndex)!==K&&this.ytdReduxBehavior.dispatch(_.nt("markersEngagementPanelSyncEntity",H,{key:H,activeItemIndex:K}))}else this.updatePanelActiveItem(K)}};
_.V.updatePanelActiveItem=function(K){var d=this.getItemByIndex(K);d?(this.setActiveItem(d),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(d)):_.h3(new _.X4("Could not find ytd-macro-markers-list-renderer sync child to set active.",K,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.V.scrollToItem=function(K){K=this.getScrollPositionForItem(K);this.contents.scrollTop!==K&&this.JSC$20114_scrollAnimation.start(this.contents.scrollTop,K,300)};
_.V.getScrollPositionForItem=function(K){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===K)return 0;K=_.E7(K).y+this.contents.scrollTop-_.E7(this.contents).y-this.getStickyHeaderHeight(K);return Math.min(K,this.contents.scrollHeight-this.contents.offsetHeight)};
_.V.getStickyHeaderHeight=function(K){if(K.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var d,f,H;return(H=(d=K.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(f=d.header)==null?void 0:f.offsetHeight)!=null?H:0}return 0};
_.V.onScroll=function(){_.M("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20114_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.V.enterBrowsingMode=function(){var K=this;return _.c(function(d){if(d.nextAddress==1){if(K.browsingMode)return d.return();K.browsingMode=!0;return _.I(d,_.LK().getPlayerPromise(),2)}K.player=d.yieldResult;K.player.addEventListener("SEEK_TO",K.boundExitBrowsingMode);_.iQ(d)})};
_.V.exitBrowsingMode=function(K){this.browsingMode&&(this.browsingMode=!1,(K===void 0||K)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.V.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.V.onSyncClick=function(){if(_.M("synced_panel_scrolling_controller")){var K;(K=this.scrollController)==null||K.exitBrowsingMode()}else this.exitBrowsingMode()};
_.V.panelContentVisibleChanged=function(){if(_.M("synced_panel_scrolling_controller")){var K;(K=this.scrollController)==null||K.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
eB.prototype.panelContentVisibleChanged=eB.prototype.panelContentVisibleChanged;eB.prototype.dataChanged=eB.prototype.dataChanged;eB.prototype.activeItemChanged=eB.prototype.activeItemChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],eB.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],eB.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],eB.prototype,"data",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],eB.prototype,"useCustomColors",void 0);_.x([_.A({computed:"computeSyncEnabled(data)"}),_.B("design:type",Boolean)],eB.prototype,"syncEnabled",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],eB.prototype,"panelTargetId",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],eB.prototype,"panelContentVisible",void 0);_.x([_.n8("#contents"),_.B("design:type",HTMLElement)],eB.prototype,"contents",void 0);_.x([_.n8("#sync-container"),_.B("design:type",HTMLElement)],eB.prototype,"syncContainer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],eB.prototype,"browsingMode",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],eB.prototype,"modern",void 0);_.x([_.A({selectorArgs:["data.syncModelEntityKey"],selector:_.P_N}),_.B("design:type",Object)],eB.prototype,"syncEntity",void 0);_.x([_.SP("syncEntity.activeItemIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eB.prototype,"activeItemChanged",null);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eB.prototype,"dataChanged",null);_.x([_.SP("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eB.prototype,"panelContentVisibleChanged",null);eB=_.x([_.Q({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],eB);
_.C(eB,"ytd-macro-markers-list-renderer",function(){if(ehl!==void 0)return ehl;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ehl=K},{mode:1});var nUZ;var pp=function(){return _.q.apply(this,arguments)||this};
_.O(pp,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],pp.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],pp.prototype,"data",void 0);pp=_.x([_.Q({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],pp);
_.C(pp,"ytd-error-corrections-section-item-renderer",function(){if(nUZ!==void 0)return nUZ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return nUZ=K},{mode:1});var izt;var K4=function(){return _.q.apply(this,arguments)||this};
_.O(K4,_.q);K4.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],K4.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],K4.prototype,"data",void 0);K4=_.x([_.Q({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],K4);
_.C(K4,"ytd-error-corrections-section-renderer",function(){if(izt!==void 0)return izt;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return izt=K},{mode:1});var cri;var dV=function(){return _.q.apply(this,arguments)||this};
_.O(dV,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],dV.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],dV.prototype,"data",void 0);dV=_.x([_.Q({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],dV);
_.C(dV,"ytd-topic-link-renderer",function(){if(cri!==void 0)return cri;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return cri=K},{mode:1});var u6t;var f4=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("kevlar_modern_sd_v2");K.modernLockupV2=_.M("modernize_structured_description_playlist_lockups_v2");K.modernTypography=_.M("web_modern_typography");return K};
_.O(f4,_.q);f4.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],f4.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],f4.prototype,"modern",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],f4.prototype,"modernLockupV2",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],f4.prototype,"modernTypography",void 0);f4=_.x([_.Q({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],f4);
_.C(f4,"ytd-video-description-course-section-renderer",function(){if(u6t!==void 0)return u6t;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return u6t=K},{mode:1});var aO7;var Hh=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("kevlar_modern_sd_v2");K.modernTypography=_.M("web_modern_typography");return K};
_.O(Hh,_.q);Hh.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Hh.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Hh.prototype,"modern",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Hh.prototype,"modernTypography",void 0);
Hh=_.x([_.Q({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Hh);
_.C(Hh,"ytd-video-description-files-section-renderer",function(){if(aO7!==void 0)return aO7;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return aO7=K},{mode:1});var IOZ;var Ds=function(){return _.q.apply(this,arguments)||this};
_.O(Ds,_.q);Ds.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ds.prototype,"data",void 0);Ds=_.x([_.Q({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Ds);
_.C(Ds,"ytd-video-description-gaming-section-renderer",function(){if(IOZ!==void 0)return IOZ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return IOZ=K},{mode:1});var U4U;var VW=function(){var K=_.q.apply(this,arguments)||this;K.isExpanded=!1;return K};
_.O(VW,_.q);VW.prototype.computeHasDefaultMetadataEndpoint=function(K){var d;K=K==null?void 0:(d=K.defaultMetadata)==null?void 0:d.runs;return!(!K||K.length!==1||!K[0].navigationEndpoint)};
VW.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.x$.Object.defineProperties(VW.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],VW.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],VW.prototype,"isExpanded",void 0);_.x([_.A({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],VW.prototype,"hasDefaultMetadataEndpoint",void 0);
_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],VW.prototype,"isExpandable",null);_.x([_.W("data","isExpandable","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],VW.prototype,"showExpandedMetadata",null);VW=_.x([_.Q({is:"ytd-info-row-renderer",disableElementRegistration:!0})],VW);
_.C(VW,"ytd-info-row-renderer",function(){if(U4U!==void 0)return U4U;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return U4U=K},{mode:1});var RVt;var Sy=function(){var K=_.q.apply(this,arguments)||this;K.currentIndex=0;K.supportComponentResize=!0;K.modern=_.M("kevlar_modern_sd_v2");K.JSC$20140_lastScrollContainerWidth=NaN;return K};
_.O(Sy,_.q);_.V=Sy.prototype;
_.V.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"}}}};
_.V.getItemsPath=function(){return"videoLockups"};
_.V.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.V.onIronResize=function(){this.updateVideoLockupStyles()};
_.V.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.V.updateVideoLockupStyles=function(){var K;this.JSC$20140_scrollContainer!==void 0&&(K=this.videoLockups)!=null&&K.length&&(K=this.JSC$20140_scrollContainer.clientWidth,K!==this.JSC$20140_lastScrollContainerWidth&&(this.JSC$20140_lastScrollContainerWidth=K,_.f8(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(K*.8,415)+"px"}),_.Zp(this.hostElement,"iron-resize")))};
_.x$.Object.defineProperties(Sy.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var K=[],d;if((d=this.data)==null||!d.carouselLockups)return K;d=_.y(this.data.carouselLockups);for(var f=d.next();!f.done;f=d.next()){f=f.value;var H=void 0;((H=_.P(f,GLE))==null?0:H.videoLockup)&&K.push(_.P(f,GLE).videoLockup)}return K}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.videoLockups)==null||!K.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var K=[],d;if((d=this.data)==null||!d.carouselLockups)return K;var f;return(f=_.P(this.data.carouselLockups[this.scrollCount],GLE))==null?void 0:f.infoRows}}});
Sy.prototype.dataChanged=Sy.prototype.dataChanged;Sy.prototype.onIronResize=Sy.prototype.onIronResize;Sy.prototype.hiddenChanged=Sy.prototype.hiddenChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Sy.prototype,"componentBehavior",void 0);_.x([_.l(_.wa.YtdHorizontalListBehavior),_.B("design:type",Object)],Sy.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Sy.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Sy.prototype,"inlineStructuredDescription",void 0);_.x([_.A({value:2}),_.B("design:type",Number)],Sy.prototype,"initialCount",void 0);_.x([_.A(),_.B("design:type",Object)],Sy.prototype,"currentIndex",void 0);
_.x([_.A(),_.B("design:type",Number)],Sy.prototype,"scrollCount",void 0);_.x([_.A(),_.B("design:type",Object)],Sy.prototype,"supportComponentResize",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Sy.prototype,"contentHidden",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Sy.prototype,"modern",void 0);_.x([_.n8("#scroll-container"),_.B("design:type",HTMLDivElement)],Sy.prototype,"JSC$20140_scrollContainer",void 0);
_.x([_.SP("contentHidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sy.prototype,"hiddenChanged",null);_.x([_.W("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],Sy.prototype,"videoLockups",null);_.x([_.W("videoLockups"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Sy.prototype,"hasVideoLockups",null);
_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sy.prototype,"onIronResize",null);_.x([_.W("data","scrollCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],Sy.prototype,"infoRows",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sy.prototype,"dataChanged",null);Sy=_.x([_.Q({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Sy);
_.C(Sy,"ytd-video-description-music-section-renderer",function(){if(RVt!==void 0)return RVt;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return RVt=K},{mode:_.p8("kevlar_poly_si_batch_j081")?1:2});var FBS;var yW=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("kevlar_modern_sd_v2");K.modernTypography=_.M("web_modern_typography");return K};
_.O(yW,_.q);yW.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.x([_.A({}),_.B("design:type",Object)],yW.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],yW.prototype,"modern",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],yW.prototype,"modernTypography",void 0);
yW=_.x([_.Q({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],yW);
_.C(yW,"ytd-video-description-transcript-section-renderer",function(){if(FBS!==void 0)return FBS;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return FBS=K},{mode:1});var zVl;_.sP(_.C8(function(K){var d=_.yF(_.gyn,function(){return K.data().firstProviderLinkStatusEntityKey}),f=_.yF(_.gyn,function(){return K.data().secondProviderLinkStatusEntityKey}),H=function(){var D,S;
return((D=d())==null?void 0:D.linked)||((S=f())==null?void 0:S.linked)};
return _.U("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.U(_.ji,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return K.data().sectionTitle}}),_.U(_.ji,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return H()?K.data().connectedMessage:K.data().notConnectedMessage}}),_.U(_.X,{cond:H,
then:function(){return _.U(_.z1,{data:function(){return K.data().connectedButton}},{buttonViewModel:function(D){return _.U(_.oY,{data:D.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.U(_.X,{cond:function(){return!H()},
then:function(){return _.U(_.z1,{data:function(){return K.data().notConnectedButton}},{buttonViewModel:function(D){return _.U(_.oY,{data:D.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Li"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=K.data;return _.U("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.U("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.U(_.ji,{text:function(){return d().sectionTitle}})),_.U("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.U(_.ji,{text:function(){return d().bodyHeader}})),_.U("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.U(_.ji,{text:function(){return d().bodyText}})),_.U(_.X,
{cond:function(){return d().attributionText},
then:function(){return _.U("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.U(_.ji,{text:function(){return d().attributionText}}))}}))},"Mi"),"how-this-was-made-section-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){return _.U("yt-video-description-youchat-section-view-model",{class:_.SC("ytVideoDescriptionYouchatSectionViewModelHost")},_.U("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.U(_.ji,{text:function(){return K.data().sectionTitle}})),_.U("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.U(_.ji,{text:function(){return K.data().subHeaderText}})),_.U("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.U(_.oY,{data:function(){return _.P(K.data().primaryButton,
_.XN)}})))},"Ni"),"yt-video-description-youchat-section-view-model",{props:{data:_.rs}});var n4=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("kevlar_modern_sd_v2");K.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return K};
_.O(n4,_.q);_.V=n4.prototype;
_.V.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}}}}}};
_.V.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.V.dataChanged=function(){var K,d;this.hasDescriptionOnly=!(((K=this.data)==null?void 0:(d=K.items)==null?void 0:d.length)!==1||!_.P(this.data.items[0],Aut))};
_.V.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.V.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.V.autoFocusDescription=function(){var K;((K=_.eq().resolve(_.Zd(_.eb)))==null?0:K.isKeyBoardInUse())&&this.description&&_.BA(this.description)};
_.V.resize=function(){if(_.M("kevlar_disable_sd_resize"))this.JSC$20148_cardList&&_.Zp(this.JSC$20148_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Zp(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Zp(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.V.scrollToSection=function(K){if(K=this.getSectionElement(K))_.ev(this.hostElement,"yt-scroll-to-watch-element",[K]),K.focus()};
_.V.getSectionElement=function(K){switch(K){case "infocards-item-section":var d;return(d=this.infocardsSection)!=null?d:null;case "transcript-item-section":var f;return(f=this.transcriptSection)!=null?f:null;case "how-this-was-made-section-item-section":var H;return(H=this.howThisWasMadeSection)!=null?H:null;case "files-item-section":var D;return(D=this.filesSection)!=null?D:null;default:return null}};
_.V.handleSetActiveItemAction=function(K){var d=_.P(K,S_K),f=d&&(d==null?void 0:d.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20148_cardList;if(d&&f){K=this.currentActiveChapter;var H=this.currentActiveProblem;d=f==null?void 0:f.getItemByIndex(d.itemIndex);var D=f=!0;d&&(d.active=!0,d.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(f=K!==d,D=!1,this.currentActiveChapter=d):(d==null?void 0:d.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(f=!1,D=H!==d,this.currentActiveProblem=d));K&&f&&(K.active=!1);H&&D&&(H.active=!1)}};
_.x$.Object.defineProperties(n4.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.M("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
n4.prototype.onYtExpanderMoreTapped=n4.prototype.onYtExpanderMoreTapped;n4.prototype.onHiddenChanged=n4.prototype.onHiddenChanged;n4.prototype.dataChanged=n4.prototype.dataChanged;n4.prototype.panelContentVisibleChanged=n4.prototype.panelContentVisibleChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],n4.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.Mg),_.B("design:type",Object)],n4.prototype,"ironResizableBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],n4.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],n4.prototype,"panelContentVisible",void 0);_.x([_.A(),_.B("design:type",Boolean)],n4.prototype,"hasDescriptionOnly",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],n4.prototype,"inlineStructuredDescription",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],n4.prototype,"hidden",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],n4.prototype,"shortsPanel",void 0);_.x([_.A(),_.B("design:type",Object)],n4.prototype,"videoSummary",void 0);_.x([_.A(),_.B("design:type",Object)],n4.prototype,"merchShelf",void 0);
_.x([_.W("videoSummary"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],n4.prototype,"showVideoSummary",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],n4.prototype,"modern",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],n4.prototype,"engagementPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],n4.prototype,"watchWhileSdp",void 0);
_.x([_.n8("ytd-expandable-video-description-body-renderer"),_.B("design:type",Object)],n4.prototype,"description",void 0);_.x([_.n8("ytd-horizontal-card-list-renderer"),_.B("design:type",Object)],n4.prototype,"JSC$20148_cardList",void 0);_.x([_.n8("ytd-horizontal-card-list-renderer[center-items]"),_.B("design:type",Object)],n4.prototype,"problemWalkthroughCardList",void 0);_.x([_.n8("ytd-shelf-renderer"),_.B("design:type",Object)],n4.prototype,"shelfSection",void 0);
_.x([_.n8("ytd-video-description-music-section-renderer"),_.B("design:type",Object)],n4.prototype,"musicMetadataSection",void 0);_.x([_.n8("ytd-video-description-infocards-section-renderer"),_.B("design:type",Object)],n4.prototype,"infocardsSection",void 0);_.x([_.n8("ytd-video-description-transcript-section-renderer"),_.B("design:type",Object)],n4.prototype,"transcriptSection",void 0);
_.x([_.n8("how-this-was-made-section-view-model"),_.B("design:type",Object)],n4.prototype,"howThisWasMadeSection",void 0);_.x([_.n8("ytd-video-description-files-section-renderer"),_.B("design:type",Object)],n4.prototype,"filesSection",void 0);_.x([_.SP("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n4.prototype,"panelContentVisibleChanged",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n4.prototype,"dataChanged",null);_.x([_.SP("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n4.prototype,"onHiddenChanged",null);_.x([_.VV("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n4.prototype,"onYtExpanderMoreTapped",null);
n4=_.x([_.Q({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],n4);
_.C(n4,"ytd-structured-description-content-renderer",function(){if(zVl!==void 0)return zVl;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return zVl=K},{mode:2});var XiP;var vU7;var iM=function(){return _.q.apply(this,arguments)||this};
_.O(iM,_.q);iM.prototype.computeAriaLabel=function(K){var d,f;return(K==null?void 0:(d=K.accessibility)==null?void 0:(f=d.accessibilityData)==null?void 0:f.label)||_.iB("LOADING",void 0,"Loading")};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],iM.prototype,"data",void 0);_.x([_.A({computed:"computeAriaLabel(data)"}),_.B("design:type",String)],iM.prototype,"ariaLabel",void 0);iM=_.x([_.N7({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],iM);
_.C(iM,"yt-content-loading-renderer",function(){if(vU7===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;XiP===void 0&&(XiP=document.createElement("template"));var H=XiP;f.call(d,H.content.cloneNode(!0),K.content.firstChild);vU7=K}K=vU7;return K},{mode:_.p8("kevlar_poly_si_batch_j043")?1:2});_.sP(_.C8(function(K){var d=_.y(_.cC(!1,void 0,"WbYeXc")),f=d.next().value,H=d.next().value;d=_.y(_.cC(!1,void 0,"msXkzc"));var D=d.next().value,S=d.next().value;_.tR(function(){var a=_.P(K.data().collaboratePlaylistCollaborationSetting,Y_w);a&&H(a.switchedOnByDefault);var R=_.P(K.data().allowNewCollaboratorsPlaylistCollaborationSetting,Y_w);R&&S(R.switchedOnByDefault);if(!a&&!R||!a&&K.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")H(!0),S(!0)});
var n=function(a){H(a);S(a);var R=K.data().playlistCollaborationEntityKey||"";var F=_.TC().getState();(F=_.DR(F.entities,"playlistCollaborationEntity",R))&&(F==null?void 0:F.isCollaborative)===a||_.TC().dispatch(_.nt("playlistCollaborationEntity",R,Object.assign({},F,{isCollaborative:a})))},u=function(a){S(a)};
return _.U("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.U("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.U(_.z1,{data:function(){return K.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(a){return _.U(_.U49,{data:a.data,
onSwitch:n})}})),_.U(_.X,{cond:f,
then:function(){return _.U("div",null,_.U("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.U(_.z1,{data:function(){return K.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(a){return _.U(_.U49,{data:a.data,
onSwitch:u,overrideDisabled:!1})}})),_.U(_.X,{cond:D,
then:function(){return _.U("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.U(_.z1,{data:function(){return K.data().copyLinkButton}},{buttonViewModel:_.oY}))}}),_.U("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.U(_.z1,{data:function(){return K.data().playlistCollaborators}},{contentListItemViewModel:_.jpP})))}}))},"Oi"),"playlist-collaboration-view-model",{props:{data:_.rs}});var MzP=_.C8(function(K){var d=K.data;var f=K.customCommandResolver;return _.U(_.dF,null,_.U("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.U(_.z1,{data:function(){return d().adAvatar}},{adAvatarViewModel:function(H){return _.U(_.HPk,{data:H.data,
customCommandResolver:f})}})),_.U("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.U(_.X,{cond:function(){return d().headline},
then:function(H){return _.U(_.ji,{text:H,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.U("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.U(_.z1,{data:function(){return d().adBadge}},{adBadgeViewModel:function(H){return _.U(_.wW,{data:H.data,
hasDot:function(){return d().primaryDetailsLine!==void 0},
customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.U(_.z1,{data:function(){return d().primaryDetailsLine}},{adDetailsLineViewModel:function(H){return _.U(_.Zu,{data:H.data,
customCommandResolver:f,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Pi"),PKw=_.C8(function(K){var d=K.data;
var f=K.customCommandResolver;K=_.Co();_.T1(K,function(){return d().interaction},f);
_.wU(K,{visibilityCallback:function(H){var D,S=(D=d().interaction)==null?void 0:D.onFirstVisible;H&&S&&_.me(S)},
showOption:_.LW});return _.U("ad-avatar-lockup-view-model",{class:function(){var H;return((H=d().interaction)==null?0:H.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:K,"aria-label":function(){var H,D;return(H=d().interaction)==null?void 0:(D=H.accessibility)==null?void 0:D.label}},_.U(_.gF,null,_.U(_.Mk,{when:function(){return d().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.U(MzP,{data:d,
customCommandResolver:f})}),_.U(_.P_,null,function(){return null})))},"Qi");_.sP(_.C8(function(K){var d=K.data;var f=K.panelContentVisibility;K=_.Co();_.T1(K,function(){return d().interaction},PaU);
_.wU(K,{visibilityCallback:function(D){var S,n=(S=d().interaction)==null?void 0:S.onFirstVisible;D&&n&&_.me(n)},
showOption:_.LW});_.b8(function(){var D,S;if(S=_.T2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var n;S=(n=S())==null?void 0:n.onLayoutVisibleCallback}else S=null;(D=S)==null||D()});
var H=function(){return f()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.U("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:K},_.U("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.U("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.U(_.X,{cond:_.Y_z("(min-width: "+((0,_.tU)()+_.G_)+"px) or (max-width: 600px)"),then:function(){return _.U(_.z1,{data:function(){return d().adImage}},{adImageViewModel:function(D){return _.U(_.Vy,{data:D.data,
targetHeight:80,customCommandResolver:PaU})}})}})),_.U("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.U("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.U(_.z1,{data:function(){return d().adAvatarLockup}},{adAvatarLockupViewModel:function(D){return _.U(PKw,{data:D.data,
customCommandResolver:PaU})}})),_.U(_.X,{cond:H,
then:function(){return _.U(_.z1,{data:function(){return d().adButton}},{adButtonViewModel:function(D){return _.U(_.JH,{data:D.data,
customCommandResolver:PaU})}})},
else:function(){return _.U(_.z1,{data:function(){return d().menu}},{buttonViewModel:_.oY})}}),_.U("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.U(_.z1,{data:function(){var D=_.P(d().toggleButton,_.v9);
return{toggleButtonViewModel:Object.assign({},D,{isTogglingDisabled:!0,isToggled:H()})}}},{toggleButtonViewModel:_.MT})))))},"Ri"),"panel-ad-header-image-lockup-view-model",{props:{data:_.rs,
panelContentVisibility:_.rs}});_.sP(_.C8(function(K){var d=function(){return _.P(K.data().inputComposerViewModel,tm5)},f=function(){var N;
return((N=d())==null?void 0:N.youchatPendingResponseEntityKey)||""},H=_.yF(_.iiU,f),D=function(){var N;
return!((N=H())==null||!N.isPendingResponse)},S=_.y(_.cC(!0,void 0,"DR0q1d")),n=S.next().value,u=S.next().value,a=function(){return d().sectionTargetId||"youchat_messages_section"};
S=_.x7();var R=_.Co(),F=_.yF(cCt,"chat_input_view_model_state"),z=uOw(),v=function(){var N;return!((N=F())==null||!N.value)};
_.tR(function(){var N;!v()&&((N=d())==null?0:N.welcomeFeatureContinuation)&&(N={continuationCommand:{token:d().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.EP(N),z(!0));var h=a(),m;(m=_.eq().resolve(_.Zd(_.um)))==null||m.addEventListener("yt-navigate-start",function(){_.Uk.remove(h);z(!1)},{once:!0})});
var g=function(){var N,h,m,T,r,J,L,fB,w;return _.c(function(yO){N=R.value.value;R.value.value="";gg7(R.value);h=OXw(a(),N);_.EP(h);m=_.c7w(f());_.me(((T=d())==null?void 0:T.onSubmitCommand)||{});m(!0);J=String(Math.floor(((r=_.dP())==null?void 0:r.getCurrentTime())||0)*1E3);fB={continuationCommand:{token:(L=d())==null?void 0:L.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};w={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:N,playerOffsetMs:J}};_.EP(fB,{form:{formData:w},
commandController:{onSuccess:function(){m(!1)},
onServerError:function(){var FX=a();_.EP({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:FX}}]}}});m(!1)}}});
_.iQ(yO)})};
return _.U("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:S},_.U("div",{class:"chatInputViewModelChatInputWrapper"},_.U("form",{class:"chatInputViewModelChatInputForm"},_.U("textarea",{class:"chatInputViewModelChatInput",el:R,"on:keydown":_.cp(function(N){var h=D()||!1;gg7(R.value);h||N.key!=="Enter"||N.shiftKey||(N.preventDefault(),g());return!1}),
"on:keyup":_.cp(function(){u(R.value.value.length===0);return!1}),
placeholder:function(){var N,h;var m=_.P((h=d())==null?void 0:h.inputFormField,H6E);return m==null?void 0:(N=m.contentProperties)==null?void 0:N.placeholderText},
rows:1}),_.U(_.oY,{data:function(){return _.P(K.data().sendButton,_.XN)},
onClick:function(N){N.preventDefault();g();u(R.value.value.length===0)},
buttonOverrides:function(){return{disabled:n()||D()}}})),_.U(_.ji,{className:"chatInputViewModelChatDisclaimer",
text:function(){var N;return(N=_.P(K.data().disclaimer,_.GAN))==null?void 0:N.text}})))},"Si"),"yt-chat-input-view-model",{props:{data:_.rs}});var gUw=["engagement-panel-clip-create","engagement-panel-clip-view"],OzP=0,ch=function(){var K=_.q.apply(this,arguments)||this;var d;K.headerData=(d=K.data)==null?void 0:d.header;K.darkerPanels=_.M("web_watch_darker_panels");K.matchContentTheme=_.M("web_watch_panel_content_match_theme");K.disableAutoFill=!1;K.isFullscreen=!1;K.isTheaterMode=!1;K.modernPanels=_.M("kevlar_watch_modern_panels");K.liveChatReplyPanel=!1;K.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");K.disableBackdropFilter=
_.M("web_disable_backdrop_filter");K.trackEngagementPanelVisibility=_.M("web_watch_track_engagement_panel_visibility");K.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 K};
_.O(ch,_.q);_.V=ch.prototype;
_.V.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(K){var d;
return(K==null?void 0:(d=K.webComponentHint)==null?void 0:d.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]]"}},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"}}}};
_.V.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var K;if((K=this.hostElement.parentElement)==null?0:K.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.V.detached=function(){this.updateTheaterDisablement()};
_.V.showPanel=function(){var K=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.oc.addJob(function(){K.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.V.maybeScrollToItemSection=function(K){var d=this,f,H=K==null?void 0:(f=K.sectionListEngagementPanelExtras)==null?void 0:f.scrollToItemSectionIdentifier;H&&_.oc.addJob(function(){var D;(D=d.sectionListRendererElement)==null||D.scrollToItemSection(H)},8)};
_.V.hidePanel=function(){var K=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.oc.addJob(function(){K.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.V.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.V.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.V.updatePanel=function(K,d,f,H){var D=this;if((K=K==null?void 0:K.engagementPanelSectionListRenderer)||H){if(K){H=K.header;var S=K.content,n=K.footer;(K=K.targetId)&&this.set("data.targetId",K);H&&this.set("data.header",H);S&&this.set("data.content",S);n&&this.set("data.footer",n)}else H&&(K=H.content,S=H.secondaryHeaderContent,(H=H.targetId)&&this.set("data.targetId",H),K&&this.set("data.content",K),S&&(this.secondaryHeaderData=S));this.updateChildVisibilityProperties();if(d){var u;_.M("kevlar_update_panel_focus_scroll_killswitch")||
(u={preventScroll:!0});this.focus(u)}_.jW(this,function(){_.Zp(D.hostElement,"yt-refit");D.maybeScrollToItemSection(f)})}};
_.V.computeHeaderData=function(){var K,d=(0,_.PR.unsafeClone)((K=this.data)==null?void 0:K.header);if(d){K=new _.Z(Object.keys(d)[0]);var f=_.P(d,K),H=_.P(this.secondaryHeaderData,K);H&&_.OP(d,K,Object.assign({},H,f))}return d};
_.V.getReloadContinuation=function(){var K,d,f,H=_.y(((K=this.data)==null?void 0:(d=K.content)==null?void 0:(f=d.sectionListRenderer)==null?void 0:f.continuations)||[]);for(K=H.next();!K.done;K=H.next())if(K=K.value,K.reloadContinuationData)return K.reloadContinuationData.continuation};
_.V.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var K;((K=this.data)==null?0:K.targetId)&&(K=this.contentElement.firstElementChild)&&K.setAttribute("panel-target-id",this.data.targetId)};
_.V.forwardPopupClosedToFlowRootRenderer=function(){var K=_.E(this.hostElement).querySelector("ytd-flow-root-renderer");if(K)K.onPopupClosed()};
_.V.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var K=_.M("web_watch_imax_theater_mode")&&this.isTheaterMode;K=_.M("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||K;if(_.M("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||K){var d;this.visibility=
(d=this.data)==null?void 0:d.visibility;var f;this.trackEngagementPanelVisibility&&((f=this.data)==null?void 0:f.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var H,D,S,n;this.contentEmpty=!!(((H=this.data)==null?0:(D=H.content)==null?0:D.structuredDescriptionContentRenderer)&&Object.keys((S=this.data)==null?void 0:(n=S.content)==null?void 0:n.structuredDescriptionContentRenderer).length===0);(d=_.eq().resolve(_.XM))&&d.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.V.isTheaterModeChanged=function(){_.M("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.V.isFullscreenChanged=function(){_.M("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.V.focus=function(K){if(this.header)this.header.focus(K);else{var d;(d=_.E(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||d.focus(K)}};
_.V.visibilityChanged=function(){if(!_.M("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var K=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D=H||!this.lastVisibility,S,n,u=(S=this.data)==null?void 0:(n=S.identifier)==null?void 0:n.tag,
a;if(((a=this.data)==null?0:a.onShowCommands)&&K&&D)_.fd(this.hostElement,this.data.onShowCommands,this.hostElement),u&&_.j3().dispatch(_.es({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:u}}));else{var R;((R=this.data)==null?0:R.onHideCommands)&&d&&f&&(_.fd(this.hostElement,this.data.onHideCommands,this.hostElement),u&&_.j3().dispatch(_.es({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:u}})))}K&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*OzP++));_.M("kevlar_watch_focus_on_engagement_panels")&&
K&&H&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.V.notifyVisibilityChanged=function(K){var d;_.p1(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,K,(d=this.data)==null?void 0:d.targetId])};
_.V.updateTheaterDisablement=function(){if(!_.M("kevlar_watch_theater_disablement_killswitch")){var K=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&gUw.includes(K)&&!_.M("watch_next_grid_ignore_disallowed_panels")){var d=_.NG(_.j3().getState()),f=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";K!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():f?(this.originalTheaterState===void 0&&(this.originalTheaterState=d,this.theaterDisablementPanelIdentifier=
K),d&&_.ev(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.V.clearTheaterDisablement=function(){_.ev(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.V.updateChildVisibilityProperties=function(){this.hostElement||_.M("kevlar_panel_property_init_killswitch")||this._enableProperties();var K=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=K);var d,f=(d=this.headerElement)==null?void 0:d.firstElementChild;if(f&&!this.adHeaderImageLockupViewModel){d=K==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";f.collapsed=d;f=_.E(f).querySelector("#visibility-button");if(!f)return;(f=f.firstElementChild)&&
f.polymerController.is==="ytd-toggle-button-renderer"&&f.polymerController.data.isToggled!==d&&f.polymerController.set("data.isToggled",d)}var H;if(d=(H=this.contentElement)==null?void 0:H.firstElementChild)if(K&&K!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")d.removeAttribute("panel-content-visible");else{d.setAttribute("panel-content-visible","");var D;(D=d.markDirty)==null||D.call(d)}};
_.V.onYtChangeEngagementPanelVisibilityAction=function(K){var d=this,f,H=(f=this.data)==null?void 0:f.targetId,D,S,n;f=((D=this.data)==null?void 0:(S=D.identifier)==null?void 0:S.tag)||((n=this.data)==null?void 0:n.panelIdentifier);var u=_.P(K,_.j16),a;K=H&&(u==null?void 0:u.targetId)===H||f&&(u==null?void 0:(a=u.panelIdentifier)==null?void 0:a.tag)===f;this.dialog&&K&&(u==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(H==="engagement-panel-comments-section"?_.ev(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.ev(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",f]));!_.M("kevlar_use_engagement_panel_management_component")&&K&&(H=u.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!H?_.oc.addJob(function(){d.visibility=u.visibility},2,this.hideDelayMs):this.visibility=u.visibility,u.visibility&&this.notifyVisibilityChanged(u.visibility))};
_.V.onYtScrollToEngagementPanelCommand=function(K){var d,f=(d=this.data)==null?void 0:d.targetId,H,D,S;d=((H=this.data)==null?void 0:(D=H.identifier)==null?void 0:D.tag)||((S=this.data)==null?void 0:S.panelIdentifier);K=_.P(K,_.pds);var n;(f&&(K==null?void 0:K.targetId)===f||d&&(K==null?void 0:(n=K.panelIdentifier)==null?void 0:n.tag)===d)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.ev(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.V.attachVEs=function(K){var d,f;(K==null?0:(d=K.content)==null?0:(f=d.productListRenderer)==null?0:f.trackingParams)&&_.cv().graftServerVe(K.content.productListRenderer.trackingParams);var H,D;(K==null?0:(H=K.content)==null?0:(D=H.transcriptRenderer)==null?0:D.trackingParams)&&_.cv().graftServerVe(K.content.transcriptRenderer.trackingParams)};
_.V.onYtUpdateEngagementPanelAction=function(K){var d,f=(d=this.data)==null?void 0:d.targetId;K=_.P(K,nxl);f&&(K==null?void 0:K.targetId)===f&&(this.updatePanel({engagementPanelSectionListRenderer:{header:K==null?void 0:K.header,content:K==null?void 0:K.content}},!1),this.attachVEs(K))};
_.V.onYtShowEngagementPanelScrimAction=function(K){var d,f=(d=this.data)==null?void 0:d.targetId;K=_.P(K,yuP);f&&(K==null?void 0:K.engagementPanelTargetId)===f&&(this.scrimmed=!0)};
_.V.onYtHideEngagementPanelScrimAction=function(K){var d,f=(d=this.data)==null?void 0:d.targetId;K=_.P(K,VmE);f&&(K==null?void 0:K.engagementPanelTargetId)===f&&(this.scrimmed=!1)};
_.V.getIdentifier=function(){var K,d,f;return((K=this.data)==null?void 0:K.panelIdentifier)||((d=this.data)==null?void 0:(f=d.identifier)==null?void 0:f.tag)};
_.V.getSurface=function(){var K,d;return(K=this.data)==null?void 0:(d=K.identifier)==null?void 0:d.surface};
_.x$.Object.defineProperties(ch.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var K=this.getIdentifier();return K==="engagement-panel-youchat"||K==="PAyouchat"}}});
ch.prototype.visibilityChanged=ch.prototype.visibilityChanged;ch.prototype.isFullscreenChanged=ch.prototype.isFullscreenChanged;ch.prototype.isTheaterModeChanged=ch.prototype.isTheaterModeChanged;ch.prototype.dataChanged=ch.prototype.dataChanged;ch.prototype.forwardPopupClosedToFlowRootRenderer=ch.prototype.forwardPopupClosedToFlowRootRenderer;ch.prototype.onYtRendererstamperFinished=ch.prototype.onYtRendererstamperFinished;
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ch.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ch.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],ch.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],ch.prototype,"ytEventForwardingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ch.prototype,"data",void 0);
_.x([_.A({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.B("design:type",Object)],ch.prototype,"headerData",void 0);_.x([_.A(),_.B("design:type",Object)],ch.prototype,"secondaryHeaderData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ch.prototype,"visibility",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ch.prototype,"contentEmpty",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ch.prototype,"scrimmed",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ch.prototype,"dialog",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ch.prototype,"dropdown",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ch.prototype,"darkerPanels",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ch.prototype,"matchContentTheme",void 0);_.x([_.A(),_.B("design:type",Object)],ch.prototype,"disableAutoFill",void 0);
_.x([_.A({reflectToAttribute:!0,value:_.M("optimal_reading_width_comments_ep")}),_.B("design:type",Boolean)],ch.prototype,"optimalReadingWidthComments",void 0);_.x([_.A(),_.B("design:type",Number)],ch.prototype,"hideDelayMs",void 0);_.x([_.A({selector:_.Ny,reflectToAttribute:!0}),_.B("design:type",Object)],ch.prototype,"isFullscreen",void 0);_.x([_.A({selector:_.NG,reflectToAttribute:!0}),_.B("design:type",Object)],ch.prototype,"isTheaterMode",void 0);
_.x([_.A(),_.B("design:type",Number)],ch.prototype,"showDelayMs",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data.targetId"),_.B("design:type",Object),_.B("design:paramtypes",[])],ch.prototype,"targetId",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ch.prototype,"webSize",null);_.x([_.A(),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ch.prototype,"hideFooterBorder",null);
_.x([_.A(),_.B("design:type",Object)],ch.prototype,"isWatch",void 0);_.x([_.A(),_.B("design:type",Object)],ch.prototype,"originalTheaterState",void 0);_.x([_.A(),_.B("design:type",Object)],ch.prototype,"theaterDisablementPanelIdentifier",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ch.prototype,"modernPanels",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ch.prototype,"isWatchWhilePanel",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ch.prototype,"shortsPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ch.prototype,"liveChatEngagementPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ch.prototype,"liveChatReplyPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ch.prototype,"enableAnchoredPanel",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ch.prototype,"disableBackdropFilter",void 0);_.x([_.A(),_.B("design:type",Object)],ch.prototype,"trackEngagementPanelVisibility",void 0);_.x([_.n8("#header"),_.B("design:type",HTMLElement)],ch.prototype,"headerElement",void 0);_.x([_.n8("#header > *"),_.B("design:type",HTMLElement)],ch.prototype,"header",void 0);_.x([_.n8("ytd-section-list-renderer"),_.B("design:type",Object)],ch.prototype,"sectionListRendererElement",void 0);
_.x([_.n8("panel-ad-header-image-lockup-view-model"),_.B("design:type",HTMLElement)],ch.prototype,"adHeaderImageLockupViewModel",void 0);_.x([_.n8("#content"),_.B("design:type",HTMLElement)],ch.prototype,"contentElement",void 0);_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ch.prototype,"onYtRendererstamperFinished",null);
_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ch.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.x([_.an("data","isFullscreen","isTheaterMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ch.prototype,"dataChanged",null);_.x([_.SP("isTheaterMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ch.prototype,"isTheaterModeChanged",null);
_.x([_.SP("isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ch.prototype,"isFullscreenChanged",null);_.x([_.SP("visibility"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ch.prototype,"visibilityChanged",null);ch=_.x([_.Q({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],ch);
_.C(ch,"ytd-engagement-panel-section-list-renderer",function(){if(J8c!==void 0)return J8c;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return J8c=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var Npc;var uM=function(){var K=_.q.apply(this,arguments)||this;K.lastRenderedPanelIds=new Set;K.visiblePanels=[];K.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return K};
_.O(uM,_.q);_.V=uM.prototype;_.V.dataChanged=function(){if(this.data){for(var K=[],d=_.y(this.data),f=d.next();!f.done;f=d.next()){f=f.value;var H=void 0,D=void 0,S=(H=f)==null?void 0:(D=H.engagementPanelSectionListRenderer)==null?void 0:D.visibility;D=H=void 0;((H=f)==null?0:(D=H.engagementPanelSectionListRenderer)==null?0:D.targetId)&&S!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&K.push(f)}this.visiblePanels=K}else this.visiblePanels=[]};
_.V.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}}};
_.V.withoutVisiblePanelById=function(K){return this.visiblePanels.filter(function(d){var f;return((f=d.engagementPanelSectionListRenderer)==null?void 0:f.targetId)!==K})};
_.V.onYtChangeEngagementPanelVisibilityAction=function(K){var d=this,f=_.P(K,_.j16);if(this.data&&(f==null?0:f.targetId)&&(f==null?0:f.visibility)){var H,D=(H=this.data.find(function(n){var u;return((u=n.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===f.targetId}))==null?void 0:H.engagementPanelSectionListRenderer;
if(D){var S=this.withoutVisiblePanelById(f.targetId);f.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(K=this.data.find(function(n){var u;return((u=n.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===f.targetId}))&&(S=[K].concat(_.Me(S)));
this.hideDelayMs&&f.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&S.length===0?_.oc.addJob(function(){D.visibility=f.visibility;d.visiblePanels=S},10,this.hideDelayMs):(D.visibility=f.visibility,this.visiblePanels=S);
_.p1(this.hostElement,"yt-engagement-panels-visible-changed",[S])}}};
_.V.onRendererstamperFinished=function(){var K=new Set(this.visiblePanels.map(function(d){var f;return(f=d.engagementPanelSectionListRenderer)==null?void 0:f.targetId}));
this.handlePanelVisibilityChange(K,this.lastRenderedPanelIds);this.lastRenderedPanelIds=K};
_.V.handlePanelVisibilityChange=function(K,d){K=K===void 0?new Set:K;d=d===void 0?new Set:d;if(this.data)for(var f=_.y(this.data),H=f.next();!H.done;H=f.next()){H=H.value;var D=void 0,S=void 0,n=(D=H)==null?void 0:(S=D.engagementPanelSectionListRenderer)==null?void 0:S.targetId;if(n&&(D=d.has(n),S=K.has(n),n=void 0,!D&&S?(S=D=void 0,n=(D=H)==null?void 0:(S=D.engagementPanelSectionListRenderer)==null?void 0:S.onShowCommands):D&&!S&&(S=D=void 0,n=(D=H)==null?void 0:(S=D.engagementPanelSectionListRenderer)==
null?void 0:S.onHideCommands),n))for(H=_.y(n),n=H.next();!n.done;n=H.next())this.ytComponentBehavior.resolveCommand(n.value)}};
uM.prototype.onRendererstamperFinished=uM.prototype.onRendererstamperFinished;uM.prototype.dataChanged=uM.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],uM.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],uM.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],uM.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],uM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],uM.prototype,"lastRenderedPanelIds",void 0);_.x([_.A(),_.B("design:type",Number)],uM.prototype,"hideDelayMs",void 0);_.x([_.A(),_.B("design:type",Array)],uM.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Array)],uM.prototype,"visiblePanels",void 0);_.x([_.A(),_.B("design:type",Boolean)],uM.prototype,"isWatchWhilePanel",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uM.prototype,"dataChanged",null);_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uM.prototype,"onRendererstamperFinished",null);uM=_.x([_.Q({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],uM);
_.C(uM,"ytd-watch-engagement-panels",function(){if(Npc!==void 0)return Npc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Npc=K},{mode:1});var YWz;var aH=function(){return _.q.apply(this,arguments)||this};
_.O(aH,_.q);aH.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.TY(_.E(this.hostElement).querySelector("#text"),_.phB(_.fnv,this.data.companionLegalText))};
aH.prototype.computeAutoScrollEnabled=function(K,d){return K&&!d};
aH.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
aH.prototype.onToggleTap=function(){this.expanded=!this.expanded};
aH.prototype.expandedChanged=aH.prototype.expandedChanged;aH.prototype.dataChanged=aH.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ojZ),_.B("design:type",Object)],aH.prototype,"ytdAutoScrollBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],aH.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],aH.prototype,"expanded",void 0);
_.x([_.A({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.B("design:type",Boolean)],aH.prototype,"autoScrollEnabled",void 0);_.x([_.A(),_.B("design:type",String)],aH.prototype,"expanderIcon",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aH.prototype,"dataChanged",null);
_.x([_.SP("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aH.prototype,"expandedChanged",null);aH=_.x([_.Q({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],aH);
_.C(aH,"ytd-companion-legal-text-renderer",function(){if(YWz!==void 0)return YWz;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return YWz=K},{mode:1});var tzE;var IH=function(){var K=_.q.apply(this,arguments)||this;K.buttonUpdate=_.M("web_modern_buttons");K.kevlarWatchGrid=_.M("kevlar_watch_grid");K.centerAlignDescription=_.M("action_companion_center_align_description");K.truncateDomain=_.M("action_companion_truncate_domain");return K};
_.O(IH,_.q);_.V=IH.prototype;_.V.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.V.getOnLayoutVisibleCallback=function(){var K=_.T2("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var K=_.T2("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.layoutId:null};
_.V.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",IH.JSC$20195_DEFAULT_AD_BADGE_RENDERER);var K=this.getOnLayoutVisibleCallback();K&&K()}};
_.V.getButtonRenderer=function(K){return K.actionButton&&_.P(K.actionButton,_.tQ)?(delete _.P(K.actionButton,_.tQ).navigationEndpoint,_.P(K.actionButton,_.tQ)):{}};
_.V.onClick=function(K){var d=this;if((!_.M("web_modern_buttons")||!_.qa(_.qn(K),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){K=_.xP();var f=this.getLayoutId();K&&f&&_.M("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?K.getPlayerPromise().then(function(H){(new _.UR(H)).executeCommand(d.data.navigationEndpoint,f)}):_.M("kevlar_companion_resolve_command_killswitch")?_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.ev(this.hostElement,"yt-companion-ad-clicked",["action-companion",f])}};
_.x$.Object.defineProperties(IH.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((K=this.data)==null?0:(d=K.detailsLine)==null?0:(f=d.adRating)==null?0:f.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 K,d,f,H;return((K=this.data)==null?0:(d=K.detailsLine)==null?0:(f=d.adRating)==null?0:(H=f.ratingIcon)==null?0:H.iconType)?_.Hv(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H;return((K=this.data)==null?0:(d=K.detailsLine)==null?0:(f=d.texts)==null?0:(H=f[0])==null?0:H.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 K,d;return((K=this.data)==null?0:(d=K.description)==null?0:d.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var K=_.T2("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var K=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return K?K.indexOf("/default_banner")!==-1:!0}}});
IH.prototype.onClick=IH.prototype.onClick;IH.prototype.dataChanged=IH.prototype.dataChanged;IH.JSC$20195_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iB("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],IH.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],IH.prototype,"rendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],IH.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],IH.prototype,"buttonUpdate",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],IH.prototype,"kevlarWatchGrid",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],IH.prototype,"centerAlignDescription",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],IH.prototype,"truncateDomain",void 0);
_.x([_.A({computed:"computeButtonOverride(buttonUpdate)"}),_.B("design:type",Object)],IH.prototype,"buttonOverride",void 0);_.x([_.W("data.detailsLine.adRating.ratingText"),_.B("design:type",Object),_.B("design:paramtypes",[])],IH.prototype,"getRating",null);_.x([_.W("getRating"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],IH.prototype,"computeRatingHidden",null);
_.x([_.W("data.detailsLine.adRating.ratingIcon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],IH.prototype,"iconType",null);_.x([_.W("data.detailsLine.texts.0.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],IH.prototype,"getDetailsLine",null);_.x([_.W("getDetailsLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],IH.prototype,"computeDetailsLineHidden",null);
_.x([_.W("data.description.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],IH.prototype,"getDescriptionText",null);_.x([_.W("getDescriptionText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],IH.prototype,"computeDescriptionTextHidden",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],IH.prototype,"interactionLoggingClientData",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],IH.prototype,"hideBanner",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IH.prototype,"dataChanged",null);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],IH.prototype,"onClick",null);IH=_.x([_.Q({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],IH);
_.C(IH,"ytd-action-companion-ad-renderer",function(){if(tzE!==void 0)return tzE;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return tzE=K},{mode:_.p8("kevlar_poly_si_batch_j067")?1:2});var oUc;var $4l;var UM=function(){var K=_.q.apply(this,arguments)||this;K.buttonUpdate=_.M("web_modern_buttons");K.hideLegacyBanner=_.M("enable_dsa_one_click_ata_translators_infeed_elements");K.adInfoButtonStyle="mono";K.adInfoButtonType="text";K.noDotAdBadge=!0;return K};
_.O(UM,_.q);_.V=UM.prototype;_.V.getOnLayoutVisibleCallback=function(){var K=_.T2("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var K=_.T2("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.layoutId:null};
_.V.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 K=this.data.image.thumbnail.thumbnails[0];this.imageSrc=K.url?_.Xa(K.url):void 0;this.imageWidth=K.width||0;this.imageHeight=K.height||0}this.data.clickthroughEndpoint&&_.P(this.data.clickthroughEndpoint,_.TE)&&(K=_.P(this.data.clickthroughEndpoint,_.TE).url,_.M("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
K||"":K?(K=_.Xa(K),this.clickThroughUrl=_.Io(K)):this.clickThroughUrl=void 0);(K=this.getOnLayoutVisibleCallback())&&K()}};
_.V.onClick=function(K){_.qa(_.qn(K),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(K)};
_.V.handleClick=function(){var K=this;this.data&&this.data.clickthroughEndpoint&&(_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(d){K.macroReplacementBehavior.sendServiceRequestAction([d])}),_.ev(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.V.onLoad=function(){_.p1(this.hostElement,"yt-refit-popups-action")};
_.x$.Object.defineProperties(UM.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var K=_.T2("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var K=_.T2("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.interactionLoggingClientData:null}}});
UM.prototype.onLoad=UM.prototype.onLoad;UM.prototype.onClick=UM.prototype.onClick;UM.prototype.dataChanged=UM.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],UM.prototype,"rendererBehavior",void 0);_.x([_.l(dwE.YtMacroReplacementBehavior),_.B("design:type",Object)],UM.prototype,"macroReplacementBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],UM.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],UM.prototype,"buttonUpdate",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],UM.prototype,"hideLegacyBanner",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],UM.prototype,"adInfoButtonStyle",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],UM.prototype,"adInfoButtonType",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],UM.prototype,"macros",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],UM.prototype,"interactionLoggingClientData",null);_.x([_.A(),_.B("design:type",String)],UM.prototype,"clickThroughUrl",void 0);_.x([_.A(),_.B("design:type",_.cg)],UM.prototype,"imageSrc",void 0);_.x([_.A(),_.B("design:type",Number)],UM.prototype,"imageWidth",void 0);_.x([_.A(),_.B("design:type",Number)],UM.prototype,"imageHeight",void 0);_.x([_.A(),_.B("design:type",Object)],UM.prototype,"noDotAdBadge",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UM.prototype,"dataChanged",null);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],UM.prototype,"onClick",null);_.x([_.VV("load"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UM.prototype,"onLoad",null);UM=_.x([_.Q({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],UM);
_.C(UM,"ytd-image-companion-renderer",function(){if($4l!==void 0)return $4l;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return $4l=K},{mode:_.p8("kevlar_poly_si_batch_j067")?1:2});var EUt;var RH=function(){return _.q.apply(this,arguments)||this};
_.O(RH,_.q);_.V=RH.prototype;_.V.dataChanged=function(){this.set("data.adBadge",RH.JSC$20204_DEFAULT_AD_BADGE_RENDERER);if(this.data){var K=this.getOnLayoutVisibleCallback();K&&K()}};
_.V.getOnLayoutVisibleCallback=function(){var K=_.T2("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var K=_.T2("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.layoutId:null};
_.V.onCompanionClicked=function(K){this.data&&(K.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.ev(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.V.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var K=_.xP(),d=this.getLayoutId(),f=this.data.clickToAdvSiteEndpoint;K&&d&&_.M("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?K.getPlayerPromise().then(function(H){(new _.UR(H)).executeCommand(f,d)}):_.Zp(this.hostElement,"yt-navigate",{endpoint:f})}};
_.V.sendTrackingPings=function(K){if(K&&K.length!==0&&K[0].loggingUrls&&(K=K[0].loggingUrls.map(this.getBaseUrl)))for(var d=0;d<K.length;d++)_.T7(K[d])};
_.V.getBaseUrl=function(K){return K.baseUrl||""};
_.x$.Object.defineProperties(RH.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var K=_.T2("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.interactionLoggingClientData:null}}});
RH.prototype.onCompanionClicked=RH.prototype.onCompanionClicked;RH.prototype.dataChanged=RH.prototype.dataChanged;RH.JSC$20204_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.iB("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],RH.prototype,"data",void 0);_.x([_.n8("#title"),_.B("design:type",HTMLElement)],RH.prototype,"shopTitle",void 0);
_.x([_.an("data.impressionEndpoints"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RH.prototype,"dataChanged",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],RH.prototype,"interactionLoggingClientData",null);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],RH.prototype,"onCompanionClicked",null);
RH=_.x([_.Q({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],RH);
_.C(RH,"ytd-shopping-companion-renderer",function(){if(EUt!==void 0)return EUt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return EUt=K},{mode:1});_.sP(_.C8(function(K){var d=K.data;var f=_.Co();_.T1(f,function(){return d().interaction},NnP);
_.wU(f,{visibilityCallback:function(H){var D,S=(D=d().interaction)==null?void 0:D.onFirstVisible;H&&S&&_.me(S)},
showOption:_.LW});_.b8(function(){var H,D;D=(D=_.T2("yt.www.ads.eventcache.getLastCompanionData"))?(D=D())&&D.onLayoutVisibleCallback:null;(H=D)==null||H()});
return _.U("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.cp(function(){_.p1(f.value,"yt-refit-popups-action")}),
el:f,"aria-label":function(){var H,D;return(H=d().interaction)==null?void 0:(D=H.accessibility)==null?void 0:D.label}},_.U("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.U(_.z1,{data:function(){return d().adImage}},{adImageViewModel:function(H){return _.U(_.Vy,{data:H.data,
targetHeight:80,customCommandResolver:NnP})}})),_.U("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.U("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.U(_.z1,{data:function(){return d().adBadge}},{adBadgeViewModel:function(H){return _.U(_.wW,{data:H.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.U("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.U(_.z1,{data:function(){return d().menu}},{buttonViewModel:_.oY}))))},"Ti"),"banner-image-layout-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=K.data;K=_.Co();_.T1(K,function(){return d().interaction},Yic);
_.wU(K,{visibilityCallback:function(f){var H,D=(H=d().interaction)==null?void 0:H.onFirstVisible;f&&D&&_.me(D)},
showOption:_.LW});_.b8(function(){var f,H;H=(H=_.T2("yt.www.ads.eventcache.getLastCompanionData"))?(H=H())&&H.onLayoutVisibleCallback:null;(f=H)==null||f()});
return _.U("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:K},_.U("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.U(_.z1,{data:function(){return d().adImage}},{adImageViewModel:function(f){return _.U(_.Vy,{data:f.data,
targetHeight:80,customCommandResolver:Yic})}})),_.U("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.U("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.U(_.z1,{data:function(){return d().adAvatarLockup}},{adAvatarLockupViewModel:function(f){return _.U(PKw,{data:f.data,
customCommandResolver:Yic})}})),_.U(_.z1,{data:function(){return d().adButton}},{adButtonViewModel:function(f){return _.U(_.JH,{data:f.data,
customCommandResolver:Yic})}}),_.U("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.U(_.z1,{data:function(){return d().menu}},{buttonViewModel:_.oY}))))},"Ui"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.rs}});var hVz={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"},FK=function(){var K=_.q.apply(this,arguments)||this;K.updateCompanionDataJobId=0;K.contentVideoId=null;K.player=null;K.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return K};
_.O(FK,_.q);_.V=FK.prototype;_.V.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:hVz}}};
_.V.attached=function(){var K=this,d=_.xP();d&&d.getPlayerPromise().then(function(f){K.getCachedDataAndListen(f)})};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.V.updateRendererStamper=function(){var K={};if(this.data)for(var d in hVz)if(this.data[d]){K[d]=this.data[d];break}if(this.oneofRenderer!=void 0||Object.keys(K).length)this.oneofRenderer=K};
_.V.getCachedDataAndListen=function(K){var d=this.retrieveCachedCompanionData();d&&Object.keys(d).length&&this.receiveCompanionData(d);this.ytPlayerListenerBehavior.listenToPlayerEvent(K,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=K};
_.V.retrieveCachedCompanionData=function(){return _.Hu.yt&&_.Hu.yt.www&&_.Hu.yt.www.ads&&_.Hu.yt.www.ads.eventcache&&_.Hu.yt.www.ads.eventcache.getLastCompanionData?_.Hu.yt.www.ads.eventcache.getLastCompanionData():null};
_.V.receiveCompanionData=function(K){K&&Object.keys(K).length?(this.contentVideoId=K.contentVideoId,this.setCompanionData(K)):this.setCompanionData(K)};
_.V.setCompanionData=function(K){this.cancelPendingCompanionAdJobs();if(K){this.updateCompanionDataJobId=0;for(var d in hVz)hVz.hasOwnProperty(d)&&(this.data[d]=void 0);K.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",K.shoppingCompanionCarouselRenderer):K.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",K.imageCompanionAdRenderer):K.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",K.actionCompanionAdRenderer),_.p1(this.hostElement,
"yt-hide-unlimited-offer-module"),_.p1(this.hostElement,"yt-hide-tvfilm-offer-module")):K.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",K.bannerImageLayoutViewModel):K.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",K.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.V.dataChanged=function(){var K=this,d=_.xP();d?d.getPlayerPromise().then(function(f){K.contentVideoId&&f.getVideoUrl().includes("v="+K.contentVideoId)||(K.cancelPendingCompanionAdJobs(),K.updateRendererStamper())}):_.rF(Error("gm"))};
_.V.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.oc.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.V.handleCompanionAdClicked=function(K,d){this.player.onAdUxClicked(K,d);this.player.pauseVideo()};
FK.prototype.dataChanged=FK.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],FK.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],FK.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],FK.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],FK.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],FK.prototype,"oneofRenderer",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FK.prototype,"dataChanged",null);FK=_.x([_.Q({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],FK);
_.C(FK,"ytd-companion-slot-renderer",function(){if(oUc!==void 0)return oUc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return oUc=K},{mode:_.p8("kevlar_poly_si_batch_j067")?
1:2});var bzE;var zg=function(){return _.q.apply(this,arguments)||this};
_.O(zg,_.q);zg.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
zg.prototype.dataChanged=zg.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],zg.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],zg.prototype,"companionSlotData",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zg.prototype,"dataChanged",null);
zg=_.x([_.Q({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],zg);
_.C(zg,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(bzE!==void 0)return bzE;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return bzE=K},{mode:1});var m4K;var XK=function(){var K=_.q.apply(this,arguments)||this;K.skinnyMode=!1;K.COMPACT_EVENT_COUNT=4;K.onShelfToggleButtonTap=function(){K.logTap(K.data);K.showingMore=!K.showingMore};
K.onShelfToggleButtonFocus=function(){K.showingMore||(K.logTap(K.data),K.showingMore=!0,_.jW(K,function(){var d=K.COMPACT_EVENT_COUNT-1,f;(f=_.E(K.hostElement).querySelector("#event-"+d))==null||f.focus()}))};
return K};
_.O(XK,_.q);_.V=XK.prototype;_.V.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.V.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.V.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Dm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Dm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Dm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Dm(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Dm(this.infoTooltip,this.infoTooltip.hide))};
_.V.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Dm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Dm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Dm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Dm(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Dm(this.infoTooltip,this.infoTooltip.hide))};
_.V.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)};
_.V.onShowingMoreChanged=function(){var K;this.showingMoreChanged((K=this.showingMore)!=null?K:!1)};
_.V.showingMoreChanged=function(K){var d=this.get("data.events")||[];this.set("restEvents",d.slice(1,K?d.length:this.COMPACT_EVENT_COUNT).map(function(f){return f.ticketEventRenderer}));
d.slice(0,K?d.length:this.COMPACT_EVENT_COUNT).forEach(function(f){var H=_.te();f=f.ticketEventRenderer.trackingParams;_.YZ()&&H&&f&&(f=_.RG(f),H&&_.Gu(H,f))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.V.computeAriaLabel=function(K){return K.subtitle1+", "+K.subtitle2};
_.V.logTap=function(K){_.YZ()&&this.ytRendererBehavior.logExplicitClick(K)};
_.V.isKeyboardAction=function(K){return this.get("detail.x",K)===0&&this.get("detail.y",K)===0};
_.V.onFirstEventTap=function(K){K.target&&this.handleTap(K.target,this.firstEvent,this.isKeyboardAction(K))};
_.V.onTicketLinkTap=function(K){K.target&&this.handleTap(K.target,K.model.item,this.isKeyboardAction(K))};
_.V.handleTap=function(K,d,f){if(d.buttonCommand)if(d.hasMultipleOffers)Object.assign(_.P(d.buttonCommand,_.X3),{properties:{source:f?"keyboard":"tap"}}),this.logTap(d),this.popupPositionTarget=K,_.fd(this.hostElement,[d.buttonCommand],this.hostElement);else{var H;if((H=_.P(d.buttonCommand,_.TE))==null?0:H.url)this.logTap(d),_.ha(window,_.P(d.buttonCommand,_.TE).url)}};
XK.prototype.onShowingMoreChanged=XK.prototype.onShowingMoreChanged;XK.prototype.dataChanged=XK.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],XK.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],XK.prototype,"firstEvent",void 0);_.x([_.A(),_.B("design:type",Object)],XK.prototype,"restEvents",void 0);_.x([_.A(),_.B("design:type",String)],XK.prototype,"imageUrl",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],XK.prototype,"showingMore",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],XK.prototype,"canShowMore",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],XK.prototype,"skinnyMode",void 0);_.x([_.A(),_.B("design:type",HTMLElement)],XK.prototype,"popupPositionTarget",void 0);_.x([_.n8("#banner-info-tooltip"),_.B("design:type",Object)],XK.prototype,"infoTooltip",void 0);
_.x([_.n8("#info-container"),_.B("design:type",HTMLElement)],XK.prototype,"infoContainer",void 0);_.x([_.n8("#shelf-toggler"),_.B("design:type",HTMLElement)],XK.prototype,"shelfToggleButton",void 0);_.x([_.n8("#separator"),_.B("design:type",HTMLDivElement)],XK.prototype,"separator",void 0);_.x([_.A(),_.B("design:type",String)],XK.prototype,"shelfTogglerLabelText",void 0);_.x([_.A(),_.B("design:type",String)],XK.prototype,"shelfTogglerIcon",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XK.prototype,"dataChanged",null);_.x([_.an("showingMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XK.prototype,"onShowingMoreChanged",null);XK=_.x([_.Q({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],XK);
_.C(XK,"ytd-ticket-shelf-renderer",function(){if(m4K!==void 0)return m4K;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return m4K=K},{mode:1});var lO5;var WBc;var vh=function(){return _.q.apply(this,arguments)||this};
_.O(vh,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vh.prototype,"data",void 0);vh=_.x([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],vh);
_.C(vh,"ytd-comments-entry-point-message-renderer",function(){if(WBc!==void 0)return WBc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return WBc=K},{mode:1});var Gq5;var MN=function(){return _.q.apply(this,arguments)||this};
_.O(MN,_.q);_.x$.Object.defineProperties(MN.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.teaserAvatar)}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],MN.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],MN.prototype,"hasAvatar",null);MN=_.x([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],MN);
_.C(MN,"ytd-comments-entry-point-teaser-renderer",function(){if(Gq5!==void 0)return Gq5;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Gq5=K},{mode:1});var Ary;var Ph=function(){return _.q.apply(this,arguments)||this};
_.O(Ph,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ph.prototype,"data",void 0);Ph=_.x([_.Q({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],Ph);
_.C(Ph,"ytd-comments-simplebox-renderer",function(){if(Ary!==void 0)return Ary;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Ary=K},{mode:1});var gV=function(){var K=_.q.apply(this,arguments)||this;K.fullHeight=!_.M("comment_teaser_full_height_kill_switch")&&_.M("kevlar_watch_grid");return K};
_.O(gV,_.q);gV.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"}}}};
gV.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
gV.prototype.onTap=function(){var K=this.tapCommand;K&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(K))};
gV.prototype.onKeyUp=function(K){if(K.keyCode===13)this.onTap()};
_.x$.Object.defineProperties(gV.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null?0:K.onTap)return this.data.onTap;var d,f;if(((d=this.data)==null?0:d.teaserContent)||((f=this.data)==null?0:f.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)!=null&&K.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
gV.prototype.onKeyUp=gV.prototype.onKeyUp;gV.prototype.onTap=gV.prototype.onTap;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],gV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],gV.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gV.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gV.prototype,"fullHeight",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gV.prototype,"tapCommand",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gV.prototype,"simpleboxPlaceholder",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gV.prototype,"hasSimpleboxPlaceholder",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gV.prototype,"simpleboxAvatar",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gV.prototype,"teaserContent",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gV.prototype,"hasTeaserContent",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gV.prototype,"teaserAvatar",null);
_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gV.prototype,"hasTeaserAvatar",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gV.prototype,"messageText",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gV.prototype,"contentRenderer",null);_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gV.prototype,"hasContents",null);
_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gV.prototype,"hasContentRenderer",null);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gV.prototype,"onTap",null);_.x([_.VV("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[_.Vh]),_.B("design:returntype")],gV.prototype,"onKeyUp",null);gV=_.x([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],gV);
_.C(gV,"ytd-comments-entry-point-header-renderer",function(){if(lO5!==void 0)return lO5;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return lO5=K},{mode:1});var Tpy;_.fK(_.J0X,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var rrK=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),qWS={numberText:"",heightPx:2*rrK,shouldAnimate:!1},OM=function(){var K=_.q.apply(this,arguments)||this;K.usingAnimatedComponents=!0;K.wasDetailed=!1;K.JSC$20241_browserSupportsAnimation=_.M("web_supports_animations_api");K.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};K.detailed=!1;K.shouldAnimate=!1;K.viewCountProps=qWS;K.dateTextProps=
qWS;K.metadataBadgesInDescription=_.M("web_metadata_badges_in_description");return K};
_.O(OM,_.q);_.V=OM.prototype;_.V.resetAnimationState=function(){this.shouldAnimate=!1};
_.V.updateDynamicMetadata=function(){if(this.JSC$20241_browserSupportsAnimation){if(!this.detailed){var K,d,f,H;var D=(K=this.videoPrimaryInfoRenderer)==null?void 0:(d=K.viewCount)==null?void 0:(f=d.videoViewCountRenderer)==null?void 0:(H=f.extraShortViewCount)==null?void 0:H.simpleText;var S,n,u,a;var R=(S=this.videoPrimaryInfoRenderer)==null?void 0:(n=S.viewCount)==null?void 0:(u=n.videoViewCountRenderer)==null?void 0:(a=u.shortViewCount)==null?void 0:a.simpleText}if(!R){var F,z,v,g;D=(F=this.videoPrimaryInfoRenderer)==
null?void 0:(z=F.viewCount)==null?void 0:(v=z.videoViewCountRenderer)==null?void 0:(g=v.unlabeledViewCountValue)==null?void 0:g.simpleText;var N,h,m,T;R=(N=this.videoPrimaryInfoRenderer)==null?void 0:(h=N.viewCount)==null?void 0:(m=h.videoViewCountRenderer)==null?void 0:(T=m.viewCount)==null?void 0:T.simpleText}var r,J,L;K=Number((r=this.videoPrimaryInfoRenderer)==null?void 0:(J=r.viewCount)==null?void 0:(L=J.videoViewCountRenderer)==null?void 0:L.originalViewCount);var fB,w;r=(fB=this.videoPrimaryInfoRenderer)==
null?void 0:(w=fB.relativeDateText)==null?void 0:w.simpleText;var yO;fB=!((yO=this.videoPrimaryInfoRenderer)==null||!yO.relativeDateText);if(D&&R&&K&&(r||!fB)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;yO=R.split(new RegExp("("+D+")"));D=bXE(yO[0]);var FX;R={numberText:(FX=yO[1])!=null?FX:"",numberValue:K,heightPx:2*rrK,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var NJ;FX=((NJ=yO[2])!=null?NJ:"")+"  ";this.setViewCount(R,D,bXE(FX));
if(!this.detailed&&fB){D=r.split(/(\d+)/);NJ=bXE(D[0]);var $z;FX={numberText:($z=D[1])!=null?$z:"",heightPx:2*rrK,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var hN;$z=((hN=D[2])!=null?hN:"")+"  ";this.setDateText(FX,NJ,bXE($z))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.V.setViewCount=function(K,d,f){_.qQ(d)!==_.qQ(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=d);this.viewCountProps.numberText!==(K==null?void 0:K.numberText)&&(this.viewCountProps=K||qWS);_.qQ(f)!==_.qQ(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=f)};
_.V.setDateText=function(K,d,f){_.qQ(d)!==_.qQ(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=d);this.dateTextProps.numberText!==(K==null?void 0:K.numberText)&&(this.dateTextProps=K||qWS);_.qQ(f)!==_.qQ(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=f)};
_.V.onYtUpdateViewershipAction=function(K){this.videoPrimaryInfoRenderer&&(_.P(K,WLw).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.P(K,WLw).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.P(K,WLw).viewCount)))};
_.V.onYtUpdateDateTextAction=function(K){if(this.videoPrimaryInfoRenderer){K=_.P(K,_.m2l).dateText;this.shouldAnimate=!0;var d;((d=this.videoPrimaryInfoRenderer)==null?0:d.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",K):this.set("videoPrimaryInfoRenderer.dateText",K)}};
_.x$.Object.defineProperties(OM.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return h1U(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.qQ(h1U(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.qQ(this.viewCountPreNumberText),this.viewCountProps.numberText,_.qQ(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.qQ(this.dateTextPreNumberText),this.dateTextProps.numberText,_.qQ(this.dateTextPostNumberText)].join("")}}});
OM.prototype.updateDynamicMetadata=OM.prototype.updateDynamicMetadata;OM.prototype.resetAnimationState=OM.prototype.resetAnimationState;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],OM.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],OM.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],OM.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],OM.prototype,"videoPrimaryInfoRenderer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],OM.prototype,"detailed",void 0);_.x([_.A(),_.B("design:type",Object)],OM.prototype,"shouldAnimate",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],OM.prototype,"viewCountPreNumberText",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],OM.prototype,"viewCountProps",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],OM.prototype,"viewCountPostNumberText",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],OM.prototype,"dateTextPreNumberText",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],OM.prototype,"dateTextProps",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],OM.prototype,"dateTextPostNumberText",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],OM.prototype,"metadataBadgesInDescription",void 0);_.x([_.W("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.B("design:type",Object),_.B("design:paramtypes",[])],OM.prototype,"infoText",null);
_.x([_.W("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.B("design:type",String),_.B("design:paramtypes",[])],OM.prototype,"descriptionInfoTooltipText",null);_.x([_.W("detailed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],OM.prototype,"showDescriptionInfoTooltip",null);
_.x([_.W("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.B("design:type",String),_.B("design:paramtypes",[])],OM.prototype,"animatedViewCountAccessibilityLabel",null);_.x([_.W("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.B("design:type",String),_.B("design:paramtypes",[])],OM.prototype,"animatedDateTextAccessibilityLabel",null);
_.x([_.SP("videoPrimaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OM.prototype,"resetAnimationState",null);_.x([_.SP("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OM.prototype,"updateDynamicMetadata",null);OM=_.x([_.Q({disableElementRegistration:!0,is:"ytd-watch-info-text"})],OM);
_.C(OM,"ytd-watch-info-text",function(){if(Tpy!==void 0)return Tpy;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Tpy=K},{mode:1});var QAS;var jAt=_.C8(function(K){var d=K.data;var f=K.setTapCommand;_.ol(function(){var H=_.$A(d().onTap);f(H)});
return _.U("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.U(_.z1,{data:function(){return d().avatar}},{avatarViewModel:_.Pz}),_.U("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.U("span",null,function(){return d().simpleboxText})))},"Vi");var CKS=_.C8(function(K){return _.U("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.U(_.X,{cond:function(){return _.P(K.data().avatar,_.G1)},
then:function(d){return _.U(_.Pz,{data:d,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.U("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.U(_.ji,{text:function(){return K.data().teaserText}})))},"Wi");var x4c=_.C8(function(K){var d=K.data;var f=K.setTapCommand;_.ol(function(){var H=_.$A(d().onTap);f(H)});
return _.U("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.U(_.z1,{data:function(){return d().teasers}},{commentsEntryPointTeaserViewModel:CKS}))},"Xi");var LBS=_.C8(function(K){var d=K.data;var f=K.setTapCommand;_.ol(function(){var H=_.$A(d().onTap);f(H)});
return _.U("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.U(_.ji,{text:function(){return d().messageText}}))},"Yi");var BpE=_.C8(function(K){var d=K.data;var f=K.setTapCommand;var H=K.isDisabled;_.ol(function(){var D=(H==null?0:H())?void 0:_.$A(d().onTap);f(D)});
return _.U("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.U(_.U5,{icon:function(){return d().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.U(_.X,{cond:function(){return d().image},
then:function(D){return _.U(_.jV,{data:D,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.U(_.ji,{text:function(){return d().text},
className:function(){return d().image||d().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.U(_.z1,{data:function(){return d().button}},{buttonViewModel:function(D){return _.U(_.oY,{data:D.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:H==null?void 0:H()}}})}}))},"Zi");var JrZ=_.C8(function(K){var d=K.data;var f=K.itemIndex;var H=K.selectedIndex;var D=K.indexUpdatedCallback;var S=K.observer;K=K.title;var n=_.Co(),u=function(z){f()===H()&&D(z)},a=_.th(ngi),R=_.th(iXt),F=function(){var z,v,g;
return((z=d())==null?void 0:z.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!a()||((v=d())==null?void 0:v.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&R().includes("PAposts_by_host")||((g=d())==null?void 0:g.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&R().includes("PAyouchat")};
_.tR(function(){S&&S().observe(n.value)});
return _.U("yt-carousel-item-view-model",{el:n,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":K},_.U(_.z1,{data:function(){var z,v;return(v=(z=_.P(d().carouselItem,fyS))==null?void 0:z.textCarousel)!=null?v:d().carouselItem}},{textCarouselItemViewModel:function(z){return _.U(BpE,{data:z.data,
setTapCommand:u,isDisabled:F})},
commentTeaserCarouselItemViewModel:function(z){return _.U(x4c,{data:z.data,setTapCommand:u})},
commentInputBoxCarouselItemViewModel:function(z){return _.U(jAt,{data:z.data,setTapCommand:u})},
commentsEntryPointMessageViewModel:function(z){return _.U(LBS,{data:z.data,setTapCommand:u})}}))},"$i");var sA7=_.C8(function(K){var d=K.numDots;var f=K.activeIndex;return _.U("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.U(_.v_,{each:function(){return Array.from({length:d()})},
keyBy:"INDEX"},function(H,D){return _.U("div",{class:function(){var S={};return _.nK("ytCarouselDotsShapeDot",(S.ytCarouselDotsShapeDotActive=D===f(),S))}})}))},"aj");var kq5=_.C8(function(K){var d=K.data;var f=K.handleCarouselNavigation;var H=K.numItems;var D=K.selectedIndex;var S=function(){return{disabled:D()===0}},n=function(){return{disabled:D()===H()-1}};
return _.U("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.U("div",null,_.U("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return d().title}),_.U(_.X,{cond:function(){return d().subtitle},
then:function(u){return _.U("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return d().subtitleAccessibilityText}},u)}})),_.U(_.X,{cond:function(){return H()>1},
then:function(){return _.U("div",{class:"ytCarouselTitleViewModelNavigation"},_.U(sA7,{numDots:H,activeIndex:D}),_.U(_.X,{cond:function(){return d().previousButton},
then:function(u){return _.U(_.z1,{data:u},{buttonViewModel:function(a){return _.U(_.oY,{data:a.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return f(-1)},
buttonOverrides:S})}})}}),_.U(_.X,{cond:function(){return d().nextButton},
then:function(u){return _.U(_.z1,{data:u},{buttonViewModel:function(a){return _.U(_.oY,{data:a.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return f(1)},
buttonOverrides:n})}})}}))}}))},"bj");_.sP(_.C8(function(K){var d=K.data;var f=_.Co(),H=_.Co(),D=_.mD("HTML_DIR")==="rtl",S=!1,n=0,u=0;K=_.y(_.cC(0,void 0,"m0dtIf"));var a=K.next().value,R=K.next().value;K=_.y(_.cC(0,void 0,"fL6I6"));var F=K.next().value,z=K.next().value;K=_.y(_.cC(!1,void 0,"ZPrwNb"));var v=K.next().value,g=K.next().value,N=function(){var yO,FX,NJ;return(NJ=(yO=d())==null?void 0:(FX=yO.carouselTitles)==null?void 0:FX.length)!=null?NJ:0},h=function(){H.value&&H.value.scrollLeft!==n&&R((D?H.value.scrollLeft<n:H.value.scrollLeft>
n)?Math.min(a()+1,N()-1):Math.max(a()-1,0))},m;
window.IntersectionObserver&&(m=new IntersectionObserver(function(yO){yO=_.y(yO);for(var FX=yO.next();!FX.done;FX=yO.next())if(FX.value.isIntersecting){if(S){S=!1;break}h()}else R(u)},{threshold:.2}));
_.ol(function(){if(H.value){var yO=(D?-1:1)*(F()/N()+12)*(v()&&m?u:a());typeof H.value.scrollTo==="function"?H.value.scrollTo({left:yO,behavior:"smooth"}):H.value.scrollLeft=yO;n=yO;u=v()&&m?u:a()}});
var T,r=function(yO){T=yO};
_.tR(function(){var yO=function(){var NJ=H.value.offsetWidth*N(),$z=24*(N()-1);z(NJ+$z)};
yO();if(window.ResizeObserver){var FX=new ResizeObserver(yO);FX.observe(H.value);_.$F(function(){FX.disconnect();m&&m.disconnect()})}});
K=_.cp(function(yO){if(_.kmO(_.bX(yO),f.value,["BUTTON".toString()])||!T)return!1;_.eq().resolve(_.pQ).resolveCommand(T,{forceClickLogging:!0});return!1});
var J=function(yO){yO=a()+yO;yO>=0&&yO<N()&&(S=!0,R(yO))},L=_.cp(function(){g(!0);
return!1}),fB=_.cp(function(){m||h();
g(!1);return!1}),w={};
return _.U("yt-video-metadata-carousel-view-model",{class:_.SC("ytVideoMetadataCarouselViewModelHost",(w.ytVideoMetadataCarouselViewModelShortMode=_.M("mweb_video_metadata_carousel_short_mode"),w)),el:f,"on:click":K,"on:touchstart":L,"on:touchend":fB,hidden:function(){var yO,FX;return!((yO=d())==null?0:(FX=yO.carouselItems)==null?0:FX.length)}},_.U("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.U(_.X,{cond:function(){return d().carouselTitles},
then:function(yO){return _.U(_.z1,{data:function(){return yO()[v()&&m?u:a()]}},{carouselTitleViewModel:function(FX){return _.U(kq5,{data:FX.data,
handleCarouselNavigation:J,numItems:N,selectedIndex:a})}})}})),_.U("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:H},_.U("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+F()+"px;"}},_.U(_.X,{cond:function(){return d().carouselItems},
then:function(yO){return _.U(_.v_,{each:yO},function(FX,NJ){return _.U(_.z1,{data:function(){return FX}},{carouselItemViewModel:function($z){return _.U(JrZ,{data:$z.data,
itemIndex:NJ,selectedIndex:a,indexUpdatedCallback:r,observer:m,title:function(){a:{var hN=NJ();var bo,xz=(bo=d())==null?void 0:bo.carouselTitles;if(xz&&(hN=xz[hN])){var qJ;hN=(qJ=_.P(hN,d2i))==null?void 0:qJ.title;break a}hN=void 0}return hN}})}})})}}))))},"cj"),"yt-video-metadata-carousel-view-model",{props:{data:_.rs}});var wiw=_.M("web_action_buttons_update_owner_width")?32:12,NN=function(){var K=_.q.apply(this,arguments)||this;K.metadataBadgesInDescription=_.M("web_metadata_badges_in_description");K.descriptionCollapsed=!0;K.useFadedScrimDescription=_.M("kevlar_enable_faded_scrim_on_description");K.skinnyMode=!1;K.playlist=!1;K.isDark=document.documentElement.hasAttribute("dark");K.disableVideoOwnerOnTap=_.M("swatchie_video_owner_on_tap_ks");K.swatcherooDelayLoad=_.M("swatcheroo_enable_ghost_cards");K.primaryMenuWidth=
0;K.videoId="";K.titleHeadlineXs=_.M("web_watch_typography_title_headline_xs");K.titleHeadlineS=_.M("web_watch_typography_title_headline_s");K.titleHeadlineM=_.M("web_watch_typography_title_headline_m");K.titleHashtagBlackLinkified=_.M("web_title_hashtag_black_linkified");K.titleHashtagGreyLinkified=_.M("web_title_hashtag_grey_linkified");K.actionButtonsUpdateOwnerWidth=_.M("web_action_buttons_update_owner_width");K.shouldForceIconOnly=!1;K.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};K.isFullscreen=!1;K.isTheaterMode=!1;return K};
_.O(NN,_.q);_.V=NN.prototype;_.V.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.V.updateOwnerAndDescriptionPosition=function(){_.M("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.lt(this.bottomRowElement,this.ownerElement)):(_.lt(this.bottomRowElement,this.descriptionElement),_.lt(this.topRowElement,this.ownerElement)))};
_.V.titleOnTap=function(K){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.qa(_.qn(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;((d=window.getSelection())==null?0:d.toString().length)||this.handleExpandDescriptionCommands()}};
_.V.videoOwnerOnTap=function(K){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.qa(_.qn(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.V.detached=function(){var K=this,d;return _.c(function(f){(d=K.resizeObserver)==null||d.disconnect();_.iQ(f)})};
_.V.maybeAttachResizeObserver=function(){var K=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Ct(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){K.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.V.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var K=this.hostElement.clientWidth,d=Math.max(this.largerItemWrap?400:350,K/2-wiw);if(_.M("web_action_buttons_update_owner_width")){var f;d=(((f=document.getElementById("owner"))==null?void 0:f.clientWidth)||0)+wiw}this.actionsOnSeparateLine=this.primaryMenuWidth>K-d?!0:!1}};
_.V.stripAttributedDescription=function(K){return{content:K.content.replace(/[\r\n]{2,}/g,"\n")}};
_.V.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.M("web_modern_buttons"),forceIconButton:!_.M("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:_.M("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},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"}}}};
_.V.videoPrimaryInfoRendererChanged=function(){var K;if((K=this.videoPrimaryInfoRenderer)==null?0:K.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.V.videoSecondaryInfoRendererChanged=function(){var K,d;(d=(K=this.descriptionInlineExpander).collapse)==null||d.call(K);this.descriptionExpandClientVe=_.vp(110509);this.descriptionCollapseClientVe=_.vp(110510);K=_.te();d=_.YZ();K&&d&&(_.M("combine_ve_grafts")?(_.p2(_.cv(),this.descriptionExpandClientVe,d),_.p2(_.cv(),this.descriptionCollapseClientVe,d)):_.WG(K,d,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.V.structuredDescriptionContentRendererChanged=function(){_.M("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.V.updateTopLevelIconsOnly=function(){var K=this;_.M("top_level_update_killswitch")||this.menu&&_.oc.addLowPriorityJob(function(){K.menu.topLevelIconsOnly=K.skinnyMode},_.di("swathceroo_delay_flexible_menu_update",100))};
_.V.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.M("web_action_buttons_minimize_subscribe")};
_.V.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.V.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.V.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.V.onYtTextInlineExpanderExpandedChanged=function(){if(!_.M("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var K,d;(d=(K=this.structuredDescriptionContentRendererElement).resize)==null||d.call(K)}};
_.V.onRenderStamperFinished=function(K){(K==null?void 0:K.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.V.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.V.onYtExpanderLessTapped=function(){var K,d=(K=this.videoSecondaryInfoRenderer)==null?void 0:K.showLessCommand;d&&this.ytComponentBehavior.resolveCommand(d)};
_.V.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.V.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.V.onDescriptionClick=function(K){if(!_.qa(_.qn(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;((d=window.getSelection())==null?0:d.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.M("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.V.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.V.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.V.logCollapseClick=function(){var K=_.te();K&&this.descriptionCollapseClientVe&&_.rN(K,this.descriptionCollapseClientVe)};
_.V.logExpandClick=function(){var K=_.te();K&&this.descriptionExpandClientVe&&_.rN(K,this.descriptionExpandClientVe)};
_.V.collapseDescription=function(){this.descriptionCollapsed=!0};
_.V.scrollToTopOfContainer=function(){_.ev(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.V.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.V.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.V.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.V.resize=function(){if(this.descriptionInlineExpander){var K,d;(d=(K=this.descriptionInlineExpander).resize)==null||d.call(K)}else _.h3(new _.X4("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var f;(f=this.menu)==null||f.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.M("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.V.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var K,d,f,H,D=_.M("web_action_buttons_update_owner_width")?(f=(K=_.E(this.menu).querySelector("#button-shape"))==null?void 0:K.clientWidth)!=null?f:0:(H=(d=_.E(this.menu).querySelector("#button"))==null?void 0:d.clientWidth)!=null?H:0,S,n;K=((n=(S=_.E(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:S.clientWidth)!=null?n:0)+8+D;var u,a;D=(a=(u=_.E(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:u.children.length)!=null?a:2;K<=8*D||(this.primaryMenuWidth=K)}};
_.V.onYtUpdateTitleAction=function(K){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.P(K,lyw).title)};
_.V.onYtUpdateDescriptionAction=function(K){if(K=_.P(K,_.p3B)){var d,f=!((d=this.videoSecondaryInfoRenderer)==null||!d.attributedDescription);K.isEmpty||!K.description&&!K.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):K.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",K.attributedDescription):K.description&&(f?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Nd(K.description)):this.set("videoSecondaryInfoRenderer.description",K.description))}};
_.V.onYtDarkModeToggledAction=function(K){this.isDark=K};
_.V.registerPanel=function(){if(!_.M("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var K=_.M("web_watch_imax_theater_mode")&&this.isTheaterMode;K=_.M("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||K;var d=_.eq().resolve(_.XM);d&&!K&&d.registerPanel("engagement-panel-structured-description",this)}};
_.V.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.V.showPanel=function(K){this.expandDescription();var d=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;d.resize();var f,H=K==null?void 0:(f=K.sectionListEngagementPanelExtras)==null?void 0:f.scrollToItemSectionIdentifier;H?_.oc.addJob(function(){d==null||d.scrollToSection(H)},8):this.scrollToTopOfContainer()};
_.V.isVisible=function(){return!this.descriptionCollapsed};
_.V.getReloadContinuation=function(){};
_.V.hidePanel=function(){};
_.V.updatePanel=function(){};
_.x$.Object.defineProperties(NN.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.structuredDescriptionContentRenderer)!=null&&K.items){var d;K=_.y((d=this.structuredDescriptionContentRenderer)==null?void 0:d.items);for(d=K.next();!d.done;d=K.next())if(d=_.P(d.value,_.pkH))return d}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.videoPrimaryInfoRenderer)==null?0:K.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return!!((K=this.videoSecondaryInfoRenderer)==null?0:(d=K.owner)==null?0:(f=d.videoOwnerRenderer)==null?0:f.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.M("swatchie_sd_new_line_strip_ks")){var K,d;if((K=this.videoSecondaryInfoRenderer)==null?0:(d=K.attributedDescription)==null?0:d.content){var f,H;return(H=this.stripAttributedDescription((f=this.videoSecondaryInfoRenderer)==null?void 0:f.attributedDescription))!=null?H:{runs:[]}}}var D,S,n,u;return(u=(n=(D=this.videoSecondaryInfoRenderer)==null?void 0:D.description)!=null?n:(S=this.videoSecondaryInfoRenderer)==null?
void 0:S.attributedDescription)!=null?u:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var K,d;return(d=(K=this.videoSecondaryInfoRenderer)==null?void 0:K.headerRuns)!=null?d:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.commentsEntryPointHeaderRenderer)==null||!K.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.videoMetadataCarousel)==null||!K.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.di("swatchie_desc_lines",3):this.hasTeaserCarousel?_.di("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var K,d,f=Object.assign({},(K=this.videoSecondaryInfoRenderer)==null?void 0:(d=K.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer);if(f&&f.rows&&f.collapsedItemCount!==void 0&&!(f.rows.length<=f.collapsedItemCount))return f.rows=f.rows.slice(f.collapsedItemCount),f.collapsedItemCount=0,f}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var K,d,f=Object.assign({},(K=this.videoSecondaryInfoRenderer)==null?void 0:(d=K.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer);if(f&&f.rows&&f.collapsedItemCount!==void 0)return f.rows=f.rows.slice(0,f.collapsedItemCount),f.collapsedItemCount=f.rows.length,f}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var K,d;return!!((K=this.structuredDescriptionContentRenderer)==null?0:(d=K.items)==null?0:d.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var K;return(K=this.videoSecondaryInfoRenderer)==null?void 0:K.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((K=this.videoSecondaryInfoRenderer)==null?0:(d=K.owner)==null?0:(f=d.videoOwnerRenderer)==null?0:f.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H;return!!((K=this.videoPrimaryInfoRenderer)==null?0:(d=K.videoActions)==null?0:(f=d.menuRenderer)==null?0:(H=f.flexibleItems)==null?0:H.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.TG(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.TG(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var K=this;if(_.M("web_title_hashtag_grey_delinkified")){var d,f=_.PR.unsafeClone((d=this.videoPrimaryInfoRenderer)==null?void 0:d.title);(d=f==null?void 0:f.runs)&&d.forEach(function(H){if(H==null?0:H.navigationEndpoint)H.textColor=4284506208,K.isDark&&(H.textColor=4289374890)});
return f}return(f=this.videoPrimaryInfoRenderer)==null?void 0:f.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.M("web_title_hashtag_black_delinkified")||_.M("web_title_hashtag_grey_delinkified")}}});
NN.prototype.resetDescriptionState=NN.prototype.resetDescriptionState;NN.prototype.registerPanel=NN.prototype.registerPanel;NN.prototype.onYtExpanderLessTapped=NN.prototype.onYtExpanderLessTapped;NN.prototype.onYtExpanderMoreTapped=NN.prototype.onYtExpanderMoreTapped;NN.prototype.onRenderStamperFinished=NN.prototype.onRenderStamperFinished;NN.prototype.onYtTextInlineExpanderExpandedChanged=NN.prototype.onYtTextInlineExpanderExpandedChanged;NN.prototype.onYtTextInlineExpanderCollapseClicked=NN.prototype.onYtTextInlineExpanderCollapseClicked;
NN.prototype.onYtTextInlineExpanderExpandClicked=NN.prototype.onYtTextInlineExpanderExpandClicked;NN.prototype.moveActionsElement=NN.prototype.moveActionsElement;NN.prototype.updateShouldForceIconOnly=NN.prototype.updateShouldForceIconOnly;NN.prototype.updateTopLevelIconsOnly=NN.prototype.updateTopLevelIconsOnly;NN.prototype.structuredDescriptionContentRendererChanged=NN.prototype.structuredDescriptionContentRendererChanged;NN.prototype.videoSecondaryInfoRendererChanged=NN.prototype.videoSecondaryInfoRendererChanged;
NN.prototype.videoPrimaryInfoRendererChanged=NN.prototype.videoPrimaryInfoRendererChanged;NN.prototype.maybeUpdateActionsOnSeparateLine=NN.prototype.maybeUpdateActionsOnSeparateLine;NN.prototype.updateOwnerAndDescriptionPosition=NN.prototype.updateOwnerAndDescriptionPosition;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],NN.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],NN.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],NN.prototype,"ytdReduxBehavior",void 0);_.x([_.n8("#above-the-fold"),_.B("design:type",HTMLElement)],NN.prototype,"aboveTheFoldContainer",void 0);_.x([_.n8("#menu ytd-menu-renderer"),_.B("design:type",Object)],NN.prototype,"menu",void 0);
_.x([_.n8("#description-inline-expander"),_.B("design:type",Object)],NN.prototype,"descriptionInlineExpander",void 0);_.x([_.n8("#faded-structured-description"),_.B("design:type",Object)],NN.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.x([_.n8("#structured-description"),_.B("design:type",Object)],NN.prototype,"structuredDescriptionContentRendererElement",void 0);_.x([_.n8("#title"),_.B("design:type",HTMLElement)],NN.prototype,"titleElement",void 0);
_.x([_.n8("#description"),_.B("design:type",HTMLElement)],NN.prototype,"descriptionElement",void 0);_.x([_.n8("#description-interaction"),_.B("design:type",Object)],NN.prototype,"descriptionInteraction",void 0);_.x([_.n8("#owner"),_.B("design:type",HTMLElement)],NN.prototype,"ownerElement",void 0);_.x([_.n8("#top-row"),_.B("design:type",HTMLElement)],NN.prototype,"topRowElement",void 0);_.x([_.n8("#bottom-row"),_.B("design:type",HTMLElement)],NN.prototype,"bottomRowElement",void 0);
_.x([_.n8("#actions"),_.B("design:type",HTMLElement)],NN.prototype,"actionsElement",void 0);_.x([_.n8("#bottom-actions"),_.B("design:type",HTMLElement)],NN.prototype,"bottomActionsElement",void 0);_.x([_.n8("#ytd-watch-info-text"),_.B("design:type",Object)],NN.prototype,"watchInfoTextElement",void 0);_.x([_.A(),_.B("design:type",Object)],NN.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],NN.prototype,"videoPrimaryInfoRenderer",void 0);
_.x([_.A(),_.B("design:type",Object)],NN.prototype,"videoSecondaryInfoRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],NN.prototype,"commentsEntryPointHeaderRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],NN.prototype,"videoMetadataCarousel",void 0);_.x([_.A(),_.B("design:type",Object)],NN.prototype,"structuredDescriptionContentRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],NN.prototype,"videoSummary",void 0);
_.x([_.A(),_.B("design:type",Object)],NN.prototype,"merchShelf",void 0);_.x([_.A(),_.B("design:type",Object)],NN.prototype,"infoPanelBelowMetadata",void 0);_.x([_.W("structuredDescriptionContentRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"productShelf",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"metadataBadgesInDescription",void 0);
_.x([_.W("videoPrimaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"shouldHideBadges",null);_.x([_.W("productShelf","descriptionCollapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],NN.prototype,"shouldShowProductShelf",null);_.x([_.A(),_.B("design:type",Boolean)],NN.prototype,"isWatchFlexy",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"descriptionCollapsed",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],NN.prototype,"useFadedScrimDescription",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"skinnyMode",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("videoSecondaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"largerItemWrap",null);_.x([_.A(),_.B("design:type",Object)],NN.prototype,"playlist",void 0);_.x([_.A(),_.B("design:type",Object)],NN.prototype,"clarifyBox",void 0);
_.x([_.A(),_.B("design:type",Object)],NN.prototype,"playerAds",void 0);_.x([_.A(),_.B("design:type",Boolean)],NN.prototype,"isDark",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],NN.prototype,"actionsOnSeparateLine",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"disableVideoOwnerOnTap",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"swatcherooDelayLoad",void 0);
_.x([_.A(),_.B("design:type",Boolean)],NN.prototype,"suppressTopLevelMetadataRows",void 0);_.x([_.A(),_.B("design:type",Object)],NN.prototype,"primaryMenuWidth",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"videoId",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"titleHeadlineXs",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"titleHeadlineS",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"titleHeadlineM",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"titleHashtagBlackLinkified",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"titleHashtagGreyLinkified",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.x([_.A(),_.B("design:type",Object)],NN.prototype,"shouldForceIconOnly",void 0);_.x([_.an("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"updateOwnerAndDescriptionPosition",null);_.x([_.an("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.x([_.W("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"descriptionText",null);_.x([_.W("videoSecondaryInfoRenderer.headerRuns"),_.B("design:type",Array),_.B("design:paramtypes",[])],NN.prototype,"headerRuns",null);_.x([_.A({value:!1}),_.W("commentsEntryPointHeaderRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"hasTeaser",null);
_.x([_.A({value:!1,reflectToAttribute:!0}),_.W("videoMetadataCarousel"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"hasTeaserCarousel",null);_.x([_.A({value:3}),_.W("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"descriptionMaxLines",null);_.x([_.W("videoSecondaryInfoRenderer.metadataRowContainer"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"collapsibleMetadataRows",null);
_.x([_.W("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"alwaysVisibleMetadataRows",null);_.x([_.W("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],NN.prototype,"hasInlineStructuredDescription",null);
_.x([_.W("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],NN.prototype,"showInlineStructuredDescription",null);_.x([_.W("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"descriptionExpandCommand",null);
_.x([_.W("videoSecondaryInfoRenderer.owner"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"videoOwnerCommand",null);_.x([_.A({reflectToAttribute:!0}),_.W("videoPrimaryInfoRenderer.videoActions"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],NN.prototype,"flexMenuEnabled",null);_.x([_.A({selector:_.Ny,reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"isFullscreen",void 0);
_.x([_.A({selector:_.NG,reflectToAttribute:!0}),_.B("design:type",Object)],NN.prototype,"isTheaterMode",void 0);_.x([_.W("descriptionText","useFadedScrimDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],NN.prototype,"showAttributedStringDescription",null);_.x([_.W("descriptionText","useFadedScrimDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],NN.prototype,"showFormattedStringDescription",null);
_.x([_.W("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],NN.prototype,"showFadedStructuredDescription",null);_.x([_.an("videoPrimaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"videoPrimaryInfoRendererChanged",null);_.x([_.W("videoPrimaryInfoRenderer.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"videoTitle",null);
_.x([_.W("videoPrimaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],NN.prototype,"noEndpoints",null);_.x([_.an("videoSecondaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"videoSecondaryInfoRendererChanged",null);
_.x([_.SP("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"structuredDescriptionContentRendererChanged",null);_.x([_.SP("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"updateTopLevelIconsOnly",null);
_.x([_.SP("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"updateShouldForceIconOnly",null);_.x([_.SP("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"moveActionsElement",null);_.x([_.VV("yt-text-inline-expander-expand-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.x([_.VV("yt-text-inline-expander-collapse-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.x([_.VV("yt-text-inline-expander-expanded-changed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],NN.prototype,"onRenderStamperFinished",null);_.x([_.VV("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"onYtExpanderMoreTapped",null);_.x([_.VV("yt-expander-less-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"onYtExpanderLessTapped",null);
_.x([_.SP("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"registerPanel",null);_.x([_.SP("videoSecondaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NN.prototype,"resetDescriptionState",null);NN=_.x([_.Q({disableElementRegistration:!0,is:"ytd-watch-metadata"})],NN);
_.C(NN,"ytd-watch-metadata",function(){if(QAS!==void 0)return QAS;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return QAS=K},{mode:2});_.DEU=function(K){_.gG.call(this);this.JSC$20264_watchApi=K;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;Zzl(this);eVS(this);piK(this);KYU(this);dEw(this);fNw(this);Hkz(this)};
_.O(_.DEU,_.gG);var piK=function(K){var d=function(){_.M("kevlar_is_pupi_enabled")||YC(K)};
K.JSC$20264_watchApi.getRoot().addEventListener("yt-player-updated",d);K.addOnDisposeCallback(function(){K.JSC$20264_watchApi.getRoot().removeEventListener("yt-player-updated",d)})},dEw=function(K){if(_.M("kevlar_endscreen_auto_theater_mode")){var d=K.JSC$20264_watchApi.subscribeToActiveChanged(function(){VXw(K)},!1);
K.addOnDisposeCallback(d)}},Zzl=function(K){var d,f,H,D,S;
_.c(function(n){if(n.nextAddress==1)return _.I(n,K.JSC$20264_watchApi.playerApi,2);d=n.yieldResult;f=function(u){u=!!u;tF(K)&&(u=u?2:1,_.jA.getInstance().setState(u,!0,!1))};
H=function(u){u&&_.yCi(_.j3().getState())&&(_.ev(K.JSC$20264_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),K.temporaryTheaterMode=!0)};
D=function(u){_.M("kevlar_player_update_autonav_on_new_data")&&u.type==="newdata"&&(_.M("kevlar_is_pupi_enabled")||YC(K))};
S=function(u){K.onPlayerStateChange(u)};
_.M("kevlar_endscreen_auto_theater_mode")&&d.addEventListener("onAutonavCancelled",H);d.addEventListener("onAutonavChangeRequest",f);d.addEventListener("onVideoDataChange",D);d.addEventListener("onStateChange",S);K.addOnDisposeCallback(function(){d.removeEventListener("onAutonavChangeRequest",f);d.removeEventListener("onVideoDataChange",D);d.removeEventListener("onStateChange",S);_.M("kevlar_endscreen_auto_theater_mode")&&d.removeEventListener("onAutonavCancelled",H)});
_.iQ(n)})},eVS=function(K){K.JSC$20264_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){K.autonavCancelledBySignal=!0;
_.M("kevlar_is_pupi_enabled")||YC(K)});
K.JSC$20264_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(d,f,H){f&&YC(K,H)});
K.JSC$20264_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){tF(K)&&_.jA.getInstance().setState(2,!0,!0)});
K.JSC$20264_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){tF(K)&&_.jA.getInstance().setState(1,!0,!0)});
K.addOnDisposeCallback(function(){K.JSC$20264_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");K.JSC$20264_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");K.JSC$20264_watchApi.unregisterActionHandler("yt-enable-autoplay-command");K.JSC$20264_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},KYU=function(K){var d=K.JSC$20264_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Hkz(K)}),f=K.JSC$20264_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){fNw(K)});
K.addOnDisposeCallback(function(){K.JSC$20264_watchApi.unsubscribeByKey(d);K.JSC$20264_watchApi.unsubscribeByKey(f)})},Hkz=function(K){K.autonavCancelledBySignal=!1;
_.M("kevlar_is_pupi_enabled")||YC(K)},fNw=function(K){var d=K.JSC$20264_watchApi.getWatchNextResponse(),f,H;
var D=(d=(H=_.P(d==null?void 0:(D=d.playerOverlays)==null?void 0:(f=D.playerOverlayRenderer)==null?void 0:f.autonavToggle,_.dVN))==null?void 0:H.enabled)?2:1;_.M("kevlar_is_pupi_enabled")?_.jA.getInstance().setState(D,!1,!1):YC(K);_.M("web_persist_server_autonav_state_on_client")&&typeof d==="boolean"&&_.Xtp(D===2)},tF=function(K){if(K.autonavCancelledBySignal)return!1;
var d,f,H,D;return!!((d=K.JSC$20264_watchApi.getWatchNextResponse())==null?0:(f=d.contents)==null?0:(H=f.twoColumnWatchNextResults)==null?0:(D=H.autoplay)==null?0:D.autoplay)};
_.DEU.prototype.onPlayerStateChange=function(K){if(K===0){K=!_.jA.getInstance().isAutoplaySetExplicitly();var d=this.JSC$20264_watchApi.getWatchNextResponse(),f,H,D,S;d=_.P(d==null?void 0:(f=d.contents)==null?void 0:(H=f.twoColumnWatchNextResults)==null?void 0:(D=H.autoplay)==null?void 0:(S=D.autoplay)==null?void 0:S.autoplayExplicitChoiceDialogRenderer,_.YAL);tF(this)&&K&&d&&_.V2.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:d},popupType:"DIALOG"}})}else VXw(this)};
var VXw=function(K){K.temporaryTheaterMode&&(K.temporaryTheaterMode=!1,_.ev(K.JSC$20264_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},YC=function(K,d){d=d===void 0?!1:d;
var f;_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20264_watchApi.playerApi,2);f=H.yieldResult;tF(K)?f.setAutonavState(_.jA.getInstance().getState(),d):f.setAutonavState(1,d);_.iQ(H)})};var SCS={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"};_.nDc=function(K){_.gG.call(this);var d=this;this.JSC$20269_watchApi=K;var f=this.JSC$20269_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){y1i(d)});
this.addOnDisposeCallback(function(){d.JSC$20269_watchApi.unsubscribeByKey(f)});
y1i(this)};
_.O(_.nDc,_.gG);var y1i=function(K){var d=K.JSC$20269_watchApi.getPlayerResponse(),f=K.JSC$20269_watchApi.getWatchNextResponse();if(!_.QAp(d==null?void 0:d.playabilityStatus,f==null?void 0:f.playerOverlays)){var H;var D=d==null?void 0:(H=d.playabilityStatus)==null?void 0:H.errorScreen}K.JSC$20269_watchApi.provideRenderingData("ERROR_SCREEN",D)};var ikK=_.C8(function(K){var d=K.data;return _.U("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.cp(function(){var f=d().onTap;f&&_.eq().resolve(_.pQ).resolveCommand(f)})},_.U("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.U(_.ji,{text:function(){return d().title}})),_.U("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.U(_.z1,{data:function(){return d().channelAvatar}},{avatarViewModel:_.Pz}),_.U(_.ji,{text:function(){return d().subtitle}})))},
"dj");var oH={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER"},c1z=_.C8(function(K){var d=K.data;var f=_.th(_.Ny);return _.U("yt-player-quick-action-buttons",{class:_.SC("ytPlayerQuickActionButtonsHost")},_.U(_.v_,{each:function(){var H=d(),D=f();H=JSON.parse(JSON.stringify(H));for(var S=_.M("web_watch_action_bar_resize_buttons"),n=_.M("delhi_modern_web_player_icons")&&!_.M("enable_web_delhi_icons"),u=_.y(H),a=u.next();!a.done;a=u.next()){var R=
a.value,F=void 0;a=_.P((F=_.P(R,_.gP))==null?void 0:F.toggleButtonViewModel,_.v9);var z=void 0;F=_.P((z=_.P(R,_.Ok))==null?void 0:z.toggleButtonViewModel,_.v9);R=_.P(R,_.XN);a?(F=_.P(a.defaultButtonViewModel,_.XN),a=_.P(a.toggledButtonViewModel,_.XN),F&&(n&&F.iconName&&(F.iconName=oH[F.iconName]),!D&&S&&(F.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),a&&(n&&a.iconName&&(a.iconName=oH[a.iconName]),!D&&S&&(a.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):F?(a=_.P(F.defaultButtonViewModel,_.XN),F=_.P(F.toggledButtonViewModel,
_.XN),a&&(n&&a.iconName&&(a.iconName=oH[a.iconName]),!D&&S&&(a.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),F&&(n&&F.iconName&&(F.iconName=oH[F.iconName]),!D&&S&&(F.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):R&&(n&&R.iconName&&(R.iconName=oH[R.iconName]),!D&&S&&(R.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))}return H}},function(H){return _.U(_.z1,{data:function(){return H}},{buttonViewModel:_.oY,
likeButtonViewModel:function(D){return _.U(_.YY,{data:D.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.NZ})}))},"ej");_.aNK=function(K){_.gG.call(this);var d=this;this.JSC$20272_watchApi=K;K=_.y(_.cC({},void 0,"ufFdVc"));this.quickActionsViewModel=K.next().value;this.setQuickActionsViewModel=K.next().value;K=_.y(_.cC({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=K.next().value;this.setPlayerOverlayVideoDetailsRenderer=K.next().value;var f=this.JSC$20272_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){uYU(d)});
this.addOnDisposeCallback(function(){d.JSC$20272_watchApi.unsubscribeByKey(f)});
uYU(this)};
_.O(_.aNK,_.gG);
var uYU=function(K){var d,f,H,D,S,n,u,a,R,F,z,v,g,N;_.c(function(h){if(h.nextAddress==1)return _.I(h,K.JSC$20272_watchApi.playerApi,2);d=h.yieldResult;f=K.JSC$20272_watchApi.getWatchNextResponse();S=(H=f)==null?void 0:(D=H.playerOverlays)==null?void 0:D.playerOverlayRenderer;u=_.P((n=S)==null?void 0:n.fullscreenQuickActionsBar,_.SAL);(R=(a=K).setQuickActionsViewModel)==null||R.call(a,u||{});u&&INt(K,d);v=(F=S)==null?void 0:(z=F.videoDetails)==null?void 0:z.playerOverlayVideoDetailsRenderer;(N=(g=
K).setPlayerOverlayVideoDetailsRenderer)==null||N.call(g,v||{});v&&UEZ(K,d);_.iQ(h)})},INt=function(K,d){if(!K.quickActionButtonsContainer){K.quickActionButtonsContainer=document.createElement("div");
d.setFullscreenQuickActions(K.quickActionButtonsContainer);var f=function(){return K.quickActionsViewModel().quickActionButtons||[]},H=_.Ob(K.quickActionButtonsContainer,function(){return _.U(c1z,{data:f})});
K.addOnDisposeCallback(function(){d.setFullscreenQuickActions(void 0);H()})}},UEZ=function(K,d){if(!K.playerOverlayVideoDetailsRendererContainer){K.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
d.setPlayerOverlayVideoDetailsRenderer(K.playerOverlayVideoDetailsRendererContainer);var f=_.Ob(K.playerOverlayVideoDetailsRendererContainer,function(){return _.U(ikK,{data:K.playerOverlayVideoDetailsRenderer})});
K.addOnDisposeCallback(function(){d.setPlayerOverlayVideoDetailsRenderer(void 0);f()})}};_.$C=function(K){_.gG.call(this);var d=this;this.JSC$20277_watchApi=K;this.JSC$20277_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;K=_.n5(_.j3(),_.Ny,function(f){RDc(d,f)});
this.addOnDisposeCallback(K);K=_.n5(_.j3(),_.Yv,function(f){d.onWatchScroll(f)});
this.addOnDisposeCallback(K);_.M("kevlar_watch_while_v2")&&(K=_.n5(_.j3(),_.Yo,function(f){FYz(d,f)}),this.addOnDisposeCallback(K));
zDK(this);XBZ(this);vD7();this.onWatchScroll(_.Yv(_.j3().getState()));_.lx("START_IN_FULL_WINDOW_MODE")&&this.JSC$20277_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.O(_.$C,_.gG);var zDK=function(K){K.JSC$20277_watchApi.registerActionHandler("yt-fullscreen-change-action",function(d){var f=K.JSC$20277_watchApi.isActive();d&&!f||_.j3().dispatch(_.es({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!d}}))});
K.addOnDisposeCallback(function(){K.JSC$20277_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},XBZ=function(K){var d,f;
_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20277_watchApi.playerApi,2);d=H.yieldResult;f=function(){K.onFullerscreenEduClicked()};
d.addEventListener("onFullerscreenEduClicked",f);K.addOnDisposeCallback(function(){d.removeEventListener("onFullerscreenEduClicked",f)});
_.iQ(H)})},RDc=function(K,d){var f;
_.c(function(H){if(H.nextAddress==1)return K.isFullscreen=!!_.Je(),_.I(H,K.JSC$20277_watchApi.playerApi,2);f=H.yieldResult;K.JSC$20277_miniplayerActive||f.setFauxFullscreen(K.isFullscreen);if(d&&(K.JSC$20277_watchApi.focusOnPlayer(),!K.fullerscreenEduButtonShownThisPlayback)){K.fullerscreenEduButtonShownThisPlayback=!0;var D=_.KI("yt-fullerscreen-edu-button-shown-count")||0;_.p5("yt-fullerscreen-edu-button-shown-count",D+1,31536E3);K.updateFullerscreenEduButtonSubtleModeState()}_.iQ(H)})},FYz=function(K,
d){var f;
_.c(function(H){if(H.nextAddress==1)return K.JSC$20277_miniplayerActive=d,_.I(H,K.JSC$20277_watchApi.playerApi,2);f=H.yieldResult;f.setFauxFullscreen(!K.JSC$20277_miniplayerActive&&K.isFullscreen);_.iQ(H)})};
_.$C.prototype.onWatchScroll=function(K){var d=this,f,H;return _.c(function(D){if(D.nextAddress==1)return _.M("external_fullscreen_with_edu")?_.I(D,d.JSC$20277_watchApi.playerApi,2):D.return();f=D.yieldResult;H=K<=0;d.shouldShowFullerscreenEdu!==H&&(d.shouldShowFullerscreenEdu=H,f.updateFullerscreenEduButtonVisibility(!d.shouldShowFullerscreenEdu));_.iQ(D)})};
_.$C.prototype.onFullerscreenEduClicked=function(){this.JSC$20277_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var K=_.KI("yt-fullerscreen-edu-button-click-count")||0;_.p5("yt-fullerscreen-edu-button-click-count",K+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.$C.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var K=this,d,f,H,D,S,n;return _.c(function(u){if(u.nextAddress==1)return d=_.KI("yt-fullerscreen-edu-button-click-count")||0,f=_.KI("yt-fullerscreen-edu-button-shown-count")||0,H=_.di("external_fullscreen_button_click_threshold"),D=_.di("external_fullscreen_button_shown_threshold"),S=d>=H||f>=D,_.I(u,K.JSC$20277_watchApi.playerApi,2);n=u.yieldResult;n.updateFullerscreenEduButtonSubtleModeState(S);_.iQ(u)})};
_.$C.prototype.disposeInternal=function(){_.gG.prototype.disposeInternal.call(this);var K=_.Je();_.M("kevlar_exit_fullscreen_leaving_watch")&&K&&_.sy(K)};
var vD7=function(){if(_.M("web_watch_add_viewport_meta_tag")){var K=document.querySelector("meta[name=viewport]"),d=document.head;d&&!K&&(K=document.createElement("meta"),K.name="viewport",K.content="width=device-width, initial-scale=1.0, viewport-fit=cover",d.appendChild(K))}};_.EM=function(K){_.gG.call(this);var d=this;this.JSC$20281_watchApi=K;this.jobId=0;this.pendingRequestId=void 0;var f=this.JSC$20281_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MXt(d)});
this.addOnDisposeCallback(function(){d.JSC$20281_watchApi.unsubscribeByKey(f)});
MXt(this)};
_.O(_.EM,_.gG);var Pyz=function(K){_.oc.cancelJob(K.jobId);K.pendingRequestId=void 0},MXt=function(K){Pyz(K);
var d=mUZ(K.JSC$20281_watchApi.getWatchNextResponse());if(d){var f=250,H,D=(H=_.P(d,_.n5v))==null?void 0:H.initialDelayMs;_.M("web_watch_updated_metadata_server_initial_delay")&&D&&(f=D);K.jobId=_.oc.addLowPriorityJob(function(){return K.fetchUpdatedMetadata(d)},f)}};
_.EM.prototype.fetchUpdatedMetadata=function(K,d){var f=this,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T;return _.c(function(r){switch(r.nextAddress){case 1:d&&(H={continuation:d});if(!_.M("web_get_updated_metadata_fantasy_panel_continuation_params")){r.jumpTo(2);break}D=_.eq().resolve(_.XM);S="PAsports_fantasy";return _.I(r,D.isVisible(S,!0),3);case 3:r.yieldResult&&(R=(u=(n=D).getUpdatePanelContinuationData)==null?void 0:(a=u.call(n,S))==null?void 0:a.updatePanelContinuationRequest)&&(H||(H={}),H.clientParams=
{panelContinuationParams:{panelContinuation:R}});case 2:F=_.eq().resolve(_.Nn);if(!F)return _.$7(Error("hm")),r.return();z={};f.pendingRequestId=z;return _.I(r,_.Wp(F,K,H),4);case 4:v=r.yieldResult;if(z!==f.pendingRequestId)return r.return();h=(g=v)==null?void 0:(N=g.continuation)==null?void 0:N.timedContinuationData;((m=h)==null?0:m.continuation)&&((T=h)==null?0:T.timeoutMs)&&(f.jobId=_.oc.addLowPriorityJob(function(){return f.fetchUpdatedMetadata(K,h.continuation)},h.timeoutMs));
_.iQ(r)}})};
_.EM.prototype.disposeInternal=function(){_.gG.prototype.disposeInternal.call(this);Pyz(this)};var gDU=_.C8(function(K){var d=_.cp(function(){var H=K.data().videoId;if(K.active())H=_.sx(H),_.eq().resolve(_.pQ).resolveCommand(H);else{var D=K.playerApi(),S=D.getAvailableAudioTracks(),n,u,a=(n=K.sourceVideoConfig().audioTracks)==null?void 0:(u=n.find(function(R){return R.isDefaultForSource}))==null?void 0:u.id;
if(S=S.find(function(R){return R.getLanguageInfo().getId()===a}))D.setAudioTrack(S,!0),D.setCompositeParam({activeVideoId:H}),K.setActiveSourceId(H)}}),f={};
return _.U("ytw-composite-source-video-overlay",{class:_.SC("ytwCompositeSourceVideoOverlayHost",(f.ytwCompositeSourceVideoOverlayActive=K.active,f.ytwCompositeSourceVideoOverlayInteracting=K.interacting,f)),style:_.Im({left:function(){var H;return((H=K.data().topLeftCornerX)!=null?H:0)*100+"%"},
top:function(){var H;return((H=K.data().topLeftCornerY)!=null?H:0)*100+"%"},
width:function(){var H;return((H=K.data().width)!=null?H:0)*100+"%"},
height:function(){var H;return((H=K.data().height)!=null?H:0)*100+"%"}}),
"on:click":d},_.U("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"fj");var OkS=_.C8(function(K){var d=_.y(_.am(function(){var n,u=(n=K.data().sources)==null?void 0:n.find(function(a){return a.isActive});
if(u)return u.videoId})),f=d.next().value,H=d.next().value;
d=_.y(_.cC(!1,void 0,"WI4BUb"));var D=d.next().value,S=d.next().value;return _.U("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.cp(function(){S(!0)}),
"on:mouseout":_.cp(function(){S(!1)})},_.U(_.X,{cond:function(){return K.data().sources},
then:function(n){return _.U(_.v_,{each:n},function(u){return _.U(gDU,{data:u,active:function(){return u.videoId===f()},
setActiveSourceId:H,interacting:D,playerApi:K.playerApi,sourceVideoConfig:function(){return l6z(K.compositeVideoConfig(),u.videoId)}})})}}))},"gj");_.tXS=function(K){_.gG.call(this);this.JSC$20297_watchApi=K;K=_.y(_.cC({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=K.next().value;this.setCompositeVideoOverlayRenderer=K.next().value;K=_.y(_.cC({},void 0,"U5hcq"));this.compositeVideoConfig=K.next().value;this.setCompositeVideoConfig=K.next().value;N1y(this);YCZ(this)};
_.O(_.tXS,_.gG);var N1y=function(K){var d=K.JSC$20297_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){YCZ(K)});
K.addOnDisposeCallback(function(){K.JSC$20297_watchApi.unsubscribeByKey(d)})},oDy=function(K){var d;
return _.c(function(f){if(f.nextAddress==1)return _.I(f,K.JSC$20297_watchApi.playerApi,2);d=f.yieldResult;d.setCompositeVideoOverlayRendererComponent(K.container);_.iQ(f)})},$EE=function(K){var d;
return _.c(function(f){if(f.nextAddress==1)return _.I(f,K.JSC$20297_watchApi.playerApi,2);d=f.yieldResult;d.setCompositeVideoOverlayRendererComponent(void 0);_.iQ(f)})},EDc=function(K){var d,f;
return _.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20297_watchApi.playerApi,2);d=H.yieldResult;K.container=document.createElement("div");f=_.Ob(K.container,function(){return _.U(OkS,{data:K.compositeVideoOverlayRenderer,compositeVideoConfig:K.compositeVideoConfig,playerApi:d})});
K.addOnDisposeCallback(f);_.iQ(H)})},YCZ=function(K){var d,f,H,D,S,n,u,a;
_.c(function(R){return R.nextAddress==1?(d=K.JSC$20297_watchApi.getPlayerResponse(),S=_.P((f=d)==null?void 0:(H=f.overlay)==null?void 0:(D=H.playerControlsOverlayRenderer)==null?void 0:D.compositeVideoOverlay,O6U),a=(n=d)==null?void 0:(u=n.playerConfig)==null?void 0:u.compositeVideoConfig,S&&K.setCompositeVideoOverlayRenderer(S),a&&K.setCompositeVideoConfig(a),S&&a?K.container?R.jumpTo(6):_.I(R,EDc(K),6):hD7(K)?_.I(R,$EE(K),0):R.jumpTo(0)):hD7(K)?R.jumpTo(0):_.I(R,oDy(K),0)})},hD7=function(K){var d;
return!((d=K.container)==null||!d.parentElement)};
_.tXS.prototype.disposeInternal=function(){hD7(this)&&$EE(this);_.gG.prototype.disposeInternal.call(this)};_.GWy=function(K){_.gG.call(this);var d=this;this.JSC$20303_watchApi=K;var f=this.JSC$20303_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var H=d.JSC$20303_watchApi.getPlayerResponse();if(H){var D,S;if(H=_.P((D=H.endscreen)==null?void 0:(S=D.endscreenRenderer)==null?void 0:S.hideButton,_.v9)){var n;(n=d.setEndscreenHideButton)==null||n.call(d,H);bkP(d)}}});
this.addOnDisposeCallback(function(){d.JSC$20303_watchApi.unsubscribeByKey(f)});
K=_.y(_.cC({},void 0,"PPHRb"));this.endscreenHideButton=K.next().value;this.setEndscreenHideButton=K.next().value;mEZ(this);lNU(this);WYi(this)};
_.O(_.GWy,_.gG);var bkP=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return K.creatorEndscreenHideButtonContainer?H.return():_.I(H,K.JSC$20303_watchApi.playerApi,2);d=H.yieldResult;K.creatorEndscreenHideButtonContainer=document.createElement("div");_.xl(K.creatorEndscreenHideButtonContainer,!1);d.setCreatorEndscreenHideButton(K.creatorEndscreenHideButtonContainer);f=_.Ob(K.creatorEndscreenHideButtonContainer,function(){return _.U(_.MT,{data:K.endscreenHideButton,useOutlinedIcon:!0})});
K.addOnDisposeCallback(function(){f();d.setCreatorEndscreenHideButton(void 0)});
_.iQ(H)})},mEZ=function(K){var d,f;
_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20303_watchApi.playerApi,2);d=H.yieldResult;f=function(){K.creatorEndscreenHideButtonContainer&&_.xl(K.creatorEndscreenHideButtonContainer,!0)};
d.addEventListener("endscreenelementshown",f);K.addOnDisposeCallback(function(){d.removeEventListener("endscreenelementshown",f)});
_.iQ(H)})},lNU=function(K){var d=function(){K.creatorEndscreenHideButtonContainer&&_.xl(K.creatorEndscreenHideButtonContainer,!1)},f=K.JSC$20303_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",d),H=K.JSC$20303_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",d);
K.addOnDisposeCallback(function(){K.JSC$20303_watchApi.unsubscribeByKey(f);K.JSC$20303_watchApi.unsubscribeByKey(H)})},WYi=function(K){K.JSC$20303_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(d){var f=_.P(d,zEy);
K.JSC$20303_watchApi.playerApi.then(function(H){H==null||H.setCreatorEndscreenVisibility(!!f.hide)})});
K.addOnDisposeCallback(function(){K.JSC$20303_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.T1K=function(K){_.gG.call(this);this.JSC$20309_watchApi=K;A17(this)};
_.O(_.T1K,_.gG);var A17=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20309_watchApi.playerApi,2);d=H.yieldResult;f=function(D){_.j3().dispatch(_.es({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:D}}))};
d.addEventListener("onRetroModeChanged",f);K.addOnDisposeCallback(function(){d.removeEventListener("onRetroModeChanged",f)});
_.iQ(H)})};var hk=0,Ew=0,bt=0;var r1w;r1w=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.hF=function(K){_.gG.call(this);this.JSC$20322_watchApi=K;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;qCw(this)};
_.O(_.hF,_.gG);
var qCw=function(K){var d,f,H;_.c(function(D){if(D.nextAddress==1)return _.I(D,K.JSC$20322_watchApi.playerApi,2);d=D.yieldResult;if(K.isDisposed())return D.return();K.sessionStorage=_.oz5("yt-sleep-timer");K.sessionStorage||_.h3(new _.X4("SessionStorage for Sleep Timer is undefined."));((f=K.sessionStorage)==null?void 0:f.get("yt-sleep-timer"))==="true"&&(xUc(),(H=K.sessionStorage)==null||H.remove("yt-sleep-timer"),d.syncVolume());QhZ(K,d);jh5(K,d);CyK(K,d);_.iQ(D)})},QhZ=function(K,d){var f=function(R){K.onSleepTimerSettingsChanged(R,
d)},H=function(R){K.onPlayerStateChange(R,d)},D=function(){K.onLoopChange(d)},S=function(){K.onCloseMiniplayer(d)},n=function(){qiU(d,(0,_.k_)(),LOS(d),K.selectedOption==="End of video",d.getPlayerState()!==1)},u=function(){K.onSeekComplete(d)},a=function(){_.oc.cancelJob(Ew);
var R=d.getCurrentTime()>=d.getDuration(),F=K.selectedOption==="End of video"||K.selectedOption==="End of playlist"&&!ACS(K.playlistId);R&&F&&xEZ(K,d)};
d.addEventListener("onSleepTimerSettingsChanged",f);d.addEventListener("onLoopChange",D);d.addEventListener("onLoopRangeChange",D);d.addEventListener("onStateChange",H);d.addEventListener("onCloseMiniplayer",S);d.addEventListener("onSleepTimerFeatureAvailable",n);d.addEventListener("SEEK_COMPLETE",u);d.addEventListener("onAdStart",a);K.addOnDisposeCallback(function(){d.removeEventListener("onSleepTimerSettingsChanged",f);d.removeEventListener("onLoopChange",D);d.removeEventListener("onLoopRangeChange",
D);d.removeEventListener("onStateChange",H);d.removeEventListener("onCloseMiniplayer",S);d.removeEventListener("onSleepTimerFeatureAvailable",n);d.removeEventListener("SEEK_COMPLETE",u);d.removeEventListener("onAdStart",a)})},jh5=function(K,d){var f=K.JSC$20322_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var H=d.getVideoData().video_id,D,S=(D=WO5(K.JSC$20322_watchApi))==null?void 0:D.playlistId;
K.pauseAutonavPlayback&&(d.pauseVideo(),d.syncVolume(),K.pauseAutonavPlayback=!1);if(K.selectedOption==="End of video"&&H!==K.videoId)bM(K,d);else{if(K.selectedOption==="End of playlist"){D=ACS(K.playlistId);if(S!==K.playlistId){bM(K,d);break a}D?D&&LYw(K,d):B1w(K,d)}K.videoId=H;K.playlistId=S}}});
K.addOnDisposeCallback(function(){K.JSC$20322_watchApi.unsubscribeByKey(f)})},CyK=function(K,d){var f=_.eq().resolve(_.tj),H=_.n5(f,_.UVX,function(S){S&&K.selectedOption!=="Off"&&bM(K,d)}),D=K.JSC$20322_watchApi.subscribeToActiveChanged(function(S){var n,u;
return _.c(function(a){if(a.nextAddress==1)return _.I(a,_.SJ().navigationFinishPromise,2);n=!_.R4s();u=_.eq().resolve(_.$b).isMiniplayerActive();S||!$v(K.selectedOption)||u||n||bM(K,d);_.iQ(a)})},!1);
f=_.n5(f,function(S){return S.entities.playlistLoopStateEntity||{}},function(S){S=S===void 0?{}:S;
var n=GQy(K.JSC$20322_watchApi);if(n){var u;((u=S[n])==null?void 0:u.state)==="PLAYLIST_LOOP_STATE_ALL"&&$v(K.selectedOption)&&bM(K,d)}});
K.addOnDisposeCallback(H);K.addOnDisposeCallback(f);K.addOnDisposeCallback(D)};
_.hF.prototype.onSleepTimerSettingsChanged=function(K,d){switch(K){case "Off":this.selectedOption!=="Off"&&bM(this,d);break;case "End of video":case "End of playlist":J1K(this,K,d);break;default:J1K(this,K,d,r1w.get(K))}};
_.hF.prototype.onLoopChange=function(K){(K.getLoopVideo()||K.getLoopRange())&&$v(this.selectedOption)&&bM(this,K)};
_.hF.prototype.onCloseMiniplayer=function(K){$v(this.selectedOption)&&bM(this,K)};
var J1K=function(K,d,f,H){shK(K,f);K.selectedOption=d;K.videoId=f.getVideoData().video_id;K.playlistId="";var D;(D=K.sessionStorage)==null||D.set("yt-sleep-timer","true");K.adjustmentsCount++;qiU(f,(0,_.k_)(),LOS(f),K.selectedOption==="End of video");if(K.selectedOption==="End of video")B1w(K,f),kW7(K,f);else if(K.selectedOption==="End of playlist"){kW7(K,f);var S,n;K.playlistId=(n=(S=WO5(K.JSC$20322_watchApi))==null?void 0:S.playlistId)!=null?n:"";ACS(K.playlistId)||B1w(K,f)}else H&&(K.presetFadeSchedulerId=
_.uX(_.oc,function(){j3w(f,15E3)},H-15E3),K.presetPauseSchedulerId=_.uX(_.oc,function(){xEZ(K,f)},H),Q37(f,(0,_.k_)(),H))},xEZ=function(K,d){if(K.JSC$20322_watchApi.isActive()){var f={dismissDialogEndpoint:{}};
var H={commandExecutorCommand:{commands:[f,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};f={buttonViewModel:{title:_.iB("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:f}}};H={buttonViewModel:{title:_.iB("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:H}}};var D={dialogHeaderViewModel:{headline:{content:_.iB("SLEEP_TIMER_ENDED_TITLE")}}},
S={basicContentViewModel:{paragraphs:[{text:{content:_.iB("SLEEP_TIMER_ENDED_TEXT")}}]}};f={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:D,content:S,footer:{panelFooterViewModel:{primaryButton:f,secondaryButton:H,shouldHideDivider:!0}}}}}}};_.eq().resolve(_.pQ).resolveCommand(f,{form:{element:K}})}else xUc();wBU(K,!1);Zky(K,d);d.pauseVideo();_.jA.getInstance().getState()===2&&d.getPlayerState()===5&&(K.pauseAutonavPlayback=!0)},bM=function(K,d){wBU(K,!0);
Zky(K,d);xUc()},Zky=function(K,d){shK(K,d);
K.selectedOption="Off";K.videoId="";K.playlistId="";K.adjustmentsCount=0;var f;(f=K.sessionStorage)==null||f.remove("yt-sleep-timer");_.oc.cancelJob(hk);d.resetSleepTimerMenuSettings()},wBU=function(K,d){d={timer_length_adjustment_times_during_session:K.adjustmentsCount-1,
is_session_cancelled:d};switch(K.selectedOption){case "Off":d.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":d.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":d.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:d.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",d.option_duration_in_minutes=r1w.get(K.selectedOption)/6E4}_.t3("sleepTimerSessionFinishEvent",d)};
_.hF.prototype.onPlayerStateChange=function(K,d){K===1?qiU(d,(0,_.k_)(),LOS(d),this.selectedOption==="End of video"):K===0?(_.oc.cancelJob(Ew),d.setVideoTimeLeft(rCt(0,0))):K===2&&_.oc.cancelJob(Ew);this.selectedOption==="End of video"?K===0?xEZ(this,d):K===2&&CaS(d):this.selectedOption!=="End of playlist"||ACS(this.playlistId)||(K===0?xEZ(this,d):K===2&&CaS(d))};
_.hF.prototype.onSeekComplete=function(K){K.getPlayerState()===2&&qiU(K,(0,_.k_)(),LOS(K),this.selectedOption==="End of video",!0)};
_.hF.prototype.onCueRangeEnter=function(K,d){K==="sleep-timer-fade-audio"&&j3w(d,(d.getDuration()-d.getProgressState().current)*1E3)};
_.hF.prototype.onCueRangeExit=function(K,d){K==="sleep-timer-fade-audio"&&d.getPlayerState()!==0&&CaS(d,!0)};
var B1w=function(K,d){d.addCueRange("sleep-timer-fade-audio",d.getDuration()-15,d.getDuration());d.addEventListener("onCueRangeEnter",function(f){K.onCueRangeEnter(f,d)});
d.addEventListener("onCueRangeExit",function(f){K.onCueRangeExit(f,d)})},LYw=function(K,d){d.removeCueRange("sleep-timer-fade-audio");
d.removeEventListener("onCueRangeEnter",function(f){K.onCueRangeEnter(f,d)});
d.removeEventListener("onCueRangeExit",function(f){K.onCueRangeExit(f,d)})},shK=function(K,d){$v(K.selectedOption)?LYw(K,d):(_.oc.cancelJob(K.presetPauseSchedulerId),_.oc.cancelJob(K.presetFadeSchedulerId),K.presetPauseSchedulerId=0,K.presetFadeSchedulerId=0);
CaS(d,!0)},kW7=function(K,d){d.setLoop(!1);
d.setLoopVideo(!1);d.setLoopRange(null);(K=GQy(K.JSC$20322_watchApi))&&_.eq().resolve(_.tj).dispatch(_.nt("playlistLoopStateEntity",K,{key:K,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.dRc=function(K){_.gG.call(this);this.JSC$20325_watchApi=K;eDy(this);pBU(this);KEi(this);K=K.getRoot();if(K.is==="ytd-watch-flexy"||K.is==="ytd-watch-grid")K.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.HXw();_.M("web_watch_log_theater_mode_cookie_state")&&_.I0.get("wide","0")==="1"&&_.GmO("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.O(_.dRc,_.gG);var eDy=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20325_watchApi.playerApi,2);d=H.yieldResult;f=function(D){frz(K,!!D)};
d.addEventListener("SIZE_CLICKED",f);K.addOnDisposeCallback(function(){d.removeEventListener("SIZE_CLICKED",f)});
_.iQ(H)})},pBU=function(K){K.JSC$20325_watchApi.registerActionHandler("yt-toggle-theater-mode",function(d,f){frz(K,d,f===void 0?!0:f)});
K.addOnDisposeCallback(function(){K.JSC$20325_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.dRc.prototype.getState=function(){return _.NG(_.j3().getState())};
var frz=function(K,d,f){f=f===void 0?!0:f;var H,D,S,n=_.M("enable_player_resize_transition")&&!!K.JSC$20325_watchApi.getWatchNextResponse()&&!((H=K.JSC$20325_watchApi.getWatchNextResponse())==null?0:(D=H.contents)==null?0:(S=D.twoColumnWatchNextResults)==null?0:S.conversationBar);_.hqi(function(){_.j3().dispatch(_.es({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:d}}));_.M("theater_mode_scroll_to_top_killswitch")||K.JSC$20325_watchApi.scrollWatchTo(0,!1);_.Je()&&_.M("external_fullscreen")&&_.sy(document.documentElement);
KEi(K);f&&_.UF("wide",d?"1":"0",-1);_.ev(K.JSC$20325_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);K.JSC$20325_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:d});d&&_.HXw()},{shouldWrap:n})},KEi=function(K){var d;
_.c(function(f){if(f.nextAddress==1)return _.I(f,K.JSC$20325_watchApi.playerApi,2);d=f.yieldResult;d.setSizeStyle(!0,K.getState());_.iQ(f)})};var V6w=function(K){_.gG.call(this);var d=this;this.playerApi=K;this.timeToPanelSyncKeyMap={};var f;if(K==null?0:(f=K.isReady)==null?0:f.call(K)){f=_.n5(_.eq().resolve(_.tj),function(D){return D.entities.timedMarkersListSyncEntity||{}},function(D,S){D=D===void 0?{}:D;
S=S===void 0?{}:S;for(var n=_.y(Object.keys(S)),u=n.next();!u.done;u=n.next())u=u.value,D[u]!==S[u]&&Hqi(d,S[u]);S=_.y(Object.keys(D));for(n=S.next();!n.done;n=S.next())n=n.value,u=D[n],d.timeToPanelSyncKeyMap[n]&&DRK(d,u)});
this.addOnDisposeCallback(f);var H=function(D){d.onCueRangeEnter(D)};
K.addEventListener("onCueRangeEnter",H);this.addOnDisposeCallback(function(){var D;(D=K.removeEventListener)==null||D.call(K,"onCueRangeEnter",H)})}};
_.O(V6w,_.gG);
var DRK=function(K,d){var f,H;if((f=K.playerApi)==null?0:(H=f.isReady)==null?0:H.call(f)){var D;if((f=d==null?void 0:(D=d.timedListData)==null?void 0:D.sections)&&d!=null&&d.key)for(D=_.y(f),f=D.next();!f.done;f=D.next())if(f=f.value,f.timedSyncDataList&&f.sectionId)for(H=0;H<f.timedSyncDataList.length;H++){var S=f.timedSyncDataList[H];S.syncItemId&&K.playerApi.addCueRange(f.sectionId+"_"+d.key+"_"+S.syncItemId,Number(S.videoTimeMs)/1E3,H===f.timedSyncDataList.length-1?0x8000000000000:Number(f.timedSyncDataList[H+
1].videoTimeMs)/1E3)}}},Hqi=function(K,d){var f,H;
if((f=K.playerApi)==null?0:(H=f.isReady)==null?0:H.call(f)){var D;if((f=d==null?void 0:(D=d.timedListData)==null?void 0:D.sections)&&d!=null&&d.key)for(D=_.y(f),f=D.next();!f.done;f=D.next())if(f=f.value,f.timedSyncDataList&&f.sectionId){H=_.y(f.timedSyncDataList);for(var S=H.next();!S.done;S=H.next())S=S.value,S.syncItemId&&K.playerApi.removeCueRange(f.sectionId+"_"+d.key+"_"+S.syncItemId)}}};
V6w.prototype.onCueRangeEnter=function(K){for(var d=_.y(Object.keys(this.timeToPanelSyncKeyMap)),f=d.next();!f.done;f=d.next()){f=f.value;var H=_.y(K.split("_"+f+"_")),D=H.next().value;H=H.next().value;if(D&&H){K=_.eq().resolve(_.tj);d=this.timeToPanelSyncKeyMap[f];var S=_.P_N(K.getState(),d);f=SUz(f,D,H);if(f===-1)break;f={activeSyncId:H,activeItemIndex:f,activeSectionInfo:{sectionIdentifier:D}};S?K.dispatch(_.P9("markersEngagementPanelSyncEntity",d,f)):K.dispatch(_.nt("markersEngagementPanelSyncEntity",
d,Object.assign({},{key:d},f)));break}}};
var SUz=function(K,d,f){var H=_.eq().resolve(_.tj),D,S;K=(D=p2c(H.getState(),K))==null?void 0:(S=D.timedListData)==null?void 0:S.sections;if(!K)return-1;D=0;S=_.y(K);for(K=S.next();!K.done;K=S.next()){K=K.value;H=K.timedSyncDataList||[];if(K.sectionId===d)return d=H.findIndex(function(n){return n.syncItemId===f}),d===-1?d:D+d;
D+=H.length}return-1};_.iqE=function(K){_.gG.call(this);var d=this;this.JSC$20337_watchApi=K;this.unresolvedCommands=[];this.JSC$20337_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(f){yq7(d,f)});
this.addOnDisposeCallback(function(){d.JSC$20337_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
nRE(this)};
_.O(_.iqE,_.gG);var nRE=function(K){var d;_.c(function(f){if(f.nextAddress==1)return _.I(f,K.JSC$20337_watchApi.playerApi,2);d=f.yieldResult;if(K.isDisposed())return f.return();K.timedSyncObserver=new V6w(d);K.unresolvedCommands.length&&(K.unresolvedCommands.forEach(function(H){return yq7(K,H)}),K.unresolvedCommands=[]);
_.cy(K,K.timedSyncObserver);_.iQ(f)})},yq7=function(K,d){if(K.timedSyncObserver){var f=_.P(d,vxU);
if(f&&f.timedSyncEntityKey&&f.panelSyncEntityKey){K=K.timedSyncObserver;d=f.timedSyncEntityKey;var H=f.panelSyncEntityKey;f=!!f.isEnabled;f=f===void 0?!0:f;var D=_.eq().resolve(_.tj);D=p2c(D.getState(),d);f?K.timeToPanelSyncKeyMap[d]||(K.timeToPanelSyncKeyMap[d]=H,DRK(K,D)):(delete K.timeToPanelSyncKeyMap[d],Hqi(K,D))}}else K.unresolvedCommands.push(d)};var cqU=_.C8(function(K){var d=K.data,f=K.maybeLogSmartSkipClientData,H=_.Co();_.W9(H,function(){return d().rendererContext},{onTap:function(F,z){z({disableClickTracking:!0})}});
var D=null,S=null,n=_.M("web_enable_auto_focus_for_timely_action_button"),u=function(){D=document.activeElement},a=function(){d().smartSkipMetadata&&(D=document.activeElement,_.w1t(function(){return S}))},R=function(F){if(d().smartSkipMetadata&&(!F||F.key!=="Enter")){D&&D.isConnected&&(_.w1t(function(){return D}),D=null);
var z;(z=S)==null||z.blur()}};
K=_.cp(function(){f==null||f(!0,d());return!1});
_.wU(H,{visibilityCallback:function(F){if(n)F?S&&d().smartSkipMetadata&&(a(),document.addEventListener("focusin",u)):(document.removeEventListener("focusin",u),R());else if(F&&_.M("web_ephemeral_actions")){F=_.mR(d().rendererContext);var z=Number(d().maxVisibleDurationMilliseconds),v,g=(v=_.P(d().rendererContext,_.uq))==null?void 0:v.label;F&&z&&g&&(v={label:g,command:F,durationMs:z},_.eq().resolve(_.yl).enqueue(v))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.Nk(function(){if(n){var F;if((S=(F=H.value)==null?void 0:F.querySelector("button"))&&d().smartSkipMetadata){var z;(z=H.value)==null||z.addEventListener("keydown",R)}}});
_.$F(function(){n&&(S&&d().smartSkipMetadata&&S.removeEventListener("keydown",R),document.removeEventListener("focusin",u),R())});
return _.U("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:H,"on:click":K},_.U(_.z1,{data:function(){return d().content}},{buttonViewModel:_.oY}))},"hj");var uWw=_.C8(function(K){var d=K.data,f=K.playerApi,H=_.eq().resolve(_.lCt);K=_.y(_.am(function(){d()}));
var D=K.next().value,S=K.next().value,n=function(){return JCi(d(),D())},u=function(R,F){var z,v,g=(z=_.P(F==null?void 0:F.rendererContext,_.uz))==null?void 0:(v=z.loggingDirectives)==null?void 0:v.trackingParams;
if((F=F==null?void 0:F.smartSkipMetadata)&&F.loggingData&&(v=F.loggingData,F=v.algorithmId,z=v.startMilliseconds,v=v.endMilliseconds,F&&z!==void 0&&v!==void 0)){var N,h;R={smartSkipData:Object.assign({},{versionName:F,startMediaTimeMs:z,endMediaTimeMs:v},R&&{userInteractionMediaTimeMs:(Math.floor(((N=_.xP())==null?void 0:(h=N.getPlayer())==null?void 0:h.getCurrentTime())||0)*1E3).toString()})};N=_.te();var m;g&&(m=_.RG(g));N&&m&&_.Q$(N,m,R)}},a=function(R,F){var z=JCi(d(),R);
if(z){var v=_.P(z,mF),g;if(g=F)g=f(),z=_.P(z,mF),g=z!=null&&z.smartSkipMetadata?!(g==null?0:g.isSameMarkerTypeVisible((z==null?void 0:z.smartSkipMetadata.markerKey)||"")):!0;if(g){var N,h;(v==null?0:(N=v.smartSkipMetadata)==null?0:(h=N.loggingData)==null?0:h.isCounterfactual)||(u(!1,v),S(R))}else F||D()!==R||S(void 0)}};
_.ol(function(){var R=d().timelyActions;if(R){R=_.y(R);for(var F=R.next();!F.done;F=R.next()){F=_.P(F.value,mF);var z=void 0;(z=F)!=null&&z.cueRangeId&&H.timelyActionsMap.set(F.cueRangeId,a)}_.$F(function(){H.timelyActionsMap.clear()})}});
return _.U("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.U(_.z1,{data:n},{timelyActionViewModel:function(R){return _.U(cqU,{data:R.data,maybeLogSmartSkipClientData:function(){u(!0,_.P(n(),mF))}})}}))},"ij");_.Iry=function(K){_.gG.call(this);this.JSC$20349_watchApi=K;K=_.y(_.cC({},void 0,"pLDp2"));this.timelyActionsOverlay=K.next().value;this.setTimelyActionsOverlay=K.next().value;arU(this)};
_.O(_.Iry,_.gG);var arU=function(K){var d,f,H,D;_.c(function(S){if(S.nextAddress==1)return URK(K),RbU(K),K.timelyActionsContainer=document.createElement("div"),_.I(S,K.JSC$20349_watchApi.playerApi,2);d=S.yieldResult;(H=(f=d).insertTimelyActionUi)==null||H.call(f,K.timelyActionsContainer);D=_.Ob(K.timelyActionsContainer,function(){return _.U(uWw,{data:K.timelyActionsOverlay,playerApi:d})});
K.addOnDisposeCallback(D);_.iQ(S)})},RbU=function(K){var d=K.JSC$20349_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){URK(K)});
K.addOnDisposeCallback(function(){K.JSC$20349_watchApi.unsubscribeByKey(d)})},URK=function(K){var d=K.JSC$20349_watchApi.getWatchNextResponse();
if(d){var f,H;if(d=_.P((f=d.playerOverlays)==null?void 0:(H=f.playerOverlayRenderer)==null?void 0:H.timelyActionsOverlayViewModel,Mmz)){var D;(D=K.setTimelyActionsOverlay)==null||D.call(K,d)}}};_.zbw=function(K){_.gG.call(this);this.JSC$20353_watchApi=K;FEK(this)};
_.O(_.zbw,_.gG);var FEK=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20353_watchApi.playerApi,2);d=H.yieldResult;f=function(D){_.V2.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.P(D,_.m6Z)},popupType:"TOAST"}})};
d.addEventListener("onYtShowToast",f);K.addOnDisposeCallback(function(){d.removeEventListener("onYtShowToast",f)});
_.iQ(H)})};var XDl,PP7,vRZ,M6S,YUc,OqU,N_i,oRE,$RP;XDl=!1;_.gRy=function(K){_.gG.call(this);this.JSC$20356_watchApi=K;this.fullscreen=this.theater=!1;vRZ(this);M6S(this);PP7(this)};
_.O(_.gRy,_.gG);PP7=function(K){var d,f,H;_.c(function(D){if(D.nextAddress==1)return _.I(D,K.JSC$20356_watchApi.playerApi,2);d=D.yieldResult;if(K.isDisposed())return D.return();f=K.JSC$20356_watchApi.getElement("CINEMATICS");if(!f)return D.return();K.JSC$20356_cinematicController=new _.fR(f,d);_.cy(K,K.JSC$20356_cinematicController);_.dAi(K.JSC$20356_cinematicController);OqU(K,_.aHp());H=K.JSC$20356_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(S){N_i(K,S)});
K.addOnDisposeCallback(function(){K.JSC$20356_watchApi.unsubscribeByKey(H)});
YUc(K);N_i(K,K.JSC$20356_cinematicController.isAllowed());_.t6z(K,K.fullscreen,K.theater);oRE(K);_.iQ(D)})};
vRZ=function(K){var d=K.JSC$20356_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){YUc(K)});
K.addOnDisposeCallback(function(){K.JSC$20356_watchApi.unsubscribeByKey(d)})};
M6S=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20356_watchApi.playerApi,2);d=H.yieldResult;f=function(D){OqU(K,D)};
d.addEventListener("cinematicSettingsToggleChange",f);K.addOnDisposeCallback(function(){d.removeEventListener("cinematicSettingsToggleChange",f)});
_.iQ(H)})};
YUc=function(K){var d=K.JSC$20356_watchApi.getWatchNextResponse(),f;d=_.P(d==null?void 0:(f=d.pageVisualEffects)==null?void 0:f[0],_.M$);var H;(H=K.JSC$20356_cinematicController)==null||_.HaU(H,d)};
OqU=function(K,d){var f;(f=K.JSC$20356_cinematicController)==null||_.f05(f,d);$RP(K)};
N_i=function(K,d){var f;_.c(function(H){if(H.nextAddress==1)return _.M("kevlar_watch_cinematics_invisible")&&(d=!1),_.I(H,K.JSC$20356_watchApi.playerApi,2);f=H.yieldResult;f.updateCinematicSettings(d);$RP(K);_.iQ(H)})};
oRE=function(K){var d=_.aS();if(_.M("kevlar_measure_ambient_mode_idle")&&!d.getFlag(192)&&!XDl){XDl=!0;var f=_.va(_.oc,function(){_.eq().resolve(_.YYw).start(1E4)},5E3);
K.addOnDisposeCallback(function(){_.oc.cancelJob(f);_.eq().resolve(_.YYw).stop()})}};
_.t6z=function(K,d,f){K.fullscreen=d;K.theater=f;var H;(H=K.JSC$20356_cinematicController)==null||H.setFullscreen(K.fullscreen,K.theater);if(_.M("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(K.theater||K.fullscreen){var D;(D=K.JSC$20356_cinematicController)==null||_.DA7(D)}else if((K=K.JSC$20356_cinematicController)!=null){var S;(S=K.currentCinematicEffect)==null||S.pause()}};
$RP=function(K){if(_.M("web_cinematic_theater_mode")||_.M("web_cinematic_fullscreen")){var d;K.JSC$20356_watchApi.getRoot().toggleCinematicsActive(!((d=K.JSC$20356_cinematicController)==null||!d.isEnabled()))}};_.mRw=function(K){_.gG.call(this);var d=this;this.JSC$20359_watchApi=K;this.commentsReady=!1;this.setCommentsJobId=0;K=_.n5(_.j3(),_.Yv,function(){ERt(d)});
this.addOnDisposeCallback(K);var f=this.JSC$20359_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){hbc(d)}),H=this.JSC$20359_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){hbc(d)});
this.addOnDisposeCallback(function(){d.JSC$20359_watchApi.unsubscribeByKey(f);d.JSC$20359_watchApi.unsubscribeByKey(H)});
var D=function(){_.M("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&bqS(d,"false")};
this.JSC$20359_watchApi.getRoot().addEventListener("yt-page-data-will-update",D);this.addOnDisposeCallback(function(){d.JSC$20359_watchApi.getRoot().removeEventListener("yt-page-data-will-update",D)});
hbc(this)};
_.O(_.mRw,_.gG);var hbc=function(K){K.commentsReady=!1;_.oc.cancelJob(K.setCommentsJobId);K.setCommentsJobId=_.va(_.oc,function(){ERt(K)},1E3)},ERt=function(K){if(!K.commentsReady){_.YJ("cmi");
_.oc.cancelJob(K.setCommentsJobId);var d,f,H,D,S=(d=K.JSC$20359_watchApi.getWatchNextResponse())==null?void 0:(f=d.contents)==null?void 0:(H=f.twoColumnWatchNextResults)==null?void 0:(D=H.results)==null?void 0:D.results.contents;d=void 0;if(S&&S.length)for(S=_.y(S),f=S.next();!f.done;f=S.next())if(f=f.value,D=H=void 0,((H=f)==null?void 0:(D=H.itemSectionRenderer)==null?void 0:D.sectionIdentifier)==="comment-item-section"){_.M("web_watch_provide_undefined_comments")?d=f.itemSectionRenderer:K.JSC$20359_watchApi.provideRenderingData("COMMENTS",
f.itemSectionRenderer);bqS(K,"true");break}_.M("web_watch_provide_undefined_comments")&&K.JSC$20359_watchApi.provideRenderingData("COMMENTS",d);K.commentsReady=!0;K.JSC$20359_watchApi.dispatchEvent("yt-watch-comments-ready")}},bqS=function(K,d){var f;
(f=K.JSC$20359_watchApi.getElement("COMMENTS"))==null||f.setAttribute("canScheduleJobs",d)};_.Gg=function(K){_.gG.call(this);var d=this;this.JSC$20362_watchApi=K;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.M("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.M("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.M("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.di("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)lrw(this);
else{var f=this.JSC$20362_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){mu(d);lM(d)}),H=this.JSC$20362_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Wh(d);
lM(d)});
this.JSC$20362_watchApi.getRoot().is==="ytd-watch-grid"&&_.M("swatcheroo_pbs_load_grid")&&(WEl(this),Gcz(this));this.addOnDisposeCallback(function(){d.JSC$20362_watchApi.unsubscribeByKey(f);d.JSC$20362_watchApi.unsubscribeByKey(H);_.oc.cancelJob(d.provideRichGridJobId)});
mu(this);Wh(this)}};
_.O(_.Gg,_.gG);var lrw=function(K){var d=K.JSC$20362_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){K.providePlayerJobId=_.FN(_.oc,function(){mu(K);lM(K)},K.provideAllDataDelayMs)}),f=K.JSC$20362_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){K.provideWatchNextJobId=_.FN(_.oc,function(){Wh(K);
lM(K)},K.provideAllDataDelayMs)}),H=K.JSC$20362_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){K.provideWatchNextJobId=_.FN(_.oc,function(){Wh(K);
lM(K)},K.provideAllDataDelayMs)});
K.JSC$20362_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.va(_.oc,function(){mu(K);Wh(K);lM(K)},100)});
K.JSC$20362_watchApi.addPageDisposeJob(function(){_.oc.cancelJob(K.provideWatchNextJobId);_.oc.cancelJob(K.providePlayerJobId)});
K.addOnDisposeCallback(function(){K.JSC$20362_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");K.JSC$20362_watchApi.unsubscribeByKey(d);K.JSC$20362_watchApi.unsubscribeByKey(f);K.JSC$20362_watchApi.unsubscribeByKey(H);_.oc.cancelJob(K.providePlayerJobId);_.oc.cancelJob(K.provideWatchNextJobId)});
mu(K);Wh(K)},mu=function(K){var d=K.JSC$20362_watchApi.getPlayerResponse(),f,H,D=(H=d==null?void 0:(f=d.playabilityStatus)==null?void 0:f.messageRenderers)!=null?H:[],S,n;
d=(n=d==null?void 0:(S=d.playabilityStatus)==null?void 0:S.messages)!=null?n:[];S=_.y(d);for(n=S.next();!n.done;n=S.next())D.push({alertRenderer:{text:_.rB(n.value),type:"WARNING"}});K.JSC$20362_watchApi.provideRenderingData("ALERTS",D)},Wh=function(K){var d=[],f,H,D,S=K.JSC$20362_watchApi.getWatchNextResponse(),n,u,a,R,F=S==null?void 0:(n=S.contents)==null?void 0:(u=n.twoColumnWatchNextResults)==null?void 0:(a=u.results)==null?void 0:(R=a.results)==null?void 0:R.contents;
if(F)for(n=_.y(F),u=n.next();!u.done;u=n.next())if(u=u.value,u.videoPrimaryInfoRenderer)var z=u;else if(u.videoSecondaryInfoRenderer){var v=u;R=a=void 0;u=Object.assign({},(a=u.videoSecondaryInfoRenderer)==null?void 0:(R=a.metadataRowContainer)==null?void 0:R.metadataRowContainerRenderer);if(u.rows&&u.collapsedItemCount!==void 0){u.rows=u.rows.slice(0,u.collapsedItemCount).filter(function(LJ){return!!LJ.richMetadataRowRenderer});
u.collapsedItemCount=u.rows.length;var g={metadataRowContainerRenderer:u}}}else if(u.merchandiseShelfRenderer)var N=u;else if(u.ticketShelfRenderer)var h=u;else if(u.expandableMetadataRenderer)var m=u;else if(u.itemSectionRenderer)if(a=u.itemSectionRenderer.contents,R=void 0,K.directlyProvideComments&&((R=u.itemSectionRenderer)==null?void 0:R.sectionIdentifier)==="comment-item-section")_.YJ("cmi"),K.JSC$20362_watchApi.provideRenderingData("COMMENTS",u.itemSectionRenderer);else if(a)for(u=_.y(a),a=
u.next();!a.done;a=u.next())if(a=a.value,a.commentsEntryPointHeaderRenderer)var T=a;else if(a.clarificationRenderer||a.infoPanelContainerRenderer||a.infoPanelContentRenderer||a.emergencyOneboxRenderer){d.push(a);var r=r||!!v}else a.limitedStateMessageRenderer?H=a:a.videoMetadataCarouselViewModel&&(D=a);if(_.M("web_watch_merch_in_sd_when_ticket_shelf_present")&&N&&h){var J=N;N=void 0}if(K.provideWatchNextSecondaryResults){var L,fB,w;K.JSC$20362_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
S==null?void 0:(L=S.contents)==null?void 0:(fB=L.twoColumnWatchNextResults)==null?void 0:(w=fB.secondaryResults)==null?void 0:w.secondaryResults)}if(K.JSC$20362_watchApi.getRoot().is==="ytd-watch-grid"){var yO,FX;K.JSC$20362_watchApi.provideRenderingData("LIVE_CHAT",S==null?void 0:(yO=S.contents)==null?void 0:(FX=yO.twoColumnWatchNextResults)==null?void 0:FX.conversationBar)}var NJ,$z,hN,bo;(L=S==null?void 0:(NJ=S.contents)==null?void 0:($z=NJ.twoColumnWatchNextResults)==null?void 0:(hN=$z.secondaryResults)==
null?void 0:(bo=hN.secondaryResults)==null?void 0:bo.offerModule)&&(L.donationShelfRenderer||L.donationUnavailableRenderer)&&K.JSC$20362_watchApi.getRoot().is!=="ytd-watch-grid"&&(f=L);NJ=K.JSC$20362_watchApi.getPlayerResponse();if(!NJ||!_.QAp(NJ.playabilityStatus,S==null?void 0:S.playerOverlays)){var xz;if(S==null?0:(xz=S.contents)==null?0:xz.singleColumnWatchNextResults){var qJ,Y8;var Iz=S==null?void 0:(qJ=S.contents.singleColumnWatchNextResults.results)==null?void 0:(Y8=qJ.results)==null?void 0:
Y8.contents}else{var qs,af,i9,KE;xz=!!(F==null?0:(qs=F[0])==null?0:(af=qs.itemSectionRenderer)==null?0:(i9=af.contents)==null?0:(KE=i9[0])==null?0:KE.backgroundPromoRenderer);var c4,cx;qs=!!(S==null?0:(c4=S.contents)==null?0:(cx=c4.twoColumnWatchNextResults)==null?0:cx.secondaryResults);xz&&!qs&&(Iz=F)}}F=d[0];c4=d[1];r&&d.length===1&&(c4=F,F=void 0);K.JSC$20362_watchApi.provideRenderingData("PRIMARY_INFO",z);K.JSC$20362_watchApi.provideRenderingData("SECONDARY_INFO",v);K.JSC$20362_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
T);K.JSC$20362_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",D);K.JSC$20362_watchApi.provideRenderingData("CLARIFICATION",F);K.JSC$20362_watchApi.provideRenderingData("RICH_METADATA",g);K.JSC$20362_watchApi.provideRenderingData("MERCH_SHELF",N);_.M("web_watch_merch_in_sd_when_ticket_shelf_present")&&K.JSC$20362_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",J);K.JSC$20362_watchApi.provideRenderingData("TICKET_SHELF",h);K.JSC$20362_watchApi.provideRenderingData("LIMITED_STATE",H);K.JSC$20362_watchApi.getRoot().is!==
"ytd-watch-grid"&&K.JSC$20362_watchApi.provideRenderingData("DONATION_SHELF",f);K.JSC$20362_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Iz);K.JSC$20362_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",c4);K.JSC$20362_watchApi.provideRenderingData("EXPANDABLE_METADATA",m);if(K.swatcherooProvideAllDataOnScheduledJob){var Oj,io,g2,l9,rw,t6;z=S==null?void 0:(Oj=S.contents)==null?void 0:(io=Oj.twoColumnWatchNextResults)==null?void 0:(g2=io.secondaryResults)==null?void 0:(l9=g2.secondaryResults)==
null?void 0:(rw=l9.results)==null?void 0:(t6=rw[0])==null?void 0:t6.richGridRenderer;K.JSC$20362_watchApi.provideRenderingData("RICH_GRID_RENDERER",z)}};
_.Gg.prototype.hasCompanionAds=function(K){var d,f;return(f=K==null?void 0:(d=K.adPlacements)==null?void 0:d.some(function(H){var D,S,n,u;return(H==null?void 0:(D=H.adPlacementRenderer)==null?void 0:(S=D.renderer)==null?void 0:S.actionCompanionAdRenderer)||(H==null?void 0:(n=H.adPlacementRenderer)==null?void 0:(u=n.renderer)==null?void 0:u.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?f:!1};
var lM=function(K){if(!_.M("swaterdoo_ps_wn_handle_ks")){K.swatcherooProvideAllDataOnScheduledJob||Gcz(K,3E3);var d=K.JSC$20362_watchApi.getPlayerResponse(),f,H,D,S,n,u=(f=K.JSC$20362_watchApi.getWatchNextResponse())==null?void 0:(H=f.contents)==null?void 0:(D=H.twoColumnWatchNextResults)==null?void 0:(S=D.secondaryResults)==null?void 0:(n=S.secondaryResults)==null?void 0:n.offerModule;d=K.hasCompanionAds(d);var a,R;f=(u==null?void 0:(a=u.tvfilmOfferModuleRenderer)==null?void 0:a.clientShouldSuppressIfCompanionAdDisplayed)||
(u==null?void 0:(R=u.unlimitedOfferModuleRenderer)==null?void 0:R.suppressIfCompanionAds);a=d&&f;K.JSC$20362_watchApi.getRoot().is==="ytd-watch-grid"&&K.JSC$20362_watchApi.provideRenderingData("OFFER_MODULE",a?void 0:u)}},Gcz=function(K,d){_.M("swatcheroo_pbs_load_grid")&&(K.provideRichGridJobId&&_.oc.cancelJob(K.provideRichGridJobId),K.provideRichGridJobId=_.FN(_.oc,function(){K.provideRichGridJobId=0;
var f,H,D,S,n,u,a,R=(f=K.JSC$20362_watchApi.getWatchNextResponse())==null?void 0:(H=f.contents)==null?void 0:(D=H.twoColumnWatchNextResults)==null?void 0:(S=D.secondaryResults)==null?void 0:(n=S.secondaryResults)==null?void 0:(u=n.results)==null?void 0:(a=u[0])==null?void 0:a.richGridRenderer;R&&K.JSC$20362_watchApi.provideRenderingData("RICH_GRID_RENDERER",R)},d))},WEl=function(K){var d,f;
_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20362_watchApi.playerApi,2);d=H.yieldResult;f=function(){K.onPlaybackStart()};
d.addEventListener("onPlaybackStartExternal",f);K.addOnDisposeCallback(function(){d.removeEventListener("onPlaybackStartExternal",f)});
_.iQ(H)})};
_.Gg.prototype.onPlaybackStart=function(){Gcz(this)};_.T_z=function(K){_.gG.call(this);var d=this;this.JSC$20372_watchApi=K;K.playerApi.then(function(f){d.player=f});
this.gestures=new _.id(this.JSC$20372_watchApi.getRoot(),K.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.VL5(_.j3().getState())&&_.Yv(_.j3().getState())<=0)if(_.Ny(_.j3().getState())){var f;(f=d.player)==null||f.toggleFullscreen()}else _.ev(d.JSC$20372_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Aq7(this)};
_.O(_.T_z,_.gG);var Aq7=function(K){var d=_.n5(_.j3(),_.Ny,function(f){K.gestures&&K.gestures.update(f)});
K.addOnDisposeCallback(d);d=_.n5(_.j3(),_.Yv,function(f){K.gestures&&(f>0?K.gestures.detach():K.gestures.attach())});
K.addOnDisposeCallback(d)};_.qUU=function(K){_.gG.call(this);var d=this;this.JSC$20375_watchApi=K;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(K.subscribeToActiveChanged(function(f){d.onActiveChanged(f)}));
rqK(this)};
_.O(_.qUU,_.gG);var QPt=function(K){if(_.M("swatcheroo_page_dispose_all_watch_data"))K.pageDisposalDataTypes=Object.values(SCS).filter(function(f){return f!=="PLAYLIST"});
else if(_.M("swatcheroo_page_dispose_rich_grid")){var d;(d=K.pageDisposalDataTypes)==null||d.push("RICH_GRID_RENDERER")}},rqK=function(K){_.M("swatcheroo_enable_ghost_cards")&&(QPt(K),K.JSC$20375_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.oc.cancelJob(K.clearDataJobId);
K.clearDataJobId=0}),K.runPageDisposeJob=function(){var d=_.eq().resolve(_.jC).getDestinationPageType()==="watch";
K.clearDataJobId=_.FN(_.oc,K.runClearDataJob,d?0:_.di("web_watch_delay_page_dispose_ms",1E4))},K.runClearDataJob=function(){jPz(K)},K.runOnYtNavigateAwayFinish=function(){K.clearDataJobId&&(_.oc.cancelJob(K.clearDataJobId),K.clearDataJobId=0,jPz(K))},document.addEventListener("yt-navigate-finish",K.runOnYtNavigateAwayFinish),K.JSC$20375_watchApi.addPageDisposeJob(K.runPageDisposeJob),K.addOnDisposeCallback(function(){K.JSC$20375_watchApi.removePageDisposeJob(K.runPageDisposeJob);
K.JSC$20375_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",K.runOnYtNavigateAwayFinish)}))},jPz=function(K){K.pageDisposalDataTypes.forEach(function(d){K.JSC$20375_watchApi.provideRenderingData(d,void 0)});
K.clearDataJobId=0};
_.qUU.prototype.onActiveChanged=function(K){K&&((K=document.querySelector("#watch-page-skeleton"))&&_.FE(K),CPZ(this),document.body.removeAttribute("no-y-overflow"),_.lx("IS_SHELL_LOAD")&&_.pQc())};
var CPZ=function(K){_.c(function(d){if(d.nextAddress==1)return _.I(d,K.JSC$20375_watchApi.playerApi,2);_.GD();_.iQ(d)})};var xRt;xRt=_.M("kevlar_watch_while_counterfactual")?0:.25;_.AF=function(K){_.gG.call(this);this.JSC$20378_watchApi=K;this.JSC$20378_watchWhileEnabled=_.M("kevlar_watch_while_v2");this.pipEnabled=_.M("web_enable_pip_on_miniplayer");LEw(this);B_z(this);JqK(this)};
_.O(_.AF,_.gG);var LEw=function(K){K.JSC$20378_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){sPw(K)});
K.addOnDisposeCallback(function(){K.JSC$20378_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},B_z=function(K){var d,f;
_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20378_watchApi.playerApi,2);d=H.yieldResult;f=function(){sPw(K)};
d.addEventListener("onCollapseMiniplayer",f);K.addOnDisposeCallback(function(){d.removeEventListener("onCollapseMiniplayer",f)});
_.iQ(H)})},JqK=function(K){var d=K.JSC$20378_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&d&&K.JSC$20378_watchWhileEnabled&&(K.playerIntersectionObserver=new IntersectionObserver(function(f){K.handleIntersect(f)},{threshold:[xRt]}),K.playerIntersectionObserver.observe(d),K.addOnDisposeCallback(function(){var f;
(f=K.playerIntersectionObserver)==null||f.disconnect()}))},sPw=function(K){var d,f,H;
_.c(function(D){if(D.nextAddress==1){d=_.eq().resolve(_.jC);f=d.data;H=_.jhG(f.response,f.playerResponse);_.SJ().miniplayerButtonActivation=!0;if(K.pipEnabled)return _.SJ().watchPipActivation=!0,D.jumpTo(2);_.eq().resolve(_.$b).collapse();return _.I(D,_.SJ().navigationFinishPromise,2)}if(D.nextAddress!=4)return _.SJ().currentEndpoint=H.watchEndpoint||null,_.I(D,_.eq().resolve(_.$b).activate(K.JSC$20378_watchApi.getElement("PLAYER"),H,f),4);_.SJ().userActivation=!0;_.iQ(D)})};
_.AF.prototype.handleIntersect=function(K){kci(this,K[K.length-1])};
var kci=function(K,d){K.watchWhileJobId&&_.oc.cancelJob(K.watchWhileJobId);K.watchWhileJobId=_.oc.addLowPriorityJob(function(){var f,H;return _.c(function(D){if(D.nextAddress==1)return K.watchWhileJobId=void 0,f=_.eq().resolve(_.$b),d.intersectionRatio>xRt?f.isMiniplayerActive()?_.I(D,f.deactivate(),0):D.jumpTo(0):(H=!f.isMiniplayerActive())?_.I(D,wDl(K),5):D.jumpTo(4);D.nextAddress!=4&&(H=D.yieldResult);if(!H)return D.jumpTo(0);_.SJ().watchWhileActivation=!0;return _.I(D,Zqt(K),0)})},100)},wDl=function(K){return _.c(function(d){return d.nextAddress==
1?_.M("kevlar_watch_while_paused")?d.return(!0):_.I(d,K.isPlayerPlaying(),2):d.return(d.yieldResult)})};
_.AF.prototype.isPlayerPlaying=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,K.JSC$20378_watchApi.playerApi,2);d=f.yieldResult;return f.return(d.getPlayerStateObject().isPlaying)})};
var Zqt=function(K){var d,f;return _.c(function(H){d=_.eq().resolve(_.jC).data;f=_.jhG(d.response,d.playerResponse);_.SJ().currentEndpoint=f.watchEndpoint||null;return _.I(H,_.eq().resolve(_.$b).activate(K.JSC$20378_watchApi.getElement("PLAYER"),f,d),0)})};_.Kzz=function(K){_.gG.call(this);this.JSC$20382_watchApi=K;ebw(this);pDc(this)};
_.O(_.Kzz,_.gG);var pDc=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20382_watchApi.playerApi,2);d=H.yieldResult;f=function(D){var S;D.sessionData&&D.sessionData.itct&&(S=D.sessionData.itct);var n=D.watchEndpoint;if(n&&D.sessionData&&D.sessionData.autonav)n=_.$1X(n,S);else{var u;n=_.sx(D.videoId,(u=D.listId)!=null?u:void 0,S)}S={endpoint:n};D.sessionData&&(S.tempData=D.sessionData);K.JSC$20382_watchApi.dispatchEvent("yt-navigate",S)};
d.addEventListener("onPlayVideo",f);K.addOnDisposeCallback(function(){d.removeEventListener("onPlayVideo",f)});
_.iQ(H)})},ebw=function(K){var d=function(f){K.onYtNavigate(f)};
K.JSC$20382_watchApi.getRoot().addEventListener("yt-navigate",d);K.addOnDisposeCallback(function(){K.JSC$20382_watchApi.getRoot().removeEventListener("yt-navigate",d)})};
_.Kzz.prototype.onYtNavigate=function(K){var d=this,f,H,D,S,n,u,a,R,F;return _.c(function(z){if(z.nextAddress==1){if(!((f=K.detail)==null?0:(H=f.endpoint)==null?0:H.watchEndpoint))return z.return();D=K.detail.endpoint.watchEndpoint;S=d.JSC$20382_watchApi.getWatchNextResponse();u=_.P((n=S)==null?void 0:n.currentVideoEndpoint,_.qu);if(!u)return z.return();if(D.videoId!==u.videoId||D.playlistId&&D.playlistId!==u.playlistId||typeof D.startTimeSeconds!=="number")return z.jumpTo(0);K.stopPropagation();
(a=_.M("kevlar_watch_while_v2")&&!_.M("kevlar_watch_while_counterfactual"))&&_.eq().resolve(_.$b).isMiniplayerActive()||d.JSC$20382_watchApi.scrollWatchTo(0,!0);return _.I(z,d.JSC$20382_watchApi.playerApi,3)}R=z.yieldResult;F=D.startTimeSeconds;R.seekTo(F,void 0,void 0,void 0,84);R.wakeUpControls();F<R.getDuration()&&R.playVideo();_.iQ(z)})};_.fZy=function(K){_.gG.call(this);var d=this;this.JSC$20385_watchApi=K;var f=this.JSC$20385_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){d$t(d)});
this.addOnDisposeCallback(function(){d.JSC$20385_watchApi.unsubscribeByKey(f)});
d$t(this)};
_.O(_.fZy,_.gG);var d$t=function(K){var d=K.JSC$20385_watchApi.getWatchNextResponse();if(d){var f,H=[].concat(_.Me((f=d==null?void 0:d.engagementPanels)!=null?f:[]));H.unshift.apply(H,_.Me(HVU(d)));K.JSC$20385_watchApi.provideRenderingData("ENGAGEMENT_PANELS",H)}},D$w=function(K){var d,f,H,D=(d=K.engagementPanels)==null?void 0:(f=d.find(function(g){var N;
return((N=g.engagementPanelSectionListRenderer)==null?void 0:N.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(H=f.engagementPanelSectionListRenderer.content)==null?void 0:H.structuredDescriptionContentRenderer,S;
if(_.P(D==null?void 0:(S=D.items)==null?void 0:S.find(function(g){return!!_.P(g,TIi)}),TIi))return!0;
var n,u,a,R;if(K=(((n=K.contents)==null?void 0:(u=n.twoColumnWatchNextResults)==null?void 0:(a=u.results)==null?void 0:(R=a.results)==null?void 0:R.contents)||[]).find(function(g){return g.videoPrimaryInfoRenderer})){var F,z,v;
return(((F=K.videoPrimaryInfoRenderer)==null?void 0:(z=F.videoActions)==null?void 0:(v=z.menuRenderer)==null?void 0:v.flexibleItems)||[]).some(function(g){g=_.P(g,_.oSH);if(!g)return!1;var N,h;g=(N=g.topLevelButton)==null?void 0:(h=N.buttonViewModel)==null?void 0:h.onTap;if(!g)return!1;N=_.$A(g);if(!N)return!1;var m;return((m=_.P(N,_.Pd))==null?void 0:m.panelIdentifier)==="PAyouchat"})}return!1},HVU=function(K){var d=[];
if(!_.M("web_watch_inject_placeholder_fantasy_panel_killswitch")){var f,H,D,S=(f=K.engagementPanels)==null?void 0:(H=f.find(function(u){var a;return((a=u.engagementPanelSectionListRenderer)==null?void 0:a.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(D=H.engagementPanelSectionListRenderer.content)==null?void 0:D.structuredDescriptionContentRenderer,n;
_.P(S==null?void 0:(n=S.items)==null?void 0:n.find(function(u){return!!_.P(u,U2l)}),U2l)&&(f=_.ENo("PAsports_fantasy"),f.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d.push(f))}D$w(K)&&(K=_.ENo("PAyouchat"),K.engagementPanelSectionListRenderer.targetId="PAyouchat",K.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d.push(K));
return d};_.SJK=function(K){_.gG.call(this);this.JSC$20388_watchApi=K;Vuy(this)};
_.O(_.SJK,_.gG);var Vuy=function(K){K.JSC$20388_watchApi.registerActionHandler("yt-loop-command",function(d){ygZ(K,d)});
K.JSC$20388_watchApi.registerActionHandler("yt-repeat-chapter-command",function(d){nIS(K,d)});
K.addOnDisposeCallback(function(){K.JSC$20388_watchApi.unregisterActionHandler("yt-loop-command");K.JSC$20388_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},ygZ=function(K,d){var f;
_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20388_watchApi.playerApi,2);f=H.yieldResult;_.P(d,FLS).loop?(f.setLoopRange({startTimeMs:Number(_.P(d,FLS).startTimeMs),endTimeMs:Number(_.P(d,FLS).endTimeMs),postId:_.P(d,FLS).postId,type:"clips"}),f.playVideo()):f.setLoopRange(null);_.iQ(H)})},nIS=function(K,d){var f,H;
_.c(function(D){if(D.nextAddress==1)return _.I(D,K.JSC$20388_watchApi.playerApi,2);f=D.yieldResult;H=_.P(d,PIz).repeat;H==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(f.setLoopRange({startTimeMs:Number(_.P(d,PIz).startTimeMs),endTimeMs:Number(_.P(d,PIz).endTimeMs),type:"repeatChapter"}),f.playVideo()):H==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&f.setLoopRange(null);_.iQ(D)})};_.cgi=function(K){_.gG.call(this);this.JSC$20393_watchApi=K;iVw(this)};
_.O(_.cgi,_.gG);var iVw=function(K){K.JSC$20393_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(d){uGy(K,d)});
K.addOnDisposeCallback(function(){K.JSC$20393_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},uGy=function(K,d){var f,H,D,S,n,u,a,R,F,z,v;
_.c(function(g){if(g.nextAddress==1)return _.I(g,K.JSC$20393_watchApi.playerApi,2);f=g.yieldResult;if(S=(D=(H=_.P(d,gxE))==null?void 0:H.highlightedMenuItemKey)!=null?D:"")(u=(n=f).highlightSettingsMenuItem)==null||u.call(n,S);if(F=(R=(a=_.P(d,gxE))==null?void 0:a.openMenuItemKey)!=null?R:"")(v=(z=f).openSettingsMenuItem)==null||v.call(z,F);_.iQ(g)})};var aZU=_.HJ("/youtube/app/watch/player_state","playerStateEntity");_.U$S=function(K){_.gG.call(this);this.JSC$20396_watchApi=K;IZy(this)};
_.O(_.U$S,_.gG);var RZi=function(K){switch(K){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"}},IZy=function(K){var d,f;
_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20396_watchApi.playerApi,2);d=H.yieldResult;f=function(D){K.onPlayerStateChange(D)};
d.addEventListener("onStateChange",f);K.addOnDisposeCallback(function(){d.removeEventListener("onStateChange",f)});
_.iQ(H)})};
_.U$S.prototype.onPlayerStateChange=function(K){var d=this,f,H;return _.c(function(D){if(D.nextAddress==1)return _.I(D,d.JSC$20396_watchApi.playerApi,2);f=D.yieldResult;H=f.getVideoData().video_id;_.TC().dispatch(_.nt("playerStateEntity",aZU,{key:aZU,playerState:RZi(K),videoId:H}));_.iQ(D)})};_.Fzw=function(K){_.gG.call(this);var d=this;this.JSC$20400_watchApi=K;_.eq().resolve(_.Yf).setPlayer(this.JSC$20400_watchApi.getElement("PLAYER"));K=this.JSC$20400_watchApi.subscribeToActiveChanged(function(f){d.onActiveChanged(f)});
this.addOnDisposeCallback(K)};
_.O(_.Fzw,_.gG);_.Fzw.prototype.onActiveChanged=function(K){var d=this,f=_.eq().resolve(_.Yf),H=function(){zZc(d)};
K?(K=this.JSC$20400_watchApi.getElement("PLAYLIST_PANEL"))?(f.setPlaylistComponent(K),f.addEventListener("yt-playlist-data-updated",H),this.addOnDisposeCallback(function(){f.removeEventListener("yt-playlist-data-updated",H)}),zZc(this)):_.rF(Error("im")):(f.removeEventListener("yt-playlist-data-updated",H),f.cancelVideoSkip())};
var zZc=function(K){var d=_.eq().resolve(_.Yf);K.JSC$20400_watchApi.provideRenderingData("PLAYLIST",d.getPlaylistData())};_.Tg=function(K){_.gG.call(this);var d=this;this.JSC$20403_watchApi=K;this.onPageScroll=function(){d.scrollThrottle.fire();d.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Ct(this.onThrottledScroll,200,this);_.cy(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Ct(this.onMastheadThrottledScroll,50,this);_.cy(this,this.mastheadScrollThrottle);this.animation=new _.h0(function(f){d.JSC$20403_watchApi.getRoot().setScrollTop(f)});
K=_.n5(_.j3(),_.Ny,function(){XmE(d)});
this.addOnDisposeCallback(K);vIy(this);Muz(this);this.onThrottledScroll()};
_.O(_.Tg,_.gG);
var XmE=function(K){var d=K.JSC$20403_watchApi.getRoot();!K.pageScrollElement&&d.pageScrollElement?(K.pageScrollElement=d.pageScrollElement,d.pageScrollElement.addEventListener("scroll",K.onPageScroll),K.addOnDisposeCallback(function(){K.pageScrollElement&&K.pageScrollElement.removeEventListener("scroll",K.onPageScroll)})):K.pageScrollElement&&!d.pageScrollElement&&(K.pageScrollElement.removeEventListener("scroll",K.onPageScroll),K.pageScrollElement=void 0)},vIy=function(K){window.addEventListener("scroll",K.onPageScroll);
K.addOnDisposeCallback(function(){window.removeEventListener("scroll",K.onPageScroll)})},Muz=function(K){K.JSC$20403_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(d){a:{var f;
if(f=K.JSC$20403_watchApi.getRoot().contains(d)&&!K.animation.isAnimating()){f=d.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var H,D,S=(d==null?void 0:(H=d.parentElement)==null?void 0:(D=H.parentElement)==null?void 0:D.id)==="fixed-secondary";f=!(f&&S)}if(f){if(_.M("kevlar_watch_scroll_manager_absolute_offset_killswitch"))H=d.offsetTop;else for(H=0,D=d;D!==null;)H+=D.offsetTop,H-=D.scrollTop,D=D.offsetParent;D=H;H=D-24;d=D+d.offsetHeight+24;D=K.JSC$20403_watchApi.getRoot().getPageScrollingElement();
f=K.JSC$20403_watchApi.getRoot().getScrollTop();S=f+D.clientHeight-56;if(H<f+56)d=H-56;else if(d>S)d-=D.clientHeight;else break a;K.scrollWatchTo(Math.max(0,d),!0)}}});
K.addOnDisposeCallback(function(){K.JSC$20403_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.Tg.prototype.onThrottledScroll=function(){var K=_.j3(),d=K.dispatch,f=this.JSC$20403_watchApi.getRoot().getScrollTop();d.call(K,_.es({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:f}}))};
_.Tg.prototype.onMastheadThrottledScroll=function(){this.JSC$20403_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20403_watchApi.getRoot().getScrollTop())};
_.Tg.prototype.scrollWatchTo=function(K,d){(d===void 0?0:d)?this.animation.start(this.JSC$20403_watchApi.getRoot().getScrollTop(),Math.max(0,K),500):this.JSC$20403_watchApi.getRoot().setScrollTop(K)};_.OVU=function(K){_.gG.call(this);var d=this;this.JSC$20406_watchApi=K;var f=this.JSC$20406_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){PgU(d)}),H=this.JSC$20406_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gIw(d)});
this.addOnDisposeCallback(function(){d.JSC$20406_watchApi.unsubscribeByKey(f);d.JSC$20406_watchApi.unsubscribeByKey(H)});
PgU(this);gIw(this)};
_.O(_.OVU,_.gG);
var PgU=function(K){var d,f,H,D=(H=(d=K.JSC$20406_watchApi.getPlayerResponse())==null?void 0:(f=d.videoDetails)==null?void 0:f.title)!=null?H:"";K.JSC$20406_watchApi.dispatchEvent("yt-update-title",D)},gIw=function(K){var d,f,H,D,S,n,u,a=(u=((n=(d=K.JSC$20406_watchApi.getWatchNextResponse())==null?void 0:(f=d.contents)==null?void 0:(H=f.twoColumnWatchNextResults)==null?void 0:(D=H.results)==null?void 0:(S=D.results)==null?void 0:S.contents)!=null?n:[]).find(function(R){return!!R.videoPrimaryInfoRenderer}))==null?
void 0:u.videoPrimaryInfoRenderer;
(d=_.qQ(a==null?void 0:a.title))&&K.JSC$20406_watchApi.dispatchEvent("yt-update-title",d)};_.YJy=function(K){_.gG.call(this);this.JSC$20409_watchApi=K;NgZ(this)};
_.O(_.YJy,_.gG);var NgZ=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$20409_watchApi.playerApi,2);d=H.yieldResult;f=function(){K.onYpcContentRequest()};
d.addEventListener("onYpcContentRequest",f);K.addOnDisposeCallback(function(){d.removeEventListener("onYpcContentRequest",f)});
_.iQ(H)})};
_.YJy.prototype.onYpcContentRequest=function(){var K,d,f,H,D,S=(K=this.JSC$20409_watchApi.getWatchNextResponse())==null?void 0:(d=K.contents)==null?void 0:(f=d.twoColumnWatchNextResults)==null?void 0:(H=f.secondaryResults)==null?void 0:(D=H.secondaryResults)==null?void 0:D.offerModule,n,u,a,R;K=(R=(a=(u=(n=S==null?void 0:S.episodeOfferModuleRenderer)!=null?n:S==null?void 0:S.movieOfferModuleRenderer)!=null?u:S==null?void 0:S.unlimitedOfferModuleRenderer)!=null?a:S==null?void 0:S.liveOfferModuleRenderer)!=
null?R:S==null?void 0:S.tvfilmOfferModuleRenderer;var F,z,v;S=(v=S==null?void 0:(F=S.tvfilmOfferModuleRenderer)==null?void 0:(z=F.actionButtons)==null?void 0:z.length)!=null?v:0;z=Math.max(S-1,0);var g,N,h;F=(h=K==null?void 0:(g=K.offerButton)==null?void 0:g.buttonRenderer)!=null?h:K==null?void 0:(N=K.actionButtons)==null?void 0:N[z].buttonRenderer;var m,T;(g=(T=(m=F==null?void 0:F.navigationEndpoint)!=null?m:F==null?void 0:F.serviceEndpoint)!=null?T:F==null?void 0:F.command)&&_.V2.instance.resolveCommand(g)};
}catch(e){_._DumpException(e)}
try{
var Znl,slw,BQZ;_.Jcy=function(){var K=_.PR.clone(LUw),d;return(new _.ip(function(f,H){K.onSuccess=function(D){_.ltS(D)?f(new BQZ(D)):H(new _.xq("Request failed, status="+_.DU(D),"net.badstatus",D))};
K.onError=function(D){H(new _.xq("Unknown request error","net.unknown",D))};
K.onTimeout=function(D){H(new _.xq("Request timed out","net.timeout",D))};
d=_.iH("//googleads.g.doubleclick.net/pagead/id",K)})).thenCatch(function(f){if(f instanceof _.mf){var H;
(H=d)==null||H.abort()}return _.vv(f)})};
_.kht=function(K){a:{var d="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(d="EMBEDDED_PLAYER_MODE_PFL");var f=K.raw_embedded_player_response;if(!f&&(K=K.embedded_player_response))try{f=JSON.parse(K)}catch(D){break a}if(f)b:for(var H in slw)if(slw[H]==f.embeddedPlayerMode){d=slw[H];break b}}return d==="EMBEDDED_PLAYER_MODE_PFL"};
_.wCP=function(){if(_.M("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("mf");if(!_.pkX())return Error("nf");var K=_.mD("PLAYER_VARS",{});if(_.PR.get(K,"privembed",!1)=="1")return Error("of");if(_.kht(K))return Error("pf")};
Znl=function(K){switch(K){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:_.nE(K,"unknown result type")}};
_.e7y=function(K,d,f){d=_.ZIu[d];f={detected:K===0,source:d.hqj,detectionResult:Znl(K),contentCpn:f};_.t3("biscottiBasedDetection",f);_.SO8.increment(d.hqj,K);d.yho!==void 0&&_.bx("CATSTAT",_.k8J(K,d))};
_.LP=function(K,d){var f={};f.key=K;f.value=d;return _.h4O().then(function(H){return new Promise(function(D,S){try{var n=H.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(f);n.onsuccess=function(){D()};
n.onerror=function(){S()}}catch(u){S(u)}})})};
_.KD7=function(){var K=_.di("user_engagement_experiments_rate_limit_ms"),d=pCy.get("last-user-engagement-exp-trigger-timestamp");return!d||(0,_.k_)()>=d+K?(pCy.set("last-user-engagement-exp-trigger-timestamp",(0,_.k_)()),!0):!1};
_.Bj=function(K,d,f,H,D){d=d===void 0?null:d;f=f===void 0?null:f;H=H===void 0?null:H;D=D===void 0?null:D;K={youThereEventType:K};f&&(K.lactThresholdMs=f.lactThresholdMs,K.mediaPosSec=f.promptDelaySec,K.lactServerRequestMs=f.lactServerRequestMs,K.triggerReason=f.triggerReason);D!=null&&(K.renderingMediaPosSec=Math.round(D));d||(d=_.te());d&&(K.clientScreenNonce=d);H&&(K.clientPlaybackNonce=H);_.t3("youThere",K)};
slw={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"};BQZ=function(K){this.xhr=K};
_.xq=function(K,d,f){_.KB.call(this,K+", errorCode="+d);this.errorCode=d;this.xhr=f;this.name="PromiseAjaxError"};
_.O(_.xq,_.KB);var LUw={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var pCy=new _.mn("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.teK=function(K){return _.es({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:K})};
}catch(e){_._DumpException(e)}
try{
var jy,Agz,rgS,qJw,Qri,jrw,x$K,eZE,pmi,Km7,CgE,TgP,srw,JgZ,Hlz;_.G6w=function(){var K=window.location.hash;K.charAt(0)==="#"&&(K=K.charAt(1)==="!"?K.substring(2):K.substring(1));return _.jq(K)};
jy=function(K,d,f){var H;return _.c(function(D){if(D.nextAddress==1)return _.I(D,d(),2);H=D.yieldResult;f(H,K);_.iQ(D)})};
Agz=function(){return _.c(function(K){return K.nextAddress==1?_.I(K,(_.wCP()!==void 0?_.vv(Error("qf")):_.Jcy()).then(function(){return 1},function(d){if(d.message==="Biscotti id is disabled")return 3;
_.h3("Failed fetching bid");return 0}),2):K.return(K.yieldResult)})};
rgS=function(){var K=_.BJ("eWVyI2JubHVtM2xxbDhvanl0LWhhdmVuLWVtYmVkLXBsYQ=="),d=_.BJ("Y3RlbW12ZzNpZnJhbWUjbHZnaQ==");return document.querySelector(d+TgP+K)?0:1};
qJw=function(){return _.G8X(_.li)};
Qri=function(){return _.AjG()===0?0:_.TsB()};
jrw=function(){return _.CmJ(_.Dzn([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"]]]))};
x$K=function(){return _.ocp(CgE)};
_.Lzl=function(K){_.c(function(d){switch(d.nextAddress){case 1:return _.I(d,jy("b.f_",Agz,K),2);case 2:return _.I(d,jy("j.s_",_.Y95,K),3);case 3:return _.I(d,jy("r.s_",_.gcB,K),4);case 4:return _.I(d,jy("e.h_",x$K,K),5);case 5:if(!_.M("ab_det_sc_inj")){d.jumpTo(6);break}return _.I(d,jy("s.i_",_.lIS,K),6);case 6:if(_.M("ab_deg_unex_thr")){d.jumpTo(8);break}return _.I(d,jy("a.o_",_.bIp,K),8);case 8:if(_.M("ks_get_o_pp")){d.jumpTo(10);break}return _.I(d,jy("g.o_",_.hLu,K),10);case 10:if(_.M("ks_det_gpbl")){d.jumpTo(12);
break}return _.I(d,jy("p.i_",_.EcG,K),12);case 12:return _.I(d,jy("f.i_",_.u8S,K),14);case 14:return _.I(d,jy("a.b_",_.Mbp,K),15);case 15:return _.I(d,jy("p.m_",_.Uzo,K),16);case 16:if(!_.M("ab_det_el_h_v2")){d.jumpTo(17);break}return _.I(d,jy("n.h_",jrw,K),17);case 17:return _.I(d,jy("o.p_",qJw,K),19);case 19:return _.I(d,jy("e.i_",rgS,K),20);case 20:if(_.M("ab_det_apm"))return _.I(d,jy("o.a_",Qri,K),0);d.jumpTo(0)}})};
_.Bgw=function(K,d){K={videoId:K};d&&(K.playlistId=d);return K};
_.k6Z=function(){if(_.pkX()){var K=_.mD("PLAYER_VARS",{});if(_.PR.get(K,"privembed",!1)!="1"&&!_.kht(K)){var d=function(){JgZ=!0;"google_ad_status"in window?_.bx("DCLKSTAT",1):_.bx("DCLKSTAT",2)};
try{_.mV("//static.doubleclick.net/instream/ad_status.js",d)}catch(f){}srw.push(_.oc.addLowPriorityJob(function(){if(!(JgZ||"google_ad_status"in window)){try{_.Lo5("//static.doubleclick.net/instream/ad_status.js",d)}catch(f){}JgZ=!0;_.bx("DCLKSTAT",3)}},5E3))}}};
_.C4=function(K,d,f){f=f===void 0?!1:f;var H=Math.max(K.width,_.q_w);if(_.M("kevlar_watch_feed_big_thumbs")&&K.width>=1550-_.tU()&&K.height>=800)H-=_.BIc;else if(K.width>=_.G_){var D=_.Q8U+_.j8w+_.W8;_.M("kevlar_watch_feed_big_thumbs")&&(D=_.LLw);H-=D}else H-=_.Q8U;H=Math.min(H,_.CIK);D=240;f&&(D=380);d<.5624||(!_.M("kevlar_watch_flexy_disable_small_window_sizing")&&(K.height<630&&K.width>=657||K.height>=630&&K.width>=_.G_&&K.width<1327)?D=360:!_.M("kevlar_watch_flexy_disable_large_window_sizing")&&
K.height>=630&&K.width>=1327&&(D=480));var S=Math.min(H*d,K.height-(56+_.rul+_.x2Z));S=Math.max(S,D);d<1?H=S/d:K.width>=_.G_&&(H=_.C4(K,.5625,f).width);return new _.n0(Math.round(H),Math.round(S))};
_.wmw=function(K){var d=0;K.indexOf("h")!=-1&&(K=K.split("h"),d=K[0]*60*60,K=K[1]);K.indexOf("m")!=-1&&(K=K.split("m"),d=K[0]*60+d,K=K[1]);K.indexOf("s")!=-1?(K=K.split("s"),d=K[0]*1+d):d=K*1+d;return d};
_.ZVP=function(){_.di("service_worker_push_logged_out_prompt_watches")!=-1&&_.JU("WatchCount").then(function(K){K>=100||_.LP("WatchCount",K+1)})};
eZE=function(K){var d=K.externalVideoId||"";return d?K.isShortsEligible?"https://www.youtube.com/shorts/"+d:"https://www.youtube.com/watch?v="+d:""};
pmi=function(K){var d=[];K.viewCount&&d.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:K.viewCount});K.likeCount&&d.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:K.likeCount});return d};
Km7=function(K){var d,f,H={"@context":"https://schema.org","@type":"VideoObject",description:_.qQ(K.description),duration:"PT"+(K.lengthSeconds||"0")+"S",embedUrl:K.embed?K.embed.iframeUrl:"",name:_.qQ(K.title),thumbnailUrl:((d=K.thumbnail)==null?void 0:(f=d.thumbnails)==null?void 0:f.map(function(F){return F&&F.url||""}))||[],
uploadDate:K.publishDate};_.M("mweb_video_schema_id_killswitch")||(H["@id"]=eZE(K));d=pmi(K);d.length&&(H.interactionStatistic=d);K.category&&(H.genre=K.category);K.ownerChannelName&&(H.author=K.ownerChannelName);K.liveBroadcastDetails&&(H.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:K.liveBroadcastDetails.startTimestamp,endDate:K.liveBroadcastDetails.endTimestamp}]);if(K.learningResource){K=K.learningResource;H["@type"]=["VideoObject","LearningResource"];var D;if((D=K.learningResourceType)==
null?0:D.length)H.learningResourceType=K.learningResourceType[0];var S;if((S=K.educationalAlignment)==null?0:S.length)H.educationalAlignment={"@type":"AlignmentObject",targetName:K.educationalAlignment[0]};var n;if((n=K.educationalLevel)==null?0:n.length){D=K.educationalLevel[0];var u;if((u=K.educationalLevelCountry)==null?0:u.length)D+=" ("+K.educationalLevelCountry+")";H.educationalLevel=D}var a,R;if(((a=K.learningResourceType)==null?0:a.length)&&K.learningResourceType[0]==="Problem walkthrough"&&
((R=K.problemDescriptions)==null?0:R.length))for(H.hasPart=[],u=_.y(K.problemDescriptions),a=u.next();!a.done;a=u.next())D=a.value,a=D.problemDescriptionText,R=D.startOffset,D=D.url,a&&R!==void 0&&D&&H.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:a,text:a,startOffset:R,url:D})}return H};
_.dBi=function(K){return _.es({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:K}})};
CgE=[[["OG9ibHByaW1hcnkjcHg3d2IwZWQ=",null],[null,["d3NlLXJlc3VsdHMtcmVuZGVyZXIja2ZuMW1laDNsM3h4eXRkLXR3by1jb2x1bW4tYnJv","c3RseTFyMjB0b240c3R5bGUtc2NvcGUj"]],["dmtkYWplZWQxdDgwbWFzdGhlYWQtYWQj",["ciNlMjNnaWhnaDVieW15dGQtcmljaC1ncmlkLXJlbmRlcmU="]],[null,["ciNubmV3aHRmMnk5emV5dGQtcmljaC1ncmlkLXJlbmRlcmU=","aTBkMHFuaWRwbW1yc3R5bGUtc2NvcGUj"]],[null,["ZW5odXduaG95dGQtYmFubmVyLXByb21vLXJlbmRlcmVyI2Jkb2U=","OHBsZ2x3NHlyazEzc3R5bGUtc2NvcGUj"]],[null,["ZGVyZXIjaTZ1aDQ2ZnI1ZzhieXRkLWFkLXNsb3QtcmVu"]]],[["ZHMjNXIwNnNqd3l2NHp6cGxheWVyLWE=",
null]]];TgP="#";srw=[];JgZ=!1;_.fYi=["engagement-panel-ads"];Hlz=new _.Z("updateSentimentBarStateCommand");_.DBl=new _.Z("showSurveyCommand");_.xC=new _.Z("changeMarkersVisibilityCommand");var S6S,ynw,ulz,cnw,ilP,L4;_.Vrt=function(K,d){this.playerProvider_=K;this.actionSenderElement_=d;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Vrt.prototype.reset=function(){S6S(this);this.isUserPredictedAbsent_=!1};
S6S=function(K,d){!K.youThereData_||K.showWarningJob_||d!==void 0&&d||(_.Bj("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.te(),K.youThereData_,K.clientPlaybackNonce_),_.oB());_.oc.cancelJob(K.showWarningJob_);K.showWarningJob_=0;_.oc.cancelJob(K.showBlockingWarningJob_);K.showBlockingWarningJob_=0;_.oc.cancelJob(K.pausePlaybackJob_);K.pausePlaybackJob_=0;K.youThereData_=null;K.clientPlaybackNonce_=void 0;K.inYouThereFlow_=!1};
_.nrz=function(K,d){var f,H,D;_.c(function(S){if(S.nextAddress==1)return K.reset(),_.I(S,K.playerProvider_().getPlayerPromise(),2);f=S.yieldResult;K.clientPlaybackNonce_=f.getVideoData().cpn;K.youThereData_=d.configData.youThereData;if(!K.youThereData_)return S.return();if(K.youThereData_.triggerReason&&K.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.KD7())return _.Bj("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.te(),K.youThereData_,K.clientPlaybackNonce_),S.return();H=K.youThereData_.promptDelaySec;
D=f.getCurrentTime();K.showWarningJob_=_.oc.addLowPriorityJob(function(){return _.c(function(n){K.showWarningJob_=0;return _.I(n,ynw(K),0)})},Math.max(H-D,0)*1E3);
_.iQ(S)})};
ynw=function(K){var d,f,H,D,S,n;return _.c(function(u){if(u.nextAddress==1)return _.I(u,K.playerProvider_().getPlayerPromise(),2);if(u.nextAddress!=3)return d=u.yieldResult,f=d.getCurrentTime(),_.I(u,ilP(K),3);H=u.yieldResult;if(!H||!K.youThereData_)return u.return();if(_.M("check_user_lact_at_prompt_shown_time_on_web")&&(D=parseInt(K.youThereData_.lactThresholdMs,10),_.pA()<D))return _.Bj("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.te(),K.youThereData_,K.clientPlaybackNonce_),u.return();if(K.youThereData_.playbackPauseDelayMs<=
0)return cnw(K),u.return();!_.M("external_fullscreen")&&(S=_.Je())&&(K.ignoreFullscreenExitUserActivity_=!0,_.oc.addLowPriorityJob(function(){K.ignoreFullscreenExitUserActivity_=!1},2E3),_.sy(S));
K.youThereData_.showToastWarningPrompt&&(L4(K,K.youThereData_.showWarningActions),K.inYouThereFlow_=!0,_.Bj("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.te(),K.youThereData_,K.clientPlaybackNonce_,f),_.Bj("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.te(),K.youThereData_,K.clientPlaybackNonce_,f));n=0;K.youThereData_.blockingPromptDelayMs&&(n=K.youThereData_.blockingPromptDelayMs);K.showBlockingWarningJob_=_.oc.addLowPriorityJob(function(){return _.c(function(a){K.showBlockingWarningJob_=0;return _.I(a,
ulz(K),0)})},n);
_.iQ(u)})};
ulz=function(K){var d,f,H;return _.c(function(D){if(D.nextAddress==1)return _.I(D,ilP(K),2);d=D.yieldResult;if(!K.youThereData_)return D.return();d&&(K.youThereData_.showBlockingWarningAction&&(_.Bj("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.te(),K.youThereData_,K.clientPlaybackNonce_),(f=_.P(K.youThereData_.showBlockingWarningAction,_.DE))?L4(K,f.commands):L4(K,[K.youThereData_.showBlockingWarningAction]),K.inYouThereFlow_=!0),H=K.youThereData_.playbackPauseDelayMs,K.pausePlaybackJob_=
_.oc.addLowPriorityJob(function(){return _.c(function(S){K.pausePlaybackJob_=0;return _.I(S,cnw(K),0)})},H));
_.iQ(D)})};
cnw=function(K){var d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,ilP(K),2);d=f.yieldResult;if(!K.youThereData_)return f.return();d&&(_.Bj("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.te(),K.youThereData_,K.clientPlaybackNonce_),L4(K,K.youThereData_.showPausedActions),K.inYouThereFlow_=!0);_.iQ(f)})};
_.Vrt.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var K=_.P(this.youThereData_.userActiveDuringFlowAction,_.DE);K?L4(this,K.commands):L4(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Bj("YOU_THERE_EVENT_TYPE_LACT_RESET",_.te(),this.youThereData_,this.clientPlaybackNonce_),_.oB());S6S(this,!0)}_.aYU(this,!1)};
_.IYP=function(K){_.Bj("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.te(),K.youThereData_,K.clientPlaybackNonce_)};
ilP=function(K){var d,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,K.playerProvider_().getPlayerPromise(),2);d=H.yieldResult;f=d.getPlayerState();return H.return(f==-1||f==1||f==3)})};
_.aYU=function(K,d){var f;_.c(function(H){if(H.nextAddress==1){if(K.isUserPredictedAbsent_==d)return H.jumpTo(0);K.isUserPredictedAbsent_=d;return _.I(H,K.playerProvider_().getPlayerPromise(),3)}f=H.yieldResult;f.setUserEngagement(d);d&&_.Bj("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.te(),K.youThereData_,K.clientPlaybackNonce_);_.iQ(H)})};
L4=function(K,d){if(_.M("handle_service_request_actions")||_.M("kevlar_youthere_service_endpoint_actions_killswitch"))_.fd(K.actionSenderElement_,d,K.actionSenderElement_);else{d=_.y(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.sendPost?_.dN(K.actionSenderElement_,[f]):_.fd(K.actionSenderElement_,[f],K.actionSenderElement_)}};var UBy;var R$z;var Bh=function(){var K=_.q.apply(this,arguments)||this;K.systemIcons=_.M("kevlar_system_icons");K.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return K};
_.O(Bh,_.q);Bh.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var K=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(K=this.data.percentIfLiked||0,this.activated=!0):(K=this.data.percentIfIndifferent||0,this.activated=!1);_.E(this.hostElement).querySelector("#like-bar").style.width=K+"%"}};
Bh.prototype.handleUpdateSentimentBarStateCommand=function(K){this.data&&this.set("data.likeStatus",_.P(K,Hlz).likeStatus)};
Bh.prototype.observeLikeStatus=Bh.prototype.observeLikeStatus;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Bh.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Bh.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Bh.prototype,"activated",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Bh.prototype,"systemIcons",void 0);_.x([_.SP("data.likeStatus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bh.prototype,"observeLikeStatus",null);Bh=_.x([_.Q({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Bh);
_.C(Bh,"ytd-sentiment-bar-renderer",function(){if(R$z!==void 0)return R$z;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return R$z=K},{mode:1});var Fmt;var JF=function(){var K=_.q.apply(this,arguments)||this;K.small=!0;return K};
_.O(JF,_.q);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],JF.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],JF.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],JF.prototype,"small",void 0);JF=_.x([_.Q({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],JF);
_.C(JF,"ytd-video-view-count-renderer",function(){if(Fmt!==void 0)return Fmt;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Fmt=K},{mode:_.p8("kevlar_poly_si_batch_j080")?1:2});var sM=function(){var K=_.q.apply(this,arguments)||this;K.infoFormattedStrings=[];K.wrapVideoActions=_.M("kevar_watch_wrap_video_actions");K.hideSentimentBar=_.M("kevlar_watch_hide_sentiment_bar");K.actionMap={};return K};
_.O(sM,_.q);_.V=sM.prototype;_.V.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.M("web_modern_buttons"),forceIconButton:!_.M("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.V.dataChanged=function(){_.M("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.V.computeInfoFormattedStrings=function(K){if(!K)return[];var d=[];K.dateText&&d.push(K.dateText);K.stationName&&d.push(K.stationName);K.rating&&d.push(K.rating);K.startEndTimeTemplate&&K.startTimeUtcMillis&&K.endTimeUtcMillis&&d.push(_.rB(_.DUP(_.qQ(K.startEndTimeTemplate),Number(K.startTimeUtcMillis),Number(K.endTimeUtcMillis))));K.upNextProgramText&&d.push(K.upNextProgramText);return d};
_.V.scheduleInitialUpdatedMetadataRequest=function(){var K,d=(K=this.data)==null?void 0:K.updatedMetadataEndpoint;if(d){var f;K=Number((f=_.P(d,_.n5v))==null?void 0:f.initialDelayMs);f=isNaN(K)?250:K;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),f)}};
_.V.setSentimentBarWidth=function(){var K=this;_.jW(this,function(){var d=_.E(K.hostElement).querySelector("ytd-menu-renderer");if(d){d=d.topLevelButtons;for(var f=0,H=0;H<d.length;H++){var D=d[H],S=K.get("toggleButtonSupportedData.toggleButtonIdData.id",D.data);if(S==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||S==="TOGGLE_BUTTON_ID_TYPE_LIKE")f+=D.clientWidth+8;else break}f&&(K.sentiment.style.width=f-8+" px")}})};
_.V.fetchUpdatedMetadata=function(K){var d;K&&(d={continuation:K});var f;(K=(f=this.data)==null?void 0:f.updatedMetadataEndpoint)&&_.eq().resolve(_.pQ).resolveCommand(K,{form:Object.assign({},d,{element:this.hostElement})})};
_.V.onYtServiceRequestSent=function(K,d){d.endpoint&&_.P(d.endpoint,_.bc)&&(this.hasUpdateSentimentBarStateCommands()&&!_.M("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.P(d.endpoint,_.bc).status),this.setSentimentBarWidth())};
_.V.hasUpdateSentimentBarStateCommands=function(){var K,d,f,H,D=(H=(K=this.data)==null?void 0:(d=K.videoActions)==null?void 0:(f=d.menuRenderer)==null?void 0:f.topLevelButtons)!=null?H:[];K=_.y(D);for(d=K.next();!d.done;d=K.next()){d=d.value;D=H=f=void 0;var S=(f=d.toggleButtonRenderer)==null?void 0:(H=f.toggleButtonSupportedData)==null?void 0:(D=H.toggleButtonIdData)==null?void 0:D.id;if(S==="TOGGLE_BUTTON_ID_TYPE_LIKE"||S==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){H=f=void 0;d=(H=_.P((f=d.toggleButtonRenderer)==
null?void 0:f.defaultServiceEndpoint,_.DE))==null?void 0:H.commands;if(!d)break;d=_.y(d);for(f=d.next();!f.done;f=d.next())if(_.P(f.value,Hlz))return!0}}return!1};
_.V.onYtServiceRequestCompleted=function(K,d){var f;(K=(f=d.data)==null?void 0:f.loggingDirectives)&&_.vyG(_.cv(),K);this.get("continuation.timedContinuationData",d.data)&&this.data&&this.data.updatedMetadataEndpoint&&(d=d.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,d.continuation),d.timeoutMs))};
_.V.computeHasDateText=function(K){return!!K&&!!K.dateText};
_.x$.Object.defineProperties(sM.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H;return!((H=(K=this.data)==null?void 0:(d=K.videoActions)==null?void 0:(f=d.menuRenderer)==null?void 0:f.flexibleItems)==null||!H.length)}}});
sM.prototype.onYtServiceRequestCompleted=sM.prototype.onYtServiceRequestCompleted;sM.prototype.onYtServiceRequestSent=sM.prototype.onYtServiceRequestSent;sM.prototype.dataChanged=sM.prototype.dataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],sM.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],sM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.xc.YtTaskEmitterBehavior),_.B("design:type",Object)],sM.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],sM.prototype,"data",void 0);_.x([_.A({computed:"computeInfoFormattedStrings(data)"}),_.B("design:type",Array)],sM.prototype,"infoFormattedStrings",void 0);
_.x([_.A({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],sM.prototype,"hasDateText",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],sM.prototype,"wrapVideoActions",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],sM.prototype,"hideSentimentBar",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],sM.prototype,"flexMenuEnabled",null);
_.x([_.n8("#sentiment"),_.B("design:type",Object)],sM.prototype,"sentiment",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sM.prototype,"dataChanged",null);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],sM.prototype,"onYtServiceRequestSent",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],sM.prototype,"onYtServiceRequestCompleted",null);
_.C(sM,"ytd-video-primary-info-renderer",function(){if(UBy===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);UBy=K}K=UBy;return K},{mode:1});var z$t;var kC=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return K};
_.O(kC,_.q);_.V=kC.prototype;_.V.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"}}}};
_.V.dataChanged=function(){var K;this.descriptionToggled=!((K=this.data)==null||!K.defaultExpanded);var d;this.collapsed=this.descriptionAlwaysCollapsed||!((d=this.data)==null?0:d.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.vp(110509);this.showLessClientVe=_.vp(110510);K=_.te();d=_.YZ();K&&d&&_.WG(K,d,[this.showMoreClientVe,this.showLessClientVe])};
_.V.onYtExpanderMoreTapped=function(){var K,d=(K=this.data)==null?void 0:K.showMoreCommand;d&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(d);(K=_.te())&&this.showMoreClientVe&&_.rN(K,this.showMoreClientVe)};
_.V.onYtExpanderLessTapped=function(){var K=_.te();K&&this.showLessClientVe&&_.rN(K,this.showLessClientVe);var d;(K=(d=this.data)==null?void 0:d.showLessCommand)&&this.componentBehavior.resolveCommand(K)};
_.V.handleUpdateDateTextAction=function(K){this.data&&this.data.dateText&&this.set("data.dateText",_.P(K,_.m2l).dateText)};
_.V.handleUpdateDescriptionAction=function(K){if(K=_.P(K,_.p3B))K.isEmpty||!K.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Nd(K.description)):this.set("data.description",K.description)};
_.V.onYtChangeEngagementPanelVisibilityAction=function(K){if(_.M("web_structured_description_show_more")||_.M("web_engagement_panel_open_description")){var d,f=(d=_.P(K,_.j16))==null?void 0:d.targetId,H;K=((H=_.P(K,_.j16))==null?void 0:H.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";f==="engagement-panel-structured-description"&&K&&(this.descriptionToggled=!0)}};
_.V.updateCollapsedFromBinding=function(K){this.collapsed=K.detail.value};
_.V.updateDescriptionToggledFromBinding=function(K){this.descriptionToggled=K.detail.value};
_.V.updateCanCollapseFromBinding=function(K){this.canCollapse=K.detail.value};
_.x$.Object.defineProperties(kC.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(K=this.data)==null?void 0:(d=K.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer;return!!f&&!!f.rows&&f.rows.length>f.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.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}}});
kC.prototype.onYtExpanderLessTapped=kC.prototype.onYtExpanderLessTapped;kC.prototype.onYtExpanderMoreTapped=kC.prototype.onYtExpanderMoreTapped;kC.prototype.dataChanged=kC.prototype.dataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],kC.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],kC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],kC.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],kC.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],kC.prototype,"collapsed",void 0);_.x([_.A(),_.B("design:type",Boolean)],kC.prototype,"descriptionToggled",void 0);
_.x([_.A(),_.B("design:type",Boolean)],kC.prototype,"canCollapse",void 0);_.x([_.A(),_.B("design:type",Object)],kC.prototype,"subscribeButtonData",void 0);_.x([_.A(),_.B("design:type",Number)],kC.prototype,"descriptionCollapsedHeight",void 0);_.x([_.A(),_.B("design:type",Object)],kC.prototype,"structuredDescriptionContentRenderer",void 0);_.x([_.A({value:function(){return _.M("web_watch_description_always_collapsed")}}),
_.B("design:type",Boolean)],kC.prototype,"descriptionAlwaysCollapsed",void 0);_.x([_.n8("#description"),_.B("design:type",HTMLDivElement)],kC.prototype,"description",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kC.prototype,"dataChanged",null);_.x([_.VV("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kC.prototype,"onYtExpanderMoreTapped",null);
_.x([_.VV("yt-expander-less-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kC.prototype,"onYtExpanderLessTapped",null);_.x([_.W("data.metadataRowContainer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kC.prototype,"metadataCollapsible",null);_.x([_.W("data","structuredDescriptionContentRenderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kC.prototype,"hasInlineStructuredDescription",null);
_.x([_.W("data.attributedDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kC.prototype,"hasAttributedDescription",null);_.x([_.W("hasInlineStructuredDescription","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kC.prototype,"loadStructuredDescription",null);_.x([_.W("data","structuredDescriptionContentRenderer","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kC.prototype,"showInlineStructuredDescription",null);
_.x([_.W("data","hasInlineStructuredDescription","metadataCollapsible"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kC.prototype,"descriptionAlwaysCollapsible",null);
_.C(kC,"ytd-video-secondary-info-renderer",function(){if(z$t===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);z$t=K}K=z$t;return K},{mode:2});var X7t;var wV=function(){return _.q.apply(this,arguments)||this};
_.O(wV,_.q);wV.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.M("web_modern_buttons"),forceIconButton:!_.M("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
wV.prototype.activate=function(K){K.appendTo(this.player);K.getPlayerPromise().then(function(d){d.setMinimized(!0)});
this.active=!0};
wV.prototype.deactivate=function(){var K=this.player.firstElementChild;K.getPlayerPromise().then(function(d){d.setMinimized(!1)});
this.active=!1;return K};
wV.prototype.onScrollUpTap=function(){var K=_.eq().resolve(_.jC).getCurrentPage();K&&K.setScrollTop(0)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],wV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],wV.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],wV.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],wV.prototype,"active",void 0);
_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.B("design:type",Boolean)],wV.prototype,"darkLaunch",void 0);_.x([_.n8("#player"),_.B("design:type",HTMLDivElement)],wV.prototype,"player",void 0);wV=_.x([_.Q({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],wV);
_.C(wV,"ytd-miniplayer-bar-renderer",function(){if(X7t!==void 0)return X7t;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return X7t=K},{mode:1});_.sP(_.C8(function(K){var d=_.Co();_.ol(function(){var f;if(f=JSON)f=Km7(K.data()),f=_.l$(JSON.stringify(f).replace(/</g,"\\u003C"));var H=K.data(),D=_.qQ(H.title).trim().length===0,S=!H.publishDate||H.publishDate.trim().length===0,n,u,a,R,F=!((n=H.thumbnail)==null?0:(u=n.thumbnails)==null?0:u.length)||!((a=H.thumbnail)==null?0:a.thumbnails[0].url)||((R=H.thumbnail)==null?void 0:R.thumbnails[0].url.trim().length)===0;d.value&&f&&!(D||S||F)&&_.GY(d.value,f)});
return _.U("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.U("script",{el:d,type:"application/ld+json"}))},"jj"),"player-microformat-renderer",{props:{data:_.JJ}});
}catch(e){_._DumpException(e)}
try{
var m$t;_.tu7=function(K){return K.watch.watchWindowSize};
_.oIU=function(K){return _.es({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:K}})};
m$t=function(K){_.gG.call(this);var d=this;this.JSC$20413_watchApi=K;K=_.n5(_.j3(),_.qgY,function(){$$w(d)});
this.addOnDisposeCallback(K);K=_.n5(_.j3(),_.tu7,function(){$$w(d)});
this.addOnDisposeCallback(K);EIZ(this);hZw(this);bVl()};
_.O(m$t,_.gG);var EIZ=function(K){var d=function(H){_.j3().dispatch(_.e1z(H.matches))},f=window.matchMedia("(max-width: "+(999+_.tU())+"px)");
f.addListener(d);K.addOnDisposeCallback(function(){f.removeListener(d)});
d(f)},hZw=function(K){K.JSC$20413_watchApi.registerActionHandler("yt-window-resized",function(){bVl()});
K.addOnDisposeCallback(function(){K.JSC$20413_watchApi.unregisterActionHandler("yt-window-resized")})},bVl=function(){var K=_.aM();
_.j3().dispatch(_.es({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:K.width,height:K.height}}}))},$$w=function(K){var d;
_.c(function(f){if(f.nextAddress==1)return _.I(f,K.JSC$20413_watchApi.playerApi,2);d=f.yieldResult;d.setSize(NaN,NaN);_.iQ(f)})};_.rV=function(K){_.sT.call(this);var d=this;this.rootElement=K;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return d.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(f){d.initOrDisposeActiveModules(f)}));
this.onAttached()};
_.O(_.rV,_.sT);_.V=_.rV.prototype;_.V.getRoot=function(){return this.rootElement};
_.V.getElement=function(K){return this.rootElement.getElement(K)};
_.V.setPlayerResponse=function(K){this.playerResponse=K;this.publish("PLAYER_RESPONSE_UPDATED",K)};
_.V.getPlayerResponse=function(){return this.playerResponse};
_.V.setWatchNextResponse=function(K){this.watchNextResponse===K?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=K,this.publish("WATCH_NEXT_RESPONSE_UPDATED",K))};
_.V.getWatchNextResponse=function(){return this.watchNextResponse};
_.V.registerActionHandler=function(K,d){var f=this;if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.qF(_.rU.getInstance(),(H[K]=d,H),this.getRoot())}else this.actionHandlers.has(K)||(this.actionHandlers.set(K,[]),H={},_.qF(_.rU.getInstance(),(H[K]=function(){var D=_.Pg.apply(0,arguments);return(f.actionHandlers.get(K)||[]).map(function(S){return S.apply(null,_.Me(D))})},H),this.getRoot())),this.actionHandlers.get(K).push(d)};
_.V.unregisterActionHandler=function(K){if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var d={};_.QU(_.rU.getInstance(),(d[K]=!0,d),this.getRoot())}else(d=this.actionHandlers.get(K))?(d.pop(),d.length===0&&(d={},_.QU(_.rU.getInstance(),(d[K]=!0,d),this.getRoot()),this.actionHandlers.delete(K))):_.h3(new _.X4("Attempted to unregister an action handler which is not registered.",K))};
_.V.addPageDisposeJob=function(K){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.JN(this.rootElement.pageDisposeJobs,K)};
_.V.removePageDisposeJob=function(K){this.rootElement.pageDisposeJobs&&_.Zn(this.rootElement.pageDisposeJobs,K)};
_.V.dispatchEvent=function(K,d){_.Zp(this.rootElement,K,d)};
_.V.provideRenderingData=function(K,d){this.rootElement.provideRenderingData(K,d)};
_.V.scrollWatchTo=function(K,d){var f;(f=this.watchScrollManager)==null||f.scrollWatchTo(K,d)};
_.V.focusOnPlayer=function(){var K=this.getElement("PLAYER");_.jW(K,function(){if(K&&K.firstElementChild){var d=K.querySelector(".html5-video-player");d&&(_.Bw(_.eq().resolve(_.Pp)),d.focus())}else _.h3(Error("jm"))})};
_.V.updateCinematicFullscreenConfig=function(){var K=!!this.rootElement.theater,d=!!this.rootElement.fullscreen,f;(f=this.watchCinematicManager)==null||_.t6z(f,d,K)};
_.V.subscribeToActiveChanged=function(K,d){d=d===void 0?!0:d;var f=_.n5(_.j3(),_.VL5,function(H){K(H)});
d&&K(_.VL5(_.j3().getState()));return f};
_.V.isActive=function(){return _.VL5(_.j3().getState())};
_.V.onAttached=function(){var K=_.M("external_fullscreen");_.M("use_unified_flag_accessor")&&(K=_.eq().resolve(_.nzy).retriever.getFlag(_.O7L));(K||_.lx("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var lZP=function(K){return K.getRoot().is==="ytd-watch-flexy"||K.getRoot().is==="ytd-watch-grid"},qN=function(K){return K.getRoot().is==="ytd-watch-fixie"};
_.rV.prototype.initPersistentModules=function(){if(qN(this)||lZP(this)&&_.M("kevlar_watch_flexy_theater_manager")){var K=new _.dRc(this);_.cy(this,K)}K=new _.qUU(this);_.cy(this,K);K=new _.$C(this);_.cy(this,K);K=new _.Gg(this);_.cy(this,K);K=new _.U$S(this);_.cy(this,K);K=new _.hF(this);_.cy(this,K);if(qN(this)||lZP(this)&&_.M("kevlar_watch_flexy_playlist_manager"))K=new _.Fzw(this),_.cy(this,K)};
_.rV.prototype.initOrDisposeActiveModules=function(K){K?(this.watchScrollManager=new _.Tg(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Kzz(this)),this.activeModules.push(new _.DEU(this)),qN(this)&&this.activeModules.push(new m$t(this)),this.activeModules.push(new _.OVU(this)),this.activeModules.push(new _.AF(this)),(qN(this)||_.M("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.nDc(this)),this.activeModules.push(new _.SJK(this)),
(qN(this)||_.M("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.YJy(this)),(qN(this)||_.M("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.zbw(this)),_.M("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.gRy(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.M("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.cgi(this)),_.M("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.T_z(this)),
K=_.M("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.M("kevlar_watch_flexy_comments_manager")&&!K&&this.activeModules.push(new _.mRw(this)),_.M("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.EM(this)),this.activeModules.push(new _.iqE(this)),this.activeModules.push(new _.fZy(this)),_.M("web_enable_timely_actions")&&this.activeModules.push(new _.Iry(this)),_.M("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.GWy(this)),
_.M("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.tXS(this)),_.M("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.aNK(this)),_.M("web_player_rtr_ctrls")&&this.activeModules.push(new _.T1K(this))):(_.w0(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.rV.prototype.disposeInternal=function(){_.sT.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.x$.Object.defineProperties(_.rV.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var dGE,gg,fXw,H$i,VjE,Sgw,DGt,yUy;dGE=function(){var K=_.Ux();K.info||(K.info={});return K.info};
gg=function(K){return Math.round(_.Ff()+K)};
fXw=function(){var K;if(_.M("csi_use_performance_navigation_timing")){var d,f,H,D=_.RS==null?void 0:(K=_.RS.getEntriesByType)==null?void 0:(d=K.call(_.RS,"navigation"))==null?void 0:(f=d[0])==null?void 0:(H=f.toJSON)==null?void 0:H.call(f);D?(D.requestStart=gg(D.requestStart),D.responseEnd=gg(D.responseEnd),D.redirectStart=gg(D.redirectStart),D.redirectEnd=gg(D.redirectEnd),D.domainLookupEnd=gg(D.domainLookupEnd),D.connectStart=gg(D.connectStart),D.connectEnd=gg(D.connectEnd),D.responseStart=gg(D.responseStart),
D.secureConnectionStart=gg(D.secureConnectionStart),D.domainLookupStart=gg(D.domainLookupStart),D.isPerformanceNavigationTiming=!0,K=D):K=_.RS.timing}else K=_.M("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.RS.timing)):_.RS.timing;return K};
H$i=function(){if(_.RS.getEntriesByType){var K=_.RS.getEntriesByType("paint");if(K=_.rz(K,function(f){return f.name==="first-paint"}))return gg(K.startTime)}var d;
_.M("csi_use_performance_navigation_timing")?d=_.RS.getEntriesByType("first-paint")[0].startTime:d=_.RS.timing.msFirstPaint;return d?Math.max(0,d):0};
VjE=function(){var K=window.location.protocol,d=_.RS.getEntriesByType("resource");d=_.Jm(d,function(f){return f.name.indexOf(K+"//fonts.gstatic.com/s/")===0});
(d=DGt(d,function(f,H){return H.duration>f.duration?H:f}))&&d.startTime>0&&d.responseEnd>0&&(_.zu("wffs",gg(d.startTime)),_.zu("wffe",gg(d.responseEnd)))};
Sgw=function(K,d){K=document.querySelector(K);if(!K)return!1;var f="",H=K.nodeName;H==="SCRIPT"?(f=K.src,f||(f=K.getAttribute("data-timing-href"))&&(f=window.location.protocol+f)):H==="LINK"&&(f=K.href);_.b$(document)&&K.setAttribute("nonce",_.b$(document));return f?(K=_.RS.getEntriesByName(f))&&K[0]&&(K=K[0],f=_.Ff(),_.zu("rsf_"+d,f+Math.round(K.fetchStart)),_.zu("rse_"+d,f+Math.round(K.responseEnd)),K.transferSize!==void 0&&K.transferSize===0)?!0:!1:!1};
_.OJ=function(K,d){_.AR(function(){_.Enz("").info.actionType=K;d&&_.bx("TIMING_AFT_KEYS",d);_.bx("TIMING_ACTION",K);var f=_.BTB(_.mD("TIMING_INFO",{}));Object.keys(f).length>0&&_.MY(f);f={isNavigation:!0,actionType:_.m0G(_.mD("TIMING_ACTION"))};var H=_.mD("PREVIOUS_ACTION");H&&(f.previousAction=_.m0G(H));if(H=_.mD("CLIENT_PROTOCOL"))f.httpProtocol=H;if(H=_.mD("CLIENT_TRANSPORT"))f.transportProtocol=H;(H=_.te())&&H!=="UNDEFINED_CSN"&&(f.clientScreenNonce=H);H=_.L8z();if(H===1||H===-1)f.isVisible=!0;
H=_.gnu().loadType==="cold";var D=dGE();H||(H=D.yt_lt==="cold");if(H){f.loadType="cold";H=dGE();D=fXw();var S=_.Ff(),n=_.mD("CSI_START_TIMESTAMP_MILLIS",0);n>0&&!_.M("embeds_web_enable_csi_start_override_killswitch")&&(S=n);S&&(_.zu("srt",D.responseStart),H.prerender!==1&&_.TTz(S));H=H$i();H>0&&_.zu("fpt",H);H=fXw();H.isPerformanceNavigationTiming&&_.MY({performanceNavigationTiming:!0},void 0);_.zu("nreqs",H.requestStart,void 0);_.zu("nress",H.responseStart,void 0);_.zu("nrese",H.responseEnd,void 0);
H.redirectEnd-H.redirectStart>0&&(_.zu("nrs",H.redirectStart,void 0),_.zu("nre",H.redirectEnd,void 0));H.domainLookupEnd-H.domainLookupStart>0&&(_.zu("ndnss",H.domainLookupStart,void 0),_.zu("ndnse",H.domainLookupEnd,void 0));H.connectEnd-H.connectStart>0&&(_.zu("ntcps",H.connectStart,void 0),_.zu("ntcpe",H.connectEnd,void 0));H.secureConnectionStart>=_.Ff()&&H.connectEnd-H.secureConnectionStart>0&&(_.zu("nstcps",H.secureConnectionStart,void 0),_.zu("ntcpe",H.connectEnd,void 0));_.RS&&"getEntriesByType"in
_.RS&&VjE();H=[];if(document.querySelector&&_.RS&&_.RS.getEntriesByName)for(var u in yUy)yUy.hasOwnProperty(u)&&(D=yUy[u],Sgw(u,D)&&H.push(D));if(H.length>0)for(f.resourceInfo=[],u=_.y(H),H=u.next();!H.done;H=u.next())f.resourceInfo.push({resourceCache:H.value})}_.MY(f);f=_.NTB();f.preLoggedGelInfos||(f.preLoggedGelInfos=[]);u=f.preLoggedGelInfos;f=_.Ytz();H=void 0;for(D=0;D<u.length;D++)if(S=u[D],S.loadType){H=S.loadType;break}if(_.gnu().loadType==="cold"&&(f.loadType==="cold"||H==="cold")){H=_.OGo();
D=_.NTB();D=D.gelTicks?D.gelTicks:D.gelTicks={};for(var a in H)if(!(a in D))if(typeof H[a]==="number")_.zu(a,_.PG(a));else if(_.M("log_repeated_ytcsi_ticks"))for(S=_.y(H[a]),n=S.next();!n.done;n=S.next())n=n.value,_.zu(a.slice(1),n);a={};H=!1;u=_.y(u);for(D=u.next();!D.done;D=u.next())H=D.value,_.YvB(f,H),_.YvB(a,H),H=!0;H&&_.MY(a)}_.sZo(!0);a=_.mD("TIMING_ACTION");_.T2("ytglobal.timingready_")&&a&&_.Dho()&&_.JzX()&&_.CSO()})()};
DGt=function(K,d){return Array.prototype.reduce.call(K,d,{duration:0})};
yUy={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};var nyZ={};nyZ.YtVisibilityRootBehavior=[_.ps2.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.kh(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.mD("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var K=_.mD("INNERTUBE_CLIENT_NAME")!=="WEB";_.M("kevlar_use_vimio_behavior")&&K&&_.pn9()}}];_.N$={};_.N$.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(K){K.detail.contextProvider=this;K.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
nyZ.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Gz();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(K){var d=this;this.pageCount+=1;_.M("kevlar_use_vimio_behavior")&&(_.mD("INNERTUBE_CLIENT_NAME")==="WEB"?_.oc.addJob(function(){d.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(K)},
loadPage_:function(K){this.data=K},
ytPageBehaviorActiveObserver_:function(K){var d=this;_.M("kevlar_use_vimio_behavior")&&(K?_.mD("INNERTUBE_CLIENT_NAME")==="WEB"?_.oc.addJob(function(){d.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(K){if(!this.setScrollTopJobId_){var d=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){d.setScrollTopJobId_=0;var f=_.eq().resolve(_.Zd(_.Pp));f&&_.Bw(f);this.getPageScrollingElement().scrollTop=K}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.UG(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var K7l;var Pm=function(){var K=_.q.apply(this,arguments)||this;K.playerListenerConfig=null;K.actionMap={"yt-show-watch-page-survey":"openSurvey"};return K};
_.O(Pm,_.q);_.V=Pm.prototype;_.V.dataChanged=function(){var K=this,d=_.xP();d&&d.getPlayerPromise().then(function(H){K.maybeRemovePlayerListeners(H)});
var f=this.data&&this.data.survey;f&&((f=(f=f.singleOptionSurveyRenderer||f.checkboxSurveyRenderer||f.multiStageSurveyRenderer)&&f.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(d,f):this.openSurvey())};
_.V.triggerWatchPageSurvey=function(K,d){var f=this,H,D,S,n,u,a,R,F,z;return _.c(function(v){if(v.nextAddress==1)return K?_.I(v,K.getPlayerPromise(),2):v.return();f.player=v.yieldResult;if(!f.player)return v.return();H={};D=_.y(d);for(S=D.next();!S.done;S=D.next())n=S.value,u=_.y(f.createEventListenerPair(n)),a=u.next().value,R=u.next().value,F=a,z=R,F&&z&&(H[F]=z,f.ytPlayerListenerBehavior.listenToPlayerEvent(f.player,F,z));f.playerListenerConfig=H;_.iQ(v)})};
_.V.createEventListenerPair=function(K){var d=K.playbackEventTrigger;return d?this.handlePlaybackTrigger(d):(K=K.watchTimeTrigger)?this.handleWatchTimeTrigger(K):[void 0,void 0]};
_.V.handleWatchTimeTrigger=function(K){var d=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var f=K.videoWatchFraction,H=K.watchTimeSec;return H&&f?["onVideoProgress",function(){d.player&&d.isWatchTimeConditionMet(d.player,f,H)&&d.showSurvey()}]:[void 0,
void 0]};
_.V.isWatchTimeConditionMet=function(K,d,f){var H=K.getProgressState(),D=H.current-this.lastKnownPlaybackPosition;D<5&&(this.accumulatedMediaTime+=D);this.lastKnownPlaybackPosition=H.current;H=Math.round(this.accumulatedMediaTime/H.duration*1E3)/1E3;return K.getPresentingPlayerType&&K.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>f||H>d)};
_.V.handlePlaybackTrigger=function(K){var d=this;K=K.playbackEvent;if(K==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var f="onStateChange";var H=function(D){D===0&&d.showSurvey()}}else K==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(f="onVideoProgress",H=function(D){d.player&&d.player.getPresentingPlayerType&&d.player.getPresentingPlayerType()===1&&D&&d.showSurvey()}):K==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(f="onAdEnd",H=this.showSurvey);
return[f,H]};
_.V.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.V.openSurvey=function(){var K=this,d=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.teK(!!d));_.oc.addJob(function(){K.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:d}})},0,0)};
_.V.maybeRemovePlayerListeners=function(K){if(this.playerListenerConfig){for(var d=_.y(Object.keys(this.playerListenerConfig)),f=d.next();!f.done;f=d.next())f=f.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(K,f,this.playerListenerConfig[f]);this.playerListenerConfig=null}};
Pm.prototype.dataChanged=Pm.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],Pm.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],Pm.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Pm.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(_.ou),_.B("design:type",Object)],Pm.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Pm.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Pm.prototype,"playerListenerConfig",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],Pm.prototype,"lastKnownPlaybackPosition",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],Pm.prototype,"accumulatedMediaTime",void 0);_.x([_.A(),_.B("design:type",Object)],Pm.prototype,"player",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pm.prototype,"dataChanged",null);Pm=_.x([_.Q({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Pm);
_.C(Pm,"ytd-survey-trigger-renderer",function(){if(K7l!==void 0)return K7l;var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return K7l=K},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Qq5=new _.Z("promotedSparklesWebRenderer");var jqK=new _.Z("relatedChipCommand");var CvU;var xAP;var Ry=function(){return _.q.apply(this,arguments)||this};
_.O(Ry,_.q);Ry.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ry.prototype,"data",void 0);Ry=_.x([_.Q({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Ry);
_.C(Ry,"ytd-compact-tvfilm-entry-point-renderer",function(){if(xAP!==void 0)return xAP;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return xAP=K},{mode:1});var LG7;var BS7;var JEy;var Fh=function(){return _.q.apply(this,arguments)||this};
_.O(Fh,_.q);Fh.prototype.ready=function(){this.initializeDefs()};
Fh.prototype.initializeDefs=function(){var K=this.meta.byKey("yt-icons"),d=_.E(K).querySelector("#star"),f=_.E(K).querySelector("#star_half");K=_.E(K).querySelector("#star_border");d&&this.defs.appendChild(d.cloneNode(!0));f&&this.defs.appendChild(f.cloneNode(!0));K&&this.defs.appendChild(K.cloneNode(!0))};
Fh.prototype.percentChanged=function(){for(var K=this.rating;K.firstChild;)K.removeChild(K.firstChild);var d=Math.round(this.percent/10);K=Math.floor(d/2);d%=2;var f=5-K-d;this.appendStars("star",K,0);this.appendStars("star_half",d,K);this.appendStars("star_border",f,K+d)};
Fh.prototype.appendStars=function(K,d,f){for(var H=0;H<d;H++){var D=(18+this.spacing)*(H+f),S=document.createElementNS("http://www.w3.org/2000/svg","use");_.oGZ(S,"#"+K);S.setAttribute("x",""+D);S.setAttribute("y","0");this.rating.appendChild(S)}};
Fh.prototype.percentChanged=Fh.prototype.percentChanged;_.x([_.n8("#defs"),_.B("design:type",HTMLElement)],Fh.prototype,"defs",void 0);_.x([_.n8("#rating"),_.B("design:type",HTMLElement)],Fh.prototype,"rating",void 0);_.x([_.A(),_.B("design:type",Number)],Fh.prototype,"percent",void 0);_.x([_.A({value:6}),_.B("design:type",Number)],Fh.prototype,"spacing",void 0);_.x([_.A({value:_.aU.create("iron-meta",{type:"iconset"})}),_.B("design:type",_.Fu)],Fh.prototype,"meta",void 0);
_.x([_.SP("percent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fh.prototype,"percentChanged",null);Fh=_.x([_.Q({disableElementRegistration:!0,is:"ytd-ratings"})],Fh);
_.C(Fh,"ytd-ratings",function(){if(JEy!==void 0)return JEy;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return JEy=K},{mode:1});var z_=function(){return _.q.apply(this,arguments)||this};
_.O(z_,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],z_.prototype,"data",void 0);z_=_.x([_.Q({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],z_);
_.C(z_,"ytd-offer-review-renderer",function(){if(BS7!==void 0)return BS7;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return BS7=K},{mode:1});var Xh=function(){var K=_.q.apply(this,arguments)||this;K.badges=[{textBadge:{label:_.rB("CC")}}];return K};
_.O(Xh,_.q);_.V=Xh.prototype;_.V.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.V.dataChanged=function(){var K=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(K&&K.commandMetadata&&_.P(K.commandMetadata,_.vr)&&_.P(K.commandMetadata,_.vr).fireAutomatically)_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}});else{var d;K&&((d=_.P(K,_.vr))==null?0:d.fireAutomatically)&&_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}})}};
_.V.isEmptyContent=function(K){return this.isStorefrontEntryPointEmpty(K)&&this.shouldHideOfferModule(K)};
_.V.isStorefrontEntryPointEmpty=function(K){return!K||!K.storefrontEntryPoint};
_.V.shouldHideOfferModule=function(K){return!!K.hideVideoDetails};
_.V.isOfferModuleNavigationInactive=function(K){return!K.navigationEndpoint&&!K.serviceEndpoint};
_.V.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.eq().resolve(_.pQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Xh.prototype.dataChanged=Xh.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Xh.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.B("design:type",Boolean)],Xh.prototype,"hidden",void 0);
_.x([_.A(),_.B("design:type",Object)],Xh.prototype,"badges",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xh.prototype,"dataChanged",null);Xh=_.x([_.Q({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Xh);
_.C(Xh,"ytd-movie-offer-module-renderer",function(){if(LG7!==void 0)return LG7;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return LG7=K},{mode:1});var sqS;var v8=function(){return _.q.apply(this,arguments)||this};
_.O(v8,_.q);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],v8.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],v8.prototype,"data",void 0);v8=_.x([_.Q({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],v8);
_.C(v8,"ytd-media-masthead-renderer",function(){if(sqS!==void 0)return sqS;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return sqS=K},{mode:1});var kbE;_.sP(_.QAt,"course-metadata-view-model",{props:{data:_.JJ,isOverlay:_.JJ}});var My=function(){var K=_.q.apply(this,arguments)||this;K.isMetadataVisible=!1;K.modernPanels=_.M("kevlar_watch_modern_panels");K.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return K};
_.O(My,_.q);_.V=My.prototype;
_.V.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"}}}}};
_.V.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.V.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.V.expanderChanged=function(){var K;if((K=this.data)==null?0:K.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.V.isExpandButtonToggled=function(){var K,d;return(d=_.P((K=this.data)==null?void 0:K.expandMetadataButton,_.v9))==null?void 0:d.isToggled};
_.V.onVisibilityButtonClick=function(){var K;if((K=this.data)==null?0:K.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.V.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
My.prototype.expanderChanged=My.prototype.expanderChanged;My.prototype.dataChanged=My.prototype.dataChanged;My.prototype.descriptionChanged=My.prototype.descriptionChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l([_.kc.YtActionHandlerBehavior]),_.B("design:type",Object)],My.prototype,"actionHandlerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],My.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],My.prototype,"isMetadataVisible",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],My.prototype,"modernPanels",void 0);_.x([_.n8("#expander"),_.B("design:type",Object)],My.prototype,"expander",void 0);_.x([_.SP("data.description"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],My.prototype,"descriptionChanged",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],My.prototype,"dataChanged",null);_.x([_.SP("isMetadataVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],My.prototype,"expanderChanged",null);My=_.x([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],My);
_.C(My,"ytd-tvfilm-offer-module-renderer",function(){if(kbE!==void 0)return kbE;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return kbE=K},{mode:2});var w2w;var P8=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return K};
_.O(P8,_.q);P8.prototype.dataChanged=function(){this.hostElement.hidden=!1};
P8.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
P8.prototype.onThumbnailTap=function(K){this.data&&this.data.serviceEndpoint&&(_.eq().resolve(_.pQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),K.stopPropagation())};
P8.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
P8.prototype.dataChanged=P8.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],P8.prototype,"rendererBehaviors",void 0);_.x([_.l([_.kc.YtActionHandlerBehavior]),_.B("design:type",Object)],P8.prototype,"actionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],P8.prototype,"data",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],P8.prototype,"dataChanged",null);P8=_.x([_.Q({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],P8);
_.C(P8,"ytd-unlimited-offer-module-renderer",function(){if(w2w!==void 0)return w2w;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return w2w=K},{mode:1});var Zaw;var eOw;var gE=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return K};
_.O(gE,_.q);gE.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
gE.prototype.handleRelatedChipCommand=function(K){K=_.P(K,jqK);var d=K.contents;d?_.p1(this.hostElement,"yt-item-section-replace-action",[d,K.targetSectionIdentifier]):_.p1(this.hostElement,"yt-item-section-continuation-action",[K.continuationData,K.targetSectionIdentifier])};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],gE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gE.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],gE.prototype,"actionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gE.prototype,"data",void 0);gE=_.x([_.N7({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],gE);
_.C(gE,"yt-related-chip-cloud-renderer",function(){if(eOw===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Zaw===void 0&&(Zaw=document.createElement("template"));var H=Zaw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);eOw=K}K=eOw;return K},{mode:2});var Ow=function(){var K=_.q.apply(this,arguments)||this;K.isTwoColumns=!0;K.hideOfferModules=!1;K.watchFeedBigThumbs=_.M("kevlar_watch_feed_big_thumbs");K.watchNextGridHideChips=_.M("kevlar_watch_grid_hide_chips");K.eligibleToSwitchToGrid=_.M("web_watch_eligible_to_switch_to_grid");K.disableShortsShelfHeightOverride=_.M("web_shorts_wn_shelf_ratio_tuning");K.isWatchNextGrid=!1;K.reuseComponents=!_.M("kevlar_watch_grid");K.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return K};
_.O(Ow,_.q);_.V=Ow.prototype;
_.V.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.M("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}}};
_.V.getItemsPath=function(){return"data.results"};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.V.created=function(){this.ytLazyListBehavior.initialCount=1};
_.V.ready=function(){_.f8(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.V.resultsChanged=function(){if(this.data&&this.data.results){for(var K=this.data.results,d=null,f=null,H=0;H<K.length;H++)K[H].relatedChipCloudRenderer?d=K[H].relatedChipCloudRenderer:K[H].itemSectionRenderer&&(f=K[H].itemSectionRenderer);if(d&&f)for(this.set("data.continuations",[]),K=_.P(d.content,_.hK2).chips,d=0;d<K.length;d++)if(H=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",K[d]),H.loadCached||!H.contents){H.contents=f.contents;break}}};
_.V.dataChanged=function(){var K=this,d;if((d=this.data)!=null&&d.results&&this.hasAllowedInstreamAd(this.playerData)){if(d=this.data.results.filter(function(u){return!!u.promotedSparklesWebRenderer})){for(var f=0;f<d.length;f++){var H=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",d[f]);
if(H)for(var D=0;D<H.length;D++)H[D]&&H[D].baseUrl&&_.T7(H[D].baseUrl)}this.set("data.results",this.data.results.filter(function(u){return!u.promotedSparklesWebRenderer}))}if(d=this.data.results.filter(function(u){return!!K.getSparklesAd(u)})){d=_.y(d);
for(D=d.next();!D.done;D=d.next())if(H=f=void 0,D=(f=this.getSparklesAd(D.value))==null?void 0:(H=f.errorCommand)==null?void 0:H.loggingUrls)for(f=_.y(D),H=f.next();!H.done;H=f.next())(H=H.value)&&H.baseUrl&&_.T7(H.baseUrl);var S,n;this.set("data.results",(S=this.data)==null?void 0:(n=S.results)==null?void 0:n.filter(function(u){return!u.adSlotRenderer}))}}};
_.V.getSparklesAd=function(K){var d,f;K=_.P((d=K.adSlotRenderer)==null?void 0:(f=d.fulfillmentContent)==null?void 0:f.fulfilledLayout,_.w$k);return _.P(K==null?void 0:K.renderingContent,Qq5)};
_.V.hasAllowedInstreamAd=function(K){K=this.get("adPlacements",K)||[];for(var d=0;d<K.length;d++){var f=this.get("adPlacementRenderer.config.adPlacementConfig",K[d]);if(f&&f.suppressDisplayAd)return!0}return!1};
_.V.computeHideUnlimitedOfferModule=function(K,d){return K&&K.offerModule&&d&&K.offerModule.unlimitedOfferModuleRenderer&&K.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(d)?!0:!1};
_.V.hideUnlimitedOfferModuleChanged=function(){var K=_.E(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");K&&(K.hidden=this.hideUnlimitedOfferModule)};
_.V.updateLockupContainerTypes=function(K){if(this.eligibleToSwitchToGrid){var d;(d=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||d.forEach(function(f){f.containerType=K})}};
_.V.computeHideTvfilmOfferModule=function(K,d){var f,H;return!!((K==null?0:(f=K.offerModule)==null?0:(H=f.tvfilmOfferModuleRenderer)==null?0:H.clientShouldSuppressIfCompanionAdDisplayed)&&d&&this.hasCompanionAds(d))};
_.V.hideTvfilmOfferModuleChanged=function(){var K=_.E(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");K&&(K.hidden=this.hideTvfilmOfferModule)};
_.V.hasCompanionAds=function(K){K=this.get("adPlacements",K)||[];for(var d=0;d<K.length;d++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",K[d]))return!0;var f=void 0,H=void 0,D=void 0;if(!_.M("web_watch_top_banner_companion_check_killswitch")&&((f=K[d])==null?0:(H=f.adPlacementRenderer)==null?0:(D=H.renderer)==null?0:D.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.V.hasSuppressedResults=function(K){return K==null?!0:K.filter(function(d){return!d.continuationItemRenderer&&!d.compactPromotedVideoRenderer&&!d.promotedSparklesWebRenderer}).length===0};
_.V.computeShowButton=function(K,d){return this.isWatchNextGrid?K:K||this.hasSuppressedResults(d)};
_.V.showButtonChanged=function(){if(this.isWatchNextGrid){var K=_.E(this.hostElement).querySelector("ytd-rich-grid-renderer");K&&this.showButton!==null&&(K.continuationShowButton=this.showButton)}else{K=_.E(this.hostElement).querySelector("yt-next-continuation");var d=_.E(this.hostElement).querySelector("ytd-continuation-item-renderer"),f=_.E(this.hostElement).querySelector("ytd-item-section-renderer");K&&(K.showButton=this.showButton);d&&(d.showButton=this.showButton);f&&(f.continuationShowButton=
this.showButton)}};
_.V.continuationTap=function(K){var d;if(((d=this.data)==null?void 0:d.continuations)!=null&&K.target.tagName==="TP-YT-PAPER-BUTTON")for(K=this.data.continuations,d=0;d<K.length;d++)K[d].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(K[d].nextContinuationData||{})};
_.V.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("shown-items-changed",this.shownItems))};
_.x$.Object.defineProperties(Ow.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.shownItems)==null||!K.some(function(d){return!!d.lockupViewModel}))}}});
Ow.prototype.shownItemsChangedForBinding=Ow.prototype.shownItemsChangedForBinding;Ow.prototype.showButtonChanged=Ow.prototype.showButtonChanged;Ow.prototype.hideTvfilmOfferModuleChanged=Ow.prototype.hideTvfilmOfferModuleChanged;Ow.prototype.updateLockupContainerTypes=Ow.prototype.updateLockupContainerTypes;Ow.prototype.hideUnlimitedOfferModuleChanged=Ow.prototype.hideUnlimitedOfferModuleChanged;Ow.prototype.dataChanged=Ow.prototype.dataChanged;Ow.prototype.resultsChanged=Ow.prototype.resultsChanged;
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kV.YtLazyListBehavior),_.B("design:type",Object)],Ow.prototype,"ytLazyListBehavior",void 0);_.x([_.l(_.Ws.YtNextContinuationBehavior),_.B("design:type",Object)],Ow.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.l(_.lY),_.B("design:type",Object)],Ow.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Ow.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ow.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Ow.prototype,"playerData",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],Ow.prototype,"autoFill",void 0);_.x([_.A({value:60}),_.B("design:type",Number)],Ow.prototype,"targetFramerate",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ow.prototype,"isTwoColumns",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ow.prototype,"hideOfferModules",void 0);_.x([_.A(),_.B("design:type",Object)],Ow.prototype,"shownItems",void 0);_.x([_.A({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.B("design:type",Boolean)],Ow.prototype,"hideUnlimitedOfferModule",void 0);
_.x([_.A({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.B("design:type",Boolean)],Ow.prototype,"hideTvfilmOfferModule",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ow.prototype,"watchFeedBigThumbs",void 0);_.x([_.A(),_.B("design:type",Object)],Ow.prototype,"watchNextGridHideChips",void 0);_.x([_.A(),_.B("design:type",Object)],Ow.prototype,"eligibleToSwitchToGrid",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ow.prototype,"disableShortsShelfHeightOverride",void 0);_.x([_.A({selector:_.Ek}),_.B("design:type",Object)],Ow.prototype,"isGridViewEnabled",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],Ow.prototype,"showMoreButton",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ow.prototype,"isWatchNextGrid",void 0);
_.x([_.A({computed:"computeShowButton(showMoreButton, data.results)"}),_.B("design:type",Boolean)],Ow.prototype,"showButton",void 0);_.x([_.an("data.results.*"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ow.prototype,"resultsChanged",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ow.prototype,"dataChanged",null);
_.x([_.SP("hideUnlimitedOfferModule"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ow.prototype,"hideUnlimitedOfferModuleChanged",null);_.x([_.W("isGridViewEnabled","containsLockupViewModel","data"),_.A({reflectToAttribute:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],Ow.prototype,"lockupContainerType",null);
_.x([_.SP("lockupContainerType","data"),_.B("design:type",Function),_.B("design:paramtypes",[Number]),_.B("design:returntype")],Ow.prototype,"updateLockupContainerTypes",null);_.x([_.SP("hideTvfilmOfferModule"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ow.prototype,"hideTvfilmOfferModuleChanged",null);_.x([_.SP("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ow.prototype,"showButtonChanged",null);
_.x([_.SP("shownItems"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ow.prototype,"shownItemsChangedForBinding",null);_.x([_.W("shownItems"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ow.prototype,"containsLockupViewModel",null);
_.C(Ow,"ytd-watch-next-secondary-results-renderer",function(){if(CvU===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);CvU=K}K=CvU;return K},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.vrt={};
_.vrt.YtdWatchBehavior=[_.p.YtRendererBehavior,_.ra.YtPlayerListenerBehavior,_.s9.YtRendererstamperBehavior,_.kc.YtActionHandlerBehavior,_.N$.YtPageBehavior,_.SY.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.lx("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.M("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.M("full_bleed_single_column_default_player")}},
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 _.lx("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.M("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, fullscreen, theater)"},richItemMinWidth:{type:Number,
value:function(){return _.di("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.di("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.M("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.M("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.M("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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, isTwoColumns_)"},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 _.M("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.M("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.M("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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 _.M("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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 _.M("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var K={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:_.Eg(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Eg(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},
microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.M("swa_prov_panels_ks")?K.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(K.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},K.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return K},
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 K=this;this.watchController=void 0;this.pageDisposeJobs=[function(){K.showMetadataPlaceholder_()},
function(){_.M("web_watch_dont_clear_comments")||K.clearComments_()},
function(){K.clearPlayerAds_()},
function(){K.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.M("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.M("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Vrt(function(){return _.CK(K)},this.hostElement);
this.pageDisposeJobs.push(function(){K.youThereManager_.reset()});
_.M("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){K.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.e2;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;_.M("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));_.M("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Dm(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(K){K&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:K}),K.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(K){_.M("kevlar_watch_flexy_theater_manager")&&(this.theater=K,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(K){!_.M("kevlar_watch_while_v2")&&!_.M("web_watch_pip")||K||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(K){this.active!==void 0&&(this.fullscreen=K,_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(K){this.active!==void 0&&(_.Zp(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(K>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(K){this.initCsi_();this.updatePageData_(K)},
updatePageData_:function(K){var d=this;if(K)if(this.data===K){this.onPageLoadWithSameData_();var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data)}else this.data=K;this.playlist&&_.Ox({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.YJ("nw");this.loading=!1;_.va(_.oc,function(){d.initDclkstatus_();var H,D=((H=d.player)==null?void 0:H.getVideoData().cpn)||"";_.Lzl(function(S,n){_.e7y(S,n,D)})})},
onPageLoadWithSameData_:function(){_.M("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 K=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!K);this.set("loadingData.playlistLoading",K&&K!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),K=this.watchNextSkeletonEl_.firstElementChild;K;)K.classList.remove("hidden"),K=K.nextElementSibling;if(_.M("kevlar_watch_frame0_loading_state")){var d,f,H;K=(d=this.loadingData)==null?void 0:(f=d.endpoint)==null?void 0:(H=f.watchEndpoint)==null?void 0:H.videoId;var D;K&&(D="https://i.ytimg.com/vi/"+K+"/frame0.jpg");_.E(this.hostElement).querySelector("#player").style.backgroundImage=D?"url("+D+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var K=_.E(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&K&&(K.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var d,f;(f=(d=this.watchMetadata).updateSentimentBarWidth)==
null||f.call(d);var H,D;(D=(H=this.watchMetadata).resize)==null||D.call(H)}_.M("kevlar_watch_frame0_loading_state")&&(_.E(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(K){var d=_.E(this.hostElement).querySelector(K);d?_.kZ(d,!1):_.h3(new _.X4("Overscroll monitor not found for component: ",K))},
removeSplitScrollMouseTrap:function(K){var d=_.E(this.hostElement).querySelector(K);d?_.wL(d):_.h3(new _.X4("Disposal component for  overscroll monitoring not found: ",K))},
onLoadingChanged_:function(K){K?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(K){var d=this;K?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.oc.addLowPriorityJob(function(){d.onWindowResized_(_.aM(!0))})},
updateTheaterModeState_:function(K){if(!_.M("kevlar_watch_flexy_theater_manager")){K=K||this.fullWindowMode_;if(this.theater!==void 0||K)this.theater=K;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();K&&_.HXw()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var K=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.M("external_fullscreen")&&this.fullscreen&&(K=!0);K=K?_.E(this.hostElement).querySelector("#player-full-bleed-container"):_.E(this.hostElement).querySelector("#player-container-inner");var d=this.getPlayerContainer(),f=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip");d.parentElement!==K&&(f&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.CK(this).appendTo(K,
d),K.appendChild(_.E(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var K=this;return _.c(function(d){if(d.nextAddress==1)return _.I(d,_.eq().resolve(_.$b).deactivate(),2);K.updatePlayerLocation();_.iQ(d)})},
updateCinematicsLocation:function(){var K=this.getElement("CINEMATICS");if(K){var d=this.getCinematicsLocationContainer();K.parentElement!==d&&d.appendChild(K);var f;(f=this.watchController)==null||f.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.E(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.E(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(K,d){var f=document.documentElement.hasAttribute("dark"),H=f&&_.M("web_cinematic_theater_mode"),D=f&&_.M("web_cinematic_fullscreen");f=!f&&this.cinematicLightTheme;return K&&H||d&&D||(d||K)&&f},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var K=this,d;(d=this.watchController)==null||d.setWatchNextResponse(this.data);_.M("kevlar_watch_flexy_comments_manager")||this.initComments_();_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.eq().resolve(_.Yf).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.M("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.oc.addLowPriorityJob(function(){_.p1(K.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.M("web_watch_start_chat_in_theater_mode")){var f,H,D;if((f=this.data)==null?0:(H=f.contents)==null?0:(D=H.twoColumnWatchNextResults)==null?0:D.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var S,n;((S=this.data)==null?0:(n=S.contents)==null?0:n.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(K){var d;(d=this.watchController)==null||d.setPlayerResponse(this.playerData);K&&K.playabilityStatus&&(d=this.isVideoPlayable_(K.playabilityStatus,this.getPlayerOverlays_(this.data)),K=this.isLiveStreamOffline_(K.playabilityStatus),d&&!K||_.jW(this,function(){_.YJ("pbu")}));
this.setPlayerAds_();_.p1(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(K,d){if((_.M("kevlar_watch_while_v2")||_.M("web_watch_pip"))&&this.playerData&&d)return this.playerData.videoDetails},
watchPageActiveChanged_:function(K){_.j3().dispatch(_.oIU(this.active));K?this.activate_():this.deactivate_()},
attached:function(){var K=this;this.watchController=new _.rV(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);_.M("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var d=_.CK(this);_.M("kevlar_disable_prepare_player")||
d.preparePlayer();_.M("kevlar_watch_flexy_playlist_manager")||_.eq().resolve(_.Yf).setPlayer(d);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();d={"--ytd-watch-flexy-scrollbar-width":_.tU()+"px"};this.is==="ytd-watch-grid"&&(d["--ytd-watch-flexy-sidebar-width"]=_.j8w+"px",d["--ytd-watch-grid-horizontal-page-margins"]=_.W8+"px",d["--ytd-watch-grid-columns-top-margins"]=_.rul+"px",d["--ytd-watch-grid-min-player-height-medium"]="360px");!_.di("kv_pl_mx_sz_ks")&&
_.di("kevlar_watch_max_player_width")&&(d["--ytd-watch-flexy-max-player-width-wide-screen"]=_.CIK+"px");_.di("kevlar_watch_flexy_metadata_height")&&(d["--ytd-watch-flexy-space-below-player"]=_.x2Z+"px");this.safeUpdateStyles(d);_.M("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.id(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return K.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var K=_.tU(),d=_.G_+K,f=d;this.fixedPanels&&(d+=_.j8w);var H=657+K;K=1327+K;_.E(this.hostElement).querySelector("#two-column-query").query="(min-width: "+d+"px)";_.E(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(H+"px), (min-height: 630px) and (min-width: ")+(d+"px) and (max-width: ")+(K+"px)");_.E(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(K+"px)");_.E(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+f+"px)"},
calculateCurrentPlayerSize_:function(){var K=_.E(this.hostElement).querySelector("#miniplayer-bar").firstChild,d=this.squeezeback&&!_.M("web_watch_squeezeback_player_size_killswitch");return K&&K.active||this.theater||_.M("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||d||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.n0(NaN,NaN):_.C4(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.C4(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.kh(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var K=this;this.onWindowResized_(_.aM());_.M("browse_skeleton_removal_on_watch_killswitch")||_.lx("IS_SHELL_LOAD")&&_.pQc();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var d=_.CK(this);d.addEventListener("yt-player-updated",_.Dm(this,this.onPlayerUpdated_));d.getPlayerPromise().then(function(f){K.playerApiReady_(f)});
_.M("kevlar_watch_flexy_playlist_manager")||(d=_.eq().resolve(_.Yf),_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&d.addEventListener("yt-navigate",_.Dm(this,this.onYtNavigate_)),d.setPlaylistComponent(_.E(this.hostElement).querySelector("#playlist")),d.addEventListener("yt-playlist-data-updated",_.Dm(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.oc.addLowPriorityJob(function(){_.Zp(K.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.CK(this).removeEventListener("yt-player-updated",_.Dm(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.M("kevlar_watch_flexy_playlist_manager")){var K=_.eq().resolve(_.Yf);_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&K.removeEventListener("yt-navigate",_.Dm(this,this.onYtNavigate_));
K.cancelVideoSkip();K.removeEventListener("yt-playlist-data-updated",_.Dm(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Zp(this.hostElement,"yt-autonav-pause-player",!1);K=_.Je();_.M("kevlar_exit_fullscreen_leaving_watch")&&K&&_.sy(K)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(K){this.player&&this.player.updateVideoData({rvs:K.rvs})},
getPageContents:function(K){return K&&K.contents&&K.contents.twoColumnWatchNextResults&&K.contents.twoColumnWatchNextResults.results&&K.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(K){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",K)},
onRetrieveLocation_:function(K,d){d.hasComments?d.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):d.locationRetrieved("/related_ajax",void 0);K.stopPropagation()},
onSubscriptionChanged_:function(K,d){this.player&&(d?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.OJ("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.E(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.E(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(K){this.player=K;this.setPlayerState(K.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.M("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.M("kevlar_unified_player")||_.M("kevlar_player_new_bootstrap_adoption"))&&_.GD()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(K,d){d=d===void 0?!0:d;_.Je()&&_.M("external_fullscreen")&&_.sy(document.documentElement);this.theaterRequested_=K;d&&_.UF("wide",K?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.ev(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Zp(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(K){_.bp(K,typeof this.player),this.player&&_.bp(K,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var K;((K=this.player)==null?0:K.isFullscreen())?this.player.toggleFullscreen():_.ev(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(K,d){return this.loading?d:!!Object.keys(K).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(K){if(K){K=_.y(K);for(var d=K.next();!d.done;d=K.next())d=d.value,d.youThereRenderer&&_.nrz(this.youThereManager_,d.youThereRenderer)}},
setPlaylistData_:function(K){return K||{}},
userEngagementConfigDataChanged_:function(K){if(K)if(K.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var d=this.youThereManager_;_.pA()<K.lowEngagementThresholdMs||_.aYU(d,!0)}else K.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ev(this.hostElement,"yt-autonav-pause-user-engagement",[K])},
isPlayerUnavailable_:function(K,d,f){return!!K&&!this.isVideoPlayable_(K,f)&&!d},
getPlayerOverlays_:function(K){return(K==null?void 0:K.playerOverlays)||null},
isVideoPlayable_:function(K,d){if(!K)return!1;var f=K.status==="OK"||K.status==="LIVE_STREAM_OFFLINE",H=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",K)||this.get("errorScreen.ypcTrailerRenderer",K);K=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",K);var D;d=d==null?void 0:(D=d.playerOverlayRenderer)==null?void 0:D.gatedActionsOverlayRenderer;return!!f||!!H||!!K||!!d},
hasWatchNextResponseErrorRenderer:function(K){var d=this.getPageContents(K),f,H,D,S,n;return!(K==null?0:(f=K.contents)==null?0:(H=f.twoColumnWatchNextResults)==null?0:H.secondaryResults)&&!!((D=d[0])==null?0:(S=D.itemSectionRenderer)==null?0:(n=S.contents[0])==null?0:n.backgroundPromoRenderer)},
isLiveStreamOffline_:function(K){return K?K.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(K,d,f){var H=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",d),D=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];D=_.M("web_no_skip_video_on_verification_checks")?(K==null?void 0:K.status)&&D.includes(K.status):K&&K.status==="AGE_CHECK_REQUIRED";var S=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",K);S==void 0&&(S=!0);!f||this.isVideoPlayable_(K,this.getPlayerOverlays_(d))||
H||D||!S||_.eq().resolve(_.Yf).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.ZVP()},
onPlayerFeedbackStartRequest_:function(K){_.ev(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:K}])},
onPlayerFeedbackArticleRequest_:function(K){_.ev(this.hostElement,"yt-help-dialog-requested",[K])},
onPlayerYpcContentRequest_:function(){var K,d,f,H,D,S,n,u,a=((K=this.data)==null?NaN:(d=K.contents)==null?NaN:(f=d.twoColumnWatchNextResults)==null?NaN:(H=f.secondaryResults)==null?NaN:(D=H.secondaryResults)==null?NaN:(S=D.offerModule)==null?NaN:(n=S.tvfilmOfferModuleRenderer)==null?NaN:(u=n.actionButtons)==null?NaN:u.length)-1;K=[".offerButton.buttonRenderer.",".actionButtons."+(a>=0?a:0)+".buttonRenderer."];d=_.y(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(f=d.next();!f.done;f=d.next())for(f=f.value,H=_.y(K),D=H.next();!D.done;D=H.next())if(D="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+f+D.value,D=this.get(D+"navigationEndpoint",this.data)||this.get(D+"serviceEndpoint",this.data)||this.get(D+"command",this.data)){_.SV(D,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(K){_.Zp(this.hostElement,"yt-autonav-pause-player",K)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(K){K()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(K){switch(K){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(K){switch(K){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Zp(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(K)},
setPlayerState:function(K){_.j3().dispatch(_.av4(K))},
onPlayerSubscribe_:function(K){_.ev(this.hostElement,"yt-player-subscribe",[K])},
onPlayerUnsubscribe_:function(K){_.ev(this.hostElement,"yt-player-unsubscribe",[K])},
onPlayerAdYtShowToast_:function(K){_.ev(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:K.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(K){if(K)return K},
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(K){return!_.M("web_watch_move_summary_to_sd")&&!!K},
computeWatchMetadataRefresh:function(){return _.M("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.M("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var K,d,f,H;this.watchNextSecondaryResults=(K=this.data)==null?void 0:(d=K.contents)==null?void 0:(f=d.twoColumnWatchNextResults)==null?void 0:(H=f.secondaryResults)==null?void 0:H.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.M("swatcheroo_pbs_load_grid")&&!_.M("swatcheroo_provide_all_data_on_scheduled_job")){_.oc.cancelJob(this.setRichGridJobId_);var K,d,f,H,D,S,n;this.setRichGridRendererData((K=this.data)==null?void 0:(d=K.contents)==null?void 0:(f=d.twoColumnWatchNextResults)==null?void 0:(H=f.secondaryResults)==null?void 0:(D=H.secondaryResults)==null?void 0:(S=D.results)==null?void 0:(n=S[0])==null?
void 0:n.richGridRenderer)}},
setRichGridRendererData:function(K){this.richGridRendererData=K},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var K,d=(K=this.data)==null?void 0:K.engagementPanels;if(d==null?0:d.length){K=null;d=_.y(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var H=void 0;if(((H=f.engagementPanelSectionListRenderer)==null?void 0:H.targetId)==="engagement-panel-structured-description"){K=f;break}}var D,S,n;K=(D=K)==null?void 0:(S=D.engagementPanelSectionListRenderer)==null?void 0:(n=S.content)==null?void 0:n.structuredDescriptionContentRenderer;if(K==null?0:K.items){D=
[];S=_.y(K.items);for(n=S.next();!n.done;n=S.next()){n=n.value;if(!_.M("sd_horizontal_list_show_nav_killswitch")){var u=H=f=d=K=void 0,a=void 0,R=(K=n.horizontalCardListRenderer)==null?void 0:(d=K.header)==null?void 0:(f=d.richListHeaderRenderer)==null?void 0:(H=f.navigationButton)==null?void 0:(u=H.buttonRenderer)==null?void 0:(a=u.command)==null?void 0:a.commandExecutorCommand;R&&R.commands&&(R.commands=R.commands.filter(function(F){return!_.P(F,_.D2K)}))}n.expandableVideoDescriptionBodyRenderer||
n.videoDescriptionHeaderRenderer||D.push(n)}return{items:D}}}},
constructWarning_:function(K){return{text:_.rB(K),type:"WARNING"}},
isPlaShelfEnabled_:function(K){if((this.get("adPlacements",K)||[]).length)return!0;K=this.get("playerAds",K)||[];return!(!K.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",K[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var K=this;_.Zp(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var d=this.getScrollTop()>0;this.gestures_&&(d?this.gestures_.detach():this.gestures_.attach());d!==this.showFullerscreenEdu_&&_.M("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=d,_.CK(this).getPlayerPromise().then(function(f){f.updateFullerscreenEduButtonVisibility(K.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Zp(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var K=this;this.commentsReady=!1;_.oc.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.va(_.oc,function(){K.setComments_()},1E3)},
setComments_:function(){if(!_.M("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.YJ("cmi");_.oc.cancelJob(this.setCommentsJobId_);var K=this.getPageContents(this.data);if(K&&K.length){K=_.y(K);for(var d=K.next();!d.done;d=K.next())if(d=d.value,this.get("itemSectionRenderer.sectionIdentifier",d)==="comment-item-section"){this.comments=d.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Zp(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.M("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.YJ("cmc")},
doRemoveComments_:function(){this.comments={};_.M("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.oc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.oc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(K,d){var f=_.P(d.endpoint,_.qu);f&&(!(d=this.get("data.currentVideoEndpoint.watchEndpoint"))||f.videoId!==d.videoId||f.playlistId&&f.playlistId!==d.playlistId||f.index!==void 0&&f.index!==d.index||typeof f.startTimeSeconds!=="number"||(K.stopPropagation(),this.setScrollTop(0),_.CK(this).getPlayerPromise().then(function(H){var D=f.startTimeSeconds;H.seekTo(D);H.wakeUpControls();D<H.getDuration()&&H.playVideo()})))},
updatePlayerStartTime_:function(){var K=_.G6w();"t"in K&&(K=_.wmw(K.t),this.player.seekTo(K,!0))},
updateTitleFromWatchNext:function(K){K=this.getPageContents(K);var d,f;(K=_.qQ(K==null?void 0:(d=K[0])==null?void 0:(f=d.videoPrimaryInfoRenderer)==null?void 0:f.title))&&_.Zp(this.hostElement,"yt-update-title",K)},
updateTitle_:function(K){K=this.get("videoDetails.title",K)||"";_.Zp(this.hostElement,"yt-update-title",K)},
syncWithRemoteVideo_:function(K,d,f){if(this.active&&this.player){var H=this.player.getVideoData();if(H.video_id===f&&(f=H.list,_.M("polymer_enable_mdx_queue")&&f&&f.startsWith("RQ")&&(f=void 0),H.video_id!==K||f!=d)){var D;_.M("kevlar_player_watch_endpoint_navigation")?D=_.$1X(_.Bgw(K,d)):D=this.buildWatchEndpoint_(K,d);_.Zp(this.hostElement,"yt-navigate",{endpoint:D,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(K,d,f){return _.sx(K,d,f)},
initDclkstatus_:function(){_.k6Z()},
attachWatchPageSkeleton_:function(){var K=document.querySelector("#watch-page-skeleton");if(K){var d=K.querySelector("#primary-info"),f=K.querySelector("#secondary-info"),H=K.querySelector("#related");d&&_.E(this.hostElement).querySelector("#info-skeleton").appendChild(d);f&&_.E(this.hostElement).querySelector("#meta-skeleton").appendChild(f);H&&(_.E(this.hostElement).querySelector("#related-skeleton").appendChild(H),this.watchNextSkeletonEl_=H);_.FE(K)}},
handlePlayerUpdated_:function(){_.CK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(K,d){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof d!=="undefined"){var f=this.watchNextSkeletonEl_.children,H=K&&K.indexSplices.length?K.indexSplices[0].index:0;K=Math.min(this.watchNextShownItems.length,f.length);d||(H=0,K=f.length);for(d=H;d<K;d++)f[d].classList.add("hidden")}},
onPlayerFullscreenChange_:function(K){_.M("external_fullscreen")||_.ev(this.hostElement,"yt-player-fullscreen",[K.fullscreen])},
onFullscreenChange_:function(K){this.fullscreen=K;this.gestures_&&this.gestures_.update(this.fullscreen);var d=_.CK(this);d.getPlayerPromise().then(function(f){f.setFauxFullscreen(!!_.Je())});
this.updateFullBleedElementLocations();K&&(d.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(K,d){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!d},
computeIsDonationShelfCollapsed_:function(K){return K},
computeShouldShowMerchShelf:function(K,d){return d&&!!K},
computeResponseHasComments:function(K){var d,f,H,D,S;return!!(K==null?0:(d=K.contents)==null?0:(f=d.twoColumnWatchNextResults)==null?0:(H=f.results)==null?0:(D=H.results)==null?0:(S=D.contents)==null?0:S.some(function(n){var u;return(n==null?void 0:(u=n.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(K,d,f,H){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&H?!1:!!K&&!!Object.keys(K).length&&!d},
identity:_.QO,onWindowResized_:function(K){this.windowSize_=K;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(K){var d=this;K&&K.type!=="dataloaded"&&K.type!=="dataupdated"||_.CK(this).getPlayerPromise().then(function(f){var H=f.getPlayerState();H!==5&&H!==0&&(f=1/f.getVideoAspectRatio(),d.videoHeightToWidthRatio_!==f&&(d.videoHeightToWidthRatio_=f))})},
schedulePlayerSizeUpdate_:function(K){var d=this,f=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip"),H=function(){if(d.watchMetadata){var D,S;(S=(D=d.watchMetadata).resize)==null||S.call(D)}_.CK(d).getPlayerPromise().then(function(n){if(_.M("kevlar_set_internal_player_size")){if(!f||!d.isMiniplayerActive()){var u=d.calculateCurrentPlayerSize_();n.setInternalSize(u.width,u.height)}}else n.setSize(NaN,NaN);_.M("kevlar_watch_while")&&d.updateWatchWhileScrollThreshold_()})};
K?H():_.FN(_.oc,H)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(K){this.set("data.survey",K.detail)},
onYtShowSurveyCommand_:function(K){this.set("data.survey",_.P(K,_.DBl).survey)},
onDownloadedVideoDeleted:function(K){var d=this,f,H;return _.c(function(D){if(D.nextAddress==1){if(!d.active||(f=d.playerData)==null||!f.offlineState||d.videoId!==K)return D.return();(H=d.player)==null||H.stopVideo();_.SJ().navigatingAwayFromWatchDeletedVideo=!0;_.SV(_.z1B,d.hostElement);return _.I(D,_.SJ().navigationFinishPromise,2)}_.SJ().navigatingAwayFromWatchDeletedVideo=!1;_.iQ(D)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var K;this.theater?K=_.Oa(.5625*this.windowSize_.width,480,this.windowSize_.height-185):K=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==K&&(this.watchWhileScrollThreshold_=K,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var K=_.E(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&K){var d=this.windowSize_.height>=624,f=this.active?this.getScrollTop():0;!K.active&&d&&f>=this.watchWhileScrollThreshold_?(K.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):K.active&&(!d||f<this.watchWhileScrollThreshold_&&!_.Je())&&(K.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var K=_.E(this.hostElement).querySelector("#secondary-inner");if(K){var d=_.E(this.hostElement).querySelector("#below"),f=_.E(this.hostElement).querySelector("#secondary"),H=_.E(this.hostElement).querySelector("#comments");H&&f&&d&&(this.defaultTwoColumnLayout?(K.appendChild(H),f.appendChild(K)):(d.appendChild(H),_.lt(d,K)))}}},
isTwoColumnsChanged_:function(K,d){if(K!==!0||d!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(K=_.E(this.hostElement).querySelector("#secondary-inner"))){d=_.E(this.hostElement).querySelector("#below");var f=_.E(this.hostElement).querySelector("#secondary"),H=_.E(this.hostElement).querySelector("#comments");H&&f&&d&&(this.isTwoColumns_?(K.appendChild(H),f.appendChild(K)):(d.appendChild(H),
_.lt(d,K)))}}else{K=!_.M("live_chat_over_engagement_panels");d=_.E(this.hostElement).querySelector("#chat-container");f=_.E(this.hostElement).querySelector("#panels");var D=_.E(this.hostElement).querySelector("#alerts");H=_.E(this.hostElement).querySelector("#playlist");var S=_.E(this.hostElement).querySelector("#related"),n=_.E(this.hostElement).querySelector("#donation-shelf"),u=_.E(this.hostElement).querySelector("#comments");this.isTwoColumns_?(D=_.E(this.hostElement).querySelector("#secondary-inner"),
K&&D.appendChild(f),D.appendChild(H),_.M("web_watch_theater_chat")||D.appendChild(d),K||D.appendChild(f),D.appendChild(n),D.appendChild(S)):(K&&_.vc(f,D),_.vc(H,D),_.M("web_watch_theater_chat")||_.vc(d,D),K||_.vc(f,D),_.vc(n,D),u&&_.vc(S,u));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.M("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.M("web_watch_enable_fs_squeezeback_panels")&&_.M("web_watch_theater_chat")){var K=_.E(this.hostElement).querySelector("#chat-container"),d=this.theater&&!this.fullscreen||_.M("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&d?_.M("web_watch_theater_chat_beside_player")?(d=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),(K==null?void 0:K.parentElement)!==
d&&d.append(K),this.panelsBesidePlayer=!0):_.M("web_watch_theater_fixed_chat")&&(d=_.E(this.hostElement).querySelector("#columns"),(K==null?void 0:K.parentElement)!==d&&d.append(K),this.fixedPanels=!0):(_.M("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.M("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),d=_.E(this.hostElement).querySelector("#playlist"),K&&d?_.MO(K,d):_.h3(new _.X4("Missing element when updating chat location",{"chatContainer defined":!!K,"playlist defined":!!d})));
this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(K,d){return _.M("sw_metadata_vis_toggle_ks")?!0:!!K||!!d},
computeForceDarkPanelTheme:function(K){return _.M("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&K:!1},
safeUpdateStyles:function(K){try{_.f8(this.hostElement,K)}catch(d){_.h3(d)}},
videoHeightToWidthRatioChanged_:function(K,d){d&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(K){this.videoHeightToWidthRatio_=1/K},
computeIsVerticalVideo_:function(K){return K>=1},
computeIsFourThreeToSixteenNineVideo_:function(K){return K<=.7501&&K>=.5624},
computeIsExtraWideVideo_:function(K){return K<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.CK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.CK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.IYP(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(K){var d=_.KI(K)||0;_.p5(K,d+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var K=_.KI("yt-fullerscreen-edu-button-click-count")||0,d=_.KI("yt-fullerscreen-edu-button-shown-count")||0,f=_.di("external_fullscreen_button_shown_threshold"),H=K>=_.di("external_fullscreen_button_click_threshold")||d>=f;_.CK(this).getPlayerPromise().then(function(D){D.updateFullerscreenEduButtonSubtleModeState(H)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(K,d){return d},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.eq().resolve(_.Yf).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var K=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.oc.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.oc.addLowPriorityJob(function(){K.fullHeightPanelPositionUpdateJobId=0;var d=_.E(K.hostElement).querySelector("#secondary"),f=_.E(K.hostElement).querySelector("#fixed-secondary");d=d.getBoundingClientRect();var H=d.width;K.swatcherooSqueezeback&&
(H+=_.W8);if(K.swatcherooSqueezeback){var D=_.E(K.hostElement).querySelector("#squeezeback-constraining-container");D.style.width=H+"px";D.style.flex="0 0 "+H+"px"}f.style.width=H+"px";f.style.left=d.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var K=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.oc.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.oc.addLowPriorityJob(function(){K.panelMaxHeightUpdateJob_=0;var d;!K.isTwoColumns_||K.theater||K.fullscreen?d=460:d=K.calculateNormalPlayerSize_().height;var f=d+"px";_.M("live_chat_taller_height")&&!K.theater&&(f="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.M("live_chat_medium_height")&&!K.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.M("live_chat_scaled_height")&&!K.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 238px)");K.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":d+"px","--ytd-watch-flexy-chat-max-height":f,"--ytd-watch-flexy-structured-description-max-height":d+"px","--ytd-watch-flexy-comments-panel-max-height":d+"px","--ytd-comments-engagement-panel-content-height":d+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(K){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",K)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.fd(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(K){var d=_.E(this.hostElement).querySelector("#engagement-panel-scrim");K?d.addEventListener("tap",_.Dm(this,this.onEngagementPanelScrimClick_)):d.removeEventListener("tap",_.Dm(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(K){if(this.hostElement.contains(K)&&!this.scrollToAnimation_.isAnimating()){var d=K.offsetTop-24;K=K.offsetTop+K.offsetHeight+24;var f=this.getPageScrollingElement(),H=this.getScrollTop(),D=H+f.clientHeight-56;if(d<H+56)d-=56;else if(K>D)d=K-f.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,d),500)}},
onYtSignalActionScrollToComments:function(){var K=this.hostElement.querySelector("#comments");if(K&&!this.scrollToAnimation_.isAnimating()){K=K.offsetTop-56-24;if(_.M("kevlar_comment_teaser_scroll_to_midpoint")&&(K-=_.iW().height/3,K<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,K),500)}},
onYtEngagementPanelVisibleChanged:function(K,d,f){if(this.active&&this.trackEngagementPanelVisibility&&!_.fYi.includes(f)){if(d==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.p1(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.M("kevlar_single_panel_fullscreen")){var H=_.eq().resolve(_.XM);this.visiblePanelIdentifiers_.forEach(function(D){D!==f&&H.hidePanel(D)})}this.visiblePanelIdentifiers_.add(f)}d!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&d!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(f);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(K){return K?"":"watch-active-metadata"},
computeNewMetadataClass:function(K){return K?"watch-active-metadata":""},
computeFullBleedPlayer:function(K,d,f){return K||d||this.enableFullBleedSingleColumnDefaultPlayer&&!f},
computeDefaultLayout:function(K){return!K},
computeDefaultTwoColumnLayout:function(K,d){return!K&&d},
updatePanelsLocation:function(){if(_.M("web_watch_enable_fs_squeezeback_panels")){var K=_.E(this.hostElement).querySelector("#below"),d=_.E(this.hostElement).querySelector("#panels"),f=_.E(this.hostElement).querySelector("#chat-container"),H=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),D=_.E(this.hostElement).querySelector("#secondary-inner");this.fullscreen||this.theater&&this.iMaxTheaterMode?(H.appendChild(d),H.appendChild(f)):this.isTwoColumns_?(_.lt(D,d),_.lt(D,f)):(K.appendChild(d),
K.appendChild(f))}},
swatcherooUpdatePanelsLocation:function(K,d,f,H,D,S){if(this.is==="ytd-watch-grid"){d=K&&!d;this.swatcherooSplitScroll&&(d?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));f=_.E(this.hostElement).querySelector("#panels");var n=_.E(this.hostElement).querySelector("#playlist"),u=_.E(this.hostElement).querySelector("#fixed-secondary"),a=_.E(this.hostElement).querySelector("#fixed-below"),
R=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),F=_.E(this.hostElement).querySelector("#chat-container");S&&(K?u.appendChild(f):a.appendChild(f));D?K?u.appendChild(F):a.appendChild(F):_.MO(F,R);H?K?u.appendChild(n):a.appendChild(n):_.MO(n,R);this.swatcherooSplitScroll&&(K=_.E(this.hostElement).querySelector("#secondary"),H=_.E(this.hostElement).querySelector("#columns"),D=_.E(this.hostElement).querySelector("#fixed-columns-secondary"),d?D.appendChild(K):
H.appendChild(K))}},
computeMetadataSkinnyMode:function(K,d,f){return this.is!=="ytd-watch-grid"?!1:K?f:d},
computeWatchWhilePanelsActive:function(K,d){return K||d},
computeNoBorderOnChat:function(K){return _.M("web_watch_theater_chat_no_border")&&K},
computeLiveChatPresentAndExpanded:function(K,d){return K&&!d},
computePanelExpanded:function(K,d,f){return K||d||f},
computeSqueezeback:function(K,d,f){if(_.M("web_watch_enable_fs_squeezeback_panels")){var H=this.iMaxTheaterMode&&this.theater;return(K||d)&&(f||H)}},
computeSwatcherooSqueezeback:function(K,d,f){return this.is!=="ytd-watch-grid"||_.M("ww_squeezeback_killswitch")?!1:K&&d&&f},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(K){_.CK(this).getPlayerPromise().then(function(d){var f;(f=d.changeMarkerVisibility)==null||f.call(d,_.P(K,_.xC).isVisible||!1,_.P(K,_.xC).entityKeys||[],_.P(K,_.xC).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(K){this.liveChatCollapsed=K.detail;_.j3().dispatch(_.dBi(K.detail))},
onSetPlaylistCollapsed:function(K){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!K)},
provideRenderingData:function(K,d){switch(K){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=d;break;case "PRIMARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=d);this.videoPrimaryInfoRendererValue=d==null?void 0:d.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=d);this.videoSecondaryInfoRendererValue=d==null?void 0:d.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
d;break;case "CLARIFICATION":this.clarifyBoxValue=d;break;case "LIVE_CHAT":this.conversationBar=d;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=d;break;case "PLAYLIST":this.externalPlaylistData_=d!=null?d:{};break;case "MERCH_SHELF":this.merchShelfValue=d==null?void 0:d.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=d;break;case "TICKET_SHELF":this.ticket=d;break;case "OFFER_MODULE":this.offerModule=d;break;case "LIMITED_STATE":this.limitedStateValue=
d;break;case "DONATION_SHELF":this.donation=d;break;case "ALERTS":this.alertsValue=d;break;case "COMMENTS":this.comments=d;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=d;break;case "ENGAGEMENT_PANELS":this.engagementPanels=d;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=d;break;case "RICH_GRID_RENDERER":this.richGridRendererData=d;break;case "EXPANDABLE_METADATA":this.expandableMetadata=d;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
d}},
toggleCinematicsActive:function(K){this.cinematicsActive=K},
isMiniplayerActive:function(){return _.eq().resolve(_.$b).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var fdy;_.dkE=function(K){return K.shorts.isShortsActive};
_.HQZ=function(K){return K.findIndex(function(d){return fdy.indexOf(d.tagName)>-1})>-1};
_.DkK=function(K){return _.es({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:K}})};
_.Vq5=function(){var K=_.eq().resolve(_.yJ);_.AGX(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(K.isFullscreenEnabled()?_.sy(document.documentElement):_.yzS(document.documentElement))};
fdy=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.kq=new Map;_.kq.set(32,59972);_.kq.set(27,50765);_.kq.set(70,60102);_.kq.set(76,60221);_.kq.set(77,60222);_.kq.set(74,60223);_.kq.set(84,60224);_.kq.set(38,61941);_.kq.set(40,61942);_.kq.set(73,62521);_.kq.set(67,62522);_.kq.set(80,63390);_.kq.set(78,63397);_.kq.set(75,59972);_.kq.set(188,63385);_.kq.set(190,63384);_.kq.set(36,63387);
_.kq.set(35,63386);_.kq.set(37,63388);_.kq.set(39,63389);_.kq.set(79,63423);_.kq.set(87,63424);_.kq.set(107,63426);_.kq.set(109,63425);_.kq.set(65,63428);_.kq.set(83,63430);_.kq.set(68,63429);_.kq.set(221,63431);_.kq.set(219,63432);_.kq.set(97,63439);_.kq.set(98,63440);_.kq.set(99,63441);_.kq.set(100,63442);_.kq.set(101,63443);_.kq.set(102,63444);_.kq.set(103,63445);_.kq.set(104,63446);_.kq.set(105,63447);_.wf=new Map;_.wf.set(80,63390);_.wf.set(78,63397);_.wf.set(188,63400);_.wf.set(190,63401);
_.wf.set(191,60765);_.wf.set(13,247917);_.Zo=new Map;_.ea=new Map;
}catch(e){_._DumpException(e)}
try{
var faP,VeZ,S2y,yac;_.eq7=function(K){return K.ui.guideIsVisibleButNotPersistent};
_.pxl=function(K){return K.ui.tabGesturesIsActive};
_.Kci=function(){var K=_.fy("service_worker_scope");try{return navigator.serviceWorker.getRegistration(K)}catch(d){return Promise.reject(d)}};
_.dDy=function(K){return!(!K||!K.pushManager)};
faP=function(){return _.Kci().then(_.dDy).catch(function(){return!1})};
_.HME=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?faP():Promise.resolve(!1)};
_.DDK=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
VeZ=function(){var K,d,f;return _.c(function(H){switch(H.nextAddress){case 1:return _.I(H,_.Rv.getInstance(),2);case 2:K=H.yieldResult;if(!K){d=void 0;H.jumpTo(3);break}return _.I(H,K.get("lmqf"),4);case 4:d=H.yieldResult;case 3:switch((f=d)||(f="SD"),f){case "HD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
S2y=function(K){var d,f,H;return _.c(function(D){if(D.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.M("disable_av1_setting")){var S=window.localStorage["yt-player-av1-pref"];S=S==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":S==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else S="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(d=K===S)return D.jumpTo(2);H=f=K;return _.I(D,VeZ(),3)}D.nextAddress!=2&&(d=H===D.yieldResult);return D.return(d)})};var nGt;var iMU=_.UK.IronButtonState,caE=(0,_.uV)(HTMLElement);
_.vP({_template:function(){if(nGt!==void 0)return nGt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;yac===void 0&&(yac=document.createElement("template"));var H=yac;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return nGt=K},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[iMU,_.ab,_.Rb,_.Xu],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(K){var d=(0,_.a4)(this);d.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:K});d.shadowRoot.appendChild(K);return caE.prototype._attachDom.call(this,K)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var K=this.contentElement;K&&K.selectedItem&&this._setSelectedItem(K.selectedItem)},
get contentElement(){for(var K=_.Xd(this.$.content).getDistributedNodes(),d=0,f=K.length;d<f;d++)if(K[d].nodeType===Node.ELEMENT_NODE)return K[d]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(K){this._setSelectedItem(K.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(K){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K)===this&&this.open()},
_selectedItemChanged:function(K){var d="";K?d=K.label||K.getAttribute("label")||K.textContent.trim():d="";this.value=d;this._setSelectedItemLabel(d)},
_computeMenuVerticalOffset:function(K,d){return d?d:K?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var K=this.opened?"true":"false",d=this.contentElement;d&&d.setAttribute("aria-expanded",K)}});_.AU=new _.Z("navigateAction");var uaS=new _.Z("formRenderer");var Tm=function(){var K=_.cP.apply(this,arguments)||this;K.showInput=!1;return K};
_.O(Tm,_.cP);_.V=Tm.prototype;_.V.detached=function(){this.showInput&&window.removeEventListener("click",_.Dm(this,this.closeOnOutsideClick_))};
_.V.stopPropagation_=function(K){this.showInput&&K.stopPropagation()};
_.V.closeOnOutsideClick_=function(K){this.closeOnOutsideClickCondition(K)&&(this.showInput=!1,window.removeEventListener("click",_.Dm(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.V.closeOnOutsideClickCondition=function(){return!0};
_.V.closeOnOutsideClickHandler=function(){};
_.V.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Dm(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.V.openOnClickHandler=function(){};
_.V.showInputChanged=function(){};
_.V.setShowInput=function(K){this.showInput=K};
Tm.prototype.setShowInput=Tm.prototype.setShowInput;Tm.prototype.showInputChanged=Tm.prototype.showInputChanged;Tm.prototype.openOnClickHandler=Tm.prototype.openOnClickHandler;Tm.prototype.openOnClick_=Tm.prototype.openOnClick_;Tm.prototype.closeOnOutsideClickHandler=Tm.prototype.closeOnOutsideClickHandler;Tm.prototype.closeOnOutsideClickCondition=Tm.prototype.closeOnOutsideClickCondition;Tm.prototype.closeOnOutsideClick_=Tm.prototype.closeOnOutsideClick_;Tm.prototype.stopPropagation_=Tm.prototype.stopPropagation_;
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Tm.prototype,"showInput",void 0);_.x([_.VV("click"),_.VV("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Tm.prototype,"stopPropagation_",null);_.x([_.SP("showInput"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],Tm.prototype,"showInputChanged",null);Tm=_.x([_.uL()],Tm);_.aaU=[Tm.prototype];var Iaw;var UDw;var re=function(){return _.q.apply(this,arguments)||this};
_.O(re,_.q);_.V=re.prototype;_.V.computePreselectedOption=function(K,d){return d===this.itemSelected_?K:void 0};
_.V.dataChanged_=function(){var K=this;this.preselectedSubreason=this.itemSelected_=-1;var d;(d=this.data)!=null&&d.key&&_.jW(this,function(){var f,H=Number((f=K.data)==null?void 0:f.key);!Number.isNaN(H)&&(K.itemSelected_=H,f=(f=(K.data.items||[])[H])&&f.optionSelectableItemRenderer&&f.optionSelectableItemRenderer.preselectedIndex)&&(K.preselectedSubreason=f)})};
_.V.isSubReasonHidden_=function(K,d){return K!=d};
_.V.onTopItemSelected_=function(K,d){for(var f=_.E(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),H=0,D=f.length;H<D;H++)f[H].select(0);_.ev(this.hostElement,"yt-report-form-update",[d.item.value]);K.stopPropagation()};
_.V.onItemSelected_=function(K,d){_.ev(this.hostElement,"yt-report-form-update",[d.item.value]);K.stopPropagation()};
_.V.getItem_=function(K){return K.serviceItem?K.serviceItem:K.navigationItem?K.navigationItem:K.optionSelectableItemRenderer?K.optionSelectableItemRenderer:null};
_.V.computeText_=function(K){return(K=this.getItem_(K))?this.ytRendererBehavior.getSimpleString(K.text):null};
_.V.validate=function(){return this.itemSelected_!==-1};
_.V.computeAriaLabel_=function(K){var d=_.qQ(K.text);(K=K.accessibility&&K.accessibility.accessibilityData&&K.accessibility.accessibilityData.label)&&(d+=". "+K);return d};
_.V.computeItemSelected_=function(K){return K};
_.V.preventSelection_=function(K){K.stopPropagation();this.tooltipTapped=!0};
_.V.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.V.updateItemSelectedFromBinding=function(K){this.itemSelected_=K.detail.value};
_.V.save=function(){var K;this.validate()&&(K=this.data)!=null&&K.items&&(K=this.data.items[this.itemSelected_],K!=null&&K.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(K.optionSelectableItemRenderer.submitEndpoint)||_.dN(this.hostElement,[K.optionSelectableItemRenderer.submitEndpoint])))};
re.prototype.onPaperRippleTransitionEnd_=re.prototype.onPaperRippleTransitionEnd_;re.prototype.dataChanged_=re.prototype.dataChanged_;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],re.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],re.prototype,"data",void 0);_.x([_.A({value:-1}),_.B("design:type",Number)],re.prototype,"itemSelected_",void 0);
_.x([_.A({computed:"computeItemSelected_(itemSelected_)"}),_.B("design:type",Number)],re.prototype,"value",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],re.prototype,"restoreFocusOnClose",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],re.prototype,"tooltipTapped",void 0);_.x([_.A({value:-1}),_.B("design:type",Number)],re.prototype,"preselectedSubreason",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],re.prototype,"dataChanged_",null);_.x([_.VV("transitionend"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],re.prototype,"onPaperRippleTransitionEnd_",null);re=_.x([_.N7({is:"yt-options-renderer",disableElementRegistration:!0})],re);
_.C(re,"yt-options-renderer",function(){if(UDw===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Iaw===void 0&&(Iaw=document.createElement("template"));var H=Iaw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);UDw=K}K=UDw;return K},{mode:2});var RXw;var Fcy;var zXi;var Xgi;var vGS;var MeS;var qG=function(){return _.q.apply(this,arguments)||this};
_.O(qG,_.q);qG.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
qG.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
qG.prototype.onTap=function(K){if(this.hostElement.classList.contains("selected")||_.Kd(this.hostElement,"yt-share-panel-can-select-contact-action"))K&&K.detail&&(K.detail.x||K.detail.y)&&_.E(this.hostElement).querySelector("#target").blur(),(K=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),K={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:K?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.ev(this.hostElement,"yt-share-panel-select-contact-action",[K])};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.x([_.A({observer:"onDataChanged"}),_.B("design:type",Object)],qG.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.B("design:type",String)],qG.prototype,"componentTitle",void 0);_.x([_.n8("#thumbnail"),_.B("design:type",Object)],qG.prototype,"thumbnail",void 0);qG=_.x([_.N7({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],qG);
_.C(qG,"yt-enrolled-contact-renderer",function(){if(MeS===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;vGS===void 0&&(vGS=document.createElement("template"));var H=vGS;f.call(d,H.content.cloneNode(!0),K.content.firstChild);MeS=K}K=MeS;return K},{mode:2});var P$z;var gGw;var Ql=function(){return _.q.apply(this,arguments)||this};
_.O(Ql,_.q);Ql.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Ql.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Ql.prototype.onTap=function(K){if(this.hostElement.classList.contains("selected")||_.Kd(this.hostElement,"yt-share-panel-can-select-contact-action"))K&&K.detail&&(K.detail.x||K.detail.y)&&_.E(this.hostElement).querySelector("#target").blur(),(K=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),K={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:K?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.ev(this.hostElement,"yt-share-panel-select-contact-action",[K])};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.x([_.A({observer:"onDataChanged"}),_.B("design:type",Object)],Ql.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.B("design:type",String)],Ql.prototype,"componentTitle",void 0);_.x([_.n8("#thumbnail"),_.B("design:type",Object)],Ql.prototype,"thumbnail",void 0);Ql=_.x([_.N7({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Ql);
_.C(Ql,"yt-suggested-contact-renderer",function(){if(gGw===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;P$z===void 0&&(P$z=document.createElement("template"));var H=P$z;f.call(d,H.content.cloneNode(!0),K.content.firstChild);gGw=K}K=gGw;return K},{mode:2});var jj=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-share-panel-reset-action":"onReset"};return K};
_.O(jj,_.q);jj.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"}}}}}};
jj.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.ev(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
jj.prototype.onReset=function(){for(var K=_.E(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),d=K.length-1;d>=0;d--)K[d].classList.toggle("selected")};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],jj.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A({observer:"onDataChanged"}),_.B("design:type",Object)],jj.prototype,"data",void 0);
jj=_.x([_.N7({is:"yt-contact-section-renderer",disableElementRegistration:!0})],jj);
_.C(jj,"yt-contact-section-renderer",function(){if(Xgi===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;zXi===void 0&&(zXi=document.createElement("template"));var H=zXi;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Xgi=K}K=Xgi;return K},{mode:2});var C$=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return K};
_.O(C$,_.q);_.V=C$.prototype;_.V.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"}}}};
_.V.onYtRefreshFormCommand=function(K){var d;(K=_.P((d=_.P(K,_.Zs2))==null?void 0:d.formRenderer,uaS))&&this.set("data",K)};
_.V.reset=function(){var K=_.E(this.hostElement).querySelector("#fields").children;K=_.y(K);for(var d=K.next();!d.done;d=K.next())d=d.value,d.reset&&d.reset()};
_.V.getForm=function(){var K={},d=_.E(this.hostElement).querySelector("#fields").children;d=_.y(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;if(!f.validate())return null;K[f.data.key]=f.value}return K};
_.V.submitFormFields=function(){if(this.fields)for(var K=_.y(this.fields),d=K.next();!d.done;d=K.next())d=d.value,d.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?d.save():d.nodeName==="YT-OPTIONS-RENDERER"&&d.save()};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],C$.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],C$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],C$.prototype,"data",void 0);_.x([_.iL("#fields > *"),_.B("design:type",Array)],C$.prototype,"fields",void 0);
C$=_.x([_.N7({is:"yt-form-renderer",disableElementRegistration:!0})],C$);
_.C(C$,"yt-form-renderer",function(){if(Fcy===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;RXw===void 0&&(RXw=document.createElement("template"));var H=RXw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Fcy=K}K=Fcy;return K},{mode:2});var OMc;var xy=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return K};
_.O(xy,_.q);xy.prototype.onCheckboxChange=function(K){this.data&&(K=(this.checked=_.Qm(K).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}})};
xy.prototype.handleUpdateCheckboxCommand=function(K){(K=_.P(K,_.IbJ))&&this.data&&this.data.id===K.id&&(this.set("data.disabled",K.disabled),this.set("data.title",K.title))};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],xy.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],xy.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],xy.prototype,"checked",void 0);xy=_.x([_.Q({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],xy);
_.C(xy,"ytd-settings-checkbox-renderer",function(){if(OMc!==void 0)return OMc;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return OMc=K},{mode:1});var N5z;var L$=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return K};
_.O(L$,_.q);L$.prototype.dataChanged=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return K.radio.removeAttribute("checked"),!K.data||!K.data.id||K.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.DDK()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(d=K.data&&K.data.id)?_.I(f,S2y(K.data.id),4):f.jumpTo(3):(K.set("data.hidden",!0),f.jumpTo(0));f.nextAddress!=3&&(d=f.yieldResult);d&&_.ev(K.hostElement,"yt-select-settings-radio-option",[K.data.id]);_.iQ(f)})};
L$.prototype.onButtonChanged=function(K){_.Qm(K).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.eq().resolve(_.pQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.ev(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
L$.prototype.onSelectOption=function(K){this.data&&this.data.id&&(this.data.id===K?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
L$.prototype.dataChanged=L$.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],L$.prototype,"ytActionHandlerBehavior",void 0);_.x([_.n8("#radio"),_.B("design:type",Object)],L$.prototype,"radio",void 0);_.x([_.A(),_.B("design:type",Object)],L$.prototype,"data",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],L$.prototype,"dataChanged",null);L$=_.x([_.Q({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],L$);
_.C(L$,"ytd-settings-radio-option-renderer",function(){if(N5z!==void 0)return N5z;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return N5z=K},{mode:1});var Y2t;var BX=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return K};
_.O(BX,_.q);
BX.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"}}}};
BX.prototype.handleUpdateTextCommand=function(K){(K=_.P(K,_.Uis))&&this.data&&this.data.id===K.id&&this.set("data",K)};
BX.prototype.handleUpdateConnectedAppRendererCommand=function(K){if(_.P(K,_.zH6)&&this.data){var d,f;if(K=(d=_.P(K,_.zH6))==null?void 0:(f=d.newConnectedAppRenderer)==null?void 0:f.connectedAppRenderer)this.data=K}};
BX.prototype.computeConnectedAppStyle=function(K){return K.style?K.style.toLowerCase().replace(/_/g,"-"):""};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],BX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],BX.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],BX.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.B("design:type",String)],BX.prototype,"connectedAppStyle",void 0);BX=_.x([_.Q({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],BX);
_.C(BX,"ytd-connected-app-renderer",function(){if(Y2t!==void 0)return Y2t;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Y2t=K},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.hs("iuT5Oc");

_.bl();
}catch(e){_._DumpException(e)}
try{
_.hs("L3n37");
var trz=function(K){return K.watch.isLearningJourneyActive},orw=_.vp(115994),$BP=_.vp(115993),ErP=function(K,d,f){var H=this;
var D=f.dragDownAction;this.layer=0;this.JSC$20476_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.JSC$20476_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.fullscreen=!1;var S=_.cv();_.K5(S,orw,this.layer);_.K5(S,$BP,this.layer);this.dragDownAction=function(){D();_.bh(S,{visualElement:H.fullscreen?orw:$BP})};
this.gesture=new _.nV(K,d,this.JSC$20476_watchConfig,"pandown");this.attach()};
ErP.prototype.attach=function(){this.gesture.attach()};
ErP.prototype.detach=function(){this.gesture.detach()};
ErP.prototype.update=function(K){this.fullscreen=K;this.gesture.config=K?this.JSC$20476_watchFullScreenConfig:this.JSC$20476_watchConfig};var h$t=function(K){_.sT.call(this);var d=this;this.rootElement=K;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return d.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(f){d.initOrDisposeActiveModules(f)}));
this.onAttached()};
_.O(h$t,_.sT);_.V=h$t.prototype;_.V.getRoot=function(){return this.rootElement};
_.V.getElement=function(K){return this.rootElement.getElement(K)};
_.V.setPlayerResponse=function(K){this.playerResponse=K;this.publish("PLAYER_RESPONSE_UPDATED",K)};
_.V.getPlayerResponse=function(){return this.playerResponse};
_.V.setWatchNextResponse=function(K){this.watchNextResponse===K?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=K,this.publish("WATCH_NEXT_RESPONSE_UPDATED",K))};
_.V.getWatchNextResponse=function(){return this.watchNextResponse};
_.V.registerActionHandler=function(K,d){var f=this;if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.qF(_.rU.getInstance(),(H[K]=d,H),this.getRoot())}else this.actionHandlers.has(K)||(this.actionHandlers.set(K,[]),H={},_.qF(_.rU.getInstance(),(H[K]=function(){var D=_.Pg.apply(0,arguments);return(f.actionHandlers.get(K)||[]).map(function(S){return S.apply(null,_.Me(D))})},H),this.getRoot())),this.actionHandlers.get(K).push(d)};
_.V.unregisterActionHandler=function(K){if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var d={};_.QU(_.rU.getInstance(),(d[K]=!0,d),this.getRoot())}else(d=this.actionHandlers.get(K))?(d.pop(),d.length===0&&(d={},_.QU(_.rU.getInstance(),(d[K]=!0,d),this.getRoot()),this.actionHandlers.delete(K))):_.h3(new _.X4("Attempted to unregister an action handler which is not registered.",K))};
_.V.addPageDisposeJob=function(K){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.JN(this.rootElement.pageDisposeJobs,K)};
_.V.removePageDisposeJob=function(K){this.rootElement.pageDisposeJobs&&_.Zn(this.rootElement.pageDisposeJobs,K)};
_.V.dispatchEvent=function(K,d){_.Zp(this.rootElement,K,d)};
_.V.provideRenderingData=function(K,d){this.rootElement.provideRenderingData(K,d)};
_.V.scrollWatchTo=function(K,d){var f;(f=this.watchScrollManager)==null||f.scrollWatchTo(K,d)};
_.V.focusOnPlayer=function(){var K=this.getElement("PLAYER");_.jW(K,function(){if(K&&K.firstElementChild){var d=K.querySelector(".html5-video-player");d&&(_.Bw(_.eq().resolve(_.Pp)),d.focus())}else _.h3(Error("jm"))})};
_.V.updateCinematicFullscreenConfig=function(){var K=!!this.rootElement.theater,d=!!this.rootElement.fullscreen,f;(f=this.watchCinematicManager)==null||_.t6z(f,d,K)};
_.V.subscribeToActiveChanged=function(K,d){d=d===void 0?!0:d;var f=_.n5(_.j3(),trz,function(H){K(H)});
d&&K(trz(_.j3().getState()));return f};
_.V.isActive=function(){return trz(_.j3().getState())};
_.V.onAttached=function(){var K=_.M("external_fullscreen");_.M("use_unified_flag_accessor")&&(K=_.eq().resolve(_.nzy).retriever.getFlag(_.O7L));(K||_.lx("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.V.initPersistentModules=function(){if(_.M("kevlar_watch_flexy_theater_manager")){var K=new _.dRc(this);_.cy(this,K)}K=new _.qUU(this);_.cy(this,K);K=new _.$C(this);_.cy(this,K);K=new _.Gg(this);_.cy(this,K);K=new _.U$S(this);_.cy(this,K);K=new _.hF(this);_.cy(this,K);_.M("kevlar_watch_flexy_playlist_manager")&&(K=new _.Fzw(this),_.cy(this,K))};
_.V.initOrDisposeActiveModules=function(K){K?(this.watchScrollManager=new _.Tg(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Kzz(this)),this.activeModules.push(new _.DEU(this)),this.activeModules.push(new _.OVU(this)),this.activeModules.push(new _.AF(this)),_.M("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.nDc(this)),this.activeModules.push(new _.SJK(this)),_.M("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.YJy(this)),
_.M("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.zbw(this)),_.M("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.gRy(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.M("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.cgi(this)),_.M("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.T_z(this)),K=_.M("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.M("kevlar_watch_flexy_comments_manager")&&!K&&this.activeModules.push(new _.mRw(this)),_.M("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.EM(this)),this.activeModules.push(new _.iqE(this)),this.activeModules.push(new _.fZy(this)),_.M("web_enable_timely_actions")&&this.activeModules.push(new _.Iry(this)),_.M("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.GWy(this)),_.M("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.tXS(this)),
_.M("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.aNK(this)),_.M("web_player_rtr_ctrls")&&this.activeModules.push(new _.T1K(this))):(_.w0(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.V.disposeInternal=function(){_.sT.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.x$.Object.defineProperties(h$t.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var blK={},mBy=["learning-journey-engagement-panel","PAlearning_chat"];
blK.YtdLearningJourneyWatchBehavior=[_.p.YtRendererBehavior,_.ra.YtPlayerListenerBehavior,_.s9.YtRendererstamperBehavior,_.kc.YtActionHandlerBehavior,_.N$.YtPageBehavior,_.SY.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 _.lx("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.M("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 _.lx("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 _.M("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.M("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 _.di("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.di("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)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.M("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.M("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("web_watch_rounded_player_large")||_.M("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 _.M("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.M("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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 _.M("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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 _.M("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);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:_.Eg(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Eg(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!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 K=this;this.watchController=void 0;this.pageDisposeJobs=[function(){K.showMetadataPlaceholder_()},
function(){_.M("web_watch_dont_clear_comments")||K.clearComments_()},
function(){K.clearPlayerAds_()},
function(){K.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.M("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.M("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.Vrt(function(){return _.CK(K)},this.hostElement);
this.pageDisposeJobs.push(function(){K.youThereManager_.reset()});
_.M("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){K.resetFullerscreenEduButtonForNewPlayback_()}));
_.M("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.e2;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;_.M("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.M("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));_.M("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Dm(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(K){K&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:K}),K.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(K){_.M("kevlar_watch_flexy_theater_manager")&&(this.theater=K,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.M("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(K){!_.M("kevlar_watch_while_v2")&&!_.M("web_watch_pip")||K||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(K){this.active!==void 0&&(this.fullscreen=K,_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(K){this.active!==void 0&&(_.Zp(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(K>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(K){this.initCsi_();this.updatePageData_(K)},
updatePageData_:function(K){var d=this;if(K)if(this.data===K){this.onPageLoadWithSameData_();var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data)}else this.data=K;this.playlist&&_.Ox({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.YJ("nw");this.loading=!1;_.va(_.oc,function(){d.initDclkstatus_();var H,D=((H=d.player)==null?void 0:H.getVideoData().cpn)||"";_.Lzl(function(S,n){_.e7y(S,n,D)})})},
onPageLoadWithSameData_:function(){_.M("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 K=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!K);this.set("loadingData.playlistLoading",K&&K!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),K=this.watchNextSkeletonEl_.firstElementChild;K;)K.classList.remove("hidden"),K=K.nextElementSibling;if(_.M("kevlar_watch_frame0_loading_state")){var d,f,H;K=(d=this.loadingData)==null?void 0:(f=d.endpoint)==null?void 0:(H=f.watchEndpoint)==null?void 0:H.videoId;var D;K&&(D="https://i.ytimg.com/vi/"+K+"/frame0.jpg");_.E(this.hostElement).querySelector("#player").style.backgroundImage=D?"url("+D+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var K=_.E(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&K&&(K.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var d,f;(f=(d=this.watchMetadata).updateSentimentBarWidth)==
null||f.call(d);var H,D;(D=(H=this.watchMetadata).resize)==null||D.call(H)}_.M("kevlar_watch_frame0_loading_state")&&(_.E(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(K){var d=_.E(this.hostElement).querySelector(K);d?_.kZ(d,!1):_.h3(new _.X4("Overscroll monitor not found for component: ",K))},
removeSplitScrollMouseTrap:function(K){var d=_.E(this.hostElement).querySelector(K);d?_.wL(d):_.h3(new _.X4("Disposal component for  overscroll monitoring not found: ",K))},
onLoadingChanged_:function(K){K?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(K){var d=this;K?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.oc.addLowPriorityJob(function(){d.onWindowResized_(_.aM(!0))})},
updateTheaterModeState_:function(K){if(!_.M("kevlar_watch_flexy_theater_manager")){K=K||this.fullWindowMode_;if(this.theater!==void 0||K)this.theater=K;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();K&&_.HXw()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var K=this.theater;_.M("external_fullscreen")&&this.fullscreen&&(K=!0);K=K?_.E(this.hostElement).querySelector("#player-full-bleed-container"):_.E(this.hostElement).querySelector("#player-container-inner");var d=this.getPlayerContainer(),f=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip");d.parentElement!==K&&(f&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.CK(this).appendTo(K,d),K.appendChild(_.E(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var K=this;return _.c(function(d){if(d.nextAddress==1)return _.I(d,_.eq().resolve(_.$b).deactivate(),2);K.updatePlayerLocation();_.iQ(d)})},
updateCinematicsLocation:function(){var K=this.getElement("CINEMATICS");if(K){var d=this.getCinematicsLocationContainer();K.parentElement!==d&&d.appendChild(K);var f;(f=this.watchController)==null||f.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.E(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.E(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(K,d){var f=document.documentElement.hasAttribute("dark"),H=f&&_.M("web_cinematic_theater_mode"),D=f&&_.M("web_cinematic_fullscreen");f=!f&&this.cinematicLightTheme;return K&&H||d&&D||(d||K)&&f},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var K;(K=this.watchController)==null||K.setWatchNextResponse(this.data);_.M("kevlar_watch_flexy_comments_manager")||this.initComments_();_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.eq().resolve(_.Yf).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.M("web_watch_start_chat_in_theater_mode")){var d,
f,H;if((d=this.data)==null?0:(f=d.contents)==null?0:(H=f.twoColumnWatchNextResults)==null?0:H.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var D,S;((D=this.data)==null?0:(S=D.contents)==null?0:S.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(K){var d;(d=this.watchController)==null||d.setPlayerResponse(this.playerData);K&&K.playabilityStatus&&(d=this.isVideoPlayable_(K.playabilityStatus,this.getPlayerOverlays_(this.data)),K=this.isLiveStreamOffline_(K.playabilityStatus),d&&!K||_.jW(this,function(){_.YJ("pbu")}));
this.setPlayerAds_();_.p1(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(K){_.j3().dispatch(_.es({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));K?this.activate_():this.deactivate_()},
attached:function(){var K=this;this.watchController=new h$t(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.M("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var d=_.CK(this);_.M("kevlar_disable_prepare_player")||d.preparePlayer();_.M("kevlar_watch_flexy_playlist_manager")||_.eq().resolve(_.Yf).setPlayer(d);this.updatePageMediaQueries();d={"--ytd-watch-flexy-scrollbar-width":_.tU()+
"px"};!_.di("kv_pl_mx_sz_ks")&&_.di("kevlar_watch_max_player_width")&&(d["--ytd-watch-flexy-max-player-width-wide-screen"]=_.CIK+"px");_.di("kevlar_watch_flexy_metadata_height")&&(d["--ytd-watch-flexy-space-below-player"]=_.x2Z+"px");this.safeUpdateStyles(d);_.M("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new ErP(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return K.onPlayerTouchPanDown_()}}));
_.M("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var K=_.tU(),d=_.G_+K,f=d;this.fixedPanels&&(d+=_.j8w);var H=657+K;K=1327+K;_.E(this.hostElement).querySelector("#two-column-query").query="(min-width: "+d+"px)";_.E(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(H+"px), (min-height: 630px) and (min-width: ")+(d+"px) and (max-width: ")+(K+"px)");_.E(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(K+"px)");_.E(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+f+"px)"},
calculateCurrentPlayerSize_:function(){var K=_.E(this.hostElement).querySelector("#miniplayer-bar").firstChild;return K&&K.active||this.theater||_.M("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.n0(NaN,NaN):_.C4(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.C4(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.kh(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var K=this;this.onWindowResized_(_.aM());_.M("browse_skeleton_removal_on_watch_killswitch")||_.lx("IS_SHELL_LOAD")&&_.pQc();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var d=_.CK(this);d.addEventListener("yt-player-updated",_.Dm(this,this.onPlayerUpdated_));d.getPlayerPromise().then(function(f){K.playerApiReady_(f)});
_.M("kevlar_watch_flexy_playlist_manager")||(d=_.eq().resolve(_.Yf),_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&d.addEventListener("yt-navigate",_.Dm(this,this.onYtNavigate_)),d.setPlaylistComponent(_.E(this.hostElement).querySelector("#playlist")),d.addEventListener("yt-playlist-data-updated",_.Dm(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.oc.addLowPriorityJob(function(){_.Zp(K.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.CK(this).removeEventListener("yt-player-updated",_.Dm(this,this.onPlayerUpdated_));if(!_.M("kevlar_watch_flexy_playlist_manager")){var K=_.eq().resolve(_.Yf);_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&K.removeEventListener("yt-navigate",_.Dm(this,this.onYtNavigate_));K.cancelVideoSkip();K.removeEventListener("yt-playlist-data-updated",_.Dm(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.M("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Zp(this.hostElement,"yt-autonav-pause-player",!1);K=_.Je();_.M("kevlar_exit_fullscreen_leaving_watch")&&K&&_.sy(K)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(K){this.player&&this.player.updateVideoData({rvs:K.rvs})},
getPageContents:function(K){return K&&K.contents&&K.contents.twoColumnWatchNextResults&&K.contents.twoColumnWatchNextResults.results&&K.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(K){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",K)},
onRetrieveLocation_:function(K,d){d.hasComments?d.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):d.locationRetrieved("/related_ajax",void 0);K.stopPropagation()},
onSubscriptionChanged_:function(K,d){this.player&&(d?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.OJ("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.E(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.E(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(K){this.player=K;this.setPlayerState(K.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.M("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.M("kevlar_unified_player")||_.M("kevlar_player_new_bootstrap_adoption"))&&_.GD()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(K,d){d=d===void 0?!0:d;_.Je()&&_.M("external_fullscreen")&&_.sy(document.documentElement);this.theaterRequested_=K;d&&_.UF("wide",K?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.M("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.ev(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Zp(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(K){_.bp(K,typeof this.player),this.player&&_.bp(K,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var K;((K=this.player)==null?0:K.isFullscreen())?this.player.toggleFullscreen():_.ev(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(K,d){return this.loading?d:!!Object.keys(K).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(K){if(K){K=_.y(K);for(var d=K.next();!d.done;d=K.next())d=d.value,d.youThereRenderer&&_.nrz(this.youThereManager_,d.youThereRenderer)}},
setPlaylistData_:function(K){return K||{}},
userEngagementConfigDataChanged_:function(K){if(K)if(K.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var d=this.youThereManager_;_.pA()<K.lowEngagementThresholdMs||_.aYU(d,!0)}else K.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ev(this.hostElement,"yt-autonav-pause-user-engagement",[K])},
isPlayerUnavailable_:function(K,d,f){return!!K&&!this.isVideoPlayable_(K,f)&&!d},
getPlayerOverlays_:function(K){return(K==null?void 0:K.playerOverlays)||null},
isVideoPlayable_:function(K,d){if(!K)return!1;var f=K.status==="OK"||K.status==="LIVE_STREAM_OFFLINE",H=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",K)||this.get("errorScreen.ypcTrailerRenderer",K);K=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",K);var D;d=d==null?void 0:(D=d.playerOverlayRenderer)==null?void 0:D.gatedActionsOverlayRenderer;return!!f||!!H||!!K||!!d},
hasWatchNextResponseErrorRenderer:function(K){var d=this.getPageContents(K),f,H,D,S,n;return!(K==null?0:(f=K.contents)==null?0:(H=f.twoColumnWatchNextResults)==null?0:H.secondaryResults)&&!!((D=d[0])==null?0:(S=D.itemSectionRenderer)==null?0:(n=S.contents[0])==null?0:n.backgroundPromoRenderer)},
isLiveStreamOffline_:function(K){return K?K.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(K,d,f){var H=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",d),D=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];D=_.M("web_no_skip_video_on_verification_checks")?(K==null?void 0:K.status)&&D.includes(K.status):K&&K.status==="AGE_CHECK_REQUIRED";var S=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",K);S==void 0&&(S=!0);!f||this.isVideoPlayable_(K,this.getPlayerOverlays_(d))||
H||D||!S||_.eq().resolve(_.Yf).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.ZVP()},
onPlayerFeedbackStartRequest_:function(K){_.ev(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:K}])},
onPlayerFeedbackArticleRequest_:function(K){_.ev(this.hostElement,"yt-help-dialog-requested",[K])},
onPlayerYpcContentRequest_:function(){var K,d,f,H,D,S,n,u,a=((K=this.data)==null?NaN:(d=K.contents)==null?NaN:(f=d.twoColumnWatchNextResults)==null?NaN:(H=f.secondaryResults)==null?NaN:(D=H.secondaryResults)==null?NaN:(S=D.offerModule)==null?NaN:(n=S.tvfilmOfferModuleRenderer)==null?NaN:(u=n.actionButtons)==null?NaN:u.length)-1;K=[".offerButton.buttonRenderer.",".actionButtons."+(a>=0?a:0)+".buttonRenderer."];d=_.y(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(f=d.next();!f.done;f=d.next())for(f=f.value,H=_.y(K),D=H.next();!D.done;D=H.next())if(D="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+f+D.value,D=this.get(D+"navigationEndpoint",this.data)||this.get(D+"serviceEndpoint",this.data)||this.get(D+"command",this.data)){_.SV(D,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(K){_.Zp(this.hostElement,"yt-autonav-pause-player",K)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(K){K()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(K){switch(K){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(K){switch(K){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Zp(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(K)},
setPlayerState:function(K){_.j3().dispatch(_.av4(K))},
onPlayerSubscribe_:function(K){_.ev(this.hostElement,"yt-player-subscribe",[K])},
onPlayerUnsubscribe_:function(K){_.ev(this.hostElement,"yt-player-unsubscribe",[K])},
onPlayerAdYtShowToast_:function(K){_.ev(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:K.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(K){if(K)return K},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(K){return!_.M("web_watch_move_summary_to_sd")&&!!K},
computeWatchMetadataRefresh:function(){return _.M("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var K,d,f,H;this.watchNextSecondaryResults=(K=this.data)==null?void 0:(d=K.contents)==null?void 0:(f=d.twoColumnWatchNextResults)==null?void 0:(H=f.secondaryResults)==null?void 0:H.secondaryResults}},
setRichGridRendererData:function(K){this.richGridRendererData=K},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var K,d=(K=this.data)==null?void 0:K.engagementPanels;if(d==null?0:d.length){K=null;d=_.y(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var H=void 0;if(((H=f.engagementPanelSectionListRenderer)==null?void 0:H.targetId)==="engagement-panel-structured-description"){K=f;break}}var D,S,n;K=(D=K)==null?void 0:(S=D.engagementPanelSectionListRenderer)==null?void 0:(n=S.content)==null?void 0:n.structuredDescriptionContentRenderer;if(K==null?0:K.items){D=
[];S=_.y(K.items);for(n=S.next();!n.done;n=S.next()){n=n.value;if(!_.M("sd_horizontal_list_show_nav_killswitch")){var u=H=f=d=K=void 0,a=void 0,R=(K=n.horizontalCardListRenderer)==null?void 0:(d=K.header)==null?void 0:(f=d.richListHeaderRenderer)==null?void 0:(H=f.navigationButton)==null?void 0:(u=H.buttonRenderer)==null?void 0:(a=u.command)==null?void 0:a.commandExecutorCommand;R&&R.commands&&(R.commands=R.commands.filter(function(F){return!_.P(F,_.D2K)}))}n.expandableVideoDescriptionBodyRenderer||
n.videoDescriptionHeaderRenderer||D.push(n)}return{items:D}}}},
constructWarning_:function(K){return{text:_.rB(K),type:"WARNING"}},
isPlaShelfEnabled_:function(K){if((this.get("adPlacements",K)||[]).length)return!0;K=this.get("playerAds",K)||[];return!(!K.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",K[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var K=this;_.Zp(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var d=this.getScrollTop()>0;this.gestures_&&(d?this.gestures_.detach():this.gestures_.attach());d!==this.showFullerscreenEdu_&&_.M("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=d,_.CK(this).getPlayerPromise().then(function(f){f.updateFullerscreenEduButtonVisibility(K.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Zp(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var K=this;this.commentsReady=!1;_.oc.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.va(_.oc,function(){K.setComments_()},1E3)},
setComments_:function(){if(!_.M("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.YJ("cmi");_.oc.cancelJob(this.setCommentsJobId_);var K=this.getPageContents(this.data);if(K&&K.length){K=_.y(K);for(var d=K.next();!d.done;d=K.next())if(d=d.value,this.get("itemSectionRenderer.sectionIdentifier",d)==="comment-item-section"){this.comments=d.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Zp(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.M("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.YJ("cmc")},
doRemoveComments_:function(){this.comments={};_.M("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.oc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.oc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(K,d){var f=_.P(d.endpoint,_.qu);f&&(!(d=this.get("data.currentVideoEndpoint.watchEndpoint"))||f.videoId!==d.videoId||f.playlistId&&f.playlistId!==d.playlistId||f.index!==void 0&&f.index!==d.index||typeof f.startTimeSeconds!=="number"||(K.stopPropagation(),this.setScrollTop(0),_.CK(this).getPlayerPromise().then(function(H){var D=f.startTimeSeconds;H.seekTo(D);H.wakeUpControls();D<H.getDuration()&&H.playVideo()})))},
updatePlayerStartTime_:function(){var K=_.G6w();"t"in K&&(K=_.wmw(K.t),this.player.seekTo(K,!0))},
updateTitleFromWatchNext:function(K){K=this.getPageContents(K);var d,f;(K=_.qQ(K==null?void 0:(d=K[0])==null?void 0:(f=d.videoPrimaryInfoRenderer)==null?void 0:f.title))&&_.Zp(this.hostElement,"yt-update-title",K)},
updateTitle_:function(K){K=this.get("videoDetails.title",K)||"";_.Zp(this.hostElement,"yt-update-title",K)},
syncWithRemoteVideo_:function(K,d,f){if(this.active&&this.player){var H=this.player.getVideoData();if(H.video_id===f&&(f=H.list,_.M("polymer_enable_mdx_queue")&&f&&f.startsWith("RQ")&&(f=void 0),H.video_id!==K||f!=d)){var D;_.M("kevlar_player_watch_endpoint_navigation")?D=_.$1X(_.Bgw(K,d)):D=this.buildWatchEndpoint_(K,d);_.Zp(this.hostElement,"yt-navigate",{endpoint:D,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(K,d,f){return _.sx(K,d,f)},
initDclkstatus_:function(){_.k6Z()},
attachWatchPageSkeleton_:function(){var K=document.querySelector("#watch-page-skeleton");if(K){var d=K.querySelector("#primary-info"),f=K.querySelector("#secondary-info"),H=K.querySelector("#related");d&&_.E(this.hostElement).querySelector("#info-skeleton").appendChild(d);f&&_.E(this.hostElement).querySelector("#meta-skeleton").appendChild(f);H&&(_.E(this.hostElement).querySelector("#related-skeleton").appendChild(H),this.watchNextSkeletonEl_=H);_.FE(K)}},
handlePlayerUpdated_:function(){_.CK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(K,d){if(this.watchNextSkeletonEl_&&typeof d!=="undefined"){var f=this.watchNextSkeletonEl_.children,H=K&&K.indexSplices.length?K.indexSplices[0].index:0;K=Math.min(this.watchNextShownItems.length,f.length);d||(H=0,K=f.length);for(d=H;d<K;d++)f[d].classList.add("hidden")}},
onPlayerFullscreenChange_:function(K){_.M("external_fullscreen")||_.ev(this.hostElement,"yt-player-fullscreen",[K.fullscreen])},
onFullscreenChange_:function(K){this.fullscreen=K;this.gestures_&&this.gestures_.update(this.fullscreen);var d=_.CK(this);d.getPlayerPromise().then(function(f){f.setFauxFullscreen(!!_.Je())});
this.updateFullBleedElementLocations();K&&(d.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(K,d){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!d},
computeIsDonationShelfCollapsed_:function(K){return K},
computeShouldShowMerchShelf:function(K,d){return d&&!!K},
computeResponseHasComments:function(K){var d,f,H,D,S;return!!(K==null?0:(d=K.contents)==null?0:(f=d.twoColumnWatchNextResults)==null?0:(H=f.results)==null?0:(D=H.results)==null?0:(S=D.contents)==null?0:S.some(function(n){var u;return(n==null?void 0:(u=n.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(K,d){this.responseHasComments=this.computeResponseHasComments(this.data);return!!K&&!!Object.keys(K).length&&!d},
identity:_.QO,onWindowResized_:function(K){this.windowSize_=K;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.M("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(K){var d=this;K&&K.type!=="dataloaded"&&K.type!=="dataupdated"||_.CK(this).getPlayerPromise().then(function(f){var H=f.getPlayerState();H!==5&&H!==0&&(f=1/f.getVideoAspectRatio(),d.videoHeightToWidthRatio_!==f&&(d.videoHeightToWidthRatio_=f))})},
schedulePlayerSizeUpdate_:function(K){var d=this,f=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip"),H=function(){if(d.watchMetadata){var D,S;(S=(D=d.watchMetadata).resize)==null||S.call(D)}_.CK(d).getPlayerPromise().then(function(n){if(_.M("kevlar_set_internal_player_size")){if(!f||!d.isMiniplayerActive()){var u=d.calculateCurrentPlayerSize_();n.setInternalSize(u.width,u.height)}}else n.setSize(NaN,NaN);_.M("kevlar_watch_while")&&d.updateWatchWhileScrollThreshold_()})};
K?H():_.FN(_.oc,H)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(K){this.set("data.survey",K.detail)},
onYtShowSurveyCommand_:function(K){this.set("data.survey",_.P(K,_.DBl).survey)},
onDownloadedVideoDeleted:function(K){var d=this,f,H;return _.c(function(D){if(D.nextAddress==1){if(!d.active||(f=d.playerData)==null||!f.offlineState||d.videoId!==K)return D.return();(H=d.player)==null||H.stopVideo();_.SJ().navigatingAwayFromWatchDeletedVideo=!0;_.SV(_.z1B,d.hostElement);return _.I(D,_.SJ().navigationFinishPromise,2)}_.SJ().navigatingAwayFromWatchDeletedVideo=!1;_.iQ(D)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var K;this.theater?K=_.Oa(.5625*this.windowSize_.width,480,this.windowSize_.height-185):K=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==K&&(this.watchWhileScrollThreshold_=K,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var K=_.E(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&K){var d=this.windowSize_.height>=624,f=this.active?this.getScrollTop():0;!K.active&&d&&f>=this.watchWhileScrollThreshold_?(K.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):K.active&&(!d||f<this.watchWhileScrollThreshold_&&!_.Je())&&(K.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(K,d){if(K!==!0||d!==void 0){K=!_.M("live_chat_over_engagement_panels");d=_.E(this.hostElement).querySelector("#chat-container");var f=_.E(this.hostElement).querySelector("#plj-sidebar"),H=_.E(this.hostElement).querySelector("#panels"),D=_.E(this.hostElement).querySelector("#plj-panels"),S=_.E(this.hostElement).querySelector("#plj-playlist"),n=_.E(this.hostElement).querySelector("#alerts"),u=_.E(this.hostElement).querySelector("#playlist"),a=_.E(this.hostElement).querySelector("#related"),
R=_.E(this.hostElement).querySelector("#donation-shelf"),F=_.E(this.hostElement).querySelector("#comments");this.isTwoColumns_?(n=_.E(this.hostElement).querySelector("#secondary-inner"),n.appendChild(f),f.appendChild(S),S.appendChild(u),f.appendChild(D),K&&n.appendChild(H),_.M("web_watch_theater_chat")||n.appendChild(d),K||n.appendChild(H),n.appendChild(R),n.appendChild(a)):(K&&_.vc(H,n),_.vc(u,n),_.M("web_watch_theater_chat")||_.vc(d,n),K||_.vc(H,n),_.vc(R,n),F&&(D&&_.vc(D,F),_.vc(a,F)));_.M("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.M("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.M("web_watch_theater_chat")){var K=_.E(this.hostElement).querySelector("#chat-container"),d=this.theater&&!this.fullscreen||_.M("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&d?_.M("web_watch_theater_chat_beside_player")?(d=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),(K==null?void 0:K.parentElement)!==d&&d.append(K),this.panelsBesidePlayer=!0):_.M("web_watch_theater_fixed_chat")&&
(d=_.E(this.hostElement).querySelector("#columns"),(K==null?void 0:K.parentElement)!==d&&d.append(K),this.fixedPanels=!0):(_.M("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.M("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),d=_.E(this.hostElement).querySelector("#playlist"),K&&d?_.MO(K,d):_.h3(new _.X4("Missing element when updating chat location",{"chatContainer defined":!!K,"playlist defined":!!d})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(K,d){return _.M("sw_metadata_vis_toggle_ks")?!0:!!K||!!d},
computeForceDarkPanelTheme:function(K){return _.M("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&K:!1},
safeUpdateStyles:function(K){try{_.f8(this.hostElement,K)}catch(d){_.h3(d)}},
videoHeightToWidthRatioChanged_:function(K,d){d&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.M("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(K){this.videoHeightToWidthRatio_=1/K},
computeIsVerticalVideo_:function(K){return K>=1},
computeIsFourThreeToSixteenNineVideo_:function(K){return K<=.7501&&K>=.5624},
computeIsExtraWideVideo_:function(K){return K<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.CK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.CK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.IYP(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(K){var d=_.KI(K)||0;_.p5(K,d+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var K=_.KI("yt-fullerscreen-edu-button-click-count")||0,d=_.KI("yt-fullerscreen-edu-button-shown-count")||0,f=_.di("external_fullscreen_button_shown_threshold"),H=K>=_.di("external_fullscreen_button_click_threshold")||d>=f;_.CK(this).getPlayerPromise().then(function(D){D.updateFullerscreenEduButtonSubtleModeState(H)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(K,d){return d},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.eq().resolve(_.Yf).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var K=this;this.panelMaxHeightUpdateJob_&&_.oc.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.oc.addLowPriorityJob(function(){K.panelMaxHeightUpdateJob_=0;var d;!K.isTwoColumns_||K.theater||K.fullscreen?d=460:d=K.calculateNormalPlayerSize_().height;var f=d+"px";_.M("live_chat_taller_height")&&!K.theater&&(f="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.M("live_chat_medium_height")&&
!K.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.M("live_chat_scaled_height")&&!K.theater&&(f="calc(100vh - var(--ytd-toolbar-height) - 238px)");K.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":d+"px","--ytd-watch-flexy-chat-max-height":f,"--ytd-watch-flexy-structured-description-max-height":d+"px","--ytd-watch-flexy-comments-panel-max-height":d+"px","--ytd-comments-engagement-panel-content-height":d+"px"})})},
onYtShowEngagementPanelScrimAction_:function(K){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",K)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.fd(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(K){var d=_.E(this.hostElement).querySelector("#engagement-panel-scrim");K?d.addEventListener("tap",_.Dm(this,this.onEngagementPanelScrimClick_)):d.removeEventListener("tap",_.Dm(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(K){if(this.hostElement.contains(K)&&!this.scrollToAnimation_.isAnimating()){var d=K.offsetTop-24;K=K.offsetTop+K.offsetHeight+24;var f=this.getPageScrollingElement(),H=this.getScrollTop(),D=H+f.clientHeight-56;if(d<H+56)d-=56;else if(K>D)d=K-f.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,d),500)}},
onYtSignalActionScrollToComments:function(){var K=this.hostElement.querySelector("#comments");if(K&&!this.scrollToAnimation_.isAnimating()){K=K.offsetTop-56-24;if(_.M("kevlar_comment_teaser_scroll_to_midpoint")&&(K-=_.iW().height/3,K<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,K),500)}},
onYtEngagementPanelVisibleChanged:function(K,d,f){this.active&&this.trackEngagementPanelVisibility&&!_.fYi.includes(f)&&(d==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(f),d!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&d!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(f),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(K){return K?"":"watch-active-metadata"},
computeNewMetadataClass:function(K){return K?"watch-active-metadata":""},
computeFullBleedPlayer:function(K,d){return K||d},
computeDefaultLayout:function(K){return!K},
computeDefaultTwoColumnLayout:function(K,d){return!K&&d},
computeWatchWhilePanelsActive:function(K,d){return K||d},
computeNoBorderOnChat:function(K){return _.M("web_watch_theater_chat_no_border")&&K},
computeLiveChatPresentAndExpanded:function(K,d){return K&&!d},
computePanelExpanded:function(K,d,f){return K||d||f},
onChangeMarkersVisibility:function(K){_.CK(this).getPlayerPromise().then(function(d){var f;(f=d.changeMarkerVisibility)==null||f.call(d,_.P(K,_.xC).isVisible||!1,_.P(K,_.xC).entityKeys||[],_.P(K,_.xC).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(K){this.liveChatCollapsed=K.detail;_.j3().dispatch(_.dBi(K.detail))},
provideRenderingData:function(K,d){switch(K){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=d;break;case "PRIMARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=d);this.videoPrimaryInfoRendererValue=d==null?void 0:d.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=d);this.videoSecondaryInfoRendererValue=d==null?void 0:d.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
d;break;case "CLARIFICATION":this.clarifyBoxValue=d;break;case "LIVE_CHAT":this.conversationBar=d;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=d;break;case "PLAYLIST":this.externalPlaylistData_=d!=null?d:{};break;case "MERCH_SHELF":this.merchShelfValue=d==null?void 0:d.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=d;break;case "OFFER_MODULE":this.offerModule=d;break;case "LIMITED_STATE":this.limitedStateValue=d;break;case "DONATION_SHELF":this.donation=d;break;
case "ALERTS":this.alertsValue=d;break;case "COMMENTS":this.comments=d;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=d;break;case "ENGAGEMENT_PANELS":this.engagementPanels=d;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=d;break;case "RICH_GRID_RENDERER":this.richGridRendererData=d;break;case "EXPANDABLE_METADATA":this.expandableMetadata=d;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=d}},
toggleCinematicsActive:function(K){this.cinematicsActive=K},
isMiniplayerActive:function(){return _.eq().resolve(_.$b).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(K){return mBy.map(function(d){return K.find(function(f){var H;return(f==null?void 0:(H=f.engagementPanelSectionListRenderer)==null?void 0:H.targetId)===d})}).filter(function(d){return d!==void 0})},
getNonLearningJourneyEngagementPanels:function(K){return K.filter(function(d){var f;return!mBy.includes((d==null?void 0:(f=d.engagementPanelSectionListRenderer)==null?void 0:f.targetId)||"")})}}];var lYi;var p4=function(){var K=_.q.apply(this,arguments)||this;K.flexy=!0;K.learningJourney=!0;K.roundedInfoPanel=!0;K.viewTransitionEnabled=_.M("enable_player_resize_transition");K.smallerChatMinHeight=_.M("live_chat_smaller_min_height");K.cinematicTheaterMode=_.M("web_cinematic_theater_mode");K.transparentTheaterMode=_.M("web_transparent_theater_mode");K.cinematicFullscreen=_.M("web_cinematic_fullscreen");K.useLargerMaxPlayerValue=_.M("kevlar_flexy_use_larger_player_value");K.cinematicFullscreenV2=_.M("web_cinematic_fullscreen_v2");
K.isDarkTheme=document.documentElement.hasAttribute("dark");K.theaterLargerPlayer=_.M("web_watch_theater_larger_player");K.defaultCollapsePlaylist=_.M("web_watch_default_collapse_playlist");return K};
_.O(p4,_.q);_.V=p4.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.V.ready=function(){var K=this,d=function(){K.onColumnScroll()};
this.primary.addEventListener("scroll",d);this.secondary.addEventListener("scroll",d)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(K){_.M("web_watch_update_narrow_width_killswitch")||_.j3().dispatch(_.e1z(!K.detail.value));this.ytdWatchBehavior.isTwoColumns_=K.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(K){this.ytdWatchBehavior.flexySmallWindow_=K.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(K){this.ytdWatchBehavior.flexyLargeWindow_=K.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(K){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=K.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(K){this.ytdWatchBehavior.watchNextCanShowMore=K.detail.value};
_.V.updateShownItemsFromBinding=function(K){K.detail.path?this.set(K.detail.path,K.detail.value):this.ytdWatchBehavior.watchNextShownItems=K.detail.value};
_.V.getElement=function(K){switch(K){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20485_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20485_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.x$.Object.defineProperties(p4.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.pageVisualEffects)return!1;for(var d=0;d<this.data.pageVisualEffects.length;d++)if(K=_.P(this.data.pageVisualEffects[d],_.M$))return d=void 0,(d=K.config)==null?void 0:d.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.learningJourneyEngagementPanels)==null?void 0:K.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var K,d=(K=this.learningJourneyEngagementPanels)==null?void 0:K.find(function(v){var g;return(v==null?void 0:(g=v.engagementPanelSectionListRenderer)==null?void 0:g.panelIdentifier)==="learning-journey-engagement-panel"});
if(d){var f,H,D,S,n,u,a,R,F;if(K=(R=((a=(n=((S=d==null?void 0:(f=d.engagementPanelSectionListRenderer)==null?void 0:(H=f.content)==null?void 0:(D=H.sectionListRenderer)==null?void 0:D.contents)!=null?S:[])[0])==null?void 0:(u=n.itemSectionRenderer)==null?void 0:u.contents)!=null?a:[])[0])==null?void 0:(F=R.accordionViewModel)==null?void 0:F.onTitleTap){var z=_.$A(K);if(z)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.V2.instance.resolveCommand(z)}}}}}}});
_.x$.Object.defineProperties(p4,{template:{configurable:!0,enumerable:!0,get:function(){if(lYi===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-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>\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);lYi=K}K=lYi;return K}}});
p4.prototype.updateMiniplayerIsActiveValue=p4.prototype.updateMiniplayerIsActiveValue;p4.prototype.updateScrollTopValue=p4.prototype.updateScrollTopValue;p4.prototype.updateFullscreenValue=p4.prototype.updateFullscreenValue;p4.prototype.updateTheaterValue=p4.prototype.updateTheaterValue;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],p4.prototype,"ytComponentBehavior",void 0);
_.x([_.l(blK.YtdLearningJourneyWatchBehavior),_.B("design:type",Object)],p4.prototype,"ytdWatchBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],p4.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],p4.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],p4.prototype,"playerData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"flexy",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"learningJourney",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"roundedInfoPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"viewTransitionEnabled",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"smallerChatMinHeight",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"cinematicTheaterMode",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"transparentTheaterMode",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"cinematicFullscreen",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"useLargerMaxPlayerValue",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"cinematicFullscreenV2",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"isDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],p4.prototype,"theaterLargerPlayer",void 0);_.x([_.A(),_.B("design:type",Object)],p4.prototype,"defaultCollapsePlaylist",void 0);_.x([_.A({selector:_.NG}),_.B("design:type",Object)],p4.prototype,"theaterValue",void 0);
_.x([_.A({selector:_.Ny}),_.B("design:type",Object)],p4.prototype,"fullscreenValue",void 0);_.x([_.A({selector:_.Yv}),_.B("design:type",Object)],p4.prototype,"scrollTopValue",void 0);_.x([_.A({selector:_.Yo}),_.B("design:type",Object)],p4.prototype,"miniplayerIsActiveValue",void 0);_.x([_.n8("#ytd-plj-player"),_.B("design:type",HTMLElement)],p4.prototype,"ytdPlayer",void 0);_.x([_.n8("#playlist"),_.B("design:type",HTMLElement)],p4.prototype,"JSC$20485_ytdPlaylistPanelRenderer",void 0);
_.x([_.JZ("ytd-comments"),_.B("design:type",HTMLElement)],p4.prototype,"ytdComments",void 0);_.x([_.n8("#primary"),_.B("design:type",HTMLElement)],p4.prototype,"primary",void 0);_.x([_.n8("#secondary"),_.B("design:type",HTMLElement)],p4.prototype,"secondary",void 0);_.x([_.n8("#player-container"),_.B("design:type",HTMLElement)],p4.prototype,"playerContainer",void 0);_.x([_.n8("#cinematics"),_.B("design:type",HTMLElement)],p4.prototype,"JSC$20485_cinematics",void 0);
_.x([_.SP("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p4.prototype,"updateTheaterValue",null);_.x([_.SP("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p4.prototype,"updateFullscreenValue",null);_.x([_.SP("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p4.prototype,"updateScrollTopValue",null);
_.x([_.SP("miniplayerIsActiveValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p4.prototype,"updateMiniplayerIsActiveValue",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],p4.prototype,"cinematicLightTheme",null);_.x([_.A({reflectToAttribute:!0}),_.W("learningJourneyEngagementPanels"),_.B("design:type",Object),_.B("design:paramtypes",[])],p4.prototype,"hasLearningJourneyPanels",null);
_.x([_.W("learningJourneyEngagementPanels"),_.B("design:type",Object),_.B("design:paramtypes",[])],p4.prototype,"backButtonData",null);p4=_.x([_.Q({is:"ytd-watch-learning-journey"})],p4);_.kf.registerService(_.jPX,p4);
_.bl();
}catch(e){_._DumpException(e)}
try{
_.hs("Tm0L3c");
var Puz;var grz;var Ol5=function(){return _.q.apply(this,arguments)||this};
_.O(Ol5,_.q);Ol5=_.x([_.Q({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Ol5);
_.C(Ol5,"ytd-ghost-comments-renderer",function(){if(grz===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);grz=K}K=grz;return K},{mode:1});var Nuz;var Y6w=function(){return _.q.apply(this,arguments)||this};
_.O(Y6w,_.q);Y6w=_.x([_.Q({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Y6w);
_.C(Y6w,"ytd-ghost-watch-metadata-renderer",function(){if(Nuz===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);Nuz=K}K=Nuz;return K},{mode:1});var ey=function(){var K=_.q.apply(this,arguments)||this;K.ghostGridRenderer={rows:6};K.roundedInfoPanel=!0;K.hideOfferModules=!0;K.smallerChatMinHeight=_.M("live_chat_smaller_min_height");K.cinematicTheaterMode=_.M("web_cinematic_theater_mode");K.transparentTheaterMode=_.M("web_transparent_theater_mode");K.darkerPanels=_.M("web_watch_darker_panels");K.cinematicFullscreen=_.M("web_cinematic_fullscreen");K.cinematicFullscreenV2=_.M("web_cinematic_fullscreen_v2");K.isDarkTheme=document.documentElement.hasAttribute("dark");
return K};
_.O(ey,_.q);_.V=ey.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.V.ready=function(){var K=this,d=function(){K.onColumnScroll()};
this.primary.addEventListener("scroll",d);this.secondary.addEventListener("scroll",d)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(K){this.ytdWatchBehavior.isTwoColumns_=K.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(K){this.ytdWatchBehavior.flexySmallWindow_=K.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(K){this.ytdWatchBehavior.flexyLargeWindow_=K.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(K){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=K.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(K){this.ytdWatchBehavior.watchNextCanShowMore=K.detail.value};
_.V.updateShownItemsFromBinding=function(K){_.M("swatcheroo_direct_use_rich_grid")||(K.detail.path?this.set(K.detail.path,K.detail.value):this.ytdWatchBehavior.watchNextShownItems=K.detail.value)};
_.V.getElement=function(K){switch(K){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20473_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20473_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.x$.Object.defineProperties(ey.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.pageVisualEffects)return!1;for(var d=0;d<this.data.pageVisualEffects.length;d++)if(K=_.P(this.data.pageVisualEffects[d],_.M$))return d=void 0,(d=K.config)==null?void 0:d.enableInLightTheme;return!1}}});
ey.prototype.updateMiniplayerIsActiveValue=ey.prototype.updateMiniplayerIsActiveValue;ey.prototype.updateScrollTopValue=ey.prototype.updateScrollTopValue;ey.prototype.updateFullscreenValue=ey.prototype.updateFullscreenValue;ey.prototype.updateTheaterValue=ey.prototype.updateTheaterValue;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ey.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.vrt.YtdWatchBehavior),_.B("design:type",Object)],ey.prototype,"ytdWatchBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],ey.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ey.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],ey.prototype,"ghostGridRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],ey.prototype,"playerData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ey.prototype,"roundedInfoPanel",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ey.prototype,"hideOfferModules",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ey.prototype,"smallerChatMinHeight",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ey.prototype,"cinematicTheaterMode",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ey.prototype,"transparentTheaterMode",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ey.prototype,"darkerPanels",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ey.prototype,"cinematicFullscreen",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ey.prototype,"cinematicFullscreenV2",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ey.prototype,"isDarkTheme",void 0);_.x([_.A({selector:_.NG}),_.B("design:type",Object)],ey.prototype,"theaterValue",void 0);
_.x([_.A({selector:_.Ny}),_.B("design:type",Object)],ey.prototype,"fullscreenValue",void 0);_.x([_.A({selector:_.Yv}),_.B("design:type",Object)],ey.prototype,"scrollTopValue",void 0);_.x([_.A({selector:_.Yo}),_.B("design:type",Object)],ey.prototype,"miniplayerIsActiveValue",void 0);_.x([_.n8("#ytd-player"),_.B("design:type",HTMLElement)],ey.prototype,"ytdPlayer",void 0);_.x([_.n8("#playlist"),_.B("design:type",HTMLElement)],ey.prototype,"JSC$20473_ytdPlaylistPanelRenderer",void 0);
_.x([_.n8("#ytd-comments"),_.B("design:type",HTMLElement)],ey.prototype,"ytdComments",void 0);_.x([_.n8("#primary"),_.B("design:type",HTMLElement)],ey.prototype,"primary",void 0);_.x([_.n8("#secondary"),_.B("design:type",HTMLElement)],ey.prototype,"secondary",void 0);_.x([_.n8("#player-container"),_.B("design:type",HTMLElement)],ey.prototype,"playerContainer",void 0);_.x([_.n8("#cinematics"),_.B("design:type",HTMLElement)],ey.prototype,"JSC$20473_cinematics",void 0);
_.x([_.SP("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ey.prototype,"updateTheaterValue",null);_.x([_.SP("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ey.prototype,"updateFullscreenValue",null);_.x([_.SP("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ey.prototype,"updateScrollTopValue",null);
_.x([_.SP("miniplayerIsActiveValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ey.prototype,"updateMiniplayerIsActiveValue",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ey.prototype,"cinematicLightTheme",null);
_.C(ey,"ytd-watch-grid",function(){if(Puz===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);Puz=K}K=Puz;return K},{mode:2});_.kf.registerService(_.QP5,ey);
_.bl();
}catch(e){_._DumpException(e)}
try{
_.hs("CF909");
var Mrl;var Zs=function(){var K=_.q.apply(this,arguments)||this;K.flexy=!0;K.roundedInfoPanel=!0;K.viewTransitionEnabled=_.M("enable_player_resize_transition");K.smallerChatMinHeight=_.M("live_chat_smaller_min_height");K.cinematicTheaterMode=_.M("web_cinematic_theater_mode");K.transparentTheaterMode=_.M("web_transparent_theater_mode");K.cinematicFullscreen=_.M("web_cinematic_fullscreen");K.useLargerMaxPlayerValue=_.M("kevlar_flexy_use_larger_player_value");K.cinematicFullscreenV2=_.M("web_cinematic_fullscreen_v2");
K.isDarkTheme=document.documentElement.hasAttribute("dark");K.defaultCollapsePlaylist=_.M("web_watch_default_collapse_playlist");K.retroModeReduxValue=!1;return K};
_.O(Zs,_.q);_.V=Zs.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateRetroModeReduxValue=function(){_.M("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.V.ready=function(){var K=this,d=function(){K.onColumnScroll()};
this.primary.addEventListener("scroll",d);this.secondary.addEventListener("scroll",d)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(K){_.M("web_watch_update_narrow_width_killswitch")||_.j3().dispatch(_.e1z(!K.detail.value));this.ytdWatchBehavior.isTwoColumns_=K.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(K){this.ytdWatchBehavior.flexySmallWindow_=K.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(K){this.ytdWatchBehavior.flexyLargeWindow_=K.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(K){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=K.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(K){this.ytdWatchBehavior.watchNextCanShowMore=K.detail.value};
_.V.updateShownItemsFromBinding=function(K){K.detail.path?this.set(K.detail.path,K.detail.value):this.ytdWatchBehavior.watchNextShownItems=K.detail.value};
_.V.getElement=function(K){switch(K){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20468_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20468_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.x$.Object.defineProperties(Zs.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.pageVisualEffects)return!1;for(var d=0;d<this.data.pageVisualEffects.length;d++)if(K=_.P(this.data.pageVisualEffects[d],_.M$))return d=void 0,(d=K.config)==null?void 0:d.enableInLightTheme;return!1}}});
_.x$.Object.defineProperties(Zs,{template:{configurable:!0,enumerable:!0,get:function(){if(Mrl===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);Mrl=K}K=Mrl;return K}}});
Zs.prototype.updateRetroModeReduxValue=Zs.prototype.updateRetroModeReduxValue;Zs.prototype.updateScrollTopValue=Zs.prototype.updateScrollTopValue;Zs.prototype.updateFullscreenValue=Zs.prototype.updateFullscreenValue;Zs.prototype.updateTheaterValue=Zs.prototype.updateTheaterValue;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Zs.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.vrt.YtdWatchBehavior),_.B("design:type",Object)],Zs.prototype,"ytdWatchBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Zs.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Zs.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Zs.prototype,"playerData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zs.prototype,"flexy",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zs.prototype,"roundedInfoPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zs.prototype,"viewTransitionEnabled",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zs.prototype,"smallerChatMinHeight",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zs.prototype,"cinematicTheaterMode",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zs.prototype,"transparentTheaterMode",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zs.prototype,"cinematicFullscreen",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zs.prototype,"useLargerMaxPlayerValue",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zs.prototype,"cinematicFullscreenV2",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zs.prototype,"isDarkTheme",void 0);_.x([_.A(),_.B("design:type",Object)],Zs.prototype,"defaultCollapsePlaylist",void 0);_.x([_.A({selector:_.NG}),_.B("design:type",Object)],Zs.prototype,"theaterValue",void 0);_.x([_.A({selector:_.Ny}),_.B("design:type",Object)],Zs.prototype,"fullscreenValue",void 0);_.x([_.A({selector:_.Yv}),_.B("design:type",Object)],Zs.prototype,"scrollTopValue",void 0);
_.x([_.A({selector:_.Yo}),_.B("design:type",Object)],Zs.prototype,"miniplayerIsActive",void 0);_.x([_.A({selector:function(K){return K.watch.isWatchRetroMode}}),
_.B("design:type",Object)],Zs.prototype,"retroModeReduxValue",void 0);_.x([_.JZ("ytd-player"),_.B("design:type",HTMLElement)],Zs.prototype,"ytdPlayer",void 0);_.x([_.n8("#playlist"),_.B("design:type",HTMLElement)],Zs.prototype,"JSC$20468_ytdPlaylistPanelRenderer",void 0);_.x([_.JZ("ytd-comments"),_.B("design:type",HTMLElement)],Zs.prototype,"ytdComments",void 0);_.x([_.n8("#primary"),_.B("design:type",HTMLElement)],Zs.prototype,"primary",void 0);
_.x([_.n8("#secondary"),_.B("design:type",HTMLElement)],Zs.prototype,"secondary",void 0);_.x([_.n8("#player-container"),_.B("design:type",HTMLElement)],Zs.prototype,"playerContainer",void 0);_.x([_.n8("#cinematics"),_.B("design:type",HTMLElement)],Zs.prototype,"JSC$20468_cinematics",void 0);_.x([_.SP("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zs.prototype,"updateTheaterValue",null);
_.x([_.SP("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zs.prototype,"updateFullscreenValue",null);_.x([_.SP("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zs.prototype,"updateScrollTopValue",null);_.x([_.SP("retroModeReduxValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zs.prototype,"updateRetroModeReduxValue",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Zs.prototype,"cinematicLightTheme",null);Zs=_.x([_.Q({is:"ytd-watch-flexy"})],Zs);_.kf.registerService(_.qUo,Zs);
_.bl();
}catch(e){_._DumpException(e)}
try{
_.hs("nmfa2d");
var Wzy;var QW=function(){var K=_.q.apply(this,arguments)||this;K.hidden=!1;K.errorScreen=null;K.playlistData={};return K};
_.O(QW,_.q);_.V=QW.prototype;_.V.getPlayer=function(){return this.ytdPlayer};
_.V.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:_.Eg(["aa","eocs"])}}};
_.V.onActiveChanged=function(){_.j3().dispatch(_.oIU(this.ytPageBehavior.active))};
_.V.playerDataChanged=function(){var K;(K=this.watchController)==null||K.setPlayerResponse(this.playerData)};
_.V.dataChanged=function(){var K;(K=this.watchController)==null||K.setWatchNextResponse(this.data)};
_.V.sizeChanged=function(){var K,d;(d=(K=this.metadata).resize)==null||d.call(K)};
_.V.attached=function(){this.watchController=new _.rV(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.V.detached=function(){_.kh(this.watchController);this.watchController=void 0};
_.V.getPlayerContainer=function(){return this.playerContainer};
_.V.getElement=function(K){switch(K){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20420_playlistPanel}};
_.V.provideRenderingData=function(K,d){switch(K){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=d;break;case "ERROR_SCREEN":this.errorScreen=d!=null?d:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=d;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=d;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=d;break;case "RICH_METADATA":this.richMetadataRowContainer=d;break;case "CLARIFICATION":this.clarificationData=d;break;case "PLAYLIST":this.playlistData=
d!=null?d:{};break;case "MERCH_SHELF":this.merchShelf=d;break;case "TICKET_SHELF":this.ticketShelf=d;break;case "LIMITED_STATE":this.limitedState=d;break;case "DONATION_SHELF":this.donationShelf=d;break;case "ALERTS":this.alerts=d}};
_.x$.Object.defineProperties(QW.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return!this.hidden&&!!((K=this.data)==null?0:(d=K.contents)==null?0:(f=d.twoColumnWatchNextResults)==null?0:f.conversationBar)}}});
QW.prototype.sizeChanged=QW.prototype.sizeChanged;QW.prototype.dataChanged=QW.prototype.dataChanged;QW.prototype.playerDataChanged=QW.prototype.playerDataChanged;QW.prototype.onActiveChanged=QW.prototype.onActiveChanged;_.x([_.l(_.N$.YtPageBehavior),_.B("design:type",Object)],QW.prototype,"ytPageBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],QW.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],QW.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"playerData",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],QW.prototype,"hidden",void 0);_.x([_.n8("#ytd-player"),_.B("design:type",HTMLElement)],QW.prototype,"ytdPlayer",void 0);_.x([_.n8("#player-container"),_.B("design:type",HTMLElement)],QW.prototype,"playerContainer",void 0);_.x([_.n8("#metadata"),_.B("design:type",Object)],QW.prototype,"metadata",void 0);_.x([_.n8("#playlist"),_.B("design:type",HTMLElement)],QW.prototype,"JSC$20420_playlistPanel",void 0);
_.x([_.A({selector:_.yCi,reflectToAttribute:!0}),_.B("design:type",Object)],QW.prototype,"fixie",void 0);_.x([_.A({selector:_.Sii,reflectToAttribute:!0}),_.B("design:type",Object)],QW.prototype,"singleColumn",void 0);_.x([_.A({selector:function(K){return _.NG(K)&&!_.Ny(K)},
reflectToAttribute:!0}),_.B("design:type",Object)],QW.prototype,"theater",void 0);_.x([_.A({selector:_.Ny,reflectToAttribute:!0}),_.B("design:type",Object)],QW.prototype,"fullscreen",void 0);_.x([_.A({selector:_.tu7}),_.B("design:type",Object)],QW.prototype,"windowSize",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"singleColumnContents",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"errorScreen",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"playlistData",void 0);
_.x([_.A(),_.B("design:type",Object)],QW.prototype,"videoPrimaryInfoRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"videoSecondaryInfoRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"richMetadataRowContainer",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"clarificationData",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"commentsEntryPointHeaderRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"ticketShelf",void 0);
_.x([_.A(),_.B("design:type",Object)],QW.prototype,"merchShelf",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"donationShelf",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"limitedState",void 0);_.x([_.A(),_.B("design:type",Object)],QW.prototype,"alerts",void 0);_.x([_.W("playlistData"),_.B("design:type",Object),_.B("design:paramtypes",[])],QW.prototype,"hasPlaylistData",null);
_.x([_.W("data","hidden"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QW.prototype,"hasChat",null);_.x([_.SP("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QW.prototype,"onActiveChanged",null);_.x([_.SP("playerData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QW.prototype,"playerDataChanged",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QW.prototype,"dataChanged",null);_.x([_.SP("windowSize","singleColumn"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QW.prototype,"sizeChanged",null);
_.C(QW,"ytd-watch-fixie",function(){if(Wzy===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);Wzy=K}K=Wzy;return K},{mode:1});_.kf.registerService(_.rqu,QW);
_.bl();
}catch(e){_._DumpException(e)}
try{
_.hs("xwEKAe");
var VFt=function(K){var d=_.aS();if(d.getFlag(202))d=d.getFlag(201);else{var f;d=(K==null?void 0:(f=K.config)==null?void 0:f.settingOnByDefault)!==void 0?K.config.settingOnByDefault:!_.M("web_shorts_cinematics_disabled_by_default")}return d},SDt=function(K){var d=_.aS();
_.IS(0,201,K);_.IS(0,202,!0);d.save()},yEw=function(K){return(K=_.yYn(K))?_.irp(K):0},nO5=function(K){return K.shorts.isSmallScreenSqueezeback},iaw=function(K){return K.shorts.isPlaybackStarted},cEw=function(K,d,f,H){K=d-K;
f=H-f;return Math.sqrt(K*K+f*f)},uPw=function(K,d){K&&_.eq().resolve(_.pQ).resolveCommand(K,{forceClickLogging:!0,
form:{element:d}})},a0Z=function(K,d,f,H){K=d-K;
f=H-f;return Math.sqrt(K*K+f*f)},I0S=function(K,d){K&&_.eq().resolve(_.pQ).resolveCommand(K,{forceClickLogging:!0,
form:{element:d}})},UAi=function(K){K.unsubscribeFromStore=_.n5(K.storeWithShorts,_.dkE,function(d){K.initOrDisposeActiveModules(d);
!d&&K.storeWithShorts.getState().shorts.isFullscreen&&(_.sy(document.documentElement),K.storeWithShorts.dispatch(_.DkK(!1)))});
K.initOrDisposeActiveModules(_.dkE(K.storeWithShorts.getState()))},RO7=function(K){var d=_.eq().resolve(_.yJ);
d.rootElement=K;UAi(d)},FGU=function(){return _.eq().resolve(_.yJ).dismissedIndices},zOZ=function(K){return _.es({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:K}})},X2w=function(K){return _.es({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:K}})},H8=function(K){return _.es({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:K}})},DC=function(K,d){if(K instanceof DC)this.array_=K.array_;
else{var f;if(f=_.d2(K))a:{for(var H=f=0;H<K.length;H++){if(!_.d2(K[H])||f>0&&K[H].length!=f){f=!1;break a}for(var D=0;D<K[H].length;D++)if(typeof K[H][D]!=="number"){f=!1;break a}f==0&&(f=K[H].length)}f=f!=0}if(f)this.array_=_.ep(K);else if(K instanceof _.n0)this.array_=vOw(K.height,K.width);else if(typeof K==="number"&&typeof d==="number"&&K>0&&d>0)this.array_=vOw(K,d);else throw Error("Xl");}this.size_=new _.n0(this.array_[0].length,this.array_.length)},MFU=function(K,d,f){for(var H=0;H<K.getSize().height;H++)for(var D=
0;D<K.getSize().width;D++)d.call(f,K.array_[H][D],H,D,K)},Pv5=function(K,d){var f=new DC(K.getSize());
MFU(K,function(H,D,S){f.array_[D][S]=d.call(void 0,H,D,S,K)});
return f},vOw=function(K,d){for(var f=[],H=0;H<K;H++){f[H]=[];
for(var D=0;D<d;D++)f[H][D]=0}return f};
DC.prototype.add=function(K){if(!_.bct(this.size_,K.getSize()))throw Error("Yl");return Pv5(this,function(d,f,H){return d+K.array_[f][H]})};
DC.prototype.equals=function(K,d){if(this.size_.width!=K.size_.width||this.size_.height!=K.size_.height)return!1;d=d||0;for(var f=0;f<this.size_.height;f++)for(var H=0;H<this.size_.width;H++)if(!_.hzc(this.array_[f][H],K.array_[f][H],d))return!1;return!0};
DC.prototype.getSize=function(){return this.size_};
var VE=function(K,d,f){return d>=0&&d<K.size_.height&&f>=0&&f<K.size_.width?K.array_[d][f]:null};
DC.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var ST=function(K,d,f,H){if(!(d>=0&&d<K.size_.height&&f>=0&&f<K.size_.width))throw Error("Zl`"+d+"`"+f+"`"+K.size_.height+"`"+K.size_.width);K.array_[d][f]=H};
DC.prototype.multiply=function(K){if(K instanceof DC){if(this.size_.width!=K.getSize().height)throw Error("$l");return gOz(this,K)}if(typeof K==="number")return OaE(this,K);throw Error("am");};
var gOz=function(K,d){var f=new DC(K.size_.height,d.getSize().width);MFU(f,function(H,D,S){for(var n=H=0;n<this.size_.width;n++)H+=VE(this,D,n)*VE(d,n,S);ST(f,D,S,H)},K);
return f},OaE=function(K,d){return Pv5(K,function(f){return f*d})};var NS5=new _.Z("inlineSurveyRenderer");var YDK=new _.Z("interstitialViewModel");var tFU=new _.Z("reelNavigateCommand");var oOU=new _.Z("reelNonVideoContentDismissalCommand");var $AE=new _.Z("showReelsCommentsOverlayCommand");var EOi=new _.Z("shortsSuggestedActionViewModel");var hOE=new _.Z("videoInteractionPopUpRenderer");var bat;var mAt;var l0i;var yE=function(){var K=_.q.apply(this,arguments)||this;K.ctaVisualElement=null;K.currentCsn=null;return K};
_.O(yE,_.q);_.V=yE.prototype;_.V.onDataChanged=function(){this.maybeLogShows()};
_.V.computeButtonShape=function(){var K=this;if(this.data)return{buttonText:_.qQ(this.data.text),state:"active",onTap:function(){K.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.V.maybeCreateCtaVe=function(){var K;if((K=this.data)!=null&&K.badgeInteractionLogging){var d;if(K=(d=this.data.badgeInteractionLogging)==null?void 0:d.trackingParams)this.ctaVisualElement=_.RG(K)}};
_.V.maybeLogClicks=function(){this.currentCsn=_.te(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.rN(this.currentCsn,this.ctaVisualElement)};
_.V.maybeLogShows=function(){this.currentCsn=_.te(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Ay(this.currentCsn,[this.ctaVisualElement])};
_.V.onTap=function(){var K;if((K=this.data)!=null&&K.onClickCommand){var d;this.ytComponentBehavior.resolveCommand((d=this.data)==null?void 0:d.onClickCommand);this.maybeLogClicks()}};
yE.prototype.onDataChanged=yE.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],yE.prototype,"ytComponentBehavior",void 0);_.x([_.A({}),_.B("design:type",Object)],yE.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yE.prototype,"onDataChanged",null);
yE=_.x([_.Q({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],yE);
_.C(yE,"ytd-shopping-overlay-badge-renderer",function(){if(l0i!==void 0)return l0i;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return l0i=K},{mode:1});_.sP(_.h_9,"reel-sound-metadata-view-model",{props:{data:_.JJ,overlayDensity:_.JJ}});_.sP(_.XKw,"player-disclosure-view-model",{props:{data:_.rs}});_.sP(_.f0B,"pivot-button-view-model",{props:{data:_.JJ,className:_.JJ}});_.sP(_.Ha9,"reel-action-bar-view-model",{props:{data:_.rs,buttonShapeOverrideables:_.rs}});_.sP(_.C8(function(K){function d(){var FX,NJ,$z,hN,bo=(NJ=_.P((FX=J())==null?void 0:FX.command,_.aa))==null?void 0:($z=NJ.item)==null?void 0:(hN=$z.notificationTextRenderer)==null?void 0:hN.successResponseText;if(bo)_.ev(H.value,"yt-open-popup-action",[_.xo(bo),H.value]);else if(L())uPw(L(),N.value);else{var xz;uPw((xz=J())==null?void 0:xz.command,N.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var f=K.data;var H=_.Co();K=_.y(_.cC("0px",void 0,"O1N7Ce"));var D=K.next().value,S=K.next().value;K=_.y(_.cC("0px",void 0,"tTDBdb"));var n=K.next().value,u=K.next().value;K=_.y(_.cC(0,void 0,"fh8Zkc"));var a=K.next().value,R=K.next().value;K=_.y(_.cC(0,void 0,"CUjqGd"));var F=K.next().value,z=K.next().value,v=function(){var FX;if(((FX=_.dP())==null?void 0:FX.getPlayerState())!==-1){H.value.style.display="inherit";var NJ;(NJ=_.dP())==null||NJ.removeEventListener("onStateChange",v)}g()},g=function(){var FX=
document.querySelector("video");
if(FX){R(FX.getBoundingClientRect().width);z(FX.getBoundingClientRect().height);var NJ;S((FX==null?void 0:(NJ=FX.style)==null?void 0:NJ.left)||"0px");var $z;u((FX==null?void 0:($z=FX.style)==null?void 0:$z.top)||"0px")}};
_.ol(function(){var FX,NJ,$z;if(((FX=_.dP())==null?void 0:FX.getPlayerState())===-1&&Math.round((($z=(NJ=_.dP())==null?void 0:NJ.getVideoAspectRatio())!=null?$z:0)*100)!==Math.round(a()/F()*100)){H.value.style.display="none";var hN,bo;z(a()/((bo=(hN=_.dP())==null?void 0:hN.getVideoAspectRatio())!=null?bo:1))}},"VB5m5");
_.Nk(function(){var FX;(FX=_.dP())==null||FX.addEventListener("onStateChange",v);window.addEventListener("resize",g);g();var NJ,$z,hN;if((hN=(NJ=f())==null?void 0:($z=NJ.regions)==null?void 0:$z[0])==null||!hN.transformationMatrix)throw Error("em");var bo;if((bo=f())==null?0:bo.trackingParams){var xz;_.cv().graftServerVe((xz=f().trackingParams)!=null?xz:"")}_.$F(function(){var qJ;(qJ=_.dP())==null||qJ.removeEventListener("onStateChange",v);window.removeEventListener("resize",g)})});
var N=_.Co(),h=_.y(_.cC(!1,void 0,"TPsTce"));K=h.next().value;var m=h.next().value,T=_.y(_.cC(!1,void 0,"Uz6CHf"));h=T.next().value;var r=T.next().value,J=function(){var FX;return _.P((FX=f())==null?void 0:FX.popUp,hOE)},L=function(){var FX;
return(FX=f())==null?void 0:FX.command},fB=function(){return _.P(L(),_.iX)!==void 0};
T=_.cp(function(){d();return!1});
var w={},yO={};return _.U("yt-player-overlay-video-interactions",{el:H},_.U("svg",{"on:mouseover":_.cp(function(){fB()&&m(!0);r(!0);return!1}),
"on:mouseout":_.cp(function(){m(!1);r(!1);return!1}),
"on:keydown":_.cp(function(FX){FX.key==="Enter"&&d();return!1}),
"on:focus":_.cp(function(){fB()&&m(!0);return!1}),
"on:blur":_.cp(function(){fB()&&m(!1);return!1}),
el:N,tabindex:0,"aria-label":function(){var FX;return(FX=f())==null?void 0:FX.a11yString},
id:"player-overlay-video-interaction-svg",class:_.SC("yt-player-overlay-video-interactions__interactions-svg",(w["yt-player-overlay-video-interactions__interactions-svg-hover"]=K,w),(yO["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=h,yO)),role:"button",style:function(){var FX,NJ,$z,hN=($z=(FX=f())==null?void 0:(NJ=FX.regions)==null?void 0:NJ[0].transformationMatrix)!=null?$z:[];FX=a();NJ=F();$z=[];for(var bo=0,xz=-1;bo<hN.length;bo++)bo%3===0&&(xz++,$z[xz]=[]),$z[xz].push(hN[bo]);
hN=new DC($z);$z=new DC([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);$z=hN.multiply($z);hN=new DC([[0,0],[0,0],[0,0],[0,0]]);for(bo=0;bo<$z.getSize().width;bo++){xz=VE($z,0,bo);var qJ=VE($z,1,bo);if(xz===null||qJ===null)throw Error("dm`"+(bo+1).toString());ST(hN,bo,0,xz*FX);ST(hN,bo,1,qJ*NJ)}FX=VE(hN,0,0);bo=VE(hN,1,0);NJ=VE(hN,0,1);xz=VE(hN,1,1);if(FX===null||bo===null||NJ===null||xz===null)throw Error("bm");$z=cEw(FX,bo,NJ,xz);qJ=VE(hN,3,0);hN=VE(hN,3,1);if(qJ===null||hN===null)throw Error("cm");hN=cEw(FX,
qJ,NJ,hN);xz=(Number((xz*-1).toFixed(2))-Number((NJ*-1).toFixed(2)))/(Number(bo.toFixed(2))-Number(FX.toFixed(2)));qJ=Math.atan(xz)*180/Math.PI;bo=xz===Number.POSITIVE_INFINITY?-90:xz===Number.NEGATIVE_INFINITY?90:Object.is(xz,-0)?180:xz===0?0:xz>0?qJ*-1:FX<bo?qJ*-1:Math.abs(qJ)+180;return"left:calc("+FX+"px + "+D()+"); top:calc("+(NJ+"px + "+n()+"); width:")+($z+"px; height:")+(hN+"px; transform:rotate(")+(bo+"deg);")},
"on:click":T}))},"Bi"),"yt-player-overlay-video-interactions",{props:{data:_.rs}});_.sP(_.OEw,"yt-reel-metapanel-view-model",{props:{data:_.rs,overlayDensity:_.rs}});var WGP=_.C8(function(K){var d=K.children;var f=K.region;var H=_.Co();K=_.y(_.cC("0px",void 0,"H14H5c"));var D=K.next().value,S=K.next().value;K=_.y(_.cC("0px",void 0,"Mn8Uvf"));var n=K.next().value,u=K.next().value;K=_.y(_.cC(0,void 0,"QQCIqc"));var a=K.next().value,R=K.next().value;K=_.y(_.cC(0,void 0,"HyEvh"));var F=K.next().value,z=K.next().value,v=function(){var m;if(((m=_.dP())==null?void 0:m.getPlayerState())!==-1){H.value.style.display="inherit";var T;(T=_.dP())==null||T.removeEventListener("onStateChange",
v)}g()},g=function(){var m=document.querySelector("video");
if(m){R(m.getBoundingClientRect().width);z(m.getBoundingClientRect().height);var T;S((m==null?void 0:(T=m.style)==null?void 0:T.left)||"0px");var r;u((m==null?void 0:(r=m.style)==null?void 0:r.top)||"0px")}};
_.ol(function(){var m,T,r;if(((m=_.dP())==null?void 0:m.getPlayerState())===-1&&Math.round(((r=(T=_.dP())==null?void 0:T.getVideoAspectRatio())!=null?r:0)*100)!==Math.round(a()/F()*100)){H.value.style.display="none";var J,L;z(a()/((L=(J=_.dP())==null?void 0:J.getVideoAspectRatio())!=null?L:1))}},"DYkOCf");
var N=function(){g()},h;
_.Nk(function(){g();var m;if(!(f==null?0:(m=f())==null?0:m.transformationMatrix))throw Error("em");var T;(T=_.dP())==null||T.addEventListener("onStateChange",v);window.ResizeObserver?(h=new ResizeObserver(_.iR(N,17)),h.observe(H.value)):window.addEventListener("resize",g);_.$F(function(){var r;(r=_.dP())==null||r.removeEventListener("onStateChange",v);h?h.disconnect():window.removeEventListener("resize",g)})});
return _.U("yt-overlay-sticker",{el:H,style:function(){var m,T,r=(T=f==null?void 0:(m=f())==null?void 0:m.transformationMatrix)!=null?T:[];m=a();T=F();for(var J=[],L=0,fB=-1;L<r.length;L++)L%3===0&&(fB++,J[fB]=[]),J[fB].push(r[L]);r=new DC(J);J=new DC([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);J=r.multiply(J);r=new DC([[0,0],[0,0],[0,0],[0,0]]);for(L=0;L<J.getSize().width;L++){fB=VE(J,0,L);var w=VE(J,1,L);if(fB===null||w===null)throw Error("dm`"+(L+1).toString());ST(r,L,0,fB*m);ST(r,L,1,w*T)}m=VE(r,0,0);L=
VE(r,1,0);T=VE(r,0,1);fB=VE(r,1,1);if(m===null||L===null||T===null||fB===null)throw Error("bm");J=a0Z(m,L,T,fB);w=VE(r,3,0);r=VE(r,3,1);if(w===null||r===null)throw Error("cm");r=a0Z(m,w,T,r);fB=(Number((fB*-1).toFixed(2))-Number((T*-1).toFixed(2)))/(Number(L.toFixed(2))-Number(m.toFixed(2)));w=Math.atan(fB)*180/Math.PI;L=fB===Number.POSITIVE_INFINITY?-90:fB===Number.NEGATIVE_INFINITY?90:Object.is(fB,-0)?180:fB===0?0:fB>0?w*-1:m<L?w*-1:Math.abs(w)+180;return"left:calc("+m+"px + "+D()+"); top:calc("+
(T+"px + "+n()+"); width:")+(J+"px; height:")+(r+"px; transform:rotate(")+(L+"deg);")},
class:"ytOverlayStickerHost"},d)},"Ci");_.sP(_.C8(function(K){function d(){var g,N,h,m,T=(N=_.P((g=a())==null?void 0:g.command,_.aa))==null?void 0:(h=N.item)==null?void 0:(m=h.notificationTextRenderer)==null?void 0:m.successResponseText;if(T)_.ev(H.value,"yt-open-popup-action",[_.xo(T),H.value]);else if(R())I0S(R(),H.value);else{var r;I0S((r=a())==null?void 0:r.command,H.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var f=K.data;_.Nk(function(){var g;if((g=f())==null?0:g.trackingParams){var N;_.cv().graftServerVe((N=f().trackingParams)!=null?N:"")}});
var H=_.Co(),D=_.y(_.cC(!1,void 0,"Gjm8Mb"));K=D.next().value;var S=D.next().value,n=_.y(_.cC(!1,void 0,"JN7Pdb"));D=n.next().value;var u=n.next().value,a=function(){var g;return _.P((g=f())==null?void 0:g.popUp,hOE)},R=function(){var g;
return(g=f())==null?void 0:g.command},F=function(){return _.P(R(),_.iX)!==void 0};
n=_.cp(function(){d();return!1});
var z={},v={};return _.U("yt-player-overlay-interaction",null,_.U(WGP,{region:function(){var g,N;return(g=f())==null?void 0:(N=g.regions)==null?void 0:N[0]}},_.U("svg",{"on:mouseover":_.cp(function(){F()&&S(!0);
u(!0);return!1}),
"on:mouseout":_.cp(function(){S(!1);u(!1);return!1}),
"on:keydown":_.cp(function(g){g.key==="Enter"&&d();return!1}),
"on:focus":_.cp(function(){F()&&S(!0);return!1}),
"on:blur":_.cp(function(){F()&&S(!1);return!1}),
el:H,tabindex:0,"aria-label":function(){var g;return(g=f())==null?void 0:g.a11yString},
id:"player-overlay-video-interaction-svg",class:_.SC("ytPlayerOverlayInteractionInteractionsSvg",(z.ytPlayerOverlayInteractionInteractionsSvgHover=K,z),(v.ytPlayerOverlayInteractionInteractionsSvgHideOutline=D,v)),role:"button","on:click":n})))},"Di"),"yt-player-overlay-interaction",{props:{data:_.rs}});var nR=function(){var K=_.q.apply(this,arguments)||this;K.showScrubber=!1;K.isWatchWhileMode=!1;K.enableRemixButton=_.M("web_enable_shorts_remix_handoff_ep");K.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");K.enableNewStickers=_.M("use_shorts_sticker_overlay_web");K.anchoredPanelActive=!1;K.enableLivingroomLayout=_.M("reels_enable_livingroom_layout");K.enablePlayerMetadataContainer=_.M("reels_web_enable_metadata_container");K.enableSqueezebackPanels=_.M("web_shorts_enable_squeezeback_panels");
K.isSqueezebackActive=!1;K.smallScreenSqueezeback=!1;K.isPlayerStarted=!1;K.overlayDensity=0;K.isOverlay=!1;K.isImmersive=!1;K.isImmersiveHorizontal=!1;K.isFullscreen=!1;K.onWindowResized=function(){var d;K.set("isImmersive",((d=window.getComputedStyle(K.hostElement))==null?void 0:d.getPropertyValue("--immersive-mode-on"))==="1");K.set("isImmersiveHorizontal",K.isImmersive&&K.enableLivingroomLayout&&!K.isWatchWhileMode)};
return K};
_.O(nR,_.q);_.V=nR.prototype;_.V.updateIsOverlay=function(K){this.isOverlay=K.detail.value};
_.V.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.M("web_enable_flexible_overlay")||_.M("web_enable_format_first")||_.M("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.V.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.V.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.V.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.V.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.V.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.V.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.V.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.fy("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.fy("reels_action_justified_content")||"flex-start")};
_.V.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.V.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.iB("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.iB("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.iB("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.iB("SHARE_LABEL",
void 0,"Share")}}});_.M("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.iB("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()};
_.V.setEmptyOverlayMetadata=function(){_.M("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}))};
_.x$.Object.defineProperties(nR.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.infoPanel)}}});
nR.prototype.onIsActiveChanged=nR.prototype.onIsActiveChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],nR.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],nR.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],nR.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],nR.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],nR.prototype,"isActive",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],nR.prototype,"hidden",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],nR.prototype,"useShortsIcon",void 0);_.x([_.A({value:"left"}),_.B("design:type",String)],nR.prototype,"buttonTooltipPosition",void 0);
_.x([_.A({value:_.M("reels_enable_livingroom_layout")?"top":"left"}),_.B("design:type",String)],nR.prototype,"likeButtonTooltipPosition",void 0);_.x([_.A({value:"none"}),_.B("design:type",String)],nR.prototype,"textTransform",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"showScrubber",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"isWatchWhileMode",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data.infoPanel"),_.B("design:type",Object),_.B("design:paramtypes",[])],nR.prototype,"hasInfoPanel",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"enableRemixButton",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"enableAnchoredPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"enableNewStickers",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"anchoredPanelActive",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"enableLivingroomLayout",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],nR.prototype,"enablePlayerMetadataContainer",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"enableSqueezebackPanels",void 0);
_.x([_.A({selector:_.vOz,reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"isSqueezebackActive",void 0);_.x([_.A({selector:nO5,reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"smallScreenSqueezeback",void 0);_.x([_.A({selector:iaw}),_.B("design:type",Object)],nR.prototype,"isPlayerStarted",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"overlayDensity",void 0);_.x([_.A(),_.B("design:type",Object)],nR.prototype,"isOverlay",void 0);
_.x([_.A({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.B("design:type",Boolean)],nR.prototype,"isShortsOverlay",void 0);_.x([_.A(),_.B("design:type",Object)],nR.prototype,"isImmersive",void 0);_.x([_.A(),_.B("design:type",Object)],nR.prototype,"isImmersiveHorizontal",void 0);_.x([_.A({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.B("design:type",Boolean)],nR.prototype,"isShortsImmersive",void 0);
_.x([_.A({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.B("design:type",Object)],nR.prototype,"buttonOverride",void 0);_.x([_.A({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.B("design:type",Object)],nR.prototype,"actionBarButtonOverride",void 0);_.x([_.A({selector:_.Dl,reflectToAttribute:!0}),_.B("design:type",Object)],nR.prototype,"isFullscreen",void 0);
_.x([_.SP("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nR.prototype,"onIsActiveChanged",null);nR=_.x([_.Q({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],nR);
_.C(nR,"ytd-reel-player-overlay-renderer",function(){if(mAt!==void 0)return mAt;var K=document.createElement("template");_.Y(K,'\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="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" 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">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[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="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return mAt=K},{mode:1});var GbP;var c8=function(){var K=_.q.apply(this,arguments)||this;K.videoDuration=0;K.playedTime=0;K.isActive=!1;K.JSC$19682_playerEvents=new Map;return K};
_.O(c8,_.q);_.V=c8.prototype;_.V.created=function(){this.JSC$19682_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19682_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.V.attached=function(){this.getPlayerAndInitializeListeners()};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19682_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Dm(this,this.onPageChanged))};
_.V.getPlayerAndInitializeListeners=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return d=_.xP(),d?_.I(f,d.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Dm(K,K.onPageChanged)),f.jumpTo(0));K.player=f.yieldResult;K.initializePlayerListeners();_.iQ(f)})};
_.V.onPageChanged=function(K){var d=this;return _.c(function(f){if(f.nextAddress==1)return K.detail.newPageType!=="ytd-shorts"?f.return():_.I(f,_.LK().getPlayerPromise(),2);d.player=f.yieldResult;d.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Dm(d,d.onPageChanged));_.iQ(f)})};
_.V.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19682_playerEvents)};
_.V.onVideoDataChange=function(K){var d=this;return _.c(function(f){if(!d.player||K.type!=="newdata")return f.return();d.videoDuration=_.M("web_shorts_use_progress_state_for_gapless")?d.player.getProgressState(K.playertype).seekableEnd:d.player.getDuration(K.playertype);d.playedTime=0;_.iQ(f)})};
_.V.onVideoProgress=function(K){var d=this,f,H;return _.c(function(D){if(!d.player)return D.return();f=d.player.getPresentingPlayerType();H=d.player.getPlayerState();d.videoDuration=_.M("web_shorts_use_progress_state_for_gapless")?d.player.getProgressState(f).seekableEnd:d.player.getDuration(f);d.playedTime=H===0?d.videoDuration:K;_.iQ(D)})};
_.V.getPercentPlayed=function(K,d){return K?_.Oa(d/K,0,1):0};
_.x$.Object.defineProperties(c8.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 K="";return K=this.videoDuration&&this.playedTime?K+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):K+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],c8.prototype,"componentBehavior",void 0);_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],c8.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],c8.prototype,"player",void 0);_.x([_.A(),_.B("design:type",Object)],c8.prototype,"videoDuration",void 0);_.x([_.A(),_.B("design:type",Object)],c8.prototype,"playedTime",void 0);_.x([_.A(),_.B("design:type",Object)],c8.prototype,"isActive",void 0);
_.x([_.W("videoDuration","playedTime"),_.B("design:type",Number),_.B("design:paramtypes",[])],c8.prototype,"percentPlayed",null);_.x([_.W("videoDuration","playedTime"),_.B("design:type",Object),_.B("design:paramtypes",[])],c8.prototype,"percentPlayedStyle",null);_.x([_.W("videoDuration","isActive"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],c8.prototype,"hideProgressBar",null);
_.C(c8,"ytd-progress-bar-line",function(){if(GbP===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);GbP=K}K=GbP;return K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var AEl;_.fK(_.t6X,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var ut=function(){var K=_.q.apply(this,arguments)||this;K.playerState=null;K.isMuted=!1;K.shortsModernControlsEnabled=_.M("web_shorts_modern_controls");K.volumeControlsOrientationState="vertical_down";K.overlayDensity=0;K.JSC$19685_playerEvents=new Map;return K};
_.O(ut,_.q);_.V=ut.prototype;_.V.created=function(){this.JSC$19685_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19685_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.V.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.vp(28662);this.playPauseButtonClientVE=_.vp(36842);this.fullscreenButtonToggleOffClientVE=_.vp(222256);this.fullscreenButtonToggleOnClientVE=_.vp(222257);var K=_.te(),d=_.YZ();K&&d&&(_.M("combine_ve_grafts")?(_.p2(_.cv(),this.muteButtonClientVE,d),_.p2(_.cv(),this.playPauseButtonClientVE,d)):_.WG(K,d,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19685_playerEvents),this.player=null)};
_.V.getPlayerAndInitializeListeners=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return d=_.xP(),d?_.I(f,d.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Dm(K,K.onPageChanged)),f.jumpTo(0));K.player=f.yieldResult;K.initializePlayerListeners();_.iQ(f)})};
_.V.onPageChanged=function(K){var d=this;return _.c(function(f){if(f.nextAddress==1)return K.detail.newPageType!=="ytd-shorts"?f.return():_.I(f,_.LK().getPlayerPromise(),2);d.player=f.yieldResult;d.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Dm(d,d.onPageChanged));_.iQ(f)})};
_.V.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19685_playerEvents)};
_.V.onPlayerStateChange=function(K){this.playerState=K};
_.V.onPlayerVolumeChange=function(K){this.isMuted=K.muted};
_.V.onPlayPauseButtonClick=function(){var K=this,d,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,_.LK().getPlayerPromise(),2);d=H.yieldResult;(f=_.te())&&K.playPauseButtonClientVE&&_.rN(f,K.playPauseButtonClientVE);d.getPlayerState()!==1?d.playVideo():d.pauseVideo();_.iQ(H)})};
_.V.computePlayPauseIcon=function(K){return K===2||K===-1||K===5?_.M("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.M("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.M("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.V.computeFullscreenLabel=function(K){return K?_.iB("FULLSCREEN_EXIT_LABEL"):_.iB("FULLSCREEN_ENTER_LABEL")};
_.V.computePlayPauseLabel=function(K){return K===1||K===3?_.iB("PLAYER_LABEL_PAUSE"):_.iB("PLAYER_LABEL_PLAY")};
_.V.onMuteButtonClick=function(){var K=this,d,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,_.LK().getPlayerPromise(),2);d=H.yieldResult;(f=_.te())&&K.muteButtonClientVE&&_.rN(f,K.muteButtonClientVE);d.isMuted()?d.unMute(!0):d.mute(!0);_.iQ(H)})};
_.V.computeMuteIcon=function(K){return K?"miniplayer:volume-off":"miniplayer:volume-up"};
_.V.computeMuteLabel=function(K){return K?_.iB("PLAYER_LABEL_UNMUTE"):_.iB("PLAYER_LABEL_MUTE")};
_.V.onFullscreenButtonClick=function(){var K=_.te();K&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.rN(K,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.rN(K,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.Vq5()};
_.x$.Object.defineProperties(ut.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var K=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(){K.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
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:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.M("web_shorts_modern_controls")?"player_full_exit_delhi_player":_.M("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.M("web_shorts_modern_controls")?"player_full_enter_delhi_player":_.M("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ut.prototype,"componentBehavior",void 0);_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],ut.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],ut.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ut.prototype,"player",void 0);_.x([_.A(),_.B("design:type",Object)],ut.prototype,"playerState",void 0);_.x([_.A(),_.B("design:type",Object)],ut.prototype,"isMuted",void 0);
_.x([_.A({computed:"computePlayPauseIcon(playerState)"}),_.B("design:type",String)],ut.prototype,"playPauseIcon",void 0);_.x([_.A({computed:"computeMuteIcon(isMuted)"}),_.B("design:type",String)],ut.prototype,"muteIcon",void 0);_.x([_.A({selector:_.Dl}),_.B("design:type",Boolean)],ut.prototype,"isFullscreen",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ut.prototype,"shortsModernControlsEnabled",void 0);
_.x([_.A(),_.B("design:type",Object)],ut.prototype,"volumeControlsOrientationState",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ut.prototype,"overlayDensity",void 0);_.x([_.W("playerState"),_.B("design:type",Object),_.B("design:paramtypes",[])],ut.prototype,"playPauseButtonData",null);_.x([_.W("isFullscreen"),_.B("design:type",Object),_.B("design:paramtypes",[])],ut.prototype,"fullscreenButtonData",null);
_.x([_.W("isFullscreen"),_.B("design:type",String),_.B("design:paramtypes",[])],ut.prototype,"fullscreenIcon",null);
_.C(ut,"ytd-shorts-player-controls",function(){if(AEl===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);AEl=K}K=AEl;return K},{mode:1});var TSZ;_.sP(_.Puf,"yt-interstitial-view-model",{props:{data:_.rs}});var rEt=_.C8(function(K){var d=K.data;return _.U("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.U("h1",{class:"reelWatchBreakViewModelHostTitle"},_.U(_.ji,{text:function(){return d().title}})),_.U("h2",{class:"reelWatchBreakViewModelHostBody"},_.U(_.ji,{text:function(){return d().body},
isOverlay:!0})),_.U(_.z1,{data:function(){return d().buttons}},{buttonViewModel:function(f,H){return _.U("div",{class:function(){return H()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.U(_.oY,{data:f.data}))}}))},"Ei");
rEt.idomCompat=!0;_.sP(rEt,"reel-watch-break-view-model",{props:{data:_.rs}});var ay=function(){return _.q.apply(this,arguments)||this};
_.O(ay,_.q);ay.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}}};
_.x$.Object.defineProperties(ay.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var K;return!!_.P((K=this.data)==null?void 0:K.renderer,NS5)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var K;return!!_.P((K=this.data)==null?void 0:K.renderer,YDK)}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ay.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],ay.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ay.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data.renderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ay.prototype,"isSurvey",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.renderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ay.prototype,"isInterstitialViewModel",null);ay=_.x([_.Q({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],ay);
_.C(ay,"ytd-reel-non-video-content-renderer",function(){if(TSZ!==void 0)return TSZ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
return TSZ=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var qDt;_.sP(_.z5w,"desktop-shorts-player-controls",{});var Iy=function(){var K=_.q.apply(this,arguments)||this;K.isPlayerPaused=!1;K.isPlayerStarted=!1;K.showPlayerControls=!1;K.showScrubber=!1;K.autoHideJobId=0;K.modern=_.M("web_button_rework");K.overlayType=_.fy("web_shorts_expanded_overlay_type");K.panelData=void 0;K.isWatchWhileMode=!1;K.hasError=!1;K.panelShowDelayMs=1;K.scrubberComponent={};K.useStamper=_.M("web_shorts_enable_title_deflation");K.isFullscreen=!1;K.shouldHideOverlay=!1;K.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");
K.enablePersistentAnchoredPanel=_.M("desktop_shorts_v2_persistent_anchored_panel");K.hideWatchWhilePanel=_.M("web_shorts_hide_watch_while_panel");K.isPersistentPanelActive=!1;K.anchoredPanelActive=!1;K.isShortsPipActive=!1;K.smallScreenSqueezeback=!1;K.enableFlexibleOverlay=_.M("web_enable_flexible_overlay");K.enableRemixButton=_.M("web_enable_shorts_remix_handoff_ep");K.overlayDensity=0;K.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
K.onWindowResized=function(){_.mx(K,"calculateOverlayDensity",function(){K.calculateOverlayDensity()},100)};
return K};
_.O(Iy,_.q);_.V=Iy.prototype;_.V.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.V.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.V.shouldRenderOverlayControl=function(K){return!this.useStamper&&this.isVideoContent(K)};
_.V.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var K=_.eq().resolve(_.XM);this.isWatchWhileMode&&(_.M("web_enable_shorts_new_carousel")?_.oc.addJob(function(){K.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):K.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.V.handleShowReelsCommentsOverlayCommand=function(K){K=_.P(K,$AE);this.isActive&&(K==null?0:K.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))};
_.V.updateEngagementPanelVisibility=function(K,d){K&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:d?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:K}})};
_.V.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.V.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.eq().resolve(_.yJ).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.V.handleWatchWhilePanelScrimClick=function(){var K=_.eq().resolve(_.XM);this.activeWatchWhilePanel&&(K.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.V.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.V.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.M("web_enable_shorts_new_carousel")?0:void 0}}};
_.V.handlePlayerClick=function(K){var d=this,f,H;if((H=(f=window).matchMedia)!=null&&H.call(f,"(any-pointer: coarse)").matches||!K)this.showPlayerControls=!0,_.oc.cancelJob(this.autoHideJobId),this.autoHideJobId=_.va(_.oc,function(){d.showPlayerControls=!1},4E3)};
_.V.isFirstReel=function(){return this.index===0};
_.V.handleMouseenter=function(){_.oc.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.V.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.V.handleScrubberEnter=function(){this.showScrubber=!0};
_.V.handleScrubberLeave=function(){this.showScrubber=!1};
_.V.maybeLogNonDefaultAspectRatio=function(){var K;(K=this.data)!=null&&K.thumbnail&&this.isActive&&.5625!==yEw(this.data.thumbnail)&&_.GmO("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.V.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var K=document.querySelector("#shorts-container");if(K){K=K.offsetWidth/2-this.playerContainer.offsetWidth/2;K=K>=368?1:K>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&K===1&&(K=0);this.isPersistentPanelActive&&(K=0);window.innerWidth<=599&&(K=2);this.overlayDensity=K;var d;(d=this.onOverlayDensityChanged)==null||d.call(this,this.index,this.overlayDensity)}}};
_.V.onOverlayDensityChange=function(){var K;(K=this.onOverlayDensityChanged)==null||K.call(this,this.index,this.overlayDensity);(K=_.E(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&K.set("overlayDensity",this.overlayDensity);if(K=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))K.overlayDensity=this.overlayDensity};
_.V.isVideoContent=function(K){_.eq().resolve(_.yJ);return!!_.P(K,_.IM)};
_.V.isNonVideoContent=function(K){_.eq().resolve(_.yJ);return!!_.P(K,_.NV)};
_.V.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.x$.Object.defineProperties(Iy.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var K,d;return _.M("web_enable_format_first")||((K=this.data)==null?void 0:K.adsOverlay)&&_.M("web_enable_format_first_ads_only")||((d=this.data)==null?void 0:d.reelPlayerOverlayRenderer)&&_.M("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var K;return!this.isActive||!this.isPlayerStarted||(K=this.data)!=null&&K.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var K;if(this.useStamper&&((K=this.data)==null?0:K.command)&&this.isVideoContent(this.data.command)){var d,f;if(((d=this.data)==null?0:d.adsOverlay)&&Object.keys((f=this.data)==null?void 0:f.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var H,D;if(((H=this.data)==null?0:H.reelPlayerOverlayRenderer)&&Object.keys((D=this.data)==null?void 0:D.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Iy.prototype.onOverlayDensityChange=Iy.prototype.onOverlayDensityChange;Iy.prototype.calculateOverlayDensity=Iy.prototype.calculateOverlayDensity;Iy.prototype.maybeLogNonDefaultAspectRatio=Iy.prototype.maybeLogNonDefaultAspectRatio;Iy.prototype.onEngagementPanelsChanged=Iy.prototype.onEngagementPanelsChanged;Iy.prototype.onScrubberDataChange=Iy.prototype.onScrubberDataChange;Iy.prototype.updateShouldHideOverlay=Iy.prototype.updateShouldHideOverlay;
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Iy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Iy.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Iy.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Iy.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Number)],Iy.prototype,"index",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Iy.prototype,"isActive",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Iy.prototype,"isHiddenInDom",void 0);_.x([_.A(),_.B("design:type",Object)],Iy.prototype,"isPlayerPaused",void 0);_.x([_.A({selector:iaw}),_.B("design:type",Object)],Iy.prototype,"isPlayerStarted",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"showPlayerControls",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"showScrubber",void 0);_.x([_.A(),_.B("design:type",Object)],Iy.prototype,"autoHideJobId",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"modern",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"overlayType",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Iy.prototype,"ytdReduxBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Iy.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Iy.prototype,"watchWhileEngagementPanels",void 0);_.x([_.A(),_.B("design:type",Object)],Iy.prototype,"panelData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"isWatchWhileMode",void 0);_.x([_.A(),_.B("design:type",String)],Iy.prototype,"activeWatchWhilePanel",void 0);
_.x([_.A(),_.B("design:type",Object)],Iy.prototype,"hasError",void 0);_.x([_.A(),_.B("design:type",Object)],Iy.prototype,"panelShowDelayMs",void 0);_.x([_.A(),_.B("design:type",Object)],Iy.prototype,"scrubberComponent",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"useStamper",void 0);_.x([_.A({selector:_.Dl,reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"isFullscreen",void 0);
_.x([_.A(),_.B("design:type",Object)],Iy.prototype,"shouldHideOverlay",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"enableAnchoredPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"enablePersistentAnchoredPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"hideWatchWhilePanel",void 0);
_.x([_.A({selector:_.vOz,reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"isPersistentPanelActive",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"anchoredPanelActive",void 0);_.x([_.A({selector:_.Vb,reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"isShortsPipActive",void 0);_.x([_.A({selector:nO5,reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"smallScreenSqueezeback",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Iy.prototype,"enableFormatFirst",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"enableFlexibleOverlay",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"enableRemixButton",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Iy.prototype,"overlayDensity",void 0);
_.x([_.A(),_.B("design:type",Function)],Iy.prototype,"onOverlayDensityChanged",void 0);_.x([_.A(),_.W("isActive","hasError"),_.B("design:type",Object),_.B("design:paramtypes",[])],Iy.prototype,"shouldRenderPlayerElements",null);_.x([_.A(),_.W("isActive","isWatchWhileMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],Iy.prototype,"watchWhileOrPersistentActive",null);
_.x([_.SP("isActive","hasError","showingExpandedOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Iy.prototype,"updateShouldHideOverlay",null);_.x([_.A({reflectToAttribute:!0}),_.W("isActive","isPlayerStarted","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Iy.prototype,"shouldRenderScrubber",null);
_.x([_.SP("shouldRenderScrubber"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Iy.prototype,"onScrubberDataChange",null);_.x([_.W("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Iy.prototype,"overlayComponent",null);_.x([_.SP("watchWhileEngagementPanels"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Iy.prototype,"onEngagementPanelsChanged",null);
_.x([_.n8("#player-container"),_.B("design:type",HTMLElement)],Iy.prototype,"playerContainer",void 0);_.x([_.n8("#cinematic-container"),_.B("design:type",HTMLElement)],Iy.prototype,"cinematicContainer",void 0);_.x([_.SP("isPersistentPanelActive","data.thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Iy.prototype,"maybeLogNonDefaultAspectRatio",null);
_.x([_.SP("isPersistentPanelActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Iy.prototype,"calculateOverlayDensity",null);_.x([_.SP("overlayDensity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Iy.prototype,"onOverlayDensityChange",null);Iy=_.x([_.Q({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Iy);
_.C(Iy,"ytd-reel-video-renderer",function(){if(qDt!==void 0)return qDt;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\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 disable-upgrade="[[!isActive]]" 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="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return qDt=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var Uw=function(){var K=_.q.apply(this,arguments)||this;K.isPreviousPageShorts=!1;K.index=0;K.delayedActiveIndex=0;K.playablePreviousIndex=null;K.isPlayerPaused=!1;K.isPlayerStarted=!1;K.intersectionObserverThreshold=.6;K.fitToVisibleBounds=!1;K.pageSubtype="shorts";K.enablePreviousContinuation=_.M("shorts_in_playlists_web");K.shortsPipEnabled=_.M("web_shorts_pip");K.isDark=document.documentElement.hasAttribute("dark");K.shortsViewTransitions=_.M("web_shorts_view_transitions");K.isFullscreen=!1;K.isShortsPipActive=
!1;K.buttonOverride={iconPosition:"icon-only",size:"XL"};K.anchoredPanelActive=!1;K.isActive=!1;K.smallScreenPersistentPanel=!1;K.isPersistentPanelActive=!1;K.smallScreenSqueezeBack=!1;K.enableScrollIntoViewCenter=_.M("web_scroll_into_view_center");K.formatFirst=_.M("web_enable_format_first")||_.M("web_enable_format_first_ads_only")||_.M("web_enable_format_first_organic_only");K.enableFlexibleOverlay=_.M("web_enable_flexible_overlay");K.isShortsInitialized=!1;K.hidePreviousButtonImmediately=!1;K.showPreviousButtonImmediately=
!1;K.endOfNextContinuation=!1;K.currentPlayerIndex=0;K.nextReelVe=_.vp(56921);K.prevReelVe=_.vp(56922);K.loopToggleOffVe=_.vp(198013);K.loopToggleOnVe=_.vp(198014);K.ambientModeToggleVe=_.vp(227860);K.reelPlayerPausedStateRendererVe=_.vp(141313);K.storedPlaybackSpeed=null;K.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"};
K.onOverlayDensityChanged=function(d,f){var H;(H=K.getActiveReelVideo(d))==null||H.setAttribute("overlay-density",String(f))};
return K};
_.O(Uw,_.q);_.V=Uw.prototype;
_.V.deflateInactivePreviousSlides=function(){var K=_.di("web_shorts_deflate_inactive_slides_aggressive_distance");if(K>0&&this.shortsProcessedSequence&&this.activeIndex){K=this.activeIndex-K;for(var d=0;d<=K;d++){var f=void 0;((f=this.shortsProcessedSequence[d].reelPlayerOverlayRenderer)==null?0:f.metapanel)&&this.set("shortsProcessedSequence."+d+".reelPlayerOverlayRenderer",{});f=void 0;((f=this.shortsProcessedSequence[d].adsOverlay)==null?0:f.adSlotMetadata)&&this.set("shortsProcessedSequence."+d+
".adsOverlay",{})}}};
_.V.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.V.onResize=function(){var K=_.j3(),d=K.dispatch,f=this.calculateIsSmallWidth();d.call(K,_.es({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:f}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.V.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:_.M("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.V.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var K=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,d=K,f=0;K<250&&(d=K+this.shortsInnerContainer.clientWidth,f=24);_.f8(this.hostElement,{"--ytd-shorts-header-width":d+"px","--ytd-shorts-top-spacing":f+"px"})}};
_.V.isFirstShorts=function(K){return K?this.index===-K.length:this.index===0};
_.V.isActiveReel=function(K,d,f){f&&(d=this.calculatePrevIndex(d,f));return K===d};
_.V.onFullscreenChange=function(){if(_.M("web_fullscreen_shorts")){var K;(K=this.getActiveReelVideo(this.activeIndex))==null||K.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.eq().resolve(_.$b).close(!0)}};
_.V.engagementPanelsChanged=function(){var K;this.watchWhileEngagementPanels=(K=this.data)==null?void 0:K.engagementPanels};
_.V.unregisterPanels=function(){var K=_.eq().resolve(_.XM);if(this.watchWhileEngagementPanels)for(var d=_.y(this.watchWhileEngagementPanels),f=d.next();!f.done;f=d.next()){var H=void 0,D=void 0;f=(H=f.value.engagementPanelSectionListRenderer)==null?void 0:(D=H.identifier)==null?void 0:D.tag;K&&f&&K.panelMap.delete(f)}};
_.V.isVideoContent=function(K){return this.isVideoContentCommand(K==null?void 0:K.command)};
_.V.getActiveReelVideo=function(K){return _.E(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+K+'"]')};
_.V.calculatePrevIndex=function(K,d){return d?K-((d==null?void 0:d.length)||0):-1};
_.V.onKeydown=function(K){var d=_.qn(K)||[];if(!_.HQZ(d))if(K.code==="ArrowUp")K.preventDefault(),this.handlePrevButtonClick();else if(K.code==="ArrowDown")K.preventDefault(),this.handleNextButtonClick();else if(K.code==="KeyM")this.toggleMuteUnmuteVideo();else if(K.code==="KeyK"||K.code==="Space")this.togglePlayPauseVideo();else if((K.code==="KeyA"||K.code==="ArrowLeft")&&_.M("web_shorts_keyboard_enable_seek_shortcuts")){var f;(f=this.player)==null||f.seekBy(-5)}else if((K.code==="KeyD"||K.code===
"ArrowRight")&&_.M("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var H;(H=this.player)==null||H.seekBy(5)}};
_.V.onServiceRequestCompleted=function(K,d){K=d.data;K.continuationEndpoint&&K.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:K.entries,continuationEndpoint:K.continuationEndpoint}}):K.prevContinuationEndpoint&&K.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:K.prevEntries,prevContinuationEndpoint:K.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.V.handleEngagementPanelVisibilityChanged=function(K,d){var f=_.eq().resolve(_.XM);if(K&&f){var H,D=((H=K.identifier)==null?void 0:H.tag)||K.panelIdentifier||K.targetId;if(d==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==D){f.hidePanel(this.activePanel);var S;this.activePanel=((S=K.identifier)==null?void 0:S.tag)||K.panelIdentifier}else this.isPersistentPanelActive=!0,_.j3().dispatch(zOZ(!0)),this.anchoredPanelActive=!0,this.activePanel=D;else d==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===D&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.j3().dispatch(zOZ(!1)))}};
_.V.handlePanelScrimClick=function(){var K=_.eq().resolve(_.XM);this.activePanel&&(K.hidePanel(this.activePanel),_.j3().dispatch(zOZ(!1)))};
_.V.getShortsLoopSetting=function(){var K,d,f,H,D;return _.c(function(S){switch(S.nextAddress){case 1:return _.M("kevlar_shorts_auto_advance")?_.I(S,_.Rv.getInstance(),2):S.return(!0);case 2:return(K=S.yieldResult)?_.I(S,K.get("sfvles"),3):S.return(!0);case 3:return f=(d=S.yieldResult)!=null?d:!1,_.I(S,K.get("sfvle"),4);case 4:return D=(H=S.yieldResult)!=null?H:!0,f?S.return(D):S.return(!0)}})};
_.V.handleSignalActionToggleLoopShortsOff=function(){var K=this,d,f,H;return _.c(function(D){switch(D.nextAddress){case 1:if(!K.player)return D.return();K.player.setLoopVideo(!1);d=_.cv();_.dx(d,K.loopToggleOffVe);return _.I(D,_.Rv.getInstance(),2);case 2:return(f=D.yieldResult)?_.I(D,f.set("sfvle",!1),3):D.return();case 3:return _.I(D,f.set("sfvles",!0),4);case 4:H=_.aS(),_.IS(0,203,!1),_.IS(0,204,!0),H.save(),_.iQ(D)}})};
_.V.handleSignalActionToggleLoopShortsOn=function(){var K=this,d,f,H;return _.c(function(D){switch(D.nextAddress){case 1:if(!K.player)return D.return();K.player.setLoopVideo(!0);d=_.cv();_.dx(d,K.loopToggleOnVe);return _.I(D,_.Rv.getInstance(),2);case 2:return(f=D.yieldResult)?_.I(D,f.set("sfvle",!0),3):D.return();case 3:return _.I(D,f.set("sfvles",!0),4);case 4:H=_.aS(),_.IS(0,203,!0),_.IS(0,204,!0),H.save(),_.iQ(D)}})};
_.V.handleSignalActionToggleCinematicShortsOn=function(){SDt(!0);var K;(K=this.JSC$19709_cinematicController)==null||_.f05(K,!0);_.dx(_.cv(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.V.handleSignalActionToggleCinematicShortsOff=function(){SDt(!1);var K;(K=this.JSC$19709_cinematicController)==null||_.f05(K,!1);_.dx(_.cv(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.V.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.V.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.V.unhideCurrentOverlay=function(){if(this.overlayContainer){var K=this.overlayContainer.querySelector("#experiment-overlay");K&&_.oc.addLowPriorityJob(function(){K.style.display="unset"},100)}};
_.V.getCurrentShort=function(){if(this.currentEndpoint){var K=this.currentEndpoint;if(this.isNonVideoContentCommand(K)){var d=_.P(K,_.NV);return{reelNonVideoContentRenderer:_.P(d==null?void 0:d.renderer,_.vSJ),command:K}}if(this.data){var f;d=(f=_.P(this.currentEndpoint,_.IM))==null?void 0:f.thumbnail;var H;f=(H=this.data.overlay)==null?void 0:H.reelPlayerOverlayRenderer;_.eq().resolve(_.yJ);K=this.data;var D,S;H=(D=K.overlay)==null?void 0:(S=D.shortsAdsRenderer)==null?void 0:S.adSlots;if(H!==void 0)H.length===
0?(_.Lt("Shorts ads returned no ad slots."),K=void 0):(H.length>1&&_.Lt("Shorts ads has more than one ad slots."),K=_.P(H[0],_.eR4));else{var n,u;K=_.P((n=K.overlay)==null?void 0:(u=n.shortsAdsRenderer)==null?void 0:u.overlay,_.eR4)}n=K;K=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.P(this.currentEndpoint,_.IM),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:f,thumbnail:d,command:K,adsOverlay:n}}}};
_.V.created=function(){var K=this;this.scrollToVideoThrottle=new _.Ct(function(d){var f;(f=K.getActiveReelVideo(d))==null||f.scrollIntoView({behavior:"smooth",block:"nearest",inline:K.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Ct(function(d){var f;(f=K.getActiveReelVideo(d))==null||f.scrollIntoView({behavior:"auto",block:"nearest",inline:K.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.V.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.V.attached=function(){var K=this;RO7(this);this.pageScrollElement=_.E(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Dm(this,this.processResetAction));_.M("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.M("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var d=K.getActiveReelVideo(K.activeIndex);
K.maybeCreateIntersectionObserver();d==null||d.scrollIntoView({behavior:"instant",block:"nearest",inline:K.enableScrollIntoViewCenter?"center":"start"});K.shortsContainer.style.overflowY="scroll"}))};
_.V.calculateSqueezebackPanelSize=function(){var K=this,d=window.innerWidth-456-(window.innerHeight-106)*.5625;_.oc.addLowPriorityJob(function(){d<360?_.j3().dispatch(X2w(!0)):(K.hostElement.style.setProperty("--anchored-panel-width",Math.min(d,480)+"px"),_.j3().dispatch(X2w(!1)))})};
_.V.detached=function(){var K=_.eq().resolve(_.yJ);K.rootElement=void 0;var d;(d=K.unsubscribeFromStore)==null||d.call(K);K.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Dm(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.V.onResizeFinished=function(K,d){var f=this,H=new ResizeObserver(function(){f.shortsContainer.style.overflowY="hidden";_.oc.addLowPriorityJob(function(){d()},100)});
H.observe(K);return H};
_.V.resetDocumentScrollTop=function(){var K,d;if((K=document)==null?0:(d=K.scrollingElement)==null?0:d.scrollTop)document.scrollingElement.scrollTop=0};
_.V.loadPage_=function(K){var d=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),K){var f;if((f=_.P(this.currentEndpoint,_.IM))==null?0:f.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=K;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){d.isPlayerStarted&&
(d.handleOnPlaybackCommand(),d.afterPlayerStarted=function(){})};
this.registerPanel(K)}};
_.V.afterPlayerStarted=function(){};
_.V.handleOnPlaybackCommand=function(){if(_.M("web_shorts_comment_stickers")&&this.isPlayerStarted){var K,d=(K=_.P(this.currentEndpoint,_.IM))==null?void 0:K.onPlaybackCommand;d&&this.ytComponentBehavior.resolveCommand(d)}};
_.V.maybeCreateIntersectionObserver=function(){var K=this,d=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==d){this.intersectionObserverThreshold=d;var f={rootMargin:"0px",threshold:d},H;(H=this.intersectionObserver)==null||H.disconnect();this.intersectionObserver=new IntersectionObserver(function(D){D=_.y(D);for(var S=D.next();!S.done;S=D.next())if(S=S.value,S.intersectionRatio>d){S=Number(S.target.id);if(isNaN(S))break;if(S===K.index)break;
_.KwY();K.loadVideo(S);_.oS("r_vtc")}},f);
this.observeShorts()}};
_.V.observeShorts=function(){var K=[].concat(_.Me(_.E(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));K=_.y(K);for(var d=K.next();!d.done;d=K.next()){d=d.value;var f=void 0;(f=this.intersectionObserver)==null||f.observe(d)}};
_.V.initCsi=function(){_.OJ("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var K={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"}},d,f;if((d=this.playerData)==null?0:(f=d.cacheMetadata)==null?0:f.isCacheHit)K.isCacheHit=!0;var H;if(d=(H=_.P(this.currentEndpoint,_.IM))==null?void 0:
H.prefetchTaskId)K.prefetchInfo={taskId:d};_.Ox(K)};
_.V.isAd=function(){var K,d;return!!((K=_.P(this.currentEndpoint,_.IM))==null?0:(d=K.adClientParams)==null?0:d.isAd)};
_.V.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.V.getPlayerContainer=function(){var K;return(K=_.E(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:K.playerContainer};
_.V.onPlayerStateChange=function(K){var d=this;this.isPlayerPaused=K===2;K!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?K===1&&this.index===0&&(this.isPlayerStarted||_.j3().dispatch(H8(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.j3().dispatch(H8(!0)));this.player&&!this.player.getLoopVideo()&&_.oc.addLowPriorityJob(function(){d.getShortsLoopSetting().then(function(f){var H;(H=d.player)==null||H.setLoopVideo(f)})});
this.isPlayerPaused&&_.M("web_shorts_paused_state_logging")&&_.Ay(_.te(),[this.reelPlayerPausedStateRendererVe])};
_.V.isInBackground=function(){var K=window.document.visibilityState;return!(!K||K==="visible")};
_.V.isShortPlayable=function(){if(_.M("kevlar_playable_short_killswitch"))return!0;var K;return(K=this.playerData)!=null&&K.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.V.setNormalPlaybackSpeed=function(){var K=this,d,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,K.getPlayer().getPlayerPromise(),2);d=H.yieldResult;f=d.getPlaybackRate();f!==1&&(K.storedPlaybackSpeed=f,d.setPlaybackRate(1));_.iQ(H)})};
_.V.restorePlaybackSpeed=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1)return K.storedPlaybackSpeed===null?f.jumpTo(0):_.I(f,K.getPlayer().getPlayerPromise(),3);d=f.yieldResult;d.setPlaybackRate(K.storedPlaybackSpeed);K.storedPlaybackSpeed=null;_.iQ(f)})};
_.V.playerDataChanged=function(){var K=this,d,f,H,D,S,n,u,a,R;return _.c(function(F){if(F.nextAddress==1){d=K.getPlayer();_.M("web_shorts_dynamic_intersection_observer_threshold")&&((f=K.intersectionObserver)==null||f.disconnect());if(K.playerData){if(((H=K.playerData.videoDetails)==null?void 0:H.videoId)!==((D=d.getPlayer())==null?void 0:D.getVideoData().video_id)){S={};if(n=_.P(K.currentEndpoint,_.IM))S.watch_endpoint=n,n.endTimeSeconds&&(S.end=n.endTimeSeconds);d.loadVideoWithPlayerResponse(K.playerData,
S)}}else return F.return();return K.player?F.jumpTo(2):_.I(F,d.getPlayerPromise(),3)}F.nextAddress!=2&&(K.player=F.yieldResult,K.JSC$19709_playerStateChangeListener=K.onPlayerStateChange.bind(K),K.player.addEventListener("onStateChange",K.JSC$19709_playerStateChangeListener),_.M("kevlar_client_enable_shorts_player_bootstrap")&&_.GD(),K.scrollToVideoThrottle.fire(K.index),K.movePlayerToVideo(K.index),_.oc.addLowPriorityJob(function(){K.getShortsLoopSetting().then(function(z){var v;(v=K.player)==null||
v.setLoopVideo(z)})}),_.D3L.resolve(K.player),K.player.syncVolume(),K.getPlayer().focusOnPlayer());
_.M("web_shorts_caption_language_entity_killswitch")||_.oc.addLowPriorityJob(function(){var z=_.eq().resolve(_.yJ),v,g=(v=K.player)==null?void 0:v.getOption("captions","track");v=_.HJ("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(g){var N;((N=_.yF(_.Jiu,v)())==null?void 0:N.value)!==g.displayName&&z.store.dispatch(_.nt("stringEntity",v,{key:v,value:g.displayName||""}))}else z.store.dispatch(_.nt("stringEntity",v,{key:v,value:"CAPTIONS_UNAVAILABLE"}))});
_.oc.addLowPriorityJob(function(){K.observeShorts()},100);
u=K.player.getPlayerState(K.player.getPresentingPlayerType());u!==1||K.isPlayerStarted||_.j3().dispatch(H8(!0));K.updateBackNavContainerWidth();a=_.P(K.currentEndpoint,_.IM);((R=a)==null?0:R.startTimeSeconds)&&K.player.seekTo(a.startTimeSeconds);if(K.JSC$19709_cinematicController||K.cinematicsInitializeJobId)return F.return();K.cinematicsInitializeJobId=_.oc.addLowPriorityJob(function(){K.initCinematicController();K.cinematicsInitializeJobId=void 0});
_.iQ(F)})};
_.V.onShortUndoDismiss=function(){var K=this,d=FGU().pop();d!==void 0&&(_.jW(this,function(){K.showCardWithIndex(d)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.V.onShortsDismiss=function(K){if(K=K.detail.reelDismissalActionRenderer)(K=_.P(K.onDismissalCompletionRenderer,_.m6Z))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:K}}}),this.scrollAndDismissCard()};
_.V.processReelNonVideoContentDismissalCommand=function(K){var d=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);K=_.P(K,oOU);this.activeDimissalTimeout=setTimeout(function(){d.scrollAndDismissCard()},Number(K==null?void 0:K.delayMs))};
_.V.scrollAndDismissCard=function(){var K=this,d=this.index;FGU().push(d);_.jW(this,function(){var f=K.getPlayableNextIndex();f!==null&&(f=K.getActiveReelVideo(f),K.hideCardWithIndex(d),f==null||f.scrollIntoView({behavior:"smooth",block:"nearest",inline:K.enableScrollIntoViewCenter?"center":"start"}))})};
_.V.hideCardWithIndex=function(K){if(K=this.getActiveReelVideo(K))K.hidden=!0};
_.V.showCardWithIndex=function(K){if(K=this.getActiveReelVideo(K))K.hidden=!1};
_.V.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.V.activeChanged=function(K){_.j3().dispatch(_.es({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:K}}));if(K)document.addEventListener("keydown",_.Dm(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var d;(d=this.player)==null||d.sendAbandonmentPing()}var f;(f=this.player)==null||f.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Dm(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.V.graftClientVisualElements=function(){if(this.data){var K=_.cv();_.HLs(K,_.HG({response:this.reelWatchSequenceResponse}));_.p2(K,this.nextReelVe);_.p2(K,this.prevReelVe);_.M("kevlar_shorts_auto_advance")&&(_.p2(K,this.loopToggleOffVe),_.p2(K,this.loopToggleOnVe));_.p2(K,this.ambientModeToggleVe);_.Ay(_.te(),[this.nextReelVe,this.prevReelVe]);_.M("web_shorts_paused_state_logging")&&_.p2(K,this.reelPlayerPausedStateRendererVe)}};
_.V.graftNvcRenderer=function(){var K,d,f,H,D=this.index<0?(K=this.shortsProcessedPrevSequence)==null?void 0:(d=K[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:d.command:(f=this.shortsProcessedSequence)==null?void 0:(H=f[this.index])==null?void 0:H.command;if(D&&this.isNonVideoContentCommand(D)){K=_.P(D,_.NV);var S,n;(K=(S=_.P(K==null?void 0:K.renderer,_.vSJ))==null?void 0:(n=S.loggingDirectives)==null?void 0:n.trackingParams)&&_.cv().graftServerVe(K)}};
_.V.setActiveIndex=function(){_.eq().resolve(_.yJ).setActiveIndex(this.index)};
_.V.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.V.lazyUpdateMiniplayerData=function(){var K=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.oc.addLowPriorityJob(function(){K.updateMiniplayerData();K.updateMiniplayerDataJobId=void 0}))};
_.V.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.oc.cancelJob(this.updateMiniplayerDataJobId)};
_.V.updateMiniplayerData=function(){var K,d,f,H=_.eq().resolve(_.$b),D={shortsData:this.getCurrentShort(),previousButtonDisabled:!((K=this.prevButtonData)==null||!K.isDisabled),nextButtonDisabled:!((d=this.nextButtonData)==null||!d.isDisabled),playabilityStatus:(f=this.playerData)==null?void 0:f.playabilityStatus};_.MG(H,D)};
_.V.resetPlayerLocation=function(){var K=this.getPlayer();this.initialPlayerContainer&&K.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.V.movePlayerToVideo=function(K,d){var f=this;d=d===void 0?!0:d;var H=this.getActiveReelVideo(K),D=this.getPlayer();if(H){this.overlayContainer||(this.overlayContainer=_.E(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||D.appendTo(this.overlayContainer.playerContainer,void 0,!0));H.appendChild(this.overlayContainer);var S;(S=this.player)==null||S.setSize(NaN,NaN);this.isActive||_.va(_.oc,function(){f.isActive=!0});
D.style.visibility="visible";_.M("reels_web_disable_rtr_tick")||_.M("reels_web_use_pbs_first_shorts")&&K===0||_.YJ("r_tr");this.currentPlayerIndex=K;H.appendChild(this.errorScreenContainer);var n;(n=this.JSC$19709_cinematicController)==null||_.DA7(n)}else d?_.oc.addLowPriorityJob(function(){f.movePlayerToVideo(f.index,!1)}):Math.random()<=_.di("web_shorts_error_logging_threshold")&&_.EN(new _.X4("Trying to movePlayerToVideo with undefined container.",{firstAttempt:d,
index:K}))};
_.V.enableFormatFirst=function(K){return _.M("web_enable_format_first")||K.adsOverlay&&_.M("web_enable_format_first_ads_only")||K.reelPlayerOverlayRenderer&&_.M("web_enable_format_first_organic_only")};
_.V.getAspectRatio=function(K){if(K!=null&&K.thumbnail&&this.enableFormatFirst(K))return"--ytd-shorts-player-ratio: "+yEw(K.thumbnail)};
_.V.getBackgroundImage=function(K){if(K!=null&&K.thumbnail)return(K=_.wl(K.thumbnail.thumbnails))?'background-image:url("'+K+'");':"background-color:black;"};
_.V.onPersistentPanelActiveChanged=function(){var K=this.getCurrentShort();if(K&&this.enableFormatFirst(K)&&(K==null?0:K.thumbnail)&&yEw(K.thumbnail)!==.5625){var d;(d=this.player)==null||d.setSize(NaN,NaN)}};
_.V.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.V.moveCinematicsToVideo=function(){var K=_.E(this.hostElement).querySelector("ytd-reel-video-renderer");(K==null?0:K.cinematicContainer)&&K.cinematicContainer!==this.shortsCinematicContainer.parentElement&&K.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.V.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.V.updatePrevButtonData=function(){var K=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(K){var d;this.prevButtonData=K=Object.assign({},K,{accessibility:{label:_.iB("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:K.isDisabled||this.index===-(((d=this.shortsProcessedPrevSequence)==null?void 0:d.length)||0),tooltip:this.isUpArrowHidden?"":_.iB("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=K=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.V.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.V.updateNextButtonData=function(){var K=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(K){var d;this.nextButtonData=K=Object.assign({},K,{accessibility:{label:_.iB("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:K.isDisabled||this.index===((d=this.shortsProcessedSequence)==null?void 0:d.length),tooltip:_.iB("NEXT_VIDEO_LABEL")||""})}};
_.V.getPlayablePreviousIndex=function(){for(var K,d=this.index-1;d>=-(((K=this.prevShortsSequence)==null?void 0:K.length)||0);d--)if(!FGU().includes(d))return d;return null};
_.V.getIndexInSequence=function(K,d){return K.findIndex(function(f){var H;return((H=_.P(f.command,_.IM))==null?void 0:H.videoId)===d})};
_.V.handlePrevButtonClick=function(K){var d=this,f,H;return _.c(function(D){f=d.getPlayablePreviousIndex();if(f===null)return D.return();d.gestureType=((H=K)==null?void 0:H.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";f===0&&(d.hidePreviousButtonImmediately=!0);if(d.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){d.transitionToVideoThrottle.fire(f)}),D.return();
d.scrollToVideoThrottle.fire(f);_.iQ(D)})};
_.V.getPlayableNextIndex=function(){for(var K,d=this.index+1;d<(((K=this.shortsProcessedSequence)==null?void 0:K.length)||0);d++)if(!FGU().includes(d))return d;return null};
_.V.handleNextButtonClick=function(K,d){var f=this,H,D;return _.c(function(S){H=f.getPlayableNextIndex();if(H===null)return S.return();H===1&&(f.showPreviousButtonImmediately=!0);f.gestureType=((D=K)==null?void 0:D.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";d&&(f.gestureType=d);if(f.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){f.transitionToVideoThrottle.fire(H)}),S.return();
f.scrollToVideoThrottle.fire(H);_.iQ(S)})};
_.V.handleReelNavigateCommand=function(K,d,f){(K=_.P(K,tFU))&&d&&K.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(f)};
_.V.loadVideo=function(K,d){d=d===void 0?!1:d;if(K!==this.currentPlayerIndex){_.j3().dispatch(H8(!1));if(this.isAd()&&!d){var f;(f=this.player)==null||f.notifyShortsAdSwipeEvent()}if((d=this.JSC$19709_cinematicController)!=null){var H;(H=d.currentCinematicEffect)==null||H.pause()}if((H=this.JSC$19709_cinematicController)!=null){var D;(D=H.currentCinematicEffect)==null||D.clear()}H=K>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(H));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var S,n,u,a;D=K<0?(S=this.shortsProcessedPrevSequence)==null?void 0:(n=S[this.shortsProcessedPrevSequence.length+K])==null?void 0:n.command:(u=this.shortsProcessedSequence)==null?void 0:(a=u[K])==null?void 0:a.command;this.index=K;this.gestureType||(this.gestureType=H?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
D&&this.isVideoContentCommand(D)&&(this.ytComponentBehavior.resolveCommand(D,{form:{createScreenConfig:{clickedVisualElement:H?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(D&&this.isNonVideoContentCommand(D)){this.currentEndpoint=D;this.data=void 0;S=_.cv();n=_.P(D,_.NV);var R,F;(n=(R=_.P(n==null?void 0:n.renderer,_.vSJ))==null?void 0:(F=R.screenLoggingData)==null?void 0:F.screenVeType)&&_.eA(S,n);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo()}var z,v;if(((z=this.reelWatchSequenceResponse)==null?0:z.continuationEndpoint)&&((v=this.reelWatchSequenceResponse)==null?0:v.entries)&&K===this.reelWatchSequenceResponse.entries.length-1){var g,N;R={contentPlaybackContext:_.F7({},(N=_.P((g=this.currentEndpoint)==null?void 0:g.commandMetadata,_.B0))==null?void 0:N.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:R})}var h,m,T;((h=this.reelWatchSequenceResponse)==
null?0:h.prevContinuationEndpoint)&&K===-(((m=this.reelWatchSequenceResponse)==null?void 0:(T=m.prevEntries)==null?void 0:T.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.V.setMiniplayerPreview=function(K){K=(K===void 0?0:K)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var d,f,H=_.eq().resolve(_.$b),D={shortsData:void 0,shortsPreviewThumbnail:K?(d=this.shortsProcessedSequence)==null?void 0:(f=d[K])==null?void 0:f.thumbnail:void 0};_.MG(H,D)};
_.V.updateTitle=function(K){var d,f;K=(K==null?0:K.adPlacements)?"":(f=K==null?void 0:(d=K.videoDetails)==null?void 0:d.title)!=null?f:"";_.Zp(this.hostElement,"yt-update-title",K)};
_.V.registerPanel=function(K){var d=_.eq().resolve(_.XM);if(d){K=_.y(K.engagementPanels||[]);for(var f=K.next();!f.done;f=K.next()){f=f.value;var H=f.engagementPanelSectionListRenderer,D=void 0,S=void 0,n=void 0,u=void 0,a=((D=H)==null?void 0:D.targetId)||((S=H)==null?void 0:S.panelIdentifier)||((n=H)==null?void 0:(u=n.identifier)==null?void 0:u.tag);D=H=void 0;(D=(H=d).registerPanelContent)==null||D.call(H,a,f)}}};
_.V.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.j3().dispatch(H8(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.j3().dispatch(zOZ(!1));var K=_.eq().resolve(_.yJ);K.dismissedIndices=[];K.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.eq().resolve(_.$b).close(!0)};
_.V.processAppendReelWatchSequenceContinuationEntriesAction=function(K){var d=this,f;(f=this.intersectionObserver)==null||f.disconnect();K=K.appendReelWatchSequenceContinuationEntriesAction;if(K==null?0:K.entries){var H;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Me(((H=this.reelWatchSequenceResponse)==null?void 0:H.entries)||[]),_.Me(K.entries)),continuationEndpoint:K.continuationEndpoint})}else if(K==null?0:K.prevEntries){var D;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Me(((D=this.reelWatchSequenceResponse)==null?void 0:D.prevEntries)||[]),_.Me(K.prevEntries)),prevContinuationEndpoint:K.prevContinuationEndpoint});_.oc.addLowPriorityJob(function(){d.movePlayerToVideo(d.index);var S;(S=d.getActiveReelVideo(d.index))==null||S.scrollIntoView({block:"nearest",inline:d.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.oc.addLowPriorityJob(function(){d.observeShorts()},100)};
_.V.processWatchSequence=function(K){var d=this;return K.map(function(f){f=f.command;if(d.isVideoContentCommand(f)){var H=_.P(f,_.IM);return{reelPlayerOverlayRenderer:_.P(H==null?void 0:H.overlay,_.M$4),thumbnail:H.thumbnail,command:f}}return d.isNonVideoContentCommand(f)?(H=_.P(f,_.NV),{reelNonVideoContentRenderer:_.P(H==null?void 0:H.renderer,_.vSJ),command:f}):{command:f}})};
_.V.calculateIntersectionObserverThreshold=function(){if(!_.M("web_shorts_dynamic_intersection_observer_threshold"))return.6;var K=_.E(this.hostElement).querySelector("ytd-reel-video-renderer"),d=1;(K==null?0:K.offsetHeight)&&(K==null?0:K.offsetWidth)&&(d=Math.min(K.offsetHeight,this.shortsContainer.offsetHeight)/K.offsetHeight*(Math.min(K.offsetWidth,this.shortsContainer.offsetWidth)/K.offsetWidth));return Math.round(d*.6*10)/10};
_.V.isVideoContentCommand=function(K){_.eq().resolve(_.yJ);return!!_.P(K,_.IM)};
_.V.isNonVideoContentCommand=function(K){_.eq().resolve(_.yJ);return!!_.P(K,_.NV)};
_.V.initCinematicController=function(){var K=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19709_cinematicController=new _.fR(this.shortsCinematicContainer,this.player);var d,f=_.P((d=this.data)==null?void 0:d.background,_.M$);_.HaU(this.JSC$19709_cinematicController,f);_.f05(this.JSC$19709_cinematicController,VFt(f));_.dAi(this.JSC$19709_cinematicController);_.oc.addLowPriorityJob(function(){K.moveCinematicsToVideo()})}};
_.V.handleMiniplayerNavigateShorts=function(K){K==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():K==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.V.handleSignalActionToggleShortsPictureInPicture=function(){if(_.eq().resolve(_.$b).pictureInPictureSupported()){var K=_.eq().resolve(_.yJ);if(_.M("web_shorts_pip")){var d=_.eq().resolve(_.$b);K.isShortsPipActive()?d.deactivate():d.isMiniplayerActive()||(_.SJ().shortsPipActivation=!0,_.owc(d))}}else(K=this.player)==null||K.togglePictureInPicture()};
_.x$.Object.defineProperties(Uw.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.reelWatchSequenceResponse)!=null&&K.prevEntries)return this.processWatchSequence([].concat(_.Me(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var K=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!K)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var d=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.Me(this.prevShortsSequence.slice(0,d)),[K],_.Me(this.prevShortsSequence.slice(d+
1)))}d=this.index+this.shortsProcessedPrevSequence.length;K.thumbnail=this.shortsProcessedPrevSequence[d].thumbnail;return[].concat(_.Me(this.shortsProcessedPrevSequence.slice(0,d)),[K],_.Me(this.shortsProcessedPrevSequence.slice(d+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.reelWatchSequenceResponse)!=null&&K.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var K=this.getCurrentShort();if(!K||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[K];if(K==null||!K.reelNonVideoContentRenderer){var d=this.getIndexInSequence(this.shortsSequence,_.P(this.currentEndpoint,_.IM).videoId);if(this.index===0&&d!==-1)return this.currentPlayerIndex=this.index=d,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.Me(this.shortsSequence.slice(0,this.index)),[K],_.Me(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){K.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var f,H,D,S;d=((H=_.P((f=this.shortsProcessedSequence[0])==null?void 0:f.command,_.IM))==null?void 0:H.videoId)===((S=_.P((D=this.shortsSequence[0])==null?void 0:D.command,_.IM))==null?void 0:S.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.Me(this.shortsProcessedSequence.slice(0,
this.index)),[K],_.Me(this.shortsSequence.slice(d)))}return[K].concat(_.Me(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var K=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;K&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(K)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var K,d;return this.index===((K=this.reelWatchSequenceResponse)==null?void 0:(d=K.entries)==null?void 0:d.length)}var f;return!((f=this.reelWatchSequenceResponse)==null?0:f.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var K;(K=this.delayedActiveIndexUpdateDebouncer)==null||K.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return this.isShortPlayable()||((d=_.P((K=this.data)==null?void 0:K.watchStatus,_.ESv))==null?void 0:(f=d.style)==null?void 0:f.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var K=this,d=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),f;if((this.data||d)&&(((f=this.data)==null?0:f.engagementPanels)||this.isAd()||d)){d=!1;this.activePanel="shorts-comments-panel";var H;f=_.y(((H=this.data)==null?void 0:H.engagementPanels)||[]);for(H=f.next();!H.done;H=f.next()){H=H.value.engagementPanelSectionListRenderer;var D=void 0,S=void 0,n=void 0,u=void 0;if((((D=H)==null?void 0:(S=D.identifier)==
null?void 0:S.tag)||((n=H)==null?void 0:n.targetId)||((u=H)==null?void 0:u.panelIdentifier))===this.activePanel){d=!0;break}}if(this.isPersistentPanelActive){var a=_.eq().resolve(_.XM);_.va(_.oc,function(){a.showPanel(K.activePanel,void 0,void 0,void 0,null)},100)}var R;
f=[].concat(_.Me(Object.values(((R=this.data)==null?void 0:R.engagementPanels)||{})));if(_.M("enable_preview_panel_for_shorts_search_suggested_action")){var F,z,v,g,N;((g=_.P((F=this.data)==null?void 0:(z=F.overlay)==null?void 0:(v=z.reelPlayerOverlayRenderer)==null?void 0:v.metapanel,_.XLN))==null?void 0:(N=g.metadataItems)==null?void 0:N.find(function(h){var m,T;return((m=_.P(h,EOi))==null?void 0:(T=m.icon)==null?void 0:T.iconType)==="SEARCH"}))!==void 0&&f.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}R=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);F=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return R===void 0&&F===void 0||(R==null?0:R.isDisabled)||(F==null?void 0:F.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!d?(d=f==null?void 0:f.findIndex(function(h){var m,
T;return((m=h.engagementPanelSectionListRenderer)==null?void 0:(T=m.identifier)==null?void 0:T.tag)==="shorts-comments-panel"}),d===-1||d===void 0||f!=null&&f.splice(d,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.iB("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.iB("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:_.iB("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.iB("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(_.Me(Object.values(f||
{})))):f}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.shortsProcessedSequence)==null?void 0:K[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var K=this,d,f,H;if((d=this.playerData)==null?0:(f=d.playabilityStatus)==null?0:(H=f.errorScreen)==null?0:H.playerInterstitialRenderer)return _.oc.addLowPriorityJob(function(){K.movePlayerToVideo(K.index)}),this.playerData.playabilityStatus.errorScreen;
var D,S;return((D=this.data)==null?void 0:D.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((S=this.data)==null?0:S.watchStatus)&&_.P(this.data.watchStatus,_.EW4)?(_.oc.addLowPriorityJob(function(){K.movePlayerToVideo(K.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.x$.Object.defineProperties(Uw,{template:{configurable:!0,enumerable:!0,get:function(){if(bat===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[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    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);bat=K}K=bat;return K}}});
Uw.prototype.onNextButtonDataChange=Uw.prototype.onNextButtonDataChange;Uw.prototype.onPrevButtonDataChange=Uw.prototype.onPrevButtonDataChange;Uw.prototype.onPersistentPanelActiveChanged=Uw.prototype.onPersistentPanelActiveChanged;Uw.prototype.lazyUpdateMiniplayerData=Uw.prototype.lazyUpdateMiniplayerData;Uw.prototype.onShortsPipActiveChanged=Uw.prototype.onShortsPipActiveChanged;Uw.prototype.setActiveIndex=Uw.prototype.setActiveIndex;Uw.prototype.graftNvcRenderer=Uw.prototype.graftNvcRenderer;
Uw.prototype.graftClientVisualElements=Uw.prototype.graftClientVisualElements;Uw.prototype.onActiveChanged=Uw.prototype.onActiveChanged;Uw.prototype.onShortsDismiss=Uw.prototype.onShortsDismiss;Uw.prototype.onShortUndoDismiss=Uw.prototype.onShortUndoDismiss;Uw.prototype.playerDataChanged=Uw.prototype.playerDataChanged;Uw.prototype.afterPlayerStarted=Uw.prototype.afterPlayerStarted;Uw.prototype.unhideCurrentOverlay=Uw.prototype.unhideCurrentOverlay;Uw.prototype.onServiceRequestCompleted=Uw.prototype.onServiceRequestCompleted;
Uw.prototype.engagementPanelsChanged=Uw.prototype.engagementPanelsChanged;Uw.prototype.onFullscreenChange=Uw.prototype.onFullscreenChange;Uw.prototype.onResize=Uw.prototype.onResize;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Uw.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.N$.YtPageBehavior),_.B("design:type",Object)],Uw.prototype,"ytPageBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Uw.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(_.Mg),_.B("design:type",Object)],Uw.prototype,"ironResizableBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],Uw.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Uw.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Uw.prototype,"ytdReduxBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"playerData",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"reelWatchSequenceResponse",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"cachedReelWatchSequenceResponse",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"currentEndpoint",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"nextButtonData",void 0);
_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"prevButtonData",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"isPreviousPageShorts",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"index",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"delayedActiveIndex",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"playablePreviousIndex",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"player",void 0);
_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"isPlayerPaused",void 0);_.x([_.A({selector:iaw}),_.B("design:type",Object)],Uw.prototype,"isPlayerStarted",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"intersectionObserver",void 0);_.x([_.A(),_.B("design:type",Number)],Uw.prototype,"cinematicsInitializeJobId",void 0);_.x([_.A(),_.B("design:type",Number)],Uw.prototype,"updateMiniplayerDataJobId",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"fitToVisibleBounds",void 0);
_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"pageSubtype",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Uw.prototype,"enablePreviousContinuation",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Uw.prototype,"shortsPipEnabled",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Uw.prototype,"isDark",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Uw.prototype,"shortsViewTransitions",void 0);
_.x([_.A({selector:_.Dl,reflectToAttribute:!0}),_.B("design:type",Object)],Uw.prototype,"isFullscreen",void 0);_.x([_.A({selector:_.Vb,reflectToAttribute:!0}),_.B("design:type",Object)],Uw.prototype,"isShortsPipActive",void 0);_.x([_.n8("#shorts-inner-container"),_.B("design:type",HTMLElement)],Uw.prototype,"shortsInnerContainer",void 0);_.x([_.n8("#back-nav-button ytd-button-renderer"),_.B("design:type",_.Qr)],Uw.prototype,"backNavButton",void 0);
_.x([_.n8("#shorts-container"),_.B("design:type",HTMLElement)],Uw.prototype,"shortsContainer",void 0);_.x([_.JZ("error-screen"),_.B("design:type",HTMLElement)],Uw.prototype,"errorScreenContainer",void 0);_.x([_.JZ("player"),_.B("design:type",Object)],Uw.prototype,"playerElement",void 0);_.x([_.JZ("shorts-cinematic-container"),_.B("design:type",HTMLElement)],Uw.prototype,"shortsCinematicContainer",void 0);
_.x([_.JZ("initial-player-container"),_.B("design:type",HTMLElement)],Uw.prototype,"initialPlayerContainer",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"buttonOverride",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Uw.prototype,"anchoredPanelActive",void 0);_.x([_.A(),_.B("design:type",String)],Uw.prototype,"activePanel",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"isActive",void 0);
_.x([_.A({selector:nO5,reflectToAttribute:!0}),_.B("design:type",Object)],Uw.prototype,"smallScreenPersistentPanel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Uw.prototype,"isPersistentPanelActive",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"smallScreenSqueezeBack",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"enableScrollIntoViewCenter",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Uw.prototype,"formatFirst",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Uw.prototype,"enableFlexibleOverlay",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"panelContainer",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"overlayContainer",void 0);_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"isShortsInitialized",void 0);_.x([_.W("reelWatchSequenceResponse"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uw.prototype,"prevShortsSequence",null);
_.x([_.W("data","prevShortsSequence"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uw.prototype,"shortsProcessedPrevSequence",null);_.x([_.W("reelWatchSequenceResponse"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uw.prototype,"shortsSequence",null);_.x([_.W("data","shortsSequence"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uw.prototype,"shortsProcessedSequence",null);
_.x([_.A({reflectToAttribute:!0}),_.W("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uw.prototype,"isUpArrowHidden",null);_.x([_.A({reflectToAttribute:!0}),_.W("reelWatchSequenceResponse","index","endOfNextContinuation"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uw.prototype,"isDownArrowHidden",null);
_.x([_.A(),_.W("index"),_.B("design:type",Number),_.B("design:paramtypes",[])],Uw.prototype,"activeIndex",null);_.x([_.W("isShortPlayable","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uw.prototype,"shouldRenderOfflineContent",null);_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"onResize",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uw.prototype,"anchoredEngagementPanels",null);
_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"watchWhileEngagementPanels",void 0);_.x([_.SP("isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"onFullscreenChange",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"engagementPanelsChanged",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],Uw.prototype,"onServiceRequestCompleted",null);_.x([_.W("data","shortsSequence","index"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uw.prototype,"activeReel",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"unhideCurrentOverlay",null);
_.x([_.SP("isPlayerStarted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"afterPlayerStarted",null);_.x([_.W("playerData","reelWatchSequenceResponse","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uw.prototype,"errorScreen",null);_.x([_.W("errorScreen"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uw.prototype,"hasError",null);
_.x([_.SP("playerData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],Uw.prototype,"playerDataChanged",null);_.x([_.VV("yt-dismissible-item-undo-feedback"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"onShortUndoDismiss",null);_.x([_.VV("yt-disable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],Uw.prototype,"onShortsDismiss",null);
_.x([_.an("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"onActiveChanged",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"graftClientVisualElements",null);_.x([_.SP("currentPlayerIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"graftNvcRenderer",null);
_.x([_.SP("index"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"setActiveIndex",null);_.x([_.SP("isShortsPipActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"onShortsPipActiveChanged",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"lazyUpdateMiniplayerData",null);
_.x([_.A(),_.B("design:type",Object)],Uw.prototype,"onOverlayDensityChanged",void 0);_.x([_.SP("isPersistentPanelActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"onPersistentPanelActiveChanged",null);_.x([_.SP("index","data","isUpArrowHidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"onPrevButtonDataChange",null);
_.x([_.SP("index","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uw.prototype,"onNextButtonDataChange",null);Uw=_.x([_.Q({is:"ytd-shorts"})],Uw);_.kf.registerService(_.T_X,Uw);
_.bl();
}catch(e){_._DumpException(e)}
try{
_.hs("JzFVk");
var Sq5=function(K){return _.U("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},Vgl(K.data.ctaButton,{buttonViewModel:{}}),_.U(_.ji,{text:K.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var yKz;var niE;var bu=function(){return _.q.apply(this,arguments)||this};
_.O(bu,_.q);bu.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
bu.prototype.computeBlueBottomLink=function(K){return K};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],bu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],bu.prototype,"data",void 0);_.x([_.A({computed:"computeIcon_(data.bottomIcon)"}),_.B("design:type",String)],bu.prototype,"bottomIcon",void 0);
_.x([_.A({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.B("design:type",Boolean)],bu.prototype,"enableBlueBottomLink",void 0);bu=_.x([_.Q({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],bu);
_.C(bu,"ytd-web-answer-renderer",function(){if(niE!==void 0)return niE;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return niE=K},{mode:_.p8("kevlar_poly_si_batch_j035")?1:2});var icw;var mm=function(){var K=_.q.apply(this,arguments)||this;K.hasChipBar=!1;return K};
_.O(mm,_.q);mm.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}}};
mm.prototype.computeHasChipBar=function(K){return!(K==null||!K.chipBar)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],mm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],mm.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.B("design:type",Object)],mm.prototype,"hasChipBar",void 0);mm=_.x([_.Q({is:"ytd-search-header-renderer",disableElementRegistration:!0})],mm);
_.C(mm,"ytd-search-header-renderer",function(){if(icw!==void 0)return icw;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return icw=K},{mode:1});var cK5;var lu=function(){return _.q.apply(this,arguments)||this};
_.O(lu,_.q);lu.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],lu.prototype,"data",void 0);lu=_.x([_.Q({disableElementRegistration:!0,is:"ytd-page-continuation"})],lu);
_.C(lu,"ytd-page-continuation",function(){if(cK5!==void 0)return cK5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return cK5=K},{mode:1});var uSE;var a$l;var I$Z;var W7=function(){return _.q.apply(this,arguments)||this};
_.O(W7,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],W7.prototype,"data",void 0);W7=_.x([_.Q({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],W7);
_.C(W7,"ytd-watch-card-one-vs-one-event",function(){if(I$Z!==void 0)return I$Z;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return I$Z=K},{mode:1});var Gr=function(){return _.q.apply(this,arguments)||this};
_.O(Gr,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Gr.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Gr.prototype,"data",void 0);Gr=_.x([_.Q({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Gr);
_.C(Gr,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(a$l!==void 0)return a$l;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return a$l=K},{mode:1});var U6z;var An=function(){return _.q.apply(this,arguments)||this};
_.O(An,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],An.prototype,"data",void 0);An=_.x([_.Q({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],An);
_.C(An,"ytd-banner-and-box-hero-image-renderer",function(){if(U6z!==void 0)return U6z;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return U6z=K},{mode:1});var RzZ;var Tr=function(){var K=_.q.apply(this,arguments)||this;K.modern=_.M("web_modern_buttons");return K};
_.O(Tr,_.q);Tr.prototype.computeIcon=function(){var K,d,f=(K=this.data)==null?void 0:(d=K.icon)==null?void 0:d.iconType;if(f)return _.Hv(f)};
Tr.prototype.computeButtonShape=function(){var K;return{buttonText:_.qQ((K=this.data)==null?void 0:K.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.x$.Object.defineProperties(Tr.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"}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Tr.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Tr.prototype,"modern",void 0);_.x([_.A({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],Tr.prototype,"buttonColor",null);
Tr=_.x([_.Q({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Tr);
_.C(Tr,"ytd-call-to-action-button-renderer",function(){if(RzZ!==void 0)return RzZ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return RzZ=K},{mode:1});var F6i;var ru=function(){return _.q.apply(this,arguments)||this};
_.O(ru,_.q);ru.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.E(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.kA(this.data.leftThumbnail.thumbnails,216)+")")};
ru.prototype.onLeftThumbnailChanged=ru.prototype.onLeftThumbnailChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ru.prototype,"data",void 0);_.x([_.SP("data.leftThumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ru.prototype,"onLeftThumbnailChanged",null);ru=_.x([_.Q({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],ru);
_.C(ru,"ytd-collage-hero-image-renderer",function(){if(F6i!==void 0)return F6i;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return F6i=K},{mode:1});var zzP;var qB=function(){return _.q.apply(this,arguments)||this};
_.O(qB,_.q);qB.prototype.computeStyle=function(K){return K};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qB.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],qB.prototype,"componentStyle",void 0);qB=_.x([_.Q({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],qB);
_.C(qB,"ytd-single-hero-image-renderer",function(){if(zzP!==void 0)return zzP;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return zzP=K},{mode:1});var Xft;var QR=function(){return _.q.apply(this,arguments)||this};
_.O(QR,_.q);_.V=QR.prototype;
_.V.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:_.M("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.V.computeSubtitle=function(K){if(this.data){var d;if(this.data.upcomingEventData){K=_.qQ(K.subtitle);var f=Number(this.data.upcomingEventData.startTime);isNaN(f)||(d=_.rB(_.$B(K,f)))}else d=K.subtitle;return d}};
_.V.onHeroTap=function(K){K.preventDefault();var d=this.data&&this.data.navigationEndpoint;!d||!_.qa(_.qn(K),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.qa(_.qn(K),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.M("kevlar_watchcard_hero_video_renderer_killswitch")?_.Zp(this.hostElement,"yt-navigate",{navigationEndpoint:d}):this.ytComponentBehavior.resolveCommand(d))};
_.V.computeHeroTabIndex=function(K){return K&&K.simpleText?-1:0};
_.V.computeHeroRole=function(K){return K&&K.simpleText?"":"link"};
_.V.computeIsReminderButtonPresent=function(K){return!(!K||!K.reminderButton)};
_.V.computeHideBottomItems=function(K){return!(this.computeIsReminderButtonPresent(K)||K.subtitle)};
_.V.dataChanged=function(){var K=this.get("data.buttons.buttonRenderer.serviceEndpoint"),d;((d=_.P(K==null?void 0:K.commandMetadata,_.vr))==null?0:d.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(K)};
QR.prototype.dataChanged=QR.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],QR.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],QR.prototype,"data",void 0);
_.x([_.A({computed:"computeSubtitle(data)"}),_.B("design:type",String)],QR.prototype,"subtitle",void 0);_.x([_.A({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],QR.prototype,"isReminderButtonPresent",void 0);_.x([_.A({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],QR.prototype,"hideBottomItems",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QR.prototype,"dataChanged",null);QR=_.x([_.Q({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],QR);
_.C(QR,"ytd-watch-card-hero-video-renderer",function(){if(Xft!==void 0)return Xft;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Xft=K},{mode:1});var viw;var jr=function(){return _.q.apply(this,arguments)||this};
_.O(jr,_.q);_.V=jr.prototype;_.V.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"}}}};
_.V.computeTitleBadges=function(K){return K?[K]:[]};
_.V.computeHeaderStyle=function(K){return K?K.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.V.computeAvatarAriaLabel=function(K){if(K){var d,f,H,D;return(D=(d=K.avatar)==null?void 0:(f=d.accessibility)==null?void 0:(H=f.accessibilityData)==null?void 0:H.label)!=null?D:_.qQ(K==null?void 0:K.title)}};
_.V.computeAvatarHeight=function(K){return K==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.V.computeBadgeRowClass=function(K){return(K==null?0:K[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],jr.prototype,"data",void 0);_.x([_.A({computed:"computeTitleBadges(data.titleBadge)"}),_.B("design:type",Array)],jr.prototype,"titleBadges",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.B("design:type",String)],jr.prototype,"headerStyle",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.B("design:type",String)],jr.prototype,"badgeRowClass",void 0);jr=_.x([_.Q({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],jr);
_.C(jr,"ytd-watch-card-rich-header-renderer",function(){if(viw!==void 0)return viw;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return viw=K},{mode:1});var Mg5;var PEE;var Cl=function(){return _.q.apply(this,arguments)||this};
_.O(Cl,_.q);Cl.prototype.onMetadataTap=function(K){var d=this.data&&this.data.navigationEndpoint;d&&!_.qa(_.qn(K),this.hostElement,["A".toString()])&&_.Zp(this.hostElement,"yt-navigate",{endpoint:d})};
_.x$.Object.defineProperties(Cl.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 K;if(this.data.upcomingEventData){var d=_.qQ(this.data.subtitle),f=Number(this.data.upcomingEventData.startTime);isNaN(f)||(K=_.rB(_.$B(d,f)))}else K=this.data.subtitle;return K}}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Cl.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data.style"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Cl.prototype,"isCondensed",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Cl.prototype,"subtitle",null);
Cl=_.x([_.Q({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Cl);
_.C(Cl,"ytd-watch-card-compact-video-renderer",function(){if(PEE!==void 0)return PEE;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return PEE=K},{mode:1});var giE;var xr=function(){return _.q.apply(this,arguments)||this};
_.O(xr,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],xr.prototype,"data",void 0);xr=_.x([_.Q({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],xr);
_.C(xr,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(giE!==void 0)return giE;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return giE=K},{mode:1});var Ll=function(){return _.q.apply(this,arguments)||this};
_.O(Ll,_.q);Ll.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}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ll.prototype,"ytRendererStamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ll.prototype,"data",void 0);Ll=_.x([_.Q({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Ll);
_.C(Ll,"ytd-vertical-watch-card-list-renderer",function(){if(Mg5!==void 0)return Mg5;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Mg5=K},{mode:1});var Ocy;var B7=function(){var K=_.q.apply(this,arguments)||this;K.ariaExpanded="false";return K};
_.O(B7,_.q);_.V=B7.prototype;_.V.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.V.dataChanged=function(){var K;this.currentSeasonIndex=((K=this.data)==null?void 0:K.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.V.computeEpisodesInfo=function(K,d,f){if(K!==void 0&&d.length===K.length)return K[f]};
_.V.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.V.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.V.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.V.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.V.getUppercaseSimpleString=function(K){return this.ytRendererBehavior.getSimpleString(K).toUpperCase()};
_.V.updateCurrentSeasonIndexFromBinding=function(K){this.currentSeasonIndex=K.detail.value};
B7.prototype.onIronOverlayClosed=B7.prototype.onIronOverlayClosed;B7.prototype.currentSeasonIndexChanged=B7.prototype.currentSeasonIndexChanged;B7.prototype.dataChanged=B7.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],B7.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",String)],B7.prototype,"label",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],B7.prototype,"currentSeasonIndex",void 0);_.x([_.A({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.B("design:type",Object)],B7.prototype,"episodesInfo",void 0);_.x([_.A({value:"false"}),_.B("design:type",Object)],B7.prototype,"ariaExpanded",void 0);_.x([_.n8("#lists"),_.B("design:type",Object)],B7.prototype,"lists",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B7.prototype,"dataChanged",null);_.x([_.an("currentSeasonIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B7.prototype,"currentSeasonIndexChanged",null);_.x([_.VV("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],B7.prototype,"onIronOverlayClosed",null);
B7=_.x([_.Q({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],B7);
_.C(B7,"ytd-watch-card-section-dropdown-renderer",function(){if(Ocy!==void 0)return Ocy;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Ocy=K},{mode:1});var Noz;var Jn=function(){var K=_.q.apply(this,arguments)||this;K.isSearch=!1;return K};
_.O(Jn,_.q);Jn.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}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Jn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Jn.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Jn.prototype,"isSearch",void 0);Jn=_.x([_.Q({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Jn);
_.C(Jn,"ytd-watch-card-section-sequence-renderer",function(){if(Noz!==void 0)return Noz;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
return Noz=K},{mode:1});var Vgl=_.IY({buttonViewModel:_.oY});_.Zx(Sq5);_.fK(Sq5,"ytd-button-banner-view-model",{propNames:["data"]});var s6=function(){var K=_.q.apply(this,arguments)||this;K.isSearch=!1;return K};
_.O(s6,_.q);
s6.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"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],s6.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],s6.prototype,"rounded",void 0);_.x([_.A(),_.B("design:type",Object)],s6.prototype,"isSearch",void 0);
s6=_.x([_.Q({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],s6);
_.C(s6,"ytd-universal-watch-card-renderer",function(){if(uSE!==void 0)return uSE;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return uSE=K},{mode:1});var Yqc;_.sP(_.C8(function(K){var d=K.data;var f;K=!((f=_.eq().resolve(_.Zd(_.AJ)))==null||!f());f={};return _.U("overview-message-view-model",{class:_.SC("ytwOverviewMessageViewModelHost",(f.ytwOverviewMessageViewModelDarkBackground=K,f.ytwOverviewMessageViewModelLightBackground=!K,f))},_.U(_.X,{cond:function(){return d().primaryImage},
then:function(H){return _.U(_.jV,{data:H,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.U(_.X,{cond:function(){return d().primaryText},
then:function(){return _.U("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.U(_.ji,{text:function(){return d().primaryText}}))}}),_.U(_.X,{cond:function(){return d().secondaryText},
then:function(){return _.U("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.U(_.ji,{text:function(){return d().secondaryText}}))}}))},"Ai"),"overview-message-view-model",{props:{data:_.rs}});_.fK(_.Zzs,"ytd-overview-answer-view-model",{propNames:["data"]});var kr=function(){return _.q.apply(this,arguments)||this};
_.O(kr,_.q);kr.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"}}}};
kr.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.lY),_.B("design:type",Object)],kr.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],kr.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],kr.prototype,"isSearch",void 0);
kr=_.x([_.Q({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],kr);
_.C(kr,"ytd-secondary-search-container-renderer",function(){if(Yqc!==void 0)return Yqc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
return Yqc=K},{mode:1});var tgi;var wu=function(){var K=_.q.apply(this,arguments)||this;K.renderSecondarySearchContainer=!1;K.isSearch=!1;K.isSearchDova=_.M("dova_on_search");return K};
_.O(wu,_.q);_.V=wu.prototype;_.V.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.V.created=function(){var K=this;this.boundStampSecondarySearchContainerIfFits=function(){K.stampSecondarySearchContainerIfFits()};
_.bx("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.V.computeIsSearchFrictionPage=function(K){var d,f,H,D,S;K=K==null?void 0:(d=K.primaryContents)==null?void 0:(f=d.sectionListRenderer)==null?void 0:(H=f.contents)==null?void 0:(D=H[0])==null?void 0:(S=D.itemSectionRenderer)==null?void 0:S.contents;if(!K)return!1;d=_.y(K);for(f=d.next();!f.done;f=d.next())if(H=void 0,(H=f.value)==null?0:H.searchFrictionViewModel)return!0;return!1};
_.V.computeShowSecondaryColumn=function(K,d){return!!(d&&d.secondaryContents&&K)};
_.V.activeChanged=function(){var K=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Dm(this,this.debounceStampSecondarySearchContainerIfFits)),_.bL(function(){K.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Dm(this,this.debounceStampSecondarySearchContainerIfFits))};
_.V.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.V.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.V.debounceStampSecondarySearchContainerIfFits=function(){_.mx(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.V.onRetrieveLocation=function(K,d){d.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);K.stopPropagation()};
_.V.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
wu.prototype.dataChanged=wu.prototype.dataChanged;wu.prototype.onRetrieveLocation=wu.prototype.onRetrieveLocation;wu.prototype.persistentGuideChanged=wu.prototype.persistentGuideChanged;wu.prototype.activeChanged=wu.prototype.activeChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],wu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],wu.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.l(_.Mg),_.B("design:type",Object)],wu.prototype,"ironResizableBehavior",void 0);_.x([_.A(),_.B("design:type",Boolean)],wu.prototype,"active",void 0);_.x([_.A(),_.B("design:type",Object)],wu.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],wu.prototype,"useBiggerThumbs",void 0);_.x([_.A({reflectToAttribute:!0,value:function(){return _.fy("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],wu.prototype,"biggerThumbsStyle",void 0);_.x([_.A(),_.B("design:type",Object)],wu.prototype,"renderSecondarySearchContainer",void 0);_.x([_.A({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.B("design:type",Boolean)],wu.prototype,"showSecondaryColumn",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.B("design:type",Boolean)],wu.prototype,"isSearchFrictionPage",void 0);
_.x([_.A(),_.B("design:type",Object)],wu.prototype,"isSearch",void 0);_.x([_.A(),_.B("design:type",Object)],wu.prototype,"isSearchDova",void 0);_.x([_.SP("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wu.prototype,"activeChanged",null);_.x([_.SP("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wu.prototype,"persistentGuideChanged",null);
_.x([_.VV("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],wu.prototype,"onRetrieveLocation",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wu.prototype,"dataChanged",null);wu=_.x([_.Q({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],wu);
_.C(wu,"ytd-two-column-search-results-renderer",function(){if(tgi!==void 0)return tgi;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return tgi=K},{mode:1});var ZY=function(){var K=_.q.apply(this,arguments)||this;K.hasSearchHeader=!1;K.hasSecondaryContent=!1;K.hasBiggerThumbs=_.M("enable_desktop_search_bigger_thumbs");K.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return K};
_.O(ZY,_.q);_.V=ZY.prototype;_.V.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:_.Eg(["aa","eocs"])}}};
_.V.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.loadPage_=function(K){this.initCsi();K&&(this.data=K,_.bx("REFINEMENTS_TUPLE",["FromSearchResponse",K.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.BA(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.V.initCsi=function(){_.OJ("results",["ol","cpt"])};
_.V.updateTitle=function(){var K=_.rG(window.location.href,"q");K||(K=_.rG(window.location.href,"search_query"));_.Zp(this.hostElement,"yt-update-title",K||"")};
_.V.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.V.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.M("web_srp_data_changed_terminate_imp_killswitch")||_.ev(this.hostElement,"yt-terminate-video-preview-action")};
_.V.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.V.computeHasSearchHeader=function(K){var d;K=K==null?void 0:(d=K.header)==null?void 0:d.searchHeaderRenderer;return!!K&&(!!K.searchFilterButton||!!K.chipBar)};
_.V.computeHasSecondaryContent=function(K){var d,f;return!!(K==null?0:(d=K.contents)==null?0:(f=d.twoColumnSearchResultsRenderer)==null?0:f.secondaryContents)};
_.x$.Object.defineProperties(ZY,{template:{configurable:!0,enumerable:!0,get:function(){if(yKz===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);yKz=K}K=yKz;return K}}});
ZY.prototype.onReloadContinuationFinish=ZY.prototype.onReloadContinuationFinish;ZY.prototype.dataChanged=ZY.prototype.dataChanged;_.x([_.l(_.N$.YtPageBehavior),_.B("design:type",Object)],ZY.prototype,"ytPageBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ZY.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ZY.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ZY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.lY),_.B("design:type",Object)],ZY.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ZY.prototype,"data",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],ZY.prototype,"monitorScroll",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ZY.prototype,"hasSearchHeader",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ZY.prototype,"hasSecondaryContent",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ZY.prototype,"hasBiggerThumbs",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZY.prototype,"dataChanged",null);
_.x([_.VV("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZY.prototype,"onReloadContinuationFinish",null);ZY=_.x([_.Q({is:"ytd-search"})],ZY);_.kf.registerService(_.Aqn,ZY);
_.bl();
}catch(e){_._DumpException(e)}
try{
_.hs("h8y2qb");
var i$t=function(K){if(K=_.yYn(K)){var d;(d=K.sources)!=null&&d[0]?(d=_.irp(K),d=d<1?"VERTICAL":d>1?"HORIZONTAL":"SQUARE"):d=void 0;return d}},YI=function(K){_.aZ.call(this,"upload");
this.opts.query=K},u5E=function(K,d){return _.U(cUy,{data:K,
onYtNavigate:d})},aXz=function(K,d){return _.DR(K.entities,"pageHeaderEntity",d)},UGz=function(K,d){return K.map(function(f){if(f.tabRenderer)return IX7(f.tabRenderer);
if(f.expandableTabRenderer&&d){var H=f.expandableTabRenderer;return{customTabRenderable:function(){return d(H)}}}return{}})},IX7=function(K){return{identifier:K.tabIdentifier,
aTagConfig:_.hJ({innertubeCommand:K.endpoint,forceNewState:!0}),title:K.title,selected:K.selected,disabled:K.unselectable,icon:K.icon}},RUP=function(K){return _.es({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:K})},F7l=function(K){if(!_.Bp(document,"gtm-noscript")){var d=document.createElement("noscript");
d.id="gtm-noscript";d.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+K+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(d)}};_.Bd(YI,_.aZ);YI.prototype.JSC$8079_setLabel=function(K){YI.superClass_.JSC$8079_setLabel.call(this,K);return this};
YI.prototype.addUploadMetadata=function(K,d){YI.superClass_.addUploadMetadata.call(this,K,d);return this};var zUi=function(K){if(K!=="youtubebanner"&&K!=="youtube-channel-banner")throw Error("Tl");YI.call(this,K)};
_.O(zUi,YI);zUi.prototype.JSC$8079_setLabel=function(K){YI.prototype.JSC$8079_setLabel.call(this,K);return this};
zUi.prototype.addUploadMetadata=function(K,d){YI.prototype.addUploadMetadata.call(this,K,d);return this};var XXi=[_.Mg,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(K){_.Xd(K).path[0]!==this&&(this.resetLayout(),K.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var K=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.ZT(this._layoutDebouncer,_.Xq,K);_.e$(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var K=this;requestAnimationFrame(function(){K.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(K){this.resizerShouldNotify(K)&&this._notifyDescendant(K)},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 vy5=[_.Tjf,{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(K,d){var f=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[K];if(!f)throw new ReferenceError(this._getUndefinedMsg(K));K=this._boundEffect(f,d||{});K.setUp();return K},
_effectsChanged:function(K,d,f){this._tearDownEffects();K&&f&&(K.split(" ").forEach(function(H){var D;H!==""&&((D=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[H])?this._effects.push(this._boundEffect(D,d[H])):console.warn(this._getUndefinedMsg(H)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(K,d){d=d||{};var f=parseFloat(d.startsAt||0),H=parseFloat(d.endsAt||1),D=H-f,S=function(){};
H=f===0&&H===1?K.run:function(n,u){K.run.call(this,Math.max(0,(n-f)/D),u)};
return{setUp:K.setUp?K.setUp.bind(this,d):S,run:K.run?H.bind(this):S,tearDown:K.tearDown?K.tearDown.bind(this):S}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(K){K.setUp()!==!1&&this._effectsRunFn.push(K.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(K){K.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(K,d){this._effectsRunFn&&this._effectsRunFn.forEach(function(f){f(K,d)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var K=this._clampedScrollTop;this._updateScrollState(K);this.threshold>0&&this._setThresholdTriggered(K>=this.threshold)}},
_getDOMRef:function(K){console.warn("_getDOMRef","`"+K+"` is undefined")},
_getUndefinedMsg:function(K){return"Scroll effect `"+K+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+K+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Ul`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(K){var d={};K=parseFloat(K.scalar);d.background=this._getDOMRef("background");d.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");d.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");d.deltaBg=d.backgroundFrontLayer.offsetHeight-d.background.offsetHeight;d.deltaBg===0?(isNaN(K)&&(K=.8),d.deltaBg=(this._dHeight||0)*K):(isNaN(K)&&(K=
1),d.deltaBg*=K);this._fxParallaxBackground=d},
run:function(K){var d=this._fxParallaxBackground;this.transform("translate3d(0px, "+d.deltaBg*Math.min(1,K)+"px, 0px)",d.backgroundFrontLayer);d.backgroundRearLayer&&this.transform("translate3d(0px, "+d.deltaBg*Math.min(1,K)+"px, 0px)",d.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var MjK;var P5U;var gy7=function(){};
_.V=gy7.prototype;_.V._scrollTargetChanged=function(){};
_.V.scroll=function(){};
_.V._isValidScrollTarget=function(){};
_.V._toggleScrollListener=function(){};
_.V.toggleScrollListener=function(){};
_.V.createEffect=function(){};
_.V._effectsChanged=function(){};
_.V._layoutIfDirty=function(){};
_.V._boundEffect=function(){};
_.V._setUpEffect=function(){};
_.V._tearDownEffects=function(){};
_.V._runEffects=function(){};
_.V._scrollHandler=function(){};
_.V._scrollStateChanged=function(){};
_.V._getUndefinedMsg=function(){};
_.V.notifyResize=function(){};
_.V.assignParentResizable=function(){};
_.V.stopResizeNotificationsFor=function(){};
_.V._subscribeIronResize=function(){};
_.V._unsubscribeIronResize=function(){};
_.V.resizerShouldNotify=function(){};
_.V._onDescendantIronResize=function(){};
_.V._fireResize=function(){};
_.V._onIronRequestResizeNotifications=function(){};
_.V._parentResizableChanged=function(){};
_.V._notifyDescendant=function(){};
_.V._requestResizeNotifications=function(){};
_.V._findParent=function(){};
_.V._appResetLayoutHandler=function(){};
_.V.resetLayout=function(){};
_.V._notifyLayoutChanged=function(){};
_.V._notifyDescendantResize=function(){};
_.V._setThresholdTriggered=function(){};
gy7=_.vP({_template:function(){if(P5U!==void 0)return P5U;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;MjK===void 0&&(MjK=document.createElement("template"));var H=MjK;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return P5U=K},
is:"tp-yt-app-header",behaviors:[vy5,XXi],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 K=_.Xd(this.$.slot).getDistributedNodes(),d=0,f;f=K[d];d++)if(f.nodeType===Node.ELEMENT_NODE)if(f.hasAttribute("sticky")){this._stickyElRef=f;break}else this._stickyElRef||(this._stickyElRef=f);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var K=this._clampedScrollTop,d=this._height===0||K===0,f=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;d||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();d?this._updateScrollState(K,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=f}},
_updateScrollState:function(K,d){if(this._height!==0){var f=0,H=this._top;var D=this._maxHeaderTop;var S=K-this._lastScrollTop,n=Math.abs(S),u=K>this._lastScrollTop,a=performance.now();this._mayMove()&&(f=this._clamp(this.reveals?H+S:K,0,D));K>=this._dHeight&&(f=this.condenses&&!this.fixed?Math.max(this._dHeight,f):f,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&n<100){if(a-this._initTimestamp>300||this._wasScrollingDown!==u)this._initScrollTop=K,this._initTimestamp=a;K>=D&&
(Math.abs(this._initScrollTop-K)>30||n>10?(u&&K>=D?f=D:!u&&K>=this._dHeight&&(f=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((f-H)/(S/(a-this._lastTimestamp)),0,300)+"ms"):f=this._top)}D=this._dHeight===0?K>0?1:0:f/this._dHeight;d||(this._lastScrollTop=K,this._top=f,this._wasScrollingDown=u,this._lastTimestamp=a);if(d||D!==this._progress||H!==f||K===0)this._progress=D,this._runEffects(D,f),this._transformHeader(f)}},
_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(K){this.translate3d(0,-K+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&K>=this._stickyElTop?Math.min(K,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(K,d,f){return Math.min(f,Math.max(d,K))},
_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),_.Xd(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(K){switch(K){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Xd(this).querySelector("[main-title]");case "condensedTitle":return _.Xd(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var O$l;var New;_.vP({_template:function(){if(New!==void 0)return New;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;O$l===void 0&&(O$l=document.createElement("template"));var H=O$l;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return New=K},
is:"tp-yt-app-header-layout",behaviors:[XXi],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Xd(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var K=this.header;if(this.isAttached&&K){this.$.wrapper.classList.remove("initializing");K.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)K.style.left=
"",K.style.right="";else{var d=this.getBoundingClientRect(),f=document.documentElement.clientWidth-d.right;K.style.left=d.left+"px";K.style.right=f+"px"}d=this.$.contentContainer.style;f=K.offsetHeight;K.fixed&&!K.condenses&&this.hasScrollingRegion?(d.marginTop=f+"px",d.paddingTop=""):(d.paddingTop=f+"px",d.marginTop="")}}});var Ygc=new _.Z("replaceFeedContentAction");var tjS=new _.Z("alertCommand");var oyi=new _.Z("manageLabsStateCommand");var $G7=new _.Z("inlineFormRenderer");var tg=new _.Z("playlistSidebarPrimaryInfoRenderer");var Eyw=new _.Z("productDetailsThumbnailRenderer"),hUl=new _.Z("productDetailsVariantRenderer"),b$z=new _.Z("productDetailsVariantOptionRenderer"),mGK=new _.Z("productDetailsOffersContainerRenderer"),lXw=new _.Z("productDetailsOfferRenderer");var W7S=new _.Z("shoppingFlaggingRenderer");var Gmc=new _.Z("playlistBylineRenderer");var AUw=new _.Z("insertChannelTabCommand");var or=function(){return _.cP.apply(this,arguments)||this};
_.O(or,_.cP);_.V=or.prototype;_.V.activeChanged=function(){if(this.active){var K=_.E(this.hostElement).querySelector("#header");K&&_.Zp(K,"iron-resize");window.addEventListener("scroll",_.Dm(this,this.onScroll))}else window.removeEventListener("scroll",_.Dm(this,this.onScroll)),_.Zp(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.V.guideVisibleChanged=function(){var K=_.E(this.hostElement).querySelector("#header");K&&_.Zp(K,"iron-resize")};
_.V.onScroll=function(){var K=this;_.mx(this,"onScroll",function(){var d=_.E(K.hostElement).querySelector("#header");d&&d.polymerController&&(d=d.polymerController.getScrollState().progress===1?"standard":"seamed",_.Zp(K.hostElement,"yt-request-panel-mode-change",{mode:d}))},10)};
_.V.tabsChanged=function(){if(this.tabs){for(var K=null,d=0,f=this.tabs.length;d<f;++d){var H=this.tabs[d].tabRenderer;if(H&&H.selected){K=d;break}}this.selected=K}};
_.V.onTabsActivate=function(K){_.Zp(this.hostElement,"yt-navigate",{endpoint:this.tabs[K.detail.selected].tabRenderer.endpoint})};
or.prototype.tabsChanged=or.prototype.tabsChanged;or.prototype.guideVisibleChanged=or.prototype.guideVisibleChanged;or.prototype.activeChanged=or.prototype.activeChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],or.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.A(),_.B("design:type",Array)],or.prototype,"tabs",void 0);
_.x([_.A(),_.B("design:type",Object)],or.prototype,"selected",void 0);_.x([_.A(),_.B("design:type",Boolean)],or.prototype,"active",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],or.prototype,"disableHeaderFluidWidth",void 0);_.x([_.SP("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],or.prototype,"activeChanged",null);
_.x([_.SP("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],or.prototype,"guideVisibleChanged",null);_.x([_.SP("tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],or.prototype,"tabsChanged",null);or=_.x([_.uL()],or);var Tey=[_.p.YtRendererBehavior,_.lO.YtdGuideStateAwareBehavior,or.prototype];var rUU=2/3,qgZ=_.vp(130749),Qel=function(K,d){var f=this;this.element=K;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){f.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:rUU,moveAction:function(H){f.moveAction(H)},
triggerAction:function(){f.element.isReloading=!0;_.bh(_.cv(),{visualElement:qgZ});_.V2.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:f.element}})}}}};
_.K5(_.cv(),qgZ,this.layer);this.gesture=new _.nV(K,d,this.refreshConfig,"pan-down");this.attach()};
_.V=Qel.prototype;_.V.attach=function(){this.gesture.attach()};
_.V.detach=function(){this.gesture.detach()};
_.V.reset=function(){this.element.close()};
_.V.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.V.moveAction=function(K){this.element.rotation=K*360};var jeU=_.vp(130750),$I=function(K,d,f,H,D){var S=this;this.element=K;this.parent=f;this.channelHeader=H;this.ytdReduxDispatch=D;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){S.tabsStartAtInPx=S.channelHeader.clientHeight-48;var n;(n=S.selectedTab)!=null&&n.title&&(n=_.eq().resolve(_.Zd(_.jC)))&&(n=n.getCurrentPage(),S.lastVisitedTabScrollPosition=n.getScrollTop(),S.previousTab&&
((S.lastVisitedTabScrollPosition===void 0?0:S.lastVisitedTabScrollPosition<S.channelHeader.clientHeight-48)?S.scrollPositionForTabs.has(S.selectedTab.title)&&S.scrollPositionForTabs.delete(S.selectedTab.title):S.scrollPositionForTabs.set(S.selectedTab.title,n.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:C5w(),triggerAction:function(){S.navigate(S.previousTab)},
moveAction:function(n,u){S.moveAction(n,u)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-C5w(),triggerAction:function(){S.navigate(S.nextTab)},
moveAction:function(n,u){S.moveAction(n,u)}}}};
_.K5(_.cv(),jeU,this.layer);this.gesture=new _.nV(K,d,this.tabConfig);this.attach()};
$I.prototype.attach=function(){this.gesture.attach()};
$I.prototype.detach=function(){this.gesture.detach()};
$I.prototype.tabsChanged=function(K){if(K){var d=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;K=_.y(K);for(var f=K.next();!f.done;f=K.next()){f=f.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=f);var H=void 0;if((H=f)==null?0:H.selected)this.previousTab=d,this.selectedTab=f;d=f}d=this.gesture;K=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}});
d.config=K;this.scrollPositionNeedsUpdate=!0}};
$I.prototype.moveAction=function(K,d){if(!this.tabsElement){var f;this.tabsElement=(f=this.parent.header)==null?void 0:f.tabsElement;d==="right"&&this.previousTab?_.pI8(_.im.instance,this.previousTab.endpoint,{},""):d==="left"&&this.nextTab&&_.pI8(_.im.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}f=this.tabsElement._pos;d==="right"&&(K*=-1);this.tabsElement._positionBar(f.width,f.left*1+f.width*K)};
var C5w=function(){var K,d;return(d=(K=_.eq().resolve(_.jC).getCurrentPage())==null?void 0:K.clientWidth)!=null?d:0};
$I.prototype.navigate=function(K){this.element.data=void 0;if(K=K==null?void 0:K.endpoint)this.ytdReduxDispatch(RUP(!0)),_.bh(_.cv(),{visualElement:jeU}),_.V2.instance.resolveCommand({navigateAction:{endpoint:K}},{form:{element:this.element}})};var xGc;var L7P;var EJ=function(){return _.q.apply(this,arguments)||this};
_.O(EJ,_.q);EJ.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],EJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],EJ.prototype,"data",void 0);EJ=_.x([_.Q({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],EJ);
_.C(EJ,"ytd-labs-edit-renderer",function(){if(L7P!==void 0)return L7P;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return L7P=K},{mode:1});var Bet;var hg=function(){var K=_.q.apply(this,arguments)||this;K.dark=!1;K.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";K.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(hg,_.q);hg.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
hg.prototype.ready=function(){var K=document.documentElement.hasAttribute("dark");this.setBackgroundImage(K);this.dark=K};
hg.prototype.onDarkModeToggledAction=function(K){this.setBackgroundImage(K);this.dark=K};
hg.prototype.setBackgroundImage=function(K){_.f8(this.hostElement,{"--yt-labs-header-background":"url("+(K?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],hg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],hg.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],hg.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],hg.prototype,"dark",void 0);
hg=_.x([_.Q({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],hg);
_.C(hg,"ytd-labs-header-renderer",function(){if(Bet!==void 0)return Bet;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Bet=K},{mode:1});var JU5;var bg=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return K};
_.O(bg,_.q);bg.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"}}}}}};
bg.prototype.onYtToggleButton=function(K){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",K.detail.toggled)};
bg.prototype.onManageLabsState=function(K){if(K=_.P(K,oyi))K.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?K.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&K.labsItemId===this.data.labsItemId&&(K.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.ev(this.hostElement,"yt-check-labs-opted-in-state").some(function(d){return d})&&this.data.confirmationDialogCommand?_.fd(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.eq().resolve(_.pQ).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&K.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.eq().resolve(_.pQ).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
bg.prototype.onCheckLabsOptedInState=function(){var K=this.get("data.primaryButton.toggleButtonRenderer");return K?K.isToggled:!1};
_.x$.Object.defineProperties(bg.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
bg.prototype.onYtToggleButton=bg.prototype.onYtToggleButton;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],bg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],bg.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],bg.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],bg.prototype,"itemStyle",null);_.x([_.VV("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],bg.prototype,"onYtToggleButton",null);bg=_.x([_.Q({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],bg);
_.C(bg,"ytd-labs-item-renderer",function(){if(JU5!==void 0)return JU5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return JU5=K},{mode:1});var se7;var kmc;var mz=function(){return _.q.apply(this,arguments)||this};
_.O(mz,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],mz.prototype,"data",void 0);mz=_.x([_.Q({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],mz);
_.C(mz,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(kmc!==void 0)return kmc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return kmc=K},{mode:1});var wX5;var lg=function(){return _.q.apply(this,arguments)||this};
_.O(lg,_.q);lg.prototype.observeSuperchatChip=function(){if(this.data){var K={"--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)};_.f8(this.hostElement,K)}};
lg.prototype.colorFromDecimal=function(K){return _.hG(Number(K||0))};
lg.prototype.observeSuperchatChip=lg.prototype.observeSuperchatChip;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],lg.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],lg.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lg.prototype,"observeSuperchatChip",null);lg=_.x([_.Q({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],lg);
_.C(lg,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(wX5!==void 0)return wX5;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return wX5=K},{mode:1});var Wm=function(){return _.q.apply(this,arguments)||this};
_.O(Wm,_.q);Wm.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"}}}};
_.x$.Object.defineProperties(Wm.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Wm.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Wm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.EL),_.B("design:type",Object)],Wm.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Wm.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Wm.prototype,"hideMessageBlock",null);
Wm=_.x([_.Q({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Wm);
_.C(Wm,"ytd-live-chat-history-entry-renderer",function(){if(se7!==void 0)return se7;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return se7=K},{mode:1});var Z$P;var G6=function(){return _.q.apply(this,arguments)||this};
_.O(G6,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],G6.prototype,"data",void 0);G6=_.x([_.Q({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],G6);
_.C(G6,"ytd-channel-options-renderer",function(){if(Z$P!==void 0)return Z$P;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Z$P=K},{mode:1});var eUS;var Ag=function(){return _.q.apply(this,arguments)||this};
_.O(Ag,_.q);Ag.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ag.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ag.prototype,"data",void 0);Ag=_.x([_.Q({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Ag);
_.C(Ag,"ytd-settings-email-item-renderer",function(){if(eUS!==void 0)return eUS;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return eUS=K},{mode:1});var pXw;var T6=function(){return _.q.apply(this,arguments)||this};
_.O(T6,_.q);T6.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"}}}};
T6.prototype.getExpansionIcon=function(K){return K?"arrow_drop_up":"arrow_drop_down"};
T6.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.x$.Object.defineProperties(T6.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],T6.prototype,"data",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],T6.prototype,"expanded",void 0);_.x([_.W("expanded"),_.B("design:type",String),_.B("design:paramtypes",[])],T6.prototype,"emailListExpanded",null);
_.x([_.n8("#options"),_.B("design:type",Object)],T6.prototype,"options",void 0);T6=_.x([_.Q({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],T6);
_.C(T6,"ytd-settings-email-list-renderer",function(){if(pXw!==void 0)return pXw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return pXw=K},{mode:1});var KC7;var rg=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return K};
_.O(rg,_.q);rg.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"}}}};
rg.prototype.handleSignalActionSubmitForm=function(){var K,d=(K=this.formRenderer)==null?void 0:K.getForm();d&&this.data.serviceEndpoint&&_.eq().resolve(_.pQ).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},d,{element:this.hostElement})})};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],rg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],rg.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],rg.prototype,"data",void 0);_.x([_.n8("yt-form-renderer"),_.B("design:type",Object)],rg.prototype,"formRenderer",void 0);
rg=_.x([_.Q({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],rg);
_.C(rg,"ytd-settings-gaia-link-renderer",function(){if(KC7!==void 0)return KC7;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return KC7=K},{mode:1});var dcE;var q$=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return K};
_.O(q$,_.q);q$.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.DDK()&&this.set("data.hidden",!1)};
q$.prototype.onSwitchReady=function(){var K=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.M("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.HME().then(function(d){d&&(Notification.permission==="default"?K.set("data.hidden",!1):Notification.permission==="granted"&&_.JU("NotificationsDisabled").then(function(f){f||_.ev(K.hostElement,"yt-toggle-settings-switch",[K.data.id,!f]);K.set("data.hidden",!1)}).catch(function(){}))})})};
q$.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}}}}};
q$.prototype.handleUpdateOptionsCommand=function(K){(K=_.P(K,_.RH6))&&this.data&&this.data.id===K.id&&(this.set("data.hidden",K.hidden),K.text!==void 0&&this.set("data.text",K.text),K.clearOptions&&this.set("data.options",[]))};
q$.prototype.onSwitchReady=q$.prototype.onSwitchReady;q$.prototype.dataChanged=q$.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],q$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],q$.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],q$.prototype,"data",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q$.prototype,"dataChanged",null);_.x([_.VV("yt-settings-switch-ready"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q$.prototype,"onSwitchReady",null);q$=_.x([_.Q({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],q$);
_.C(q$,"ytd-settings-options-renderer",function(){if(dcE!==void 0)return dcE;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return dcE=K},{mode:1});var foP;var Qf=function(){return _.q.apply(this,arguments)||this};
_.O(Qf,_.q);Qf.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Qf.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Qf.prototype.onYtExpanderMoreTapped=Qf.prototype.onYtExpanderMoreTapped;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Qf.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Qf.prototype,"data",void 0);
_.x([_.VV("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qf.prototype,"onYtExpanderMoreTapped",null);Qf=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Qf);
_.C(Qf,"ytd-product-details-description-renderer",function(){if(foP!==void 0)return foP;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return foP=K},{mode:1});var HPy;var ju=function(){var K=_.q.apply(this,arguments)||this;K.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";K.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";K.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";K.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return K};
_.O(ju,_.q);ju.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x$.Object.defineProperties(ju.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:(d=K.offerData)==null?void 0:d.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?void 0:K.purchaseButtonRenderers)!==void 0&&((d=this.data)==null?void 0:d.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var K,d;return!((K=this.data)==null||!K.formattedFromMerchantText)&&(!((d=this.data)==null||!d.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ju.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ju.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ju.prototype,"data",void 0);
_.x([_.A({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],ju.prototype,"shippingIcon",void 0);_.x([_.A({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],ju.prototype,"shippingAddressIcon",void 0);_.x([_.A({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],ju.prototype,"googleGuaranteeIcon",void 0);
_.x([_.A({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],ju.prototype,"returnPolicyIcon",void 0);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ju.prototype,"showAdditionalFees",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ju.prototype,"showMultiPurchaseButtons",null);
_.x([_.W("data","showMultiPurchaseButtons"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ju.prototype,"showPurchaseData",null);ju=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],ju);
_.C(ju,"ytd-product-details-hero-offer-renderer",function(){if(HPy!==void 0)return HPy;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return HPy=K},{mode:1});var Dc7;var VaU;var CV=function(){return _.q.apply(this,arguments)||this};
_.O(CV,_.q);_.V=CV.prototype;_.V.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.V.onKeyDown=function(K){K=K.keyCode;K!==13&&K!==32||this.handleSelection()};
_.V.onMouseEnterImage=function(){var K;((K=this.data)==null?void 0:K.thumbnailDetails)!==void 0&&_.p1(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.V.onMouseLeaveImage=function(){_.p1(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.V.handleSelection=function(){this.data&&_.Zp(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.x$.Object.defineProperties(CV.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.isSelected)}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],CV.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],CV.prototype,"isSelected",null);CV=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],CV);
_.C(CV,"ytd-product-details-thumbnail-renderer",function(){if(VaU!==void 0)return VaU;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return VaU=K},{mode:1});var xI=function(){var K=_.q.apply(this,arguments)||this;var d={};K.actionMap=(d["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",d["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",d);K.selectedThumbnailIndex=0;K.selectItem=function(f){f.target.onKeyDown(f)};
return K};
_.O(xI,_.q);_.V=xI.prototype;_.V.handlePreviewImageSelect=function(K){this.hoverThumbnail=K};
_.V.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.V.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.V.onThumbnailSelected=function(K,d){this.selectedThumbnailIndex=d};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.V.updateOffset=function(){var K=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-K));this.ytdHorizontalListBehavior.reposition_()};
_.x$.Object.defineProperties(xI.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null?0:K.imageRenderer){var d,f;return((d=this.data)==null?void 0:(f=d.imageRenderer)==null?void 0:f.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var K;if((K=this.data)==null?0:K.imageRenderer){var d;return(d=_.P(this.data.imageRenderer[this.selectedThumbnailIndex],Eyw))==null?void 0:d.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var K=this,d,f,H,D=(H=(d=this.data)==null?void 0:(f=d.imageRenderer)==null?void 0:f.map(function(S,n){return{productDetailsThumbnailRenderer:Object.assign({},_.P(S,Eyw),{index:n,isSelected:n===K.selectedThumbnailIndex})}}))!=null?H:[];
return Object.assign({},this.data,{imageRenderer:D})}}});
xI.prototype.updateOffset=xI.prototype.updateOffset;xI.prototype.dataChanged=xI.prototype.dataChanged;xI.prototype.onThumbnailSelected=xI.prototype.onThumbnailSelected;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.wa.YtdHorizontalListBehavior),_.B("design:type",Object)],xI.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],xI.prototype,"componentBehavior",void 0);_.x([_.l([_.kc.YtActionHandlerBehavior]),_.B("design:type",Object)],xI.prototype,"actionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],xI.prototype,"data",void 0);_.x([_.A({value:"$.items.children"}),_.B("design:type",String)],xI.prototype,"itemsPath",void 0);_.x([_.A({value:3}),_.B("design:type",Number)],xI.prototype,"initialCount",void 0);
_.x([_.n8("#items"),_.B("design:type",Object)],xI.prototype,"items",void 0);_.x([_.A(),_.B("design:type",Object)],xI.prototype,"selectedThumbnailIndex",void 0);_.x([_.A(),_.B("design:type",Object)],xI.prototype,"hoverThumbnail",void 0);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xI.prototype,"showThumbnails",null);
_.x([_.VV("ytd-product-details-thumbnail-renderer-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Number]),_.B("design:returntype")],xI.prototype,"onThumbnailSelected",null);_.x([_.W("data","selectedThumbnailIndex","hoverThumbnail"),_.B("design:type",Object),_.B("design:paramtypes",[])],xI.prototype,"thumbnailDetails",null);_.x([_.W("data","selectedThumbnailIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],xI.prototype,"populatedData",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xI.prototype,"dataChanged",null);_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xI.prototype,"updateOffset",null);xI=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],xI);
_.C(xI,"ytd-product-details-image-carousel-renderer",function(){if(Dc7!==void 0)return Dc7;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Dc7=K},{mode:_.p8("kevlar_poly_si_batch_j079")?1:2});var STw;var LV=function(){return _.q.apply(this,arguments)||this};
_.O(LV,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],LV.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],LV.prototype,"data",void 0);LV=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],LV);
_.C(LV,"ytd-product-details-offer-renderer",function(){if(STw!==void 0)return STw;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return STw=K},{mode:1});var yZi;var Bm=function(){var K=_.q.apply(this,arguments)||this;K.isOffersHidden=!0;return K};
_.O(Bm,_.q);Bm.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var K,d=_.P((K=this.data)==null?void 0:K.viewOffersButton,_.tQ);d&&this.ytRendererBehavior.logExplicitClick(d)};
Bm.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.x$.Object.defineProperties(Bm.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H;return(f=_.P((K=this.data)==null?void 0:(d=K.offers)==null?void 0:d[0],lXw))==null?void 0:(H=f.offerData)==null?void 0:H.vendorLogoUrl}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Bm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Bm.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Bm.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Bm.prototype,"isOffersHidden",void 0);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Bm.prototype,"firstOfferVendorLogoUrl",null);Bm=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Bm);
_.C(Bm,"ytd-product-details-offers-container-renderer",function(){if(yZi!==void 0)return yZi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return yZi=K},{mode:1});var nq5;var iPt;var Jg=function(){return _.q.apply(this,arguments)||this};
_.O(Jg,_.q);Jg.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Jg.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.p1(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Jg.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.p1(this,"ytd-product-details-variant-image-unselect")};
_.x$.Object.defineProperties(Jg.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 K;return((K=this.data)==null?void 0:K.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((K=this.data)==null?void 0:K.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((d=this.data)==null?void 0:d.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((f=this.data)==null?void 0:f.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var K;if(((K=this.data)==null?void 0:K.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var K,d;return this.isUnavailable?(K=this.data)==null?void 0:K.variantOptionUnavailableAccessibilityLabel:(d=this.data)==null?void 0:d.variantOptionAccessibilityLabel}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Jg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Jg.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Jg.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],Jg.prototype,"displayType",void 0);
_.x([_.W("displayType","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Jg.prototype,"isImageButton",null);_.x([_.W("displayType","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Jg.prototype,"isPillButton",null);_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Jg.prototype,"isActive",null);
_.x([_.W("data"),_.A({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Jg.prototype,"isUnavailable",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Jg.prototype,"thumbnailDetails",null);_.x([_.W("isUnavailable","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Jg.prototype,"accessibilityLabel",null);Jg=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Jg);
_.C(Jg,"ytd-product-details-variant-option-renderer",function(){if(iPt!==void 0)return iPt;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return iPt=K},{mode:1});var cZt;var sJ=function(){var K=_.q.apply(this,arguments)||this;K.variantsExpanded=!1;K.hideShowMoreLessVariantButton=!0;K.initialized=!1;K.computeVariantsDebouncer=null;K.computeVariants=function(d){d=d===void 0?!1:d;K.variantsExpanded||K.showOptions()||!d||(K.variantsExpanded=!0);if(K.variantsExpanded){d=_.y(K.items.children);for(var f=d.next();!f.done;f=d.next())f.value.hidden=!1}K.initialized=!0};
return K};
_.O(sJ,_.q);_.V=sJ.prototype;_.V.ready=function(){var K=this;setTimeout(function(){K.computeVariants(!0)})};
_.V.showOptions=function(){for(var K=_.y(this.items.children),d=K.next();!d.done;d=K.next())d.value.hidden=!0;var f=this.container.getBoundingClientRect().width,H=0,D=K=0;d=!1;for(var S=_.y(this.items.children),n=S.next();!n.done;n=S.next()){n=n.value;n.hidden=!1;var u=n.getBoundingClientRect().width;if(H+u<f)H+=u;else if(++D<2)H=u;else break;K+=1;n.hasAttribute("is-active")&&(d=!0)}for(f=K;f<this.items.children.length;f++)this.items.children[f].hidden=!0;this.hideShowMoreLessVariantButton=K===this.items.children.length;
return d};
_.V.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.ZT(this.computeVariantsDebouncer,_.rh.after(100),this.computeVariants)};
_.V.onShowMoreLessVariantsButtonClick=function(){var K;(K=this.data)!=null&&K.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.V.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.x$.Object.defineProperties(sJ.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(K=this.data)==null?void 0:(d=K.variantOptionRenderers)==null?void 0:d.find(function(S){return _.P(S,b$z).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),H,D;
return(D=(H=_.P(f,b$z))==null?void 0:H.name)!=null?D:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.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"}}}});
sJ.prototype.debouncedComputeVariants=sJ.prototype.debouncedComputeVariants;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],sJ.prototype,"componentBehavior",void 0);_.x([_.l(_.Mg),_.B("design:type",Object)],sJ.prototype,"ironResizableBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],sJ.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],sJ.prototype,"variantsExpanded",void 0);_.x([_.A(),_.B("design:type",Object)],sJ.prototype,"hideShowMoreLessVariantButton",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],sJ.prototype,"initialized",void 0);_.x([_.n8("#items"),_.B("design:type",HTMLDivElement)],sJ.prototype,"items",void 0);_.x([_.n8("#container"),_.B("design:type",HTMLDivElement)],sJ.prototype,"container",void 0);
_.x([_.n8("#more-variants-button"),_.B("design:type",HTMLElement)],sJ.prototype,"moreVariantsButton",void 0);_.x([_.W("data"),_.B("design:type",String),_.B("design:paramtypes",[])],sJ.prototype,"selectedOptionName",null);_.x([_.SP("data","variantsExpanded"),_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sJ.prototype,"debouncedComputeVariants",null);
_.x([_.W("data"),_.B("design:type",String),_.B("design:paramtypes",[])],sJ.prototype,"displayType",null);_.x([_.W("displayType"),_.B("design:type",Object),_.B("design:paramtypes",[])],sJ.prototype,"variantItemsClassname",null);sJ=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],sJ);
_.C(sJ,"ytd-product-details-variant-renderer",function(){if(cZt!==void 0)return cZt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return cZt=K},{mode:1});var kI=function(){return _.q.apply(this,arguments)||this};
_.O(kI,_.q);
kI.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"}}}};
_.x$.Object.defineProperties(kI.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(d=_.P((K=this.data)==null?void 0:K.offersContainerRenderer,mGK))==null?void 0:d.offers;return f!==void 0&&(f==null?void 0:f.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 K,d,f;return((f=(K=this.data)==null?void 0:(d=K.variants)==null?void 0:d.map(function(H){var D,S;H=(S=(D=_.P(H,hUl))==null?void 0:D.variantOptionRenderers)==null?void 0:S.find(function(u){var a;return((a=_.P(u,b$z))==null?void 0:a.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var n;return(n=_.P(H,b$z))==null?void 0:n.name}).filter(function(H){return typeof H==="string"}))!=null?f:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H=(d=_.P((K=this.data)==null?void 0:K.shoppingFlaggingRenderer,W7S))==null?void 0:(f=d.reportButton)==null?void 0:f.buttonRenderer;if(H)return{text:H.text,command:H.command,icon:{iconType:"FLAG"},accessibilityData:H.accessibilityData,trackingParams:H.trackingParams,loggingDirectives:H.loggingDirectives}}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],kI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],kI.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],kI.prototype,"data",void 0);_.x([_.n8("#image-carousel-renderer"),_.B("design:type",Object)],kI.prototype,"imageCarouselRenderer",void 0);
_.x([_.n8("#hero-offer-renderer"),_.B("design:type",Object)],kI.prototype,"productDetailsHeroOfferRenderer",void 0);_.x([_.n8("#variants"),_.B("design:type",Object)],kI.prototype,"productDetailsVariantRenderer",void 0);_.x([_.n8("#offers"),_.B("design:type",Object)],kI.prototype,"productDetailsOffersContainerRenderer",void 0);_.x([_.n8("#description-renderer"),_.B("design:type",Object)],kI.prototype,"productDetailsDescriptionRenderer",void 0);
_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kI.prototype,"showPurchaseData",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kI.prototype,"showHeroOfferRenderer",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kI.prototype,"showBrandText",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kI.prototype,"showOffers",null);
_.x([_.W("showOffers","showPurchaseData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kI.prototype,"showBuySeparator",null);_.x([_.W("showOffers","showPurchaseData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kI.prototype,"showBuyCard",null);_.x([_.W("data"),_.B("design:type",String),_.B("design:paramtypes",[])],kI.prototype,"selectedVariantsText",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],kI.prototype,"shoppingReportingButtonData",null);
kI=_.x([_.Q({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],kI);
_.C(kI,"ytd-product-details-renderer",function(){if(nq5!==void 0)return nq5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return nq5=K},{mode:1});var upw;var aoS;var Ioy;var wg=function(){return _.q.apply(this,arguments)||this};
_.O(wg,_.q);wg.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.x$.Object.defineProperties(wg.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],wg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],wg.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],wg.prototype,"formattedAmount",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],wg.prototype,"ariaLabel",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data.style"),_.B("design:type",String),_.B("design:paramtypes",[])],wg.prototype,"vcBalanceWidgetStyle",null);wg=_.x([_.N7({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],wg);
_.C(wg,"yt-vc-balance-renderer",function(){if(Ioy===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;aoS===void 0&&(aoS=document.createElement("template"));var H=aoS;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Ioy=K}K=Ioy;return K},{mode:2});_.Na("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var ZZ=function(){return _.q.apply(this,arguments)||this};
_.O(ZZ,_.q);_.x$.Object.defineProperties(ZZ.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:""}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],ZZ.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ZZ.prototype,"data",void 0);_.x([_.A({selectorArgs:["data.vcBalanceEntityKey"],selector:function(K,d){return _.DR(K.entities,"vcBalanceEntity",d)}}),
_.B("design:type",Object)],ZZ.prototype,"vcBalanceEntity",void 0);_.x([_.W("vcBalanceEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],ZZ.prototype,"formattedAmount",null);_.x([_.W("vcBalanceEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],ZZ.prototype,"vcBalanceAriaLabel",null);ZZ=_.x([_.Q({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],ZZ);
_.C(ZZ,"ytd-vc-balance-renderer",function(){if(upw!==void 0)return upw;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return upw=K},{mode:1});var UcP;var eu=function(){var K=_.q.apply(this,arguments)||this;K.rotation=0;K.isReloading=!1;return K};
_.O(eu,_.q);eu.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
eu.prototype.reset=function(){this.hostElement.style.opacity=""};
eu.prototype.close=function(){var K=this;return _.c(function(d){if(d.nextAddress==1)return _.I(d,K.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);K.hostElement.style.opacity="0";_.iQ(d)})};
eu.prototype.rotationChanged=eu.prototype.rotationChanged;_.x([_.A(),_.B("design:type",Object)],eu.prototype,"rotation",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],eu.prototype,"isReloading",void 0);_.x([_.n8("#icon"),_.B("design:type",HTMLElement)],eu.prototype,"icon",void 0);_.x([_.SP("rotation"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eu.prototype,"rotationChanged",null);
eu=_.x([_.Q({disableElementRegistration:!0,is:"ytd-refresh"})],eu);
_.C(eu,"ytd-refresh",function(){if(UcP!==void 0)return UcP;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return UcP=K},{mode:1});var Rat;var pV=function(){return _.q.apply(this,arguments)||this};
_.O(pV,_.q);pV.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"}}}};
pV.prototype.dataChanged=function(){if(this.data){var K=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var d=_.kA(this.data.banner.thumbnails,this.hostElement.clientWidth);d&&(d.indexOf("//")===0&&(d="https:"+d),this.hasBannerArt=!0,_.f8(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+d+")"}))}this.hasBannerArt!==K&&_.E(this.hostElement).querySelector("#header").fire("iron-resize")}};
pV.prototype.updateSelectedFromBinding=function(K){this.selected=K.detail.value};
pV.prototype.dataChanged=pV.prototype.dataChanged;_.x([_.l(Tey),_.B("design:type",Object)],pV.prototype,"ytdTabbedHeaderBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.bO),_.B("design:type",Object)],pV.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],pV.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],pV.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],pV.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Number)],pV.prototype,"selected",void 0);_.x([_.A(),_.B("design:type",Boolean)],pV.prototype,"active",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],pV.prototype,"hasBannerArt",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pV.prototype,"dataChanged",null);pV=_.x([_.Q({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],pV);
_.C(pV,"ytd-interactive-tabbed-header-renderer",function(){if(Rat!==void 0)return Rat;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Rat=K},{mode:1});var FCl;var Kl=function(){return _.q.apply(this,arguments)||this};
_.O(Kl,_.q);Kl.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Kl.prototype.computeActionsAlignment=function(K){return(K==null?void 0:K.actionsAlignment)||""};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Kl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Kl.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.B("design:type",String)],Kl.prototype,"actionsAlignment",void 0);
Kl=_.x([_.Q({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Kl);
_.C(Kl,"ytd-page-footer-renderer",function(){if(FCl!==void 0)return FCl;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return FCl=K},{mode:1});var zaP;var XjU;var du=function(){var K=_.q.apply(this,arguments)||this;K.isEditing=!1;K.useSlot=!1;K.isMultiline=!1;return K};
_.O(du,_.q);_.V=du.prototype;_.V.onKeydown=function(K){if(K.keyCode===13&&!this.isMultiline)this.onSave();else if(K.keyCode===27)this.onCancel()};
_.V.computeComponentStyle=function(K){return(K==null?0:K.style)?K.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.V.computeisMultiline=function(K){if(this.multilineOverride!==void 0)return this.multilineOverride;var d,f;return!!(K==null?0:(d=K.formField)==null?0:(f=d.textInputFormFieldRenderer)==null?0:f.isMultiline)};
_.V.computeTextDisplayed=function(K,d){if(K)return K;if(d)return d};
_.V.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.V.onSave=function(){if(this.textForm.validate()){this.textForm.save();var K=this.textForm.value;if(K)this.set("data.textDisplayed",_.rB(K));else{var d;((d=this.data)==null?0:d.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.mZ("inline-form-changed",this.data));this.isEditing=!1}};
_.V.onCancel=function(){var K=_.qQ(this.data.textDisplayed);K===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(K);this.isEditing=!1};
du.prototype.onKeydown=du.prototype.onKeydown;_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],du.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],du.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],du.prototype,"isEditing",void 0);_.x([_.A(),_.B("design:type",Object)],du.prototype,"useSlot",void 0);_.x([_.A(),_.B("design:type",Boolean)],du.prototype,"multilineOverride",void 0);_.x([_.A(),_.B("design:type",Boolean)],du.prototype,"enableOverlayTheme",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.B("design:type",String)],du.prototype,"componentStyle",void 0);
_.x([_.A({computed:"computeisMultiline(data)"}),_.B("design:type",Object)],du.prototype,"isMultiline",void 0);_.x([_.n8("#text-form"),_.B("design:type",Object)],du.prototype,"textForm",void 0);_.x([_.VV("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],du.prototype,"onKeydown",null);du=_.x([_.Q({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],du);
_.C(du,"ytd-inline-form-renderer",function(){if(XjU!==void 0)return XjU;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return XjU=K},{mode:1});var vqE;var fl=function(){var K=_.q.apply(this,arguments)||this;K.previousSelectValue=void 0;K.selectedItemMessage=void 0;return K};
_.O(fl,_.q);fl.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
fl.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var K,d,f,H,D=(K=this.data)==null?void 0:(d=K.dropdown)==null?void 0:(f=d.dropdownRenderer)==null?void 0:(H=f.entries)==null?void 0:H.map(function(u){return u.privacyDropdownItemRenderer});
K=_.y(D!=null?D:[]);for(d=K.next();!d.done;d=K.next())if((d=d.value)&&d.int32Value===this.selectedValue){this.selectedItemMessage=d.itemMessage;break}}else this.selectedItemMessage=void 0;var S;(S=this.onValueChanged)==null||S.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var n;(n=this.data)!=null&&n.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
fl.prototype.onValueChangedForSelectedValue=function(K){this.selectedValue=K.detail.value};
fl.prototype.selectedValueChanged=fl.prototype.selectedValueChanged;_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],fl.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],fl.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],fl.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],fl.prototype,"theme",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Number)],fl.prototype,"selectedValue",void 0);_.x([_.A(),_.B("design:type",Function)],fl.prototype,"onValueChanged",void 0);
_.x([_.an("selectedValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fl.prototype,"selectedValueChanged",null);fl=_.x([_.Q({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],fl);
_.C(fl,"ytd-dropdown-form-field-renderer",function(){if(vqE!==void 0)return vqE;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return vqE=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var MaZ;var H7=function(){return _.q.apply(this,arguments)||this};
_.O(H7,_.q);_.x$.Object.defineProperties(H7.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var K=[],d=_.y(this.data||[]),f=d.next();!f.done;f=d.next())(f=_.P(f.value,Gmc))&&K.push(f);return K}}});
_.x([_.A(),_.B("design:type",Array)],H7.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],H7.prototype,"byline",null);H7=_.x([_.Q({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],H7);
_.C(H7,"ytd-playlist-byline-renderer",function(){if(MaZ!==void 0)return MaZ;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return MaZ=K},{mode:1});var PCw;var DY=function(){var K=_.q.apply(this,arguments)||this;K.rtlBullet=_.M("web_playlist_stats_rtl_bullet_icon_killswitch");K.modern=_.M("web_modern_buttons");K.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return K};
_.O(DY,_.q);_.V=DY.prototype;_.V.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"}}}}};
_.V.attached=function(){};
_.V.computeIsCustomThumbnail=function(K){return K?!!K.playlistCustomThumbnailRenderer:!1};
_.V.onYtNavigate=function(K,d){if(d&&d.actions&&d.actions.indexOf("shuffle")>-1){K=_.eq().resolve(_.Yf);var f=d.tempData||{};f.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);d.tempData=f;K.isShuffleNextPlaylist=!0}};
_.V.onUpdatePlaylistAction=function(K){var d;K=(d=_.P(K,_.B7k))==null?void 0:d.updatedRenderer;if(d=_.P(K,tg))this.data=d};
_.V.computeStyleType=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.V.computeThumbnailWidth=function(K){return K==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.V.computeHideThumbnailAria=function(K){if(K==null?0:K.thumbnailOverlays)for(var d=0;d<K.thumbnailOverlays.length;d++){var f=void 0;if((f=K.thumbnailOverlays[d])==null?0:f.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
DY.prototype.onYtNavigate=DY.prototype.onYtNavigate;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],DY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],DY.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],DY.prototype,"ytComponentBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],DY.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],DY.prototype,"rtlBullet",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.B("design:type",String)],DY.prototype,"styleType",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],DY.prototype,"thumbnailWidth",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],DY.prototype,"modern",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.B("design:type",Boolean)],DY.prototype,"isCustomThumbnail",void 0);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],DY.prototype,"onYtNavigate",null);
DY=_.x([_.Q({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],DY);
_.C(DY,"ytd-playlist-sidebar-primary-info-renderer",function(){if(PCw!==void 0)return PCw;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return PCw=K},{mode:1});var gqK;var VR=function(){return _.q.apply(this,arguments)||this};
_.O(VR,_.q);VR.prototype.computeOwnerVisibility=function(K){return!(!K.videoOwner&&!K.button)};
VR.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],VR.prototype,"data",void 0);VR=_.x([_.Q({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],VR);
_.C(VR,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(gqK!==void 0)return gqK;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return gqK=K},{mode:1});var OPw;var Sr=function(){var K=_.q.apply(this,arguments)||this;K.expanded=!1;K.isCompact=!1;return K};
_.O(Sr,_.q);_.V=Sr.prototype;_.V.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.V.dataChanged=function(){this.data&&_.TY(_.E(this.text),_.phB(_.fnv,_.qQ(this.data.text||null)))};
_.V.computeAutoScrollEnabled=function(K,d){return K&&!d};
_.V.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.V.toggleOnTap=function(){this.expanded=!this.expanded};
Sr.prototype.expandedChanged=Sr.prototype.expandedChanged;Sr.prototype.dataChanged=Sr.prototype.dataChanged;_.x([_.l(_.ojZ),_.B("design:type",Object)],Sr.prototype,"ytdAutoScrollBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Sr.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Sr.prototype,"expanded",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Sr.prototype,"isCompact",void 0);_.x([_.A({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.B("design:type",Boolean)],Sr.prototype,"autoScrollEnabled",void 0);_.x([_.n8("#text"),_.B("design:type",Object)],Sr.prototype,"text",void 0);_.x([_.n8("#expander-icon"),_.B("design:type",Object)],Sr.prototype,"expanderIcon",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sr.prototype,"dataChanged",null);_.x([_.SP("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sr.prototype,"expandedChanged",null);Sr=_.x([_.Q({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Sr);
_.C(Sr,"ytd-channel-legal-info-renderer",function(){if(OPw!==void 0)return OPw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return OPw=K},{mode:1});var NfP;var YTS=_.iB("DOWNLOAD",{},"Download"),taz=_.iB("DOWNLOADING",{},"Downloading"),oq7=_.iB("DOWNLOADED",{},"Downloaded"),yR=function(){var K=_.q.apply(this,arguments)||this;K.downloadProgress=0;K.isDownloadComplete=!1;K.transferState="TRANSFER_STATE_UNKNOWN";return K};
_.O(yR,_.q);_.V=yR.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.dataChanged=function(){var K;(K=this.data)!=null&&K.tooltip||(K=_.$o(_.j3().getState(),this.playlistId),this.updateButtonState(K))};
_.V.computePlaylistId=function(K){return K};
_.V.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.V.updateButtonState=function(K){if(this.data&&(this.data.tooltip!==taz||!_.IO(K))){this.isDownloadComplete=!1;switch(K){case "TRANSFER_STATE_UNKNOWN":K=YTS;var d="OFFLINE_DOWNLOAD";var f="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":K=oq7;d="OFFLINE_PIN";f="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":K=taz;d="OFFLINE_DOWNLOADING_ZERO";f="ACTION_REMOVE_WITH_PROMPT";
break;default:K=YTS,d="OFFLINE_DOWNLOAD",f="ACTION_ADD"}var H=Object.assign({},this.data);H.tooltip=K;H.accessibilityData={accessibilityData:{label:K}};H.icon={iconType:d};H.size="SIZE_DEFAULT";_.P(H.command,_.VF)&&(_.P(H.command,_.VF).action=f);this.set("data",H)}};
_.V.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var K="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?K="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?K="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?K="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?K="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?K="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(K="OFFLINE_PIN",this.isDownloadComplete=!0);var d;K!==((d=this.data.icon)==null?void 0:d.iconType)&&(d=Object.assign({},this.data),d.tooltip=taz,d.accessibilityData={accessibilityData:{label:taz}},d.icon={iconType:K},_.P(d.command,_.VF)&&(_.P(d.command,_.VF).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",d))}};
yR.prototype.updateProgress=yR.prototype.updateProgress;yR.prototype.onTransferStateChanged=yR.prototype.onTransferStateChanged;yR.prototype.dataChanged=yR.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],yR.prototype,"ytdReduxBehavior",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],yR.prototype,"forceIconButton",void 0);
_.x([_.A({value:!0}),_.B("design:type",Boolean)],yR.prototype,"forceIconOnly",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],yR.prototype,"overrides",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],yR.prototype,"buttonTooltipPosition",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],yR.prototype,"styleActionButton",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],yR.prototype,"disableTextTransform",void 0);
_.x([_.A({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.B("design:type",String)],yR.prototype,"playlistId",void 0);_.x([_.A(),_.B("design:type",Object)],yR.prototype,"data",void 0);_.x([_.A({selector:_.YIn,selectorArgs:["playlistId"]}),_.B("design:type",Object)],yR.prototype,"downloadProgress",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],yR.prototype,"isDownloadComplete",void 0);
_.x([_.A({selector:_.$o,selectorArgs:["playlistId"]}),_.B("design:type",String)],yR.prototype,"transferState",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],yR.prototype,"showTooltips",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],yR.prototype,"sendCommandWhenDisabled",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],yR.prototype,"disabled",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yR.prototype,"dataChanged",null);_.x([_.an("transferState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yR.prototype,"onTransferStateChanged",null);_.x([_.an("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yR.prototype,"updateProgress",null);
yR=_.x([_.Q({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],yR);
_.C(yR,"ytd-download-playlist-button-renderer",function(){if(NfP!==void 0)return NfP;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return NfP=K},{mode:1});var $cU;_.sP(_.hUs,"thumbnail-overlay-button-view-model",{props:{data:_.rs,lockupExperiments:_.rs}});var nl=function(){var K=_.q.apply(this,arguments)||this;K.isSquare=!1;K.isVertical=!1;return K};
_.O(nl,_.q);nl.prototype.computeIsSquare=function(K){return K!=null&&K.thumbnail?i$t(K.thumbnail)==="SQUARE":!1};
nl.prototype.computeIsVertical=function(K){return K!=null&&K.thumbnail?i$t(K.thumbnail)==="VERTICAL":!1};
nl.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.B("design:type",Object)],nl.prototype,"isSquare",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.B("design:type",Object)],nl.prototype,"isVertical",void 0);
_.x([_.A(),_.B("design:type",Object)],nl.prototype,"data",void 0);nl=_.x([_.Q({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],nl);
_.C(nl,"ytd-hero-playlist-thumbnail-renderer",function(){if($cU!==void 0)return $cU;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return $cU=K},{mode:1});var iu=function(){var K=_.q.apply(this,arguments)||this;K.isDarkTheme=!1;K.isUltraWide=!1;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return K};
_.O(iu,_.q);_.V=iu.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.eq();var K;(K=_.eq().resolve(_.Zd(_.j5)))!=null&&(K.headerElement=this.hostElement)};
_.V.detached=function(){var K;(K=_.eq().resolve(_.Zd(_.j5)))!=null&&(K.headerElement=void 0)};
_.V.onUpdateHeader=function(K){(K=K.detail)&&this.set("data",K)};
_.V.computeTextDisplayed=function(K){if(K)return K.textDisplayed?K.textDisplayed:K.placeholder};
_.V.gradientColorToLinearGradientStop=function(K){var d=this.isDarkTheme?K.darkThemeColor:K.lightThemeColor;return d?_.hG(d)+" "+((K==null?void 0:K.startLocation)||0)*100+"%":"transparent"};
_.V.onWindowResize=function(){var K;((K=this.data)==null?0:K.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.V.onIronResize=function(K){this.isUltraWide=!K.detail.value};
_.V.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.V.onUpdatePlaylistName=function(K){var d=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},K.detail.value));_.jW(this,function(){var f;(f=d.editableTitle)==null||f.resize()})};
_.V.onUpdatePlaylistDescription=function(K){var d=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},K.detail.value));_.jW(this,function(){var f;(f=d.editableDescriptionInlineExpander)==null||f.resize()})};
_.V.getCinematicData=function(K){return _.P(K==null?void 0:K.cinematicContainer,_.M$)};
_.x$.Object.defineProperties(iu.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 K,d=(K=this.getCinematicData(this.data))==null?void 0:K.config;return(K=this.isDarkTheme?d==null?void 0:d.darkThemeBackgroundColor:d==null?void 0:d.lightThemeBackgroundColor)?"background-color:"+_.E1(K)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var K;return _.P((K=this.data)==null?void 0:K.descriptionForm,$G7)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var K=this,d,f,H;return"background:linear-gradient(to bottom, "+(((H=(d=this.getCinematicData(this.data))==null?void 0:(f=d.gradientColorConfig)==null?void 0:f.map(function(D){return K.gradientColorToLinearGradientStop(D)}))==null?void 0:H.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var K;return _.qQ((K=this.data)==null?void 0:K.descriptionTapText)}}});
iu.prototype.onUpdateHeader=iu.prototype.onUpdateHeader;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],iu.prototype,"actionHandlerBehavior",void 0);_.x([_.n8("#description-inline-expander"),_.B("design:type",Object)],iu.prototype,"descriptionInlineExpander",void 0);
_.x([_.n8("#editable-description-inline-expander"),_.B("design:type",Object)],iu.prototype,"editableDescriptionInlineExpander",void 0);_.x([_.A(),_.B("design:type",Object)],iu.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],iu.prototype,"isUltraWide",void 0);_.x([_.n8("#editable-title-display"),_.B("design:type",Object)],iu.prototype,"editableTitle",void 0);_.x([_.W("isUltraWide"),_.B("design:type",Object),_.B("design:paramtypes",[])],iu.prototype,"maxDescriptionLines",null);
_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iu.prototype,"noCinematicData",null);_.x([_.VV("yt-new-playlist-header"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],iu.prototype,"onUpdateHeader",null);_.x([_.W("data","isDarkTheme"),_.B("design:type",Object),_.B("design:paramtypes",[])],iu.prototype,"backgroundStyle",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iu.prototype,"descriptionFormData",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iu.prototype,"getDropdownTheme",null);_.x([_.W("data","isDarkTheme"),_.B("design:type",String),_.B("design:paramtypes",[])],iu.prototype,"gradientStyle",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iu.prototype,"descriptionTapText",null);
iu=_.x([_.Q({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],iu);
_.C(iu,"ytd-playlist-header-renderer",function(){if(zaP!==void 0)return zaP;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return zaP=K},{mode:_.p8("kevlar_poly_si_batch_j078")?1:2});var Eqi;var haZ;var c7=function(){return _.q.apply(this,arguments)||this};
_.O(c7,_.q);c7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],c7.prototype,"data",void 0);c7=_.x([_.Q({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],c7);
_.C(c7,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(haZ!==void 0)return haZ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return haZ=K},{mode:1});var uu=function(){return _.q.apply(this,arguments)||this};
_.O(uu,_.q);
uu.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}}}}};
uu.prototype.computeUsePremiumShowStyle=function(K){if(!K||!K.items)return!1;for(var d=0;d<K.items.length;d++)if(_.P(K.items[d],tg)){var f=void 0;return((f=_.P(K.items[d],tg))==null?void 0:f.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],uu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],uu.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.B("design:type",Boolean)],uu.prototype,"usePremiumShowStyle",void 0);
uu=_.x([_.Q({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],uu);
_.C(uu,"ytd-playlist-sidebar-renderer",function(){if(Eqi!==void 0)return Eqi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Eqi=K},{mode:1});var bPt;var mcw;var loc=function(K,d,f,H,D,S,n,u){this.minWidth=K;this.minHeight=d;this.recommendedWidth=f;this.recommendedHeight=H;this.JSC$19466_maxFileSize=D;this.title=S;this.bannerGalleryTitle=n;this.channelId=u;this.picker_=null;K=_.PFX("yt-banner");d=K.addView;f=(new zUi("youtubebanner")).addUploadMetadata("silo_id","19");f.opts.ytMaxFileSize=this.JSC$19466_maxFileSize;H=this.recommendedHeight;f.opts.ytRecWidth=this.recommendedWidth;f.opts.ytRecHeight=H;d.call(K,f);K.addView(new _.RZ);d=K.addView;f=new _.RZ;
f.opts.type="ytbanner";d.call(K,f.JSC$8079_setLabel(this.bannerGalleryTitle));d=K.setTitle(this.title).setSize(1E3);d.urlParamMap_.set("thumbs","orig");f=this.minWidth;H=this.minHeight;if(isNaN(f)||isNaN(H))throw Error("kb`"+f+"`"+H);d.urlParamMap_.set("minSize",f+"x"+H);d.urlParamMap_.set("cropMode","ytcb");this.builder_=K};
loc.prototype.open=function(){var K=this;return new _.ip(function(d,f){_.lqJ(K.builder_,function(H){H.action=="picked"?d(H):H.action=="cancel"&&f(Error("Vl"))});
K.picker_&&K.picker_.dispose();K.picker_=K.builder_.build();K.picker_.setVisible(!0)})};
loc.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var WC7=function(K){this.channelId=K},GaS=function(K,d){var f="";
d.viewToken&&(f=d.viewToken[2].type);var H=d.docs[0];d=H.crop;K={channel_id:K.channelId,fife_url:H.thumbnails[0].url,photo_id:H.id,is_gallery_image:f=="ytbanner"};d&&(K.crop_top=d.top,K.crop_right=d.right,K.crop_bottom=d.bottom,K.crop_left=d.left);return _.otB("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:K})};var aV=function(){var K=_.q.apply(this,arguments)||this;K.ariaLabel=null;return K};
_.O(aV,_.q);_.V=aV.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.detached=function(){this.picker&&this.picker.dispose()};
_.V.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.V.computeAriaLabel=function(K){return K};
_.V.onTap=function(){var K=this,d;if((d=this.data)==null||!d.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new loc(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 f;(f=this.picker)==null||f.open().then(function(H){K.handleBannerPicked(H)},function(){})}};
_.V.handleBannerPicked=function(K){var d=this;this.uploader||(this.uploader=new WC7(this.data.channelId||""));this.message=this.data.uploadingText;GaS(this.uploader,K).then(function(f){d.handleBannerUploadSucceeded(f)},function(f){d.handleBannerUploadFailed(f)})};
_.V.handleBannerUploadSucceeded=function(K){K&&K.errors?this.handleBannerUploadFailed(K):(_.Zp(this.hostElement,"yt-banner-updated",K),this.message=null)};
_.V.handleBannerUploadFailed=function(K){this.message=K&&K.errors&&K.errors.length?K.errors[0]:null};
aV.prototype.dataChanged=aV.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],aV.prototype,"componentBehavior",void 0);_.x([_.l(_.gO),_.B("design:type",Object)],aV.prototype,"ironButtonState",void 0);_.x([_.A(),_.B("design:type",Object)],aV.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.B("design:type",Object)],aV.prototype,"ariaLabel",void 0);
_.x([_.A(),_.B("design:type",Object)],aV.prototype,"message",void 0);_.x([_.A(),_.B("design:type",Object)],aV.prototype,"picker",void 0);_.x([_.A(),_.B("design:type",Object)],aV.prototype,"uploader",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aV.prototype,"dataChanged",null);aV=_.x([_.Q({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],aV);
_.C(aV,"ytd-channel-banner-editor-renderer",function(){if(mcw!==void 0)return mcw;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return mcw=K},{mode:1});var AZK;var Tfz=_.Am(["#"]),IV=function(){return _.q.apply(this,arguments)||this};
_.O(IV,_.q);IV.prototype.computeHrefWithDefault=function(K){return this.ytComponentBehavior.computeHref_(K,!0)||_.g5(Tfz)};
IV.prototype.dataChanged=function(){var K=this.data;K&&K.targetId&&_.RW2(_.aC(),K.targetId,this.moreIcon)};
IV.prototype.dataChanged=IV.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],IV.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],IV.prototype,"data",void 0);_.x([_.n8("#more-icon"),_.B("design:type",Object)],IV.prototype,"moreIcon",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IV.prototype,"dataChanged",null);
IV=_.x([_.Q({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],IV);
_.C(IV,"ytd-channel-tagline-renderer",function(){if(AZK!==void 0)return AZK;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return AZK=K},{mode:1});var rZi;var U6=function(){return _.q.apply(this,arguments)||this};
_.O(U6,_.q);_.V=U6.prototype;_.V.ready=function(){var K=this;_.E(this.hostElement).querySelector("#form").addEventListener("submit",function(d){K.onSubmit(d)})};
_.V.onDataChanged=function(){var K;((K=this.data)==null?0:K.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.V.onIconButtonKeydown=function(K){K.keyCode===13&&this.iconButton.click()};
_.V.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.V.openOnClickHandler=function(){this.input.focus()};
_.V.onSubmit=function(K){K.preventDefault();return!1};
_.V.submitOnEnterKeyUp=function(K){var d;if(K.keyCode===13&&((d=this.data)==null?0:d.expandedText)){K=this.data.endpoint;d=_.PR.unsafeClone(K);var f;((f=_.P(d==null?void 0:d.commandMetadata,_.B0))==null?0:f.url)?(_.P(d.commandMetadata,_.B0).url=_.lp(_.P(d.commandMetadata,_.B0).url,"query",this.data.expandedText),_.P(d,_.is)&&(_.P(d,_.is).query=this.data.expandedText),_.Zp(this.hostElement,"yt-navigate",{endpoint:d,tempData:{disableCache:!0}})):(f=new _.X4("Error: Trying to navigate to an endpoint without url",
K),_.$7(f))}};
_.V.updateDataExpandedTextFromBinding=function(K){this.set("data.expandedText",K.detail.value)};
U6.prototype.onDataChanged=U6.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.aaU),_.B("design:type",Object)],U6.prototype,"ytdExpandableInputBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],U6.prototype,"data",void 0);_.x([_.n8("#input"),_.B("design:type",Object)],U6.prototype,"input",void 0);_.x([_.n8("#icon-button"),_.B("design:type",HTMLElement)],U6.prototype,"iconButton",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U6.prototype,"onDataChanged",null);U6=_.x([_.Q({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],U6);
var cUy=_.eP()(U6,"ytd-expandable-tab-renderer",function(){if(rZi===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);rZi=K}K=rZi;return K},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var qTt;var RV=function(){var K=_.q.apply(this,arguments)||this;K.avatarSize=80;K.ariaLabel=_.iB("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return K};
_.O(RV,_.q);RV.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
RV.prototype.computeHref=function(K){var d;return((d=_.P(K,_.TE))==null?0:d.url)?this.componentBehavior.computeHref_(K):null};
RV.prototype.onTap=function(){var K,d;(K=this.data)==null||!K.editAvatarServiceEndpoint||((d=_.P(this.data.editAvatarServiceEndpoint,_.TE))==null?0:d.url)||_.eq().resolve(_.pQ).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.x([_.l(_.gO),_.B("design:type",Object)],RV.prototype,"ironButtonState",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],RV.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],RV.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],RV.prototype,"avatarSize",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],RV.prototype,"ariaLabel",void 0);RV=_.x([_.Q({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],RV);
_.C(RV,"ytd-channel-avatar-editor",function(){if(qTt!==void 0)return qTt;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return qTt=K},{mode:1});var Q5w=_.C8(function(K){var d=K.data;var f=K.noPadding;var H=K.enableBanner;var D=K.cinematicContainerTopbarOffset;var S=K.allowCinematicContainerOverflow;var n=K.displayAsSidebar;K=K.className;_.ol(function(){d().tagManagerId&&(_.F8(d().tagManagerId,_.mD("GL")),F7l(d().tagManagerId))});
var u=_.yF(aXz,function(){return d().pageHeaderEntityKey});
return _.U("yt-page-header-renderer",{class:_.SC("page-header-renderer-wiz",K)},_.U(_.z1,{data:function(){var a;return((a=u())==null?0:a.header)?u().header:(n==null?0:n())&&d().sidebarContent?d().sidebarContent:d().content}},{pageHeaderViewModel:function(a){return _.U(_.BpJ,{data:a.data,
noPadding:f,enableBanner:H,cinematicContainerTopbarOffset:D,allowCinematicContainerOverflow:S,displayAsSidebar:function(){return(n==null?void 0:n())&&d().enableSidebarView}})}}))},"yi");
Q5w.idomCompat=!0;_.sP(Q5w,"yt-page-header-renderer",{props:{data:_.rs,noPadding:_.rs,enableBanner:_.rs,cinematicContainerTopbarOffset:_.rs,allowCinematicContainerOverflow:_.rs,displayAsSidebar:_.rs,className:_.rs}});_.sP(_.x4v,"yt-image-banner-view-model",{props:{data:_.rs,isPositionRelative:_.rs}});_.sP(_.nDv,"yt-tab-group-shape",{props:{shape:_.rs}});var Fl=function(){var K=_.q.apply(this,arguments)||this;K.expandableCustomTabRenderable=function(d){return u5E(d,function(){return void K.onSearchNavigate()})};
K.isRichGrid=!1;K.isConstrainedList=!1;K.richGridMiniMode=!1;K.richGridStyle="RICH_GRID_STYLE_UNKNOWN";K.isRichGridShorts=!1;K.responsiveSizing="COMPACT";K.disableGridStateAware=!1;K.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return K};
_.O(Fl,_.q);_.V=Fl.prototype;_.V.computeHeaderDisabled=function(K,d){return d||!K||this.tabsHidden};
_.V.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.V.computeIsRichGridShorts=function(K){return K==="RICH_GRID_STYLE_SHORTS_GRID"||K==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.V.computeImageBannerViewModel=function(){var K,d;return _.P((d=_.P((K=this.data)==null?void 0:K.content,_.TOs))==null?void 0:d.banner,_.mgH)};
_.V.computeHasCinematicContainer=function(){var K,d;return!((d=_.P((K=this.data)==null?void 0:K.content,_.TOs))==null||!d.background)};
_.V.handleHeaderResize=function(){var K=_.E(this.hostElement).querySelector("#header");K&&_.Zp(K,"iron-resize")};
_.V.handleInsertTabCommand=function(K){var d=_.P(K,AUw);d&&(d.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(f){return f.tabRenderer&&f.tabRenderer.tabIdentifier===d.tabIdentifier})||this.splice("tabs",d.tabIndex||-1,0,d.tab))};
_.V.handleRefreshChannelTabAction=function(K){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===K&&_.Zp(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.V.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.f8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.V.observerRichGridSlimItemsPerRow=function(){_.f8(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.V.updateCssVars=function(){this.richGridItemsPerRow&&_.f8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.di("rich_grid_max_item_width",500))+16)-16+"px"})};
_.V.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.f8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.V.onDataChanged=function(){this.handleHeaderResize()};
_.V.onWindowResize=function(){this.handleHeaderResize()};
_.V.onFocusedChanged=function(K){(K=_.Qm(K))&&K.is==="tp-yt-paper-tab"&&K.hasRipple()&&(K.getRipple().holdDown=!K.pointerDown&&K.focused)};
_.V.updateSelectedFromBinding=function(K){this.ytdTabbedHeaderBehavior.selected=K.detail.value};
_.V.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.x$.Object.defineProperties(Fl.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:UGz(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.imageBannerViewModel)==null?void 0:K.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Fl.prototype.onDataChanged=Fl.prototype.onDataChanged;Fl.prototype.updateCssVarsForResponsiveGrid=Fl.prototype.updateCssVarsForResponsiveGrid;Fl.prototype.updateCssVars=Fl.prototype.updateCssVars;Fl.prototype.observerRichGridSlimItemsPerRow=Fl.prototype.observerRichGridSlimItemsPerRow;Fl.prototype.observerRichGridItemsPerRow=Fl.prototype.observerRichGridItemsPerRow;_.x([_.l(_.bO),_.B("design:type",Object)],Fl.prototype,"ytdGridStateAwareBehavior",void 0);
_.x([_.l(Tey),_.B("design:type",Object)],Fl.prototype,"ytdTabbedHeaderBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Fl.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Fl.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.l(_.ou),_.B("design:type",Object)],Fl.prototype,"ytdReduxBehavior",void 0);_.x([_.n8("#tabs"),_.B("design:type",Object)],Fl.prototype,"tabsElement",void 0);_.x([_.A(),_.B("design:type",Array)],Fl.prototype,"tabs",void 0);_.x([_.A(),_.B("design:type",Object)],Fl.prototype,"expandableCustomTabRenderable",void 0);_.x([_.W("tabs.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fl.prototype,"tabGroupShape",null);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Fl.prototype,"isRichGrid",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Fl.prototype,"isConstrainedList",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Object)],Fl.prototype,"richGridMiniMode",void 0);_.x([_.A({selector:function(K){return K.ui.richGridStyle}}),
_.B("design:type",Object)],Fl.prototype,"richGridStyle",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.B("design:type",Object)],Fl.prototype,"isRichGridShorts",void 0);_.x([_.A({selector:_.NQ}),_.B("design:type",Number)],Fl.prototype,"richGridItemsPerRow",void 0);_.x([_.A({selector:function(K){return K.ui.richGridContainerWidth}}),
_.B("design:type",Number)],Fl.prototype,"richGridContainerWidth",void 0);_.x([_.A({selector:_.u3o}),_.B("design:type",Number)],Fl.prototype,"richGridSlimItemsPerRow",void 0);_.x([_.A(),_.B("design:type",Object)],Fl.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Fl.prototype,"responsiveSizing",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Fl.prototype,"disableGridStateAware",void 0);
_.x([_.A({computed:"computeImageBannerViewModel(data)"}),_.B("design:type",Object)],Fl.prototype,"imageBannerViewModel",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.B("design:type",Boolean)],Fl.prototype,"hasCinematicContainer",void 0);_.x([_.A({selector:_.eq7,reflectToAttribute:!0}),_.B("design:type",Boolean)],Fl.prototype,"guideIsVisibleButNotPersistent",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("imageBannerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fl.prototype,"hasBanner",null);_.x([_.A({reflectToAttribute:!0}),_.W("imageBannerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fl.prototype,"hasInsetBanner",null);_.x([_.A({computed:"computeTabsHidden(tabs)",value:!0}),_.B("design:type",Boolean)],Fl.prototype,"tabsHidden",void 0);
_.x([_.SP("richGridItemsPerRow","isRichGrid"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fl.prototype,"observerRichGridItemsPerRow",null);_.x([_.SP("richGridSlimItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fl.prototype,"observerRichGridSlimItemsPerRow",null);
_.x([_.SP("richGridItemsPerRow","richGridMiniMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fl.prototype,"updateCssVars",null);_.x([_.SP("richGridContainerWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fl.prototype,"updateCssVarsForResponsiveGrid",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fl.prototype,"onDataChanged",null);
Fl=_.x([_.Q({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Fl);
_.C(Fl,"ytd-tabbed-page-header",function(){if(bPt!==void 0)return bPt;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return bPt=K},{mode:1});var j5l;var zr=function(){return _.q.apply(this,arguments)||this};
_.O(zr,_.q);zr.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.f8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.x$.Object.defineProperties(zr.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var K,d;return this.componentBehavior.computeIcon_(((d=_.P((K=this.data)==null?void 0:K.badge,_.tRk))==null?void 0:d.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var K,d;return(d=_.P((K=this.data)==null?void 0:K.badge,_.tRk))==null?void 0:d.label}}});
zr.prototype.observerRichGridItemsPerRow=zr.prototype.observerRichGridItemsPerRow;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],zr.prototype,"componentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],zr.prototype,"ytdReduxBehavior",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.gB}),_.B("design:type",Boolean)],zr.prototype,"richGridMiniMode",void 0);
_.x([_.A({selector:_.NQ}),_.B("design:type",Number)],zr.prototype,"richGridItemsPerRow",void 0);_.x([_.A(),_.B("design:type",Object)],zr.prototype,"data",void 0);_.x([_.SP("richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zr.prototype,"observerRichGridItemsPerRow",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],zr.prototype,"badgeIconName",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],zr.prototype,"badgeLabel",null);zr=_.x([_.Q({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],zr);
_.C(zr,"ytd-member-hub-profile-renderer",function(){if(j5l!==void 0)return j5l;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return j5l=K},{mode:1});var CC5;var Xl=function(){return _.q.apply(this,arguments)||this};
_.O(Xl,_.q);Xl.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Xl.prototype,"data",void 0);Xl=_.x([_.Q({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Xl);
_.C(Xl,"ytd-settings-sidebar-renderer",function(){if(CC5!==void 0)return CC5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return CC5=K},{mode:1});var xcy;var v7=function(){var K=_.q.apply(this,arguments)||this;K.expandableCustomTabRenderable=function(d){return u5E(d,function(){return void K.onSearchNavigate()})};
return K};
_.O(v7,_.q);v7.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
v7.prototype.onSearchNavigate=function(){this.selected=void 0};
v7.prototype.onTabsChange=function(){var K,d=(K=this.tabs)==null?void 0:K.findIndex(function(f){var H;return f==null?void 0:(H=f.tabRenderer)==null?void 0:H.selected});
d!==void 0&&(this.selected=d)};
v7.prototype.onTabsActive=function(K){if(this.tabs!==void 0){var d,f;(K=(d=this.tabs[K.detail.selected])==null?void 0:(f=d.tabRenderer)==null?void 0:f.endpoint)&&_.Zp(this.hostElement,"yt-navigate",{endpoint:K})}};
_.x$.Object.defineProperties(v7.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:UGz(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
v7.prototype.onTabsChange=v7.prototype.onTabsChange;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.bO),_.B("design:type",Object)],v7.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],v7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],v7.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Array)],v7.prototype,"tabs",void 0);_.x([_.A(),_.B("design:type",Number)],v7.prototype,"selected",void 0);_.x([_.W("tabs.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],v7.prototype,"tabGroupShape",null);_.x([_.A(),_.B("design:type",Object)],v7.prototype,"expandableCustomTabRenderable",void 0);
_.x([_.W("tabs"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],v7.prototype,"tabsEnabled",null);_.x([_.an("tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],v7.prototype,"onTabsChange",null);v7=_.x([_.Q({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],v7);
_.C(v7,"ytd-topic-channel-details-renderer",function(){if(xcy!==void 0)return xcy;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return xcy=K},{mode:1});var LCZ;var MB=function(){var K=_.q.apply(this,arguments)||this;K.disableGridStateAware=!1;return K};
_.O(MB,_.q);MB.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]]"}}}}}};
MB.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
MB.prototype.updateCssVars=function(){_.f8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.di("rich_grid_max_item_width",500))+16)-16+"px"})};
MB.prototype.updateCssVars=MB.prototype.updateCssVars;MB.prototype.activeChanged=MB.prototype.activeChanged;_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],MB.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],MB.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],MB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],MB.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Array)],MB.prototype,"tabs",void 0);_.x([_.A(),_.B("design:type",Boolean)],MB.prototype,"active",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],MB.prototype,"disableGridStateAware",void 0);
_.x([_.A({selector:_.NQ}),_.B("design:type",Number)],MB.prototype,"richGridItemsPerRow",void 0);_.x([_.A({selector:_.gB}),_.B("design:type",Boolean)],MB.prototype,"richGridMiniMode",void 0);_.x([_.n8("ytd-carousel-item-renderer"),_.B("design:type",Object)],MB.prototype,"carousel",void 0);_.x([_.SP("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MB.prototype,"activeChanged",null);
_.x([_.SP("richGridItemsPerRow","richGridMiniMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MB.prototype,"updateCssVars",null);MB=_.x([_.Q({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],MB);
_.C(MB,"ytd-carousel-header-renderer",function(){if(LCZ!==void 0)return LCZ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return LCZ=K},{mode:1});var Bfw;var JZw=_.Am(["https://www.google-analytics.com/analytics.js"]),P7=function(){var K=_.q.apply(this,arguments)||this;K.scriptAnalyticsAdded=!1;return K};
_.O(P7,_.q);P7.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var K,d=(K=this.data)==null?void 0:K.tagManagerId;d&&(_.F8(d,_.mD("GL")),F7l(d))};
P7.prototype.sendGoogleAnalyticsPageview=function(K){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var f=_.Pg.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(f)};
var d=window.ga;d("set","page",window.location.pathname);d.l=+new Date;d("set","forceSSL",!0);d("create",K,"'auto'");d("send","pageview")};
P7.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var K=_.RQ("SCRIPT");K.name="ga-analytics";var d=_.p7(JZw);_.Aa(K,d);K.async=!0;_.E(this.hostElement).appendChild(K)};
P7.prototype.dataChanged=P7.prototype.dataChanged;_.x([_.A(),_.B("design:type",Object)],P7.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],P7.prototype,"dataChanged",null);P7=_.x([_.Q({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],P7);
_.C(P7,"ytd-channel-metadata-renderer",function(){if(Bfw!==void 0)return Bfw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Bfw=K},{mode:1});var s5S;var kaP;var gu=function(){return _.q.apply(this,arguments)||this};
_.O(gu,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gu.prototype,"data",void 0);gu=_.x([_.Q({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],gu);
_.C(gu,"ytd-sub-feed-option-renderer",function(){if(kaP!==void 0)return kaP;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return kaP=K},{mode:1});var wj5;var O6=function(){return _.q.apply(this,arguments)||this};
_.O(O6,_.q);O6.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],O6.prototype,"ytRendererStamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],O6.prototype,"data",void 0);O6=_.x([_.Q({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],O6);
_.C(O6,"ytd-sub-feed-selector-renderer",function(){if(wj5!==void 0)return wj5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return wj5=K},{mode:1});var NB=function(){return _.q.apply(this,arguments)||this};
_.O(NB,_.q);
NB.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}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],NB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],NB.prototype,"data",void 0);NB=_.x([_.Q({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],NB);
_.C(NB,"ytd-browse-feed-actions-renderer",function(){if(s5S!==void 0)return s5S;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return s5S=K},{mode:1});var ZPc;var eaS;var Yr=function(){return _.q.apply(this,arguments)||this};
_.O(Yr,_.q);Yr.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Yr.prototype,"data",void 0);Yr=_.x([_.Q({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Yr);
_.C(Yr,"ytd-mini-channel-renderer",function(){if(eaS!==void 0)return eaS;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return eaS=K},{mode:1});var pjK;var tn=function(){return _.q.apply(this,arguments)||this};
_.O(tn,_.q);tn.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],tn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],tn.prototype,"data",void 0);tn=_.x([_.Q({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],tn);
_.C(tn,"ytd-vertical-channel-section-renderer",function(){if(pjK!==void 0)return pjK;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return pjK=K},{mode:1});var oV=function(){return _.q.apply(this,arguments)||this};
_.O(oV,_.q);oV.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],oV.prototype,"data",void 0);oV=_.x([_.Q({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],oV);
_.C(oV,"ytd-browse-secondary-contents-renderer",function(){if(ZPc!==void 0)return ZPc;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
return ZPc=K},{mode:1});var K6i;var $r=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};K.notActive=!1;K.isConstrainedList=!1;return K};
_.O($r,_.q);_.V=$r.prototype;
_.V.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]]"},matcher:function(K){var d;return(K==null?void 0:(d=K.webComponentHint)==null?void 0:d.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}}}}};
_.V.getPath=function(K,d){var f="data.tabs.#"+d+".";K.tabs[d].tabRenderer?f+="tabRenderer.":K.tabs[d].expandableTabRenderer&&(f+="expandableTabRenderer.");return f+"content.sectionListRenderer"};
_.V.computeDisplayedContent=function(K){this.unlinkPaths("content");if(K&&K.tabs)for(var d=K.tabs.length,f=0;f<d;f++){var H=K.tabs[f].tabRenderer||K.tabs[f].expandableTabRenderer;if(H.selected&&H.content)return this.linkPaths("content",this.getPath(K,f)),H.content}return null};
_.V.computeHasSecondaryColumnData=function(K){return!!K&&!!K.secondaryContents};
_.V.onRetrieveLocation=function(K,d){d.locationRetrieved(d.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);K.stopPropagation()};
_.V.onYtServiceRequestSent=function(K,d){_.M("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(d)};
_.V.onYtServiceRequestCompleted=function(K,d){_.M("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(d)};
_.V.onReplaceFeedContentAction=function(K){if(!_.M("replace_feed_content_action_killswitch")&&!this.notActive){var d;(K=(d=_.P(K,Ygc))==null?void 0:d.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(K)}};
_.V.handleServiceRequestActions=function(K){if(K=K.actions){K=_.y(K);for(var d=K.next();!d.done;d=K.next()){d=d.value;var f=void 0;((f=_.P(d,Ygc))==null?0:f.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.P(d,Ygc).items)}}};
$r.prototype.onYtServiceRequestCompleted=$r.prototype.onYtServiceRequestCompleted;$r.prototype.onYtServiceRequestSent=$r.prototype.onYtServiceRequestSent;$r.prototype.onRetrieveLocation=$r.prototype.onRetrieveLocation;_.x([_.l(_.bO),_.B("design:type",Object)],$r.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],$r.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$r.prototype,"data",void 0);_.x([_.A({computed:"computeDisplayedContent(data)"}),_.B("design:type",Object)],$r.prototype,"content",void 0);
_.x([_.A({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],$r.prototype,"hasSecondaryColumnData",void 0);_.x([_.A({value:function(){return window.outerHeight>1024?3:2}}),
_.B("design:type",Number)],$r.prototype,"initialCount",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],$r.prototype,"pageSubtype",void 0);_.x([_.n8("ytd-section-list-renderer"),_.B("design:type",Object)],$r.prototype,"listRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],$r.prototype,"notActive",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],$r.prototype,"isConstrainedList",void 0);
_.x([_.A(),_.B("design:type",String)],$r.prototype,"responsiveSizing",void 0);_.x([_.VV("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],$r.prototype,"onRetrieveLocation",null);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],$r.prototype,"onYtServiceRequestSent",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],$r.prototype,"onYtServiceRequestCompleted",null);$r=_.x([_.Q({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],$r);
_.C($r,"ytd-two-column-browse-results-renderer",function(){if(K6i!==void 0)return K6i;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return K6i=K},{mode:2});var d6w;var f$w;var E6=function(){var K=_.q.apply(this,arguments)||this;K.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"]);K.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"]);K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return K};
_.O(E6,_.q);_.V=E6.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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_]]"}}}}}};
_.V.onUpdateElementsPerRowAction=function(K){K&&this.elementsPerRow!==K&&(this.elementsPerRow=K)};
_.V.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.V.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.V.computeAlertStyle_=function(K){return K};
_.V.observerElementsPerRow=function(){this.elementsPerRow&&_.f8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.V.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.V.requestElementsPerRow=function(){_.Zp(this.hostElement,"yt-request-elements-per-row")};
E6.prototype.onIsVisibleChanged_=E6.prototype.onIsVisibleChanged_;E6.prototype.observerElementsPerRow=E6.prototype.observerElementsPerRow;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],E6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],E6.prototype,"actionHandlerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],E6.prototype,"data",void 0);_.x([_.A({value:6,reflectToAttribute:!0}),_.B("design:type",Number)],E6.prototype,"elementsPerRow",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],E6.prototype,"wrapButtons",void 0);_.x([_.A({value:_.mD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.B("design:type",Boolean)],E6.prototype,"isMusic",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.B("design:type",String)],E6.prototype,"alertStyle",void 0);_.x([_.A({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.B("design:type",Function)],E6.prototype,"dismissBoundButtonTap_",void 0);_.x([_.A({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.B("design:type",Function)],E6.prototype,"acceptBoundButtonTap_",void 0);_.x([_.SP("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],E6.prototype,"observerElementsPerRow",null);_.x([_.SP("data.isVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],E6.prototype,"onIsVisibleChanged_",null);E6=_.x([_.N7({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],E6);
_.C(E6,"yt-alert-with-actions-renderer",function(){if(f$w===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;d6w===void 0&&(d6w=document.createElement("template"));var H=d6w;f.call(d,H.content.cloneNode(!0),K.content.firstChild);f$w=K}K=f$w;return K},{mode:2});_.sP(_.C8(function(K){function d(v){var g={};return _.U(_.ji,{text:v,className:_.SC("ytPersonalGreetingViewModelHeadline",(g.ytPersonalGreetingViewModelHeadlineSmall=function(){return u()===48},g))})}
function f(v,g){return _.U("span",{el:v,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},d(g))}
var H=_.Co(),D=_.Co(),S=_.Co(),n=function(){return K.data().canvasPromoData},u=function(){var v;
return(v=K.data().bannerHeight)!=null?v:56},a=_.D2u(H,{throttleMs:100}),R=_.D2u(D,{throttleMs:100}),F=_.D2u(S,{throttleMs:100}),z=function(){return R.width()-a.width()>1};
_.W9(H,function(){var v;return(v=K.data())==null?void 0:v.rendererContext},void 0,void 0,void 0,!0);
return _.U("yt-personal-greeting-view-model",{el:H,"aria-hidden":z,class:_.SC(K.className,"ytPersonalGreetingViewModelHost"),style:_.Im({height:(0,_.PH)(function(){return z()?0:u()})})},_.U(_.X,{cond:function(){return K.data().avatar&&!(F.width()+(K.data().avatar?48:0)-a.width()>1)},
then:function(){return _.U(_.z1,{data:function(){return K.data().avatar}},{decoratedAvatarViewModel:function(v){return _.U(_.gW,{data:v.data,
className:_.SC("ytPersonalGreetingViewModelAvatar")})}})}}),_.U("h1",null,d(function(){var v;
return(n==null?void 0:(v=n())==null?void 0:v.headline)||(F.width()+(K.data().avatar?48:0)-a.width()>1?K.data().shorterGreeting:K.data().greeting)})),f(S,function(){return K.data().greeting}),f(D,function(){return K.data().shorterGreeting}))},"zi"),"yt-personal-greeting-view-model",{props:{data:_.rs,
className:_.rs}});var hn=function(){var K=_.q.apply(this,arguments)||this;K.hidden=!1;K.isConstrainedList=!1;K.darkerDarkTheme=_.M("web_darker_dark_theme");K.responsiveSizing="COMPACT";K.attachedPlayers=_.M("kevlar_channel_trailer_multi_attach")?[]:void 0;K.player=null;K.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return K};
_.O(hn,_.q);_.V=hn.prototype;
_.V.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}}}}};
_.V.created=function(){var K=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){K.disposeMastheadAd()}]};
_.V.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new Qel(this.refresh,this.contents))};
_.V.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.V.activeChanged=function(){var K=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=K)};
_.V.tabsChanged=function(){var K=this,d,f;if(this.pageSubtype==="channels"||_.M("kevlar_tab_gestures_for_tabbed_header_data")&&((d=this.data)==null?0:(f=d.header)==null?0:f.carouselHeaderRenderer))this.tabGestures=new $I(this.contents,this.contents,this.hostElement,this.header,function(n){K.ytdReduxBehavior.dispatch(n)});
var H,D,S;d=(H=this.data)==null?void 0:(D=H.contents)==null?void 0:(S=D.twoColumnBrowseResultsRenderer)==null?void 0:S.tabs;this.tabGestures&&this.tabGestures.tabsChanged(d)};
_.V.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.V.engagementPanelsChanged=function(){var K=_.eq().resolve(_.XM);if(K){if(this.engagementPanels)for(var d=_.y(this.engagementPanels),f=d.next();!f.done;f=d.next()){var H=void 0;(f=(H=f.value.identifier)==null?void 0:H.tag)&&K.panelMap.delete(f)}this.engagementPanels=[];var D;d=_.y(((D=this.data)==null?void 0:D.panels)||[]);for(D=d.next();!D.done;D=d.next()){D=_.P(D.value,_.vjZ);var S=f=void 0,n=void 0,u=void 0;if(H=((f=D)==null?void 0:f.targetId)||((S=D)==null?void 0:S.panelIdentifier)||((n=D)==
null?void 0:(u=n.identifier)==null?void 0:u.tag))S=f=void 0,(S=(f=K).registerPanelContent)==null||S.call(f,H,{engagementPanelSectionListRenderer:D}),this.engagementPanels.push(D)}}};
_.V.onStampFinished=function(){var K=this;_.jW(this,function(){if(K.tabGestures){var d=K.tabGestures;if(d.scrollPositionNeedsUpdate){var f=_.eq().resolve(_.Zd(_.jC)),H;if((H=d.selectedTab)!=null&&H.title&&f&&(H=f.getCurrentPage())){if(d.scrollPositionForTabs.has(d.selectedTab.title)){var D,S;f=(S=(D=f.getCurrentPage())==null?void 0:D.clientHeight)!=null?S:0;D=d.scrollPositionForTabs.get(d.selectedTab.title);H.setScrollTop(D);f>D+100&&(d.scrollPositionNeedsUpdate=!1)}else H.setScrollTop(Math.min(d.lastVisitedTabScrollPosition!==
void 0?d.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,d.tabsStartAtInPx)),d.scrollPositionNeedsUpdate=!1;d.ytdReduxDispatch(RUP(!1))}}}})};
_.V.loadPage_=function(K){this.initCsi();K&&(this.data=K);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.V.getTitle=function(K){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",K))return this.get("microformat.microformatDataRenderer.title",K);if(this.get("header.feedTabbedHeaderRenderer.title",K))return _.qQ(this.get("header.feedTabbedHeaderRenderer.title",K));if(this.get("header.interactiveTabbedHeaderRenderer.title",K))return this.get("header.interactiveTabbedHeaderRenderer.title",K);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
K))return _.qQ(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",K));var d,f;return _.M("enable_page_header_page_title")&&(K==null?0:(d=K.header)==null?0:(f=d.pageHeaderRenderer)==null?0:f.pageTitle)?K.header.pageHeaderRenderer.pageTitle:""};
_.V.updateTitle=function(K){_.Zp(this.hostElement,"yt-update-title",this.getTitle(K))};
_.V.initCsi=function(){_.OJ(this.pageSubtype||"browse",["ol","cpt"])};
_.V.getPlayer=function(){if(_.M("kevlar_channel_trailer_multi_attach")){for(var K=_.y(this.attachedPlayers),d=K.next();!d.done;d=K.next())if(d=d.value,d.isConnected||_.Tp(this.hostElement,d))return d;return null}return this.player};
_.V.getPlayerContainer=function(){return null};
_.V.onPlayerAttached=function(K,d){_.M("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(d):this.player=d};
_.V.onPlayerDetached=function(K,d){_.M("kevlar_channel_trailer_multi_attach")?(K=this.attachedPlayers.indexOf(d),K<0||this.attachedPlayers.splice(K,1)):this.player=null};
_.V.getServiceTrackingParams=function(){var K,d;return((K=this.data)==null?void 0:(d=K.responseContext)==null?void 0:d.serviceTrackingParams)||[]};
_.V.setMastheadAd=function(K){K&&K.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=K&&K.mastheadAd};
_.V.dataChanged=function(){var K=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.pQc();_.jW(this,function(){_.p1(K.hostElement,"ytd-update-grid-state-action")})};
_.V.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.V.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var K=this.data.alerts;return K&&K.find(function(d){return!!d.alertWithActionsRenderer})}};
_.V.computeGreetingData=function(){if(this.data&&this.data.alerts){var K=this.data.alerts;return K&&K.find(function(d){return!!d.personalGreetingViewModel})}};
_.V.computeHasMemberHubProfileRenderer=function(K){var d;return!!(K==null?0:(d=K.header)==null?0:d.memberHubProfileRenderer)};
_.V.handleAlertCommand=function(K){this.get("alertCommand.alert.alertWithActionsRenderer",K)&&(K=_.P(K,tjS),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",K.alert))};
_.V.handleYtPlaylistDeletionRedirect=function(K){K=this.get("playlistDeletionRedirectCommand.redirectEndpoint",K);_.Zp(this.hostElement,"yt-navigate",{endpoint:K})};
_.V.computeFluidWidth=function(K,d,f){if(d==="mini_app"||f)return!0;var H,D,S;K=K==null?void 0:(H=K.contents)==null?void 0:(D=H.twoColumnBrowseResultsRenderer)==null?void 0:(S=D.tabs)==null?void 0:S.find(function(a){var R;return a==null?void 0:(R=a.tabRenderer)==null?void 0:R.selected});
if(!K)return!1;var n,u;return!!((n=K.tabRenderer)==null?0:(u=n.content)==null?0:u.richGridRenderer)&&!["channel","channels","playables"].includes(d)};
_.V.computeHeaderFluidWidth=function(K){return K==="hashtag-landing-page"};
_.V.computeHasSidebar=function(K){var d;return!!(K.sidebar||((d=K.header)==null?0:d.playlistHeaderRenderer))};
_.V.computeHasPageHeaderSidebar=function(K){var d,f;return!!((d=K.header)==null?0:(f=d.pageHeaderRenderer)==null?0:f.enableSidebarView)};
_.V.computeUseUnifiedShowPageLayout=function(K){if(!K||this.pageSubtype!=="show"||!K.sidebar||!K.sidebar.playlistSidebarRenderer)return!1;K=K.sidebar.playlistSidebarRenderer;if(!K.items)return!1;for(var d=0;d<K.items.length;d++)if(_.P(K.items[d],tg)){var f=void 0;return((f=_.P(K.items[d],tg))==null?void 0:f.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.V.computeIsConstrainedList=function(K){return _.M("web_enable_constrained_list_subscriptions_channels")&&K==="subscriptions-channels"};
_.V.computeResponsiveSizing=function(K){return K==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.x$.Object.defineProperties(hn.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var K,d;return((K=this.data)==null?0:(d=K.header)==null?0:d.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var K,d;if(!((K=this.data)==null?0:(d=K.sidebar)==null?0:d.playlistSidebarRenderer))return!1;var f;return(f=this.data)!=null&&f.header?!1:!0}}});
_.x$.Object.defineProperties(hn,{template:{configurable:!0,enumerable:!0,get:function(){if(xGc===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);xGc=K}K=xGc;return K}}});
hn.prototype.dataChanged=hn.prototype.dataChanged;hn.prototype.onPlayerDetached=hn.prototype.onPlayerDetached;hn.prototype.onPlayerAttached=hn.prototype.onPlayerAttached;hn.prototype.onStampFinished=hn.prototype.onStampFinished;hn.prototype.engagementPanelsChanged=hn.prototype.engagementPanelsChanged;hn.prototype.scrollAtTopChanged=hn.prototype.scrollAtTopChanged;hn.prototype.tabsChanged=hn.prototype.tabsChanged;hn.prototype.activeChanged=hn.prototype.activeChanged;
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],hn.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],hn.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],hn.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.N$.YtPageBehavior),_.B("design:type",Object)],hn.prototype,"ytPageBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],hn.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],hn.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],hn.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],hn.prototype,"hidden",void 0);
_.x([_.A(),_.B("design:type",Object)],hn.prototype,"mastheadAdData",void 0);_.x([_.A({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.B("design:type",Object)],hn.prototype,"alertBannerData",void 0);_.x([_.A({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.B("design:type",Object)],hn.prototype,"greetingData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],hn.prototype,"pageSubtype",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.B("design:type",Boolean)],hn.prototype,"hasMemberHubProfileRenderer",void 0);_.x([_.A({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],hn.prototype,"hasSidebar",void 0);_.x([_.A({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],hn.prototype,"hasPageHeaderSidebar",void 0);
_.x([_.A({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],hn.prototype,"roundedContainer",void 0);_.x([_.A({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],hn.prototype,"useUnifiedShowPageLayout",void 0);_.x([_.A({computed:"computeIsConstrainedList(pageSubtype)"}),_.B("design:type",Object)],hn.prototype,"isConstrainedList",void 0);
_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],hn.prototype,"usePlaylistHeaderRenderer",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],hn.prototype,"useOldPlaylistSidebarRenderer",null);_.x([_.A({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.B("design:type",Boolean)],hn.prototype,"fluidWidth",void 0);_.x([_.A({selector:function(K){return K.ui.scrollAtTop}}),
_.B("design:type",Boolean)],hn.prototype,"scrollAtTop",void 0);_.x([_.A({selector:_.pxl}),_.B("design:type",Boolean)],hn.prototype,"tabGesturesIsActive",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],hn.prototype,"darkerDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.B("design:type",Boolean)],hn.prototype,"disableHeaderFluidWidth",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.B("design:type",String)],hn.prototype,"responsiveSizing",void 0);_.x([_.n8("ytd-two-column-browse-results-renderer"),_.B("design:type",HTMLElement)],hn.prototype,"contents",void 0);_.x([_.n8("#header"),_.B("design:type",HTMLElement)],hn.prototype,"header",void 0);_.x([_.n8("ytd-refresh"),_.B("design:type",Object)],hn.prototype,"refresh",void 0);
_.x([_.SP("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hn.prototype,"activeChanged",null);_.x([_.SP("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hn.prototype,"tabsChanged",null);_.x([_.SP("scrollAtTop"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hn.prototype,"scrollAtTopChanged",null);
_.x([_.A(),_.B("design:type",Object)],hn.prototype,"engagementPanels",void 0);_.x([_.SP("data.panels"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hn.prototype,"engagementPanelsChanged",null);_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hn.prototype,"onStampFinished",null);
_.x([_.VV("yt-player-attached"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Element]),_.B("design:returntype")],hn.prototype,"onPlayerAttached",null);_.x([_.VV("yt-player-detached"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Element]),_.B("design:returntype")],hn.prototype,"onPlayerDetached",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hn.prototype,"dataChanged",null);
hn=_.x([_.Q({is:"ytd-browse"})],hn);_.kf.registerService(_.GcX,hn);
_.bl();
}catch(e){_._DumpException(e)}
try{
_.hs("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 pP=function(K){if(!K)return"browse";var d=K.page,f=K.url,H,D,S,n=(H=K.response)==null?void 0:(D=H.responseContext)==null?void 0:(S=D.webResponseContextExtensionData)==null?void 0:S.pageTheme;if(n)d=n.toLowerCase().replace(/_/g,"-");else if(d!=="watch"&&d!=="learning_journey_watch"){var u,a;if((d==="browse"||d==="settings")&&((u=K.response)==null?0:(a=u.sidebar)==null?0:a.settingsSidebarRenderer))d="WEB_PAGE_TYPE_SETTINGS";else{var R,F;d==="browse"&&((R=K.response)==null?0:(F=R.metadata)==null?
0:F.channelMetadataRenderer)?d="channel":f&&(d=_.ym(f)||d)}}return d},nMZ=function(){var K=_.T2("yt.aba.att");
return K?K:_.wr.instance!==void 0?_.wr.instance.ot6.bind(_.wr.instance):null},iQw=function(K,d){var f;
return _.c(function(H){return(f=nMZ())?H.return(f(K,d,6E4)):H.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},cRy=function(K,d,f,H,D){d=d===void 0?[]:d;
D=D?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:D}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.kJ(K),dialogMessages:d.map(function(S){return _.kJ(S)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.kJ(f),serviceEndpoint:D}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.kJ(H)}}}}}},u0E=function(K){var d=!!_.h_().queueProxy;
var f,H,D;K=K==null?void 0:(f=K.response)==null?void 0:(H=f.currentVideoEndpoint)==null?void 0:(D=H.watchEndpoint)==null?void 0:D.playlistId;return!(!d&&!K)},ad7=function(K,d){var f=_.SJ();
if(u0E(K))return f.playlistWatchPageActivation=!0;switch(pP(d)){case "yts-products":return f.productDetailsPageActivation=!0;case "mini_app":return f.miniAppPageActivation=!0;case "playables":return f.playablesDestPageActivation=!0;default:return!1}},Idw=function(K,d,f){for(var H=typeof K==="string"?K.split(""):K,D=K.length-1;D>=0;--D)D in H&&d.call(f,H[D],D,K)},Ukw=function(K,d){d=_.zGu(K,d);
d>=0&&_.sY(K,d)},R8z=function(K){return Array.prototype.concat.apply([],arguments)},FDy=function(K){var d=0;
d=d===void 0?0:d;if(!_.vK(K))throw _.zk("uint64");var f=typeof K;switch(d){case 512:switch(f){case "string":return _.c6u(K);case "bigint":return String((0,_.lU)(64,K));default:return _.n8z(K)}case 1024:switch(f){case "string":return _.uHG(K);case "bigint":return _.k8((0,_.lU)(64,K));default:return _.iJX(K)}case 0:switch(f){case "string":return _.c6u(K);case "bigint":return _.k8((0,_.lU)(64,K));default:return _.y6u(K)}default:return _.nE(d,"Unknown format requested type for int64")}},z8w=function(K){K!=
null&&(K=K.JSC$6820_value_||"",K=typeof K==="string"?K:new Uint8Array(K));
return K},X_t=function(K){for(var d=_.Pg.apply(1,arguments),f=K[0],H=0;H<K.length-1;H++)f+=String(d[H]),f+=K[H+1];
d=document.implementation.createHTMLDocument("");H=d.createElement("style");d.head.appendChild(H);d=H.sheet;d.insertRule(f,0);if(d.cssRules.length===1&&(f=d.cssRules[0],f instanceof CSSStyleRule))return new _.je(f.cssText.replace(/</g,"\\3C "))},vMt=function(K,d){if(/-[a-z]/.test(d))return null;
if(_.zBJ&&K.dataset){if(_.nzS()&&!(d in K.dataset))return null;K=K.dataset[d];return K===void 0?null:K}return K.getAttribute("data-"+_.iw(d))},Pxt=function(){var K=Mq5;
_.T2("yt.ads.biscotti.getId_")||_.B6("yt.ads.biscotti.getId_",K)},gMU=function(K){_.B6("yt.ads.biscotti.lastId_",K)},NFS=function(){var K={};
for(_.OF=new OQz(K.handleError===void 0?_.EN:K.handleError,K.logEvent===void 0?_.t3:K.logEvent);_.NX.length>0;)switch(K=_.NX.shift(),K.type){case "ERROR":_.OF.logError(K.payload);break;case "EVENT":_.OF.logEvent(K.eventType,K.payload)}},Ybw=function(K,d,f){return _.TLY(function(H){return f?H.userIdentifier!==void 0&&!K.includes(H.userIdentifier)&&f.includes(H.publicName):H.userIdentifier!==void 0&&!K.includes(H.userIdentifier)},d)},tqE=function(K){var d,f;
return _.c(function(H){if(H.nextAddress==1)return d=_.F4("YtIdbMeta hasAnyMeta other"),_.I(H,_.TLY(function(D){return D.userIdentifier!==void 0&&D.userIdentifier!==d},K),2);
f=H.yieldResult;return H.return(f.length>0)})},$ky=function(K,d){oMi||(oMi=_.oc.addLowPriorityJob(function(){var f,H,D,S,n;
return _.c(function(u){switch(u.nextAddress){case 1:return _.I(u,_.J9(),2);case 2:f=u.yieldResult;if(!f)return u.return();H=!0;_.HF(u,3);return _.I(u,Ybw(K,f,d),5);case 5:D=u.yieldResult;if(!D.length){H=!1;u.jumpTo(6);break}S=D[0];return _.I(u,_.ri(S.actualName),7);case 7:return _.I(u,_.jQ(S.actualName,f),6);case 6:_.Ts(u,4);break;case 3:n=_.n7(u),_.Y_(n),H=!1;case 4:_.oc.cancelJob(oMi),oMi=0,H&&$ky(K,d),_.iQ(u)}})}))},EM5=function(){var K;
return _.c(function(d){return d.nextAddress==1?_.I(d,_.J9(),2):(K=d.yieldResult)?d.return(tqE(K)):d.return(!1)})},h85=function(K){var d=100;
d=d===void 0?500:d;var f,H,D,S,n,u;return _.c(function(a){return a.nextAddress==1?(f=_.mD("INNERTUBE_CONTEXT_CLIENT_NAME",0),H=[f,(0,_.k_)()-2592E6],D=[f,(0,_.k_)()],S=IDBKeyRange.bound(H,D),_.I(a,_.cGG(K),2)):a.nextAddress!=3?(n=a.yieldResult,u=[],_.I(a,_.QK(n,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(R){u.length=0;return _.wi(R.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:S,direction:"prev"},function(F){if(F.getValue()&&u.length<d)return u.push(F.getValue()),
F.delete().then(function(){return F.continue()})})}),3)):a.return(u)})},bQl=function(){var K;
return _.c(function(d){if(d.nextAddress==1)return _.I(d,_.J9(),2);K=d.yieldResult;if(!K||!_.zs()&&!_.M("nwl_init_require_datasync_id_killswitch")||!_.Emo())return d.jumpTo(0);_.bUp=!0;_.h3O.isNwlInitialized=_.bUp;return _.I(d,_.YXB().awaitInitialization(),0)})},Kc=function(K,d){_.sMz[K]=!0;
var f=_.Ko();f&&f.publish.apply(f,arguments);_.sMz[K]=!1},ldy=function(){if(_.YV5()&&!mki){var K=function(f){f=f.data;
if(f.op==="serializedGelBatch"){var H=_.kCo.get(f.key);H&&(_.Z8n(f.serializedBatch,H.client,H.resolve,H.networklessOptions,H.isIsolated,H.useVSSEndpoint,H.dangerousLogToVisitorSession,H.requestsOutstanding),_.kCo.delete(f.key))}},d=_.NBX();
d&&(d.addEventListener("message",K),d.onerror=function(){_.kCo.clear()});
mki=!0}},fc=function(){this.relativeTimeStart_=_.Ls()},WDz=function(K,d){K!=null&&this.append.apply(this,arguments)},G27=function(){return _.he("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},AR5=function(K,d,f){f=f===void 0?!1:f;
var H,D,S,n,u;return _.c(function(a){switch(a.nextAddress){case 1:_.UF("SOCS",K,34128E3,"youtube.com",!0);if(_.ps)return D=fetch(d,{method:"POST",mode:_.Ae(d),credentials:_.Gw(d),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),S=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Ae("/upgrade_visitor_cookie?eom=1"),credentials:_.Gw("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.I(a,Promise.all([D,S]).then(function(R){return R[1]}),5);
fetch(d,{method:"POST",mode:_.Ae(d),credentials:_.Gw(d),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.I(a,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Ae("/upgrade_visitor_cookie?eom=1"),credentials:_.Gw("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:H=a.yieldResult;a.jumpTo(3);break;case 5:H=n=a.yieldResult;case 3:if(!H.ok)throw Error("lf");return _.I(a,H.text(),7);case 7:u=a.yieldResult,
!u.includes('"state_switch":true')&&!f||u.includes("skip_reload_for_test")||window.location.reload(),_.iQ(a)}})},TFw=function(K){return _.c(function(d){return d.nextAddress==1?_.I(d,AR5(K.socsCookie,K.savePreferenceUrl,!0),2):d.return()})},rRP=function(K){return _.c(function(d){return d.nextAddress==1?_.I(d,AR5(K.socsCookie,K.savePreferenceUrl),2):d.return()})},Qdt=function(K){K=K.xhr.responseText;
if(!_.Sp(K,")]}'"))throw new Hf;K=JSON.parse(K.substr(4));if((K.type||1)>1)throw new Hf;K=K.id;gMU(K);D$=_.GI(K);qbz(18E5,2);return K},Cx5=function(K,d){d=new jdU(d);
gMU("");D$=_.kIJ(d);K>0&&qbz(12E4,K-1);throw d;},qbz=function(K,d){_.VK(function(){_.Jcy().then(Qdt,function(f){return Cx5(d,f)}).thenCatch(_.SO)},K)},Mq5=function(){var K=_.wCP();
if(K!==void 0)return _.vv(K);D$||(D$=_.Jcy().then(Qdt).thenCatch(function(d){return Cx5(2,d)}));
return D$},xkE=function(){var K=document;
return _.rz(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(d){return"on"+d.toLowerCase()in K})},LDK=function(K){K.addEventListener("click",function(d){var f=d.target;
f&&f.getAttribute("href")&&(f=f.getAttribute("href"),_.ha(window,f,"_blank"),d.preventDefault(),d.stopImmediatePropagation())})},BFE=function(K){var d,f,H,D=(H=(f=((d=K.mainDownloadsListEntity)!=null?d:{})[_.VA5])==null?void 0:f.refresh)!=null?H:"",S;
K=(S=K.refresh)==null?void 0:S[D];D=K!=null?K:{};return(D==null?0:D.refreshTime)?Number(D==null?void 0:D.refreshTime):0},JR7=function(K,d){var f=_.Xs(K);
return d.every(function(H){var D;H=H==null?void 0:(D=H.playbackDataEntity)==null?void 0:D.key;if(!H)return!1;D=_.HJ(_.KF(H).entityId,"mainVideoEntity");return!!f[D]})},sdP=function(K){K=_.RO(K.entities);
return _.X35(K).length},k2Z=function(K,d){if(d){var f;
K=(f=_.DR(K.entities,"downloadQualityPickerEntity",d))!=null?f:void 0}else K=void 0;return K},e8Z=function(){w_5||(_.T0=_.dpO,w_5=new ZQE);
return w_5},p_w=function(K){var d=document.getElementsByTagName("ytd-enforcement-message-view-model");
d.length===0||getComputedStyle(d[0]).display==="none"?K(0,"p.h_"):K(1,"p.h_")},KgU=function(){V6=0;
var K=[_.aM(!0)];Sg&&_.p1(Sg,"yt-window-resized",K)},dX5=function(){V6||(V6=_.oc.addLowPriorityJob(KgU,200))},HyS=function(){y6=0;
fUy=_.Xuv(document);var K=[fUy];Sg&&_.p1(Sg,"yt-window-scrolled",K)},DXw=function(){y6||(y6=_.oc.addLowPriorityJob(HyS,200))},SF7=function(K){K=K===void 0?null:K;
VQK.push(_.wR(window,"resize",dX5));VQK.push(_.wR(window,"scroll",DXw));K&&(Sg=K)},n_c=function(){var K={isWide:_.I0.get("wide","0")==="1"},d=_.aS();
if(d=d.getFlag(165)||d.getFlag(174))K.theme=_.X7(!0);if(_.R4J()){var f=_.zo()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";K.systemTheme=f}!d&&_.M("parent_tools_enable_app_settings")&&_.CQ(window.location.href).theme!==void 0&&(K.theme=_.X7());if((d=nc)?!_.PR.equals(d,K):K)d={currentValue:K},y9E&&(d.timeSinceLastSnapshotSecs=Math.round(((0,_.k_)()-y9E)/1E3)),nc&&(d.previousValue=nc),_.t3("appSettingsCaptured",d),nc=K,y9E=(0,_.k_)()},iyl=function(K){_.c(function(d){if(d.nextAddress==1)return _.I(d,
K.delete("yt-appshell-assets"),2);
_.iQ(d)})},c95=function(K){return _.qX((0,_.NWH)(),K)},aU5=function(){var K;
_.c(function(d){return d.nextAddress==1?_.I(d,iE.getInstance(),2):(K=d.yieldResult)?_.I(d,u4y(K),0):d.jumpTo(0)})},UXK=function(){var K;
_.c(function(d){return d.nextAddress==1?_.I(d,cf.getInstance(),2):(K=d.yieldResult)?_.I(d,IUZ(K),0):d.jumpTo(0)})},RAt=function(K){iyl(K);
aU5();UXK()},Fgy=function(K){var d,f;
return _.c(function(H){if(H.nextAddress==1)return _.I(H,_.T8X(K),2);if(d=H.yieldResult){var D;a:{if(d.headers&&(D=d.headers.get("date"))&&(D=Date.parse(D),!isNaN(D))){D=Math.round((0,_.k_)()-D);break a}D=-1}f=D;if(f>-1)return H.return(f)}return H.return(-1)})},zAw=function(){var K=_.Hu.caches,d=_.lx("IS_SHELL_LOAD"),f,H;
_.c(function(D){if(D.nextAddress==1)return f=-1,d?_.I(D,Fgy(K),3):(H=_.Ff(),f=Math.round((0,_.k_)()-H),D.jumpTo(2));D.nextAddress!=2&&(f=D.yieldResult);f>=0&&f<2147483648&&_.Ox({appInstallDataAgeMs:f});_.iQ(D)})},X65=function(K){var d=_.QX(_.Hu.location.href),f={};
"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(H){var D=d.JSC$8037_queryData_.getValues(H);if(D==null?0:D.length)f[H]=D});
return _.K0(K,new Map(Object.entries(f)))},v_7=function(K){K=K.match(/(.*)::.*::.*/);
if(K!==null)return K[1]},MQZ=function(K){if(_.fvN()){var d=Object.keys(window.localStorage);
d=_.y(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var H=v_7(f);H===void 0||K.includes(H)||self.localStorage.removeItem(f)}}},PHc=function(){if(!_.fvN())return!1;
var K=_.F4(),d=Object.keys(window.localStorage);d=_.y(d);for(var f=d.next();!f.done;f=d.next())if(f=v_7(f.value),f!==void 0&&f!==K)return!0;return!1},g_i=function(K){return _.LP("NotificationsDisabled",K)},OyK=function(){return Notification.permission!="granted"?Promise.resolve():_.Kci().then(function(K){return K?K.pushManager.getSubscription().then(function(d){if(d)return Promise.resolve();
d={userVisibleOnly:!0,applicationServerKey:_.Us("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return K.pushManager.subscribe(d).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},Nit=function(K){return _.Kci().then(function(d){if(!d||!d.active)return Promise.reject(new _.X4("serviceworker.postMessage",K,d));
try{return d.active.postMessage(K),Promise.resolve()}catch(f){return Promise.reject(f)}})},YFS=function(){Nit({type:"notifications_register",
data:_.mD("ID_TOKEN")})},tQP=function(){if(!_.lx("LOGGED_IN"))return Promise.resolve(!1);
var K=_.fy("service_worker_push_force_notification_prompt_tag");return K?_.JU("PromptTags").then(function(d){if(!d)return!0;var f=[];try{f=JSON.parse(d)}catch(H){return!1}return f&&f.indexOf(K)==-1}):Promise.resolve(!1)},o_i=function(){var K=_.di("service_worker_push_prompt_delay_microseconds");
return K?_.JU("PromptTime").then(function(d){return Promise.resolve(Date.now()-K>(d||0))}):Promise.resolve(!0)},$X7=function(){var K=_.di("service_worker_push_logged_out_prompt_watches");
return K==-1?Promise.resolve(!1):_.JU("WatchCount").then(function(d){return d>=K})},E_S=function(){var K=_.Bp(document,"yt-push-prompt-modal-bg");
K&&_.FE(K)},hAl=function(){return _.di("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.JU("PromptCount").then(function(K){K||(K=0);
return Promise.resolve(K<_.di("service_worker_push_prompt_cap"))})},byK=function(K){return _.lx("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.lx("LOGGED_IN")&&(K===void 0?0:K)?tQP().then(function(d){if(d)return!0;
d=[hAl(),o_i()];_.lx("LOGGED_IN")||d.push($X7());return Promise.all(d).then(function(f){return f.every(function(H){return H})})}):Promise.resolve(!1)},mXy=function(){_.JU("PromptCount").then(function(K){return _.LP("PromptCount",K+1)}).then(function(){return _.LP("PromptTime",Date.now())}).then(function(){var K=_.fy("service_worker_push_force_notification_prompt_tag");
if(K)return _.JU("PromptTags").then(function(d){var f=[];if(d)try{f=JSON.parse(d)}catch(H){return!1}f||(f=[]);f.push(K);return _.LP("PromptTags",JSON.stringify(f))})})},Wgw=function(){lUw||E_S()},GsS=function(K){K.style.zIndex=2147483648;
K.style.pointerEvents="auto";K.style.backgroundColor="rgba(0, 0, 0, 0.6)";K.style.width="100%";K.style.height="100vh";K.style.position="absolute";K.style.top="0";K.style.left="0";K.style.border="none"},A9t=function(){var K=_.Bp(document,"yt-push-prompt-modal-bg");
lUw=_.M("service_worker_push_prompt_modal_ignore_click");K?GsS(K):(K=_.R_("div",{id:"yt-push-prompt-modal-bg"}),GsS(K),document.body.appendChild(K),_.xnO(document,"click",Wgw))},Tiw=function(){var K=arguments;
_.M("service_worker_push_prompt_modal_enable")&&A9t();return Notification.requestPermission().then(function(d){E_S();var f=document.getElementById("ticker");f&&(f.className=f.classList.remove("show"));if(d=="granted")return OyK().then(function(){g_i(!1);YFS();return Promise.resolve(!0)});
d=="denied"&&YFS();return Promise.resolve(!1)}).catch(function(){E_S();
return Promise.reject.apply(Promise,_.Me(K))})},r9t=function(K){K=K===void 0?!1:K;
var d=_.MYG().client;if(d&&d.browserVersion){var f=d.browserVersion,H=d.browserName=="CHROME"&&_.RX(f,"50.0.0")<0;d=d.browserName=="OPERA"&&_.RX(f,"42.0.0")<0;if(H||d)return Promise.resolve()}return _.HME().then(function(D){if(!D)return Promise.resolve();D=OyK().then(function(){return Nit({type:"notifications_check_registration",data:_.mD("ID_TOKEN")})});
return Notification.permission!="default"?D.catch(function(){}):D.then(function(){return byK(K)}).then(function(S){if(S)return mXy(),Tiw().then(function(){})}).catch(function(){})})},qFl=function(K){return _.dDy(K)?r9t():Promise.resolve()},Q0t=function(K){var d=K.installing||K.waiting;
return K.active||!d?Promise.resolve(K):new Promise(function(f){var H=function(D){D=D.target;if(D.state==="activated"||D.state==="redundant")d.removeEventListener("statechange",H),f(K)};
d.addEventListener("statechange",H)})},j0U=function(){var K=new _.bx5("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.Hd(K,{mainAppWeb:_.Go()});var d=_.jJ4;_.M("service_worker_forward_exp_params")&&(d=X65(d));try{var f=_.POB(d).catch(function(){_.Df(K,"FAILURE");return new Promise(function(){})});
_.M("service_worker_push_enabled")&&f.then(function(H){_.Df(K,"SUCCESS");return H}).then(Q0t).then(qFl)}catch(H){if(_.Df(K,"FAILURE"),H.name!=="SecurityError")throw H;
}},CHi=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&j0U()},xXz=function(K,d){var f={};
d&&(f.serializedYpcFamilyCreateLoggingParams=d);_.t3(K,f);_.oB()},LgZ=function(K,d){var f={};
f.serializedYpcRefundFlowLoggingParams=d;K&&(f.eventType=K);_.t3("ypcRefundFlowEvent",f);_.oB()},Biw=function(K){K&&_.ODo("transactionFlowSucceeded",K)},J9y=function(K){K&&_.$y("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",K,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},s0w=function(K){var d,f,H,D,S,n,u;
_.c(function(a){if(a.nextAddress==1)return _.I(a,_.VGX(),2);if(a.nextAddress!=3){if(!a.yieldResult)return a.return(!1);d=[];return _.I(a,_.KK.keys(),3)}f=a.yieldResult;H=_.y(f);for(D=H.next();!D.done;D=H.next())S=D.value,n=_.HjN(S),u=n.datasyncId,!u||K.includes(u)||d.push(_.KK.delete(S));return a.return(Promise.all(d).then(function(R){return R.some(function(F){return F})}))})},ksl=function(){var K,d,f,H,D,S,n;
return _.c(function(u){if(u.nextAddress==1)return _.I(u,_.VGX(),2);if(u.nextAddress!=3){if(!u.yieldResult)return u.return(!1);K=_.F4("cache contains other");return _.I(u,_.KK.keys(),3)}d=u.yieldResult;f=_.y(d);for(H=f.next();!H.done;H=f.next())if(D=H.value,S=_.HjN(D),(n=S.datasyncId)&&n!==K)return u.return(!0);return u.return(!1)})},w6E=function(){var K=_.eq().resolve(_.Zd(_.g96));
return K?K.getCurrentTime():0},Zyt=function(){var K,d,f,H,D,S,n,u,a,R,F,z,v,g;
return _.c(function(N){switch(N.nextAddress){case 1:K={},d=_.JOY(),f=_.y(Object.entries(d)),H=f.next();case 4:if(H.done){N.jumpTo(3);break}D=H.value;S=_.y(D);n=S.next().value;u=S.next().value;a=n;R=u;if(!R){N.jumpTo(5);break}return _.I(N,R(),8);case 8:K[a]=N.yieldResult;case 5:H=f.next();N.jumpTo(4);break;case 2:F=_.y(void 0),z=F.next();case 9:if(z.done){N.jumpTo(3);break}v=z.value;g=d[v];if(!g){N.jumpTo(10);break}return _.I(N,g(),13);case 13:K[v]=N.yieldResult;case 10:z=F.next();N.jumpTo(9);break;
case 3:return N.return(K)}})},eAK=function(){var K;
_.c(function(d){if(d.nextAddress==1)return _.I(d,Zyt(),2);K=d.yieldResult;return _.I(d,navigator.clipboard.writeText(JSON.stringify(K,null,2)),0)})},p65=function(K,d){return _.DR(K.entities,"superThanksSelectedTierEntity",d)},KnE=function(K){var d;
return(d=K.sharedUi)==null?void 0:d.currentPageType},dHc=function(K,d){return{popup:{searchSuggestionReportDialog:{searchQuery:K,
title:_.iB("SBOX_INAPPROPRIATE_TITLE"),suggestions:d,categoryLabel:_.iB("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.iB("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.iB("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.iB("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.iB("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.iB("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.iB("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.iB("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.iB("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.iB("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},fkZ=function(K){var d,f,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J;
return _.c(function(L){switch(L.nextAddress){case 1:return _.I(L,_.yj(),2);case 2:return(d=L.yieldResult)?_.I(L,_.U4o(d),3):L.return();case 3:f=L.yieldResult;if(!f)return L.return();D=((H=f.offlineVideos)==null?void 0:H.length)||0;n=((S=f.offlinePlaylists)==null?void 0:S.length)||0;if(D===0&&n===0)return L.return();u=0;if(f.offlineVideos)for(a=_.y(f.offlineVideos),R=a.next();!R.done;R=a.next())F=R.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===F.videoState&&(u+=1);K.offline_videos_count=D.toString();_.M("kevlar_log_offline_current_network_type_ks")||
(K.offline_current_network_type=(z=_.udu())!=null?z:"CONN_INVALID");_.M("kevlar_log_updated_time_for_smart_downloads")&&(v=_.j3().getState().entities,g=_.PJ(v),N=BFE(v),K.offline_smart_downloads_last_sync_time_ms=g.toString(),K.offline_smart_downloads_next_sync_time_ms=N.toString());K.offline_videos_playable=u.toString();K.offline_playlists_count=n.toString();if(!_.M("woffle_used_state_report")){L.jumpTo(4);break}f.offlineVideos&&(h=f.offlineVideos.reduce(function(fB,w){w.downloadedBytes&&(fB+=Number(w.downloadedBytes));
return fB},0).toString())&&(K.offline_used_disk_space_bytes=h);
if(!((m=navigator)==null?0:(T=m.storage)==null?0:T.estimate)){L.jumpTo(4);break}return _.I(L,navigator.storage.estimate(),6);case 6:r=L.yieldResult,K.offline_free_disk_space_bytes=(((J=r)==null?void 0:J.quota)||0).toString();case 4:K.offline_client_state=JSON.stringify(f),_.iQ(L)}})},HAE=function(K){K=K.match(/(.*)::.*::.*/);
if(K!==null)return K[1]},DHE=function(K){if(_.FYX()){var d=Object.keys(window.sessionStorage);
d=_.y(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var H=HAE(f);H===void 0||K.includes(H)||self.sessionStorage.removeItem(f)}}},Vc7=function(){if(!_.FYX())return!1;
var K=_.F4(),d=Object.keys(window.sessionStorage);d=_.y(d);for(var f=d.next();!f.done;f=d.next())if(f=HAE(f.value),f!==void 0&&f!==K)return!0;return!1},uE=function(K,d,f){(_.M("desktop_keyboard_shortcut_usage_log")||f&&_.M("web_shorts_keyboard_shortcut_usage_log"))&&(d?_.wf.get(K):_.kq.get(K))&&(K=d?_.ea.get(K):_.Zo.get(K))&&_.rN(_.te(),K)},SXZ=function(K){return K.visibility!=="hidden"&&K.display!=="none"},yL7=function(K){if(!K.matches("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])"))return-1;
K=K.getAttribute("tabindex")||"0";return Number(K)},nKl=function(K){return K.some(function(d){return yL7(d)>0})},iAZ=function(K){if(K.textContent)return!0;
if(K instanceof HTMLInputElement){if(!K.labels)return!1;K=_.y(K.labels);for(var d=K.next();!d.done;d=K.next())if(d.value.textContent)return!0}return!1},cLl=function(K){return K.sort(function(d,f){return yL7(f)-yL7(d)})},ujU=function(K){K=Array.from(K.querySelectorAll("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])")).filter(function(d){return(SXZ(d.style)?
SXZ(window.getComputedStyle(d)):!1)&&iAZ(d)});
return nKl(K)?cLl(K):K},akw=function(K){K=ujU(K);
K.length>0&&K[0].focus()},Ikw=function(K,d){d.stack&&(K.stack+="\n"+d.stack);
return K},FnK=function(K){var d=aK(K,"Content-Type");
if(!d)return null;d=d.toLowerCase();if(d.startsWith("application/json"))return d.startsWith("application/json+protobuf")?new UH5:new _.k1;if(d.startsWith("application/x-protobuf")){K=aK(K,"Content-Transfer-Encoding");if(!K)return new IK;if(K.toLowerCase()=="base64")return new RnP}return null},YX5=function(K,d,f,H){var D=new znE(function(u,a){return XA5.has(a)?u.sentinel==="gal"&&u.event!==void 0:!1},function(u){u.event?(u=vKy(u.event),u=!u||Mcz(H,u)?!0:_.SR(K.lastEvent,Uq,2,RK)?!_.SR(u,FS,1,RK)&&
!_.SR(u,Uq,2,RK):!_.SR(u,FS,1,RK)&&!_.SR(u,Uq,3,RK)):u=!0;
return u});
f=_.K0(K.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",P37(f)]]));if(K.nestedOrigins!==void 0)for(var S=_.y(K.nestedOrigins),n=S.next();!n.done;n=S.next())f=_.K0(f,new Map([["origin",n.value]]));return gKE(D,f,d).then(function(u){u=OAc(u.event);if(_.SR(u,FS,1,RK)){var a,R=(a=_.O3(u,FS,1,RK))==null?void 0:_.vY(a,2);R&&H.JSC$17091_logErrorEvent(NR7(R));a=_.O3(u,FS,1,RK);_.vY(a,2)===4?(u=_.O3(u,FS,1,RK),u={statusCode:11,statusMessage:_.Xo(u,
3)}):(u=_.O3(u,FS,1,RK),u={statusCode:12,statusMessage:_.Xo(u,3)});return u}_.SR(u,Uq,3,RK)?(u=_.O3(u,Uq,3,RK),u={statusCode:1,consentLanguageKeys:_.Xo(u,2)}):u={statusCode:1};return u}).catch(function(u){return u.errorCode!==void 0?{statusCode:u.errorCode,
statusMessage:u.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},EKz=function(K){var d={};
if(K===void 0||K===null)return d;K.getToken()!==void 0&&tcP(K.getToken())&&tcP(K.getToken()).length>0&&(d.scopes=new Set(tcP(K.getToken())));K.getToken()!==void 0&&oKl(K.getToken())&&oKl(K.getToken()).length>0&&(d.capabilities=new Set(oKl(K.getToken())));_.Xo(K,3)!==void 0&&(d.consistencyKey=_.Xo(K,3));K.getName()!==void 0&&K.getName()!==""&&(d.linkName=K.getName());_.V5(K,$HE,4)&&(K=_.eQ(K,$HE,4),K=Object.assign({},_.Xo(K,1)&&{userId:_.Xo(K,1)},_.Xo(K,2)&&{displayName:_.Xo(K,2)},_.Xo(K,3)&&{email:_.Xo(K,
3)},_.Xo(K,5)&&{username:_.Xo(K,5)},_.Xo(K,4)&&{profilePicture:_.Xo(K,4)}),d.profile=K);return d},hnS=function(K,d){var f=K.flowParams;
return{serviceId:f.serviceId,sessionId:f.sessionId,currentFlow:K.currentFlow,googleScopesString:d,linkingSessionSerialized:K.session.serialize(),consentLanguageKeys:f.consentLanguageKeys,callerState:K.callerState,dynamicUrlParameters:f.dynamicUrlParameters,partnerConfigMinReadTimestamp:f.partnerConfigMinReadTimestamp}},G7S=function(K){var d=K.googleScopes!==void 0?Array.from(K.googleScopes).join(","):"";
bAz(hnS(K,d));d=mH7(K);return d===null?Promise.resolve(lkw):d.start().then(function(f){var H,D=(H=f.link)==null?void 0:H.consistencyKey;return f.statusCode===1&&K.googleScopes!==void 0&&K.googleScopes.size>0&&D!==void 0?(H=K.flowParams,WnZ(H.serviceId,H.sessionId,K.googleScopes,D,H.galService,K.config,f)):f})},ALz=function(K){var d=mH7(K);
return d===null?Promise.resolve(zR({statusCode:7,statusMessage:"Failed to create flow object"},K.callerState)):d.complete().then(function(f){var H,D=(H=f.link)==null?void 0:H.consistencyKey;return f.statusCode===1&&K.googleScopes!==void 0&&K.googleScopes.size>0&&D!==void 0?(H=K.flowParams,WnZ(H.serviceId,H.sessionId,K.googleScopes,D,H.galService,K.config,f)):zR(f,K.callerState)},function(f){return zR({statusCode:12,
statusMessage:"Failed to complete the flow: "+f.message},K.callerState)})},WnZ=function(K,d,f,H,D,S,n){return TRE(D,{serviceId:K,
sessionId:d,googleScopes:f,consistencyKey:H}).then(function(){return n},function(u){return D.deleteLink({serviceId:K,
sessionId:d,accountLinkingEntryPoint:S.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+u.message}},function(a){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+a.message}})})},mH7=function(K){switch(K.currentFlow){case 1:var d=K.flowParams;
K=_.eQ(K.session,rLZ,1);return XS.createOAuthFlow(d,K);case 2:case 3:return d=K.flowParams,K=_.eQ(K.session,qXt,6),vf.createStreamlinedFlow(d,K);default:return null}},Qcy=function(K,d){K===2&&(K=3);
var f=0;M6.indexOf(K)!==-1&&(f=M6.indexOf(K)+1);for(K=f;K<M6.length;K++)if(d.has(M6[K]))return M6[K]},xH5=function(K){var d=K.serviceId;
var f=K.sessionId;var H=K.config;var D=K.galService;var S=K.capabilities;var n=K.scopes;var u=K.loginHint;var a=K.callerState;var R=K.consentLanguageKeys;var F=K.linkName;var z=K.dynamicUrlParameters;var v=K.partnerConfigMinReadTimestamp;K=H.dataUsageNoticeConfig?H.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return D.startLinkingSession({serviceId:d,sessionId:f,capabilities:S,scopes:n,loginHint:u,callerState:a,supportedFlows:jcP(H.supportedFlows),completionUrl:H.completionUrl,accountLinkingEntryPoint:H.accountLinkingEntryPoint,
consentLanguageKeys:R,dataUsageNoticeConfig:K,linkName:F,dynamicUrlParameters:z,partnerConfigMinReadTimestamp:v}).then(function(g){return new C3w(d,f,H,D,g,void 0,a,R,z,v)})},k7w=function(K,d,f){a:{var H=new Lnl;
if(H.storage!==null)try{var D=H.storage.get("SAVED_SESSION");if(D===void 0){var S=null;break a}if(D.serviceId===K){S=D;break a}}catch(n){}S=null}if(S===null)return Promise.resolve({statusCode:2});BRl(K);H=JLZ(S.linkingSessionSerialized);return scc(new C3w(K,S.sessionId,d,f,H,S.googleScopesString!==""&&S.googleScopesString!==void 0?new Set(S.googleScopesString.split(",")):void 0,S.callerState,S.consentLanguageKeys,S.dynamicUrlParameters,S.partnerConfigMinReadTimestamp),S.currentFlow,S.consentLanguageKeys)},
bAz=function(K){var d=new Lnl;
d.storage!==null&&d.storage.set("SAVED_SESSION",K)},BRl=function(K){var d=new Lnl;
if(d.storage!==null){var f=d.storage.get("SAVED_SESSION");f!==void 0&&f.serviceId===K&&d.storage.remove("SAVED_SESSION")}},jcP=function(K){var d=new Set;
K=_.y(K);for(var f=K.next();!f.done;f=K.next())f=f.value,f!==1&&wAl.has(f)&&d.add(wAl.get(f));return d},zR=function(K,d){d!==void 0&&(K.callerState=d);
return K},ZAi=function(K){switch(K){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},Khw=function(){var K={timeout:5E3};
K=K===void 0?{}:K;return enP!=null?enP:enP=pAE(K)},dFc=function(){return new Promise(function(K,d){window.gapi.load("client",{callback:K,
onerror:d})})},pAE=function(K){K=K===void 0?{}:K;
var d;return _.c(function(f){if(f.nextAddress==1){if((d=window.gapi)&&d.client&&d.client.load)f=f.return(d);else{var H=_.yL("https://apis.google.com/js/api.js");f=_.I(f,_.Pt(H,K),2)}return f}if(f.nextAddress!=3){d=window.gapi;if(!d)throw Error("Xj");return d.client&&d.client.load?f.jumpTo(3):_.I(f,dFc(),3)}return f.return(d)})},Hot=function(K,d){d=d===void 0?0:d;
var f=K.auth2.getAuthInstance().currentUser.get(),H=f.getAuthResponse(!0);if(H&&H.expires_at-Date.now()<d){if(fxi.has(K))return fxi.get(K);d=Promise.resolve(f.reloadAuthResponse()).finally(function(){fxi.delete(K)});
fxi.set(K,d);return d}return Promise.resolve()},DFU=function(K,d){var f;
return K.client.init({apiKey:d.apiKey,clientId:d.clientId,scope:d.scope,discoveryDocs:d.discoveryDocs,hostedDomain:d.hostedDomain,fetchBasicProfile:(f=d.fetchBasicProfile)!=null?f:!0})},V7t=function(K){if(K.queryParams!=null){var d={},f;
for(f in K.queryParams)K.queryParams[f]!==void 0&&(d[f]=K.queryParams[f]);K.queryParams=d}},n7t=function(K){return new SNU(K,new y3w(K))},ubP=function(K,d){d=d===void 0?!1:d;
var f=document.createElement("div");K&&(f.style.transform="scaleX(-1)");f.style.backgroundColor=d?"rgba(138,180,248,.24)":"#e8f0fe";f.style.height="4px";f.style.overflow="hidden";f.style.position="absolute";f.style.top="0";f.style.width="100%";f.style.zIndex="1500";f.setAttribute("aria-label","Loading");f.setAttribute("aria-live","polite");K=document.createElement("style");K.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  }";
f.appendChild(K);K=io5();K.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";K.style.left="-145.166611%";var H=c3i(d);H.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";K.appendChild(H);f.appendChild(K);K=io5();K.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";K.style.left="-54.888891%";d=c3i(d);d.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
K.appendChild(d);f.appendChild(K);return f},io5=function(){var K=document.createElement("div");
K.style.height="100%";K.style.position="absolute";K.style.transformOrigin="top left";K.style.width="100%";return K},c3i=function(K){var d=document.createElement("span");
d.style.borderTop=K?"4px solid #669df6":"4px solid #4285f4";d.style.display="inline-block";d.style.position="absolute";d.style.width="100%";return d},axc=function(K){return K==null?void 0:_.N2N(K).valueOf()},Fhl=function(K){var d=document.body,f=!1,H=function(){f||(f=!0,Ixw(D,S),setTimeout(function(){d.removeChild(S);
d.removeChild(D)},150))},D=UFi(K,getComputedStyle(d).direction==="rtl",H),S=Rdy(H);
Ixw(D,S);d.appendChild(S);d.appendChild(D);window.requestAnimationFrame(function(){S.style.opacity="1";D.style.opacity="1";D.style.transform="translate(-50%, -50%) scale(1)";D.children[0].focus()})},UFi=function(K,d,f){var H=document.createElement("div");
H.style.position="fixed";H.style.alignItems="center";H.style.backgroundColor=K?"rgb(32, 33, 36)":"white";H.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";H.style.display="flex";H.style.flexDirection="column";H.style.justifyContent="center";H.style.left="50%";H.style.top="50%";H.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";H.style.zIndex="2002";document.body.clientWidth>=660?(H.style.borderRadius="8px",H.style.minHeight="220px",
H.style.maxHeight="90%",H.style.maxWidth="90%",H.style.minWidth="540px"):(H.style.height="100%",H.style.width="100%");H.setAttribute("aria-label","Error");H.setAttribute("aria-modal","true");H.setAttribute("role","alertdialog");H.addEventListener("keydown",function(S){S.key==="Escape"&&f()});
d=zdS(K,d,f);H.appendChild(Xat(d));H.appendChild(d);var D=document.createElement("img");D.src=K?"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";D.style.height="72px";D.style.width="72px";D.style.color="#9aa0a6";D.setAttribute("alt","");H.appendChild(D);D=document.createElement("h1");D.textContent="Something went wrong.  Try again.";
D.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";D.style.lineHeight="24px";D.style.fontSize="16px";D.style.textAlign="center";D.style.letterSpacing="0.1px";D.style.color=K?"rgb(232,234,237)":"#3c4043";H.appendChild(D);H.appendChild(Xat(d));return H},zdS=function(K,d,f){var H=document.createElement("button");
H.style.backgroundColor="transparent";H.style.border="none";H.style.borderRadius="50%";H.style.cursor="pointer";H.style.outline="none";H.style.padding="12px";H.setAttribute("aria-label","Close dialog");H.style.position="absolute";H.style.top="0";d?H.style.right="0":H.style.left="0";H.addEventListener("focus",function(){H.style.backgroundColor=K?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
H.addEventListener("blur",function(){H.style.backgroundColor="transparent"});
H.addEventListener("mouseenter",function(){H.style.backgroundColor=K?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
H.addEventListener("mouseleave",function(){H.style.backgroundColor="transparent"});
H.addEventListener("click",f);H.addEventListener("keydown",function(D){D.key!=="Enter"&&D.key!=="Space"||f()});
d=document.createElement("img");d.src=K?"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";d.style.display="block";d.style.height="24px";d.style.width="24px";d.setAttribute("alt","");H.appendChild(d);return H},Xat=function(K){var d=document.createElement("div");
d.setAttribute("tabindex","0");d.setAttribute("aria-hidden","true");d.addEventListener("focus",function(){return void K.focus()});
return d},Rdy=function(K){var d=document.createElement("div");
d.style.backgroundColor="rgba(32,33,36,0.6)";d.style.bottom="0";d.style.left="0";d.style.position="fixed";d.style.right="0";d.style.top="0";d.style.transition=" opacity 150 ms linear";d.style.zIndex="2001";d.addEventListener("click",K);return d},Ixw=function(K,d){d.style.opacity="0";
K.style.opacity="0";K.style.transform="translate(-50%, -50%) scale(0.8)"},v7S=function(K,d){K.sandbox&&K.sandbox.add&&(K.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),K.sandbox.add("allow-downloads"));
K.src=d},Pf=function(K){M7E.call(this,K)},go=function(K,d){d=d===void 0?!1:d;
this.parsedImageUrl_=null;K instanceof Pp7||(g7U==void 0&&(g7U=new Ooz),K=g7U.parse(K.toString(),d));K=this.parsedImageUrl_=K;K.JSC$17322_parsedOptions_==void 0&&((d=K.getOptions())||(d=""),K.JSC$17322_parsedOptions_=(new NUS).parse(d));M7E.call(this,K.JSC$17322_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;K=this.parsedImageUrl_;d=K.uri_.JSC$8037_port_;this.JSC$17324_domain_=K.uri_.JSC$8037_domain_+(d?":"+d:"");this.JSC$17324_query_=this.parsedImageUrl_.uri_.JSC$8037_queryData_.toString()},
YNK=function(K){this.mode=4;
this.data=K;this.parsedData=[];K=0;for(var d=this.data.length;K<d;K++){var f=[],H=this.data.charCodeAt(K);H>65536?(f[0]=240|(H&1835008)>>>18,f[1]=128|(H&258048)>>>12,f[2]=128|(H&4032)>>>6,f[3]=128|H&63):H>2048?(f[0]=224|(H&61440)>>>12,f[1]=128|(H&4032)>>>6,f[2]=128|H&63):H>128?(f[0]=192|(H&1984)>>>6,f[1]=128|H&63):f[0]=H;this.parsedData.push(f)}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))},t7t=function(K){this.typeNumber=0;
this.errorCorrectLevel=K===void 0?2:K;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Oq=function(K,d){if(K.length==void 0)throw Error("rk`"+K.length+"`"+d);
for(var f=0;f<K.length&&K[f]==0;)f++;this.num=Array(K.length-f+d);for(d=0;d<K.length-f;d++)this.num[d]=K[d+f]},o7i=function(K,d){this.totalCount=K;
this.dataCount=d},$Fw=function(){this.buffer=[];
this.length=0},E7z=function(){var K=!1;
if(_.anJ()){K=_.zS();var d="";_.RGp()?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(K=d.exec(K))?K[1]:"0.0"):_.AN()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(K=d.exec(K))&&K[1].replace(/_/g,".")):_.UJJ()?(d=/Mac OS X ([0-9_.]+)/,d=(K=d.exec(K))?K[1].replace(/_/g,"."):"10"):_.IX(_.zS(),"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(K=d.exec(K))&&K[1]):_.anJ()?(d=/Android\s+([^\);]+)(\)|;)/,d=(K=d.exec(K))&&K[1]):_.F5N()&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(K=d.exec(K))&&K[1]);K=d||""}return K},GEw=function(K,
d){this.JSC$17347__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(d)for(var f in d)this.JSC$17347__htOption[f]=d[f];this.JSC$17347__htOption.useSVG&&(hd7=boi);this.JSC$17347__android=E7z();this.JSC$17347__el=K;this._oQRCode=null;this._oDrawing=new hd7(this.JSC$17347__el,this.JSC$17347__htOption);this.JSC$17347__htOption.text&&(K=this.JSC$17347__htOption.text,this._oQRCode=new t7t(this.JSC$17347__htOption.correctLevel),mFw(this._oQRCode,K),d=this._oQRCode,lxc(d,!1,WhK(d)),this.JSC$17347__el.title=
K,this._oDrawing.draw(this._oQRCode),this.makeImage())},A3c=function(K,d,f,H,D){K.save();
var S=new Path2D;S.roundRect(d,f,H*7,H*7,H*2);S.roundRect(d+H,f+H,H*5,H*5,H*1.3);S.roundRect(d+2*H,f+2*H,H*3,H*3,H);K.clip(S,"evenodd");K.fillStyle=D;K.fillRect(0,0,K.canvas.width,K.canvas.height);K.restore()},N6=function(K,d){if(typeof K!=="function")throw Error("uk");
return _.Hu.setTimeout(function(){K()},d)},Yi=function(){},r3K=function(K,d,f,H,D){(new Yi).debug("TestLoadImageWithRetries: "+D);
if(H==0)f(!1);else{var S=D||0;H--;TUS(K,d,function(n){n?f(!0):_.Hu.setTimeout(function(){r3K(K,d,f,H,S)},S)})}},TUS=function(K,d,f){var H=new Yi;
H.debug("TestLoadImage: loading "+K);var D=new Image;D.onload=function(){try{H.debug("TestLoadImage: loaded"),qNK(D),f(!0)}catch(S){}};
D.onerror=function(){try{H.debug("TestLoadImage: error"),qNK(D),f(!1)}catch(S){}};
D.onabort=function(){try{H.debug("TestLoadImage: abort"),qNK(D),f(!1)}catch(S){}};
D.ontimeout=function(){try{H.debug("TestLoadImage: timeout"),qNK(D),f(!1)}catch(S){}};
_.Hu.setTimeout(function(){if(D.ontimeout)D.ontimeout()},d);
D.src=K},qNK=function(K){K.onload=null;
K.onerror=null;K.onabort=null;K.ontimeout=null},QBw=function(){this.front_=[];
this.back_=[]},jBP=function(K,d){_.gG.call(this);
this.delay_=new _.No(this.JSC$17473_onTick_,0,this);_.cy(this,this.delay_);this.JSC$17471_interval_=5E3;this.nextTickTime_=0;if(typeof K==="function")d&&(K=(0,_.Om)(K,d));else if(K&&typeof K.handleEvent==="function")K=(0,_.Om)(K.handleEvent,K);else throw Error("Ca");this.JSC$17473_listener_=K},tK=function(K,d,f,H,D,S,n,u,a,R,F,z,v,g){f=f===void 0?!1:f;
H=H===void 0?function(){return""}:H;
D=D===void 0?!1:D;S=S===void 0?!1:S;n=n===void 0?!1:n;u=u===void 0?function(){return _.HG({})}:u;
a=a===void 0?!1:a;F=F===void 0?!1:F;z=z===void 0?!1:z;v=v===void 0?!1:v;g=g===void 0?!1:g;this.JSC$17474_pathPrefix_=K;this.defaultQueryParams_=d;this.pubsub_=new _.uH;this.reconnectTimer_=new jBP(this.safeReconnect_,this);this.JSC$17474_channel_=null;this.JSC$17474_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17474_pendingMessages_=[];this.enableAsyncTest_=f;this.JSC$17474_getXsrfToken_=H;this.useAsyncBrowserChannelHandler_=S;this.getAuthorizationHeader_=
u;this.getAuthorizationHeaderSync_=R;this.enableCachedUpdateAuthorizationHeader_=n;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.HG();this.enableLoungeTokenRefresh_=D;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=a;this.disableMdxAuthForNonPlaybackMessages_=F;this.disableMdxAuthForAdMessages_=z;this.enableMdxAuthForConnectionOnly_=v;this.disableMdxAuthForShortsMessages_=g;this.JSC$17474_channelOpenedCounter=new Cp5;this.JSC$17474_channelClosedCounter=new xFU;this.channelMessageSentCounter=
new LhE;this.JSC$17474_channelMessageReceivedCounter=new BUw;this.JSC$17474_channelErrorCounter=new J3P;this.pendingMapsOnClosedCounter=new sBU;this.undeliveredMapsOnClosedCounter=new kEP},oK=function(K){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;K=K||document.location.href;var d=Number(_.B_(K)[4]||null)||"";d&&(this.port=":"+d);this.domain=_.JR(K)||"";K=_.zS();K.search("MSIE")>=0&&_.RX(K.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},$i=function(K){K=K||{};
this.name=K.name||"";this.id=K.id||K.screenId||"";this.token=K.token||K.loungeToken||"";this.uuid=K.uuid||K.dialId||"";this.idType=K.screenIdType||"normal"},wat=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(K){var d=Math.random()*16|0;
return(K=="x"?d:d&3|8).toString(16)})},Zoi=function(K){return _.O7(K,function(d){return{key:d.id,
name:d.name}})},edt=function(K,d){return _.rz(K,function(f){return f||d?!f!=!d?!1:f.id==d.id:!0})},hK=function(K,d){return _.rz(K,function(f){return Eq(f,d)})},H3z=function(){var K=pa5(),d=KkP();
if(d5Z()){var f=K,H=_.PoX(f,d);H<0&&_.MpX(f,-(H+1),0,d)}K=ftK(K);if(K.length==0)try{_.yeN("remote_sid")}catch(D){}else try{_.UF("remote_sid",K.join(","),-1)}catch(D){}},pa5=function(){var K=_.KI("yt-remote-connected-devices")||[];
K.sort(_.yv);return K},ftK=function(K){if(K.length==0)return[];
var d=K[0].indexOf("#"),f=d==-1?K[0]:K[0].substring(0,d);return _.O7(K,function(H,D){return D==0?H:H.substring(f.length)})},D5S=function(K){_.p5("yt-remote-connected-devices",K,86400)},KkP=function(){if(VWU)return VWU;
var K=_.KI("yt-remote-device-id");K||(K=wat(),_.p5("yt-remote-device-id",K,31536E3));for(var d=pa5(),f=1,H=K;_.Bu(d,H);)f++,H=K+"#"+f;return VWU=H},SSi=function(){return _.KI("yt-remote-session-browser-channel")},d5Z=function(){return _.KI("yt-remote-session-screen-id")},i3K=function(K){K.length>5&&(K=K.slice(K.length-5));
var d=_.O7(ydy(),function(H){return H.loungeToken}),f=_.O7(K,function(H){return H.loungeToken});
_.pUO(f,function(H){return!_.Bu(d,H)})&&n$5();
_.p5("yt-remote-local-screens",K,31536E3)},ydy=function(){return _.KI("yt-remote-local-screens")||[]},n$5=function(){_.p5("yt-remote-lounge-token-expiration",!0,86400)},bE=function(K){K||(_.ds("yt-remote-session-screen-id"),_.ds("yt-remote-session-video-id"));
H3z();K=pa5();_.Zn(K,KkP());D5S(K)},utw=function(){cdU();
return m6?!!m6.get("yt-remote-use-staging-server"):!1},cdU=function(){if(!m6){var K=_.FVp();
K&&(m6=new _.v6(K))}},Rti=function(K,d,f,H,D){f=f===void 0?function(){return""}:f;
var S=function(){return new tK(lE(K,"/bc"),d,!1,f,H)};
return _.M("enable_mdx_web_channel_desktop")?new atE(function(){return new Itl(lE(K,"/wc"),d,f)}):new U5K(S,D)},v$i=function(){var K=Fkc;
ztU();Wf.push(K);Xec()},GR=function(K,d){ztU();
var f=MWZ(K,String(d));Wf.length==0?PTU(f):(Xec(),_.QB(Wf,function(H){H(f)}))},AK=function(K){GR("CP",K)},ztU=function(){Wf||(Wf=_.T2("yt.mdx.remote.debug.handlers_")||[],_.B6("yt.mdx.remote.debug.handlers_",Wf))},PTU=function(K){var d=(TR+1)%50;
TR=d;g$t[d]=K;O35||(O35=d==49)},Xec=function(){var K=Wf;
if(g$t[0]){var d=O35?TR:-1,f={};do f={record$jscomp$13:void 0},d=(d+1)%50,f.record$jscomp$13=g$t[d],_.QB(K,function(H){return function(D){D(H.record$jscomp$13)}}(f));
while(d!=TR);g$t=Array(50);TR=-1;O35=!1}},MWZ=function(K,d){var f=(Date.now()-NXi)/1E3;
f.toFixed&&(f=f.toFixed(3));var H=[];H.push("[",f+"s","] ");H.push("[","yt.mdx.remote","] ");H.push(K+": "+d,"\n");return H.join("")},ro=function(K){_.sT.call(this);
this.JSC$17498_logName_=K;this.screens=[]},Q6=function(K){ro.call(this,"LocalScreenService");
this.JSC$17505_http_=K;this.loungeTokenRefreshTimer_=NaN;q6(this);this.info("Initializing with "+YSy(this.screens))},jg=function(K,d){d=d===void 0?!1:d;
ro.call(this,"ScreenService");this.JSC$17511_http_=K;this.disableAutomaticScreenCache_=d;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};tWZ(this)},Cc=function(K,d,f){_.sT.call(this);
this.JSC$17515_logName_=f;this.JSC$17515_screenService_=K;this.receiver_=d;this.screen_=null},j4K=function(K,d,f){f.disableCastApi?xi("Cannot initialize because disabled by Mdx config."):o$S()?$5w(K,f)&&(E$5(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?htP(d):(window.__onGCastApiAvailable=function(H,D){H?htP(d):(Lc("Failed to load cast API: "+D),b35(!1),E$5(!1),_.ds("yt-remote-cast-available"),_.ds("yt-remote-cast-receiver"),m5c(),d(!1))},f.loadCastApiSetupScript?_.mV("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?lty()>=60&&WkE():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?GFz():lty()>=89?AdS():(TX5(),rdw(qSZ.map(Q4w))))):xi("Cannot initialize because not running Chrome")},m5c=function(){xi("dispose");
var K=Bf();K&&K.dispose();_.B6("yt.mdx.remote.cloudview.instance_",null);CTZ(!1);_.koz(x5w);x5w.length=0},Lkz=function(){return!!_.KI("yt-remote-cast-installed")},BXE=function(){var K=_.KI("yt-remote-cast-receiver");
return K?K.friendlyName:null},Jdy=function(){xi("clearCurrentReceiver");
_.ds("yt-remote-cast-receiver")},s4E=function(){return Lkz()?Bf()?Bf().getCastSession():(Lc("getCastSelector: Cast is not initialized."),null):(Lc("getCastSelector: Cast API is not installed!"),null)},weS=function(K,d){kFZ()?Bf().setConnectedScreenStatus(K,d):Lc("setConnectedScreenStatus called before ready.")},o$S=function(){var K=_.zS().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.KO||K},$5w=function(K,d){var f=!1;
Bf()||(K=new JK(K,d),K.subscribe("yt-remote-cast2-availability-change",function(H){_.p5("yt-remote-cast-available",H);Kc("yt-remote-cast2-availability-change",H)}),K.subscribe("yt-remote-cast2-receiver-selected",function(H){xi("onReceiverSelected: "+H.friendlyName);
_.p5("yt-remote-cast-receiver",H);Kc("yt-remote-cast2-receiver-selected",H)}),K.subscribe("yt-remote-cast2-receiver-resumed",function(H){xi("onReceiverResumed: "+H.friendlyName);
_.p5("yt-remote-cast-receiver",H);Kc("yt-remote-cast2-receiver-resumed",H)}),K.subscribe("yt-remote-cast2-session-change",function(H){xi("onSessionChange: "+Z3P(H));
H||_.ds("yt-remote-cast-receiver");Kc("yt-remote-cast2-session-change",H)}),_.B6("yt.mdx.remote.cloudview.instance_",K),f=!0);
xi("cloudview.createSingleton_: "+f);return f},Bf=function(){return _.T2("yt.mdx.remote.cloudview.instance_")},htP=function(K){b35(!0);
E$5(!1);Bf().init(!1,function(d){d?(CTZ(!0),_.wWO("yt-remote-cast2-api-ready")):(Lc("Failed to initialize cast API."),b35(!1),_.ds("yt-remote-cast-available"),_.ds("yt-remote-cast-receiver"),m5c());K(d)})},xi=function(K){GR("cloudview",K)},Lc=function(K){GR("cloudview",K)},b35=function(K){xi("setCastInstalled_ "+K);
_.p5("yt-remote-cast-installed",K)},kFZ=function(){return!!_.T2("yt.mdx.remote.cloudview.apiReady_")},CTZ=function(K){xi("setApiReady_ "+K);
_.B6("yt.mdx.remote.cloudview.apiReady_",K)},E$5=function(K){_.B6("yt.mdx.remote.cloudview.initializing_",K)},sq=function(K){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(K)},etw=function(){var K,d;
return _.c(function(f){if(f.nextAddress==1)return(_.mnX()||_.M("use_new_nwl"))&&_.$nS().isNetworkAvailable()?_.I(f,_.J9(),2):f.return();if(f.nextAddress!=3)return(K=f.yieldResult)?_.I(f,h85(K),3):f.return();d=f.yieldResult;if(!d.length)return f.return();d.forEach(function(H){var D={timestamp:H.timestamp};H=H.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:H.appShellAssetLoadReport,options:D}:H.clientError?{payloadName:"clientError",payload:H.clientError,options:D}:void 0;H&&
_.t3(H.payloadName,H.payload,H.options)});
d.length===100&&_.oc.addLowPriorityJob(etw);_.iQ(f)})},peS=function(K){if(K.playerResponse){if(K=K.playerResponse,K.messages&&K.messages.length>0&&(K=K.messages.find(function(d){return!(!d||!d.mealbarPromoRenderer)}))&&K.mealbarPromoRenderer)return K.mealbarPromoRenderer}else if(K.response&&(K=K.response)&&K.overlay&&K.overlay.mealbarPromoRenderer)return K.overlay.mealbarPromoRenderer},KVc=function(K){if(K.response){var d=K.response;
if(d&&d.overlay&&d.overlay.tooltipRenderer)return d.overlay.tooltipRenderer}if(K.playerResponse&&(K=K.playerResponse,K.messages&&K.messages.length>0&&(K=K.messages.find(function(f){return!(!f||!f.tooltipRenderer)}))&&K.tooltipRenderer))return K.tooltipRenderer},fpP=function(K){if(!duU&&(K=K||_.mD("ZWIEBACK_PING_URLS"))&&K.length){duU=!0;
for(var d=0;d<K.length;d++)_.T7(K[d])}},Dui=function(K){if(_.PR.get(_.mD("PLAYER_VARS",{}),"privembed",!1)!="1"){K&&Pxt();
try{H1z().then(function(){},function(){}),_.VK(Dui,18E5)}catch(d){_.G2(d)}}},VvE=function(){var K=_.aS(),d=K.getFlag(119),f=window.devicePixelRatio>1;
document.body&&_.hD(document.body,"exp-invert-logo")&&(f&&!_.hD(document.body,"inverted-hdpi")?_.CZ(document.body,"inverted-hdpi"):!f&&_.hD(document.body,"inverted-hdpi")&&_.Q2(document.body,"inverted-hdpi"));d!=f&&(_.IS(0,119,f),K.save())},Syw=function(K){return K.filter(function(d){return"ypcGetCartEndpoint"in d||"ypcFixInstrumentEndpoint"in d})},yeP=function(K){return K.filter(function(d){return!_.P(d,_.mVN)})},i1P=function(K){K=_.y(K);
for(var d=K.next(),f={};!d.done;f={setter$jscomp$6:void 0},d=K.next()){var H=d.value;d=H.params;H=H.service;d&&H&&(f.setter$jscomp$6=nZi[H],f.setter$jscomp$6&&d.forEach(function(D){return function(S){var n=S.key;S=S.value;n&&S&&(0,D.setter$jscomp$6)(n,S)}}(f)))}},udK=function(K,d){var f,H,D,S,n,u,a;
_.c(function(R){switch(R.nextAddress){case 1:f=_.PW.getInstance();H=_.V2.instance;D=_.md.instance;if(!D)return cey(K,H,d),R.return();_.HF(R,2);K.onLoadingCommand&&H.resolveCommand(K.onLoadingCommand);return _.I(R,f.getCurrentPositionFromGeolocation(),4);case 4:S=R.yieldResult;if(!K.resolveLocationCommand){R.jumpTo(5);break}n=f.createLocationInfo(S);return _.I(R,_.Wp(D,K.resolveLocationCommand,{locationInfo:n}),6);case 6:u=R.yieldResult;if(!u||"error"in u&&u.error||u.errorMetadata)return cey(K,H,d),
R.return();var F;if(u==null?0:(F=u.onResponseReceivedActions)==null?0:F.length){F=_.y(u.onResponseReceivedActions);for(var z=F.next();!z.done;z=F.next())H.resolveCommand(z.value)}(_.P(K.onSuccessCommand,_.qu)||_.P(K.onSuccessCommand,_.is))&&_.Zp(d.hostElement,"yt-navigate",{endpoint:K.onSuccessCommand,reload:!0});case 5:_.Ts(R,0);break;case 2:a=_.n7(R);if(a instanceof GeolocationPositionError&&a.code===GeolocationPositionError.PERMISSION_DENIED)return K.onDeniedCommand&&H.resolveCommand(K.onDeniedCommand),
R.return();cey(K,H,d);_.iQ(R)}})},cey=function(K,d,f){K.onFailureCommand&&(d.resolveCommand(K.onFailureCommand),_.ev(f.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},Ipz=function(K,d){var f=_.P(K,_.Jm9);
if(f&&d){K=f.videoIds||[f.videoId];var H;d=(H=_.Zp(d,"yt-lockup-requested",{videoIds:K}).detail)==null?void 0:H.returnValue;var D;f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?D=d?d:K.map(function(S){return{videoId:S,navigationEndpoint:f.videoCommand}}):d&&(D=d);
D&&(H=D.map(function(S){var n=Object,u=n.assign;var a=S.navigationEndpoint;if(!_.P(a,_.IM)){var R=_.P(a,_.qu);if(R){if(delete R.index,delete R.playlistId,R=_.P(a==null?void 0:a.commandMetadata,_.B0),R==null?0:R.url){var F=R.url;F=_.L1(F,"list");F=_.L1(F,"index");R.url=F}}else a=void 0}return u.call(n,{},S,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:a})}),apU(H,f))}},Uui=function(K){var d=_.h_();
if(K=_.P(K,_.s12))K.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&d.clearQueue(),K.closeMiniplayer&&_.eq().resolve(_.$b).close(!0)},FVS=function(K){RJz(_.h_(),K)},zJy=function(K){var d;
(K=(d=_.P(K,_.L44))==null?void 0:d.setVideoIds)&&K.forEach(function(f){_.LrL(_.h_(),f)})},vZ5=function(K){X0E(_.h_(),K)},Mvt=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(K){return!1}},PwU=function(K){var d=_.eq().resolve(_.Zd(_.Re));
if(d){var f={beforeTransition:function(){K.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){K.style.viewTransitionName=""}};
ki(d,"slide",f);ki(d,"zoom",f)}},gZw=function(K,d,f){return{horizontalAlignment:K.x+f.width/2<d.width/2?"west":"east",
verticalAlignment:K.y+f.height/2<d.height/2?"north":"south"}},Yyl=function(K,d,f,H,D){D=D===void 0?new _.Nm(0,0):D;
return O1P(NLE(K,d,f,H),D)},NLE=function(K,d,f,H){return new _.Nm(K==="west"?16:f.width-H.width-16,d==="north"?16:f.height-H.height-16)},tvP=function(K,d){var f=0;
K&&(f+=76);d&&(f+=285);return f},oZi=function(K){var d=["h",
"m","s"],f=_.ep(d);f.reverse();var H={};K=(K.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(n){var u=(n.match(/[hms]/)||[""])[0];return u?(H[u]=parseInt(n.match(/\d+/)[0],10),!1):!0});
for(K.reverse();K.length&&f.length;){var D=f.shift();D in H||(H[D]=parseInt(K.shift(),10))}if(K.length||H.s>59||H.m>59||H.h>9)return null;var S="";d.forEach(function(n){H[n]&&(S+=""+H[n]+n)});
return S||null},$ui=function(K){K=K.data;
return _.U("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.U("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.U(_.jV,{data:{thumbnails:[{url:K.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.U("div",{class:"profile-badge-view-model-wiz__content"},_.U("div",{class:"profile-badge-view-model-wiz__badge-description"},K.badgeDesc),K.badgeSubtitle?_.U("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},K.badgeSubtitle):null))},EZc=function(K){K=
K.data;
var d=_.Co();_.KCn(d,K.rendererContext);return _.U("yt-comment-interaction-view-model",{el:d,class:"yt-comment-interaction-view-model-wiz"},_.U("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":K.onTapA11yLabel,"on:keydown":_.JUG(),tabindex:0},_.U("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.U("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},K.headerPrefix,' "',K.videoTitle),_.U("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.U("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.U("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},K.commentContent),_.U("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.U(_.jV,{data:{thumbnails:[{url:K.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},b1y=function(K){K=K.data;
return _.U("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},hJE(K.avatar),_.U("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},K.channelName))},lpw=function(K){K=K.data;
var d;return _.U("div",{class:"yt-profile-info-view-model-wiz__activity"},_.U("div",{class:"yt-profile-info-view-model-wiz__header"},_.U("div",{class:"yt-profile-info-view-model-wiz__section-title"},K.commentsInteractionTitle)),(d=K.comments)==null?void 0:d.map(function(f){return _.U("div",{class:"yt-profile-info-view-model-wiz__activity"},muz(f))}))},WVw=function(K){K=K.data;
var d=_.hJ({elementsCommand:K.subscriptionsAccessButtonCommand}),f=_.Co();_.haY(f,_.$A(K.subscriptionsAccessButtonCommand));var H;return _.U("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.U("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.U("a",{el:f,"on:click":_.cp(function(D){if(d==null?0:d.onclick)d.onclick(D);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.U("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},K.sharedSubscriptionsTitle),_.U("div",null,muz(K.subscriptionsAccessButton)))),_.U("div",{class:"yt-profile-info-view-model-wiz__subs"},(H=K.sharedSubscriptions)==null?void 0:H.slice(0,5).map(function(D){return _.U("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",muz(D))})))},GwS=function(K){K=K.data;
var d;return _.U("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.U("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.U("h2",{class:"yt-profile-info-view-model-wiz__section-title"},K.sharedSubscriptionsTitle)),_.U("div",{class:"yt-profile-info-view-model-wiz__subs"},(d=K.sharedSubscriptions)==null?void 0:d.slice(0,5).map(function(f){return _.U("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",muz(f))})))},AeE=function(K){K=K.data;
return _.U("div",{class:"yt-profile-info-view-model-wiz__activity"},[K.profileBadgeInfoYtWide,K.profileBadgeInfoChannelWide].map(function(d){var f,H,D,S,n;return d?_.U(_.dF,null,_.U("div",{class:"yt-profile-info-view-model-wiz__header"},_.U("div",{class:"yt-profile-info-view-model-wiz__section-title"},d==null?void 0:d.profileSectionTitle),_.U("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.U("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},d==null?void 0:(f=d.commentBadge)==
null?void 0:f.commentDesc),(d==null?0:(H=d.commentBadge)==null?0:H.blackHeartDesc)?_.U("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.U("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.U(_.jV,{data:{thumbnails:[{url:d==null?void 0:(D=d.commentBadge)==null?void 0:D.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.U("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},d==null?void 0:(S=
d.commentBadge)==null?void 0:S.blackHeartDesc))),_.U("div",{class:"yt-profile-info-view-model-wiz__badge"},d==null?void 0:(n=d.badges)==null?void 0:n.map(function(u){return _.U($ui,{data:u})}))):null}))},TLZ=function(K){K=K.data;
return _.U("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.U(AeE,{data:K}),K.comments?_.U(lpw,{data:K}):null,K.sharedSubscriptionsTitle?K.subscriptionsAccessButtonCommand?_.U(WVw,{data:K}):_.U(GwS,{data:K}):null)},qyc=function(K){var d=K.data;
K=d?ret(d.profileIdentityInfo):void 0;d=d?ret(d.profileInfo):void 0;return _.U("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},K,d)},Qwl=function(K,d){var f=_.o6s(d,{},K,!0);
return new Promise(function(H,D){f.listenOnce("n",function(){D(Error("el`"+f.JSC$25849_getErrorDescription()))});
f.listenOnce("l",function(){var S=f.getResponseCode();if(S!==200)D(Error("fl`"+d+"`"+K.type+"`"+K.size+"`"+S));else try{H(JSON.parse(f.getResponseText()).encryptedBlobId)}catch(n){D(n)}});
f.run()})},jwc=function(K){return K.substring(K.indexOf(":")+1,K.indexOf(";"))},CwS=function(K){return new Promise(function(d,f){var H=new FileReader;
H.onloadend=function(){try{var D=new Uint8Array(H.result);D.length<8&&f(void 0);var S=D.subarray(0,8);D="";for(var n=0;n<S.length;n++)D+=("0"+S[n].toString(16)).substr(-2);D.startsWith("ffd8ff")?d("image/jpeg"):D.startsWith("47494638")?d("image/gif"):D.startsWith("89504e470d0a1a0a")?d("image/png"):D.startsWith("424d")?d("image/bmp"):d(void 0)}catch(u){f(u)}};
H.onerror=f;H.readAsArrayBuffer(K)})},xul=function(K){return new Promise(function(d,f){var H=new Image;
H.crossOrigin="anonymous";H.onload=function(){var D=document.createElement("canvas");D.width=H.naturalWidth;D.height=H.naturalHeight;var S=D.getContext("2d");if(!S)throw Error("gl");S.drawImage(H,0,0);S=jwc(K);D.toBlob(function(n){n?d(n):f()},S)};
H.src=K})},BLK=function(K,d){var f;
if(((f=_.P(K,_.IM))==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var H;_.Zp((H=d.hostElement)!=null?H:d,"yt-shorts-reset");_.kTk(_.eq().resolve(_.yJ),K).then(function(S){LVi(S,d,K)})}else{var D;
_.dN((D=d.hostElement)!=null?D:d,[K]).then(function(S){S&&LVi(S.data,d,K)})}},LVi=function(K,d,f){if(K){var H=_.P(K.replacementEndpoint,_.IM);
if(H){K.sequenceContinuation&&(H.sequenceParams=K.sequenceContinuation);var D;_.Zp((D=d.hostElement)!=null?D:d,"yt-navigate",{endpoint:K.replacementEndpoint})}else if((K==null?void 0:K.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(K==null?0:K.watchStatus)&&_.P(K.watchStatus,_.EW4)){var S;_.Zp((S=d.hostElement)!=null?S:d,"yt-navigate",{endpoint:f})}}},Je7=function(K){var d=_.eq().resolve(_.tj),f=KnE(d.getState())||"";
d=_.AZu(d.getState())||"";f=f==="ytd-browse"&&d==="home";return _.M("web_guide_entry_enable_cache_for_non_home_pages")?(K=(K==null?void 0:K.navigationEndpoint)&&_.nU(K.navigationEndpoint)==="home",{disableCache:f&&K}):{disableCache:f}},swl=function(K){if(!K)return!1;
try{if(K.host&&K.host.tagName==="YT-FORMATTED-STRING"&&K.host.id==="contenteditable-textarea"||K.nodeType===Node.ELEMENT_NODE&&K.tagName==="YTD-COMMENT-INPUT")return!0}catch(d){return!1}return swl(K.parentNode)},wo=function(K){return K?K.tagName==="A"&&K.href&&K.classList.contains("yt-simple-endpoint"):!1},kwZ=function(K){return K?K.tagName==="IMG"&&K.classList.contains("emoji"):!1},w0y=function(K,d,f){if(!K)return null;
var H=wo(K);if(H&&f)return d=K.pathname.substring(K.pathname.indexOf("/channel/")+9),document.createTextNode("@"+d);if(H&&!f)return document.createTextNode("");if(kwZ(K))return f=K.alt,K=K.dataset.emojiId,!K&&d&&(d=_.yb(d,f))&&d.isCustomEmoji&&(K=d.emojiId),K?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+K+">"):document.createTextNode(f);H=K.cloneNode(!1);for(var D=0;D<K.childNodes.length;++D){var S=w0y(K.childNodes[D],d,f);S&&H.appendChild(S)}return H},Z$=function(K){return K?wo(K)?K:Z$(K.lastChild):
null},Z1c=function(K){return K?wo(K)?K:Z1c(K.firstChild):null},eJi=function(K){if(!K)return null;
for(var d=K.previousSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.previousSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.previousSibling;else break;(d=Z$(d))?K=d:K=(K=K.parentNode)?Z$(K.previousElementSibling):null;return K},p0y=function(K){if(!K)return null;
for(var d=K.nextSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.nextSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.nextSibling;else break;return(d=Z1c(d))?d:p0y(K.parentNode)},Kqw=function(K){var d=_.ic(),f=d.JSC$9248_getStartNode();
if(!swl(f.parentNode))return null;d=d.JSC$9248_getStartOffset();if(f.nodeType===Node.TEXT_NODE){var H=_.bW(f,wo);if(H){if(K&&d===0||!K&&d===f.length)return H}else{if(K&&d===f.length)return!f||f.nodeName==="BR"||f.nextElementSibling&&_.c$(f.nextElementSibling,"display")==="block"?null:Z1c(f.nextElementSibling);if(!K&&d===0)return f?Z$(f.previousElementSibling):null}}if(f.nodeType===Node.ELEMENT_NODE)if(K){if(0<=d&&d<f.childNodes.length)return Z1c(f.childNodes[d])}else if(0<d&&d<=f.childNodes.length)return Z$(f.childNodes[d-
1]);return null},dY5=function(K,d,f){if(!K)return null;
if(K.nodeType===Node.TEXT_NODE)if(f){var H=eJi(K);if(H&&!/^\s+\S/.test(K.wholeText.substr(0,d)))return H}else if((H=p0y(K))&&!/\S\s+/.test(K.wholeText.substr(d,K.wholeText.length)))return H;return K.nodeType===Node.ELEMENT_NODE?f?eJi(K.childNodes[d]):p0y(K.childNodes[d]):dY5(K.parentNode,d,f)},fEt=function(K){if(K.hasChildNodes())switch(K.tagName){case "DIV":case "A":case "SPAN":var d="";
for(K=K.firstChild;K;K=K.nextSibling)d+=fEt(K);return d;default:return""}else switch(K.nodeType){case 3:return K.textContent;default:return""}},HdU=function(K){K=K.data;
return _.U("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.U("div",null,_.U(_.ji,{text:K.title})),K.subtitle?_.U("div",{class:"ytd-menu-title-renderer__subtitle"},_.U(_.ji,{text:K.subtitle})):null)},DYw=function(K){switch(K){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"}},Vsz=function(K){return K.map(function(d){return{settingsRadioOptionRenderer:{title:_.ZE(d.name),
asideText:_.ZE(d.approximateSize),id:DYw(d.format)}}})},yyU=function(K){if(K&&K.length!==0)return K.filter(Sxl()).map(function(d){return{settingsRadioOptionRenderer:{title:d.name,
asideText:d.approximateSize,id:DYw(d.formatType)}}})},eg=function(K){if(K)return K.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},nJP=function(K,d){K=new Set(K!=null?K:[]);
if(K.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(K.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(K.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(K.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(K.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(d)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},idE=function(K){var d=K.indexOf("(");
return d!==-1?K.substring(d+1,K.length-1):K},cyK=function(K){switch(K){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},aEZ=function(K,d,f,H,D,S){var n=_.PR.clone(uf5);
n.locale=_.mD("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;n.report={description:D||"<empty>"};D=_.mD("SBOX_SETTINGS",{});d=d.join(",");var u=Date.now();K={choice_cc:H,choice_id_cc:f,choices_sc:d,gl:D.REQUEST_DOMAIN,hl:D.REQUEST_LANGUAGE,query:K,time:u};S&&(K.choice_additional_comment_cc=S);_.ll2(n,K)},IE5=function(K){var d=new Map;
d.set("authuser",_.mD("SESSION_INDEX","0"));return _.K0(K,d)},R0l=function(K){var d;
return _.c(function(f){switch(f.nextAddress){case 1:if(!K||!UYi(K))return f.return(null);d=null;switch(_.mD("INNERTUBE_CLIENT_NAME")){case "WEB":return f.jumpTo(2);case "WEB_REMIX":d=K.getPlayer()}f.jumpTo(3);break;case 2:return _.I(f,K.getPlayerPromise(),4);case 4:d=f.yieldResult;f.jumpTo(3);break;case 3:return f.return(d)}})},UYi=function(K){return["ytd-player",
"ytmusic-player"].includes(String(K.tagName||"").toLowerCase())},Fq5=function(K){K=Math.round(K);
return K%2?K-1:K},z0l=function(K){K=Math.round(K);
return K%2===0?K-1:K},XGS=function(K){var d,f,H;
if(K=(d=K.createPlaylistDialogFormSchema)==null?void 0:(f=d.fieldSchemas)==null?void 0:(H=f.title)==null?void 0:H.validationSchema)for(d=[K.syncStep,K.asyncStep].filter(function(D){return D!==void 0}),d=_.y(d),f=d.next();!f.done;f=d.next()){f=f.value.rules;
if(!f)break;f=_.y(f);for(f=f.next();!f.done;f=f.next())return _.P(f.value,_.gQZ)}},Msz=function(K){var d,f,H;
if(K=(d=K.createPlaylistDialogFormSchema)==null?void 0:(f=d.fieldSchemas)==null?void 0:(H=f.visibility)==null?void 0:H.validationSchema)for(d=[K.syncStep,K.asyncStep].filter(function(D){return D!==void 0}),d=_.y(d),f=d.next();!f.done;f=d.next()){f=f.value.rules;
if(!f)break;f=_.y(f);for(H=f.next();!H.done;H=f.next())if(H=_.P(H.value,vJz))return d=void 0,(d=H.translations)==null?void 0:d.visibilityNotValidErrorMessage}},PBt=function(){var K,d;
return(d=(K=_.eq().resolve(_.Zd(_.AJ)))==null?void 0:K())!=null?d:!1},gJ7=function(K){var d=21;
if(!K)return d;d+=K.headerTitle?27:0;d+=K.headerTitle&&K.hasHeaderActionHeader?4:0;return d+=K.headerTitle&&K.headerSubtitle?16:0},Od7=function(K){var d=0;
if(!K)return d;d+=K.hasFooterPrimaryButton||K.hasFooterSecondaryButton?48:0;d+=K.footerTrailingLabel||K.footerLeadingLabel?30:0;return d+=K.hasFooterPrimaryButton||K.hasFooterSecondaryButton||!K.footerTrailingLabel&&!K.footerLeadingLabel?0:12},NNZ=function(K){var d=new _.uH,f=K;
return{subscribe:function(H){d.subscribe("changed",H)},
dispatch:function(H,D){var S=f;H==="Touch Start"?f=Object.assign({},S,{isAnimating:!1,initialY:D.event.touches[0].clientY}):H==="Touch Move"?(H=Math.min(D.fullContentWrapperHeight,D.contentHeightMap[D.contentWrapperId]+gJ7(D.header)-Od7(D.footer)),f=Object.assign({},S,{currentY:Math.max(D.contentScrollable?-1*(S.initialY-24):0,D.event.touches[0].clientY-S.initialY),maxHeightForContentWrapper:Math.min(H,Math.max(0,(S.isFullScreen?H:D.contentWrapperHeight)-S.currentY))})):f=H==="Snap To Full Screen"?
Object.assign({},S,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:D.maxHeight}):H==="Snap To Neutral Position"?Object.assign({},S,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:D.maxHeight}):H==="Close Sheet"?Object.assign({},S,{isAnimating:!0,currentY:D.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:D.maxHeight}):S;d.publish("changed",f)}}},Yxw=function(K){return _.cp(function(d){K(d);
return!1})},ts5=function(){_.eq().resolve(_.vI).closeSheet()},oJS=function(K){var d,f,H,D,S,n,u,a,R,F,z;
return{headerTitle:(d=K.headerTitle)==null?void 0:d.call(K),headerSubtitle:(f=K.headerSubtitle)==null?void 0:f.call(K),headerActionHeader:K.headerActionHeader,footerPrimaryButton:K.footerPrimaryButton,footerSecondaryButton:K.footerSecondaryButton,footerButtonType:(H=K.footerButtonType)==null?void 0:H.call(K),footerLeadingLabel:(D=K.footerLeadingLabel)==null?void 0:D.call(K),footerTrailingLabel:(S=K.footerTrailingLabel)==null?void 0:S.call(K),shouldShowIcons:(n=K.shouldShowIcons)==null?void 0:n.call(K),
skipContentClick:(u=K.skipContentClick)==null?void 0:u.call(K),additionalClassName:(a=K.additionalClassName)==null?void 0:a.call(K),onClosedCallback:K.onClosedCallback,focusOnClose:(R=K.focusOnClose)==null?void 0:R.call(K),isDisabled:(F=K.isDisabled)==null?void 0:F.call(K),disabledCommand:(z=K.disabledCommand)==null?void 0:z.call(K),headerFn:K.headerFn,contentFn:K.contentFn,footerFn:K.footerFn,hasHeaderFn:K.hasHeaderFn(),hasContentFn:K.hasContentFn(),hasFooterFn:K.hasFooterFn(),hasFooterPrimaryButton:K.hasFooterPrimaryButton(),
hasFooterSecondaryButton:K.hasFooterSecondaryButton(),hasHeaderActionHeader:K.hasHeaderActionHeader()}},$Yc=function(K){switch(K){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""}},EJ5=function(K){switch(K){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""}},h0K=function(K){switch(K){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""}},bdc=function(K,d,f){d.forEach(function(H){_.f5(_.eq().resolve(_.FD),H)});
_.ev(K,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",f])},GuK=function(K,d,f,H){var D=_.P(f,_.bq).commandLifeCycleConfig;
D&&D.onStartCommand&&_.fd(K,[D.onStartCommand],d);_.lc(d);var S=_.md.instance;S&&_.lh(S,f)?_.Wp(S,f,H).then(function(n){if(!n||(n==null?0:n.error))return n=_.P(f,_.bq).serializedTransactionFlowLoggingParams,_.W$(d),_.vv(new pc("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",n));_.W$(d);return{data:n}}).then(function(n){_.W$(d);
mYZ(n.data);var u=n.data.command;u&&_.fd(K,[u],d);u=lEy(f,n.data);if(!u){var a=n.data;n=!1;if(a&&a.command&&_.P(a.command,_.DE)){var R;a=((R=_.P(a.command,_.DE))==null?void 0:R.commands)||[];for(R=0;R<a.length;R++)if(_.P(a[R],_.Rxv)){n=!0;break}}n||_.z8('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!u&&D&&D.onSuccessCommand?_.fd(K,[D.onSuccessCommand],d):u&&D&&D.onFailureCommand&&_.fd(K,[D.onFailureCommand],d)},function(){_.W$(d);
D&&D.onFailureCommand&&_.fd(K,[D.onFailureCommand],d);WqU(f)}):_.$7(Error("xl"),"ERROR")},AyK=function(K,d,f){var H=[d];
f&&H.push(f);return _.dN(K,H).then(function(D){var S=_.P(d,_.bq).serializedTransactionFlowLoggingParams,n=D.data,u=lEy(d,n);u?D=_.vv(new pc(u,S)):mYZ(n);return D},function(){var D=_.P(d,_.bq).serializedTransactionFlowLoggingParams;
WqU(d);return _.vv(new pc("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",D))})},lEy=function(K,d){K=_.P(K,_.bq).serializedTransactionFlowLoggingParams;
var f=null;switch(d.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":f="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":f="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":f="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}f?_.To(f,K):Biw(K);return f},WqU=function(K){_.To("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.P(K,_.bq).serializedTransactionFlowLoggingParams)},
mYZ=function(K){if(K.trackingParams){var d=_.te(),f=_.YZ();
d&&f&&_.lB(d,f,_.RG(K.trackingParams))}},TNz=function(K,d,f){var H=_.md.instance,D=_.QxG(_.mD("YPC_MB_URL")),S=(new _.r8B).init(),n=_.quO(),u=_.P(f,_.u39).languageCode;
u===void 0?_.$7(Error("Bi"),"ERROR"):_.at([S,D]).then(function(){var a={ctk:payments.business.integration.ClientTokenFactory.createClientToken(u,n)};H&&_.lh(H,f)?_.Wp(H,f,a).then(function(R){return{data:R}}).then(function(R){_.Zp(d,"yt-service-request-completed",R);
R.code!=="ERROR"&&(R=R.data.command)&&_.fd(K,[R],d)}):_.$7(Error("xl"),"ERROR")})},QSU=function(K,d,f,H){var D=_.md.instance;
D&&_.lh(D,f)?_.Wp(D,f,H).then(function(S){return{data:S}}).then(function(S){ryz(K,d,f,S)},function(){qxi(f)}):(D=_.eq().resolve(_.Zd(_.O1)))&&D.requestDataForServiceEndpoint(f,H).then(function(S){ryz(K,d,f,S)},function(){qxi(f)})},ryz=function(K,d,f,H){_.Zp(d,"yt-service-request-completed",H);
if(H.code&&H.code=="ERROR")qxi(f);else{(H=H.data.commands)&&_.fd(K,H,d);var D;(K=(D=_.P(f,_.zxN))==null?void 0:D.serializedYpcPauseFlowLoggingParams)&&K&&_.$y("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",K)}},qxi=function(K){var d;
(K=(d=_.P(K,_.zxN))==null?void 0:d.serializedYpcPauseFlowLoggingParams)&&K&&_.$y("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",K,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},xYy=function(K,d,f){var H=_.md.instance;
H&&_.lh(H,f)?_.Wp(H,f).then(function(D){return{data:D}}).then(function(D){jSK(K,d,f,D)},function(){CBt(f)}):(H=_.eq().resolve(_.Zd(_.O1)))&&H.requestDataForServiceEndpoint(f).then(function(D){jSK(K,d,f,D)},function(){CBt(f)})},jSK=function(K,d,f,H){_.Zp(d,"yt-service-request-completed",H);
H.code&&H.code=="ERROR"?CBt(f):((H=H.data.commands)&&_.fd(K,H,d),(K=_.P(f,_.Xrf).serializedYpcResumeFlowLoggingParams)&&K&&_.$y("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",K))},CBt=function(K){(K=_.P(K,_.Xrf).serializedYpcResumeFlowLoggingParams)&&K&&_.$y("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",K,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Lqz=function(K){K=K===void 0?{}:K;
_.eq().resolve(_.UBk).showFeedbackDialog(K.customProductData,K.feedbackContent,K.onFeedbackSubmitted,K.bucket)},BNy=function(K){K=K===void 0?{}:K;
_.eq().resolve(_.UBk).showHelpDialog(K.helpContext,K.articleId,K.productData)},Jyl=function(){BNy()},sSZ=function(){Lqz()},wG7=function(K,d,f){var H,D,S,n,u,a,R;
return _.c(function(F){switch(F.nextAddress){case 1:H=_.P(K,kuU);if((D=H)==null?0:D.productId){a={productId:H.productId,bucket:H.bucket,enableAnonymousFeedback:(u=H.enableAnonymousFeedback)!=null?u:!0,allowNonLoggedInFeedback:!0};R={feedbackChoice:f.feedbackChoice};if(!_.M("web_collect_offline_state")){F.jumpTo(8);break}_.HF(F,9);return _.I(F,fkZ(R),11)}n={bucket:(S=H)==null?void 0:S.bucket};if(!_.M("web_collect_offline_state")){F.jumpTo(4);break}n.customProductData={};_.HF(F,5);return _.I(F,fkZ(n.customProductData),
7);case 7:_.Ts(F,4);break;case 5:_.n7(F);case 4:Lqz(n);F.jumpTo(0);break;case 11:_.Ts(F,8);break;case 9:_.n7(F);case 8:_.W3u(R),_.ljX("GFEEDBACK",R),H.productId==="5295751"&&(R.client_attestation=Number(_.mD("CATSTAT",0))),H.productId==="5295751"&&(R.client_time=Date.now()/1E3/3600),H.productId==="5295751"&&(R.original_playback_id=_.fGN||""),_.ll2(a,R),_.iQ(F)}})},Zdw=function(K){if(K=_.P(K,_.buO)){var d={bucket:K.bucketIdentifier};
K.additionalDatas&&(d.customProductData={},K.additionalDatas.forEach(function(f){if(f=f.userFeedbackEndpointProductSpecificValueData)d.customProductData[f.key]=f.value}));
Lqz(d)}},e0z=function(K){var d=_.rU.getInstance();
var f=_.iB("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var H=_.iB("DELETE",void 0,"Delete"),D=_.iB("CANCEL",void 0,"Cancel");f=cRy(f,void 0,H,D,{signal:"DELETE_ALL_DOWNLOADS"});_.Nh(d,[{openPopupAction:f}],K)},KS7=function(){return _.c(function(K){return K.nextAddress==1?_.I(K,_.eq().resolve(_.kj),2):_.I(K,pG7(),0)})},dQK=function(K){var d,f;
return _.c(function(H){return H.nextAddress==1?(f=(d=_.P(K,_.GE))==null?void 0:d.targetId)?_.I(H,_.eq().resolve(_.kj),3):H.jumpTo(0):_.I(H,_.eq().resolve(_.sB).deleteVideo(f),0)})},HFK=function(K){var d,f;
return _.c(function(H){return H.nextAddress==1?(f=(d=_.P(K,_.GE))==null?void 0:d.targetId)?_.I(H,_.eq().resolve(_.kj),3):H.jumpTo(0):_.I(H,fRw(_.eq().resolve(_.sB),f),0)})},V3c=function(K){var d,f;
return _.c(function(H){return(f=(d=_.P(K,_.GE))==null?void 0:d.targetId)?_.I(H,DQ5(f),0):H.jumpTo(0)})},ypy=function(){_.M("kevlar_woffle_refresh_dl_load_killswitch")||SV7()},iFS=function(){_.M("kevlar_woffle")&&_.Mn.instance&&now()},ust=function(K){var d;
if((d=_.P(K,_.DS))==null||!d.videoId)return!1;cpE(_.eq().resolve(_.sB),_.P(K,_.DS),K.clickTrackingParams);return!0},IR7=function(K){var d;
if((d=_.P(K,_.VF))==null||!d.playlistId)return!1;aRt(_.eq().resolve(_.sB),_.P(K,_.VF),K.clickTrackingParams);return!0},RMy=function(K){var d=_.P(K,_.cff);
(d==null?void 0:d.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(d==null?void 0:d.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||UQl(_.eq().resolve(_.sB),_.P(K,_.cff))},zMw=function(K){K=_.P(K,_.TT2);
var d;(K==null?0:(d=K.actions)==null?0:d.length)&&FSw(K)},M3U=function(K){var d,f;
return _.c(function(H){d=_.P(K,XJP);return(f=d)!=null&&f.localWatchHistoryCommandType?_.I(H,voc(d),0):H.return()})},PA5=function(K){setTimeout(function(){requestAnimationFrame(K)},80)},goi=function(K){return Object.entries(K).map(function(d){return d.join(":")}).join(";")},NBi=function(K){var d,f,H;
_.c(function(D){if(D.nextAddress==1)return _.I(D,OFz(),2);d=D.yieldResult;f=_.V2.instance;switch(d){case "granted":H=K.getLocationCommand;break;case "denied":H=K.openDeniedDialogAction;break;case "prompt":H=K.openCollectionDialogAction;break;default:H=K.openCollectionDialogAction}H&&f.resolveCommand(H);_.iQ(D)})},OFz=function(){var K,d;
return _.c(function(f){if(f.nextAddress==1)return K="prompt",navigator.permissions?_.I(f,navigator.permissions.query({name:"geolocation"}),3):f.jumpTo(2);f.nextAddress!=2&&(d=f.yieldResult,K=d.state);return f.return(K)})},t3z=function(){_.c(function(K){return _.I(K,_.YVt(),0)})},ooU=function(){var K,d,f;
return _.c(function(H){if(H.nextAddress==1)return K=_.eq().resolve(_.Nn),K?_.I(H,_.Wp(K,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.h3(Error("Al")),H.return(void 0));if(d=H.yieldResult){if(d.errorMetadata)return _.h3(Error("Bl`"+d.errorMetadata.status+"`"+d.error)),H.return(void 0);f=d.datasyncIds;_.Uyk=f.length;return H.return(f)}_.h3(Error("Cl"));return H.return(void 0)})},$QU=function(){ooU().then(function(K){K&&($ky(K),s0w(K),MQZ(K),DHE(K))})},Eol=function(K){_.oc.addLowPriorityJob(function(){var d,
f,H,D,S;
return _.c(function(n){switch(n.nextAddress){case 1:if(_.M("ytidb_clear_optimizations_killswitch")){n.jumpTo(2);break}d=_.F4("clear");if(d.startsWith("V")&&d.endsWith("||")){var u=[d];$ky(u);s0w(u);MQZ(u);DHE(u);return n.return()}f=PHc();H=Vc7();return _.I(n,ksl(),3);case 3:return D=n.yieldResult,_.I(n,EM5(),4);case 4:if(S=n.yieldResult,!(f||H||D||S))return n.return();case 2:K.isNetworkAvailable()?$QU():K.listenOnce("publicytnetworkstatus-online",$QU),_.iQ(n)}})})},Ka=function(K){K={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.rB(K)}}}};_.V2.instance&&_.V2.instance.resolveCommand(K)},hMl=function(K){if(K){var d=_.cv();
_.eA(d,3854,void 0,{layer:0,parentLayer:4});switch(K){case 1:var f=238708;break;case 2:f=238715;break;case 3:f=238710;break;case 6:f=238709}f&&(K=_.iz(d,{veType:f}))&&_.dx(d,K)}},bFc=function(K){if(K){var d=_.cv();
_.eA(d,3854,void 0,{layer:0,parentLayer:4});switch(K){case 1:var f=238714;break;case 2:f=238711;break;case 8:f=238709;break;case 7:f=238713;break;case 3:case 4:case 5:f=238712}f&&(K=_.iz(d,{veType:f}))&&_.dx(d,K)}},mQt=function(K){switch(K.latencyType){case 0:_.NY("consent_primitive_flow");
_.YJ("cpit",K.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.YJ("cpist",K.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.YJ("cprtif",K.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.YJ("cprtli",K.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.YJ("cprt",K.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.YJ("cpdt",K.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.YJ("cpjct",K.timestampEpochMillis,"consent_primitive_flow")}},
CAy=function(K,d){var f,H,D,S,n,u,a,R,F,z,v,g,N,h,m,T,r,J,L,fB;
return _.c(function(w){switch(w.nextAddress){case 1:_.HF(w,2);(H=(f=_.P(K,lRz))==null?void 0:f.serializedConsentRequest)||(H=(D=_.P(K,WSz))==null?void 0:D.serializedConsentRequest);H&&(S=G0c(_.Us(H)));if(S===void 0)return w.return();n=Apc(S);n.latencyCallback=mQt;d&&TBU(n,function(){d.then(function(yO){yO.pauseVideo();(new rpE).increment()})});
return((u=_.P(K,lRz))==null?void 0:u.consentAction)==="CONSENT_ACTION_PREWARM"||((a=_.P(K,WSz))==null?void 0:a.consentAction)==="CONSENT_ACTION_PREWARM"?_.I(w,qVK(n),5):_.I(w,QOU(n),6);case 6:R=w.yieldResult;F=_.i1(R,dS);if(F===1){if(((z=_.O3(R,fa,1,dS))==null?void 0:_.vY(z,1))===1||((v=_.O3(R,fa,1,dS))==null?void 0:_.vY(v,1))===2||((g=_.O3(R,fa,1,dS))==null?void 0:_.vY(g,1))===3)_.P(K,WSz)?Ka(_.iB("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Ka(_.iB("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));hMl((N=_.O3(R,fa,1,dS))==null?void 0:_.vY(N,1),_.e4(R,jOP,3,_.p0()))}else F===2?(((h=H2(R))==null?void 0:_.vY(h,1))===5?_.P(K,WSz)?Ka(_.iB("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Ka(_.iB("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((m=H2(R))==null?void 0:_.vY(m,1))===1||((T=H2(R))==null?void 0:_.vY(T,1))===4?Ka(_.iB("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((r=H2(R))==null?void 0:_.vY(r,1))===7&&((J=S)==null?void 0:(L=_.eQ(J,D0,4))==null?void 0:_.vY(L,4))!==1&&Ka(_.iB("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),bFc((fB=H2(R))==null?void 0:_.vY(fB,1))):Ka(_.iB("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));w.jumpTo(5);break;case 5:_.Ts(w,0);break;case 2:_.n7(w),Ka(_.iB("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.iQ(w)}})},LS7=function(){if(!xQZ.has("Worker")){xQZ.set("Worker",
!0);
var K={api:"BROWSER_API_WEB_WORKER"};K.available="Worker"in window?!0:!1;_.t3("apiTest",K)}},BBE=function(K){return typeof K==="undefined"?"-1":String(Math.ceil(K/1048576))},wJU=function(K,d){JpS(new sO5(_.P(d,k0c).addToken,_.P(d,k0c).commonToken)).then(function(){_.Zp(K,"yt-invoke-instrument-manager-action-completed")},function(f){_.Zp(K,"yt-invoke-instrument-manager-action-error",f)})},ZFE=function(K){return _.$2(K)},eMw=function(K){var d=1;
K=K.split(":");for(var f=[];d>0&&K.length;)f.push(K.shift()),d--;K.length&&f.push(K.join(":"));return f},pJy=function(K,d){d=K.aspectRatio()<=d.aspectRatio()?d.width/K.width:d.height/K.height;
K.scale(d)},KWS=function(K,d){d=K.aspectRatio()>d.aspectRatio()?d.width/K.width:d.height/K.height;
return K.scale(d)},dnt=function(K){var d=new _.Zh;
return _.Ni(d,11,K)},fey=function(K){var d={};
K=K.getAllResponseHeaders().split("\r\n");for(var f=0;f<K.length;f++)if(!_.cu(K[f])){var H=eMw(K[f]),D=H[0];H=H[1];if(typeof H==="string"){H=H.trim();var S=d[D]||[];d[D]=S;S.push(H)}}return _.PR.map(d,function(n){return n.join(", ")})},aK=function(K,d){return K.JSC$7805_xhr_?K.JSC$7805_xhr_.getResponseHeader(d):null},VG=function(K,d,f){Array.isArray(f)||(f=[String(f)]);
_.zTv(K.JSC$8037_queryData_,d,f);return K},now=function(){var K=_.Mn.instance;
_.c(function(d){return K.deferredInstallPrompt?_.I(d,K.deferredInstallPrompt.prompt(),0):d.jumpTo(0)})},HUP=function(K,d,f){if(_.d2(K))_.QB(K,d,f);
else for(K=_.NiN(K);;){var H=K.next();if(H.done)break;d.call(f,H.value,void 0,K)}},Dn5={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}"]},d7U,fmU,H8w,D7l,VPS,Sz5,yMt,npw,i8S,DQ5,fRw,pG7,cM7,uw5,amw,Iml,U7t,aRt,cpE,Rmc,Fx7,zmw,SV7,UQl,XPP,FSw,vpc,voc,MPZ,PLw,gpZ,O85,NjE,Yzl,tPS,ki,opS,$7l,
RJz,apU,Ep5,uv,aq,Iq,UD,hmt,b8y,m7z,lmS,Wxi,GCw,AMU,Tjz,rM7,qzi;Dn5={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 VZP=function(K,d){var f=[];HUP(d,function(H){try{var D=_.p3.prototype.getWrapper.call(this,H,!0)}catch(S){if(S=="Storage: Invalid value was encountered")return;throw S;}D===void 0?f.push(H):_.Oy4(D)&&f.push(H)},K);
return f},S15=function(K,d){VZP(K,d).forEach(function(f){_.p3.prototype.remove.call(this,f)},K)},yGz=function(K){var d=_.l4;
d._minimumZ=Math.max(d._minimumZ,K)},nmi=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],iUE=function(K,d){_.kh(K.bV);K.bV=d},cG5=function(K,d,f,H){K.setState(5);
var D=!!K.aYH&&nmi.includes(_.JR(K.aYH)||"");try{var S=new _.Pk({program:d,globalName:f,n7:{disable:!_.M("att_web_record_metrics")||!_.M("att_skip_metrics_for_cookieless_domains_ks")&&D,mX:"aGIf"}});S.gQO.then(function(){K.setState(6);H&&H(d)});
iUE(K,S)}catch(n){K.setState(7),n instanceof Error&&_.h3(n)}},u7E=function(K,d,f,H,D,S){var n=n===void 0?"trayride":n;
f?(K.setState(2),_.mV(f,function(){if(window[n])cG5(K,H,n,D);else{K.setState(3);var u=_.BvB(f),a=document.getElementById(u);a&&(_.e3z(u),a.parentNode.removeChild(a));_.h3(new _.X4("BL:ULB",f))}},S)):d?(S=_.RQ("SCRIPT"),d instanceof _.mc?_.GY(S,d):S.textContent=d,S.nonce=_.b$(document),document.head.appendChild(S),document.head.removeChild(S),window[n]?cG5(K,H,n,D):(K.setState(4),_.h3(new _.X4("BL:ULBJ")))):_.h3(new _.X4("BL:ULV"))},aei=function(){this.state=1;
this.bV=null;this.aYH=void 0};
_.V=aei.prototype;_.V.initialize=function(K,d,f,H){this.aYH=H;if(K.program){var D;H=(D=K.interpreterUrl)!=null?D:null;if(K.interpreterSafeScript)D=_.M3o(K.interpreterSafeScript);else{var S;D=(S=K.interpreterScript)!=null?S:null}K.interpreterSafeUrl&&(H=_.$K(K.interpreterSafeUrl).toString());u7E(this,D,H,K.program,d,f)}else _.h3(Error("jf"))};
_.V.isInitialized=function(){return!!this.bV};
_.V.getState=function(){return this.state};
_.V.isLoading=function(){return this.state===2};
_.V.invoke=function(K){K=K===void 0?{}:K;var d;this.bV?d=_.S2k(this.bV,{uv:K}):d=null;return d};
_.V.dispose=function(){iUE(this,null);this.setState(8)};
_.V.setState=function(K){this.state=K};
var IeZ=function(K,d){return K.bV.snapshot(d)},Uni=function(K,d){var f=_.di("botguard_async_snapshot_timeout_ms",3E3);
d=d===void 0?{}:d;f=f===void 0?3E3:f;return K.bV?new Promise(function(H,D){var S=!1,n=_.oc.addJob(function(){S=!0;D(Error("kf"))},1,f);
K.bV?IeZ(K,{uv:d}).then(function(u){_.oc.cancelJob(n);S||H(u)}).catch(function(u){_.oc.cancelJob(n);
S||D(u)}):(_.oc.cancelJob(n),H(null))}):Promise.resolve(null)},R3y=["att/log"],FWK;
FWK={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var z3E={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},XWc=function(K,d){return _.cJ(K,{mode:"readwrite",enableRetries:!0},function(f){return _.HhY(f,d,"settingEntity")})},vmP=function(K,d,f){return _.cJ(K,{mode:"readonly",
enableRetries:!0},function(H){return _.jFB(H,d,f)})},MZ7=function(K){if(!K.storage)return!1;
a:{if(K.storage){try{var d=K.storage.get("TLPQtimestamp")}catch(f){}K=Number(d);if(!isNaN(K))break a}K=void 0}return K?Date.now()-K<864E5:!1},Ps5=function(K){if(K.storage){try{var d=K.storage.get("TLPQindex")}catch(f){}K=Number(d);
if(!isNaN(K))return K}},gmw=function(K,d){K.queueProxy&&d.forEach(function(f){if(f.videoId&&f.trackingParams&&K.queueProxy instanceof _.gx){var H=_.te();
K.queueProxy.attributionData.set(f.videoId,{enqueueingVe:_.RG(f.trackingParams).getAsJson(),enqueueingCsn:H?H:void 0,clientEnqueueingTimeMs:Math.floor((0,_.k_)()).toString()})}})},OUi=function(K){var d=_.MEs(K);
d!=K.currentSnapState_&&(K.currentSnapState_=d,K.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},SF=function(K){this.JSC$11047_networkManager_=K;
this.partCallbacks_=[]};
SF.prototype.getCacheKeyForEndpoint=function(K){return _.yTz(K,!1)};
SF.prototype.onPartsCallback_=function(K){this.partCallbacks_.forEach(function(d){K&&d(K)})};
var yG=function(K,d,f){SF.call(this,K);this.player_=d;this.autoplayData_=f};
_.O(yG,SF);yG.prototype.getCacheKeyForEndpoint=function(K){return _.yTz(K,!!this.autoplayData_)};
yG.prototype.getTempData=function(K,d){d=d.timeBeforeNextVideo;K={itct:K.clickTrackingParams,lact:_.pA(),pbis:d,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(K.autonav=1);return K};
yG.prototype.getXhrParams=function(K){return Object.assign({pbj:"prefetch"},K)};
yG.prototype.getParams=function(K){K={frags:K.fragmentsRequested.join(",")};_.M("kevlar_droppable_prefetchable_requests")&&(K.prefetch=1);return K};
var NmE=function(K){K.playerEvents_.forEach(function(d){K.player.removeEventListener(d.eventName,d.callback)});
K.playerEvents_.length=0},na=function(K,d,f){this.player=K;
this.JSC$11057_taskManager=d;this.prefetchDelay=f;this.completionResolver_=null;this.playerEvents_=[]};
na.prototype.start=function(){var K=this;this.completionResolver_=_.Gz();_.It(this.completionResolver_.promise,function(){NmE(K);K.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Y1S=function(K,d,f){K.player.addEventListener(d,f);K.playerEvents_.push({eventName:d,callback:f})},tZ5={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},om5={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},$ny=function(K,d,f){na.call(this,K,d,f);this.cueId_="playbackTrigger-"+Math.random()};
_.O($ny,na);
$ny.prototype.prepareTrigger=function(K){var d=this,f=this.player.getDuration(),H=this.player.getVideoData(),D=H.isLive&&H.hasProgressBarBoundaries;if(D&&H.progressBarEndPositionUtcTimeMillis){var S=H.progressBarEndPositionUtcTimeMillis/1E3;isNaN(S)||(f=S)}var n=0;this.prefetchDelay>=0?D?H.progressBarStartPositionUtcTimeMillis&&(H=H.progressBarStartPositionUtcTimeMillis/1E3,isNaN(H)||(n=H+this.prefetchDelay)):n=this.prefetchDelay:n=f+this.prefetchDelay;D?this.player.addUtcCueRange(this.cueId_,n,f):
this.player.addCueRange(this.cueId_,n,f);_.It(K.promise,function(){d.player.removeCueRange(d.cueId_)});
Y1S(this,"onCueRangeEnter",function(u){u==d.cueId_&&K.resolve(f-n)})};
var EmU=function(K,d){K.fragmentConfiguration_[d].requiredKeys.every(function(f){return!!K.prefetchedData_[f]})&&(K.validatedFragments_.push(d),d=K.missingFragments_.indexOf(d),d!==-1&&K.missingFragments_.splice(d,1))},h3c=function(K){K.prefetchedFragments_.forEach(function(d){EmU(K,d)})},bUS=function(K,d,f){this.pageFragments_=K;
this.prefetchedFragments_=d;this.fragmentConfiguration_=om5;this.prefetchedData_=f;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;h3c(this)},mni=function(){},WWw=function(K){this.JSC$11071_playlistManager_=K};
_.O(WWw,mni);WWw.prototype.getPrefetchEndpoint=function(){return this.JSC$11071_playlistManager_.getAutoplayEndpoint()};
var Go5=function(K){this.autonavEndpoints_=K};
_.O(Go5,mni);Go5.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var AGi=function(K,d,f,H,D){this.autonavEndpoints=K;this.foregroundTrigger=d;this.backgroundTrigger=f;this.pageType=H;this.isInPlaylist=D},Tmw=function(K,d){if(K.webPrefetchData&&K.webPrefetchData.navigationEndpoints&&K.webPrefetchData.navigationEndpoints.length){K=K.webPrefetchData.navigationEndpoints;
var f=_.P(K[0],_.qu);if(f.watchEndpointSupportedPrefetchConfig&&f.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var H=f.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;f=H.playbackRelativeSecondsPrefetchCondition;f=typeof f==="number"&&Math.abs(f)<d.videoDuration?f:void 0;H=H.countdownUiRelativeSecondsPrefetchCondition;H=typeof H!=="number"||_.M("prefetch_job_config_cleanup_ks")&&d.inPlaylist?void 0:H;if(typeof H==="number")return new AGi(K,d.makeUpNextTrigger(H),d.makePlaybackTrigger(H),
"watch",d.inPlaylist);if(typeof f==="number")return new AGi(K,d.makePlaybackTrigger(f),null,"watch",d.inPlaylist)}}},rGw=function(K){return K.prefetchJobConfig_.backgroundTrigger?_.AR(_.L8z)()==0?K.prefetchJobConfig_.backgroundTrigger:K.prefetchJobConfig_.foregroundTrigger:K.prefetchJobConfig_.foregroundTrigger},q1S=function(K){_.nx(document,"visibilitychange",K.onVisibilityChange_,!1,K)},iv=function(K){SF.call(this,K)};
_.O(iv,SF);iv.prototype.getCacheKeyForEndpoint=function(K){return SF.prototype.getCacheKeyForEndpoint.call(this,K)};
iv.prototype.getTempData=function(){return{}};
iv.prototype.getXhrParams=function(K){return K};
iv.prototype.getParams=function(){return{}};
var QMS=function(K,d,f){var H=K.prefetchDelay*1E3;if(Math.abs(H)>d)f.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var D=H,S=d-H;H<0&&(D=d+H,S=Math.abs(H));var n=K.JSC$11057_taskManager.addJob(function(){f.resolve(S/1E3)},10,D);
f.promise.thenCatch(function(){K.JSC$11057_taskManager.cancelJob(n)})}},jMi=function(K,d,f){na.call(this,K,d,f)};
_.O(jMi,na);jMi.prototype.prepareTrigger=function(K){var d=this;Y1S(this,"onAutonavCoundownStarted",function(f){QMS(d,f,K)})};
var Csz=function(K){K.pendingPrefetchJob_&&(K.pendingPrefetchJob_.cancel(),K.pendingPrefetchJob_=null)},xnc=function(K,d,f){if(!K.triggeredTargets.has(d)){var H=_.U9N(K,d);
H.action=f;_.aut(K,d,H)}},LWw=function(K){_.pSN();
_.Hfo("cpt")&&_.h3(Error("jh"));_.Hu.requestAnimationFrame(function(){_.Hu.setTimeout(function(){_.YJ("cpt");var d=_.$J("vpl"),f=_.$J("cpt");d&&f&&_.YJ("ol",Math.max(d,f))})});
try{_.YJ("fr_s"),K()}catch(d){_.$7(d)}_.Hu.requestAnimationFrame(function(){_.YJ("bcp")})},Bmc=function(K,d){K.serviceEndpointHandlers.push(d)},JGU=function(K,d){d=K.pendingPages_.indexOf(d);
d>-1&&K.pendingPages_.splice(d,1)},sMw=function(K,d){var f=_.cit.indexOf(d);
f>-1&&_.cit.splice(f,1);K.targetPage_==d?(K.abort(),_.ag8(K)):JGU(K,d)},kow=function(K,d,f,H){d={challenge:d};
f&&(d.webResponse=f);return _.Np(K.innertubeTransportService,d,_.CF(R3y),H)},wWc=function(K,d,f){if(!d.challenge)throw Error("li");
if(d.botguardData&&d.botguardData.program){var H=new aei;H.initialize(d.botguardData,function(){Uni(H,{atr_challenge:d.challenge}).then(function(D){if(!D)throw Error("mi");return kow(K,d.challenge,D,f)}).catch(function(D){_.h3(D);
return kow(K,d.challenge,void 0,f)})},void 0)}else kow(K,d.challenge,void 0,f)},ZUw=function(K,d,f){var H={};
d.ids&&(H.ids=[].concat(_.Me(d.ids)));d.engagementType&&(H.engagementType=d.engagementType);return _.Np(K.innertubeTransportService,H,_.CF(_.Dpk),f).then(function(D){if(!D)throw new _.X4("GetAttestationChallenge returned falsy");wWc(K,D,f)}).thenCatch(function(D){_.$7(D)})},e3w=function(K,d,f){return new _.ip(function(H,D){var S;
return _.c(function(n){if(n.nextAddress==1){var u=d.engagementType,a=d.ids,R={};a=_.y(a!=null?a:[]);for(var F=a.next();!F.done;F=a.next())F=F.value,F.encryptedVideoId?R.encryptedVideoId=F.encryptedVideoId:F.externalChannelId?R.externalChannelId=F.externalChannelId:F.commentId?R.commentId=F.commentId:F.externalOwnerId?R.externalOwnerId=F.externalOwnerId:F.artistId?R.artistId=F.artistId:F.playlistId?R.playlistId=F.playlistId:F.externalPostId?R.externalPostId=F.externalPostId:F.shareId&&(R.shareId=F.shareId);
return _.I(n,iQw(u,R),2)}S=n.yieldResult;if(!S.challenge)return _.h3(Error("ni")),ZUw(K,d,f).then(H,D),n.return();u=S;R={challenge:u.challenge};R.webResponse=u.webResponse;R.engagementType=d.engagementType;R.ids=d.ids;_.Np(K.innertubeTransportService,R,_.CF(R3y),f).then(H,D);_.iQ(n)})})},X0E=function(K,d){var f,H,D,S;
_.c(function(n){if(n.nextAddress==1){f=_.P(d,_.wdL);if(!(f&&f.listId&&K.response&&K.response.playingVideoId)||K.listId!==f.listId)return n.return();K.index===void 0&&(K.index=0);return _.I(n,_.gVH(K.JSC$10802_playlistNetworkManager,f.listId,K.index,K.response.playingVideoId),2)}H=n.yieldResult;if(!H)return n.return();D=H.playlistId;S=H.playlistPanelRenderer;K.setPlaylistData(D,S,H.autoplayRenderer);_.iQ(n)})},pW5=function(K,d,f){var H=K.getParams(f),D=_.h25(d,H),S=K.getTempData(d,f);
S.endpoint=JSON.stringify(d);_.M("enable_unknown_lact_fix_on_html5")&&(_.eq().resolve(_.Pp),S.lact=_.pA());var n={headers:{"X-YouTube-STS":_.mD("STS"),"x-youtube-csoc":1}};_.xZ(D,S);return new _.ip(function(u,a){var R=K.getXhrParams(H),F;_.M("kevlar_cache_on_ttl_player")&&(F=_.im.instance);F&&_.LX2(F,d)?_.pI8(F,d,S,window.location.href).then(function(z){z?u(z):a()},a):_.neN(K.JSC$11047_networkManager_,d,R,K.onPartsCallback_.bind(K),n).then(function(z){z?u(z):a()},a)})},KxS=function(K,d){K.triggerPromise_=
d.start();
K.triggerPromise_.then(function(f){var H=K.prefetchEndpointProvider_.getPrefetchEndpoint();if(H){var D=tZ5[K.prefetchJobConfig_.pageType].prefetchedFragments;K.prefetchRequestPromise_=pW5(K.JSC$11083_networkPrefetchRequest_,H,{fragmentsRequested:D,timeBeforeNextVideo:f});K.prefetchResponseCacheKey_=K.JSC$11083_networkPrefetchRequest_.getCacheKeyForEndpoint(H);q1S(K);K.prefetchRequestPromise_.then(function(S){K.storePrefetchedDataCallback_(K.prefetchResponseCacheKey_,S);if(_.M("web_prefetch_preload_video")&&
D.length===1&&D[0]==="pl"&&S&&!S.playerAds&&!S.adPlacements){var n=_.P(H,_.IM),u=n!=null,a={raw_player_response:S,watch_endpoint:n};(S=_.eq().resolve(u?_.V_8:_.kP))&&H&&S.then(function(R){u&&_.M("web_queue_preload_video")?(a.prefer_gapless=!0,R.queueNextVideo(a)):R.preloadVideoByPlayerVars(a)})}})}})},c2=function(K,d,f,H){this.prefetchEndpointProvider_=K;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=d;this.prefetchJobConfig_=f;this.JSC$11083_networkPrefetchRequest_=H;this.prefetchResponseCacheKey_=null};
c2.prototype.enqueue=function(){this.triggerPromise_||(KxS(this,rGw(this)),_.zG(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
c2.prototype.resolve=function(){this.cancel()};
c2.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.");q1S(this)};
c2.prototype.onVisibilityChange_=function(){var K=this;_.AR(_.L8z)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){K.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||KxS(this,rGw(this))};
d7U=function(K,d,f,H,D){d&&(d==null?0:d.videoId)&&f&&f.entries&&_.M("kevlar_enable_shorts_prefetch_in_sequence")&&(Csz(K),d=f.entries.map(function(S){var n;return(n=_.P(S.command,_.IM))==null?void 0:n.videoId}).indexOf(d.videoId),f=f.entries[d+1],f!=null&&f.command&&!_.P(f==null?void 0:f.command,_.NV)&&(H=new AGi([f.command],new $ny(H,_.oc,1),null,"shorts",!1),K.pendingPrefetchJob_=new c2(new Go5(H.autonavEndpoints),function(){return!1},H,new iv(D)),K.pendingPrefetchJob_.enqueue()))};
fmU=function(K,d,f,H,D,S){var n=_.jA.getInstance();if(!_.M("block_all_player_prefetch_requests")){Csz(K);var u=!!f.getPlaylistId(),a=f.getVideoData().isLive&&f.getVideoData().hasProgressBarBoundaries;if((n.getState()==2||u||a)&&(!f.getVideoData().isLive||a)){n={inPlaylist:u,videoDuration:f.getDuration(),makeUpNextTrigger:function(F){return new jMi(f,_.oc,F)},
makePlaybackTrigger:function(F){return new $ny(f,_.oc,F)}};
var R=Tmw(d,n);R&&(K.pendingPrefetchJob_=new c2(R.isInPlaylist?new WWw(D):new Go5(R.autonavEndpoints),function(F,z){z=new bUS(tZ5[R.pageType].pageFragments,tZ5[R.pageType].prefetchedFragments,z);return _.HWJ(z)?(K.prefetchCache_.set(F,z),!0):!1},R,new yG(H,f,S,D)),K.pendingPrefetchJob_.enqueue())}}};
H8w=function(){var K=_.h_();K.signals.parkOrScheduleJob(function(){var d=K.storage;if(d.storage)if(MZ7(d)){var f=d.getPlaylistId();d=Ps5(d);f=!!f&&d!==void 0}else d.clear(),f=!1;else f=!1;if(f){f=K.pageManager.isOnWatch();a:{var H=K.storage;if(H.storage&&MZ7(H)&&(d=H.getPlaylistId(),H=Ps5(H),d&&H!==void 0)){f={recoverPlaylistCommand:{listId:d,index:H,openMiniplayer:!f,openListPanel:f,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}f=void 0}f&&_.Nh(K.JSC$10802_actionRouter,[f],null)}},0,"ma")};
D7l=function(K,d,f,H,D,S){var n=_.vp(7111);_.p2(K.JSC$16092_screenManager,n,S?_.RG(S):void 0);_.dx(K.JSC$16092_screenManager,n,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:H,offlineId:d,offlineabilityFormatType:f,isDefaultFormatType:D==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:D}})};
VPS=function(K,d,f,H,D){var S,n,u,a,R;return _.c(function(F){if(F.nextAddress==1)return _.I(F,K.JSC$16092_playerApiPromise,2);S=F.yieldResult;D7l(K,d,f,"OFFLINE_OBJECT_TYPE_PLAYLIST",H,D);if(u=_.k48[K.entityTypeMap.listEntityType])R={},n=(R[u]={maximumDownloadQuality:(a=f)!=null?a:void 0},R);return _.I(F,S.queueOfflineAction(d,K.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",n),0)})};
Sz5=function(K,d){var f,H,D,S;return _.c(function(n){if(n.nextAddress==1)return _.I(n,K.JSC$16092_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3){f=n.yieldResult;if(!f)return _.h3(new _.X4("PES is undefined")),n.return();H=_.HJ(d,"downloadStatusEntity");return _.I(n,vmP(f,H,"downloadStatusEntity"),3)}D=n.yieldResult;return n.return((S=D)==null?void 0:S.downloadState)})};
yMt=function(K,d,f,H,D){var S,n,u,a,R,F;return _.c(function(z){switch(z.nextAddress){case 1:return _.I(z,K.JSC$16092_playerApiPromise,2);case 2:S=z.yieldResult;D7l(K,d,f,"OFFLINE_OBJECT_TYPE_VIDEO",H,D);if(u=_.k48[K.entityTypeMap.singleEntityType])R={},n=(R[u]={maximumDownloadQuality:(a=f)!=null?a:void 0},R);return _.I(z,Sz5(K,d),3);case 3:F=z.yieldResult;if(F!=="DOWNLOAD_STATE_USER_DELETED"){z.jumpTo(4);break}return _.I(z,K.deleteVideo(d),4);case 4:return _.I(z,S.queueOfflineAction(d,K.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",n),0)}})};
npw=function(K,d,f,H,D){return _.c(function(S){return S.nextAddress==1?_.I(S,K.deleteVideo(d,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.I(S,yMt(K,d,f,H,D),0)})};
i8S=function(K,d,f){var H,D;return _.c(function(S){if(S.nextAddress==1)return _.I(S,K.JSC$16092_playerApiPromise,2);H=S.yieldResult;D=_.HJ(d,"mainVideoDownloadStateEntity");return _.I(S,H.updateDownloadState(D,f),0)})};
DQ5=function(K){var d=_.eq().resolve(_.sB);return _.c(function(f){if(f.nextAddress==1)return d.previousDownloadStateForVideo[K]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&d.previousDownloadStateForVideo[K]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?f.jumpTo(2):_.I(f,d.resumeVideoDownload(K),2);if(f.nextAddress!=4)return _.I(f,i8S(d,K,d.previousDownloadStateForVideo[K]),4);delete d.previousDownloadStateForVideo[K];_.iQ(f)})};
fRw=function(K,d){var f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$16092_playerApiPromise,2);f=H.yieldResult;return _.I(H,f.queueOfflineAction(d,K.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
pG7=function(){var K=_.eq().resolve(_.sB),d,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$16092_playerApiPromise,2);if(H.nextAddress!=3)return d=H.yieldResult,f={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.I(H,d.queueOfflineAction("!*$_ALL_ENTITIES_!*$",K.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",f),3);var D=K.JSC$16092_commandHandler,S=D.resolveCommand,n=_.iB("DELETING_ALL",void 0,"Downloads are being deleted");
S.call(D,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.kJ(n)}},popupType:"TOAST"}});_.iQ(H)})};
cM7=function(K){var d,f;return _.c(function(H){if(H.nextAddress==1)return _.I(H,K.JSC$16092_prefStorage,2);d=H.yieldResult;return H.return((f=d)==null?void 0:f.get("sdois"))})};
uw5=function(K){var d,f,H,D,S,n;return _.c(function(u){if(u.nextAddress==1)return _.I(u,K.JSC$16092_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3){d=u.yieldResult;if(!d)return _.h3(new _.X4("PES is undefined")),u.return();f=_.HJ("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.I(u,vmP(d,f,"settingEntity"),3)}H=u.yieldResult;return u.return((n=(D=H)==null?void 0:(S=D.settingOptionValue)==null?void 0:S.boolValue)!=null?n:!1)})};
amw=function(K,d){var f,H,D,S;return _.c(function(n){switch(n.nextAddress){case 1:return((f=d)==null?void 0:f.formatType)===void 0?n.return():_.I(n,K.JSC$16092_prefStorage,2);case 2:H=n.yieldResult;if(H===void 0)return n.return();if(((D=d)==null?void 0:D.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.I(n,H.set("lmqf",d.formatType),8);if(((S=d)==null?void 0:S.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){n.jumpTo(0);break}return _.I(n,H.set("lmqf",d.formatType),
6);case 6:return _.I(n,H.set("lmqflst",Math.floor((0,_.k_)())),0);case 8:return _.I(n,H.remove("lmqflst"),0)}})};
Iml=function(K){var d,f;return _.c(function(H){switch(H.nextAddress){case 1:return _.I(H,K.JSC$16092_prefStorage,2);case 2:d=H.yieldResult;if(!d){H.jumpTo(3);break}return _.I(H,d.get("lmqflst"),4);case 4:if(f=H.yieldResult,f!==void 0)return H.return(f);case 3:return H.return(0)}})};
U7t=function(K){var d,f;return _.c(function(H){switch(H.nextAddress){case 1:return _.I(H,K.JSC$16092_prefStorage,2);case 2:d=H.yieldResult;if(d===void 0){H.jumpTo(3);break}return _.I(H,d.get("lmqf"),4);case 4:if(f=H.yieldResult,f!==void 0)return H.return(f);case 3:return H.return("SD")}})};
aRt=function(K,d,f){var H,D,S,n,u,a,R,F;_.c(function(z){switch(z.nextAddress){case 1:return _.I(z,amw(K,(H=d)==null?void 0:H.actionParams),2);case 2:D=d.playlistId;if(!D)return z.return();if(d.action==="ACTION_ADD")return((n=d.actionParams)==null?0:n.formatType)?_.I(z,VPS(K,D,d.actionParams.formatType,(F=d.actionParams)==null?void 0:F.settingsAction,f),0):_.I(z,K.offlineWebClientEligibility,14);if(d.action==="ACTION_REMOVE_WITH_PROMPT"){var v=K.JSC$16092_commandHandler,g=v.resolveCommand,N=_.mD("INNERTUBE_CLIENT_NAME");
var h=N==="WEB_REMIX"?_.iB("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.iB("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var m=N==="WEB_REMIX"?[_.iB("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];N=N==="WEB_REMIX"?_.iB("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.iB("DELETE",void 0,"Delete");var T=_.iB("CANCEL",void 0,"Cancel");h=cRy(h,m,N,T,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:D});g.call(v,{openPopupAction:h});
return z.return()}if(d.action==="ACTION_REMOVE")return _.I(z,fRw(K,D),0);if(d.action!=="ACTION_SYNC"){z.jumpTo(0);break}return _.I(z,K.JSC$16092_playerApiPromise,9);case 9:return S=z.yieldResult,_.I(z,S.queueOfflineAction(D,K.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return u=z.yieldResult,_.I(z,U7t(K),15);case 15:return a=z.yieldResult,_.I(z,Iml(K),16);case 16:R=z.yieldResult,d.onAddCommand&&K.JSC$16092_commandHandler.resolveCommand(d.onAddCommand,{form:{preferredFormatType:a,
offlineWebClientEligibility:u,lastOfflineQualitySettingsSavedMs:R.toString()}}),z.jumpTo(0)}})};
cpE=function(K,d,f){var H,D,S,n,u,a,R,F,z,v,g,N,h,m;_.c(function(T){switch(T.nextAddress){case 1:return _.I(T,amw(K,(H=d)==null?void 0:H.actionParams),2);case 2:D=d.videoId;if(!D)return T.return();if(d.action==="ACTION_REMOVE_WITH_PROMPT"){var r=K.JSC$16092_commandHandler,J=r.resolveCommand,L=_.mD("INNERTUBE_CLIENT_NAME");var fB=L==="WEB_REMIX"?_.iB("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.iB("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var w=L==="WEB_REMIX"?[_.iB("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];L=L==="WEB_REMIX"?_.iB("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.iB("DELETE",void 0,"Delete");var yO=_.iB("CANCEL",void 0,"Cancel");fB=cRy(fB,w,L,yO,{signal:"DELETE_DOWNLOAD",targetId:D});J.call(r,{openPopupAction:fB});return T.return()}if(d.action==="ACTION_ADD")return((v=d.actionParams)==null?0:v.formatType)?_.I(T,yMt(K,D,d.actionParams.formatType,(m=d.actionParams)==null?void 0:m.settingsAction,f),0):_.I(T,K.offlineWebClientEligibility,
23);if(d.action==="ACTION_RETRY")return _.I(T,U7t(K),19);if(d.action==="ACTION_PAUSE")return _.I(T,K.pauseVideoDownload(D),0);if(d.action==="ACTION_RESUME")return _.I(T,K.resumeVideoDownload(D),0);if(d.action!=="ACTION_REMOVE"){T.jumpTo(0);break}return _.I(T,Sz5(K,D),13);case 13:return S=T.yieldResult,K.previousDownloadStateForVideo[D]=(n=S)!=null?n:"DOWNLOAD_STATE_UNKNOWN",_.I(T,i8S(K,D,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(K.previousDownloadStateForVideo[D]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
K.previousDownloadStateForVideo[D]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){T.jumpTo(15);break}return _.I(T,K.pauseVideoDownload(D),15);case 15:r=_.iB("DELETED_VIDEO",void 0,"Video deleted from downloads.");J=_.iB("UNDO_ACTION",void 0,"Undo");fB=_.iB("CLOSE",void 0,"Close");u={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.kJ(r),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.kJ(J),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:D}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:r+" "+J}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:D}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:fB}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};K.JSC$16092_commandHandler.resolveCommand(u);
T.jumpTo(0);break;case 19:a=T.yieldResult;a==="UNKNOWN_FORMAT_TYPE"&&(a="SD");R="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((F=d.actionParams)==null?0:F.formatType)a=d.actionParams.formatType,R=(z=d.actionParams)==null?void 0:z.settingsAction;return _.I(T,npw(K,D,a,R,f),20);case 20:return T.return();case 23:return g=T.yieldResult,_.I(T,U7t(K),24);case 24:return N=T.yieldResult,_.I(T,Iml(K),25);case 25:h=T.yieldResult,d.onAddCommand&&K.JSC$16092_commandHandler.resolveCommand(d.onAddCommand,
{form:{preferredFormatType:N,offlineWebClientEligibility:g,lastOfflineQualitySettingsSavedMs:h.toString()}}),T.jumpTo(0)}})};
Rmc=function(K,d){var f,H,D,S,n,u,a;return _.c(function(R){if(R.nextAddress==1)return _.I(R,K.JSC$16092_persistentStorePromiseAccessor(),2);f=R.yieldResult;if(!f)return _.h3(new _.X4("PES is undefined")),R.return();if((H=d)==null||!H.settingItemId)return R.return();D=d;S=D.settingItemId;n=D.boolValue;u=_.HJ(S,"settingEntity");a={key:u,settingOptionValue:{boolValue:n}};return _.I(R,XWc(f,a),0)})};
Fx7=function(K,d){var f,H,D,S,n,u,a;return _.c(function(R){switch(R.nextAddress){case 1:return _.I(R,K.JSC$16092_prefStorage,2);case 2:return f=R.yieldResult,H=_.aS(),_.I(R,K.JSC$16092_persistentStorePromiseAccessor(),3);case 3:return D=R.yieldResult,f?D?_.I(R,f.get("sdois"),4):(_.h3(new _.X4("PES is undefined")),R.return()):(_.h3(new _.X4("prefStorage is undefined")),R.return());case 4:S=R.yieldResult;u=(n=d)==null?void 0:n.boolValue;u===void 0||_.M("kevlar_set_sd_enabled_flag_killswitch")||_.IS(0,
197,!0);S===void 0&&u===void 0&&(u=!1);if(u===void 0){R.jumpTo(0);break}return _.I(R,f.set("sdois",u),6);case 6:return _.M("kevlar_set_sd_enabled_flag_killswitch")||(_.IS(0,196,u),H.save()),a={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:u},_.I(R,Rmc(K,a),0)}})};
zmw=function(K,d,f){var H,D,S,n,u;return _.c(function(a){switch(a.nextAddress){case 1:return _.I(a,cM7(K),2);case 2:return H=a.yieldResult,_.I(a,Fx7(K,f),3);case 3:return _.I(a,cM7(K),4);case 4:return D=a.yieldResult,S=D!==H,_.I(a,uw5(K),5);case 5:n=a.yieldResult&&!_.M("kevlar_modern_downloads_page");if((u=!D&&!n)||S)return _.I(a,d.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);a.jumpTo(0)}})};
SV7=function(){var K=_.eq().resolve(_.sB),d;_.c(function(f){switch(f.nextAddress){case 1:return _.I(f,K.JSC$16092_playerApiPromise,2);case 2:d=f.yieldResult;if(!_.M("kevlar_force_refresh_smart_downloads")){f.jumpTo(3);break}return _.I(f,d.refreshAllStaleEntities(0),4);case 4:return f.return();case 3:return _.I(f,d.refreshAllStaleEntities(),5);case 5:return _.I(f,zmw(K,d),0)}})};
UQl=function(K,d){var f,H;_.c(function(D){switch(D.nextAddress){case 1:return _.I(D,K.JSC$16092_playerApiPromise,2);case 2:f=D.yieldResult;switch((H=d)==null?void 0:H.settingItemId){case "SMART_DOWNLOADS_ENABLED":return D.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return D.jumpTo(4)}D.jumpTo(0);break;case 3:return _.I(D,zmw(K,f,d),6);case 6:D.jumpTo(0);break;case 4:return _.I(D,Rmc(K,d),7);case 7:D.jumpTo(0)}})};
XPP=function(K,d){var f,H,D;return _.c(function(S){if(S.nextAddress==1)return _.I(S,K.JSC$16092_persistentStorePromiseAccessor(),2);if(S.nextAddress!=3){f=S.yieldResult;if(!f)return _.h3(new _.X4("PES is undefined")),S.return(!1);if(!d)return S.return(!1);H=_.HJ(d,"mainVideoEntity");return _.I(S,vmP(f,H,"mainVideoEntity"),3)}D=S.yieldResult;return S.return(D!==void 0)})};
FSw=function(K){var d=_.eq().resolve(_.sB),f,H,D,S,n,u,a,R,F,z,v;_.c(function(g){switch(g.nextAddress){case 1:return _.I(g,d.JSC$16092_playerApiPromise,2);case 2:f=g.yieldResult;D=(H=K)==null?void 0:H.actions;if(!D)return g.return();S=_.y(D);n=S.next();case 3:if(n.done){g.jumpTo(0);break}u=n.value;R=a=void 0;if(!(((a=u)==null?0:a.entityKey)&&((R=u)==null?0:R.actionType))){g.jumpTo(4);break}F=_.KF(u.entityKey);z=F.entityId;v=F.entityType;return _.I(g,f.queueOfflineAction(z,v,u.actionType),4);case 4:n=
S.next(),g.jumpTo(3)}})};
vpc=function(K,d){var f,H,D,S,n;return _.c(function(u){if(u.nextAddress==1)return _.I(u,K.JSC$16092_prefStorage,2);if(u.nextAddress!=3)return(f=u.yieldResult)?_.I(u,f.get("psi"),3):u.return();H=u.yieldResult;n={isPaused:d,lastSyncTimestamp:(S=(D=H)==null?void 0:D.lastSyncTimestamp)!=null?S:"0"};return _.I(u,f.set("psi",n),0)})};
voc=function(K){var d=_.eq().resolve(_.sB),f,H,D,S,n,u,a,R;return _.c(function(F){switch(F.nextAddress){case 1:return _.I(F,d.JSC$16092_playerApiPromise,2);case 2:f=F.yieldResult;D=((H=K)==null?void 0:H.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((u=K)==null?void 0:u.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":S="!*$_ALL_ENTITIES_!*$";n="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 _.I(F,vpc(d,D),6);case 6:F.jumpTo(5);break;case 4:return _.I(F,XPP(d,(a=K)==null?void 0:a.videoId),7);case 7:F.yieldResult&&(S=(R=K)==null?void 0:R.videoId,n="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");F.jumpTo(5);break;case 5:if(S&&n)return _.I(F,f.queueOfflineAction(S,"videoPlaybackPositionEntity",n),0);F.jumpTo(0)}})};
MPZ=function(K,d){var f;d!==1||((f=K.currentPersistentToast)==null?0:f.isOpened())?K.openToast():K.currentPersistentToast=void 0};
PLw=function(){var K,d,f,H;return _.c(function(D){if(D.nextAddress==1)return K=navigator,(d=K.storage)!=null&&d.persisted?_.I(D,(f=K.storage)==null?void 0:f.persisted(),2):D.return("PERSISTED_STATE_NOT_SUPPORTED");H=D.yieldResult;return D.return(H?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
gpZ=function(){var K,d,f,H;return _.c(function(D){if(D.nextAddress==1)return K=navigator,(d=K.storage)!=null&&d.persist?_.I(D,(f=K.storage)==null?void 0:f.persist(),2):D.return("PERSISTED_STATE_NOT_SUPPORTED");H=D.yieldResult;return D.return(H?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
O85=function(){var K,d;return _.c(function(f){switch(f.nextAddress){case 1:return K="PERSISTED_STATE_NOT_SUPPORTED",_.HF(f,2),_.I(f,PLw(),4);case 4:K=f.yieldResult;if(K!=="PERSISTED_STATE_NOT_GRANTED"){f.jumpTo(5);break}return _.I(f,gpZ(),6);case 6:K=f.yieldResult;case 5:_.Ts(f,3);break;case 2:d=_.n7(f),d instanceof Error&&_.$7(d);case 3:return _.t3("persistentStorageStateChecked",{persistedState:K}),f.return(K)}})};
NjE=function(K,d){var f=[],H=!1;d=_.y(d);for(var D=d.next();!D.done;D=d.next()){D=K.moduleRegistry[D.value];var S=void 0,n=void 0;((S=D)==null?0:S.isFetching)&&((n=D)==null?0:n.resolver)?(f.push(D.resolver.promise),H=!0):(D=new _.fU,D.resolve(void 0),f.push(D.promise))}return H?Promise.all(f):void 0};
Yzl=function(K,d,f){f=f===void 0?{}:f;var H=K.defaultViewTransitionOptions,D=d.map(function(n){return n.beforeTransition}),S=d.map(function(n){return n.afterTransition});
return Object.assign({},H,f,{beforeTransition:function(){var n;(n=H.beforeTransition)==null||n.call(H);var u,a;(a=(u=f).beforeTransition)==null||a.call(u);n=_.y(D);for(u=n.next();!u.done;u=n.next())u=u.value,u()},
afterTransition:function(){var n;(n=H.afterTransition)==null||n.call(H);var u,a;(a=(u=f).afterTransition)==null||a.call(u);n=_.y(S);for(u=n.next();!u.done;u=n.next())u=u.value,u()}})};
tPS=function(K,d,f){var H,D,S,n,u,a,R;_.c(function(F){if(K.config.disableAllTransitions)return F.return(d());if((H=f)==null||!H.transitionName)return F.return(_.hqi(d,(D=f)==null?void 0:D.viewTransitionOptions));S=f;n=S.transitionName;u=S.viewTransitionOptions;a=K.config.transitionConfigs.get(n);if(!a)return F.return(d());var z;R=(z=K.transitionTasksMap.get(n))!=null?z:[];return F.return(_.hqi(d,Yzl(a,R,u)))})};
ki=function(K,d,f){K.transitionTasksMap.has(d)?K.transitionTasksMap.get(d).push(f):(K=new _.X4("Transition task registered for unknown transition name",d),_.$7(K))};
opS=function(K,d,f){if(K.isInitialized()){var H=pP(f),D=H==="watch";H=H==="shorts";var S=pP(d)==="watch";if(D)S||(K.backgroundPageData=d),K.watchPipMode&&S||K.deactivate(f.endpoint);else if(H){if(pP(d)!=="shorts"){var n;(n=K.getPlayerElement())==null||n.pause()}}else S&&!K.watchPipMode&&(ad7(d,f)?(K.watchWhileMode&&_.mll(K,!1),_.tSw(K,d)):K.isMiniplayerActive()&&K.watchWhileMode&&K.deactivate());S&&_.Wtw(K);K.shortsPipMode&&!H&&(window.focus(),K.deactivate());if(K.pictureInPictureEnabled())if(H&&
K.shortsPipEnabled||D&&K.watchPipEnabled)_.gUz(K.handleMediaSessionPipActivation);else if(!K.isMiniplayerActive()&&(K.shortsPipEnabled||K.watchPipEnabled)&&window.documentPictureInPicture&&_.m5()&&_.uXS("Chromium")>=120){K=_.PKz().mediaSession;try{K.setActionHandler("enterpictureinpicture",null)}catch(u){}}}};
$7l=function(K,d){var f,H;_.c(function(D){if(D.nextAddress==1){if(!K||!K.navigationEndpoint)return D.return();_.SJ().lockupActivation=!0;var S;d?S=_.rB(_.iB("QUEUE",void 0,"Queue")):S=K.longBylineText;H=(f=S)&&K.title?{miniplayerTitle:K.title,miniplayerSubtitle:f,playlistData:null}:void 0;return _.I(D,_.jgH(_.eq().resolve(_.$b),K.navigationEndpoint,!0,H),2)}_.SJ().userActivation=!0;_.iQ(D)})};
RJz=function(K,d){var f,H,D,S,n,u;_.c(function(a){if(a.nextAddress==1){f=_.P(d,_.k$k);if(!f||!f.listId)return a.return();K.index=f.index||K.index||0;H=K.response&&K.response.playingVideoId||void 0;return _.I(a,_.gVH(K.JSC$10802_playlistNetworkManager,f.listId,K.index,H),2)}D=a.yieldResult;if(!D)return a.return();S=D.playlistId;n=D.playlistPanelRenderer;!K.queueProxy&&S&&n&&S.startsWith("TLPQ")&&(K.queueProxy=new _.gx(K.JSC$10802_playlistNetworkManager,S,K.setPlaylistData.bind(K),K.clearQueue.bind(K),
_.p5Y(n),K.storage));if(f.openMiniplayer&&(u=_.KPY(n))&&!K.pageManager.isOnWatch()){var R=u,F=f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";K.isMiniplayerActive()?K.openToast(R):$7l(R,F)}K.setPlaylistData(S,n,D.autoplayRenderer);_.iQ(a)})};
apU=function(K,d){var f=_.h_();f.index===void 0&&(f.index=0);f.temporaryItems.push.apply(f.temporaryItems,_.Me(K));if((d.videoId||d.videoIds)&&f.index!==void 0&&d.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!f.queueProxy){var H=[];if(f.response){var D=_.eq().resolve(_.$b).isMiniplayerActive();if(f.response.playlistPanelRenderer&&f.response.playlistId&&!f.response.playlistId.startsWith("TLPQ")){if(f.pageManager.isOnWatch()||D)H=_.p5Y(f.response.playlistPanelRenderer)}else f.response.playingVideoId&&
!d.openMiniplayer?H.push(f.response.playingVideoId):D&&f.response.playingVideoId&&d.openMiniplayer&&H.push(f.response.playingVideoId)}f.queueProxy=new _.gx(f.JSC$10802_playlistNetworkManager,"",f.setPlaylistData.bind(f),f.clearQueue.bind(f),H,f.storage);f.queueProxy.JSC$10748_setCurrentIndex(f.index)}f.queueProxy.addVideos(d.videoIds||[d.videoId],d)}gmw(f,K);f.response&&_.bi(f,_.mM(f,f.response.autoplayRenderer));f.pageManager.isOnWatch()?f.isMiniplayerActive()&&f.openToast(K[0]):(K=K[0],d=d.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",f.isMiniplayerActive()?f.openToast(K):$7l(K,d))};
Ep5=function(K){var d=_.Rz(K);if(d=="object"||d=="array"){if(typeof K.clone==="function")return K.clone();if(typeof Map!=="undefined"&&K instanceof Map)return new Map(K);if(typeof Set!=="undefined"&&K instanceof Set)return new Set(K);d=d=="array"?[]:{};for(var f in K)d[f]=Ep5(K[f]);return d}return K};
uv=function(K,d){return _.kSO(_.Db(K,d,void 0,_.HY))};
aq=function(K,d){return _.Nl(_.Db(K,d,void 0,_.HY))};
Iq=function(K,d){return _.Us5(_.Db(K,d,void 0,_.HY))};
UD=function(K,d){return _.Db(K,d,void 0,_.HY,_.az)};
hmt=_.Bx(function(K,d,f){if(K.nextWireType_!==0)return!1;_.J4(d,f,_.o2(K.decoder_,_.HK));return!0},_.ZM,_.hI);
b8y=_.Bx(function(K,d,f,H){if(K.nextWireType_!==0)return!1;_.nO(d,f,H,_.o2(K.decoder_,_.HK));return!0},_.ZM,_.hI);
m7z=_.Bx(function(K,d,f){if(K.nextWireType_!==1)return!1;var H=K.decoder_;K=_.E3(H);H=_.E3(H);K=_.pJ(K,H);_.J4(d,f,K);return!0},_.JPG,_.FFJ);
lmS=_.Bx(function(K,d,f){if(K.nextWireType_!==5)return!1;_.J4(d,f,_.E3(K.decoder_));return!0},function(K,d,f){d=_.Yw(d);
d!=null&&(_.sj(K,f,5),_.w4(K.encoder_,d))},_.Rjp);
Wxi=_.Bx(function(K,d,f){if(K.nextWireType_!==0)return!1;K=_.kru(K.decoder_);_.J4(d,f,K===!1?void 0:K);return!0},_.sz5,_.uhX);
GCw=_.Bx(function(K,d,f){if(K.nextWireType_!==2)return!1;K=_.dyJ(K);_.J4(d,f,K===""?void 0:K);return!0},_.wKO,_.aCO);
AMU=_.Bx(function(K,d,f){if(K.nextWireType_!==2)return!1;K=_.fCY(K);_.J4(d,f,K===_.Tk()?void 0:K);return!0},_.e5X,_.vvN);
Tjz=_.TwJ(function(K,d,f){if(K.nextWireType_!==0&&K.nextWireType_!==2)return!1;d=_.t4(d,d[_.of]|0,f);K.nextWireType_==2?_.HRz(K,ZFE,d):d.push(_.$2(K.decoder_));return!0},function(K,d,f){d=_.APz(_.Nl,d,!0);
if(d!=null&&d.length){f=_.I7z(K,f);for(var H=0;H<d.length;H++)_.CUz(K.encoder_,d[H]);_.UlX(K,f)}},_.MTo);
rM7=_.Bx(function(K,d,f){if(K.nextWireType_!==0)return!1;K=_.$2(K.decoder_);_.J4(d,f,K===0?void 0:K);return!0},_.pKz,_.MTo);
qzi=_.Bx(function(K,d,f,H){if(K.nextWireType_!==0)return!1;_.nO(d,f,H,_.$2(K.decoder_));return!0},_.pKz,_.MTo);
_.je=function(K){this.privateDoNotAccessOrElseWrappedStyleSheet=K};
_.je.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var O1P=function(K,d){return new _.Nm(K.x+d.x,K.y+d.y)},Qni=function(K){return K.previousElementSibling!==void 0?K.previousElementSibling:_.YY2(K.previousSibling,!1)},jnw=function(K,d){var f=[];
for(d=d||0;d<K.length;d+=2)_.UsN(K[d],K[d+1],f);return f.join("&")},CLl=function(K,d){var f=arguments.length==2?jnw(arguments[1],0):jnw(arguments,1);
return _.ILs(K,f)},x7E=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(x7E,_.Ti);x7E.prototype.getValue=function(){var K=_.Db(this,2);if(Array.isArray(K)||K instanceof _.Ti)throw Error("aa");return _.y5(this,2)};
var Cp5=function(){var K=_.e3();this.JSC$7923_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Hy("channel_type"))};
Cp5.prototype.increment=function(K){this.JSC$7923_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",K)};
var xFU=function(){var K=_.e3();this.JSC$7926_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Hy("channel_type"))};
xFU.prototype.increment=function(K){this.JSC$7926_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",K)};
var BUw=function(){var K=_.e3();this.JSC$7929_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Hy("channel_type"))};
BUw.prototype.increment=function(K){this.JSC$7929_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",K)};
var LhE=function(){var K=_.e3();this.JSC$7932_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
LhE.prototype.increment=function(){this.JSC$7932_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var J3P=function(){var K=_.e3();this.JSC$7935_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Hy("channel_type"),_.Hy("error_type"))};
J3P.prototype.increment=function(K,d){this.JSC$7935_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",K,d)};
var sBU=function(){var K=_.e3();this.JSC$7938_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
sBU.prototype.increment=function(){this.JSC$7938_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var kEP=function(){var K=_.e3();this.JSC$7941_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
kEP.prototype.increment=function(){this.JSC$7941_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var rpE=function(){var K=_.e3();this.JSC$7947_streamzService=K;K.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
rpE.prototype.increment=function(){this.JSC$7947_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Lxl=function(K){return K.getCount&&typeof K.getCount=="function"?K.getCount():_.d2(K)||typeof K==="string"?K.length:_.PR.getCount(K)},BjS=function(K,d){if(typeof K.every=="function")return K.every(d,void 0);
if(_.d2(K)||typeof K==="string")return Array.prototype.every.call(K,d,void 0);for(var f=_.nht(K),H=_.qf(K),D=H.length,S=0;S<D;S++)if(!d.call(void 0,H[S],f&&f[S],K))return!1;return!0},JMw=function(K,d,f,H){var D=new _.Q8(null);
K&&_.Qh(D,K);d&&_.jU(D,d);f&&_.Cx(D,f);H&&_.xk(D,H);return D},snz=function(){var K=_.bH&&_.RX(_.MDv,10)>=0,d;
if(d=_.ilN)d=_.RX(_.vFB,10)>=0;var f=_.KO&&_.RX(_.MDv,85)>=0;return _.w7||K||d||f},kCU=function(K){var d=_.sXs(K);
return d&&snz()?-K.scrollLeft:d&&_.As(K,"overflowX")!="visible"?K.scrollWidth-K.clientWidth-K.scrollLeft:K.scrollLeft},wP7=function(K,d){d=Math.max(d,0);
_.sXs(K)?snz()?K.scrollLeft=-d:K.scrollLeft=K.scrollWidth-d-K.clientWidth:K.scrollLeft=d},oMi=0,mki=!1;
fc.prototype.set=function(K){this.relativeTimeStart_=K};
fc.prototype.reset=function(){this.set(_.Ls())};
fc.prototype.get=function(){return this.relativeTimeStart_};
var Z87=null,emt=function(){Z87||(Z87=new fc)},pPc=function(){Z87||(Z87=new fc)};
_.Bd(pPc,emt);_.V=WDz.prototype;_.V.JSC$9257_buffer_="";_.V.set=function(K){this.JSC$9257_buffer_=""+K};
_.V.append=function(K,d,f){this.JSC$9257_buffer_+=String(K);if(d!=null)for(var H=1;H<arguments.length;H++)this.JSC$9257_buffer_+=arguments[H];return this};
_.V.clear=function(){this.JSC$9257_buffer_=""};
_.V.getLength=function(){return this.JSC$9257_buffer_.length};
_.V.toString=function(){return this.JSC$9257_buffer_};
var Kez=function(){var K={type:"unit",style:"narrow"};this.listType_=K&&K.type?K.type:"conjunction";this.listStyle_=K&&K.style?K.style:"long";this.listSymbols_=Dn5;K=0;switch(this.listStyle_){case "short":K=1;break;case "narrow":K=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[K];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[K];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[K];this.listEndPattern_=
this.listSymbols_.AND_END[K];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[K];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[K];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[K];this.listEndPattern_=this.listSymbols_.OR_END[K];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[K],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[K],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[K],this.listEndPattern_=this.listSymbols_.UNIT_END[K]}};
Kez.prototype.format=function(K){return ddt(this,K)};
var ddt=function(K,d){var f=d.length;switch(f){case 0:return"";case 1:return String(d[0]);case 2:return K.listTwoPattern_.replace("{0}",String(d[0])).replace("{1}",String(d[1]))}for(var H=K.listStartPattern_.replace("{0}",String(d[0])).replace("{1}",String(d[1])),D=2;D<f-1;++D)H=K.listMiddlePattern_.replace("{0}",H).replace("{1}",String(d[D]));return K.listEndPattern_.replace("{0}",H).replace("{1}",String(d[f-1]))},ZQE=function(){var K={style:1};
this.style_=(K==null?void 0:K.style)||0;this.durationSymbols_=_.ZL2||_.dQ4},fFl=function(K,d){switch(d){default:case "years":return K.durationSymbols_.YEAR;
case "months":return K.durationSymbols_.MONTH;case "weeks":return K.durationSymbols_.WEEK;case "days":return K.durationSymbols_.DAY;case "hours":return K.durationSymbols_.HOUR;case "minutes":return K.durationSymbols_.MINUTE;case "seconds":return K.durationSymbols_.SECOND}},Rq=function(K,d,f){a:{f=fFl(K,f);
switch(K.style_){case 1:if(f.LONG!=void 0){K=f.LONG;break a}case 2:if(f.NARROW!=void 0){K=f.NARROW;break a}default:K=f.SHORT;break a}K=void 0}return K?(new _.OFf("{DURATION_VALUE,plural,"+K+"}")).format({DURATION_VALUE:d}):""};
ZQE.prototype.format=function(K){var d=[],f=K.years,H=K.months,D=K.weeks,S=K.days,n=K.hours,u=K.minutes;K=K.seconds;f!=null&&d.push(Rq(this,f,"years"));H!=null&&d.push(Rq(this,H,"months"));D!=null&&d.push(Rq(this,D,"weeks"));S!=null&&d.push(Rq(this,S,"days"));n!=null&&d.push(Rq(this,n,"hours"));u!=null&&d.push(Rq(this,u,"minutes"));K!=null&&d.push(Rq(this,K,"seconds"));return(new Kez).format(d)};
var HZi=!1,jdU=function(K){_.KB.call(this,K.message||K.description||K.name);this.isMissing=K instanceof Hf;this.isTimeout=K instanceof _.xq&&K.errorCode=="net.timeout";this.isCanceled=K instanceof _.mf};
_.O(jdU,_.KB);jdU.prototype.name="BiscottiError";var Hf=function(){_.KB.call(this,"Biscotti ID is missing from server")};
_.O(Hf,_.KB);Hf.prototype.name="BiscottiMissingError";var D$=null,H1z=function(){try{var K=_.T2("yt.ads.biscotti.getId_");return K?K():Mq5()}catch(d){return _.vv(d)}},w_5,Ddt=function(K){return _.es({type:"SET_GUIDE_IS_EXPANDED",
payload:K})},VVi=function(K){return _.es({type:"SET_ONLINE_STATUS",
payload:K})},SP5=function(K,d){return _.es({type:"SET_TRANSCRIPTION_STATE",
payload:{high:K,low:d}})},yJt=function(K){return _.es({type:"SET_OVERLAY_STATE",
payload:K})},nAU=0,iZU=function(K,d,f){var H=this;
this.priority=d;this.delay=f;this.jobId=0;this.completionCallback=_.SO;this.wrappedJob=function(){K();H.completionCallback()};
this.id=++nAU};
iZU.prototype.enqueue=function(K){this.completionCallback=K;this.jobId=_.oc.addJob(this.wrappedJob,this.priority,this.delay)};
var FP=function(){_.Jz.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.O(FP,_.Jz);FP.prototype.addJob=function(K,d,f){K=new iZU(K,d,f);this.taskIdToTask.set(K.id,K);this.isActive?cJK(this,K):this.suspendedTasks.add(K);return K.id};
var cJK=function(K,d){K.scheduledTasks.add(d);d.enqueue(function(){K.scheduledTasks.delete(d)})};
FP.prototype.cancelJob=function(K){(K=this.taskIdToTask.get(K))&&(this.scheduledTasks.delete(K)?_.oc.cancelJob(K.jobId):this.suspendedTasks.delete(K))};
FP.prototype.pause=function(){var K=this;this.isActive=!1;this.scheduledTasks.forEach(function(d){_.oc.cancelJob(d.jobId);K.suspendedTasks.add(d)});
this.scheduledTasks.clear()};
FP.prototype.start=function(){var K=this;this.isActive=!0;this.suspendedTasks.forEach(function(d){cJK(K,d)});
this.suspendedTasks.clear()};
FP.prototype.reset=function(){this.scheduledTasks.forEach(function(K){_.oc.cancelJob(K.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var zb=function(K,d){this.JSC$10931_networkService_=K;this.pageRequestPromise=d};
zb.prototype.fetchData=function(K){uqE(this,this.JSC$10931_networkService_.fetchData(K))};
zb.prototype.postData=function(K,d){uqE(this,this.JSC$10931_networkService_.postData(K,d))};
zb.prototype.requestDataForServiceEndpoint=function(K,d){uqE(this,this.JSC$10931_networkService_.requestDataForServiceEndpoint(K,d))};
var uqE=function(K,d){d.then(K.pageRequestPromise.onSuccess,K.pageRequestPromise.onFailure,K.pageRequestPromise)};
zb.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var XP=function(K){this.buildNetworkRequest_=K;this.pendingRequests_=new Set};
XP.prototype.reset=function(){this.pendingRequests_.forEach(function(K){K.cancel()});
this.pendingRequests_.clear()};
XP.prototype.fetchData=function(K){var d=aFy(this);d.fetchData(K);return d.pageRequestPromise};
XP.prototype.postData=function(K,d){var f=aFy(this);f.postData(K,d);return f.pageRequestPromise};
XP.prototype.requestDataForServiceEndpoint=function(K,d){var f=aFy(this);f.requestDataForServiceEndpoint(K,d);return f.pageRequestPromise};
var aFy=function(K){var d=K.buildNetworkRequest_();K.pendingRequests_.add(d);var f=function(){K.pendingRequests_.delete(d)};
d.pageRequestPromise.then(f,f);return d},IFZ=function(K){var d=new FP;
this.JSC$10938_networkService_=K;this.JSC$10938_taskManager_=d;this.JSC$10938_networkManager_=new XP(this.networkRequestFactory_.bind(this))};
_.V=IFZ.prototype;_.V.networkRequestFactory_=function(){return new zb(this.JSC$10938_networkService_,new _.B5(this.JSC$10938_taskManager_))};
_.V.reset=function(){this.JSC$10938_taskManager_.reset();this.JSC$10938_networkManager_.reset()};
_.V.start=function(){this.JSC$10938_taskManager_.start()};
_.V.pause=function(){this.JSC$10938_taskManager_.pause()};
_.V.getTaskManager=function(){return this.JSC$10938_taskManager_};
_.V.getNetworkManager=function(){return this.JSC$10938_networkManager_};
var fUy=null,VQK=[],V6=0,y6=0,Sg=null,Udz=!1,nc=null,y9E=void 0,R2Z=function(){var K=(0,_.GTN)();K&&S15(K,K.mechanism.__iterator__(!0))},cf=function(K){this.token=K};
cf.getInstance=function(){var K;return _.c(function(d){if(d.nextAddress==1)return _.I(d,_.J9(),2);K=d.yieldResult;if(!K)return d.return();cf.instance||(cf.instance=new cf(K));return d.return(cf.instance)})};
var IUZ=function(K){var d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,c95(K.token),2);d=f.yieldResult;return f.return(d.clear("resource-manifest-assets"))})},iE=function(K){this.token=K};
iE.getInstance=function(){var K;return _.c(function(d){if(d.nextAddress==1)return _.I(d,_.J9(),2);K=d.yieldResult;if(!K)return d.return();iE.instance||(iE.instance=new iE(K));return d.return(iE.instance)})};
var u4y=function(K){var d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,c95(K.token),2);d=f.yieldResult;return _.I(f,d.clear("auth"),0)})},lUw=!1,FeU=function(K){_.KB.call(this,K)};
_.O(FeU,_.wjB);var lty=function(){var K=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return K?parseInt(K[1],10):0},z25=function(K){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+K)!=-1||document.currentScript.src.indexOf("&"+K)!=-1)},Xv5=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},rdw=function(K){K.length?vAc(K.shift(),function(){rdw(K)}):GFz()},Q4w=function(K){return"chrome-extension://"+K+"/cast_sender.js"},vAc=function(K,
d,f){var H=document.createElement("script");
H.onerror=d;f&&(H.onload=f);_.Aa(H,_.ts(K));(document.head||document.documentElement).appendChild(H)},MVi=function(){var K=lty(),d=[];
if(K>1){var f=K-1;d.push("//www.gstatic.com/eureka/clank/"+K+"/cast_sender.js");d.push("//www.gstatic.com/eureka/clank/"+f+"/cast_sender.js")}return d},GFz=function(){var K=Xv5();
K&&K(!1,"No cast extension found")},TX5=function(){if(Pzt){var K=2,d=Xv5(),f=function(){K--;
K==0&&d&&d(!0)};
window.__onGCastApiAvailable=f;vAc("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",GFz,f)}},WkE=function(){TX5();
var K=MVi();K.push("//www.gstatic.com/eureka/clank/cast_sender.js");rdw(K)},AdS=function(){TX5();
var K=MVi();K.push.apply(K,_.Me(qSZ.map(Q4w)));K.push("//www.gstatic.com/eureka/clank/cast_sender.js");rdw(K)},Pzt=z25("loadCastFramework")||z25("loadCastApplicationFramework"),qSZ=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var gAl=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(gAl,_.Ti);var OZc=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(OZc,_.Ti);var Nli=function(){var K=new OZc;return _.Y2(K,1,3)};var v2=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(v2,_.Ti);var $HE=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O($HE,_.Ti);var YP5=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(YP5,_.Ti);YP5.prototype.getToken=function(){return _.Xo(this,1)};
YP5.prototype.setToken=function(K){return _.Qb(this,1,K)};
var tcP=function(K){return _.M8(K,3,_.ql,_.p0())},oKl=function(K){return _.M8(K,6,_.ql,_.p0())};var MA=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(MA,_.Ti);MA.prototype.getToken=function(){return _.eQ(this,YP5,2)};
MA.prototype.setToken=function(K){return _.fM(this,2,K)};
MA.prototype.getName=function(){return _.Xo(this,6)};
var tV5=_.KM(MA);var oAE=function(K,d,f){this.requestMessage=K;this.methodDescriptor=d;this.metadata=f};
oAE.prototype.getMetadata=function(){return this.metadata};var $dw=function(K,d){d=d===void 0?{}:d;this.responseMessage=K;this.metadata=d;this.status=null};
$dw.prototype.getMetadata=function(){return this.metadata};
$dw.prototype.getStatus=function(){return this.status};var P2=function(K,d,f,H,D){this.name=K;this.methodType="unary";this.requestType=d;this.responseType=f;this.requestSerializeFn=H;this.responseDeserializeFn=D},EAz=function(K,d,f){f=f===void 0?{}:f;
return new oAE(d,K,f)};
P2.prototype.getName=function(){return this.name};var gS=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(gS,_.Ti);gS.prototype.setHeader=function(K){return _.fM(this,1,K)};
gS.prototype.hasHeader=function(){return _.V5(this,v2,1)};var h2t=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(h2t,_.Ti);var bZZ=new P2("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",gS,h2t,function(K){return K.serialize()},_.KM(h2t));var OD=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(OD,_.Ti);OD.prototype.setHeader=function(K){return _.fM(this,1,K)};
OD.prototype.hasHeader=function(){return _.V5(this,v2,1)};var mdZ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(mdZ,_.Ti);var lFc=new P2("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",OD,mdZ,function(K){return K.serialize()},_.KM(mdZ));var NA=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(NA,_.Ti);NA.prototype.setHeader=function(K){return _.fM(this,1,K)};
NA.prototype.hasHeader=function(){return _.V5(this,v2,1)};var We7=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(We7,_.Ti);We7.prototype.getLink=function(){return _.eQ(this,MA,1)};var GGU=new P2("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",NA,We7,function(K){return K.serialize()},_.KM(We7));var YO=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(YO,_.Ti);YO.prototype.setHeader=function(K){return _.fM(this,1,K)};
YO.prototype.hasHeader=function(){return _.V5(this,v2,1)};var AJP=new P2("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",YO,MA,function(K){return K.serialize()},tV5);var TlP=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(TlP,_.Ti);var rJy=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(rJy,_.Ti);rJy.prototype.getUrl=function(){return _.Xo(this,2)};
rJy.prototype.setUrl=function(K){return _.Qb(this,2,K)};var qPl=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(qPl,_.Ti);var QGK=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(QGK,_.Ti);var jGK=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(jGK,_.Ti);var qXt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(qXt,_.Ti);var rLZ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(rLZ,_.Ti);var CzK=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(CzK,_.Ti);var JLZ=_.KM(CzK);var xdi=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(xdi,_.Ti);var tE=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(tE,_.Ti);tE.prototype.setHeader=function(K){return _.fM(this,1,K)};
tE.prototype.hasHeader=function(){return _.V5(this,v2,1)};
tE.prototype.getCompletionUrl=function(){return _.Xo(this,6)};
tE.prototype.getDeviceId=function(){return _.Xo(this,11)};var LeS=new P2("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",tE,CzK,function(K){return K.serialize()},JLZ);var Bl7=new Set(["SAPISIDHASH","APISIDHASH"]);var JJ7=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(JJ7,_.Ti);JJ7.prototype.getMessage=function(){return _.Xo(this,2)};
var sGP=_.KM(JJ7);var oq=function(K,d){this.xhrNodeReadableStream_=K.nodeReadableStream;this.grpcResponseDeserializeFn_=d;this.JSC$17016_xhr_=K.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17016_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&kGi(this)},daE=function(K,d){var f=new wvi;
_.zG(K.JSC$17016_xhr_,"complete",function(){if(K.JSC$17016_xhr_.isSuccess()){var H=K.JSC$17016_xhr_.getResponseText();var D;if(D=d)D=K.JSC$17016_xhr_,D.JSC$7805_xhr_&&D.isComplete()?(D=D.JSC$7805_xhr_.getResponseHeader("Content-Type"),D=D===null?void 0:D):D=void 0,D=D==="text/plain";if(D){if(!atob)throw Error("Ij");H=atob(H)}try{var S=K.grpcResponseDeserializeFn_(H)}catch(u){$O(K,Ikw(new _.Rt(13,"Error when deserializing response data; error: "+u+(", response: "+H)),f));return}H=_.nm(K.JSC$17016_xhr_.getStatus());
ZZw(K,e2U(K));H==0?pvl(K,S):$O(K,Ikw(new _.Rt(H,"Xhr succeeded but the status code is not 200"),f))}else{H=K.JSC$17016_xhr_.getResponseText();S=e2U(K);if(H){var n=Kdw(K,H);H=n.code;D=n.details;n=n.metadata}else H=2,D="Rpc failed due to xhr error. uri: "+String(K.JSC$17016_xhr_.JSC$7805_lastUri_)+", error code: "+K.JSC$17016_xhr_.JSC$7805_lastErrorCode_+", error: "+K.JSC$17016_xhr_.getLastError(),n=S;ZZw(K,S);$O(K,Ikw(new _.Rt(H,D,n),f))}})},kGi=function(K){K.xhrNodeReadableStream_.on("data",function(d){if("1"in
d){var f=d["1"];
try{var H=K.grpcResponseDeserializeFn_(f)}catch(D){$O(K,new _.Rt(13,"Error when deserializing response data; error: "+D+(", response: "+f)))}H&&pvl(K,H)}if("2"in d)for(d=Kdw(K,d["2"]),f=0;f<K.onStatusCallbacks_.length;f++)K.onStatusCallbacks_[f](d)});
K.xhrNodeReadableStream_.on("end",function(){ZZw(K,e2U(K));for(var d=0;d<K.onEndCallbacks_.length;d++)K.onEndCallbacks_[d]()});
K.xhrNodeReadableStream_.on("error",function(){if(K.JSC$17016_onErrorCallbacks_.length!=0){var d=K.JSC$17016_xhr_.JSC$7805_lastErrorCode_;d!==0||K.JSC$17016_xhr_.isSuccess()||(d=6);var f=-1;switch(d){case 0:var H=2;break;case 7:H=10;break;case 8:H=4;break;case 6:f=K.JSC$17016_xhr_.getStatus();H=_.nm(f);break;default:H=14}ZZw(K,e2U(K));d=_.Q6N(d)+", error: "+K.JSC$17016_xhr_.getLastError();f!=-1&&(d+=", http status code: "+f);$O(K,new _.Rt(H,d))}})},e2U=function(K){var d={},f=fey(K.JSC$17016_xhr_);
Object.keys(f).forEach(function(H){d[H]=f[H]});
return d},Kdw=function(K,d){var f=2,H={};
try{var D=sGP(d);f=_.Km(D,1);var S=D.getMessage();_.e4(D,x7E,3,_.p0()).length&&(H["grpc-web-status-details-bin"]=d)}catch(n){K.JSC$17016_xhr_&&K.JSC$17016_xhr_.getStatus()===404?(f=5,S="Not Found: "+String(K.JSC$17016_xhr_.JSC$7805_lastUri_)):(f=14,S="Unable to parse RpcStatus: "+n)}return{code:f,details:S,metadata:H}};
oq.prototype.on=function(K,d){K=="data"?this.onDataCallbacks_.push(d):K=="metadata"?this.onMetadataCallbacks_.push(d):K=="status"?this.onStatusCallbacks_.push(d):K=="end"?this.onEndCallbacks_.push(d):K=="error"&&this.JSC$17016_onErrorCallbacks_.push(d);return this};
var ED=function(K,d){d=K.indexOf(d);d>-1&&K.splice(d,1)};
oq.prototype.removeListener=function(K,d){K=="data"?ED(this.onDataCallbacks_,d):K=="metadata"?ED(this.onMetadataCallbacks_,d):K=="status"?ED(this.onStatusCallbacks_,d):K=="end"?ED(this.onEndCallbacks_,d):K=="error"&&ED(this.JSC$17016_onErrorCallbacks_,d);return this};
oq.prototype.cancel=function(){this.JSC$17016_xhr_.abort()};
var pvl=function(K,d){for(var f=0;f<K.onDataCallbacks_.length;f++)K.onDataCallbacks_[f](d)},ZZw=function(K,d){for(var f=0;f<K.onMetadataCallbacks_.length;f++)K.onMetadataCallbacks_[f](d)},$O=function(K,d){for(var f=0;f<K.JSC$17016_onErrorCallbacks_.length;f++)K.JSC$17016_onErrorCallbacks_[f](d)};
oq.prototype.cancel=oq.prototype.cancel;oq.prototype.removeListener=oq.prototype.removeListener;oq.prototype.on=oq.prototype.on;var wvi=function(){var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.O(wvi,Error);var hE=function(K){this.JSC$17025_worker_=K.worker||null;this.JSC$17025_streamBinaryChunks_=K.streamBinaryChunks||!1;this.JSC$17025_credentialsMode_=void 0};
_.Bd(hE,_.wyX);hE.prototype.createInstance=function(){var K=new bv(this.JSC$17025_worker_,this.JSC$17025_streamBinaryChunks_);this.JSC$17025_credentialsMode_&&K.setCredentialsMode(this.JSC$17025_credentialsMode_);return K};
hE.prototype.setCredentialsMode=function(K){this.JSC$17025_credentialsMode_=K};
var bv=function(K,d){_.iJ.call(this);this.JSC$17029_worker_=K;this.JSC$17029_streamBinaryChunks_=d;this.JSC$17029_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$17029_responseHeaders_=null;this.JSC$17029_method_="GET";this.JSC$17029_url_="";this.inProgress_=!1;this.JSC$17029_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.Bd(bv,_.iJ);bv.prototype.open=function(K,d){if(this.readyState!=0)throw this.abort(),Error("Jj");this.JSC$17029_method_=K;this.JSC$17029_url_=d;this.readyState=1;mG(this)};
bv.prototype.send=function(K){if(this.readyState!=1)throw this.abort(),Error("Kj");this.inProgress_=!0;var d={headers:this.requestHeaders_,method:this.JSC$17029_method_,credentials:this.JSC$17029_credentialsMode_,cache:void 0};K&&(d.body=K);(this.JSC$17029_worker_||_.Hu).fetch(new Request(this.JSC$17029_url_,d)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
bv.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,lv(this));this.readyState=0};
bv.prototype.handleResponse_=function(K){if(this.inProgress_&&(this.fetchResponse_=K,this.JSC$17029_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17029_responseHeaders_=K.headers,this.readyState=2,mG(this)),this.inProgress_&&(this.readyState=3,mG(this),this.inProgress_)))if(this.responseType==="arraybuffer")K.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Hu.ReadableStream!==
"undefined"&&"body"in K){this.currentReader_=K.body.getReader();if(this.JSC$17029_streamBinaryChunks_){if(this.responseType)throw Error("Lj");this.response=[]}else this.response=this.responseText="",this.JSC$17029_textDecoder_=new TextDecoder;fW5(this)}else K.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var fW5=function(K){K.currentReader_.read().then(K.handleDataFromStream_.bind(K)).catch(K.handleSendFailure_.bind(K))};
bv.prototype.handleDataFromStream_=function(K){if(this.inProgress_){if(this.JSC$17029_streamBinaryChunks_&&K.value)this.response.push(K.value);else if(!this.JSC$17029_streamBinaryChunks_){var d=K.value?K.value:new Uint8Array(0);if(d=this.JSC$17029_textDecoder_.decode(d,{stream:!K.done}))this.response=this.responseText+=d}K.done?lv(this):mG(this);this.readyState==3&&fW5(this)}};
bv.prototype.handleResponseText_=function(K){this.inProgress_&&(this.response=this.responseText=K,lv(this))};
bv.prototype.handleResponseArrayBuffer_=function(K){this.inProgress_&&(this.response=K,lv(this))};
bv.prototype.handleSendFailure_=function(){this.inProgress_&&lv(this)};
var lv=function(K){K.readyState=4;K.fetchResponse_=null;K.currentReader_=null;K.JSC$17029_textDecoder_=null;mG(K)};
bv.prototype.setRequestHeader=function(K,d){this.requestHeaders_.append(K,d)};
bv.prototype.getResponseHeader=function(K){return this.JSC$17029_responseHeaders_?this.JSC$17029_responseHeaders_.get(K.toLowerCase())||"":""};
bv.prototype.getAllResponseHeaders=function(){if(!this.JSC$17029_responseHeaders_)return"";for(var K=[],d=this.JSC$17029_responseHeaders_.entries(),f=d.next();!f.done;)f=f.value,K.push(f[0]+": "+f[1]),f=d.next();return K.join("\r\n")};
bv.prototype.setCredentialsMode=function(K){this.JSC$17029_credentialsMode_=K};
var mG=function(K){K.onreadystatechange&&K.onreadystatechange.call(K)};
Object.defineProperty(bv.prototype,"withCredentials",{get:function(){return this.JSC$17029_credentialsMode_==="include"},
set:function(K){this.setCredentialsMode(K?"include":"same-origin")}});var HKP=function(K){var d="";_.PR.forEach(K,function(f,H){d+=H;d+=":";d+=f;d+="\r\n"});
return d},Daw=function(K,d,f){if(_.PR.isEmpty(f))return K;
f=HKP(f);if(typeof K==="string")return _.hB(K,_.qk(d),f);_.Cm(K,d,f);return K};var VCw=function(){this.isInputValid_=!0;this.JSC$17035_streamPos_=0;this.leftoverInput_=""};
VCw.prototype.isInputValid=function(){return this.isInputValid_};var IK=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17038_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
IK.prototype.isInputValid=function(){return this.state_!=3};
var W2=function(K,d,f,H){K.state_=3;K.errorMessage_="The stream is broken @"+K.JSC$17038_streamPos_+"/"+f+". Error: "+H+". With input:\n"+d;throw Error(K.errorMessage_);};
IK.prototype.acceptsBinaryInput=function(){return!0};
IK.prototype.parse=function(K){function d(a){a&128&&W2(S,n,u,"invalid tag");(a&7)!=2&&W2(S,n,u,"invalid wire type");S.tag_=a>>>3;S.tag_!=1&&S.tag_!=2&&S.tag_!=15&&W2(S,n,u,"unexpected tag");S.state_=1;S.length_=0;S.countLengthBytes_=0}
function f(a){S.countLengthBytes_++;S.countLengthBytes_==5&&a&240&&W2(S,n,u,"message length too long");S.length_|=(a&127)<<(S.countLengthBytes_-1)*7;a&128||(S.state_=2,S.countMessageBytes_=0,typeof Uint8Array!=="undefined"?S.messageBuffer_=new Uint8Array(S.length_):S.messageBuffer_=Array(S.length_),S.length_==0&&D())}
function H(a){S.messageBuffer_[S.countMessageBytes_++]=a;S.countMessageBytes_==S.length_&&D()}
function D(){if(S.tag_<15){var a={};a[S.tag_]=S.messageBuffer_;S.result_.push(a)}S.state_=0}
for(var S=this,n=K instanceof Array?K:new Uint8Array(K),u=0;u<n.length;){switch(S.state_){case 3:W2(S,n,u,"stream already broken");break;case 0:d(n[u]);break;case 1:f(n[u]);break;case 2:H(n[u]);break;default:throw Error("Nj`"+S.state_);}S.JSC$17038_streamPos_++;u++}K=S.result_;S.result_=[];return K.length>0?K:null};var RnP=function(){this.errorMessage_=null;this.JSC$17041_streamPos_=0;this.base64Decoder_=new VCw;this.pbParser_=new IK};
RnP.prototype.isInputValid=function(){return this.errorMessage_===null};
var S5w=function(K,d,f){K.errorMessage_="The stream is broken @"+K.JSC$17041_streamPos_+". Error: "+f+". With input:\n"+d;throw Error(K.errorMessage_);};
RnP.prototype.acceptsBinaryInput=function(){return!1};
RnP.prototype.parse=function(K){this.errorMessage_!==null&&S5w(this,K,"stream already broken");var d=null;try{var f=this.base64Decoder_;if(!f.isInputValid_)throw f.isInputValid_=!1,Error("Mj`"+f.JSC$17035_streamPos_+"`stream already broken`"+K);f.leftoverInput_+=K;var H=Math.floor(f.leftoverInput_.length/4);if(H==0)var D=null;else{try{var S=_.kVX(f.leftoverInput_.slice(0,H*4))}catch(a){var n=f.leftoverInput_,u=a.message;f.isInputValid_=!1;throw Error("Mj`"+f.JSC$17035_streamPos_+"`"+u+"`"+n);}f.JSC$17035_streamPos_+=
H*4;f.leftoverInput_=f.leftoverInput_.slice(H*4);D=S}d=D===null?null:this.pbParser_.parse(D)}catch(a){S5w(this,K,a.message)}this.JSC$17041_streamPos_+=K.length;return d};var UH5=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17044_streamPos_=0;this.result_=[];this.statusParsed_=!1};
UH5.prototype.isInputValid=function(){return this.errorMessage_===null};
UH5.prototype.acceptsBinaryInput=function(){return!1};
UH5.prototype.parse=function(K){function d(a){S.state_=6;S.errorMessage_="The stream is broken @"+S.JSC$17044_streamPos_+"/"+n+". Error: "+a+". With input:\n";throw Error(S.errorMessage_);}
function f(){S.jsonStreamParser_=new _.k1({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function H(a){if(a)for(var R=0;R<a.length;R++){var F={};F[1]=a[R];S.result_.push(F)}}
function D(a){if(a){(S.statusParsed_||a.length>1)&&d("extra status: "+a);S.statusParsed_=!0;var R={};R[2]=a[0];S.result_.push(R)}}
for(var S=this,n=0;n<K.length;){var u;if(u=S.state_!==2){a:{for(;n<K.length;){if(!_.sh(K[n])){u=!0;break a}n++;S.JSC$17044_streamPos_++}u=!1}u=!u}if(u)return null;switch(S.state_){case 6:d("stream already broken");break;case 0:K[n]==="["?(S.state_=1,n++,S.JSC$17044_streamPos_++):d("unexpected input token");break;case 1:K[n]==="["?(S.state_=2,f()):K[n]===","||K.slice(n,n+5)=="null,"?S.state_=3:K[n]==="]"?(S.state_=5,n++,S.JSC$17044_streamPos_++):d("unexpected input token");break;case 2:u=S.jsonStreamParser_.parse(K.substring(n));
H(u);S.jsonStreamParser_.done()?(S.state_=3,u=S.jsonStreamParser_.JSC$9384_buffer_,S.JSC$17044_streamPos_+=K.length-n-u.length,K=u,n=0):(S.JSC$17044_streamPos_+=K.length-n,n=K.length);break;case 3:K[n]===","||K.slice(n,n+5)=="null,"?(S.state_=4,f(),S.jsonStreamParser_.parse("["),n+=K[n]===","?1:5,S.JSC$17044_streamPos_++):K[n]==="]"&&(S.state_=5,n++,S.JSC$17044_streamPos_++);break;case 4:u=S.jsonStreamParser_.parse(K.substring(n));D(u);S.jsonStreamParser_.done()?(S.state_=5,u=S.jsonStreamParser_.JSC$9384_buffer_,
S.JSC$17044_streamPos_+=K.length-n-u.length,K=u,n=0):(S.JSC$17044_streamPos_+=K.length-n,n=K.length);break;case 5:d("extra input after stream end")}}return S.result_.length>0?(K=S.result_,S.result_=[],K):null};var yhP=function(K){this.JSC$17047_xhr_=K;this.JSC$17047_parser_=null;this.status_=this.JSC$17047_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17047_textDecoder_=null;this.JSC$17047_eventHandler_=new _.Zt(this);this.JSC$17047_eventHandler_.listen(this.JSC$17047_xhr_,"readystatechange",this.JSC$17049_readyStateChangeHandler_)},Gb=function(K,d){K.status_!=d&&(K.status_=d,K.statusHandler_&&K.statusHandler_())},AE=function(K){K.JSC$17047_eventHandler_.removeAll();
if(K.JSC$17047_xhr_){var d=K.JSC$17047_xhr_;K.JSC$17047_xhr_=null;d.abort();d.dispose()}};
yhP.prototype.getStatus=function(){return this.status_};
yhP.prototype.JSC$17049_readyStateChangeHandler_=function(K){K=K.target;try{if(K==this.JSC$17047_xhr_)a:{var d=_.XJ(this.JSC$17047_xhr_),f=this.JSC$17047_xhr_.JSC$7805_lastErrorCode_,H=this.JSC$17047_xhr_.getStatus(),D=this.JSC$17047_xhr_.getResponseText();K=[];if(this.JSC$17047_xhr_.getResponse()instanceof Array){var S=this.JSC$17047_xhr_.getResponse();S.length>0&&S[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,K=S)}if(!(d<3||d==3&&!D&&K.length==0))if(H=H==200||H==206,d==4&&(f==8?Gb(this,
7):f==7?Gb(this,8):H||Gb(this,3)),this.JSC$17047_parser_||(this.JSC$17047_parser_=FnK(this.JSC$17047_xhr_),this.JSC$17047_parser_==null&&Gb(this,5)),this.status_>2)AE(this);else{if(K.length>this.JSC$17047_pos_){var n=K.length;f=[];try{if(this.JSC$17047_parser_.acceptsBinaryInput())for(var u=0;u<n;u++){var a=this.JSC$17047_parser_.parse(Array.from(K[u]));a&&(f=f.concat(a))}else{a="";if(!this.JSC$17047_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Oj");this.JSC$17047_textDecoder_=new TextDecoder}for(u=
0;u<n;u++)a+=this.JSC$17047_textDecoder_.decode(K[u],{stream:d==4&&u==n-1});f=this.JSC$17047_parser_.parse(a)}K.splice(0,n);f&&this.dataHandler_(f)}catch(F){Gb(this,5);AE(this);break a}}else if(D.length>this.JSC$17047_pos_){u=D.slice(this.JSC$17047_pos_);this.JSC$17047_pos_=D.length;try{var R=this.JSC$17047_parser_.parse(u);R!=null&&this.dataHandler_&&this.dataHandler_(R)}catch(F){Gb(this,5);AE(this);break a}}d==4?(D.length!=0||this.hasStreamingResponseData_?Gb(this,2):Gb(this,4),AE(this)):Gb(this,
1)}}}catch(F){Gb(this,6),AE(this)}};var nPS=function(K){K=this.xhrReader_=K;var d=(0,_.Om)(this.onData_,this);K.dataHandler_=d;K=this.xhrReader_;d=(0,_.Om)(this.onStatusChange_,this);K.statusHandler_=d;this.JSC$17051_callbackMap_={};this.callbackOnceMap_={}};
_.V=nPS.prototype;_.V.on=function(K,d){var f=this.JSC$17051_callbackMap_[K];f||(f=[],this.JSC$17051_callbackMap_[K]=f);f.push(d);return this};
_.V.addListener=function(K,d){this.on(K,d);return this};
_.V.removeListener=function(K,d){var f=this.JSC$17051_callbackMap_[K];f&&_.Zn(f,d);(K=this.callbackOnceMap_[K])&&_.Zn(K,d);return this};
_.V.once=function(K,d){var f=this.callbackOnceMap_[K];f||(f=[],this.callbackOnceMap_[K]=f);f.push(d);return this};
_.V.onData_=function(K){var d=this.JSC$17051_callbackMap_.data;d&&iKS(K,d);(d=this.callbackOnceMap_.data)&&iKS(K,d);this.callbackOnceMap_.data=[]};
var iKS=function(K,d){for(var f={},H=0;H<K.length;f={message$jscomp$969:void 0},H++)f.message$jscomp$969=K[H],d.forEach(function(D){return function(S){try{S(D.message$jscomp$969)}catch(n){}}}(f))};
nPS.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:chP(this,"readable");break;case 5:case 6:case 4:case 7:case 3:chP(this,"error");break;case 8:chP(this,"close");break;case 2:chP(this,"end")}};
var chP=function(K,d){var f=K.JSC$17051_callbackMap_[d];f&&f.forEach(function(H){try{H()}catch(D){}});
(f=K.callbackOnceMap_[d])&&f.forEach(function(H){H()});
K.callbackOnceMap_[d]=[]};var uQi=function(){var K={format:"jspb"};K=K===void 0?{}:K;this.suppressCorsPreflight=K.suppressCorsPreflight||_.T2("suppressCorsPreflight",K)||!1;this.withCredentials=K.withCredentials||_.T2("withCredentials",K)||!1;this.streamInterceptors=K.streamInterceptors||[];this.unaryInterceptors=K.unaryInterceptors||[];this.workerScope=K.workerScope;this.chunkedServerStreaming=K.useFetchDownloadStreams||!1},Uai=function(K,d,f,H,D,S){S=S===void 0?{}:S;
var n=d.substring(0,d.length-D.name.length),u,a=(u=S)==null?void 0:u.signal;return aWw(function(R){return new Promise(function(F,z){if(a==null?0:a.aborted){var v=new _.Rt(1,"Aborted");v.cause=a.reason;z(v)}else{var g={},N=IW7(K,R,n);N.on("error",function(h){return void z(h)});
N.on("metadata",function(h){g=h});
N.on("data",function(h){var m=g;m=m===void 0?{}:m;F(new $dw(h,m))});
a&&a.addEventListener("abort",function(){N.cancel();var h=new _.Rt(1,"Aborted");h.cause=a.reason;z(h)})}})},K.unaryInterceptors).call(K,EAz(D,f,H)).then(function(R){return R.responseMessage})},Tb=function(K,d,f,H,D,S){S=S===void 0?{}:S;
return Uai(K,d,f,H,D,S)};
uQi.prototype.serverStreaming=function(K,d,f,H){var D=this,S=K.substring(0,K.length-H.name.length);return Rot(function(n){var u=n.methodDescriptor,a=n.getMetadata(),R=FdK(D,!1);a=zoS(D,a,R,S+u.getName());var F=Xpi(R,u.responseDeserializeFn,!0);n=u.requestSerializeFn(n.requestMessage);R.send(a,"POST",n);return F},this.streamInterceptors).call(this,EAz(H,d,f))};
var IW7=function(K,d,f){var H=d.methodDescriptor,D=d.getMetadata(),S=FdK(K,!0);K=zoS(K,D,S,f+H.getName());f=Xpi(S,H.responseDeserializeFn,!1);daE(f,D["X-Goog-Encode-Response-If-Executable"]==="base64");d=H.requestSerializeFn(d.requestMessage);S.send(K,"POST",d);return f},FdK=function(K,d){d=K.chunkedServerStreaming&&!d;
return K.workerScope||d?new _.zM(new hE({worker:K.workerScope,streamBinaryChunks:d})):new _.zM},zoS=function(K,d,f,H){d["Content-Type"]="application/json+protobuf";
d["X-User-Agent"]="grpc-web-javascript/0.1";var D=d.Authorization;if(D&&Bl7.has(D.split(" ")[0])||K.withCredentials)f.JSC$7805_withCredentials_=!0;if(K.suppressCorsPreflight)H=Daw(H,"$httpHeaders",d);else for(K=_.y(Object.keys(d)),D=K.next();!D.done;D=K.next())D=D.value,f.headers.set(D,d[D]);return H},Xpi=function(K,d,f){if(f){f=new yhP(K);
var H=new nPS(f)}return new oq({xhr:K,nodeReadableStream:H},d)},Rot=function(K,d){return d.reduce(function(f,H){return function(D){return H.intercept(D,f)}},K)},aWw=function(K,d){return d.reduce(function(f,H){return function(D){return H.intercept(D,f)}},K)};var vPc=function(K){this.client_=new uQi;this.hostname_=K==void 0?K:K.replace(/\/+$/,"")};
_.V=vPc.prototype;_.V.JSC$17070_depositGoogleCredential=function(K,d,f){return Tb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",K,d||{},lFc,f)};
_.V.deleteLink=function(K,d,f){return Tb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",K,d||{},bZZ,f)};
_.V.JSC$17070_finishOAuth=function(K,d,f){return Tb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",K,d||{},GGU,f)};
_.V.getLink=function(K,d,f){return Tb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",K,d||{},AJP,f)};
_.V.startLinkingSession=function(K,d,f){return Tb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",K,d||{},LeS,f)};var MCy=[0,Wxi,1,Tjz,[0,_.AI,[0,GCw,-1]],[0,AMU],[0,rM7,-1]];var Phc=function(){this.storage=new Map},OKE=function(K,d,f,H,D){if(!K.storage.has(d))return null;
K=_.y(K.storage.get(d));for(d=K.next();!d.done;d=K.next())if(d=d.value,!D||d.linkName===D)if(f&&d.scopes&&gPU(d.scopes,f)||H&&d.capabilities&&gPU(d.capabilities,H))return d;return null},NHz=function(K,d,f){if(!f)K.storage.delete(d);
else if(K.storage.has(d)){var H=K.storage.get(d).filter(function(D){return D.linkName!==f});
H.length>0?K.storage.set(d,H):K.storage.delete(d)}},gPU=function(K,d){d=_.y(d);
for(var f=d.next();!f.done;f=d.next())if(!K.has(f.value))return!1;return!0};var Y5K=function(){var K=_.mD("LINK_GAL_DOMAIN");this.alsDomain1p=_.mD("LINK_GAL_DOMAIN");this.alsDomain3p=K;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},tCi=function(K,d){K.apiKey=d;
return K};
Y5K.prototype.build=function(){var K={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Pj");K.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Qj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Rj");K.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(K.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)K.apiKey=
this.apiKey,K.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Sj");K.oauthToken=this.oauthToken;K.alsDomain=this.alsDomain3p}K.clientXd3=this.clientXd3;K.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(K.authUser=this.authUser);this.bucket!==void 0&&(K.bucket=this.bucket);this.completionUrl!==void 0&&(K.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(K.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(K.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(K.locale=this.locale);K.loggerType=this.loggerType;K.clientEnvironment=this.clientEnvironment;K.colorScheme=this.colorScheme;K.showCloseOption=this.showCloseOption;return K};var Uq=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Uq,_.Ti);var oPc=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(oPc,_.Ti);var $aw=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O($aw,_.Ti);var FS=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(FS,_.Ti);var EPz=function(K){return _.vY(K,1)};var hoy=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(hoy,_.Ti);var OAc=_.KM(hoy),RK=[1,2,3,4,5];var vKy=function(K){try{return OAc(K)}catch(d){return null}},bKK=function(){},Mcz=function(K,d){switch(_.i1(d,RK)){case 4:return(d=_.O3(d,$aw,4,RK))&&K.logStateTransition(_.vY(d,1)),!0;
case 5:return(d=_.O3(d,oPc,5,RK))&&K.logInternalEvent(_.vY(d,1)),!0}return!1},NR7=function(K){switch(K){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.nE(K)}};var znE=function(K,d){var f=this;this.validator=K;this.messageListener=d;this.dismissCallback=function(){maS(f,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17099_receiveMessage=function(H){H.type==="message"&&(H=H.event_,H!==null&&(new URL(f.iframe.src)).origin===H.origin&&f.validator(H.data,H.origin)&&!f.messageListener(H.data)&&(f.JSC$17099_resolveCb!==void 0&&f.JSC$17099_resolveCb(H.data),lWE(f)))}},gKE=function(K,d,f){K.uiHandler!==void 0&&maS(K,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(H,D){K.JSC$17099_resolveCb=H;K.JSC$17099_rejectCb=D;K.iframe=document.createElement("iframe");_.$G(K.iframe,d);K.uiHandler=f.displayContent(K.iframe,K.dismissCallback);_.zG(window,"message",K.JSC$17099_receiveMessage,!1,K)})},maS=function(K,d){K.JSC$17099_rejectCb!==void 0&&K.JSC$17099_rejectCb(d);
lWE(K)},lWE=function(K){K.uiHandler!==void 0&&K.uiHandler.hideContent();
_.nx(window,"message",K.JSC$17099_receiveMessage,!1,K);K.JSC$17099_resolveCb=void 0;K.JSC$17099_rejectCb=void 0;K.uiHandler=void 0;K.iframe=void 0};var WdP=function(K){if(K===2){var d;K=((d=window)==null?0:d.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return K},P37=function(K){K=WdP(K);
switch(K){case 0:return"light";case 1:return"dark";default:_.nE(K)}};var XA5=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Gzi=function(K,d){this.JSC$17111_linkingSession=K;this.noticeConfig=d;this.displayInfoMap=new Map;var f=new Map;if(_.V5(this.JSC$17111_linkingSession,qPl,7))for(K=_.eQ(this.JSC$17111_linkingSession,qPl,7),K=_.e4(K,rJy,1,_.p0()),K=_.y(K),d=K.next();!d.done;d=K.next())d=d.value,f.set(_.vY(d,1),_.WUu(_.eQ(d,_.KpN,3)));if(f.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){d=this.noticeConfig.enabledDataUsageNoticeUis;K=d.has(0)?f.get(1):void 0;d=d.has(1)?f.get(2):void 0;f=K!==void 0&&d!==void 0?f.get(3):void 0;var H=this.noticeConfig.nestedOrigins;var D=new hoy;var S=new Uq;D=_.Hg(D,2,RK,S);S=new hoy;var n=new Uq;S=_.Hg(S,3,RK,n);n=[];K!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:K,lastEvent:D,nestedOrigins:H}]),n.push({trustedUrl:K,lastEvent:D,nestedOrigins:H}));d!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:d,lastEvent:S,nestedOrigins:H}]),n.push({trustedUrl:d,lastEvent:S,nestedOrigins:H}));f!==void 0?this.displayInfoMap.set(3,[{trustedUrl:f,lastEvent:S,nestedOrigins:H}]):this.displayInfoMap.set(3,n)}};var Ahc=function(K){var d=new Phc;this.galService=K;this.galCache=d};
Ahc.prototype.getLink=function(K){var d=K.serviceId;var f=K.scopes;var H=K.capabilities;var D=K.linkName;var S=this,n;return _.c(function(u){if(H!==void 0&&f!==void 0)throw Error("Tj");n=OKE(S.galCache,d,f,H,D);return n!==null?u.return(n):u.return(S.galService.getLink({serviceId:d,sessionId:Math.floor(Math.random()*2147483648),scopes:f,capabilities:H,linkName:D}).then(function(a){a=EKz(a);var R=S.galCache;R.storage.has(d)?R.storage.get(d).push(a):R.storage.set(d,[a]);return a}))})};
Ahc.prototype.deleteLink=function(K,d,f){var H=this;return _.c(function(D){NHz(H.galCache,K,f);return D.return(H.galService.deleteLink({serviceId:K,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:d,linkName:f}).then(function(){return!0}))})};var rh5=function(K,d){var f=this;this.validator=K;this.msgHandler=d;this.closedPopupTimeout=this.JSC$17133_rejectCb=this.JSC$17133_resolveCb=this.popup=null;this.JSC$17133_receiveMessage=function(H){if(H!==null&&(H=H.event_,H.source===f.popup)){var D=H.data;if(f.validator(D,H.origin)){var S;(S=f.msgHandler)!=null&&S.call(f,D)||(f.JSC$17133_resolveCb!==null&&f.JSC$17133_resolveCb(D),TH7(f))}}}};
rh5.prototype.open=function(K,d){var f=this;this.popup!==null&&q57(this);return new Promise(function(H,D){f.JSC$17133_resolveCb=H;f.JSC$17133_rejectCb=D;f.popup=_.ha(window,K,"",d);_.zG(window,"message",f.JSC$17133_receiveMessage,!1,f);Qm5(f)})};
var q57=function(K,d){K.JSC$17133_rejectCb!==null&&K.JSC$17133_rejectCb(d);TH7(K)},TH7=function(K){K.closedPopupTimeout&&(K.closedPopupTimeout.cancel(),K.closedPopupTimeout=null);
K.popup&&K.popup.close();_.nx(window,"message",K.JSC$17133_receiveMessage,!1,K);K.popup=null;K.JSC$17133_resolveCb=null;K.JSC$17133_rejectCb=null},Qm5=function(K){K.closedPopupTimeout=_.GiB(100).then(function(){K.popup?K.popup.closed?jmi(K):Qm5(K):q57(K,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},jmi=function(K){K.closedPopupTimeout=_.GiB(100).then(function(){q57(K,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Ch7=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),xaP=function(K,d,f,H,D,S,n,u,a,R){var F=this;this.serviceId=K;this.sessionId=d;this.galService=f;this.oauthDetails=H;this.galLogger=D;this.interactionMode=S;this.redirectServiceUrl=n;this.consentLanguageKeys=u;this.dynamicUrlParameters=a;this.partnerConfigMinReadTimestamp=R;this.started=!1;this.JSC$17139_dataValidator=function(z,
v){var g=Ch7.has(v);g||F.redirectServiceUrl===void 0||(g=F.redirectServiceUrl===v);return g?z.sentinel==="gdi":!1}};
xaP.prototype.complete=function(){var K=this,d;return _.c(function(f){if(K.interactionMode!==1)return f.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));d=XS.getRedirectStateFromUri();return d===null?f.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):f.return(LdU(K,d))})};
xaP.prototype.start=function(){var K=this,d;return _.c(function(f){if(K.started)return f.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Xo(K.oauthDetails,1))return f.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(K.interactionMode===1)return XS.setLocation(_.Xo(K.oauthDetails,1)),f.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));K.started=!0;K.galLogger.logStateTransition(5);
d=XS.getPostMessagePopup(K.JSC$17139_dataValidator);return f.return(d.open(_.Xo(K.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(H){K.started=!1;var D=K.galLogger;if((H==null?void 0:H.error)!==void 0)throw D.logInternalEvent(59),Error("Uj");if((H==null?void 0:H.redirect_state)===void 0)throw D.logInternalEvent(131),Error("Vj");return LdU(K,H.redirect_state)}).catch(function(H){K.started=
!1;
return H.errorCode!==void 0?{statusCode:H.errorCode,statusMessage:H.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var LdU=function(K,d){return _.c(function(f){return f.return(BHi(K.galService,{serviceId:K.serviceId,sessionId:K.sessionId,dynamicUrlParameters:K.dynamicUrlParameters,redirectState:d,consentLanguageKeys:K.consentLanguageKeys,partnerConfigMinReadTimestamp:K.partnerConfigMinReadTimestamp}).then(function(H){var D={statusCode:1,link:EKz(H.getLink())};z8w(_.y5(H,3))!==void 0&&(D.callerState=z8w(_.y5(H,3)));K.galLogger.logInternalEvent(134);return D}))})},XS={getPostMessagePopup:function(K){return new rh5(K)},
getRedirectStateFromUri:function(){var K=_.QX(XS.getLocation()).fragment_;return(new _.sv(K)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(K){_.CM(window.location,_.Xa(K))},
createOAuthFlow:function(K,d){return new xaP(K.serviceId,K.sessionId,K.galService,d,K.galLogger,K.interactionMode,K.redirectServiceUrl,K.consentLanguageKeys,K.dynamicUrlParameters,K.partnerConfigMinReadTimestamp)}};var Jhw=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Jhw,_.Ti);var smU=_.KM(Jhw);var kzP=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),wp7=function(K,d,f,H,D,S,n,u,a){var R=this;this.serviceId=K;this.sessionId=d;this.galService=f;this.gsiWebFlowDetails=H;this.colorScheme=D;this.showCloseOption=S;this.galLogger=n;this.interactionMode=u;this.redirectServiceUrl=a;this.started=!1;this.JSC$17151_dataValidator=function(F,z){var v=kzP.has(z);v||R.redirectServiceUrl===
void 0||(v=R.redirectServiceUrl===z);return v?F.sentinel==="gal":!1};
this.logEventProcessor=function(F){return F.result?(F=vKy(F.result))?Mcz(R.galLogger,F):!1:!1}};
wp7.prototype.complete=function(){var K=this,d,f;return _.c(function(H){if(K.interactionMode!==1)return H.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));d=vf.getRedirectStateFromUri();if(d===void 0)return K.galLogger.JSC$17091_logErrorEvent(131),H.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return f=ZKK(K,d),H.return(eo7(K,f))}catch(D){return H.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
wp7.prototype.start=function(){var K=this,d;return _.c(function(f){if(K.started)return f.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Xo(K.gsiWebFlowDetails,1))return f.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(K.interactionMode===1)return vf.setLocation(ppt(K,_.Xo(K.gsiWebFlowDetails,1))),f.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
K.started=!0;d=vf.getPostMessagePopup(K.JSC$17151_dataValidator,K.logEventProcessor);return f.return(d.open(ppt(K,_.Xo(K.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(H){K.started=!1;if((H==null?void 0:H.result)===void 0)throw K.galLogger.JSC$17091_logErrorEvent(131),Error("Vj");H=ZKK(K,H.result);return eo7(K,H)}).catch(function(H){K.started=!1;
return H.errorCode!==void 0?{statusCode:H.errorCode,statusMessage:H.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var ppt=function(K,d){K=["result_channel",K.interactionMode===1?"2":"1","color_scheme",P37(K.colorScheme),"show_close_option",K.showCloseOption];return CLl(d,K)},eo7=function(K,d){if(d!==null&&_.V5(d,FS,2)){var f,H=d==null?void 0:(f=_.eQ(d,FS,2))==null?void 0:_.vY(f,2);
H&&K.galLogger.JSC$17091_logErrorEvent(NR7(H));return EPz(_.eQ(d,FS,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 K.galService.getLink({serviceId:K.serviceId,sessionId:K.sessionId,consistencyKey:_.Xo(d,1)}).then(function(D){D=EKz(D);K.galLogger.logInternalEvent(134);return{statusCode:1,link:D}})},ZKK=function(K,d){d=smU(d);
if(!_.V5(d,FS,2)&&_.Xo(d,1)==="")throw K.galLogger.JSC$17091_logErrorEvent(5),Error("Wj");return d},vf={getPostMessagePopup:function(K,d){return new rh5(K,d)},
getRedirectStateFromUri:function(){return _.jh(_.QX(vf.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(K){_.CM(window.location,_.Xa(K))},
createStreamlinedFlow:function(K,d){return new wp7(K.serviceId,K.sessionId,K.galService,d,K.colorScheme,K.showCloseOption,K.galLogger,K.interactionMode,K.redirectServiceUrl)}};var Lnl=function(){var K=_.zJS("GAL");this.storage=K?new _.v6(K):null};var rS=function(){};
_.O(rS,bKK);rS.prototype.logStateTransition=function(){};
rS.prototype.logInternalEvent=function(){};
rS.prototype.JSC$17091_logErrorEvent=function(){};var KRz=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(KRz,_.Ti);KRz.prototype.getCompletionUrl=function(){return _.Xo(this,15)};var qA=function(K,d,f,H,D,S){this.serviceId=K;this.environment=d;this.sessionId=f;this.colorSchemeSelected=H;this.colorThemeDisplayed=D;this.JSC$17164_transport=S;this.currentState=1};
_.O(qA,bKK);qA.prototype.logStateTransition=function(K){var d=dTU(this);d=_.py(d,3,this.currentState);d=_.py(d,1,K);this.currentState=K;K=dnt(1);this.dispatch(d,K)};
qA.prototype.logInternalEvent=function(K){K=dnt(K);this.dispatch(dTU(this),K)};
qA.prototype.JSC$17091_logErrorEvent=function(K){var d=dTU(this);d=_.py(d,1,10);K=dnt(K);this.dispatch(d,K)};
var dTU=function(K){var d=new KRz;d=_.py(d,1,K.currentState);d=_.aL(d,7,K.serviceId);var f,H;var D=((f=window)==null?0:(H=f.location)==null?0:H.href)?_.QX(window.location.href).JSC$8037_domain_:"NO_PACKAGE_NAME";f=_.aL(d,8,D);f=_.py(f,6,K.environment);f=_.aL(f,5,"100");f=_.py(f,11,K.colorSchemeSelected);return _.py(f,12,K.colorThemeDisplayed)};
qA.prototype.dispatch=function(K,d){d===void 0&&(d=new _.Zh);var f=d;K=K.serialize();f=_.aL(f,8,K);_.zE(f,12,this.sessionId);this.JSC$17164_transport.dispatch(d)};var fS7=function(K,d){this.loggerType=K;this.sessionIndex=d!=null?d:0},HtS;
fS7.prototype.create=function(K,d,f,H,D){switch(this.loggerType){case 0:return new rS;case 1:return HtS||(HtS=(new _.il(555,this.sessionIndex.toString())).build()),new qA(K,d,f,H,D,HtS);default:_.nE(this.loggerType,"unknown logger type")}};var M6=[6,2,3,1],wAl=new Map([[4,1],[1,6],[2,2],[3,3]]),lkw={statusCode:7,statusMessage:"Failed to create flow object"},C3w=function(K,d,f,H,D,S,n,u,a,R){this.serviceId=K;this.sessionId=d;this.config=f;this.galService=H;this.JSC$17171_linkingSession=D;this.googleScopes=S;this.callerState=n;this.consentLanguageKeys=u;this.dynamicUrlParameters=a;this.partnerConfigMinReadTimestamp=R;this.currentFlow=0;H=this.JSC$17171_linkingSession;D=new Set;_.V5(H,rLZ,1)&&D.add(1);_.V5(H,jGK,2)&&_.V5(H,qXt,6)&&D.add(2);
_.V5(H,QGK,3)&&_.V5(H,qXt,6)&&D.add(3);_.V5(H,TlP,4)&&D.add(6);this.supportedFlows=D;H=f.loggerType;D=f.clientEnvironment;a:{S=f.colorScheme;switch(S){case 0:S=1;break a;case 1:S=2;break a;case 2:S=3;break a;default:_.nE(S)}S=void 0}a:{n=f.colorScheme;n=WdP(n);switch(n){case 0:n=1;break a;case 1:n=2;break a;default:_.nE(n)}n=void 0}this.galLogger=(new fS7(H,f.authUser)).create(K,D,d,S,n)},Viy=function(K){return new Promise(function(d){var f,H,D,S,n,u,a,R,F,z;
return _.c(function(v){switch(v.nextAddress){case 1:f=Qcy(K.currentFlow,K.supportedFlows),H=!1,D=new Gzi(K.JSC$17171_linkingSession,K.config.dataUsageNoticeConfig);case 2:if(f===void 0){v.jumpTo(4);break}_.HF(v,5);var g=D,N=f,h=void 0;H?N===1&&(h=g.displayInfoMap.get(2)):N===2||N===3?h=g.displayInfoMap.get(1):N===1&&(h=g.displayInfoMap.get(3));S=h?h:[];n=K.consentLanguageKeys;u=_.y(S);a=u.next();case 7:if(a.done)return K.currentFlow=f,_.I(v,G7S(DTw(K,n)),11);R=a.value;return _.I(v,YX5(R,K.config.dataUsageNoticeConfig.uiAdapter,
K.config.colorScheme,K.galLogger),10);case 10:F=v.yieldResult;if(F.statusCode!==1)return BRl(K.serviceId),K.currentFlow=0,d(zR({statusCode:F.statusCode,statusMessage:F.statusMessage},K.callerState)),v.return();F.consentLanguageKeys!==void 0&&(n=F.consentLanguageKeys);a=u.next();v.jumpTo(7);break;case 11:z=v.yieldResult;if(z.statusCode!==10)return z.statusCode!==6&&(BRl(K.serviceId),K.currentFlow=0),z.statusCode!==1&&K.callerState!==void 0&&(z.callerState=K.callerState),d(z),v.return();_.Ts(v,6);break;
case 5:_.n7(v);case 6:f=Qcy(K.currentFlow,K.supportedFlows);H=!0;v.jumpTo(2);break;case 4:BRl(K.serviceId),K.currentFlow=0,d(zR({statusCode:12,statusMessage:"Linking failed"},K.callerState)),_.iQ(v)}})})},scc=function(K,d,f){K.currentFlow=d;
return ALz(DTw(K,f)).then(function(H){return H.statusCode===10&&K.config.interactionMode===1&&Qcy(K.currentFlow,K.supportedFlows)!==void 0?Viy(K):H})},DTw=function(K,d){return{flowParams:{serviceId:K.serviceId,
sessionId:K.sessionId,galService:K.galService,galLogger:K.galLogger,interactionMode:K.config.interactionMode,redirectServiceUrl:K.config.redirectServiceUrl,colorScheme:K.config.colorScheme,consentLanguageKeys:d,dynamicUrlParameters:K.dynamicUrlParameters,showCloseOption:K.config.showCloseOption,partnerConfigMinReadTimestamp:K.partnerConfigMinReadTimestamp},currentFlow:K.currentFlow,config:K.config,session:K.JSC$17171_linkingSession,googleScopes:K.googleScopes,callerState:K.callerState}};var SNU=function(K,d){this.config=K;this.galService=d.getService();this.JSC$17184_galRepository=d.JSC$17221_galRepository};
SNU.prototype.getLink=function(K,d){return SkE(this,K,d)};
var SkE=function(K,d,f){return K.JSC$17184_galRepository.getLink({serviceId:d,scopes:void 0,capabilities:void 0,linkName:f}).then(function(H){return{statusCode:1,link:H}}).catch(function(H){return{statusCode:ZAi(H.code),
statusMessage:H.message}})};
SNU.prototype.deleteLink=function(K,d){return this.JSC$17184_galRepository.deleteLink(K,this.config.accountLinkingEntryPoint,d).then(function(){return{statusCode:1}}).catch(function(f){return{statusCode:ZAi(f.code),
statusMessage:f.message}})};
SNU.prototype.startLinkingSession=function(K){var d=K.serviceId;var f=K.sessionId;return xH5({serviceId:d,sessionId:f!==void 0?f:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:K.loginHint,callerState:K.callerState,consentLanguageKeys:K.consentLanguageKeys,linkName:K.linkName,dynamicUrlParameters:K.dynamicUrlParameters,partnerConfigMinReadTimestamp:K.partnerConfigMinReadTimestamp})};var enP=null,fxi=new WeakMap;var yvt=function(){};
yvt.prototype.send=function(K,d){V7t(K);return this.makeRequest(K).then(function(f){if(d){var H=new d;if(f!=null){if(d==null)throw Error("Yj");new d;throw Error("$j");}f=H}return f})};var nBz=function(K,d,f,H,D){this.gapiUrl=K;this.gapiKey=d;this.gapiConfigUpdates=f||{};this.gapiAuthParams=H||{};this.defaultApiId=D};
_.O(nBz,yvt);var cvi=function(K){return Khw().then(function(d){d=d||window.gapi;itU(K,d);return DFU(d,{apiKey:K.gapiKey,clientId:K.gapiAuthParams.clientId,scope:K.gapiAuthParams.scope,hostedDomain:K.gapiAuthParams.hostedDomain,fetchBasicProfile:K.gapiAuthParams.fetchBasicProfile}).then(function(){return d})})};
nBz.prototype.makeRequest=function(K){var d=this;return cvi(this).then(function(f){return _.c(function(H){if(H.nextAddress==1)return d.gapiAuthParams.minAuthTokenTimeRemaining===void 0?H.jumpTo(2):_.I(H,Hot(f,d.gapiAuthParams.minAuthTokenTimeRemaining),2);itU(d,f);return H.return(uNy(f.client.request({root:d.gapiUrl,path:K.path,method:K.httpMethod,body:K.body,params:K.queryParams,headers:K.headers,authType:K.authType,apiId:K.apiId||d.defaultApiId})))})})};
var uNy=function(K){return new Promise(function(d,f){K.then(function(H){d(H.result===!1&&H.body!=null?{data:H.body}:H.result)},function(H){f(H.result===!1&&H.body!=null?{data:H.body}:H.result)})})},itU=function(K,d){for(var f in K.gapiConfigUpdates)if(K.gapiConfigUpdates.hasOwnProperty(f)){var H=d,D=f,S=K.gapiConfigUpdates[f],n=H.config.get(D);
S!==n&&H.config.update(D,S)}};
nBz.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var QG=function(K,d,f,H,D,S,n,u){this.apiKey=d;this.authUser=f;this.oauthToken=H;this.bucket=D;this.locale=n;this.galSdkEventHandler=u;if(H===void 0){if(d===void 0)throw Error("ak");this.requestService=new nBz(K,d,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":S===void 0||S===!1,"client/xd3":S===!0})}this.galServiceClient=new vPc(K)};
QG.prototype.deleteLink=function(K){var d=K.serviceId;var f=K.sessionId;var H=K.accountLinkingEntryPoint;var D=K.linkName;var S=this,n;return _.c(function(u){var a=(new gS).setHeader(jF(S,f));var R=aS5({serviceId:d,linkName:D});a=_.fM(a,2,R);n=_.Y2(a,3,H);return u.return(S.makeRequest(S.galServiceClient.deleteLink,n,[1,3],[2,4]))})};
var BHi=function(K,d){var f=d.serviceId;var H=d.sessionId;var D=d.dynamicUrlParameters;var S=d.redirectState;var n=d.consentLanguageKeys;var u=d.partnerConfigMinReadTimestamp;var a;return _.c(function(R){var F=(new NA).setHeader(jF(K,H,D));F=_.Qb(F,2,f);a=_.Qb(F,4,S);n!==void 0&&_.Qb(a,5,n);u!==void 0&&_.fM(a,6,u);return R.return(K.makeRequest(K.galServiceClient.JSC$17070_finishOAuth,a,[1,3],[2,4]))})};
QG.prototype.getLink=function(K){var d=K.serviceId;var f=K.sessionId;var H=K.scopes;var D=K.capabilities;var S=K.consistencyKey;var n=K.linkName;var u=this,a;return _.c(function(R){var F=(new YO).setHeader(jF(u,f)),z=aS5({serviceId:d,scopes:H,capabilities:D,linkName:n});a=_.fM(F,2,z);S!==void 0&&(F=Nli(),F=_.Qb(F,2,S),_.fM(a,3,F));return R.return(u.makeRequest(u.galServiceClient.getLink,a,[1,3],[2,4]))})};
var TRE=function(K,d){var f=d.serviceId;var H=d.sessionId;var D=d.googleScopes;var S=d.consistencyKey;var n;return _.c(function(u){var a=(new OD).setHeader(jF(K,H));a=_.Qb(a,2,f);var R=Array.from(D.values());a=_.N8(a,3,R,_.Gy);R=Nli();R=_.Qb(R,2,S);n=_.fM(a,4,R);return u.return(K.makeRequest(K.galServiceClient.JSC$17070_depositGoogleCredential,n,[1,3],[2,4]))})};
QG.prototype.startLinkingSession=function(K){var d=K.serviceId;var f=K.sessionId;var H=K.scopes;var D=K.capabilities;var S=K.loginHint;var n=K.supportedFlows;var u=K.completionUrl;var a=K.usePingPong;var R=K.twoWayLinking;var F=K.accountLinkingEntryPoint;var z=K.callerState;var v=K.consentLanguageKeys;var g=K.googleScopes;var N=K.dataUsageNoticeConfig;var h=K.linkName;var m=K.dynamicUrlParameters;var T=K.partnerConfigMinReadTimestamp;var r=this,J,L;return _.c(function(fB){if(D!==void 0&&H!==void 0)throw Error("Tj");
var w=(new tE).setHeader(jF(r,f,m));J=_.Qb(w,2,d);h!==void 0&&_.Qb(J,14,h);if(D!==void 0){w=J;var yO=Array.from(D.values());_.N8(w,5,yO,_.Gy)}else H!==void 0&&(w=J,yO=Array.from(H.values()),_.N8(w,3,yO,_.Gy));u!==void 0&&_.Qb(J,6,u);a!==void 0&&_.gL(J,15,a);n!==void 0&&(w=J,yO=Array.from(n.values()),_.N8(w,4,yO,_.Ml));if(R!==void 0){if(R&&(!g||g.size===0))throw Error("bk");_.gL(J,8,R)}F!==void 0&&_.Y2(J,9,F);S!==void 0&&_.Qb(J,13,S);z!==void 0&&(w=J,yO=(new TextEncoder).encode(z),_.Ys(w,12,_.r2(yO,
!1),_.Tk()));v!==void 0&&_.Qb(J,16,v);T!==void 0&&_.fM(J,18,T);if(N!==void 0&&N.size>0||g!==void 0&&g.size>0)L=new xdi,g!==void 0&&g.size>0&&(w=L,yO=Array.from(g.values()),_.N8(w,1,yO,_.Gy)),N!==void 0&&(N.has(0)&&_.yPO(L,2,_.Ml,1,_.gw),N.has(1)&&_.yPO(L,2,_.Ml,2,_.gw)),_.fM(J,17,L);return fB.return(r.makeRequest(r.galServiceClient.startLinkingSession,J,[1],[2]))})};
QG.prototype.getMetadata=function(){var K=this,d,f,H;return _.c(function(D){if(D.nextAddress==1)return d={},K.requestService?_.I(D,cvi(K.requestService),3):(d.Authorization="Bearer "+K.oauthToken,D.jumpTo(2));D.nextAddress!=2&&(f=D.yieldResult,d["X-Goog-Api-Key"]=K.apiKey,d["X-Goog-AuthUser"]=K.authUser!==void 0?K.authUser.toString():"0",(H=f.auth.getAuthHeaderValueForFirstParty([]))&&(d.Authorization=H));K.locale&&(d["accept-language"]=K.locale);return D.return(d)})};
QG.prototype.makeRequest=function(K,d,f,H){var D=this,S;return _.c(function(n){if(n.nextAddress==1)return _.I(n,D.getMetadata(),2);S=n.yieldResult;ISw(D,f);return n.return(K.bind(D.galServiceClient)(d,S).finally(function(){ISw(D,H)}))})};
var ISw=function(K,d){K.galSdkEventHandler!==void 0&&d.forEach(function(f){K.galSdkEventHandler.onEvent(f)})},jF=function(K,d,f){var H=new v2;
d=_.Ys(H,2,_.OZ(d),0);d=_.Y2(d,5,3);f=_.N8(d,8,f,_.Gy);K.bucket!==void 0&&_.Qb(f,1,K.bucket);return f},aS5=function(K){var d=K.serviceId;
var f=K.scopes;var H=K.capabilities;K=K.linkName;if(H!==void 0&&f!==void 0)throw Error("Tj");var D=new gAl;d=_.Qb(D,1,d);H!==void 0?(f=Array.from(H.values()),_.N8(d,5,f,_.Gy)):f!==void 0&&(f=Array.from(f.values()),_.N8(d,3,f,_.Gy));K!==void 0&&_.Qb(d,6,K);return d};var y3w=function(K){this.galService=new QG(K.alsDomain,K.apiKey,K.authUser,K.oauthToken,K.bucket,K.clientXd3,K.locale,K.galSdkEventHandler);this.JSC$17221_galRepository=new Ahc(this.galService)};
y3w.prototype.getService=function(){return this.galService};var UTZ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(UTZ,_.Ti);var RyP=function(K){var d=new UTZ;return _.py(d,1,K)};
UTZ.prototype.setErrorMessage=function(K){return _.aL(this,2,K)};var FRl=[0,_.rc,_.G9,_.rc];var Ca=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Ca,_.Ti);var zy7=[0,[1,2,3],_.T9,[0,hmt,lmS,-1],_.T9,[0,m7z,-1],_.bRY];var X9S=[0,_.mQ,1,_.rc,_.G9,-1,1,_.WF5,_.b1,_.rc,-1,zy7];var vBw=[0,_.rc,[0,_.WF5,_.b1,[0,_.G9]],_.l1,[0,_.rc,-1]];var D0=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(D0,_.Ti);var Mil=[0,_.G9,_.rc,-2,_.mQ,_.rc,_.mQ,_.rc,-2,1,_.l1];var PXZ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(PXZ,_.Ti);var gBw=[0,_.mQ];var Otl=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Otl,_.Ti);var NPw=[0,_.rc,vBw,gBw,Mil,X9S];var G0c=_.ew(Otl,NPw);var Ykt=[0,MCy];var jOP=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(jOP,_.Ti);var tit=[0,[1,3],qzi,_.rc,qzi];var fa=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(fa,_.Ti);var oBw=[0,_.rc];var $Ty=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O($Ty,_.Ti);var H2=function(K){return _.O3(K,UTZ,2,dS)},EBz=function(K){var d=new $Ty;
return _.Hg(d,2,dS,K)},dS=[1,
2];var hyP=[0,dS,_.T9,oBw,_.T9,FRl,_.AI,tit,1,_.rc,Ykt];var btt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(btt,_.Ti);var lSP=function(K){var d=new btt;return _.Hg(d,3,mTz,K)},mTz=[2,
3];var xO=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(xO,_.Ti);var WRU=function(K,d){return _.fM(K,2,d)},G1t=function(K,d){return _.fM(K,8,d)},Avc=function(K,d){return _.fM(K,3,d)};var TPS=[0,_.rc,hyP,NPw,_.A6v,[0,[5,6],[0,_.rc,-2],[0,_.mQ,_.rc,_.G9],[0,zy7],[0,_.G9,_.rc,-1,_.Gks,_.rc],_.T9,[0,[0,_.mQ],_.rc,-1],_.T9,[0,[3,4],_.rc,-1,_.T9,[0,[0,_.rc,_.l1]],_.T9,[0,[0,[0,[1,2],_.T9,[0],_.T9,[0]]]]]],_.A6v,-1,[0,mTz,_.rc,_.T9,oBw,_.T9,FRl,_.AI,tit,[0,MCy]]];var rvi=_.ew(xO,TPS),qkw=_.pw(TPS);var QY5=function(){_.gG.call(this)};
_.O(QY5,_.gG);QY5.prototype.init=function(){};
new QY5;var jY7=_.Am(["data-"]),CXi=_.Am(["aria-"]),xTw=_.Am(["aria-"]),La=function(K,d){this.isLatencyMeasurementExperiment=K===void 0?!1:K;this.enableDialogA11yFix=d===void 0?!1:d;this.JSC$17250_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.iJf(_.Hu.location.href)},TBU=function(K,d){K.onConsentPrimitiveShownCallback=d},LRw=function(K,d){return K.overriddenIframeLoadTimeout?K.overriddenIframeLoadTimeout:d!==void 0?d:5E3},qVK=function(K){if(K.prewarmPromise!==void 0)return K.prewarmPromise;
K.prewarmPromise=new Promise(function(d,f){B2(K,1);BPt(K,JvK(K,!0),sYS(K));K.iframe?K.prewarmChannel||k1P(K,K.iframe,d):f(Error("ck"))});
K.prewarmPromise.finally(function(){K.prewarmPromise=void 0});
return K.prewarmPromise};
La.prototype.showPrimitive=function(){var K=this;if(this.consentPromise!==void 0)return this.consentPromise;var d=Date.now();w9c(this,d);this.consentPromise=new Promise(function(f,H){B2(K,0,d);var D=K.isDarkTheme();K.isLatencyMeasurementExperiment||K.initialLoadingStrategy===1||K.initialLoadingStrategy===2||(K.loadingBar||(K.loadingBar=ubP(getComputedStyle(document.body).direction==="rtl",D),K.loadingBar.style.position="fixed",K.loadingBar.style.zIndex="15000"),document.body.appendChild(K.loadingBar));
BPt(K,JvK(K),sYS(K));K.iframe?K.channel||ZtK(K,K.iframe,f,H):(eyc(K),H(Error("ck")))});
this.consentPromise.finally(function(){K.consentPromise=void 0});
return this.consentPromise};
var ZtK=function(K,d,f,H){var D,S;_.c(function(n){switch(n.nextAddress){case 1:B2(K,3);D=!1;setTimeout(function(){if(!D){eyc(K);p9U(K);Kf5(K);var u=RyP(7).setErrorMessage("Timeout connecting to iframe");f(G1t(WRU(new xO,EBz(u)),lSP(u)))}},LRw(K,djw(K)));
if(!K.prewarmPromise){n.jumpTo(2);break}_.HF(n,3);return _.I(n,K.prewarmPromise,5);case 5:_.Ts(n,2);break;case 3:_.n7(n),S=RyP(4).setErrorMessage("Error while prewarming."),f(G1t(WRU(new xO,EBz(S)),lSP(S)));case 2:K.prewarmChannel&&K.prewarmChannel.send(qkw(Avc(new xO,K.consentPrimitiveRequest))),K.channel=_.jR({destination:K.JSC$17250_win,iframe:d,origin:flc(K),channelName:"cpw",onEstablished:function(){D=!0;eyc(K);K.isLatencyMeasurementExperiment||(K.JSC$17250_previousBodyOverflow=document.body.style.overflow,
K.JSC$17250_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,K.JSC$17250_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",K.enableDialogA11yFix&&window.addEventListener("blur",K.focusChangeListener));var u=K.iframe;u.style.bottom="0";u.style.position="fixed";u.style.right="0";u.style.border="none";u.style.left="0";u.style.top=
"0";u.style.zIndex="5000";u.style.pointerEvents="";u.style.visibility="";K.initialLoadingStrategy===2||K.initialLoadingStrategy===3?B2(K,4):B2(K,6);var a;(a=K.onConsentPrimitiveShownCallback)==null||a.call(K)},
onMessage:function(u){u=rvi(u.data);switch(_.vY(u,1)){case 1:p9U(K);var a=axc(_.eQ(u,_.o9,7));a&&(K.initialLoadingStrategy!==2&&K.initialLoadingStrategy!==3||B2(K,6,a),B2(K,5,a));if(a=axc(_.eQ(u,_.o9,6)))B2(K,7,a),B2(K,8);var R,F;((R=_.eQ(u,$Ty,2))==null?void 0:_.i1(R,dS))!==0&&((F=_.eQ(u,btt,8))==null?void 0:_.i1(F,mTz))!==0||H(Error("dk"));f(u);break;case 2:Kf5(K)}}}),_.iQ(n)}})},k1P=function(K,d,f){K.prewarmChannel=_.jR({destination:K.JSC$17250_win,
iframe:d,origin:flc(K),channelName:"pwcp",onEstablished:function(){B2(K,2);f()}})},flc=function(K){var d=_.nM(K.src).toString();
return d&&d.indexOf("://")<0&&d.indexOf("//")!==0?K.origin:_.iJf(d)},JvK=function(K,d){d=d===void 0?!1:d;
var f,H=new Map([["origin",K.origin],["hl",(f=HYU(K))!=null?f:null]]);d&&H.set("pw","1");d=_.y([["cpr",K.consentPrimitiveRequest.serialize()]]);for(f=d.next();!f.done;f=d.next()){var D=_.y(f.value);f=D.next().value;D=D.next().value;H.set(f,D)}K.isDarkTheme()&&H.set("color_scheme","dark");return _.K0(K.src,H)},eyc=function(K){K.isLatencyMeasurementExperiment||K.loadingBar&&document.body.removeChild(K.loadingBar)};
La.prototype.getSrc=function(){var K=_.JR(this.origin),d;var f=(d=_.eQ(this.consentPrimitiveRequest,PXZ,3))==null?void 0:_.Km(d,1);d="consent.google.com";f=f?"/u/"+encodeURIComponent(f.toString()):"";(K==null?0:K.endsWith("youtube.com"))?d="consent.youtube.com":(K=K==null?void 0:K.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(d="consent.google."+((K[1]?"co.":"")+encodeURIComponent(K[2])));return _.yL("https://"+d+"/signedin"+f+"/landing")};
var BPt=function(K,d,f){K.iframe||(K.iframe=document.createElement("iframe"),K.iframe.style.width="100%",K.iframe.style.height="100%",f!==112496729&&(K.iframe.style.colorScheme="auto"),K.isLatencyMeasurementExperiment&&(K.iframe.style.display="none"),_.$G(K.iframe,d),K.iframe.setAttribute("jsname","C5o1O"),Djw(K.iframe),document.body.appendChild(K.iframe))},Djw=function(K){K.style.bottom="-200vh";
K.style.position="fixed";K.style.right="-200vw";K.style.border="";K.style.left="";K.style.top="";K.style.zIndex="";K.style.pointerEvents="none";K.style.visibility="hidden"},p9U=function(K){K.iframe&&(K.isLatencyMeasurementExperiment||(K.JSC$17250_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=K.JSC$17250_previousHtmlOverscroll),K.JSC$17250_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=K.JSC$17250_previousBodyOverscroll),K.JSC$17250_previousBodyOverflow!==
void 0&&(document.body.style.overflow=K.JSC$17250_previousBodyOverflow),K.enableDialogA11yFix&&VdE(K,!1)),Djw(K.iframe))};
La.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(VdE(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var VdE=function(K,d){var f,H,D=(f=K.iframe)==null?void 0:(H=f.parentElement)==null?void 0:H.children;if(D)for(f=0;f<D.length;f++)H=D[f],H!==K.iframe&&(d?(H.hasAttribute("aria-hidden")&&_.r5([_.Zw(jY7)],H,"data-old-aria-hidden",H.getAttribute("aria-hidden")),_.r5([_.Zw(CXi)],H,"aria-hidden","true")):(H.removeAttribute("aria-hidden"),H.hasAttribute("data-old-aria-hidden")&&(_.r5([_.Zw(xTw)],H,"aria-hidden",H.getAttribute("data-old-aria-hidden")),H.removeAttribute("data-old-aria-hidden"))))},B2=function(K,
d,f){var H;
(H=K.latencyCallback)==null||H.call(K,{latencyType:d,timestampEpochMillis:f!=null?f:Date.now()})};var S8l=function(K,d,f){La.call(this,d,f===void 0?!1:f);this.consentPrimitiveRequest=K;K=HYU(this);if(!(0,_.h$5)(K))throw Error("H``"+String(K));this.src=this.getSrc();var H;this.initialLoadingStrategy=(H=_.eQ(this.consentPrimitiveRequest,D0,4))==null?void 0:_.vY(H,4)},ybZ;
_.O(S8l,La);var Apc=function(K){var d=_.M("enable_primitive_dialog_aria_hide_siblings");K={request:K,enableDialogA11yFix:d===void 0?!1:d};ybZ||(ybZ=new S8l(K.request,K.isLatencyMeasurementExperiment||_.vY(K.request,1)===2,K.enableDialogA11yFix));return ybZ},HYU=function(K){var d;
return(d=_.eQ(K.consentPrimitiveRequest,D0,4))==null?void 0:_.Xo(d,1)},w9c=function(K,d){if(!_.V5(K.consentPrimitiveRequest,Ca,5)){var f=K.consentPrimitiveRequest,H=new Ca;
_.fM(f,5,H)}var D;if((D=_.eQ(K.consentPrimitiveRequest,Ca,5))==null||_.aL5(_.Db(D,8))==null){var S;(S=_.eQ(K.consentPrimitiveRequest,Ca,5))!=null&&_.zE(S,8,d)}},sYS=function(K){var d;
return(d=_.eQ(K.consentPrimitiveRequest,Ca,5))==null?void 0:_.Km(d,1)};
S8l.prototype.isDarkTheme=function(){var K;return((K=_.eQ(this.consentPrimitiveRequest,D0,4))==null?void 0:_.vY(K,2))===2};
var djw=function(K){var d;return((d=_.eQ(K.consentPrimitiveRequest,D0,4))==null?void 0:_.Km(d,5))||void 0},Kf5=function(K){K.channel=void 0;
K.prewarmChannel=void 0;K.iframe&&(document.body.contains(K.iframe)&&document.body.removeChild(K.iframe),K.iframe=void 0);ybZ=void 0},QOU=function(K){return La.prototype.showPrimitive.call(K).then(function(d){return _.eQ(d,$Ty,2)})};for(var JE={},n6i=(JE[64]="ma",JE[73]="ogb",JE[89]="cr",JE[21]="test",JE[0]="unkn",JE[137]="con",JE[155]="hl",JE[78]="yt",JE[171]="lp",JE[172]="ap",JE[177]="amo",JE[178]="pqe",JE[74]="gg",JE[1]="gm",JE[140]="am",JE),iYK=_.y(Object.keys(n6i)),cbK=iYK.next();!cbK.done;cbK=iYK.next());var urc=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(urc,_.Ti);var alU=[0,[2,3,4],_.rc,b8y,qzi,_.bRY];var Ilc=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Ilc,_.Ti);var UjZ=_.ew(Ilc,[0,rM7,_.G9,_.rc,_.G9,_.rc,alU]);var RRw=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(RRw,_.Ti);RRw.prototype.getCommand=function(){return _.vY(this,1)};
var Ffz=function(){var K=new RRw;return _.Y2(K,1,0)};var zRw=_.pw([0,rM7,_.G9,[0,_.rc,_.G9,-1]]);var X$w=new _.Hk("s"),v6t=new _.Hk("t"),Mdc=new _.Hk("u"),Pcw=new _.Hk("v"),g6S=function(K,d,f){_.D5.call(this,X$w);this.mediaKey=K;this.photoUrl=d;this.photoSource=f};
_.O(g6S,_.D5);var OYc=function(){_.D5.call(this,v6t)};
_.O(OYc,_.D5);var N3z=function(K){K=K===void 0?!1:K;_.D5.call(this,Mdc);this.isError=K};
_.O(N3z,_.D5);var Y8w=function(){_.D5.call(this,Pcw)};
_.O(Y8w,_.D5);var tdc=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,hRc=function(K){if(typeof K=="string"){if(K.charAt(0)==".")return o6Z(K.substr(1));if(K.charAt(0)=="["){var d=tdc.exec(K);K=K.indexOf("=")==-1?void 0:d[3];return $jK(d[1],K)}return E6P(K)}return K},o6Z=function(K){return function(d){return d.getAttribute&&_.hD(d,K)}},$jK=function(K,d){return function(f){return d!==void 0?f.getAttribute&&f.getAttribute(K)==d:f.hasAttribute&&f.hasAttribute(K)}},E6P=function(K){K=K.toUpperCase();
return function(d){return(d=d.tagName)&&d.toUpperCase()==K}},bYw=function(){return!0};var sD=function(K,d){this.JSC$17278_key_=K;this.JSC$17278_value_=d},kO=function(K){throw Error("ek`"+K.JSC$17278_key_);
},mjE=function(K,d){return new TypeError("fk`"+d+"`"+K.JSC$17278_key_+"`"+K.JSC$17278_value_+"`"+typeof K.JSC$17278_value_)};
sD.prototype.string=function(K){if(arguments.length==0)var d=llw(this);else{var f;d=(f=Wft(this))!=null?f:K}return d};
var llw=function(K){var d=Wft(K);d===null&&kO(K);return d},Wft=function(K){var d=K.JSC$17278_value_;
if(d==null)return null;if(typeof d==="string")return d;throw mjE(K,"string");};
sD.prototype.bool=function(K){if(arguments.length==0){var d=this.optionalBool();d===null&&kO(this)}else{var f;d=(f=this.optionalBool())!=null?f:K}return d};
sD.prototype.optionalBool=function(){var K=this.JSC$17278_value_;if(K==null)return null;if(typeof K==="boolean")return K;if(typeof K==="string"){K=K.toLowerCase();if(K==="true"||K==="1")return!0;if(K==="false"||K==="0")return!1}throw mjE(this,"boolean");};
sD.prototype.number=function(K){if(arguments.length==0){var d=GDy(this);d===null&&kO(this)}else{var f;d=(f=GDy(this))!=null?f:K}return d};
var GDy=function(K){var d=K.JSC$17278_value_;if(d==null)return null;if(typeof d==="number")return d;if(typeof d==="string"){var f=Number(d);if(!isNaN(f)&&(f!==0||d.trim().length!==0))return f}throw mjE(K,"number");};
sD.prototype.toString=function(){return llw(this)};
sD.prototype.array=function(K){if(arguments.length==0){var d=Abt(this);d===null&&kO(this);return d}d=Abt(this);return d==null?K:d};
var Abt=function(K){var d=K.JSC$17278_value_;if(d==null)return null;Array.isArray(d)||(typeof d!=="string"?d=[d]:(d=d.trim(),d=d==""?[]:d.split(",").map(function(f){return f.trim()})));
return T3i(K,d)},T3i=function(K,d){var f=K.JSC$17278_key_+"[";
return Array.from(d,function(H,D){return new sD(f+D+"]",H)})};
sD.prototype.object=function(K){var d=this.JSC$17278_value_;if(d==null)return K===void 0&&kO(this),K;if(typeof d==="object"&&d.constructor===Object){K={};var f=this.JSC$17278_key_+".",H;for(H in d)K[H]=new sD(f+H,d[H]);return K}throw mjE(this,"object");};var wS=function(K){this.list_=rbl(K)},rbl=function(K){if(K instanceof wS)K=K.list_;
else if(K[0]instanceof wS){for(var d=new Set,f=0;f<K.length;f++)for(var H=_.y(K[f].list_),D=H.next();!D.done;D=H.next())d.add(D.value);K=d}return[].concat(_.Me(K))};
_.V=wS.prototype;_.V.each=function(K,d,f){((f===void 0?0:f)?Idw:_.QB)(this.list_,K,d);return this};
_.V.size=function(){return this.list_.length};
_.V.isEmpty=function(){return this.list_.length===0};
_.V.get=function(K){return this.list_[K]||null};
_.V.el=function(){return this.list_[0]||null};
_.V.map=function(K,d){return _.O7(this.list_,K,d)};
_.V.equals=function(K){return this===K||_.If(this.list_,K.list_)};
_.V.first=function(){return this.list_.length==0?null:new Z0(this.list_[0])};
_.V.find=function(K){var d=[];this.each(function(f){f=f.querySelectorAll(String(K));for(var H=0;H<f.length;H++)d.push(f[H])});
return new wS(d)};
_.V.parent=function(){var K=[];this.each(function(d){(d=d.parentElement||null)&&!_.Bu(K,d)&&K.push(d)});
return new wS(K)};
_.V.children=function(){var K=[];this.each(function(d){d=_.Pc(d);for(var f=0;f<d.length;f++)K.push(d[f])});
return new wS(K)};
_.V.filter=function(K){K=_.Jm(this.list_,hRc(K));return new wS(K)};
_.V.closest=function(K){var d=[],f=hRc(K),H=function(D){return _.JL(D)&&f(D)};
this.each(function(D){(D=_.bW(D,H,!0))&&!_.Bu(d,D)&&d.push(D)});
return new wS(d)};
_.V.next=function(K){return q8z(this,_.tpk,K)};
_.V.prev=function(K){return q8z(this,Qni,K)};
var q8z=function(K,d,f){var H=[];var D=f?hRc(f):bYw;K.each(function(S){(S=d(S))&&D(S)&&H.push(S)});
return new wS(H)};
wS.prototype.setClass=function(K){return this.each(function(d){_.Ev(d,K)})};
var Q9y=function(K,d){return K.each(function(f){_.CZ(f,d)})},j9z=function(K,d){return K.each(function(f){_.Q2(f,d)})};
wS.prototype.toggleClass=function(K,d){return d===!0?Q9y(this,K):d===!1?j9z(this,K):this.each(function(f){_.hD(f,K)?_.Q2(f,K):_.CZ(f,K)})};
wS.prototype.setText=function(K){return this.each(function(d){_.g9(d,K)})};
var Cci=function(K){K.each(function(d){d.removeAttribute("aria-hidden")})};
wS.prototype.getStyle=function(K){if(this.list_.length>0){var d=this.list_[0],f=d.style[_.c0(K)];return typeof f!=="undefined"?f:d.style[_.qYN(d,K)]||""}};
wS.prototype.getData=function(K){if(this.list_.length===0)return new sD(K,null);var d=vMt(this.list_[0],K);return new sD(K,d)};
wS.prototype.focus=function(K){try{K?this.el().focus(K):this.el().focus()}catch(d){}return this};
wS.prototype.click=function(){var K=_.oL(this.el());if(K.createEvent){var d=K.createEvent("MouseEvents");d.initMouseEvent("click",!0,!0,K.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(d)}else K=K.createEventObject(),K.clientX=0,K.clientY=0,K.screenX=0,K.screenY=0,K.altKey=!1,K.ctrlKey=!1,K.shiftKey=!1,K.button=0,this.el().fireEvent("onclick",K)};
var eF=function(K,d,f,H){function D(u,a,R){var F=a;a&&a.parentNode&&(F=a.cloneNode(!0));u(F,R)}
H=H===void 0?!1:H;if(K.list_.length==1){var S=K.list_[0],n=function(u){return d(u,S)};
f instanceof wS?f.each(n,void 0,H):Array.isArray(f)?(H?Idw:_.QB)(f,n):n(f);return K}return K.each(function(u){f instanceof wS?f.each(function(a){D(d,a,u)}):Array.isArray(f)?_.QB(f,function(a){D(d,a,u)}):D(d,f,u)})};
_.V=wS.prototype;_.V.append=function(K){return eF(this,function(d,f){d&&f.appendChild(d)},K)};
_.V.appendTo=function(K){(new wS([K])).append(this);return this};
_.V.remove=function(){return eF(this,function(K,d){_.FE(d)},null)};
_.V.empty=function(){return eF(this,function(K,d){_.X_(d)},null)};
_.V.after=function(K,d){return eF(this,function(f,H){f&&_.MO(f,H)},K,!(d===void 0||d))};
_.V.before=function(K){return eF(this,function(d,f){d&&_.vc(d,f)},K)};
_.V.replaceWith=function(K){return eF(this,function(d,f){d&&_.OBB(d,f)},K)};
_.V.toggle=function(K){return this.each(function(d){_.xl(d,K)})};
_.V.show=function(){return this.toggle(!0)};
_.V.hide=function(){return this.toggle(!1)};
_.V.trigger=function(K,d,f,H){return xjc(this,K,d,f,H)};
var xjc=function(K,d,f,H,D){return K.each(function(S){_.OQX(_.oL(S)).triggerWizEventInternal(S,d,f,H,D)})},Z0=function(K,d){K instanceof wS&&(d=K.list_,K=null);
this.list_=rbl(K!=null?[K]:d)};
_.Bd(Z0,wS);_.V=Z0.prototype;_.V.children=function(){return new wS(Array.prototype.slice.call(_.Pc(this.list_[0])))};
_.V.each=function(K,d){K.call(d,this.list_[0],0);return this};
_.V.size=function(){return 1};
_.V.el=function(){return this.list_[0]};
_.V.first=function(){return this};var pa=function(K,d){d=d===void 0?window:d;this.hostId=K;this.JSC$17289_win=d;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$17289_previousHtmlOverscroll=this.JSC$17289_previousBodyOverscroll=this.JSC$17289_previousBodyOverflow="";this.eventTarget=new _.iJ;this.JSC$17289_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
JbU=function(K){var d=LfU(LfU(LfU(new B3U(78),"po"),"hppp"),"hhc");
d.authUser=Number(_.mD("SESSION_INDEX","0"));d.colorScheme=K;return d};
pa.prototype.getOrigin=function(){return this.origin?this.origin:_.Cx(_.jU(_.Qh(new _.Q8,this.JSC$17289_win.location.protocol),this.JSC$17289_win.location.hostname),this.JSC$17289_win.location.port).toString()};
pa.prototype.getTargetOrigin=function(){return _.Cx(_.jU(_.Qh(new _.Q8,this.scheme),this.domain),this.port)};
pa.prototype.preloadIframe=function(K){var d=this;if(this.iframeLoadPromise===void 0){var f=document.createElement("iframe");this.iframe=f;v7S(f,K);this.iframeLoadPromise=new Promise(function(H,D){var S=!1,n=function(u){u.stopPropagation();f.removeEventListener("error",n);f.removeEventListener("securitypolicyviolation",n);D(Error("gk",{cause:u}))};
f.addEventListener("error",n);f.addEventListener("securitypolicyviolation",n);setTimeout(function(){S||D(Error("hk"))},3E4);
s9z(d,f,function(){S=!0;f.removeEventListener("error",n);f.removeEventListener("securitypolicyviolation",n);H()})});
kDl(this);K=this.getTargetOrigin().toString();f.setAttribute("allow","camera "+K+"; display-capture "+K);this.parentElement.appendChild(f)}return this.iframeLoadPromise};
var eRK=function(K,d){var f,H;return _.c(function(D){if(D.nextAddress==1)return f=ubP(getComputedStyle(K.parentElement).direction==="rtl"),K.parentElement.appendChild(f),document.activeElement instanceof HTMLElement&&(K.elementToFocusAfterClose=document.activeElement),_.HF(D,2),_.I(D,K.preloadIframe(d),4);if(D.nextAddress!=2){K.parentElement.removeChild(f);K.JSC$17289_previousBodyOverflow=K.parentElement.style.overflow;K.JSC$17289_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
K.JSC$17289_previousBodyOverscroll=K.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";K.parentElement.style.overscrollBehavior="contain";K.parentElement.style.overflow="hidden";var S=K.iframe;S.style.bottom="0";S.style.border="none";S.style.height="100%";S.style.left="0";S.style.position=K.iframePosition;S.style.right="0";S.style.top="0";S.style.width="100%";S.style.zIndex="2202";S.setAttribute("aria-hidden","false");S.setAttribute("aria-modal","true");
K.opened=!0;w$y(K);return _.Ts(D,0)}H=_.n7(D);K.parentElement.removeChild(f);Fhl(K.isDarkTheme());ZYz(K,!1);throw Error("ik",{cause:H});})},ZYz=function(K,d){d=d===void 0?!0:d;
K.iframe!==void 0&&(p$S(K),document.documentElement.style.overscrollBehavior=K.JSC$17289_previousHtmlOverscroll,K.parentElement.style.overscrollBehavior=K.JSC$17289_previousBodyOverscroll,K.parentElement.style.overflow=K.JSC$17289_previousBodyOverflow,K.elementToFocusAfterClose!==void 0&&(K.elementToFocusAfterClose.focus(),K.elementToFocusAfterClose=void 0),d?kDl(K):(K.parentElement.removeChild(K.iframe),K.iframe=void 0,K.iframeLoadPromise=void 0,K.mainChannel=void 0),K.opened=!1)},p$S=function(K){K.backgroundElementsAriaHiddenIsNull&&
(Cci(K.backgroundElementsAriaHiddenIsNull),K.backgroundElementsAriaHiddenIsNull=void 0);
K.backgroundElementsAriaHiddenIsFalse&&(K.backgroundElementsAriaHiddenIsFalse.each(function(d){d.setAttribute("aria-hidden","false")}),K.backgroundElementsAriaHiddenIsFalse=void 0);
K.backgroundElementsWithoutInert&&(K.backgroundElementsWithoutInert.each(function(d){d.removeAttribute("inert")}),K.backgroundElementsWithoutInert=void 0)},w$y=function(K){K.backgroundElementsAriaHiddenIsNull=(new Z0(K.iframe.parentElement)).children().filter(function(d){return d.getAttribute("aria-hidden")===null&&d!==K.iframe});
K.backgroundElementsAriaHiddenIsNull.each(function(d){d.setAttribute("aria-hidden","true")});
K.backgroundElementsAriaHiddenIsFalse=(new Z0(K.iframe.parentElement)).children().filter(function(d){return d.getAttribute("aria-hidden")==="false"&&d!==K.iframe});
K.backgroundElementsAriaHiddenIsFalse.each(function(d){d.setAttribute("aria-hidden","true")});
K.backgroundElementsWithoutInert=(new Z0(K.iframe.parentElement)).children().filter(function(d){return!d.hasAttribute("inert")&&d!==K.iframe});
K.backgroundElementsWithoutInert.each(function(d){d.setAttribute("inert","true")})},kDl=function(K){K=K.iframe;
K.style.bottom="-1000px";K.style.position="fixed";K.style.right="-1000px";K.style.border="";K.style.height="";K.style.left="";K.style.top="";K.style.width="";K.style.zIndex="";K.setAttribute("aria-hidden","true");K.setAttribute("aria-modal","false")};
pa.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var B3U=function(K,d){pa.call(this,n6i[K],d);this.options=[];this.style=""};
_.O(B3U,pa);var K4P=function(K){K.style="youtube";return K},dvl=function(K,d){K.eventTarget.listen(Mdc,d);
return K},ffS=function(K,d){K.eventTarget.listen(X$w,d);
return K},LfU=function(K,d){K.options.push(d);
return K},Hsi=function(K){var d=[K.getOrigin()];
K.ancestorOrigins&&d.push.apply(d,_.Me(K.ancestorOrigins));var f=new _.Q8(K.JSC$17289_win.location.href),H=K.startUrl?K.startUrl:K.options.includes("po")?"profile-picture/art":"profile-picture";d=VG(_.xk(K.getTargetOrigin(),H),"origin",d);K.startUrl&&_.Cm(d,"startPath",K.startUrl);K.authUser>0&&_.Cm(d,"authuser",K.authUser);K.pageId!==void 0&&_.Cm(d,"pageId",K.pageId);_.Cm(d,"hostId",K.hostId);K.jsMode!==void 0&&_.Cm(d,"jsmode",K.jsMode);K.options.length>0&&_.Cm(d,"opts",K.options.join(","));try{for(var D=
_.y(["utm_source","utm_medium","utm_campaign","utm_content"]),S=D.next();!S.done;S=D.next()){var n=S.value;_.jh(f,n)&&_.Cm(d,n,_.jh(f,n))}var u,a=(u=K.hl)!=null?u:_.jh(f,"hl");a!==void 0&&_.Cm(d,"hl",a)}catch(R){if(!(R instanceof URIError))throw R;}K.colorScheme&&_.Cm(d,"theme",K.colorScheme);K.style&&_.Cm(d,"style",K.style);return d},DvP=function(K,d){K.mainChannel=_.jR({destination:K.JSC$17289_win,
iframe:d,origin:K.getTargetOrigin().toString(),channelName:"ow",onMessage:function(f){f=UjZ(f.data);if(d===K.iframe)switch(_.vY(f,1)){case 1:K.eventTarget.dispatchEvent(new N3z);ZYz(K);break;case 2:K.eventTarget.dispatchEvent(new g6S(_.Xo(f,4),_.Xo(f,2),_.vY(f,5),_.eQ(f,urc,6)));break;case 0:var H;K.eventTarget.dispatchEvent(new OYc(_.Xo(f,2),(H=_.vY(f,3))!=null?H:0));break;case 3:K.eventTarget.dispatchEvent(new N3z(!0));ZYz(K,!1);break;case 4:K.eventTarget.dispatchEvent(new Y8w)}}})},s9z=function(K,
d,f){_.jR({destination:K.JSC$17289_win,
iframe:d,origin:_.Cx(_.jU(_.Qh(new _.Q8,K.scheme),K.domain),K.port).toString(),channelName:"owi",onMessage:function(H){d===K.iframe&&(f!==void 0&&f(),DvP(K,d),K.opened&&K.mainChannel.send(zRw(Ffz())),H.reply(),s9z(K,d))}})};
B3U.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?pa.prototype.preloadIframe.call(this,Hsi(this).toString()):this.iframeLoadPromise};
B3U.prototype.openPicker=function(K){var d=this;return _.c(function(f){if(f.nextAddress==1)return d.startUrl=K?K:d.options.includes("po")?"profile-picture/art":"profile-picture",_.I(f,eRK(d,Hsi(d).toString()),2);if(d.mainChannel){var H=d.mainChannel,D=H.send;var S=Ffz();S=_.aL(S,2,d.startUrl);D.call(H,zRw(S))}_.iQ(f)})};var VHU=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(VHU,_.Ti);_.V=VHU.prototype;_.V.getSize=function(){return aq(this,1)};
_.V.setSize=function(K){return _.Ni(this,1,K)};
_.V.getWidth=function(){return aq(this,12)};
_.V.getHeight=function(){return aq(this,13)};
_.V.setCenterCrop=function(K){return _.Dq(this,20,K)};
_.V.getHtml=function(){return _.R2(this,4)};
_.V.getToken=function(){return _.Um(this,24)};
_.V.setToken=function(K){return _.aL(this,24,K)};
_.V.getBackgroundColor=function(){return aq(this,87)};
_.V.hasBackgroundColor=function(){return _.Nl(_.Db(this,87))!=null};
_.V.getStoryboardLevel=function(){return aq(this,109)};var KX=function(K){this.JSC$17297_value_=void 0;this.childNodes_={};if(K){var d=_.nht(K);K=_.qf(K);for(var f=0;f<d.length;f++)this.set(d[f],K[f])}};
KX.prototype.set=function(K,d){Sa5(this,K,d,!1)};
KX.prototype.add=function(K,d){Sa5(this,K,d,!0)};
var Sa5=function(K,d,f,H){for(var D=0;D<d.length;D++){var S=d.charAt(D);K.childNodes_[S]||(K.childNodes_[S]=new KX);K=K.childNodes_[S]}if(H&&K.JSC$17297_value_!==void 0)throw Error("jk`"+d);K.JSC$17297_value_=f},yml=function(K,d){for(var f=0;f<d.length;f++)if(K=K.childNodes_[d.charAt(f)],!K)return;
return K};
KX.prototype.get=function(K){return(K=yml(this,K))?K.JSC$17297_value_:void 0};
KX.prototype.getValues=function(){var K=[];nbU(this,K);return K};
var nbU=function(K,d){K.JSC$17297_value_!==void 0&&d.push(K.JSC$17297_value_);for(var f in K.childNodes_)nbU(K.childNodes_[f],d)};
KX.prototype.getKeys=function(K){var d=[];if(K){for(var f=this,H=0;H<K.length;H++){var D=K.charAt(H);if(!f.childNodes_[D])return[];f=f.childNodes_[D]}isK(f,K,d)}else isK(this,"",d);return d};
var isK=function(K,d,f){K.JSC$17297_value_!==void 0&&f.push(d);for(var H in K.childNodes_)isK(K.childNodes_[H],d+H,f)};
_.V=KX.prototype;_.V.containsKey=function(K){return this.get(K)!==void 0};
_.V.containsValue=function(K){if(this.JSC$17297_value_===K)return!0;for(var d in this.childNodes_)if(this.childNodes_[d].containsValue(K))return!0;return!1};
_.V.clear=function(){this.childNodes_={};this.JSC$17297_value_=void 0};
_.V.remove=function(K){for(var d=this,f=[],H=0;H<K.length;H++){var D=K.charAt(H);if(!d.childNodes_[D])throw Error("kk`"+K);f.push([d,D]);d=d.childNodes_[D]}K=d.JSC$17297_value_;for(delete d.JSC$17297_value_;f.length>0;)if(H=f.pop(),d=H[0],H=H[1],d.childNodes_[H].isEmpty())delete d.childNodes_[H];else break;return K};
_.V.clone=function(){return new KX(this)};
_.V.getCount=function(){return Lxl(this.getValues())};
_.V.isEmpty=function(){return this.JSC$17297_value_===void 0&&_.PR.isEmpty(this.childNodes_)};var NUS=function(){if(!cmy){var K=cmy=new KX,d;for(d in umE)K.add(d,umE[d])}},cmy,dn=function(K,d){this.types=K;
this.setters=d},umE={a:new dn([3,
0],[function(K,d){_.Dq(K,21,d)},
function(K,d){_.Ni(K,56,d)}]),
al:new dn([3],[function(K,d){_.Dq(K,74,d)}]),
b:new dn([3,0],[function(K,d){_.Dq(K,23,d)},
function(K,d){_.Ni(K,38,d)}]),
ba:new dn([0],[function(K,d){_.Ni(K,85,d)}]),
bc:new dn([0],[function(K,d){_.Ni(K,87,d)}]),
br:new dn([0],[function(K,d){_.Ni(K,86,d)}]),
c:new dn([3,0],[function(K,d){_.Dq(K,2,d)},
function(K,d){_.Ni(K,39,d)}]),
cc:new dn([3],[function(K,d){_.Dq(K,51,d)}]),
ci:new dn([3],[function(K,d){_.Dq(K,32,d)}]),
ckm:new dn([3],[function(K,d){_.Dq(K,104,d)}]),
cp:new dn([0],[function(K,d){_.Ni(K,92,d)}]),
cr:new dn([3],[function(K,d){_.Dq(K,108,d)}]),
cv:new dn([0],[function(K,d){_.Ni(K,94,d)}]),
d:new dn([3],[function(K,d){_.Dq(K,3,d)}]),
dc:new dn([5],[function(K,d){_.aL(K,99,d)}]),
df:new dn([3],[function(K,d){_.Dq(K,80,d)}]),
dv:new dn([3],[function(K,d){_.Dq(K,90,d)}]),
e:new dn([0],[function(K,d){_.Ni(K,15,d)}]),
em:new dn([0],[function(K,d){_.Ni(K,107,d)}]),
f:new dn([4],[function(K,d){_.aL(K,16,d)}]),
fg:new dn([3],[function(K,d){_.Dq(K,34,d)}]),
fh:new dn([3],[function(K,d){_.Dq(K,30,d)}]),
fm:new dn([3],[function(K,d){_.Dq(K,84,d)}]),
fo:new dn([2],[function(K,d){_.KA(K,79,_.iU(d))}]),
ft:new dn([3],[function(K,d){_.Dq(K,50,d)}]),
fv:new dn([3],[function(K,d){_.Dq(K,31,d)}]),
g:new dn([3],[function(K,d){_.Dq(K,14,d)}]),
gce:new dn([4],[function(K,d){_.aL(K,112,d)}]),
gd:new dn([3],[function(K,d){_.Dq(K,83,d)}]),
gm:new dn([3],[function(K,d){_.Dq(K,105,d)}]),
h:new dn([3,0],[function(K,d){_.Dq(K,4,d)},
function(K,d){_.Ni(K,13,d)}]),
i:new dn([3],[function(K,d){_.Dq(K,22,d)}]),
ic:new dn([0],[function(K,d){_.Ni(K,71,d)}]),
id:new dn([3],[function(K,d){_.Dq(K,70,d)}]),
il:new dn([3],[function(K,d){_.Dq(K,96,d)}]),
ip:new dn([3],[function(K,d){_.Dq(K,54,d)}]),
iv:new dn([0],[function(K,d){_.zE(K,75,d)}]),
j:new dn([1],[function(K,d){d=d==null?d:FDy(d);_.KA(K,29,d)}]),
k:new dn([3,0],[function(K,d){_.Dq(K,17,d)},
function(K,d){_.Ni(K,42,d)}]),
l:new dn([0],[function(K,d){_.Ni(K,44,d)}]),
lf:new dn([3],[function(K,d){_.Dq(K,65,d)}]),
lo:new dn([3],[function(K,d){_.Dq(K,97,d)}]),
m:new dn([0],[function(K,d){_.Ni(K,63,d)}]),
md:new dn([3],[function(K,d){_.Dq(K,91,d)}]),
mm:new dn([4],[function(K,d){_.aL(K,81,d)}]),
mo:new dn([3],[function(K,d){_.Dq(K,73,d)}]),
mv:new dn([3],[function(K,d){_.Dq(K,66,d)}]),
n:new dn([3],[function(K,d){K.setCenterCrop(d)}]),
nc:new dn([3],[function(K,d){_.Dq(K,55,d)}]),
nd:new dn([3],[function(K,d){_.Dq(K,53,d)}]),
ng:new dn([3],[function(K,d){_.Dq(K,95,d)}]),
ngm:new dn([3],[function(K,d){_.Dq(K,106,d)}]),
no:new dn([3],[function(K,d){_.Dq(K,37,d)}]),
ns:new dn([3],[function(K,d){_.Dq(K,40,d)}]),
nt0:new dn([4],[function(K,d){_.aL(K,36,d)}]),
ntm:new dn([3],[function(K,d){_.Dq(K,114,d)}]),
nu:new dn([3],[function(K,d){_.Dq(K,46,d)}]),
nw:new dn([3],[function(K,d){_.Dq(K,48,d)}]),
o:new dn([1,3],[function(K,d){d=d==null?d:FDy(d);_.KA(K,7,d)},
function(K,d){_.Dq(K,27,d)}]),
p:new dn([3,0],[function(K,d){_.Dq(K,19,d)},
function(K,d){_.Ni(K,43,d)}]),
pa:new dn([3],[function(K,d){_.Dq(K,61,d)}]),
pc:new dn([0],[function(K,d){_.Ni(K,88,d)}]),
pd:new dn([3],[function(K,d){_.Dq(K,60,d)}]),
pf:new dn([3],[function(K,d){_.Dq(K,67,d)}]),
pg:new dn([3],[function(K,d){_.Dq(K,72,d)}]),
pi:new dn([2],[function(K,d){_.KA(K,76,_.iU(d))}]),
pp:new dn([3],[function(K,d){_.Dq(K,52,d)}]),
pt:new dn([4],[function(K,d){_.aL(K,111,d)}]),
q:new dn([4],[function(K,d){_.aL(K,28,d)}]),
r:new dn([3,0],[function(K,d){_.Dq(K,6,d)},
function(K,d){_.Ni(K,26,d)}]),
ra:new dn([3],[function(K,d){_.Dq(K,103,d)}]),
rf:new dn([3],[function(K,d){_.Dq(K,100,d)}]),
rg:new dn([3],[function(K,d){_.Dq(K,59,d)}]),
rh:new dn([3],[function(K,d){_.Dq(K,49,d)}]),
rj:new dn([3],[function(K,d){_.Dq(K,57,d)}]),
ro:new dn([2],[function(K,d){_.KA(K,78,_.iU(d))}]),
rp:new dn([3],[function(K,d){_.Dq(K,58,d)}]),
rw:new dn([3],[function(K,d){_.Dq(K,35,d)}]),
rwa:new dn([3],[function(K,d){_.Dq(K,64,d)}]),
rwu:new dn([3],[function(K,d){_.Dq(K,41,d)}]),
s:new dn([3,0],[function(K,d){_.Dq(K,33,d)},
function(K,d){K.setSize(d)}]),
sb:new dn([0],[function(K,d){_.Ni(K,110,d)}]),
sc:new dn([0],[function(K,d){_.Ni(K,89,d)}]),
sg:new dn([3],[function(K,d){_.Dq(K,82,d)}]),
sl:new dn([0],[function(K,d){_.Ni(K,109,d)}]),
sm:new dn([3],[function(K,d){_.Dq(K,93,d)}]),
t:new dn([4],[function(K,d){K.setToken(d)}]),
tm:new dn([3],[function(K,d){_.Dq(K,113,d)}]),
u:new dn([3],[function(K,d){_.Dq(K,18,d)}]),
ut:new dn([3],[function(K,d){_.Dq(K,45,d)}]),
v:new dn([0],[function(K,d){_.Ni(K,62,d)}]),
vb:new dn([0],[function(K,d){_.zE(K,68,d)}]),
vf:new dn([4],[function(K,d){_.aL(K,102,d)}]),
vl:new dn([0],[function(K,d){_.zE(K,69,d)}]),
vm:new dn([3],[function(K,d){_.Dq(K,98,d)}]),
w:new dn([0],[function(K,d){_.Ni(K,12,d)}]),
x:new dn([0],[function(K,d){_.Ni(K,9,d)}]),
y:new dn([0],[function(K,d){_.Ni(K,10,d)}]),
ya:new dn([2],[function(K,d){_.KA(K,77,_.iU(d))}]),
z:new dn([0],[function(K,d){_.Ni(K,11,d)}])};
NUS.prototype.parse=function(K){var d=new VHU,f=new VHU;if(K=="")K=!0;else{K=K.split("-");for(var H=!0,D=0;D<K.length;D++){var S=K[D];if(S.length==0)H=!1;else{var n=S,u=!1;var a=n;var R=n.charAt(0);R!=R.toLowerCase()&&(u=!0,a=n.charAt(0).toLowerCase()+n.substring(1));var F=cmy;for(R=1;R<=a.length;++R){var z=F,v=a.substring(0,R);if(v.length==0?z.isEmpty():!yml(z,v))break}a=R==1?null:(a=F.get(a.substring(0,R-1)))?{option:n.substring(0,R-1),value:n.substring(R-1),signed:u,attributes:a}:null;if(a){n=
[];u=[];R=!1;for(F=0;F<a.attributes.types.length;F++){z=a.attributes.types[F];var g=a.value;v=D;if(a.signed&&z==1)for(var N=g.length;N<12&&v<K.length-1;)g+="-"+K[v+1],N=g.length,++v;else if(z==2)for(;v<K.length-1&&K[v+1].match(/^[\d\.]/);)g+="-"+K[v+1],++v;N=a.attributes.setters[F];g=afE(this,z)(a.option,g,d,f,N);if(g===null){R=!0;D=v;break}else n.push(z),u.push(g)}if(!R)for(a=0;a<u.length;a++)F=n[a],g=u[a],IfS(this,F)(S,g);H=H&&R}else H=!1}}K=H}return new Uvw(d,f,K)};
var fX=function(K,d,f,H,D,S){D(f,d);K=K.charAt(0);S=S(K==K.toUpperCase());D(H,S)};
_.V=NUS.prototype;_.V.parseAndSetIntOption_=function(K,d,f,H,D){if(d=="")return 0;isFinite(d)&&(d=String(d));d=typeof d==="string"?/^\s*-?0x/i.test(d)?parseInt(d,16):parseInt(d,10):NaN;if(isNaN(d))return 1;fX(K,d,f,H,D,Number);return null};
_.V.logIntParseError_=function(){};
_.V.parseAndSetFloatOption_=function(K,d,f,H,D){if(d=="")return 0;var S=Number(d);d=S==0&&_.cu(d)?NaN:S;if(isNaN(d))return 1;fX(K,d,f,H,D,Number);return null};
_.V.logFloatParseError_=function(){};
_.V.parseAndSetBoolOption_=function(K,d,f,H,D){if(d!="")return 2;fX(K,!0,f,H,D,Boolean);return null};
_.V.logBoolParseError_=function(){};
_.V.parseAndSetStringOption_=function(K,d,f,H,D){if(d=="")return 0;fX(K,d,f,H,D,function(S){return S?"1":""});
return null};
_.V.logStringParseError_=function(){};
_.V.parseAndSetUint64Base64Option_=function(K,d,f,H,D){if(d=="")return 0;fX(K,d,f,H,D,function(S){return S?1:0});
return null};
var afE=function(K,d){switch(d){case 0:return(0,_.Om)(K.parseAndSetIntOption_,K);case 2:return(0,_.Om)(K.parseAndSetFloatOption_,K);case 3:return(0,_.Om)(K.parseAndSetBoolOption_,K);case 4:return(0,_.Om)(K.parseAndSetStringOption_,K);case 1:return(0,_.Om)(K.parseAndSetUint64Base64Option_,K);default:return function(){}}},IfS=function(K,d){switch(d){case 0:return(0,_.Om)(K.logIntParseError_,K);
case 2:return(0,_.Om)(K.logFloatParseError_,K);case 3:return(0,_.Om)(K.logBoolParseError_,K);case 4:case 1:return(0,_.Om)(K.logStringParseError_,K);default:return function(){}}},Uvw=function(K,d,f){this.valueProto_=K;
this.signatureFlagProto_=d;this.JSC$17309_valid_=f};
Uvw.prototype.isValid=function(){return this.JSC$17309_valid_};var M7E=function(K){this.JSC$17310_parser_=null;this.JSC$17310_components_=[];this.JSC$17310_parsedOptions_=null;RCS(this,K)},F4y=function(K){K.JSC$17310_parser_==null&&(K.JSC$17310_parser_=new NUS);
return K.JSC$17310_parser_},RCS=function(K,d){K.JSC$17310_parsedOptions_=d?typeof d==="string"?F4y(K).parse(d):d:F4y(K).parse("")},HM=function(K,d){return K==d?!1:!0};
_.V=M7E.prototype;_.V.JSC$17312_setCrop=function(K){K=K||void 0;var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,_.R2(f,2),_.R2(d.signatureFlagProto_,2))&&_.Dq(f,2,K);return this};
_.V.JSC$17312_setCircleCrop=function(K){K=K||void 0;var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,uv(f,51),uv(d.signatureFlagProto_,51))&&_.Dq(f,51,K);return this};
_.V.JSC$17312_setImageCrop=function(K){K=K||void 0;var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,uv(f,32),uv(d.signatureFlagProto_,32))&&_.Dq(f,32,K);return this};
_.V.JSC$17312_setHeight=function(K){var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,f.getHeight(),d.signatureFlagProto_.getHeight())&&_.Ni(f,13,K);return this};
_.V.setCenterCrop=function(K){K=K||void 0;var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,_.R2(f,20),_.R2(d.signatureFlagProto_,20))&&f.setCenterCrop(K);return this};
_.V.JSC$17312_setSmartCrop=function(K){K=K||void 0;var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,_.R2(f,19),_.R2(d.signatureFlagProto_,19))&&_.Dq(f,19,K);return this};
_.V.JSC$17312_setPad=function(K){K=K||void 0;var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,uv(f,60),uv(d.signatureFlagProto_,60))&&_.Dq(f,60,K);return this};
_.V.JSC$17312_setSmartCropUseFace=function(K){K=K||void 0;var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,_.R2(f,67),_.R2(d.signatureFlagProto_,67))&&_.Dq(f,67,K);return this};
_.V.JSC$17312_setSmartCropNoClip=function(K){K=K||void 0;var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,_.R2(f,52),_.R2(d.signatureFlagProto_,52))&&_.Dq(f,52,K);return this};
_.V.setSize=function(K){var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,f.getSize(),d.signatureFlagProto_.getSize())&&f.setSize(K);return this};
_.V.setToken=function(K){K=K||void 0;var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,f.getToken(),d.signatureFlagProto_.getToken())&&f.setToken(K);return this};
_.V.JSC$17312_setWidth=function(K){var d=this.JSC$17310_parsedOptions_,f=d.valueProto_;HM(K,f.getWidth(),d.signatureFlagProto_.getWidth())&&_.Ni(f,12,K);return this};
_.V.clearOptions=function(){RCS(this,"");return this};
_.V.build=function(){this.JSC$17310_components_.length=0;var K=this.JSC$17310_parsedOptions_,d=K.valueProto_;K=K.signatureFlagProto_;D6(this,"s",d.getSize(),K.getSize());D6(this,"w",d.getWidth(),K.getWidth());V0(this,"c",_.R2(d,2),_.R2(K,2));V0(this,"d",_.R2(d,3),_.R2(K,3));D6(this,"h",d.getHeight(),K.getHeight());V0(this,"s",uv(d,33),uv(K,33));V0(this,"h",d.getHtml(),K.getHtml());V0(this,"p",_.R2(d,19),_.R2(K,19));V0(this,"pp",_.R2(d,52),_.R2(K,52));V0(this,"pf",_.R2(d,67),_.R2(K,67));V0(this,"n",
_.R2(d,20),_.R2(K,20));D6(this,"r",aq(d,26),aq(K,26));V0(this,"r",_.R2(d,6),_.R2(K,6));V0(this,"o",uv(d,27),uv(K,27));var f=_.U3(d,7,_.HY);SL(this,"o",f,_.U3(K,7,_.HY));f=_.U3(d,29,_.HY);SL(this,"j",f,_.U3(K,29,_.HY));D6(this,"x",aq(d,9),aq(K,9));D6(this,"y",aq(d,10),aq(K,10));D6(this,"z",aq(d,11),aq(K,11));V0(this,"g",_.R2(d,14),_.R2(K,14));D6(this,"e",aq(d,15),aq(K,15));SL(this,"f",_.Um(d,16),_.Um(K,16));V0(this,"k",uv(d,17),uv(K,17));V0(this,"u",uv(d,18),!0);V0(this,"ut",uv(d,45),!0);V0(this,"i",
uv(d,22),!0);V0(this,"a",uv(d,21),uv(K,21));V0(this,"b",_.R2(d,23),_.R2(K,23));D6(this,"b",aq(d,38),aq(K,38));D6(this,"c",aq(d,39),aq(K,39),16,8);SL(this,"q",_.Um(d,28),_.Um(K,28));V0(this,"fh",uv(d,30),uv(K,30));V0(this,"fv",uv(d,31),uv(K,31));V0(this,"fg",_.R2(d,34),_.R2(K,34));V0(this,"ci",uv(d,32),uv(K,32));SL(this,"t",d.getToken(),K.getToken());SL(this,"nt0",_.Um(d,36),_.Um(K,36));V0(this,"rw",_.R2(d,35),_.R2(K,35));V0(this,"rwu",_.R2(d,41),_.R2(K,41));V0(this,"rwa",_.R2(d,64),_.R2(K,64));V0(this,
"nw",_.R2(d,48),_.R2(K,48));V0(this,"rh",_.R2(d,49),_.R2(K,49));V0(this,"no",_.R2(d,37),_.R2(K,37));V0(this,"ns",uv(d,40),uv(K,40));D6(this,"k",aq(d,42),aq(K,42));D6(this,"p",aq(d,43),aq(K,43));D6(this,"l",aq(d,44),aq(K,44));D6(this,"v",aq(d,62),aq(K,62));V0(this,"nu",uv(d,46),uv(K,46));V0(this,"ft",uv(d,50),uv(K,50));V0(this,"cc",uv(d,51),uv(K,51));V0(this,"nd",uv(d,53),uv(K,53));V0(this,"ip",uv(d,54),uv(K,54));V0(this,"nc",uv(d,55),uv(K,55));D6(this,"a",aq(d,56),aq(K,56));V0(this,"rj",uv(d,57),
uv(K,57));V0(this,"rp",uv(d,58),uv(K,58));V0(this,"rg",uv(d,59),uv(K,59));V0(this,"pd",uv(d,60),uv(K,60));V0(this,"pa",uv(d,61),uv(K,61));D6(this,"m",aq(d,63),aq(K,63));D6(this,"vb",Iq(d,68),Iq(K,68));D6(this,"vl",Iq(d,69),Iq(K,69));V0(this,"lf",uv(d,65),uv(K,65));V0(this,"mv",uv(d,66),uv(K,66));V0(this,"id",uv(d,70),uv(K,70));D6(this,"ic",aq(d,71),!0);V0(this,"pg",_.R2(d,72),_.R2(K,72));V0(this,"mo",uv(d,73),uv(K,73));V0(this,"al",uv(d,74),uv(K,74));D6(this,"iv",Iq(d,75),Iq(K,75));D6(this,"pi",UD(d,
76),UD(K,76));D6(this,"ya",UD(d,77),UD(K,77));D6(this,"ro",UD(d,78),UD(K,78));D6(this,"fo",UD(d,79),UD(K,79));V0(this,"df",uv(d,80),uv(K,80));SL(this,"mm",_.Um(d,81),_.Um(K,81));V0(this,"sg",uv(d,82),uv(K,82));V0(this,"gd",uv(d,83),uv(K,83));V0(this,"fm",uv(d,84),uv(K,84));D6(this,"ba",aq(d,85),aq(K,85));D6(this,"br",aq(d,86),aq(K,86));D6(this,"bc",d.getBackgroundColor(),K.getBackgroundColor(),16,8);D6(this,"pc",aq(d,88),aq(K,88),16,8);D6(this,"sc",aq(d,89),aq(K,89),16,8);V0(this,"dv",uv(d,90),uv(K,
90));V0(this,"md",uv(d,91),uv(K,91));D6(this,"cp",aq(d,92),aq(K,92));V0(this,"sm",uv(d,93),uv(K,93));D6(this,"cv",aq(d,94),aq(K,94));V0(this,"ng",uv(d,95),uv(K,95));V0(this,"il",uv(d,96),uv(K,96));V0(this,"lo",uv(d,97),uv(K,97));V0(this,"vm",uv(d,98),uv(K,98));SL(this,"dc",_.Um(d,99),_.Um(K,99));V0(this,"rf",uv(d,100),uv(K,100));SL(this,"vf",_.Um(d,102),_.Um(K,102));V0(this,"ra",_.R2(d,103),_.R2(K,103));V0(this,"ckm",uv(d,104),uv(K,104));V0(this,"gm",uv(d,105),uv(K,105));V0(this,"ngm",uv(d,106),uv(K,
106));D6(this,"em",aq(d,107),aq(K,107));V0(this,"cr",uv(d,108),uv(K,108));D6(this,"sl",d.getStoryboardLevel(),K.getStoryboardLevel());D6(this,"sb",aq(d,110),aq(K,110));SL(this,"pt",_.Um(d,111),_.Um(K,111));SL(this,"gce",_.Um(d,112),_.Um(K,112));V0(this,"tm",uv(d,113),uv(K,113));V0(this,"ntm",uv(d,114),uv(K,114));return this.JSC$17310_components_.join("-")};
var D6=function(K,d,f,H,D,S){if(f!=null){var n=D==void 0||D!=10&&D!=16?10:D;f=Number(f).toString(n);D=new WDz;D.append(n==16?"0x":"");n=D.append;S==void 0?S="":(S-=f.length,S=S<=0?"":(0,_.i4p)("0",S));n.call(D,S);D.append(f);yDE(K,d,D.toString(),!!Number(H))}},V0=function(K,d,f,H){f&&yDE(K,d,"",!!H)},SL=function(K,d,f,H){f&&yDE(K,d,String(f),!!Number(H))},yDE=function(K,d,f,H){H&&(d=d.charAt(0).toUpperCase()+d.substring(1));
K.JSC$17310_components_.push(d+f)};_.Bd(Pf,M7E);_.V=Pf.prototype;_.V.JSC$17312_setCrop=function(K){K&&y0(this);return Pf.superClass_.JSC$17312_setCrop.call(this,K)};
_.V.JSC$17312_setHeight=function(K){K=K==null||K<0?void 0:K;K!=null&&this.setSize();return Pf.superClass_.JSC$17312_setHeight.call(this,K)};
_.V.JSC$17312_setImageCrop=function(K){K&&y0(this);return Pf.superClass_.JSC$17312_setImageCrop.call(this,K)};
_.V.JSC$17312_setCircleCrop=function(K){K&&y0(this);return Pf.superClass_.JSC$17312_setCircleCrop.call(this,K)};
_.V.setSize=function(K){_.H4(K)&&(K=Math.max(K.width,K.height));K=K==null||K<0?void 0:K;K!=null&&(this.JSC$17312_setWidth(),this.JSC$17312_setHeight());return Pf.superClass_.setSize.call(this,K)};
_.V.JSC$17312_setSmartCrop=function(K){K&&y0(this);return Pf.superClass_.JSC$17312_setSmartCrop.call(this,K)};
_.V.JSC$17312_setSmartCropNoClip=function(K){K&&y0(this);return Pf.superClass_.JSC$17312_setSmartCropNoClip.call(this,K)};
_.V.JSC$17312_setSmartCropUseFace=function(K){K&&y0(this);return Pf.superClass_.JSC$17312_setSmartCropUseFace.call(this,K)};
_.V.setCenterCrop=function(K){K&&y0(this);return Pf.superClass_.setCenterCrop.call(this,K)};
_.V.JSC$17312_setPad=function(K){K&&y0(this);return Pf.superClass_.JSC$17312_setPad.call(this,K)};
_.V.JSC$17312_setWidth=function(K){K=K==null||K<0?void 0:K;K!=null&&this.setSize();return Pf.superClass_.JSC$17312_setWidth.call(this,K)};
var nkw=function(K){K.clearOptions();var d=K.JSC$17310_parsedOptions_,f=d.valueProto_;HM(!0,_.R2(f,3),_.R2(d.signatureFlagProto_,3))&&_.Dq(f,3,!0);return K},y0=function(K){K.setCenterCrop();
K.JSC$17312_setCircleCrop();K.JSC$17312_setCrop();K.JSC$17312_setImageCrop();K.JSC$17312_setPad();K.JSC$17312_setSmartCrop();K.JSC$17312_setSmartCropNoClip();K.JSC$17312_setSmartCropUseFace()};
Pf.prototype.build=function(){var K=this.JSC$17310_parsedOptions_.valueProto_;uv(K,18)||uv(K,45)?K.getSize()||this.setSize(0):(K=this.JSC$17310_parsedOptions_.valueProto_,K.getSize()||K.getWidth()||K.getHeight()||(this.setSize(),this.JSC$17312_setHeight(),this.JSC$17312_setWidth(),y0(this)));return Pf.superClass_.build.call(this)};var ixw=/^[^\/]*\/\//,nX=function(K,d){d=d===void 0?!1:d;this.original_=K;this.originalPrefix_="";(K=this.original_.match(ixw))&&K[0]?(this.originalPrefix_=K[0],K=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):K="http://"+this.original_;this.uri_=_.QX(K,!0);this.isFreeformUrl_=d;this.JSC$17316_valid_=!0;this.obfuscated_=!1},cDZ=function(K,d){K.JSC$17318_pathPrefix_=K.JSC$17318_pathPrefix_?K.JSC$17318_pathPrefix_+("/"+d):d},ia=function(K){if(K.JSC$17318_components_==
void 0){var d=K.uri_.getPath().substring(1);
K.JSC$17318_pathPrefix_=null;if(K.isFreeformUrl_){K.JSC$17318_components_=[];if((d.match(/=/g)||[]).length>1)return K.JSC$17316_valid_=!1,K.JSC$17318_components_;var f=d.indexOf("=");f!=-1?(K.JSC$17318_components_.push(d.substr(0,f)),K.JSC$17318_components_.push(d.substr(f+1))):K.JSC$17318_components_.push(d);return K.JSC$17318_components_}K.JSC$17318_components_=d.split("/");d=K.JSC$17318_components_.length;d>2&&K.JSC$17318_components_[0]=="u"&&(cDZ(K,K.JSC$17318_components_[0]+"/"+K.JSC$17318_components_[1]),
K.JSC$17318_components_.shift(),K.JSC$17318_components_.shift(),d-=2);if(d==0||d==4||d>7)return K.JSC$17316_valid_=!1,K.JSC$17318_components_;if(d==2)cDZ(K,K.JSC$17318_components_[0]);else if(K.JSC$17318_components_[0]=="image")cDZ(K,K.JSC$17318_components_[0]);else if(d==7||d==3)return K.JSC$17316_valid_=!1,K.JSC$17318_components_;if(d<=3){K.obfuscated_=!0;d==3&&(cDZ(K,K.JSC$17318_components_[1]),K.JSC$17318_components_.shift(),--d);--d;f=K.JSC$17318_components_[d];var H=f.indexOf("=");H!=-1&&(K.JSC$17318_components_[d]=
f.substr(0,H),K.JSC$17318_components_.push(f.substr(H+1)))}}return K.JSC$17318_components_};
nX.prototype.isValid=function(){ia(this);return this.JSC$17316_valid_};
nX.prototype.isObfuscated=function(){ia(this);return this.obfuscated_};
var uJw=function(K){ia(K);return K.isFreeformUrl_},cM=function(K){ia(K);
K.JSC$17318_pathPrefix_==void 0&&(K.JSC$17318_pathPrefix_=null);return K.JSC$17318_pathPrefix_},a5w=function(K){switch(ia(K).length){case 7:return!0;
case 6:return cM(K)==null;case 5:return!1;case 3:return!0;case 2:return cM(K)==null;case 1:return!1;default:return!1}},ua=function(K,d){if(uJw(K))a:{switch(d){case 7:d=0;
break;case 4:if(!a5w(K)){K=null;break a}d=1;break;default:K=null;break a}K=ia(K)[d]}else if(K.isObfuscated())a:{var f=cM(K)!=null?1:0;switch(d){case 6:d=f;break;case 4:if(!a5w(K)){K=null;break a}d=1+f;break;default:K=null;break a}K=ia(K)[d]}else a:{f=cM(K)!=null?1:0;switch(d){case 0:d=f;break;case 1:d=1+f;break;case 2:d=2+f;break;case 3:d=3+f;break;case 4:if(!a5w(K)){K=null;break a}d=4+f;break;case 5:d=a5w(K)?1:0;d=4+f+d;break;default:K=null;break a}K=ia(K)[d]}return K};
nX.prototype.getOptions=function(){this.options_==void 0&&(this.options_=ua(this,4));return this.options_};var Ooz=function(){};
Ooz.prototype.parse=function(K,d){return new Pp7(K,d===void 0?!1:d)};
var Pp7=function(K,d){nX.call(this,K,d===void 0?!1:d)};
_.O(Pp7,nX);_.Bd(go,Pf);var g7U;go.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
go.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var K=go.superClass_.build.call(this),d=[];cM(this.parsedImageUrl_)!=null&&d.push(cM(this.parsedImageUrl_));var f=uJw(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var H=this.parsedImageUrl_;H.obfuscatedData_==void 0&&(H.obfuscatedData_=ua(H,6));d.push(H.obfuscatedData_+(K?"="+K:""))}else if(f){H=d.push;var D=this.parsedImageUrl_;D.freeformUrlPath_===void 0&&(D.freeformUrlPath_=ua(D,
7));H.call(d,D.freeformUrlPath_);K&&d.push(K)}else H=d.push,D=this.parsedImageUrl_,D.obfuscatedGaiaId_==void 0&&(D.obfuscatedGaiaId_=ua(D,0)),H.call(d,D.obfuscatedGaiaId_),H=d.push,D=this.parsedImageUrl_,D.photoId_==void 0&&(D.photoId_=ua(D,1)),H.call(d,D.photoId_),H=d.push,D=this.parsedImageUrl_,D.imageVersion_==void 0&&(D.imageVersion_=ua(D,2)),H.call(d,D.imageVersion_),H=d.push,D=this.parsedImageUrl_,D.signature_==void 0&&(D.signature_=ua(D,3)),H.call(d,D.signature_),K&&d.push(K),K=d.push,H=this.parsedImageUrl_,
H.filename_==void 0&&(H.filename_=ua(H,5)),K.call(d,H.filename_);d=f?d.join("="):d.join("/");d=_.QX(this.protocolPrefix_+this.JSC$17324_domain_+"/"+d+(this.JSC$17324_query_?"?"+this.JSC$17324_query_:"")).toString();d.startsWith("%3a//")&&(d=d.replace("%3a//","://"));return d};var I5w=_.Am(["viewBox"]),UfK=_.Am(["width"]),Rwl=_.Am(["height"]),FoU=_.Am(["fill"]),zw5=_.Am(["id"]),Xky=_.Am(["x"]),vkZ=_.Am(["y"]);YNK.prototype.getLength=function(){return this.parsedData.length};
YNK.prototype.write=function(K){for(var d=0,f=this.parsedData.length;d<f;d++)K.put(this.parsedData[d],8)};
var mFw=function(K,d){var f=new YNK(d);K.dataList.push(f);f=K.errorCorrectLevel;var H=1,D=encodeURI(d).toString().replace(/%[0-9a-fA-F]{2}/g,"a");d=D.length+(D.length!=d?3:0);D=0;for(var S=a3.length;D<=S;D++){var n=0;switch(f){case 1:n=a3[D][0];break;case 0:n=a3[D][1];break;case 3:n=a3[D][2];break;case 2:n=a3[D][3]}if(d<=n)break;else H++}if(H>a3.length)throw Error("tk");K.typeNumber=H;K.dataCache=null};
t7t.prototype.isDark=function(K,d){if(K<0||this.moduleCount<=K||d<0||this.moduleCount<=d)throw Error("lk`"+K+"`"+d);return this.modules[K][d]};
for(var lxc=function(K,d,f){K.moduleCount=K.typeNumber*4+17;K.modules=Array(K.moduleCount);for(var H=0;H<K.moduleCount;H++){K.modules[H]=Array(K.moduleCount);for(var D=0;D<K.moduleCount;D++)K.modules[H][D]=null}MUl(K,0,0);MUl(K,K.moduleCount-7,0);MUl(K,0,K.moduleCount-7);H=PJ5[K.typeNumber-1];for(D=0;D<H.length;D++)for(var S=0;S<H.length;S++){var n=H[D],u=H[S];if(K.modules[n][u]==null)for(var a=-2;a<=2;a++)for(var R=-2;R<=2;R++)K.modules[n+a][u+R]=a==-2||a==2||R==-2||R==2||a==0&&R==0?!0:!1}for(H=
8;H<K.moduleCount-8;H++)K.modules[H][6]==null&&(K.modules[H][6]=H%2==0);for(H=8;H<K.moduleCount-8;H++)K.modules[6][H]==null&&(K.modules[6][H]=H%2==0);H=K.errorCorrectLevel<<3|f;for(D=H<<10;I3(D)-I3(1335)>=0;)D^=1335<<I3(D)-I3(1335);H=(H<<10|D)^21522;for(D=0;D<15;D++)S=!d&&(H>>D&1)==1,D<6?K.modules[D][8]=S:D<8?K.modules[D+1][8]=S:K.modules[K.moduleCount-15+D][8]=S;for(D=0;D<15;D++)S=!d&&(H>>D&1)==1,D<8?K.modules[8][K.moduleCount-D-1]=S:D<9?K.modules[8][15-D-1+1]=S:K.modules[8][15-D-1]=S;K.modules[K.moduleCount-
8][8]=!d;if(K.typeNumber>=7){H=K.typeNumber;for(D=H<<12;I3(D)-I3(7973)>=0;)D^=7973<<I3(D)-I3(7973);H=H<<12|D;for(D=0;D<18;D++)S=!d&&(H>>D&1)==1,K.modules[Math.floor(D/3)][D%3+K.moduleCount-8-3]=S;for(D=0;D<18;D++)S=!d&&(H>>D&1)==1,K.modules[D%3+K.moduleCount-8-3][Math.floor(D/3)]=S}if(K.dataCache==null){D=K.typeNumber;S=K.dataList;d=K.errorCorrectLevel;H=gk5(D,d);if(H==void 0)throw Error("sk`"+D+"`"+d);n=H.length/3;d=[];for(u=0;u<n;u++){a=H[u*3];R=H[u*3+1];for(var F=H[u*3+2],z=0;z<a;z++)d.push(new o7i(R,
F))}H=new $Fw;for(n=0;n<S.length;n++)u=S[n],H.put(u.mode,4),H.put(u.getLength(),Oxy(u.mode,D)),u.write(H);for(n=D=0;n<d.length;n++)D+=d[n].dataCount;if(H.length>D*8)throw Error("mk`"+H.length+"`"+D*8);for(H.length+4<=D*8&&H.put(0,4);H.length%8!=0;)Nv7(H,!1);for(;!(H.length>=D*8);){H.put(236,8);if(H.length>=D*8)break;H.put(17,8)}S=D=R=0;n=Array(d.length);u=Array(d.length);for(a=0;a<d.length;a++){z=d[a].dataCount;var v=d[a].totalCount-z;D=Math.max(D,z);S=Math.max(S,v);n[a]=Array(z);for(F=0;F<n[a].length;F++)n[a][F]=
255&H.buffer[F+R];R+=z;F=v;z=new Oq([1],0);for(v=0;v<F;v++)z=z.multiply(new Oq([1,YvE(v)],0));F=z;z=(new Oq(n[a],F.getLength()-1)).mod(F);u[a]=Array(F.getLength()-1);for(F=0;F<u[a].length;F++)v=F+z.getLength()-u[a].length,u[a][F]=v>=0?z.get(v):0}for(F=H=0;F<d.length;F++)H+=d[F].totalCount;H=Array(H);for(F=R=0;F<D;F++)for(a=0;a<d.length;a++)F<n[a].length&&(H[R++]=n[a][F]);for(F=0;F<S;F++)for(a=0;a<d.length;a++)F<u[a].length&&(H[R++]=u[a][F]);K.dataCache=H}d=K.dataCache;H=-1;D=K.moduleCount-1;S=7;n=
0;for(u=K.moduleCount-1;u>0;u-=2)for(u==6&&u--;;){for(a=0;a<2;a++)K.modules[D][u-a]==null&&(R=!1,n<d.length&&(R=(d[n]>>>S&1)==1),tUi(f,D,u-a)&&(R=!R),K.modules[D][u-a]=R,S--,S==-1&&(n++,S=7));D+=H;if(D<0||K.moduleCount<=D){D-=H;H=-H;break}}},MUl=function(K,d,f){for(var H=-1;H<=7;H++)if(!(d+H<=-1||K.moduleCount<=d+H))for(var D=-1;D<=7;D++)f+D<=-1||K.moduleCount<=f+D||(K.modules[d+H][f+D]=0<=H&&H<=6&&(D==0||D==6)||0<=D&&D<=6&&(H==0||H==6)||2<=H&&H<=4&&2<=D&&D<=4?!0:!1)},WhK=function(K){for(var d=0,
f=0,H=0;H<8;H++){lxc(K,!0,H);
var D=K;for(var S=D.moduleCount,n=0,u=0;u<S;u++)for(var a=0;a<S;a++){for(var R=0,F=D.isDark(u,a),z=-1;z<=1;z++)if(!(u+z<0||S<=u+z))for(var v=-1;v<=1;v++)a+v<0||S<=a+v||(z!=0||v!=0)&&F==D.isDark(u+z,a+v)&&R++;R>5&&(n+=3+R-5)}for(u=0;u<S-1;u++)for(a=0;a<S-1;a++)if(R=0,D.isDark(u,a)&&R++,D.isDark(u+1,a)&&R++,D.isDark(u,a+1)&&R++,D.isDark(u+1,a+1)&&R++,R==0||R==4)n+=3;for(u=0;u<S;u++)for(a=0;a<S-6;a++)D.isDark(u,a)&&!D.isDark(u,a+1)&&D.isDark(u,a+2)&&D.isDark(u,a+3)&&D.isDark(u,a+4)&&!D.isDark(u,a+5)&&
D.isDark(u,a+6)&&(n+=40);for(a=0;a<S;a++)for(u=0;u<S-6;u++)D.isDark(u,a)&&!D.isDark(u+1,a)&&D.isDark(u+2,a)&&D.isDark(u+3,a)&&D.isDark(u+4,a)&&!D.isDark(u+5,a)&&D.isDark(u+6,a)&&(n+=40);for(a=R=0;a<S;a++)for(u=0;u<S;u++)D.isDark(u,a)&&R++;D=n+=Math.abs(100*R/S/S-50)/5*10;if(H==0||d>D)d=D,f=H}return f},PJ5=[[],
[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]],I3=function(K){for(var d=0;K!=0;)d++,K>>>=1;return d},tUi=function(K,d,f){switch(K){case 0:return(d+f)%2==0;
case 1:return d%2==0;case 2:return f%3==0;case 3:return(d+f)%3==0;case 4:return(Math.floor(d/2)+Math.floor(f/3))%2==0;case 5:return d*f%2+d*f%3==0;case 6:return(d*f%2+d*f%3)%2==0;case 7:return(d*f%3+(d+f)%2)%2==0;default:throw Error("nk`"+K);}},Oxy=function(K,d){if(1<=d&&d<10)switch(K){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("ok`"+K);}else if(d<27)switch(K){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("ok`"+K);}else if(d<41)switch(K){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("ok`"+K);}else throw Error("pk`"+d);},Ui=function(K){if(K<1)throw Error("qk`"+K);
return okw[K]},YvE=function(K){for(;K<0;)K+=255;
for(;K>=256;)K-=255;return R3[K]},R3=Array(256),okw=Array(256),$fP=0;$fP<8;$fP++)R3[$fP]=1<<$fP;
for(var FO=8;FO<256;FO++)R3[FO]=R3[FO-4]^R3[FO-5]^R3[FO-6]^R3[FO-8];for(var EkE=0;EkE<255;EkE++)okw[R3[EkE]]=EkE;Oq.prototype.get=function(K){return this.num[K]};
Oq.prototype.getLength=function(){return this.num.length};
Oq.prototype.multiply=function(K){for(var d=Array(this.getLength()+K.getLength()-1),f=0;f<this.getLength();f++)for(var H=0;H<K.getLength();H++)d[f+H]^=YvE(Ui(this.get(f))+Ui(K.get(H)));return new Oq(d,0)};
Oq.prototype.mod=function(K){if(this.getLength()-K.getLength()<0)return this;for(var d=Ui(this.get(0))-Ui(K.get(0)),f=Array(this.getLength()),H=0;H<this.getLength();H++)f[H]=this.get(H);for(H=0;H<K.getLength();H++)f[H]^=YvE(Ui(K.get(H))+d);return(new Oq(f,0)).mod(K)};
var hwZ=[[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]],gk5=function(K,d){switch(d){case 1:return hwZ[(K-1)*4];case 0:return hwZ[(K-1)*4+1];case 3:return hwZ[(K-1)*4+2];case 2:return hwZ[(K-1)*4+3]}};
$Fw.prototype.get=function(K){return(this.buffer[Math.floor(K/8)]>>>7-K%8&1)==1};
$Fw.prototype.put=function(K,d){for(var f=0;f<d;f++)Nv7(this,(K>>>d-f-1&1)==1)};
var Nv7=function(K,d){var f=Math.floor(K.length/8);K.buffer.length<=f&&K.buffer.push(0);d&&(K.buffer[f]|=128>>>K.length%8);K.length++},a3=[[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]],boi=function(){var K=function(d,f){this.JSC$17344__el=d;this.JSC$17344__htOption=f};
K.prototype.draw=function(d){function f(F,z){F=document.createElementNS("http://www.w3.org/2000/svg",F);for(var v in z)z.hasOwnProperty(v)&&(v==="href"?_.oGZ(F,z[v]):_.r5([_.Zw(I5w),_.Zw(UfK),_.Zw(Rwl),_.Zw(FoU),_.Zw(zw5),_.Zw(Xky),_.Zw(vkZ)],F,v,z[v]));return F}
var H=this.JSC$17344__htOption,D=this.JSC$17344__el,S=d.moduleCount;this.clear();var n=f("svg",{viewBox:"0 0 "+String(S)+" "+String(S),width:"100%",height:"100%",fill:H.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});D.appendChild(n);n.appendChild(f("rect",{fill:H.colorLight,width:"100%",height:"100%"}));n.appendChild(f("rect",{fill:H.colorDark,width:"1",height:"1",id:"template"}));for(var u=0;u<S;u++)for(var a=0;a<S;a++)if(d.isDark(u,a)){var R=f("use",{x:String(u),y:String(a),href:"#template"});
n.appendChild(R)}};
K.prototype.clear=function(){for(;this.JSC$17344__el.hasChildNodes();)this.JSC$17344__el.removeChild(this.JSC$17344__el.lastChild)};
return K}(),hd7=document.documentElement.tagName.toLowerCase()==="svg"?boi:typeof CanvasRenderingContext2D!="undefined"?function(){var K=function(d,f){this._bIsPainted=!1;
E7z();this.JSC$17344__htOption=f;this._elCanvas=document.createElement("canvas");this._elCanvas.width=f.width;this._elCanvas.height=f.height;d.appendChild(this._elCanvas);this.JSC$17344__el=d;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$17344__el.appendChild(this._elImage);this._bSupportDataURI=null};
K.prototype._onMakeImage=function(){var d=this._elCanvas.toDataURL("image/png");this._elImage.src=d;this._elImage.style.display="block";this._elCanvas.style.display="none"};
K.prototype._safeSetDataURI=function(d,f){var H=this;H._fFail=f;H._fSuccess=d;H._bSupportDataURI===null?(d=_.RQ("IMG"),f=function(){H._bSupportDataURI=!1;H._fFail&&H._fFail.call(H)},d.onabort=f,d.onerror=f,d.onload=function(){H._bSupportDataURI=!0;
H._fSuccess&&H._fSuccess.call(H)},d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):H._bSupportDataURI===!0&&H._fSuccess?H._fSuccess.call(H):H._bSupportDataURI===!1&&H._fFail&&H._fFail.call(H)};
K.prototype.draw=function(d){var f=this._oContext,H=this.JSC$17344__htOption,D=d.moduleCount,S=H.width/D,n=H.height/D,u=Math.round(S),a=Math.round(n);this._elImage.style.display="none";this.clear();for(var R=0;R<D;R++)for(var F=0;F<D;F++){var z=d.isDark(R,F),v=F*S,g=R*n;f.strokeStyle=z?H.colorDark:H.colorLight;f.lineWidth=1;f.fillStyle=z?H.colorDark:H.colorLight;f.fillRect(v,g,S,n);f.strokeRect(Math.floor(v)+.5,Math.floor(g)+.5,u,a);f.strokeRect(Math.ceil(v)-.5,Math.ceil(g)-.5,u,a)}this._bIsPainted=
!0};
K.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
K.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
K.prototype.round=function(d){return d?Math.floor(d*1E3)/1E3:d};
return K}():function(){var K=function(d,f){this.JSC$17344__el=d;
this.JSC$17344__htOption=f};
K.prototype.draw=function(d){for(var f=this.JSC$17344__htOption,H=this.JSC$17344__el,D=d.moduleCount,S=Math.floor(f.width/D),n=Math.floor(f.height/D),u=['<table style="border:0;border-collapse:collapse;">'],a=0;a<D;a++){u.push("<tr>");for(var R=0;R<D;R++)u.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+S+"px;height:"+n+"px;background-color:"+(d.isDark(a,R)?f.colorDark:f.colorLight)+';"></td>');u.push("</tr>")}u.push("</table>");d=u.join("");d=_.phB(_.dJt,d);_.TY(H,d);
d=H.childNodes[0];D=(f.width-d.offsetWidth)/2;S=(f.height-d.offsetHeight)/2;D>0&&S>0&&(d.style.margin=S+"px "+D+"px")};
K.prototype.clear=function(){this.JSC$17344__el.textContent=""};
return K}();
GEw.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17347__android||this.JSC$17347__android>=3)&&this._oDrawing.makeImage()};
GEw.prototype.clear=function(){this._oDrawing.clear()};
_.Hu.QRCode=GEw;var bxt={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var zQ=function(){};
zQ.prototype.stringify=function(K){return _.Hu.JSON.stringify(K,void 0)};
zQ.prototype.parse=function(K){return _.Hu.JSON.parse(K,void 0)};var mft=function(){_.D5.call(this,"z")};
_.Bd(mft,_.D5);var l5S=function(){_.D5.call(this,"y")};
_.Bd(l5S,_.D5);var Woi=null,GME=function(){return Woi=Woi||new _.iJ},ADz=function(K){_.D5.call(this,"serverreachability",K)};
_.Bd(ADz,_.D5);var XO=function(K){var d=GME();d.dispatchEvent(new ADz(d,K))},TvU=function(K){_.D5.call(this,"statevent",K)};
_.Bd(TvU,_.D5);var vM=function(K){var d=GME();d.dispatchEvent(new TvU(d,K))},rDK=function(K,d,f,H){_.D5.call(this,"timingevent",K);
this.size=d;this.rtt=f;this.retries=H};
_.Bd(rDK,_.D5);var qvz=function(K,d,f){var H=GME();H.dispatchEvent(new rDK(H,K,d,f))},MU=function(K,d){if(typeof K!=="function")throw Error("uk");
return _.Hu.setTimeout(function(){K()},d)};var PM=function(){this.redactEnabled_=!0};
PM.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Qty=function(K,d,f,H,D,S){K.info(function(){if(K.redactEnabled_)if(S){var n="";for(var u=S.split("&"),a=0;a<u.length;a++){var R=u[a].split("=");if(R.length>1){var F=R[0];R=R[1];var z=F.split("_");n=z.length>=2&&z[1]=="type"?n+(F+"="+R+"&"):n+(F+"=redacted&")}}}else n=null;else n=S;return"XMLHTTP REQ ("+H+") [attempt "+D+"]: "+d+"\n"+f+"\n"+n})},jtl=function(K,d,f,H,D,S,n){K.info(function(){return"XMLHTTP RESP ("+H+") [ attempt "+D+"]: "+d+"\n"+f+"\n"+S+" "+n})},gn=function(K,d,f,H){K.info(function(){return"XMLHTTP TEXT ("+
d+"): "+CJP(K,f)+(H?" "+H:"")})},xft=function(K,d){K.info(function(){return"TIMEOUT: "+d})};
PM.prototype.debug=function(){};
PM.prototype.info=function(){};
PM.prototype.warning=function(){};
var CJP=function(K,d){if(!K.redactEnabled_)return d;if(!d)return null;try{var f=JSON.parse(d);if(f)for(var H=0;H<f.length;H++)if(Array.isArray(f[H])){var D=f[H];if(!(D.length<2)){var S=D[1];if(Array.isArray(S)&&!(S.length<1)){var n=S[0];if(n!="noop"&&n!="stop"&&n!="close")for(var u=1;u<S.length;u++)S[u]=""}}}return(0,_.FJ)(f)}catch(a){return K.debug("Exception parsing expected JS array - probably was not JS"),d}};var Oi=function(K,d,f,H,D){this.JSC$17369_channel_=K;this.JSC$17369_channelDebug_=d;this.sid_=f;this.JSC$17369_rid_=H;this.JSC$17369_retryId_=D||1;this.JSC$17369_eventHandler_=new _.Zt(this);this.timeout_=45E3;this.JSC$17369_extraHeaders_=null;this.JSC$17369_successful_=!1;this.JSC$17369_postData_=this.JSC$17369_requestUri_=this.JSC$17369_baseUri_=this.JSC$17369_type_=this.JSC$17369_requestStartTime_=this.JSC$17369_watchDogTimeoutTime_=this.JSC$17369_watchDogTimerId_=null;this.JSC$17369_pendingMessages_=
[];this.JSC$17369_xmlHttp_=null;this.JSC$17369_xmlHttpChunkStart_=0;this.JSC$17369_lastError_=this.JSC$17369_verb_=null;this.JSC$17369_lastStatusCode_=-1;this.JSC$17369_cancelled_=!1;this.JSC$17369_readyStateChangeThrottleMs_=0;this.JSC$17369_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Lot},Lot=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},BvE=function(K,d){switch(K){case 0:return"Non-200 return code ("+d+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},JDS={},stU={};
Oi.prototype.setTimeout=function(K){this.timeout_=K};
var wkE=function(K,d,f){K.JSC$17369_type_=1;K.JSC$17369_baseUri_=_.wv(d.clone());K.JSC$17369_postData_=f;K.decodeChunks_=!0;kM5(K,null)},kM5=function(K,d){K.JSC$17369_requestStartTime_=Date.now();
Zxc(K);K.JSC$17369_requestUri_=K.JSC$17369_baseUri_.clone();VG(K.JSC$17369_requestUri_,"t",K.JSC$17369_retryId_);K.JSC$17369_xmlHttpChunkStart_=0;var f=K.JSC$17369_channel_.JSC$17388_supportsCrossDomainXhrs_;K.fetchResponseState_=new Lot;K.JSC$17369_xmlHttp_=ewE(K.JSC$17369_channel_,f?d:null,!K.JSC$17369_postData_);K.JSC$17369_readyStateChangeThrottleMs_>0&&(K.JSC$17369_readyStateChangeThrottle_=new _.Ct((0,_.Om)(K.JSC$17373_xmlHttpHandler_,K,K.JSC$17369_xmlHttp_),K.JSC$17369_readyStateChangeThrottleMs_));
K.JSC$17369_eventHandler_.listen(K.JSC$17369_xmlHttp_,"readystatechange",K.JSC$17373_readyStateChangeHandler_);d=K.JSC$17369_extraHeaders_?_.PR.clone(K.JSC$17369_extraHeaders_):{};K.JSC$17369_postData_?(K.JSC$17369_verb_||(K.JSC$17369_verb_="POST"),d["Content-Type"]="application/x-www-form-urlencoded",K.JSC$17369_xmlHttp_.send(K.JSC$17369_requestUri_,K.JSC$17369_verb_,K.JSC$17369_postData_,d)):(K.JSC$17369_verb_="GET",K.JSC$17369_xmlHttp_.send(K.JSC$17369_requestUri_,K.JSC$17369_verb_,null,d));XO(1);
Qty(K.JSC$17369_channelDebug_,K.JSC$17369_verb_,K.JSC$17369_requestUri_,K.JSC$17369_rid_,K.JSC$17369_retryId_,K.JSC$17369_postData_)};
Oi.prototype.JSC$17373_readyStateChangeHandler_=function(K){K=K.target;var d=this.JSC$17369_readyStateChangeThrottle_;d&&_.XJ(K)==3?(this.JSC$17369_channelDebug_.debug("Throttling readystatechange."),d.fire()):this.JSC$17373_xmlHttpHandler_(K)};
Oi.prototype.JSC$17373_xmlHttpHandler_=function(K){try{K==this.JSC$17369_xmlHttp_?pki(this):this.JSC$17369_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(d){this.JSC$17369_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),K8Z(this)}finally{}};
var pki=function(K){var d=_.XJ(K.JSC$17369_xmlHttp_),f=K.JSC$17369_xmlHttp_.JSC$7805_lastErrorCode_,H=K.JSC$17369_xmlHttp_.getStatus();if(!(d<3||d==3&&!K8Z(K))){K.JSC$17369_cancelled_||d!=4||f==7||(f==8||H<=0?XO(3):XO(2));d0y(K);var D=K.JSC$17369_xmlHttp_.getStatus();K.JSC$17369_lastStatusCode_=D;f=f9P(K);K8Z(K)||K.JSC$17369_channelDebug_.debug(function(){return"No response text for uri "+K.JSC$17369_requestUri_+" status "+D});
K.JSC$17369_successful_=D==200;jtl(K.JSC$17369_channelDebug_,K.JSC$17369_verb_,K.JSC$17369_requestUri_,K.JSC$17369_rid_,K.JSC$17369_retryId_,d,D);if(K.JSC$17369_successful_){if(K.decodeInitialResponse_&&!K.initialResponseDecoded_)if(H=HGE(K))gn(K.JSC$17369_channelDebug_,K.JSC$17369_rid_,H,"Initial handshake response via X-HTTP-Initial-Response"),K.initialResponseDecoded_=!0,D0w(K,H);else{K.JSC$17369_successful_=!1;K.JSC$17369_lastError_=3;vM(12);K.JSC$17369_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
K.JSC$17369_rid_+")");NU(K);Yg(K);return}K.decodeChunks_?VIc(K,d,f):(gn(K.JSC$17369_channelDebug_,K.JSC$17369_rid_,f,null),D0w(K,f));d==4&&NU(K);K.JSC$17369_successful_&&!K.JSC$17369_cancelled_&&(d==4?St5(K.JSC$17369_channel_,K):(K.JSC$17369_successful_=!1,Zxc(K)))}else fey(K.JSC$17369_xmlHttp_),D==400&&f.indexOf("Unknown SID")>0?(K.JSC$17369_lastError_=3,vM(12),K.JSC$17369_channelDebug_.warning("XMLHTTP Unknown SID ("+K.JSC$17369_rid_+")")):(K.JSC$17369_lastError_=0,vM(13),K.JSC$17369_channelDebug_.warning("XMLHTTP Bad status "+
D+" ("+K.JSC$17369_rid_+")")),NU(K),Yg(K)}},HGE=function(K){return K.JSC$17369_xmlHttp_&&(K=aK(K.JSC$17369_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.cu(K)?K:null},f9P=function(K){if(!yzy(K))return K.JSC$17369_xmlHttp_.getResponseText();
var d=K.JSC$17369_xmlHttp_.getResponse();if(d==="")return"";var f="",H=d.length,D=_.XJ(K.JSC$17369_xmlHttp_)==4;if(!K.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return NU(K),Yg(K),"";K.fetchResponseState_.textDecoder=new _.Hu.TextDecoder}for(var S=0;S<H;S++)K.fetchResponseState_.responseArrivedForFetch=!0,f+=K.fetchResponseState_.textDecoder.decode(d[S],{stream:!(D&&S==H-1)});d.length=0;K.fetchResponseState_.responseBuffer+=f;K.JSC$17369_xmlHttpChunkStart_=0;return K.fetchResponseState_.responseBuffer},
K8Z=function(K){return K.JSC$17369_xmlHttp_?K.fetchResponseState_.responseArrivedForFetch?!0:!(!K.JSC$17369_xmlHttp_.getResponseText()&&!K.JSC$17369_xmlHttp_.getResponse()):!1},yzy=function(K){return K.JSC$17369_xmlHttp_?K.JSC$17369_verb_=="GET"&&K.JSC$17369_type_!=2&&K.JSC$17369_channel_.usesFetchStreams_:!1},VIc=function(K,d,f){for(var H=!0,D;!K.JSC$17369_cancelled_&&K.JSC$17369_xmlHttpChunkStart_<f.length;)if(D=nn7(K,f),D==stU){d==4&&(K.JSC$17369_lastError_=4,vM(14),H=!1);
gn(K.JSC$17369_channelDebug_,K.JSC$17369_rid_,null,"[Incomplete Response]");break}else if(D==JDS){K.JSC$17369_lastError_=4;vM(15);gn(K.JSC$17369_channelDebug_,K.JSC$17369_rid_,f,"[Invalid Chunk]");H=!1;break}else gn(K.JSC$17369_channelDebug_,K.JSC$17369_rid_,D,null),D0w(K,D);yzy(K)&&K.JSC$17369_xmlHttpChunkStart_!=0&&(K.fetchResponseState_.responseBuffer=K.fetchResponseState_.responseBuffer.slice(K.JSC$17369_xmlHttpChunkStart_),K.JSC$17369_xmlHttpChunkStart_=0);d!=4||f.length!=0||K.fetchResponseState_.responseArrivedForFetch||
(K.JSC$17369_lastError_=1,vM(16),H=!1);K.JSC$17369_successful_=K.JSC$17369_successful_&&H;H?f.length>0&&!K.firstByteReceived_&&(K.firstByteReceived_=!0,d=K.JSC$17369_channel_,d.JSC$17388_backChannelRequest_==K&&d.detectBufferingProxy_&&!d.bpDetectionDone_&&(d.JSC$17388_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+f.length),iGc(d),d.bpDetectionDone_=!0,vM(11))):(gn(K.JSC$17369_channelDebug_,K.JSC$17369_rid_,f,"[Invalid Chunked Response]"),NU(K),Yg(K))},nn7=function(K,d){var f=
K.JSC$17369_xmlHttpChunkStart_,H=d.indexOf("\n",f);
if(H==-1)return stU;f=Number(d.substring(f,H));if(isNaN(f))return JDS;H+=1;if(H+f>d.length)return stU;d=d.slice(H,H+f);K.JSC$17369_xmlHttpChunkStart_=H+f;return d};
Oi.prototype.cancel=function(){this.JSC$17369_cancelled_=!0;NU(this)};
var Zxc=function(K){K.JSC$17369_watchDogTimeoutTime_=Date.now()+K.timeout_;czU(K,K.timeout_)},czU=function(K,d){if(K.JSC$17369_watchDogTimerId_!=null)throw Error("vk");
K.JSC$17369_watchDogTimerId_=MU((0,_.Om)(K.JSC$17373_onWatchDogTimeout_,K),d)},d0y=function(K){K.JSC$17369_watchDogTimerId_&&(_.Hu.clearTimeout(K.JSC$17369_watchDogTimerId_),K.JSC$17369_watchDogTimerId_=null)};
Oi.prototype.JSC$17373_onWatchDogTimeout_=function(){this.JSC$17369_watchDogTimerId_=null;var K=Date.now();K-this.JSC$17369_watchDogTimeoutTime_>=0?(xft(this.JSC$17369_channelDebug_,this.JSC$17369_requestUri_),this.JSC$17369_type_!=2&&(XO(3),vM(17)),NU(this),this.JSC$17369_lastError_=2,Yg(this)):(this.JSC$17369_channelDebug_.warning("WatchDog timer called too early"),czU(this,this.JSC$17369_watchDogTimeoutTime_-K))};
var Yg=function(K){K.JSC$17369_channel_.state_==0||K.JSC$17369_cancelled_||St5(K.JSC$17369_channel_,K)},NU=function(K){d0y(K);
_.kh(K.JSC$17369_readyStateChangeThrottle_);K.JSC$17369_readyStateChangeThrottle_=null;K.JSC$17369_eventHandler_.removeAll();if(K.JSC$17369_xmlHttp_){var d=K.JSC$17369_xmlHttp_;K.JSC$17369_xmlHttp_=null;d.abort();d.dispose()}};
Oi.prototype.getLastError=function(){return this.JSC$17369_lastError_};
var D0w=function(K,d){try{var f=K.JSC$17369_channel_;if(f.state_!=0&&(f.JSC$17388_backChannelRequest_==K||unS(f.forwardChannelRequestPool_,K)))if(!K.initialResponseDecoded_&&unS(f.forwardChannelRequestPool_,K)&&f.state_==3){try{var H=f.wireCodec_.JSC$17383_parser_.parse(d)}catch(u){H=null}if(Array.isArray(H)&&H.length==3){d=H;if(d[0]==0)a:if(f.JSC$17388_channelDebug_.debug("Server claims our backchannel is missing."),f.JSC$17388_backChannelTimerId_)f.JSC$17388_channelDebug_.debug("But we are currently starting the request.");
else{if(f.JSC$17388_backChannelRequest_)if(f.JSC$17388_backChannelRequest_.JSC$17369_requestStartTime_+3E3<K.JSC$17369_requestStartTime_)a9w(f),I9w(f);else break a;else f.JSC$17388_channelDebug_.warning("We do not have a BackChannel established");U0K(f);vM(18)}else{f.JSC$17388_lastPostResponseArrayId_=d[1];var D=f.JSC$17388_lastPostResponseArrayId_-f.JSC$17388_lastArrayId_;if(0<D){var S=d[2];f.JSC$17388_channelDebug_.debug(S+" bytes (in "+D+" arrays) are outstanding on the BackChannel");S<37500&&
f.enableStreaming_&&f.JSC$17388_backChannelRetryCount_==0&&!f.JSC$17388_deadBackChannelTimerId_&&(f.JSC$17388_deadBackChannelTimerId_=MU((0,_.Om)(f.JSC$17390_onBackChannelDead_,f),6E3))}}if(RiS(f.forwardChannelRequestPool_)<=1&&f.forwardChannelFlushedCallback_){try{f.forwardChannelFlushedCallback_()}catch(u){}f.forwardChannelFlushedCallback_=void 0}}else f.JSC$17388_channelDebug_.debug("Bad POST response data returned"),tC(f,11)}else if((K.initialResponseDecoded_||f.JSC$17388_backChannelRequest_==
K)&&a9w(f),!_.cu(d)){var n=f.wireCodec_.JSC$17383_parser_.parse(d);f.onInput_(n,K)}XO(4)}catch(u){}};var F8S=function(K,d){this.JSC$17376_mapId=K;this.map=d;this.context=null};var ziz=function(K){this.maxPoolSizeConfigured_=K||10;_.Hu.PerformanceNavigationTiming?(K=_.Hu.performance.getEntriesByType("navigation"),K=K.length>0&&(K[0].nextHopProtocol=="hq"||K[0].nextHopProtocol=="h2")):K=!!(_.Hu.chrome&&_.Hu.chrome.loadTimes&&_.Hu.chrome.loadTimes()&&_.Hu.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17379_maxSize_=K?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17379_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17379_request_=null;this.JSC$17379_pendingMessages_=
[]},XtS=function(K){return K.JSC$17379_request_?!0:K.requestPool_?K.requestPool_.size>=K.JSC$17379_maxSize_:!1},RiS=function(K){return K.JSC$17379_request_?1:K.requestPool_?K.requestPool_.size:0},unS=function(K,d){return K.JSC$17379_request_?K.JSC$17379_request_==d:K.requestPool_?K.requestPool_.has(d):!1},vn5=function(K,d){K.requestPool_?K.requestPool_.add(d):K.JSC$17379_request_=d},MIU=function(K,d){K.JSC$17379_request_&&K.JSC$17379_request_==d?K.JSC$17379_request_=null:K.requestPool_&&K.requestPool_.has(d)&&
K.requestPool_.delete(d)};
ziz.prototype.cancel=function(){this.JSC$17379_pendingMessages_=PSw(this);if(this.JSC$17379_request_)this.JSC$17379_request_.cancel(),this.JSC$17379_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var K=_.y(this.requestPool_.values()),d=K.next();!d.done;d=K.next())d.value.cancel();this.requestPool_.clear()}};
var PSw=function(K){if(K.JSC$17379_request_!=null)return K.JSC$17379_pendingMessages_.concat(K.JSC$17379_request_.JSC$17369_pendingMessages_);if(K.requestPool_!=null&&K.requestPool_.size!==0){var d=K.JSC$17379_pendingMessages_;K=_.y(K.requestPool_.values());for(var f=K.next();!f.done;f=K.next())d=d.concat(f.value.JSC$17369_pendingMessages_);return d}return _.ep(K.JSC$17379_pendingMessages_)},gnK=function(K,d){K.JSC$17379_pendingMessages_=K.JSC$17379_pendingMessages_.concat(d)};var OGU=function(K,d){var f=new PM;f.debug("TestLoadImage: loading "+K);if(_.Hu.Image){var H=new Image;H.onload=_.uB(o3,f,"TestLoadImage: loaded",!0,d,H);H.onerror=_.uB(o3,f,"TestLoadImage: error",!1,d,H);H.onabort=_.uB(o3,f,"TestLoadImage: abort",!1,d,H);H.ontimeout=_.uB(o3,f,"TestLoadImage: timeout",!1,d,H);_.Hu.setTimeout(function(){if(H.ontimeout)H.ontimeout()},1E4);
H.src=K}else d(!1)},NTE=function(K,d){var f=new PM,H=new AbortController,D=setTimeout(function(){H.abort();
o3(f,"TestPingServer: timeout",!1,d)},1E4);
fetch(K,{signal:H.signal}).then(function(S){clearTimeout(D);S.ok?o3(f,"TestPingServer: ok",!0,d):o3(f,"TestPingServer: server error",!1,d)}).catch(function(){clearTimeout(D);
o3(f,"TestPingServer: error",!1,d)})},o3=function(K,d,f,H,D){try{K.debug(d),D&&(D.onload=null,D.onerror=null,D.onabort=null,D.ontimeout=null),H(f)}catch(S){}};var Ytw=function(){this.JSC$17383_parser_=new zQ},tIE=function(K,d,f){var H=f||"";
try{_.i0k(K,function(D,S){var n=D;_.H4(D)&&(n=(0,_.FJ)(D));d.push(H+S+"="+encodeURIComponent(n))})}catch(D){throw d.push(H+"type="+encodeURIComponent("_badmap")),D;
}};var $g=function(K,d,f){return f&&f.internalChannelParams?f.internalChannelParams[K]||d:d},Ei=function(K){this.serverVersion_=0;
this.JSC$17388_outgoingMaps_=[];this.JSC$17388_channelDebug_=new PM;this.JSC$17388_hostPrefix_=this.JSC$17388_backChannelUri_=this.JSC$17388_forwardChannelUri_=this.JSC$17388_path_=this.JSC$17388_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17388_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17388_extraHeaders_=null;this.JSC$17388_nextMapId_=this.JSC$17388_nextRid_=0;this.JSC$17388_failFast_=$g("failFast",!1,K);this.enableStreaming_=this.JSC$17388_deadBackChannelTimerId_=
this.JSC$17388_backChannelTimerId_=this.JSC$17388_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17388_lastPostResponseArrayId_=this.JSC$17388_lastArrayId_=-1;this.JSC$17388_backChannelAttemptId_=this.JSC$17388_backChannelRetryCount_=this.JSC$17388_forwardChannelRetryCount_=0;this.JSC$17388_baseRetryDelayMs_=$g("baseRetryDelayMs",5E3,K);this.JSC$17388_retryDelaySeedMs_=$g("retryDelaySeedMs",1E4,K);this.JSC$17388_forwardChannelMaxRetries_=
$g("forwardChannelMaxRetries",2,K);this.JSC$17388_forwardChannelRequestTimeoutMs_=$g("forwardChannelRequestTimeoutMs",2E4,K);this.JSC$17388_xmlHttpFactory_=K&&K.xmlHttpFactory||void 0;this.networkTestUrl_=K&&K.networkTestUrl||void 0;this.usesFetchStreams_=K&&K.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17388_supportsCrossDomainXhrs_=K&&K.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new ziz(K&&K.concurrentRequestLimit);this.wireCodec_=new Ytw;this.fastHandshake_=
K&&K.fastHandshake||!1;this.encodeInitMessageHeaders_=K&&K.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17388_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=K&&K.blockingHandshake||!1;K&&K.disableRedact&&this.JSC$17388_channelDebug_.disableRedact();K&&K.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
K&&K.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;K&&K.longPollingTimeout&&K.longPollingTimeout>0&&(this.longPollingTimeout_=K.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Ei.prototype.JSC$17390_channelVersion_=8;Ei.prototype.state_=1;
Ei.prototype.connect=function(K,d,f,H){this.JSC$17388_channelDebug_.debug("connect()");vM(0);this.JSC$17388_path_=K;this.JSC$17388_extraParams_=d||{};f&&H!==void 0&&(this.JSC$17388_extraParams_.OSID=f,this.JSC$17388_extraParams_.OAID=H);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17388_channelDebug_.debug("connectChannel_()");K=onw(this,null,this.JSC$17388_path_);this.JSC$17388_channelDebug_.debug("GetForwardChannelUri: "+K);this.JSC$17388_forwardChannelUri_=K;$0y(this)};
Ei.prototype.disconnect=function(){this.JSC$17388_channelDebug_.debug("disconnect()");Enw(this);if(this.state_==3){var K=this.JSC$17388_nextRid_++,d=this.JSC$17388_forwardChannelUri_.clone();_.Cm(d,"SID",this.sid_);_.Cm(d,"RID",K);_.Cm(d,"TYPE","terminate");hC(this,d);K=new Oi(this,this.JSC$17388_channelDebug_,this.sid_,K);K.JSC$17369_type_=2;K.JSC$17369_baseUri_=_.wv(d.clone());d=!1;if(_.Hu.navigator&&_.Hu.navigator.sendBeacon)try{d=_.Hu.navigator.sendBeacon(K.JSC$17369_baseUri_.toString(),"")}catch(f){}!d&&
_.Hu.Image&&((new Image).src=K.JSC$17369_baseUri_,d=!0);d||(K.JSC$17369_xmlHttp_=ewE(K.JSC$17369_channel_,null),K.JSC$17369_xmlHttp_.send(K.JSC$17369_baseUri_));K.JSC$17369_requestStartTime_=Date.now();Zxc(K)}hiw(this)};
var I9w=function(K){K.JSC$17388_backChannelRequest_&&(iGc(K),K.JSC$17388_backChannelRequest_.cancel(),K.JSC$17388_backChannelRequest_=null)},Enw=function(K){I9w(K);
K.JSC$17388_backChannelTimerId_&&(_.Hu.clearTimeout(K.JSC$17388_backChannelTimerId_),K.JSC$17388_backChannelTimerId_=null);a9w(K);K.forwardChannelRequestPool_.cancel();K.JSC$17388_forwardChannelTimerId_&&(typeof K.JSC$17388_forwardChannelTimerId_==="number"&&_.Hu.clearTimeout(K.JSC$17388_forwardChannelTimerId_),K.JSC$17388_forwardChannelTimerId_=null)};
Ei.prototype.getState=function(){return this.state_};
var $0y=function(K){XtS(K.forwardChannelRequestPool_)||K.JSC$17388_forwardChannelTimerId_||(K.JSC$17388_forwardChannelTimerId_=!0,_.uJ(K.JSC$17390_onStartForwardChannelTimer_,K),K.JSC$17388_forwardChannelRetryCount_=0)},m05=function(K,d){if(RiS(K.forwardChannelRequestPool_)>=K.forwardChannelRequestPool_.JSC$17379_maxSize_-(K.JSC$17388_forwardChannelTimerId_?1:0))return!1;
if(K.JSC$17388_forwardChannelTimerId_)return K.JSC$17388_channelDebug_.debug("Use the retry request that is already scheduled."),K.JSC$17388_outgoingMaps_=d.JSC$17369_pendingMessages_.concat(K.JSC$17388_outgoingMaps_),!0;if(K.state_==1||K.state_==2||K.JSC$17388_forwardChannelRetryCount_>=(K.JSC$17388_failFast_?0:K.JSC$17388_forwardChannelMaxRetries_))return!1;K.JSC$17388_channelDebug_.debug("Going to retry POST");K.JSC$17388_forwardChannelTimerId_=MU((0,_.Om)(K.JSC$17390_onStartForwardChannelTimer_,
K,d),bGz(K,K.JSC$17388_forwardChannelRetryCount_));K.JSC$17388_forwardChannelRetryCount_++;return!0};
Ei.prototype.JSC$17390_onStartForwardChannelTimer_=function(K){if(this.JSC$17388_forwardChannelTimerId_)if(this.JSC$17388_forwardChannelTimerId_=null,this.JSC$17388_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!K){this.JSC$17388_channelDebug_.debug("open_()");this.JSC$17388_nextRid_=Math.floor(Math.random()*1E5);K=this.JSC$17388_nextRid_++;var d=new Oi(this,this.JSC$17388_channelDebug_,"",K),f=this.JSC$17388_extraHeaders_;this.initHeaders_&&(f?(f=_.PR.clone(f),_.PR.extend(f,this.initHeaders_)):
f=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(d.JSC$17369_extraHeaders_=f,f=null);var H;if(this.fastHandshake_)a:{for(var D=H=0;D<this.JSC$17388_outgoingMaps_.length;D++){b:{var S=this.JSC$17388_outgoingMaps_[D];if("__data__"in S.map&&(S=S.map.__data__,typeof S==="string")){S=S.length;break b}S=void 0}if(S===void 0)break;H+=S;if(H>4096){H=D;break a}if(H===4096||D===this.JSC$17388_outgoingMaps_.length-1){H=D+1;break a}}H=1E3}else H=1E3;H=l9l(this,d,H);
D=this.JSC$17388_forwardChannelUri_.clone();_.Cm(D,"RID",K);_.Cm(D,"CVER",22);this.httpSessionIdParam_&&_.Cm(D,"X-HTTP-Session-Id",this.httpSessionIdParam_);hC(this,D);f&&(this.encodeInitMessageHeaders_?H="headers="+_.qk(HKP(f))+"&"+H:this.httpHeadersOverwriteParam_&&Daw(D,this.httpHeadersOverwriteParam_,f));vn5(this.forwardChannelRequestPool_,d);this.blockingHandshake_&&_.Cm(D,"TYPE","init");this.fastHandshake_?(_.Cm(D,"$req",H),_.Cm(D,"SID","null"),d.decodeInitialResponse_=!0,wkE(d,D,null)):wkE(d,
D,H);this.state_=2}}else this.state_==3&&(K?W8w(this,K):this.JSC$17388_outgoingMaps_.length==0?this.JSC$17388_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):XtS(this.forwardChannelRequestPool_)||(W8w(this),this.JSC$17388_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var W8w=function(K,d){var f;d?f=d.JSC$17369_rid_:f=K.JSC$17388_nextRid_++;var H=K.JSC$17388_forwardChannelUri_.clone();_.Cm(H,"SID",K.sid_);_.Cm(H,"RID",f);_.Cm(H,"AID",K.JSC$17388_lastArrayId_);hC(K,H);K.httpHeadersOverwriteParam_&&K.JSC$17388_extraHeaders_&&Daw(H,K.httpHeadersOverwriteParam_,K.JSC$17388_extraHeaders_);f=new Oi(K,K.JSC$17388_channelDebug_,K.sid_,f,K.JSC$17388_forwardChannelRetryCount_+1);K.httpHeadersOverwriteParam_===null&&(f.JSC$17369_extraHeaders_=K.JSC$17388_extraHeaders_);d&&
(K.JSC$17388_outgoingMaps_=d.JSC$17369_pendingMessages_.concat(K.JSC$17388_outgoingMaps_));d=l9l(K,f,1E3);f.setTimeout(Math.round(K.JSC$17388_forwardChannelRequestTimeoutMs_*.5)+Math.round(K.JSC$17388_forwardChannelRequestTimeoutMs_*.5*Math.random()));vn5(K.forwardChannelRequestPool_,f);wkE(f,H,d)},hC=function(K,d){K.JSC$17388_extraParams_&&_.PR.forEach(K.JSC$17388_extraParams_,function(f,H){_.Cm(d,H,f)});
K.handler_&&_.i0k({},function(f,H){_.Cm(d,H,f)})},l9l=function(K,d,f){f=Math.min(K.JSC$17388_outgoingMaps_.length,f);
var H=K.handler_?(0,_.Om)(K.handler_.JSC$17394_badMapError,K.handler_,K):null;a:{for(var D=K.JSC$17388_outgoingMaps_,S=-1;;){var n=["count="+f];S==-1?f>0?(S=D[0].JSC$17376_mapId,n.push("ofs="+S)):S=0:n.push("ofs="+S);for(var u=!0,a=0;a<f;a++){var R=D[a].JSC$17376_mapId,F=D[a].map;R-=S;if(R<0)S=Math.max(0,D[a].JSC$17376_mapId-100),u=!1;else try{tIE(F,n,"req"+R+"_")}catch(z){H&&H(F)}}if(u){H=n.join("&");break a}}H=void 0}K=K.JSC$17388_outgoingMaps_.splice(0,f);d.JSC$17369_pendingMessages_=K;return H},
GdK=function(K){K.JSC$17388_backChannelRequest_||K.JSC$17388_backChannelTimerId_||(K.JSC$17388_backChannelAttemptId_=1,_.uJ(K.JSC$17390_onStartBackChannelTimer_,K),K.JSC$17388_backChannelRetryCount_=0)},U0K=function(K){if(K.JSC$17388_backChannelRequest_||K.JSC$17388_backChannelTimerId_||K.JSC$17388_backChannelRetryCount_>=3)return!1;
K.JSC$17388_channelDebug_.debug("Going to retry GET");K.JSC$17388_backChannelAttemptId_++;K.JSC$17388_backChannelTimerId_=MU((0,_.Om)(K.JSC$17390_onStartBackChannelTimer_,K),bGz(K,K.JSC$17388_backChannelRetryCount_));K.JSC$17388_backChannelRetryCount_++;return!0};
Ei.prototype.JSC$17390_onStartBackChannelTimer_=function(){this.JSC$17388_backChannelTimerId_=null;Azt(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17388_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17388_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17388_backChannelRequest_+" "+this.handshakeRttMs_);else{var K=2*this.handshakeRttMs_;this.JSC$17388_channelDebug_.info("BP detection timer enabled: "+K);this.bpDetectionTimerId_=MU((0,_.Om)(this.onBpDetectionTimer_,
this),K)}};
Ei.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17388_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17388_backChannelRequest_.JSC$17369_xmlHttp_!=null){var K=this.JSC$17388_backChannelRequest_.JSC$17369_xmlHttp_.getResponseText();K&&this.JSC$17388_channelDebug_.warning("Timer should have been cancelled : "+K)}this.JSC$17388_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;vM(10);I9w(this);Azt(this)}else this.JSC$17388_channelDebug_.warning("Invalid operation.")};
var iGc=function(K){K.bpDetectionTimerId_!=null&&(K.JSC$17388_channelDebug_.debug("Cancel the BP detection timer."),_.Hu.clearTimeout(K.bpDetectionTimerId_),K.bpDetectionTimerId_=null)},Azt=function(K){K.JSC$17388_channelDebug_.debug("Creating new HttpRequest");
K.JSC$17388_backChannelRequest_=new Oi(K,K.JSC$17388_channelDebug_,K.sid_,"rpc",K.JSC$17388_backChannelAttemptId_);K.httpHeadersOverwriteParam_===null&&(K.JSC$17388_backChannelRequest_.JSC$17369_extraHeaders_=K.JSC$17388_extraHeaders_);K.JSC$17388_backChannelRequest_.JSC$17369_readyStateChangeThrottleMs_=0;var d=K.JSC$17388_backChannelUri_.clone();_.Cm(d,"RID","rpc");_.Cm(d,"SID",K.sid_);_.Cm(d,"AID",K.JSC$17388_lastArrayId_);_.Cm(d,"CI",K.enableStreaming_?"0":"1");!K.enableStreaming_&&K.longPollingTimeout_&&
_.Cm(d,"TO",K.longPollingTimeout_);_.Cm(d,"TYPE","xmlhttp");hC(K,d);K.httpHeadersOverwriteParam_&&K.JSC$17388_extraHeaders_&&Daw(d,K.httpHeadersOverwriteParam_,K.JSC$17388_extraHeaders_);K.backChannelRequestTimeoutMs_&&K.JSC$17388_backChannelRequest_.setTimeout(K.backChannelRequestTimeoutMs_);var f=K.JSC$17388_backChannelRequest_,H=K.JSC$17388_hostPrefix_;f.JSC$17369_type_=1;f.JSC$17369_baseUri_=_.wv(d.clone());f.JSC$17369_postData_=null;f.decodeChunks_=!0;kM5(f,H);K.JSC$17388_channelDebug_.debug("New Request created")};
Ei.prototype.JSC$17390_onBackChannelDead_=function(){this.JSC$17388_deadBackChannelTimerId_!=null&&(this.JSC$17388_deadBackChannelTimerId_=null,I9w(this),U0K(this),vM(19))};
var a9w=function(K){K.JSC$17388_deadBackChannelTimerId_!=null&&(_.Hu.clearTimeout(K.JSC$17388_deadBackChannelTimerId_),K.JSC$17388_deadBackChannelTimerId_=null)},St5=function(K,d){K.JSC$17388_channelDebug_.debug("Request complete");
var f=null;if(K.JSC$17388_backChannelRequest_==d){a9w(K);iGc(K);K.JSC$17388_backChannelRequest_=null;var H=2}else if(unS(K.forwardChannelRequestPool_,d))f=d.JSC$17369_pendingMessages_,MIU(K.forwardChannelRequestPool_,d),H=1;else return;if(K.state_!=0)if(d.JSC$17369_successful_)H==1?(qvz(d.JSC$17369_postData_?d.JSC$17369_postData_.length:0,Date.now()-d.JSC$17369_requestStartTime_,K.JSC$17388_forwardChannelRetryCount_),$0y(K)):GdK(K);else{var D=d.JSC$17369_lastStatusCode_,S=d.getLastError();if(S==3||
S==0&&D>0)K.JSC$17388_channelDebug_.debug("Not retrying due to error type"),D>200&&(K.errorResponseStatusCode_=d.JSC$17369_lastStatusCode_);else{K.JSC$17388_channelDebug_.debug(function(){return"Maybe retrying, last error: "+BvE(S,K.errorResponseStatusCode_)});
if(H==1&&m05(K,d)||H==2&&U0K(K))return;K.JSC$17388_channelDebug_.debug("Exceeded max number of retries")}f&&f.length>0&&gnK(K.forwardChannelRequestPool_,f);K.JSC$17388_channelDebug_.debug("Error: HTTP request failed");switch(S){case 1:tC(K,5);break;case 4:tC(K,10);break;case 3:tC(K,6);break;default:tC(K,2)}}},bGz=function(K,d){var f=K.JSC$17388_baseRetryDelayMs_+Math.floor(Math.random()*K.JSC$17388_retryDelaySeedMs_);
K.isActive()||(K.JSC$17388_channelDebug_.debug("Inactive channel"),f*=2);return f*d};
Ei.prototype.onInput_=function(K,d){for(var f=0;f<K.length;f++){var H=K[f];this.JSC$17388_lastArrayId_=H[0];H=H[1];if(this.state_==2)if(H[0]=="c"){this.sid_=H[1];this.JSC$17388_hostPrefix_=H[2];var D=H[3];D!=null&&(this.JSC$17390_channelVersion_=D,this.JSC$17388_channelDebug_.info("VER="+this.JSC$17390_channelVersion_));D=H[4];D!=null&&(this.serverVersion_=D,this.JSC$17388_channelDebug_.info("SVER="+this.serverVersion_));H=H[5];H!=null&&typeof H==="number"&&H>0&&(this.backChannelRequestTimeoutMs_=
H*=1.5,this.JSC$17388_channelDebug_.info("backChannelRequestTimeoutMs_="+H));if(H=d.JSC$17369_xmlHttp_){var S=aK(H,"X-Client-Wire-Protocol");S&&(D=this.forwardChannelRequestPool_,!D.requestPool_&&(_.aX(S,"spdy")||_.aX(S,"quic")||_.aX(S,"h2"))&&(D.JSC$17379_maxSize_=D.maxPoolSizeConfigured_,D.requestPool_=new Set,D.JSC$17379_request_&&(vn5(D,D.JSC$17379_request_),D.JSC$17379_request_=null)));this.httpSessionIdParam_&&((H=aK(H,"X-HTTP-Session-Id"))?(this.httpSessionId_=H,_.Cm(this.JSC$17388_forwardChannelUri_,
this.httpSessionIdParam_,H)):this.JSC$17388_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17394_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-d.JSC$17369_requestStartTime_,this.JSC$17388_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));H=d;D=onw(this,this.JSC$17388_supportsCrossDomainXhrs_?this.JSC$17388_hostPrefix_:null,this.JSC$17388_path_);this.JSC$17388_channelDebug_.debug("GetBackChannelUri: "+
D);this.JSC$17388_backChannelUri_=D;H.initialResponseDecoded_?(this.JSC$17388_channelDebug_.debug("Upgrade the handshake request to a backchannel."),MIU(this.forwardChannelRequestPool_,H),D=H,(S=this.backChannelRequestTimeoutMs_)&&D.setTimeout(S),D.JSC$17369_watchDogTimerId_&&(d0y(D),Zxc(D)),this.JSC$17388_backChannelRequest_=H):GdK(this);this.JSC$17388_outgoingMaps_.length>0&&$0y(this)}else H[0]!="stop"&&H[0]!="close"||tC(this,7);else this.state_==3&&(H[0]=="stop"||H[0]=="close"?H[0]=="stop"?tC(this,
7):this.disconnect():H[0]!="noop"&&this.handler_&&this.handler_.JSC$17394_channelHandleArray(H),this.JSC$17388_backChannelRetryCount_=0)}};
var tC=function(K,d){K.JSC$17388_channelDebug_.info("Error code "+d);if(d==2){var f=(0,_.Om)(K.testNetworkCallback_,K),H=K.networkTestUrl_,D=!H;H=new _.Q8(H||"//www.google.com/images/cleardot.gif");_.Hu.location&&_.Hu.location.protocol=="http"||_.Qh(H,"https");_.wv(H);D?OGU(H.toString(),f):NTE(H.toString(),f)}else vM(2);K.onError_(d)};
Ei.prototype.testNetworkCallback_=function(K){K?(this.JSC$17388_channelDebug_.info("Successfully pinged google.com"),vM(2)):(this.JSC$17388_channelDebug_.info("Failed to ping google.com"),vM(1))};
Ei.prototype.onError_=function(K){this.JSC$17388_channelDebug_.debug("HttpChannel: error - "+K);this.state_=0;this.handler_&&this.handler_.JSC$17394_channelError(K);hiw(this);Enw(this)};
var hiw=function(K){K.state_=0;K.nonAckedMapsAtChannelClose_=[];if(K.handler_){var d=PSw(K.forwardChannelRequestPool_);if(d.length!=0||K.JSC$17388_outgoingMaps_.length!=0)K.JSC$17388_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+d.length+", outgoing: "+K.JSC$17388_outgoingMaps_.length}),_.fJ(K.nonAckedMapsAtChannelClose_,d),_.fJ(K.nonAckedMapsAtChannelClose_,K.JSC$17388_outgoingMaps_),K.forwardChannelRequestPool_.JSC$17379_pendingMessages_.length=0,_.ep(K.JSC$17388_outgoingMaps_),
K.JSC$17388_outgoingMaps_.length=0;
K.handler_.JSC$17394_channelClosed()}},TTw=function(K){if(K.state_==0)return K.nonAckedMapsAtChannelClose_;
var d=[];_.fJ(d,PSw(K.forwardChannelRequestPool_));_.fJ(d,K.JSC$17388_outgoingMaps_);return d},onw=function(K,d,f){var H=_.QX(f);
H.JSC$8037_domain_!=""?(d&&_.jU(H,d+"."+H.JSC$8037_domain_),_.Cx(H,H.JSC$8037_port_)):(H=_.Hu.location,H=JMw(H.protocol,d?d+"."+H.hostname:H.hostname,+H.port,f));d=K.httpSessionIdParam_;f=K.httpSessionId_;d&&f&&_.Cm(H,d,f);_.Cm(H,"VER",K.JSC$17390_channelVersion_);hC(K,H);return H},ewE=function(K,d,f){if(d&&!K.JSC$17388_supportsCrossDomainXhrs_)throw Error("wk");
d=K.usesFetchStreams_&&!K.JSC$17388_xmlHttpFactory_?new _.zM(new hE({streamBinaryChunks:f})):new _.zM(K.JSC$17388_xmlHttpFactory_);d.JSC$7805_withCredentials_=K.JSC$17388_supportsCrossDomainXhrs_;return d};
Ei.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var rzZ=function(){};
_.V=rzZ.prototype;_.V.JSC$17394_channelOpened=function(){};
_.V.JSC$17394_channelHandleArray=function(){};
_.V.JSC$17394_channelError=function(){};
_.V.JSC$17394_channelClosed=function(){};
_.V.isActive=function(){return!0};
_.V.JSC$17394_badMapError=function(){};var qty=function(){},mO=function(K,d){_.iJ.call(this);
this.JSC$17397_channel_=new Ei(d);this.JSC$17397_url_=K;this.messageUrlParams_=d&&d.messageUrlParams||null;K=d&&d.messageHeaders||null;d&&d.clientProtocolHeaderRequired&&(K?_.PR.set(K,"X-Client-Protocol","webchannel"):K=_.PR.create("X-Client-Protocol","webchannel"));this.JSC$17397_channel_.JSC$17388_extraHeaders_=K;K=d&&d.initMessageHeaders||null;d&&d.messageContentType&&(K?_.PR.set(K,"X-WebChannel-Content-Type",d.messageContentType):K=_.PR.create("X-WebChannel-Content-Type",d.messageContentType));
d&&d.clientProfile&&(K?_.PR.set(K,"X-WebChannel-Client-Profile",d.clientProfile):K=_.PR.create("X-WebChannel-Client-Profile",d.clientProfile));this.JSC$17397_channel_.initHeaders_=K;(K=d&&d.httpHeadersOverwriteParam)&&!_.cu(K)&&(this.JSC$17397_channel_.httpHeadersOverwriteParam_=K);this.supportsCrossDomainXhr_=d&&d.supportsCrossDomainXhr||!1;this.sendRawJson_=d&&d.sendRawJson||!1;(d=d&&d.httpSessionIdParam)&&!_.cu(d)&&(this.JSC$17397_channel_.httpSessionIdParam_=d,_.PR.containsKey(this.messageUrlParams_,
d)&&_.PR.remove(this.messageUrlParams_,d));this.channelHandler_=new ba(this)};
_.Bd(mO,_.iJ);mO.prototype.open=function(){this.JSC$17397_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17397_channel_.JSC$17388_supportsCrossDomainXhrs_=!0);this.JSC$17397_channel_.connect(this.JSC$17397_url_,this.messageUrlParams_||void 0)};
mO.prototype.close=function(){this.JSC$17397_channel_.disconnect()};
mO.prototype.send=function(K){var d=this.JSC$17397_channel_;if(typeof K==="string"){var f={};f.__data__=K;K=f}else this.sendRawJson_&&(f={},f.__data__=(0,_.FJ)(K),K=f);d.JSC$17388_outgoingMaps_.push(new F8S(d.JSC$17388_nextMapId_++,K));d.state_==3&&$0y(d)};
mO.prototype.disposeInternal=function(){this.JSC$17397_channel_.handler_=null;delete this.channelHandler_;this.JSC$17397_channel_.disconnect();delete this.JSC$17397_channel_;mO.superClass_.disposeInternal.call(this)};
var QZi=function(K){mft.call(this);K.__headers__&&(this.headers=K.__headers__,this.statusCode=K.__status__,delete K.__headers__,delete K.__status__);var d=K.__sm__;d?this.data=(this.metadataKey=_.PR.getAnyKey(d))?_.PR.get(d,this.metadataKey):d:this.data=K};
_.Bd(QZi,mft);var jZc=function(K){l5S.call(this);this.status=1;this.errorCode=K};
_.Bd(jZc,l5S);var ba=function(K){this.JSC$17404_channel_=K};
_.Bd(ba,rzZ);ba.prototype.JSC$17394_channelOpened=function(){this.JSC$17404_channel_.dispatchEvent("w")};
ba.prototype.JSC$17394_channelHandleArray=function(K){this.JSC$17404_channel_.dispatchEvent(new QZi(K))};
ba.prototype.JSC$17394_channelError=function(K){this.JSC$17404_channel_.dispatchEvent(new jZc(K))};
ba.prototype.JSC$17394_channelClosed=function(){this.JSC$17404_channel_.dispatchEvent("x")};
var CSc=function(K,d){this.transportChannel_=K;this.JSC$17407_channel_=d},x0z=function(K){return TTw(K.JSC$17407_channel_).map(function(d){var f=K.transportChannel_;
d=d.map;"__data__"in d?(d=d.__data__,f=f.sendRawJson_?(0,_.qjH)(d):d):f=d;return f})};var la=function(K){L8w.dispatchEvent(new BTE(L8w,K))},L8w=new _.iJ,BTE=function(K){_.D5.call(this,"statevent",K)};
_.O(BTE,_.D5);var WM=function(K,d,f,H,D){this.JSC$17412_channel_=K;this.JSC$17412_channelDebug_=d;this.sid_=f;this.JSC$17412_rid_=H;this.JSC$17412_retryId_=D||1;this.timeout_=45E3;this.JSC$17412_eventHandler_=new _.Zt(this);this.pollingTimer_=new _.wX;this.pollingTimer_.setInterval(250)};
_.V=WM.prototype;_.V.JSC$17414_extraHeaders_=null;_.V.JSC$17414_successful_=!1;_.V.JSC$17414_watchDogTimerId_=null;_.V.JSC$17414_watchDogTimeoutTime_=null;_.V.JSC$17414_requestStartTime_=null;_.V.JSC$17414_type_=null;_.V.JSC$17414_baseUri_=null;_.V.JSC$17414_requestUri_=null;_.V.JSC$17414_postData_=null;_.V.JSC$17414_xmlHttp_=null;_.V.JSC$17414_xmlHttpChunkStart_=0;_.V.trident_=null;_.V.JSC$17414_verb_=null;_.V.JSC$17414_lastError_=null;_.V.JSC$17414_lastStatusCode_=-1;_.V.sendClose_=!0;
_.V.JSC$17414_cancelled_=!1;_.V.JSC$17414_readyStateChangeThrottleMs_=0;_.V.JSC$17414_readyStateChangeThrottle_=null;var Jzz=function(K,d){switch(K){case 0:return"Non-200 return code ("+d+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},sZU={},kdS={};
WM.prototype.setTimeout=function(K){this.timeout_=K};
var ZGK=function(K,d,f){K.JSC$17414_type_=1;K.JSC$17414_baseUri_=_.wv(d.clone());K.JSC$17414_postData_=f;K.decodeChunks_=!0;wty(K,null)},eiE=function(K,d,f,H,D){K.JSC$17414_type_=1;
K.JSC$17414_baseUri_=_.wv(d.clone());K.JSC$17414_postData_=null;K.decodeChunks_=f;D&&(K.sendClose_=!1);wty(K,H)},wty=function(K,d){K.JSC$17414_requestStartTime_=Date.now();
ptw(K);K.JSC$17414_requestUri_=K.JSC$17414_baseUri_.clone();VG(K.JSC$17414_requestUri_,"t",K.JSC$17412_retryId_);K.JSC$17414_xmlHttpChunkStart_=0;K.JSC$17414_xmlHttp_=K.JSC$17412_channel_.JSC$17421_createXhrIo(K.JSC$17412_channel_.JSC$17421_shouldUseSecondaryDomains()?d:null);K.JSC$17414_readyStateChangeThrottleMs_>0&&(K.JSC$17414_readyStateChangeThrottle_=new _.Ct((0,_.Om)(K.JSC$17414_xmlHttpHandler_,K,K.JSC$17414_xmlHttp_),K.JSC$17414_readyStateChangeThrottleMs_));K.JSC$17412_eventHandler_.listen(K.JSC$17414_xmlHttp_,
"readystatechange",K.JSC$17414_readyStateChangeHandler_);d=K.JSC$17414_extraHeaders_?_.PR.clone(K.JSC$17414_extraHeaders_):{};K.JSC$17414_postData_?(K.JSC$17414_verb_="POST",d["Content-Type"]="application/x-www-form-urlencoded",K.JSC$17414_xmlHttp_.send(K.JSC$17414_requestUri_,K.JSC$17414_verb_,K.JSC$17414_postData_,d)):(K.JSC$17414_verb_="GET",K.sendClose_&&!_.Zf&&(d.Connection="close"),K.JSC$17414_xmlHttp_.send(K.JSC$17414_requestUri_,K.JSC$17414_verb_,null,d));K.JSC$17412_channel_.notifyServerReachabilityEvent(1);
d=K.JSC$17412_channelDebug_;var f=K.JSC$17414_postData_;if(f){var H="";f=f.split("&");for(var D=0;D<f.length;D++){var S=f[D].split("=");if(S.length>1){var n=S[0];S=S[1];var u=n.split("_");H=u.length>=2&&u[1]=="type"?H+(n+"="+S+"&"):H+(n+"=redacted&")}}}else H=null;d.info("XMLHTTP REQ ("+K.JSC$17412_rid_+") [attempt "+K.JSC$17412_retryId_+"]: "+K.JSC$17414_verb_+"\n"+K.JSC$17414_requestUri_+"\n"+H)};
WM.prototype.JSC$17414_readyStateChangeHandler_=function(K){K=K.target;var d=this.JSC$17414_readyStateChangeThrottle_;d&&_.XJ(K)==3?(this.JSC$17412_channelDebug_.debug("Throttling readystatechange."),d.fire()):this.JSC$17414_xmlHttpHandler_(K)};
WM.prototype.JSC$17414_xmlHttpHandler_=function(K){try{if(K==this.JSC$17414_xmlHttp_)a:{var d=_.XJ(this.JSC$17414_xmlHttp_),f=this.JSC$17414_xmlHttp_.JSC$7805_lastErrorCode_,H=this.JSC$17414_xmlHttp_.getStatus();if(_.Zf&&!_.eH("420+")){if(d<4)break a}else if(d<3||d==3&&!this.JSC$17414_xmlHttp_.getResponseText())break a;this.JSC$17414_cancelled_||d!=4||f==7||(f==8||H<=0?this.JSC$17412_channel_.notifyServerReachabilityEvent(3):this.JSC$17412_channel_.notifyServerReachabilityEvent(2));KwZ(this);var D=
this.JSC$17414_xmlHttp_.getStatus();this.JSC$17414_lastStatusCode_=D;var S=this.JSC$17414_xmlHttp_.getResponseText();S||this.JSC$17412_channelDebug_.debug("No response text for uri "+this.JSC$17414_requestUri_+" status "+D);this.JSC$17414_successful_=D==200;this.JSC$17412_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17412_rid_+") [ attempt "+this.JSC$17412_retryId_+"]: "+this.JSC$17414_verb_+"\n"+this.JSC$17414_requestUri_+"\n"+d+" "+D);if(this.JSC$17414_successful_){d==4&&GQ(this);if(this.decodeChunks_){for(K=
!0;!this.JSC$17414_cancelled_&&this.JSC$17414_xmlHttpChunkStart_<S.length;){var n=dhK(this,S);if(n==kdS){d==4&&(this.JSC$17414_lastError_=4,la(15),K=!1);AC(this.JSC$17412_channelDebug_,this.JSC$17412_rid_,null,"[Incomplete Response]");break}else if(n==sZU){this.JSC$17414_lastError_=4;la(16);AC(this.JSC$17412_channelDebug_,this.JSC$17412_rid_,S,"[Invalid Chunk]");K=!1;break}else AC(this.JSC$17412_channelDebug_,this.JSC$17412_rid_,n,null),fTE(this,n)}d==4&&S.length==0&&(this.JSC$17414_lastError_=1,
la(17),K=!1);this.JSC$17414_successful_=this.JSC$17414_successful_&&K;K||(AC(this.JSC$17412_channelDebug_,this.JSC$17412_rid_,S,"[Invalid Chunked Response]"),GQ(this),HfU(this))}else AC(this.JSC$17412_channelDebug_,this.JSC$17412_rid_,S,null),fTE(this,S);this.JSC$17414_successful_&&!this.JSC$17414_cancelled_&&(d==4?this.JSC$17412_channel_.JSC$17421_onRequestComplete(this):(this.JSC$17414_successful_=!1,ptw(this)))}else D==400&&S.indexOf("Unknown SID")>0?(this.JSC$17414_lastError_=3,la(13),this.JSC$17412_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17412_rid_+")")):(this.JSC$17414_lastError_=0,la(14),this.JSC$17412_channelDebug_.warning("XMLHTTP Bad status "+D+" ("+this.JSC$17412_rid_+")")),GQ(this),HfU(this)}else this.JSC$17412_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(u){this.JSC$17412_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var dhK=function(K,d){var f=K.JSC$17414_xmlHttpChunkStart_,H=d.indexOf("\n",f);if(H==-1)return kdS;f=Number(d.substring(f,H));if(isNaN(f))return sZU;H+=1;if(H+f>d.length)return kdS;d=d.slice(H,H+f);K.JSC$17414_xmlHttpChunkStart_=H+f;return d};
WM.prototype.cancel=function(){this.JSC$17414_cancelled_=!0;GQ(this)};
var ptw=function(K){K.JSC$17414_watchDogTimeoutTime_=Date.now()+K.timeout_;DhU(K,K.timeout_)},DhU=function(K,d){if(K.JSC$17414_watchDogTimerId_!=null)throw Error("vk");
K.JSC$17414_watchDogTimerId_=N6((0,_.Om)(K.JSC$17414_onWatchDogTimeout_,K),d)},KwZ=function(K){K.JSC$17414_watchDogTimerId_&&(_.Hu.clearTimeout(K.JSC$17414_watchDogTimerId_),K.JSC$17414_watchDogTimerId_=null)};
WM.prototype.JSC$17414_onWatchDogTimeout_=function(){this.JSC$17414_watchDogTimerId_=null;var K=Date.now();K-this.JSC$17414_watchDogTimeoutTime_>=0?(this.JSC$17412_channelDebug_.info("TIMEOUT: "+this.JSC$17414_requestUri_),this.JSC$17414_type_!=2&&this.JSC$17412_channel_.notifyServerReachabilityEvent(3),GQ(this),this.JSC$17414_lastError_=2,la(18),HfU(this)):(this.JSC$17412_channelDebug_.warning("WatchDog timer called too early"),DhU(this,this.JSC$17414_watchDogTimeoutTime_-K))};
var HfU=function(K){K.JSC$17412_channel_.JSC$17421_isClosed()||K.JSC$17414_cancelled_||K.JSC$17412_channel_.JSC$17421_onRequestComplete(K)},GQ=function(K){KwZ(K);
_.kh(K.JSC$17414_readyStateChangeThrottle_);K.JSC$17414_readyStateChangeThrottle_=null;K.pollingTimer_.stop();K.JSC$17412_eventHandler_.removeAll();if(K.JSC$17414_xmlHttp_){var d=K.JSC$17414_xmlHttp_;K.JSC$17414_xmlHttp_=null;d.abort();d.dispose()}K.trident_&&(K.trident_=null)};
WM.prototype.getLastError=function(){return this.JSC$17414_lastError_};
var fTE=function(K,d){try{K.JSC$17412_channel_.JSC$17421_onRequestData(K,d),K.JSC$17412_channel_.notifyServerReachabilityEvent(4)}catch(f){}};var AC=function(K,d,f,H){var D=K.info;a:if(f&&f!="y2f%"){try{var S=JSON.parse(f);if(S)for(var n=0;n<S.length;n++)if(Array.isArray(S[n])){var u=S[n];if(!(u.length<2)){var a=u[1];if(Array.isArray(a)&&!(a.length<1)){var R=a[0];if(R!="noop"&&R!="stop")for(var F=1;F<a.length;F++)a[F]=""}}}var z=(0,_.FJ)(S);break a}catch(v){K.debug("Exception parsing expected JS array - probably was not JS");z=f;break a}z=void 0}else z=f;D.call(K,"XMLHTTP TEXT ("+d+"): "+z+(H?" "+H:""))};
Yi.prototype.debug=function(K){this.info(K)};
Yi.prototype.info=function(){};
Yi.prototype.warning=function(){};var V$c=function(K,d){this.JSC$17419_channel_=K;this.JSC$17419_channelDebug_=d;this.JSC$17419_parser_=new zQ};
_.V=V$c.prototype;_.V.JSC$17421_extraHeaders_=null;_.V.JSC$17421_request_=null;_.V.receivedIntermediateResult_=!1;_.V.JSC$17421_path_=null;_.V.state_=null;_.V.JSC$17421_lastStatusCode_=-1;_.V.JSC$17421_hostPrefix_=null;_.V.blockedPrefix_=null;
_.V.connect=function(K){this.JSC$17421_path_=K;K=SA7(this.JSC$17419_channel_,this.JSC$17421_path_);la(3);Date.now();var d=this.JSC$17419_channel_.firstTestResults_;d!=null?(this.JSC$17421_hostPrefix_=d[0],(this.blockedPrefix_=d[1])?(this.state_=1,yoE(this)):(this.state_=2,nSw(this))):(VG(K,"MODE","init"),this.JSC$17421_request_=new WM(this,this.JSC$17419_channelDebug_),this.JSC$17421_request_.JSC$17414_extraHeaders_=this.JSC$17421_extraHeaders_,eiE(this.JSC$17421_request_,K,!1,null,!0),this.state_=
0)};
var yoE=function(K){var d=ifz(K.JSC$17419_channel_,K.blockedPrefix_,"/mail/images/cleardot.gif");_.wv(d);r3K(d.toString(),5E3,(0,_.Om)(K.checkBlockedCallback_,K),3,2E3);K.notifyServerReachabilityEvent(1)};
V$c.prototype.checkBlockedCallback_=function(K){if(K)this.state_=2,nSw(this);else{la(4);var d=this.JSC$17419_channel_;d.JSC$17422_channelDebug_.debug("Test Connection Blocked");d.JSC$17426_lastStatusCode_=d.connectionTest_.JSC$17421_lastStatusCode_;TQ(d,9)}K&&this.notifyServerReachabilityEvent(2)};
var nSw=function(K){K.JSC$17419_channelDebug_.debug("TestConnection: starting stage 2");var d=K.JSC$17419_channel_.secondTestResults_;d!=null?(K.JSC$17419_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+d?"Buffered":"Unbuffered"),la(5),d?(la(11),rn(K.JSC$17419_channel_,K,!1)):(la(12),rn(K.JSC$17419_channel_,K,!0))):(K.JSC$17421_request_=new WM(K,K.JSC$17419_channelDebug_),K.JSC$17421_request_.JSC$17414_extraHeaders_=K.JSC$17421_extraHeaders_,d=coK(K.JSC$17419_channel_,
K.JSC$17421_hostPrefix_,K.JSC$17421_path_),la(5),VG(d,"TYPE","xmlhttp"),eiE(K.JSC$17421_request_,d,!1,K.JSC$17421_hostPrefix_,!1))};
_.V=V$c.prototype;_.V.JSC$17421_createXhrIo=function(K){return this.JSC$17419_channel_.JSC$17421_createXhrIo(K)};
_.V.abort=function(){this.JSC$17421_request_&&(this.JSC$17421_request_.cancel(),this.JSC$17421_request_=null);this.JSC$17421_lastStatusCode_=-1};
_.V.JSC$17421_isClosed=function(){return!1};
_.V.JSC$17421_onRequestData=function(K,d){this.JSC$17421_lastStatusCode_=K.JSC$17414_lastStatusCode_;if(this.state_==0)if(this.JSC$17419_channelDebug_.debug("TestConnection: Got data for stage 1"),d){try{var f=this.JSC$17419_parser_.parse(d)}catch(H){u2K(this.JSC$17419_channel_,this);return}this.JSC$17421_hostPrefix_=f[0];this.blockedPrefix_=f[1]}else this.JSC$17419_channelDebug_.debug("TestConnection: Null responseText"),u2K(this.JSC$17419_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(la(7),Date.now()):d=="11111"?(la(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17421_lastStatusCode_=200,this.JSC$17421_request_.cancel(),this.JSC$17419_channelDebug_.debug("Test connection succeeded; using streaming connection"),la(12),rn(this.JSC$17419_channel_,this,!0)):(la(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.V.JSC$17421_onRequestComplete=function(){this.JSC$17421_lastStatusCode_=this.JSC$17421_request_.JSC$17414_lastStatusCode_;this.JSC$17421_request_.JSC$17414_successful_?this.state_==0?(this.JSC$17419_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,yoE(this)):(this.state_=2,nSw(this))):this.state_==2&&(this.JSC$17419_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17419_channelDebug_.debug("Test connection succeeded; using streaming connection"),
la(12),rn(this.JSC$17419_channel_,this,!0)):(this.JSC$17419_channelDebug_.debug("Test connection failed; not using streaming"),la(11),rn(this.JSC$17419_channel_,this,!1))):(this.JSC$17419_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?la(9):this.state_==2&&la(10),u2K(this.JSC$17419_channel_,this,this.JSC$17421_request_.getLastError()))};
_.V.JSC$17421_shouldUseSecondaryDomains=function(){return this.JSC$17419_channel_.JSC$17421_shouldUseSecondaryDomains()};
_.V.isActive=function(){return this.JSC$17419_channel_.isActive()};
_.V.notifyServerReachabilityEvent=function(K){this.JSC$17419_channel_.notifyServerReachabilityEvent(K)};var qU=function(K,d,f){this.state_=1;this.JSC$17422_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17422_channelDebug_=new Yi;this.JSC$17422_parser_=new zQ;this.firstTestResults_=K||null;this.secondTestResults_=d!=null?d:null;this.asyncTest_=f||!1},aTw=function(K,d){this.JSC$17424_mapId=K;
this.map=d;this.context=null};
_.V=qU.prototype;_.V.JSC$17426_extraHeaders_=null;_.V.JSC$17426_extraParams_=null;_.V.forwardChannelRequest_=null;_.V.JSC$17426_backChannelRequest_=null;_.V.JSC$17426_path_=null;_.V.JSC$17426_forwardChannelUri_=null;_.V.JSC$17426_backChannelUri_=null;_.V.JSC$17426_hostPrefix_=null;_.V.JSC$17426_nextRid_=0;_.V.JSC$17426_nextMapId_=0;_.V.handler_=null;_.V.JSC$17426_forwardChannelTimerId_=null;_.V.JSC$17426_backChannelTimerId_=null;_.V.JSC$17426_deadBackChannelTimerId_=null;_.V.connectionTest_=null;
_.V.useChunked_=null;_.V.JSC$17426_lastArrayId_=-1;_.V.JSC$17426_lastPostResponseArrayId_=-1;_.V.JSC$17426_lastStatusCode_=-1;_.V.JSC$17426_forwardChannelRetryCount_=0;_.V.JSC$17426_backChannelRetryCount_=0;_.V.JSC$17426_channelVersion_=8;var ITE={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},Uhc=function(K,d,f,H){_.D5.call(this,"timingevent",K);this.size=d;this.rtt=f;this.retries=H};
_.Bd(Uhc,_.D5);var RKZ=function(K){_.D5.call(this,"serverreachability",K)};
_.Bd(RKZ,_.D5);qU.prototype.connect=function(K,d,f,H,D){this.JSC$17422_channelDebug_.debug("connect()");la(0);this.JSC$17426_path_=d;this.JSC$17426_extraParams_=f||{};H&&D!==void 0&&(this.JSC$17426_extraParams_.OSID=H,this.JSC$17426_extraParams_.OAID=D);this.asyncTest_?(N6((0,_.Om)(this.connectTest_,this,K),100),FwS(this)):this.connectTest_(K)};
qU.prototype.disconnect=function(){this.JSC$17422_channelDebug_.debug("disconnect()");zKy(this);if(this.state_==3){var K=this.JSC$17426_nextRid_++,d=this.JSC$17426_forwardChannelUri_.clone();_.Cm(d,"SID",this.sid_);_.Cm(d,"RID",K);_.Cm(d,"TYPE","terminate");Q0(this,d);K=new WM(this,this.JSC$17422_channelDebug_,this.sid_,K);K.JSC$17414_type_=2;K.JSC$17414_baseUri_=_.wv(d.clone());(new Image).src=K.JSC$17414_baseUri_.toString();K.JSC$17414_requestStartTime_=Date.now();ptw(K)}XLt(this)};
qU.prototype.connectTest_=function(K){this.JSC$17422_channelDebug_.debug("connectTest_()");this.connectionTest_=new V$c(this,this.JSC$17422_channelDebug_);this.connectionTest_.JSC$17421_extraHeaders_=this.JSC$17426_extraHeaders_;this.connectionTest_.JSC$17419_parser_=this.JSC$17422_parser_;this.connectionTest_.connect(K)};
var FwS=function(K){K.JSC$17422_channelDebug_.debug("connectChannel_()");K.JSC$17426_ensureInState_(1,0);K.JSC$17426_forwardChannelUri_=SA7(K,K.JSC$17426_path_);vSE(K)},zKy=function(K){K.connectionTest_&&(K.connectionTest_.abort(),K.connectionTest_=null);
K.JSC$17426_backChannelRequest_&&(K.JSC$17426_backChannelRequest_.cancel(),K.JSC$17426_backChannelRequest_=null);K.JSC$17426_backChannelTimerId_&&(_.Hu.clearTimeout(K.JSC$17426_backChannelTimerId_),K.JSC$17426_backChannelTimerId_=null);M$K(K);K.forwardChannelRequest_&&(K.forwardChannelRequest_.cancel(),K.forwardChannelRequest_=null);K.JSC$17426_forwardChannelTimerId_&&(_.Hu.clearTimeout(K.JSC$17426_forwardChannelTimerId_),K.JSC$17426_forwardChannelTimerId_=null)},Pe5=function(K,d){if(K.state_==0)throw Error("yk");
K.JSC$17422_outgoingMaps_.length==1E3&&K.JSC$17422_parser_.stringify(d);K.JSC$17422_outgoingMaps_.push(new aTw(K.JSC$17426_nextMapId_++,d));K.state_!=2&&K.state_!=3||vSE(K)};
qU.prototype.JSC$17421_isClosed=function(){return this.state_==0};
qU.prototype.getState=function(){return this.state_};
var vSE=function(K){K.forwardChannelRequest_||K.JSC$17426_forwardChannelTimerId_||(K.JSC$17426_forwardChannelTimerId_=N6((0,_.Om)(K.JSC$17426_onStartForwardChannelTimer_,K),0),K.JSC$17426_forwardChannelRetryCount_=0)};
qU.prototype.JSC$17426_onStartForwardChannelTimer_=function(K){this.JSC$17426_forwardChannelTimerId_=null;gSZ(this,K)};
var gSZ=function(K,d){K.JSC$17422_channelDebug_.debug("startForwardChannel_");if(K.state_==1){if(!d){K.JSC$17422_channelDebug_.debug("open_()");K.JSC$17426_nextRid_=Math.floor(Math.random()*1E5);d=K.JSC$17426_nextRid_++;var f=new WM(K,K.JSC$17422_channelDebug_,"",d);f.JSC$17414_extraHeaders_=K.JSC$17426_extraHeaders_;var H=OfE(K),D=K.JSC$17426_forwardChannelUri_.clone();_.Cm(D,"RID",d);_.Cm(D,"CVER","1");Q0(K,D);ZGK(f,D,H);K.forwardChannelRequest_=f;K.state_=2}}else K.state_==3&&(d?Nh7(K,d):K.JSC$17422_outgoingMaps_.length==
0?K.JSC$17422_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):K.forwardChannelRequest_||(Nh7(K),K.JSC$17422_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Nh7=function(K,d){if(d)if(K.JSC$17426_channelVersion_>6){K.JSC$17422_outgoingMaps_=K.pendingMaps_.concat(K.JSC$17422_outgoingMaps_);
K.pendingMaps_.length=0;var f=K.JSC$17426_nextRid_-1;d=OfE(K)}else f=d.JSC$17412_rid_,d=d.JSC$17414_postData_;else f=K.JSC$17426_nextRid_++,d=OfE(K);var H=K.JSC$17426_forwardChannelUri_.clone();_.Cm(H,"SID",K.sid_);_.Cm(H,"RID",f);_.Cm(H,"AID",K.JSC$17426_lastArrayId_);Q0(K,H);f=new WM(K,K.JSC$17422_channelDebug_,K.sid_,f,K.JSC$17426_forwardChannelRetryCount_+1);f.JSC$17414_extraHeaders_=K.JSC$17426_extraHeaders_;f.setTimeout(1E4+Math.round(1E4*Math.random()));K.forwardChannelRequest_=f;ZGK(f,H,d)},
Q0=function(K,d){K.handler_&&(K=K.handler_.JSC$17433_getAdditionalParams())&&_.PR.forEach(K,function(f,H){_.Cm(d,H,f)})},OfE=function(K){var d=Math.min(K.JSC$17422_outgoingMaps_.length,1E3),f=["count="+d];
if(K.JSC$17426_channelVersion_>6&&d>0){var H=K.JSC$17422_outgoingMaps_[0].JSC$17424_mapId;f.push("ofs="+H)}else H=0;for(var D={},S=0;S<d;D={mapId$jscomp$3:void 0},S++){D.mapId$jscomp$3=K.JSC$17422_outgoingMaps_[S].JSC$17424_mapId;var n=K.JSC$17422_outgoingMaps_[S].map;D.mapId$jscomp$3=K.JSC$17426_channelVersion_<=6?S:D.mapId$jscomp$3-H;try{_.PR.forEach(n,function(u){return function(a,R){f.push("req"+u.mapId$jscomp$3+"_"+R+"="+encodeURIComponent(a))}}(D))}catch(u){f.push("req"+D.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}K.pendingMaps_=K.pendingMaps_.concat(K.JSC$17422_outgoingMaps_.splice(0,d));
return f.join("&")},YA7=function(K){K.JSC$17426_backChannelRequest_||K.JSC$17426_backChannelTimerId_||(K.JSC$17426_backChannelAttemptId_=1,K.JSC$17426_backChannelTimerId_=N6((0,_.Om)(K.JSC$17426_onStartBackChannelTimer_,K),0),K.JSC$17426_backChannelRetryCount_=0)},oSi=function(K){if(K.JSC$17426_backChannelRequest_||K.JSC$17426_backChannelTimerId_||K.JSC$17426_backChannelRetryCount_>=3)return!1;
K.JSC$17422_channelDebug_.debug("Going to retry GET");K.JSC$17426_backChannelAttemptId_++;K.JSC$17426_backChannelTimerId_=N6((0,_.Om)(K.JSC$17426_onStartBackChannelTimer_,K),t$y(K,K.JSC$17426_backChannelRetryCount_));K.JSC$17426_backChannelRetryCount_++;return!0};
qU.prototype.JSC$17426_onStartBackChannelTimer_=function(){this.JSC$17426_backChannelTimerId_=null;this.JSC$17422_channelDebug_.debug("Creating new HttpRequest");this.JSC$17426_backChannelRequest_=new WM(this,this.JSC$17422_channelDebug_,this.sid_,"rpc",this.JSC$17426_backChannelAttemptId_);this.JSC$17426_backChannelRequest_.JSC$17414_extraHeaders_=this.JSC$17426_extraHeaders_;this.JSC$17426_backChannelRequest_.JSC$17414_readyStateChangeThrottleMs_=0;var K=this.JSC$17426_backChannelUri_.clone();_.Cm(K,
"RID","rpc");_.Cm(K,"SID",this.sid_);_.Cm(K,"CI",this.useChunked_?"0":"1");_.Cm(K,"AID",this.JSC$17426_lastArrayId_);Q0(this,K);_.Cm(K,"TYPE","xmlhttp");eiE(this.JSC$17426_backChannelRequest_,K,!0,this.JSC$17426_hostPrefix_,!1);this.JSC$17422_channelDebug_.debug("New Request created")};
var rn=function(K,d,f){K.JSC$17422_channelDebug_.debug("Test Connection Finished");K.useChunked_=K.secondTestResults_==null?f:!K.secondTestResults_;K.JSC$17426_lastStatusCode_=d.JSC$17421_lastStatusCode_;K.asyncTest_||FwS(K)},u2K=function(K,d){K.JSC$17422_channelDebug_.debug("Test Connection Failed");
K.JSC$17426_lastStatusCode_=d.JSC$17421_lastStatusCode_;TQ(K,2)};
qU.prototype.JSC$17421_onRequestData=function(K,d){if(this.state_!=0&&(this.JSC$17426_backChannelRequest_==K||this.forwardChannelRequest_==K))if(this.JSC$17426_lastStatusCode_=K.JSC$17414_lastStatusCode_,this.forwardChannelRequest_==K&&this.state_==3)if(this.JSC$17426_channelVersion_>7){try{var f=this.JSC$17422_parser_.parse(d)}catch(H){f=null}if(Array.isArray(f)&&f.length==3)if(d=f,d[0]==0)a:if(this.JSC$17422_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17426_backChannelTimerId_)this.JSC$17422_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17426_backChannelRequest_)if(this.JSC$17426_backChannelRequest_.JSC$17414_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17414_requestStartTime_)M$K(this),this.JSC$17426_backChannelRequest_.cancel(),this.JSC$17426_backChannelRequest_=null;else break a;else this.JSC$17422_channelDebug_.warning("We do not have a BackChannel established");oSi(this);la(19)}else this.JSC$17426_lastPostResponseArrayId_=d[1],K=this.JSC$17426_lastPostResponseArrayId_-this.JSC$17426_lastArrayId_,0<
K&&(d=d[2],this.JSC$17422_channelDebug_.debug(d+" bytes (in "+K+" arrays) are outstanding on the BackChannel"),d<37500&&this.useChunked_&&this.JSC$17426_backChannelRetryCount_==0&&!this.JSC$17426_deadBackChannelTimerId_&&(this.JSC$17426_deadBackChannelTimerId_=N6((0,_.Om)(this.JSC$17426_onBackChannelDead_,this),6E3)));else this.JSC$17422_channelDebug_.debug("Bad POST response data returned"),TQ(this,11)}else d!="y2f%"&&(this.JSC$17422_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
TQ(this,11));else this.JSC$17426_backChannelRequest_==K&&M$K(this),_.cu(d)||(K=this.JSC$17422_parser_.parse(d),this.onInput_(K))};
qU.prototype.JSC$17426_onBackChannelDead_=function(){this.JSC$17426_deadBackChannelTimerId_!=null&&(this.JSC$17426_deadBackChannelTimerId_=null,this.JSC$17426_backChannelRequest_.cancel(),this.JSC$17426_backChannelRequest_=null,oSi(this),la(20))};
var M$K=function(K){K.JSC$17426_deadBackChannelTimerId_!=null&&(_.Hu.clearTimeout(K.JSC$17426_deadBackChannelTimerId_),K.JSC$17426_deadBackChannelTimerId_=null)};
qU.prototype.JSC$17421_onRequestComplete=function(K){this.JSC$17422_channelDebug_.debug("Request complete");if(this.JSC$17426_backChannelRequest_==K){M$K(this);this.JSC$17426_backChannelRequest_=null;var d=2}else if(this.forwardChannelRequest_==K)this.forwardChannelRequest_=null,d=1;else return;this.JSC$17426_lastStatusCode_=K.JSC$17414_lastStatusCode_;if(this.state_!=0)if(K.JSC$17414_successful_)if(d==1){d=K.JSC$17414_postData_?K.JSC$17414_postData_.length:0;K=Date.now()-K.JSC$17414_requestStartTime_;
var f=L8w;f.dispatchEvent(new Uhc(f,d,K,this.JSC$17426_forwardChannelRetryCount_));vSE(this);this.handler_&&this.handler_.JSC$17433_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else YA7(this);else{f=K.getLastError();if(f==3||f==7||f==0&&this.JSC$17426_lastStatusCode_>0)this.JSC$17422_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17422_channelDebug_.debug("Maybe retrying, last error: "+Jzz(f,this.JSC$17426_lastStatusCode_));var H;if(H=d==1)this.forwardChannelRequest_||
this.JSC$17426_forwardChannelTimerId_||this.state_==1||this.JSC$17426_forwardChannelRetryCount_>=2?H=!1:(this.JSC$17422_channelDebug_.debug("Going to retry POST"),this.JSC$17426_forwardChannelTimerId_=N6((0,_.Om)(this.JSC$17426_onStartForwardChannelTimer_,this,K),t$y(this,this.JSC$17426_forwardChannelRetryCount_)),this.JSC$17426_forwardChannelRetryCount_++,H=!0);if(H||d==2&&oSi(this))return;this.JSC$17422_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17422_channelDebug_.debug("Error: HTTP request failed");
switch(f){case 1:TQ(this,5);break;case 4:TQ(this,10);break;case 3:TQ(this,6);break;case 7:TQ(this,12);break;default:TQ(this,2)}}};
var t$y=function(K,d){var f=5E3+Math.floor(Math.random()*1E4);K.isActive()||(K.JSC$17422_channelDebug_.debug("Inactive channel"),f*=2);return f*d};
qU.prototype.onInput_=function(K){for(var d=0;d<K.length;d++){var f=K[d];this.JSC$17426_lastArrayId_=f[0];f=f[1];this.state_==2?f[0]=="c"?(this.sid_=f[1],this.JSC$17426_hostPrefix_=f[2],f=f[3],f!=null?this.JSC$17426_channelVersion_=f:this.JSC$17426_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17433_channelOpened(),this.JSC$17426_backChannelUri_=coK(this,this.JSC$17426_hostPrefix_,this.JSC$17426_path_),YA7(this)):f[0]=="stop"&&TQ(this,7):this.state_==3&&(f[0]=="stop"?TQ(this,7):
f[0]!="noop"&&this.handler_&&this.handler_.JSC$17433_channelHandleArray(f),this.JSC$17426_backChannelRetryCount_=0)}};
qU.prototype.JSC$17426_ensureInState_=function(K){if(!_.Bu(arguments,this.state_))throw Error("zk`"+this.state_);};
var TQ=function(K,d){K.JSC$17422_channelDebug_.info("Error code "+d);if(d==2||d==9){var f=null;K.handler_&&(f=null);var H=(0,_.Om)(K.testGoogleComCallback_,K);f||(f=new _.Q8("//www.google.com/images/cleardot.gif"),_.wv(f));TUS(f.toString(),1E4,H)}else la(2);K.onError_(d)};
qU.prototype.testGoogleComCallback_=function(K){K?(this.JSC$17422_channelDebug_.info("Successfully pinged google.com"),la(2)):(this.JSC$17422_channelDebug_.info("Failed to ping google.com"),la(1),this.onError_(8))};
qU.prototype.onError_=function(K){this.JSC$17422_channelDebug_.debug("HttpChannel: error - "+K);this.state_=0;this.handler_&&this.handler_.JSC$17433_channelError(K);XLt(this);zKy(this)};
var XLt=function(K){K.state_=0;K.JSC$17426_lastStatusCode_=-1;if(K.handler_)if(K.pendingMaps_.length==0&&K.JSC$17422_outgoingMaps_.length==0)K.handler_.JSC$17433_channelClosed();else{K.JSC$17422_channelDebug_.debug("Number of undelivered maps, pending: "+K.pendingMaps_.length+", outgoing: "+K.JSC$17422_outgoingMaps_.length);var d=_.ep(K.pendingMaps_),f=_.ep(K.JSC$17422_outgoingMaps_);K.pendingMaps_.length=0;K.JSC$17422_outgoingMaps_.length=0;K.handler_.JSC$17433_channelClosed(d,f)}},SA7=function(K,
d){d=ifz(K,null,d);
K.JSC$17422_channelDebug_.debug("GetForwardChannelUri: "+d);return d},coK=function(K,d,f){d=ifz(K,K.JSC$17421_shouldUseSecondaryDomains()?d:null,f);
K.JSC$17422_channelDebug_.debug("GetBackChannelUri: "+d);return d},ifz=function(K,d,f){var H=_.QX(f);
if(H.JSC$8037_domain_!="")d&&_.jU(H,d+"."+H.JSC$8037_domain_),_.Cx(H,H.JSC$8037_port_);else{var D=window.location;H=JMw(D.protocol,d?d+"."+D.hostname:D.hostname,+D.port,f)}K.JSC$17426_extraParams_&&_.PR.forEach(K.JSC$17426_extraParams_,function(S,n){_.Cm(H,n,S)});
_.Cm(H,"VER",K.JSC$17426_channelVersion_);Q0(K,H);return H};
qU.prototype.JSC$17421_createXhrIo=function(K){if(K)throw Error("wk");K=new _.zM;K.JSC$7805_withCredentials_=!1;return K};
qU.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
qU.prototype.notifyServerReachabilityEvent=function(K){var d=L8w;d.dispatchEvent(new RKZ(d,K))};
qU.prototype.JSC$17421_shouldUseSecondaryDomains=function(){return!1};
new pPc;var $hi=function(){};
_.V=$hi.prototype;_.V.JSC$17433_channelOpened=function(){};
_.V.JSC$17433_channelHandleArray=function(){};
_.V.JSC$17433_channelSuccess=function(){};
_.V.JSC$17433_channelError=function(){};
_.V.JSC$17433_channelClosed=function(){};
_.V.JSC$17433_getAdditionalParams=function(){return{}};
_.V.isActive=function(){return!0};var ESc=function(K){K.front_.length===0&&(K.front_=K.back_,K.front_.reverse(),K.back_=[])};
_.V=QBw.prototype;_.V.enqueue=function(K){this.back_.push(K)};
_.V.peek=function(){ESc(this);return _.TS(this.front_)};
_.V.getCount=function(){return this.front_.length+this.back_.length};
_.V.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.V.clear=function(){this.front_=[];this.back_=[]};
_.V.contains=function(K){return _.Bu(this.front_,K)||_.Bu(this.back_,K)};
_.V.remove=function(K){var d=this.front_;var f=Array.prototype.lastIndexOf.call(d,K,d.length-1);f>=0?(_.sY(d,f),d=!0):d=!1;return d||_.Zn(this.back_,K)};
_.V.getValues=function(){for(var K=[],d=this.front_.length-1;d>=0;--d)K.push(this.front_[d]);d=this.back_.length;for(var f=0;f<d;++f)K.push(this.back_[f]);return K};var jL=function(K){this.JSC$17437_map_=new _.e2;this.size=0;K&&this.addAll(K)},hKw=function(K){var d=typeof K;
return d=="object"&&K||d=="function"?"o"+_.DL(K):d.charAt(0)+K};
_.V=jL.prototype;_.V.getCount=function(){return this.JSC$17437_map_.size};
_.V.add=function(K){this.JSC$17437_map_.set(hKw(K),K);this.size=this.JSC$17437_map_.size};
_.V.addAll=function(K){K=_.qf(K);for(var d=K.length,f=0;f<d;f++)this.add(K[f]);this.size=this.JSC$17437_map_.size};
_.V.removeAll=function(K){K=_.qf(K);for(var d=K.length,f=0;f<d;f++)this.remove(K[f]);this.size=this.JSC$17437_map_.size};
_.V.delete=function(K){K=this.JSC$17437_map_.remove(hKw(K));this.size=this.JSC$17437_map_.size;return K};
_.V.remove=function(K){return this.delete(K)};
_.V.clear=function(){this.JSC$17437_map_.clear();this.size=0};
_.V.isEmpty=function(){return this.JSC$17437_map_.size===0};
_.V.has=function(K){return this.JSC$17437_map_.containsKey(hKw(K))};
_.V.contains=function(K){return this.JSC$17437_map_.containsKey(hKw(K))};
_.V.getValues=function(){return this.JSC$17437_map_.getValues()};
_.V.values=function(){return this.JSC$17437_map_.values()};
_.V.clone=function(){return new jL(this)};
_.V.equals=function(K){return this.getCount()==Lxl(K)&&bfU(this,K)};
var bfU=function(K,d){var f=Lxl(d);if(K.getCount()>f)return!1;!(d instanceof jL)&&f>5&&(d=new jL(d));return BjS(K,function(H){var D=d;return D.contains&&typeof D.contains=="function"?D.contains(H):D.containsValue&&typeof D.containsValue=="function"?D.containsValue(H):_.d2(D)||typeof D==="string"?_.Bu(D,H):_.PR.containsValue(D,H)})};
jL.prototype.__iterator__=function(){return this.JSC$17437_map_.__iterator__(!1)};
jL.prototype[Symbol.iterator]=function(){return this.values()};var mhZ={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(K){return(this._clampValue(K)-this.min)/(this.max-this.min)},
_clampValue:function(K){return Math.min(this.max,Math.max(this.min,this._calcStep(K)))},
_calcStep:function(K){K=parseFloat(K);if(!this.step)return K;K=Math.round((K-this.min)/this.step);return this.step<1?K/(1/this.step)+this.min:K*this.step+this.min},
_validateValue:function(){var K=this._clampValue(this.value);this.value=this.oldValue=isNaN(K)?this.oldValue:K;return this.value!==K},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var lTc;var Ww7;_.vP({_template:function(){if(Ww7!==void 0)return Ww7;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;lTc===void 0&&(lTc=document.createElement("template"));var H=lTc;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return Ww7=K},
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(){_.jW(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(K){K.keyCode===27&&(K.preventDefault(),this.close())},
_track:function(K){if(!this.persistent&&!this.disableSwipe)switch(K.preventDefault(),K.detail.state){case "start":this._trackStart(K);break;case "track":this._trackMove(K);break;case "end":this._trackEnd(K)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var K=this.$.contentContainer.getBoundingClientRect();this._savedWidth=K.width;this._translateOffset=this.position==="left"?K.left:K.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(K){this._trackDetails&&(this._translateDrawer(K.detail.dx+this._translateOffset),this._trackDetails.push({dx:K.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(K){if(this._trackDetails){var d=K.detail.dx+this._translateOffset,f=this.getWidth();d=this.position==="left"?d>=0||d<=-f:d<=0||d>=f;if(!d){var H=this._trackDetails;this._trackDetails=null;this._flingDrawer(K,H);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}f/=2;K.detail.dx<-f?this.opened=this.position==="right":K.detail.dx>f&&(this.opened=this.position==="left");d?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(K,d){for(var f=Date.now(),H=f-100,D,S=0,n=d.length-1;S<=n;){var u=S+n>>1,a=d[u];a.timeStamp>=H?(D=a,n=u-1):S=u+1}return D?(K.detail.dx-D.dx)/(f-D.timeStamp||1):0},
_flingDrawer:function(K,d){d=this._calculateVelocity(K,d);if(!(Math.abs(d)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;K=K.detail.dx+this._translateOffset;var f=this.getWidth(),H=this.position==="left",D=d>0;D?(d=Math.max(d,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(d=Math.min(d,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");d=this._FLING_INITIAL_SLOPE*(!D&&H?-(K+f):D&&!H?f-K:-K)/d;this._styleTransitionDuration(d);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,d)}},
_styleTransitionDuration:function(K){this.style.transitionDuration=K+"ms";this.$.contentContainer.style.transitionDuration=K+"ms";this.$.scrim.style.transitionDuration=K+"ms"},
_styleTransitionTimingFunction:function(K){this.$.contentContainer.style.transitionTimingFunction=K;this.$.scrim.style.transitionTimingFunction=K},
_translateDrawer:function(K){var d=this.getWidth();this.position==="left"?(K=Math.max(-d,Math.min(K,0)),this.$.scrim.style.opacity=1+K/d):(K=Math.max(0,Math.min(K,d)),this.$.scrim.style.opacity=1-K/d);this.translate3d(K+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var K=this._drawerState;K===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;K!==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=""),K!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var K=_.Xd(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"])');K.length>0?(this._firstTabStop=K[0],this._lastTabStop=K[K.length-1]):
this._lastTabStop=this._firstTabStop=null;(K=this.getAttribute("tabindex"))&&parseInt(K,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(K){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||K.keyCode!==9||(K.shiftKey?this._firstTabStop&&_.Xd(K).localTarget===this._firstTabStop&&(K.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Xd(K).localTarget===this._lastTabStop&&(K.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(K,d){this.toggleClass("visible",K&&!d,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 GAt;var AoE;_.vP({_template:function(){if(AoE!==void 0)return AoE;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;GAt===void 0&&(GAt=document.createElement("template"));var H=GAt;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return AoE=K},
is:"tp-yt-paper-progress",behaviors:[mhZ],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(K){this.toggleClass("indeterminate",K,this.$.primaryProgress)},
_transformProgress:function(K,d){K.style.transform=K.style.webkitTransform="scaleX("+d/100+")"},
_mainRatioChanged:function(K){this._transformProgress(this.$.primaryProgress,K)},
_progressChanged:function(K,d,f,H,D){K=this._clampValue(K);d=this._clampValue(d);var S=this._calcRatio(K)*100,n=this._calcRatio(d)*100;this._setSecondaryRatio(S);this._transformProgress(this.$.secondaryProgress,S);this._transformProgress(this.$.primaryProgress,n);this.secondaryProgress=K;D?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",d);this.setAttribute("aria-valuemin",f);this.setAttribute("aria-valuemax",H)},
_disabledChanged:function(K){this.setAttribute("aria-disabled",K?"true":"false")},
_hideSecondaryProgress:function(K){return K===0}});var ThP;var row;var qAE=function(){};
_.V=qAE.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._buttonStateChanged=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._calcRatio=function(){};
_.V._clampValue=function(){};
_.V._calcStep=function(){};
_.V._validateValue=function(){};
_.V._update=function(){};
_.V._setImmediateValue=function(){};
_.V._setExpand=function(){};
_.V._setDragging=function(){};
_.V._setTransiting=function(){};
_.V._setMarkers=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
_.V._setRatio=function(){};
qAE=_.vP({_template:function(){if(row!==void 0)return row;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;ThP===void 0&&(ThP=document.createElement("template"));var H=ThP;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return row=K},
is:"tp-yt-paper-slider",behaviors:[_.u4,_.Rb,_.MCk,mhZ],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&&_.td(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(K,d,f){this.setAttribute("aria-valuemin",d);this.setAttribute("aria-valuemax",f);this.setAttribute("aria-valuenow",K);this._positionKnob(this._calcRatio(K)*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(K){this._setImmediateValue(this._calcStep(this._calcKnobPosition(K)));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(K){return(this.max-this.min)*K/100+this.min},
_onTrack:function(K){K.stopPropagation();switch(K.detail.state){case "start":this._trackStart(K);break;case "track":this._trackX(K);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(K){this.dragging||this._trackStart(K);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,K.detail.dx*(this._isRTL?-1:1)));K=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(K);K=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(K+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var K=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;K.transform=K.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(K){this._expandKnob();K.preventDefault();this.focus()},
_bartrack:function(K){this._allowBarEvent(K)&&this._onTrack(K)},
_barclick:function(K){this._w=this.$.sliderBar.offsetWidth;var d=this.$.sliderBar.getBoundingClientRect();d=(K.detail.x-d.left)/this._w*100;this._isRTL&&(d=100-d);var f=this.ratio;this._setTransiting(!0);this._positionKnob(d);f===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
K.preventDefault();this.focus()},
_bardown:function(K){this._allowBarEvent(K)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(K))},
_knobTransitionEnd:function(K){K.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(K,d,f,H){H||this._setMarkers([]);d=Math.round((f-d)/this.step);d>K&&(d=K);if(d<0||!isFinite(d))d=0;this._setMarkers(Array(d))},
_mergeClasses:function(K){return Object.keys(K).filter(function(d){return K[d]}).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(K){return!this.ignoreBarTouch||K.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(K){this._isRTL?this._incrementKey(K):this._decrementKey(K)},
_rightKey:function(K){this._isRTL?this._decrementKey(K):this._incrementKey(K)},
_incrementKey:function(K){this.disabled||(K.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),K.preventDefault())},
_decrementKey:function(K){this.disabled||(K.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),K.preventDefault())},
_changeValue:function(K){this.value=K.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(K){K.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.vPv._createRipple.call(this)},
_focusedChanged:function(K){K&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=K?"":"none",this._ripple.holdDown=K)}});var Qst;var jsK;var CX=null,CeS=function(){};
_.V=CeS.prototype;_.V.fit=function(){};
_.V._discoverInfo=function(){};
_.V.resetFit=function(){};
_.V.refit=function(){};
_.V.position=function(){};
_.V.constrain=function(){};
_.V._sizeDimension=function(){};
_.V.__sizeDimension=function(){};
_.V.center=function(){};
_.V.__getNormalizedRect=function(){};
_.V.__getOffscreenArea=function(){};
_.V.__getPosition=function(){};
_.V.notifyResize=function(){};
_.V.assignParentResizable=function(){};
_.V.stopResizeNotificationsFor=function(){};
_.V._subscribeIronResize=function(){};
_.V._unsubscribeIronResize=function(){};
_.V.resizerShouldNotify=function(){};
_.V._onDescendantIronResize=function(){};
_.V._fireResize=function(){};
_.V._onIronRequestResizeNotifications=function(){};
_.V._parentResizableChanged=function(){};
_.V._notifyDescendant=function(){};
_.V._requestResizeNotifications=function(){};
_.V._findParent=function(){};
_.V.toggle=function(){};
_.V.open=function(){};
_.V.close=function(){};
_.V.cancel=function(){};
_.V.invalidateTabbables=function(){};
_.V._ensureSetup=function(){};
_.V._canceledChanged=function(){};
_.V._withBackdropChanged=function(){};
_.V._prepareRenderOpened=function(){};
_.V._finishRenderOpened=function(){};
_.V._finishRenderClosed=function(){};
_.V._preparePositioning=function(){};
_.V._finishPositioning=function(){};
_.V._applyFocus=function(){};
_.V._onCaptureClick=function(){};
_.V._onCaptureFocus=function(){};
_.V._onCaptureEsc=function(){};
_.V._onCaptureTab=function(){};
_.V._onIronResize=function(){};
_.V._onNodesChange=function(){};
_.V.__ensureFirstLastFocusables=function(){};
_.V.__openedChanged=function(){};
_.V.__deraf=function(){};
_.V.__updateScrollObservers=function(){};
_.V.__addScrollListeners=function(){};
_.V.__removeScrollListeners=function(){};
_.V.__isValidScrollAction=function(){};
_.V.__onCaptureScroll=function(){};
_.V.__saveScrollPosition=function(){};
_.V.__restoreScrollPosition=function(){};
_.V._setCanceled=function(){};
CeS=_.vP({_template:function(){if(jsK!==void 0)return jsK;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Qst===void 0&&(Qst=document.createElement("template"));var H=Qst;f.call(d,H.content.cloneNode(!0),K.content.firstChild);return jsK=K},
is:"tp-yt-paper-toast",behaviors:[_.GH],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(){_.aU._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.hf.requestAvailability()},
show:function(K){typeof K=="string"&&(K={text:K});for(var d in K)d.indexOf("_")===0?_.aU._warn('The property "'+d+'" is private and was not set.'):d in this?this[d]=K[d]:_.aU._warn('The property "'+d+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(K){K&&K.target===this&&K.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(CX&&CX!==this&&CX.close(),CX=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):CX===this&&(CX=null);_.W3._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(K){this.positionTarget=K},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var xhy=new _.Z("disablePersonalizationAction");var lRz=new _.Z("showDmaConsentFlowCommand");var WSz=new _.Z("showMmgNoticeCommand");var LwK=new _.Z("saveConsentAction");var Bhi=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hx(K)};
_.O(Bhi,_.Ti);var Jo7=_.fMn(Bhi);var ssz=new _.Z("updateTopbarAvatarAction");var kAw=new _.Z("channelHandleValidationResultRenderer");var wLS=new _.Z("generateHandleFromNameResultRenderer");var ZfZ=new _.Z("channelHandleInputRenderer");var eK5=new _.Z("copyLinkRenderer");var pLc=new _.Z("timedCommand");var K1S=new _.Z("clearCookieAction");var d_5=new _.Z("getMultiPageMenuAction");var fzz=new _.Z("addToGuideSectionAction"),HTK=new _.Z("removeFromGuideSectionAction");var D_Z=new _.Z("updateNotificationsUnseenCountAction");var V2U=new _.Z("resetChannelUnreadCountCommand");var ShS=new _.Z("resetSubscriptionsUnreadDotCommand");var ylP=new _.Z("selectLanguageCommand");var kuU=new _.Z("sendFeedbackAction");var n1K=new _.Z("uploadImageToScottyCommand");var iTU=new _.Z("registerPromoCommand");var clc=new _.Z("setPushNotificationsEnabledCommand");var ucz=new _.Z("desktopTopbarRenderer");var azz=new _.Z("surveyFollowUpRenderer");var Izy=new _.Z("handlesClaimingRadioOptionRenderer");var U_U=new _.Z("hotkeyDialogRenderer");var Rei=new _.Z("modifyReportFormCommand");var F1Z=new _.Z("accountLinkCommand");var zeU=new _.Z("accountUnlinkCommand");var XEy=new _.Z("logAccountLinkingEventCommand");var v1t=new _.Z("guideCollapsibleEntryRenderer");var M2t=new _.Z("guideDownloadsEntryRenderer");var xg=new _.Z("guideEntryRenderer");var PVZ=new _.Z("getLocationCommand");var g17=new _.Z("locationCollectionCommand");var OTy=new _.Z("storiesItemViewModel");var Nkt=new _.Z("addToRemoteQueueAction");var Yhl=new _.Z("insertInRemoteQueueAction");var t2i=new _.Z("removeFromRemoteQueueAction");var o1c=new _.Z("notificationRenderer");var XJP=new _.Z("localWatchHistoryCommand");var $_5=new _.Z("pdgBuyFlowHeaderRenderer");var E1c=new _.Z("pdgColorSliderRenderer");var hez=new _.Z("pdgCommentOptionRenderer");var bTZ=new _.Z("pdgCommentPreviewRenderer");var m_P=new _.Z("superVodSelectableItemButtonRenderer");var lzy=new _.Z("switchButtonRenderer");var W1P=new _.Z("upsellDialogRenderer");var G3z=new _.Z("feedbackQuestionRenderer"),AlK=new _.Z("feedbackOptionRenderer");var TkZ=new _.Z("sponsorshipsTierRenderer"),rlw=new _.Z("sponsorshipsPromotionChannelRenderer");var qht=new _.Z("simpleSurveyMessageRenderer");var k0c=new _.Z("invokeInstrumentManagerAction");var QUK=new _.Z("logYpcFlowDismissCommand");var jUS=new _.Z("logYpcFlowStartCommand");var CVK=new _.Z("unlimitedCreateFamilyEndpoint");var x_z=new _.Z("iconBadgeRenderer");var vJz=new _.Z("collaborativePlaylistVisibilityValidationRule");var L1y=function(K){_.D5.call(this,"channelMessage");this.message=K};
_.O(L1y,_.D5);var BkZ=function(K){_.D5.call(this,"channelError");this.error=K};
_.O(BkZ,_.D5);var Jlz={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"},sUt={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},k3w={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},wE5={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},ZTS={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var LX=function(K){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 _.e2;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";K&&(this.id=K.id||K.name,this.name=K.name,this.clientName=K.clientName?K.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=K.app,this.type=K.type||"REMOTE_CONTROL",this.username=K.user||"",this.avatar=K.userAvatarUri||"",this.obfuscatedGaiaId=K.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=K.ownerObfuscatedGaiaId||"",this.theme=K.theme||"u",eez(this,K.capabilities||""),pEz(this,K.compatibleSenderThemes||""),KlP(this,K.experiments||""),
this.remoteControllerUrl=K.remoteControllerUrl||"",this.localChannelEncryptionKey=K.localChannelEncryptionKey||"",this.deviceContext=K.deviceContext,this.brand=K.brand||"",this.model=K.model||"",this.year=K.year||0,this.os=K.os||"",this.osVersion=K.osVersion||"",this.chipset=K.chipset||"",this.mdxDialServerType=K.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=K.pairingType||"unknown",K=K.deviceInfo)&&(K=JSON.parse(K),this.brand=K.brand||"",this.model=K.model||"",this.year=K.year||
0,this.os=K.os||"",this.osVersion=K.osVersion||"",this.chipset=K.chipset||"",this.clientName=K.clientName?K.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=K.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
LX.prototype.copy=function(){var K={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&&(K.brand=this.brand);
this.model&&(K.model=this.model);this.year&&(K.year=this.year);this.os&&(K.os=this.os);this.osVersion&&(K.osVersion=this.osVersion);this.chipset&&(K.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(K.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(K.mdxDialServerType=this.mdxDialServerType);K=new LX(K);K.connected=this.connected;K.remoteControllerUrl=this.remoteControllerUrl;K.localChannelEncryptionKey=this.localChannelEncryptionKey;K.deviceContext=
this.deviceContext;return K};
LX.prototype.equals=function(K){return K?this.id==K.id:!1};
var eez=function(K,d){K.capabilities.clear();_.Jm(d.split(","),_.uB(_.PR.contains,Jlz)).forEach(function(f){K.capabilities.add(f)})},pEz=function(K,d){K.compatibleSenderThemes.clear();
_.Jm(d.split(","),_.uB(_.PR.contains,sUt)).forEach(function(f){K.compatibleSenderThemes.add(f)})},KlP=function(K,d){K.experiments.clear();
d.split(",").forEach(function(f){K.experiments.add(f)})};var dgZ=function(K,d){this.action=K;this.params=d||{}};_.Bd(jBP,_.gG);_.V=jBP.prototype;_.V.JSC$17473_onTick_=function(){this.JSC$17471_interval_=Math.min(3E5,this.JSC$17471_interval_*2);this.JSC$17473_listener_();this.nextTickTime_&&this.start()};
_.V.start=function(){var K=this.JSC$17471_interval_+15E3*Math.random(),d=this.delay_;d.isActive()||d.start(K);this.nextTickTime_=Date.now()+K};
_.V.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.V.isActive=function(){return this.delay_.isActive()};
_.V.reset=function(){this.delay_.stop();this.JSC$17471_interval_=5E3};_.Bd(tK,$hi);_.V=tK.prototype;_.V.subscribe=function(K,d,f){return this.pubsub_.subscribe(K,d,f)};
_.V.unsubscribe=function(K,d,f){return this.pubsub_.unsubscribe(K,d,f)};
_.V.unsubscribeByKey=function(K){return this.pubsub_.unsubscribeByKey(K)};
_.V.publish=function(K,d){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.V.dispose=function(){this.JSC$17474_disposed_||(this.JSC$17474_disposed_=!0,_.kh(this.pubsub_),this.disconnect(),_.kh(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17474_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.HG({})})};
_.V.isDisposed=function(){return this.JSC$17474_disposed_};
_.V.connect=function(K,d,f){var H=this,D,S,n,u;return _.c(function(a){if(a.nextAddress==1)return _.Sl(a,2),H.useAsyncBrowserChannelHandler_?_.I(a,H.connectPromise_,2):a.jumpTo(2);_.Vu(a);if(H.JSC$17474_disposed_||H.JSC$17474_channel_&&H.JSC$17474_channel_.getState()==2)return a.return();H.sCookie_="";H.reconnectTimer_.stop();H.connectionParams_=K||null;H.connectUi_=d||0;D=H.JSC$17474_pathPrefix_+"/test";S=H.JSC$17474_pathPrefix_+"/bind";n=new qU(f?f.firstTestResults:null,f?f.secondTestResults:null,
H.enableAsyncTest_);if(u=H.JSC$17474_channel_)u.handler_=null;n.handler_=H;H.JSC$17474_channel_=n;if(H.useAsyncBrowserChannelHandler_)return H.connectPromise_=fP5(H).then(function(){return HhZ(H,D,S,u,f)}),a.return(H.connectPromise_.then(function(){H.connectPromise_=_.HG()}));
HhZ(H,D,S,u,f);return _.yu(a,0)})};
var HhZ=function(K,d,f,H,D){Dgz(K);if(K.JSC$17474_channel_){var S=_.mD("ID_TOKEN"),n=K.JSC$17474_channel_.JSC$17426_extraHeaders_||{};S?n["x-youtube-identity-token"]=S:delete n["x-youtube-identity-token"];K.JSC$17474_channel_.JSC$17426_extraHeaders_=n}Vxy(K);H?(H.getState(),K.JSC$17474_channel_.connect(d,f,K.defaultQueryParams_,H.sid_,H.JSC$17426_lastArrayId_)):D?K.JSC$17474_channel_.connect(d,f,K.defaultQueryParams_,D.sessionId,D.arrayId):K.JSC$17474_channel_.connect(d,f,K.defaultQueryParams_)};
tK.prototype.disconnect=function(K){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.HG())}finally{this.disconnectUi_=K||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Dgz(this),this.JSC$17474_channel_&&(this.JSC$17474_channel_.getState()==3&&gSZ(this.JSC$17474_channel_),this.JSC$17474_channel_.disconnect()),this.disconnectUi_=0}};
tK.prototype.sendMessage=function(K,d){var f=this,H;return _.c(function(D){switch(D.nextAddress){case 1:_.Sl(D,2);if(!f.useAsyncBrowserChannelHandler_){D.jumpTo(2);break}return _.I(D,f.connectPromise_,2);case 2:_.Vu(D);if(f.JSC$17474_disposed_)return D.return();H={_sc:K};d&&_.PR.extend(H,d);if(f.reconnectTimer_.isActive()||(f.JSC$17474_channel_?f.JSC$17474_channel_.getState():0)==2){f.JSC$17474_pendingMessages_.push(H);D.jumpTo(6);break}if(!f.isChannelOpened()){D.jumpTo(6);break}_.Sl(D,8);if(!f.useAsyncBrowserChannelHandler_||
SKz(f,K)){D.jumpTo(8);break}return _.I(D,fP5(f),8);case 8:_.Vu(D,0,0,1);f.isChannelOpened()&&(SKz(f,K)||Vxy(f),Dgz(f),Pe5(f.JSC$17474_channel_,H));_.yu(D,6,1);break;case 6:_.yu(D,0)}})};
var SKz=function(K,d){return K.enableMdxAuthForConnectionOnly_?!0:K.disableMdxAuthForAdMessages_?Object.values(k3w).includes(d):K.disableMdxAuthForNonPlaybackMessages_?!Object.values(wE5).includes(d):K.disableMdxAuthForShortsMessages_?Object.values(ZTS).includes(d):!1};
tK.prototype.JSC$17433_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17474_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)yfE(this);else{var K=this.JSC$17474_pendingMessages_;this.JSC$17474_pendingMessages_=[];var d=K.length;Vxy(this);n5c(this,K,d);ihz(this)}else ihz(this)};
var yfE=function(K){var d,f;_.c(function(H){if(H.nextAddress==1)return _.Sl(H,2),_.I(H,fP5(K),2);_.Vu(H);d=K.JSC$17474_pendingMessages_;K.JSC$17474_pendingMessages_=[];f=d.length;n5c(K,d,f);ihz(K);return _.yu(H,0)})},n5c=function(K,d,f){for(var H=0;H<f;++H)Pe5(K.JSC$17474_channel_,d[H]);
ihz(K)},ihz=function(K){K.publish("handlerOpened");
K.JSC$17474_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.V=tK.prototype;_.V.JSC$17433_channelError=function(K){var d=K==2&&this.JSC$17474_channel_.JSC$17426_lastStatusCode_==401;K==4||d||this.reconnectTimer_.start();this.publish("handlerError",K,d);d=Object.keys(ITE).find(function(f){return ITE[f]===K});
this.JSC$17474_channelErrorCounter.increment("BROWSER_CHANNEL",d!=null?d:"UNKNOWN")};
_.V.JSC$17433_channelClosed=function(K,d){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(d)for(var f=d.length,H=0;H<f;++H){var D=d[H].map;D&&this.JSC$17474_pendingMessages_.push(D)}this.JSC$17474_channelClosedCounter.increment("BROWSER_CHANNEL");K&&this.pendingMapsOnClosedCounter.JSC$7938_streamzService.JSC$7796_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",K.length);d&&this.undeliveredMapsOnClosedCounter.JSC$7941_streamzService.JSC$7796_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
d.length)};
_.V.JSC$17433_channelSuccess=function(K,d){d!=null&&K!=null&&this.channelMessageSentCounter.increment()};
_.V.JSC$17433_getAdditionalParams=function(){var K={v:2};this.sCookie_&&(K.gsessionid=this.sCookie_);this.connectUi_!=0&&(K.ui=""+this.connectUi_);this.disconnectUi_!=0&&(K.ui=""+this.disconnectUi_);this.connectionParams_&&_.PR.extend(K,this.connectionParams_);return K};
_.V.JSC$17433_channelHandleArray=function(K){K[0]=="S"?this.sCookie_=K[1]:K[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17474_channel_.disconnect()):this.publish("handlerMessage",new dgZ(K[0],K[1]));this.JSC$17474_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.V.isChannelOpened=function(){return!!this.JSC$17474_channel_&&this.JSC$17474_channel_.getState()==3};
var Dgz=function(K){if(K.JSC$17474_channel_){var d=K.JSC$17474_getXsrfToken_(),f=K.JSC$17474_channel_.JSC$17426_extraHeaders_||{};d?f["x-youtube-lounge-xsrf-token"]=d:delete f["x-youtube-lounge-xsrf-token"];K.JSC$17474_channel_.JSC$17426_extraHeaders_=f}},fP5=function(K){if(K.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.HG();
if(!K.enableCachedUpdateAuthorizationHeader_)return cfz(K);K.updateAuthorizationHeaderPromise_===null&&(K.updateAuthorizationHeaderPromise_=cfz(K));return K.updateAuthorizationHeaderPromise_},cfz=function(K){return _.It(K.getAuthorizationHeader_().then(function(d){uuy(K,d)}).thenCatch(function(){}),function(){K.updateAuthorizationHeaderPromise_=null})},uuy=function(K,d){if(K.JSC$17474_channel_){var f=K.JSC$17474_channel_.JSC$17426_extraHeaders_||{};
d&&Object.keys(d).length>0?f=Object.assign({},f,d):delete f.Authorization;K.JSC$17474_channel_.JSC$17426_extraHeaders_=f}},Vxy=function(K){K.getAuthorizationHeaderSync_&&!K.useAsyncBrowserChannelHandler_&&uuy(K,K.getAuthorizationHeaderSync_())};
_.V=tK.prototype;_.V.setLoungeToken=function(K){(this.defaultQueryParams_.loungeIdToken=K)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17474_channel_){var d=this.JSC$17474_channel_.JSC$17426_extraHeaders_||{};K?d["X-YouTube-LoungeId-Token"]=K:delete d["X-YouTube-LoungeId-Token"];this.JSC$17474_channel_.JSC$17426_extraHeaders_=d}};
_.V.getDeviceId=function(){return this.defaultQueryParams_.id};
_.V.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.V.reconnect=function(){var K=this.reconnectTimer_;K.delay_.fire();K.start()};
_.V.safeReconnect_=function(){var K=this.JSC$17474_channel_,d=0;K.JSC$17426_backChannelRequest_&&d++;K.forwardChannelRequest_&&d++;d==0&&this.connect(this.connectionParams_,this.connectUi_)};var lE=function(K,d){var f=K.basePath;K.supportCors&&(f=K.scheme+"://"+K.domain+K.port+K.basePath);return _.LQ(f+d,{})};
oK.prototype.sendRequest=function(K,d,f,H,D,S,n){K={format:S?"RAW":"JSON",method:K,context:this,timeout:5E3,withCredentials:!!n,onSuccess:_.uB(this.JSC$17479_onSuccess_,H,!S),onError:_.uB(this.onError_,D),onTimeout:_.uB(this.JSC$17479_onTimeout_,D)};f&&(K.postParams=f,K.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.iH(d,K)};
oK.prototype.JSC$17479_onSuccess_=function(K,d,f,H){d?K(H):K({text:f.responseText})};
oK.prototype.onError_=function(K,d){K(Error("Ak`"+d.status))};
oK.prototype.JSC$17479_onTimeout_=function(K){K(Error("Bk"))};var Eq=function(K,d){return!!d&&(K.id==d||K.uuid==d)},aPP=function(K){return{name:K.name,
screenId:K.id,loungeToken:K.token,dialId:K.uuid,screenIdType:K.idType}},IPw=function(K){return new $i(K)},Ugw=function(K){return Array.isArray(K)?_.O7(K,IPw):[]},Z3P=function(K){if(!K)return"null";
var d=K.token?".."+K.token.slice(-6):"-",f=K.uuid?".."+K.uuid.slice(-6):"-";return'{name:"'+K.name+'",id:'+K.id.substr(0,6)+"..,token:"+(d+",uuid:"+f+",idType:"+K.idType+"}")},YSy=function(K){return Array.isArray(K)?"["+_.O7(K,Z3P).join(",")+"]":"null"};var VWU="",m6=null;var U5K=function(K,d){_.iJ.call(this);var f=this;this.handler=K();this.handler.subscribe("handlerOpened",this.JSC$17486_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(H,D){f.onError(D)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=d};
_.O(U5K,_.iJ);_.V=U5K.prototype;_.V.connect=function(K,d,f){this.handler.connect(K,d,f)};
_.V.disconnect=function(K){this.handler.disconnect(K)};
_.V.reconnect=function(){this.handler.reconnect()};
_.V.getDeviceId=function(){return this.handler.getDeviceId()};
_.V.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.V.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.V.JSC$17486_onOpened=function(){this.dispatchEvent("channelOpened");var K=this.handler,d=this.currentScreenId;_.p5("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!K.JSC$17474_channel_.useChunked_,sessionId:K.JSC$17474_channel_.sid_,arrayId:K.JSC$17474_channel_.JSC$17426_lastArrayId_});_.p5("yt-remote-session-screen-id",d);K=pa5();d=KkP();_.Bu(K,d)||K.push(d);D5S(K);H3z()};
_.V.onClosed=function(){this.dispatchEvent("channelClosed")};
_.V.onMessage=function(K){this.dispatchEvent(new L1y(K))};
_.V.onError=function(K){this.dispatchEvent(new BkZ(K?1:0))};
_.V.sendMessage=function(K,d){this.handler.sendMessage(K,d)};
_.V.setLoungeToken=function(K){this.handler.setLoungeToken(K)};
_.V.dispose=function(){this.handler.dispose()};var Itl=function(K,d,f){var H=this;f=f===void 0?function(){return""}:f;
var D=D===void 0?new qty:D;var S=S===void 0?new _.uH:S;this.pathPrefix=K;this.defaultQueryParams=d;this.getXsrfToken=f;this.JSC$17489_pubsub=S;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new jBP(function(){var n;((n=H.channel)==null?void 0:RiS((new CSc(n,n.JSC$17397_channel_)).JSC$17407_channel_.forwardChannelRequestPool_))===0&&H.connect(H.connectionParams,H.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17489_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17489_channelOpenedCounter=new Cp5;this.JSC$17489_channelClosedCounter=new xFU;this.JSC$17489_channelMessageReceivedCounter=new BUw;this.JSC$17489_channelErrorCounter=new J3P};
Itl.prototype.connect=function(K,d){K=K===void 0?{}:K;d=d===void 0?0:d;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=K,this.connectUi=d,RF5(this),(K=_.mD("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=K: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 mO(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,FlU(this))};
var FlU=function(K){_.zG(K.channel,"w",function(){K.channelState=3;K.reconnectTimer.reset();K.connectionParams=null;K.connectUi=0;for(var d=_.y(K.nonAckedMessagesOnChannelClosed),f=d.next();!f.done;f=d.next())f=f.value,K.channel&&K.channel.send(f);K.nonAckedMessagesOnChannelClosed=[];K.publish("webChannelOpened");K.JSC$17489_channelOpenedCounter.increment("WEB_CHANNEL")});
_.zG(K.channel,"x",function(){K.channelState=0;K.reconnectTimer.isActive()||K.publish("webChannelClosed");var d,f=(d=K.channel)==null?void 0:x0z(new CSc(d,d.JSC$17397_channel_));f&&(K.nonAckedMessagesOnChannelClosed=[].concat(_.Me(f)));K.JSC$17489_channelClosedCounter.increment("WEB_CHANNEL")});
_.zG(K.channel,"z",function(d){var f=d.data;f[0]==="gracefulReconnect"?(K.reconnectTimer.start(),K.channel&&K.channel.close()):K.publish("webChannelMessage",new dgZ(f[0],f[1]));K.lastStatusCode=d.statusCode;K.JSC$17489_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.zG(K.channel,"y",function(){K.lastStatusCode===401||K.reconnectTimer.start();K.publish("webChannelError");K.JSC$17489_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.V=Itl.prototype;_.V.disconnect=function(K){this.disconnectUi=K===void 0?0:K;this.reconnectTimer.stop();RF5(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.V.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.V.reconnect=function(){var K=this.reconnectTimer;K.delay_.fire();K.start()};
_.V.sendMessage=function(K,d){this.channel&&(RF5(this),K=Object.assign({},{_sc:K},d),this.channel.send(K))};
_.V.setLoungeToken=function(K){K||this.reconnectTimer.stop();K?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=K:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var RF5=function(K){var d=K.getXsrfToken();d?K.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=d:delete K.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.V=Itl.prototype;_.V.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.V.publish=function(K){return this.JSC$17489_pubsub.publish.apply(this.JSC$17489_pubsub,[K].concat(_.Me(_.Pg.apply(1,arguments))))};
_.V.subscribe=function(K,d,f){return this.JSC$17489_pubsub.subscribe(K,d,f)};
_.V.unsubscribe=function(K,d,f){return this.JSC$17489_pubsub.unsubscribe(K,d,f)};
_.V.unsubscribeByKey=function(K){return this.JSC$17489_pubsub.unsubscribeByKey(K)};
_.V.dispose=function(){this.JSC$17489_disposed||(this.JSC$17489_disposed=!0,_.kh(this.JSC$17489_pubsub),this.disconnect(),_.kh(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.V.isDisposed=function(){return this.JSC$17489_disposed};var atE=function(K){_.iJ.call(this);this.webChannelService=K();this.webChannelService.subscribe("webChannelOpened",this.JSC$17497_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.O(atE,_.iJ);_.V=atE.prototype;_.V.connect=function(K,d){this.webChannelService.connect(K,d)};
_.V.disconnect=function(K){this.webChannelService.disconnect(K)};
_.V.reconnect=function(){this.webChannelService.reconnect()};
_.V.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.V.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.V.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.V.JSC$17497_onOpened=function(){this.dispatchEvent("channelOpened")};
_.V.onClosed=function(){this.dispatchEvent("channelClosed")};
_.V.onMessage=function(K){this.dispatchEvent(new L1y(K))};
_.V.onError=function(){this.dispatchEvent(new BkZ(this.webChannelService.lastStatusCode===401?1:0))};
_.V.sendMessage=function(K,d){this.webChannelService.sendMessage(K,d)};
_.V.setLoungeToken=function(K){this.webChannelService.setLoungeToken(K)};
_.V.dispose=function(){this.webChannelService.dispose()};var NXi=Date.now(),Wf=null,g$t=Array(50),TR=-1,O35=!1;_.Bd(ro,_.sT);ro.prototype.getScreens=function(){return this.screens};
ro.prototype.contains=function(K){return!!edt(this.screens,K)};
ro.prototype.get=function(K){return K?hK(this.screens,K):null};
var zFP=function(K,d){var f=K.get(d.uuid)||K.get(d.id);if(f)return K=f.name,f.id=d.id||f.id,f.name=d.name,f.token=d.token,f.uuid=d.uuid||f.uuid,f.name!=K;K.screens.push(d);return!0},X3t=function(K,d){var f=K.screens.length!=d.length;
K.screens=_.Jm(K.screens,function(S){return!!edt(d,S)});
for(var H=d.length,D=0;D<H;D++)f=zFP(K,d[D])||f;return f},v5l=function(K,d){var f=K.screens.length;
K.screens=_.Jm(K.screens,function(H){return!(H||d?!H!=!d?0:H.id==d.id:1)});
return K.screens.length<f};
ro.prototype.info=function(K){GR(this.JSC$17498_logName_,K)};var Mxt=function(K,d,f,H,D){_.sT.call(this);this.JSC$17501_http_=K;this.pairingCode_=d;this.deviceId_=f;this.friendlyName_=H;this.enableShortLivedLoungeToken_=D;this.pollIndex_=0;this.JSC$17501_xhr_=null;this.JSC$17501_timer_=NaN};
_.O(Mxt,_.sT);_.V=Mxt.prototype;_.V.start=function(){!this.JSC$17501_xhr_&&isNaN(this.JSC$17501_timer_)&&this.poll_()};
_.V.stop=function(){this.JSC$17501_xhr_&&(this.JSC$17501_xhr_.abort(),this.JSC$17501_xhr_=null);isNaN(this.JSC$17501_timer_)||(_.yK(this.JSC$17501_timer_),this.JSC$17501_timer_=NaN)};
_.V.disposeInternal=function(){this.stop();_.sT.prototype.disposeInternal.call(this)};
_.V.poll_=function(){this.JSC$17501_timer_=NaN;this.JSC$17501_xhr_=_.iH(lE(this.JSC$17501_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Om)(this.JSC$17503_onSuccess_,this),onError:(0,_.Om)(this.onError_,this),onTimeout:(0,_.Om)(this.JSC$17503_onTimeout_,this)})};
_.V.JSC$17503_onSuccess_=function(K,d){this.JSC$17501_xhr_=null;K=d.screen||{};K.dialId=this.deviceId_;K.name=this.friendlyName_;d=-1;this.enableShortLivedLoungeToken_&&K.shortLivedLoungeToken&&K.shortLivedLoungeToken.value&&K.shortLivedLoungeToken.refreshIntervalMs&&(K.screenIdType="shortLived",K.loungeToken=K.shortLivedLoungeToken.value,d=K.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new $i(K),d)};
_.V.onError_=function(K){this.JSC$17501_xhr_=null;K.status&&K.status==404?this.pollIndex_>=P45.length?this.publish("pairingFailed",Error("Ck")):(K=P45[this.pollIndex_],this.JSC$17501_timer_=_.VK((0,_.Om)(this.poll_,this),K),this.pollIndex_++):this.publish("pairingFailed",Error("Dk`"+K.status))};
_.V.JSC$17503_onTimeout_=function(){this.JSC$17501_xhr_=null;this.publish("pairingFailed",Error("Ek"))};
var P45=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Bd(Q6,ro);_.V=Q6.prototype;_.V.start=function(){q6(this)&&this.publish("screenChange");!_.KI("yt-remote-lounge-token-expiration")&&g5i(this);_.yK(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.VK((0,_.Om)(this.start,this),1E4)};
_.V.add=function(K,d){q6(this);zFP(this,K);Ohw(this,!1);this.publish("screenChange");d(K);K.token||g5i(this)};
_.V.remove=function(K,d){var f=q6(this);v5l(this,K)&&(Ohw(this,!1),f=!0);d(K);f&&this.publish("screenChange")};
_.V.updateName=function(K,d,f,H){var D=q6(this),S=this.get(K.id);S?(S.name!=d&&(S.name=d,Ohw(this,!1),D=!0),f(K)):H(Error("Fk"));D&&this.publish("screenChange")};
_.V.disposeInternal=function(){_.yK(this.loungeTokenRefreshTimer_);Q6.superClass_.disposeInternal.call(this)};
var g5i=function(K){if(K.screens.length){var d=_.O7(K.screens,function(H){return H.id}),f=lE(K.JSC$17505_http_,"/pairing/get_lounge_token_batch");
K.JSC$17505_http_.sendRequest("POST",f,{screen_ids:d.join(",")},(0,_.Om)(K.handleLoungeTokens_,K),(0,_.Om)(K.handleLoungeTokenError_,K))}};
Q6.prototype.handleLoungeTokens_=function(K){q6(this);var d=this.screens.length;K=K&&K.screens||[];for(var f=K.length,H=0;H<f;++H){var D=K[H],S=this.get(D.screenId);S&&(S.token=D.loungeToken,--d)}Ohw(this,!d);d&&GR(this.JSC$17498_logName_,"Missed "+d+" lounge tokens.")};
Q6.prototype.handleLoungeTokenError_=function(K){GR(this.JSC$17498_logName_,"Requesting lounge tokens failed: "+K)};
var q6=function(K){if(_.M("deprecate_pair_servlet_enabled"))return X3t(K,[]);var d=Ugw(ydy());d=_.Jm(d,function(f){return!f.uuid});
return X3t(K,d)},Ohw=function(K,d){i3K(_.O7(K.screens,aPP));
d&&n$5()};var BM=function(K,d){_.sT.call(this);this.getScreensToCheck_=d;d=(d=_.KI("yt-remote-online-screen-ids")||"")?d.split(","):[];for(var f={},H=this.getScreensToCheck_(),D=H.length,S=0;S<D;++S){var n=H[S].id;f[n]=_.Bu(d,n)}this.screenIdSet_=f;this.JSC$17508_http_=K;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;NOw("Initialized with "+(0,_.FJ)(this.screenIdSet_))};
_.O(BM,_.sT);BM.prototype.isOnline=function(K){return!!this.screenIdSet_[K]};
BM.prototype.start=function(){var K=parseInt(_.KI("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.Ls()-144E5<K?0:K)?YKc(this):(this.fastCheckEndTime_=_.Ls()+3E5,_.p5("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
BM.prototype.isEmpty=function(){return _.PR.isEmpty(this.screenIdSet_)};
BM.prototype.update=function(){NOw("Updating availability on schedule.");var K=this.getScreensToCheck_(),d=_.PR.filter(this.screenIdSet_,function(f,H){return f&&!!hK(K,H)},this);
txc(this,d)};
var o5Z=function(K,d,f){var H=lE(K.JSC$17508_http_,"/pairing/get_screen_availability");K.JSC$17508_http_.sendRequest("POST",H,{lounge_token:d.token},(0,_.Om)(function(D){D=D.screens||[];for(var S=D.length,n=0;n<S;++n)if(D[n].loungeToken==d.token){f(D[n].status=="online");return}f(!1)},K),(0,_.Om)(function(){f(!1)},K))};
BM.prototype.disposeInternal=function(){_.yK(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.sT.prototype.disposeInternal.call(this)};
var txc=function(K,d){a:if(_.PR.getCount(d)!=_.PR.getCount(K.screenIdSet_))var f=!1;else{f=_.PR.getKeys(d);for(var H=f.length,D=0;D<H;++D)if(!K.screenIdSet_[f[D]]){f=!1;break a}f=!0}f||(NOw("Updated online screens: "+(0,_.FJ)(K.screenIdSet_)),K.screenIdSet_=d,K.publish("screenChange"));$gz(K)},YKc=function(K){isNaN(K.refreshTimer_)||_.yK(K.refreshTimer_);
K.refreshTimer_=_.VK((0,_.Om)(K.requestScreenAvailability_,K),K.fastCheckEndTime_>0&&K.fastCheckEndTime_<_.Ls()?2E4:1E4)};
BM.prototype.requestScreenAvailability_=function(){_.yK(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var K=E5S(this);if(_.PR.getCount(K)){var d=lE(this.JSC$17508_http_,"/pairing/get_screen_availability"),f={lounge_token:_.PR.getKeys(K).join(",")};this.currentRequest_=this.JSC$17508_http_.sendRequest("POST",d,f,(0,_.Om)(this.onScreenAvailability_,this,K),(0,_.Om)(this.onScreenAvailabilityError_,this))}else txc(this,{}),YKc(this)};
BM.prototype.onScreenAvailability_=function(K,d){this.currentRequest_=null;var f=_.PR.getKeys(E5S(this));if(_.If(f,_.PR.getKeys(K))){d=d.screens||[];f={};for(var H=d.length,D=0;D<H;++D)f[K[d[D].loungeToken]]=d[D].status=="online";txc(this,f);YKc(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
BM.prototype.onScreenAvailabilityError_=function(K){this.warn_("Screen availability failed: "+K);this.currentRequest_=null;YKc(this)};
var NOw=function(K){GR("OnlineScreenService",K)};
BM.prototype.warn_=function(K){GR("OnlineScreenService",K)};
var E5S=function(K){var d={};_.QB(K.getScreensToCheck_(),function(f){f.token?d[f.token]=f.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return d},$gz=function(K){K=_.PR.getKeys(_.PR.filter(K.screenIdSet_,function(d){return d}));
K.sort(_.yv);K.length?_.p5("yt-remote-online-screen-ids",K.join(","),60):_.ds("yt-remote-online-screen-ids")};_.Bd(jg,ro);_.V=jg.prototype;_.V.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.V.add=function(K,d,f){this.localScreenService_.add(K,d,f)};
_.V.remove=function(K,d,f){this.localScreenService_.remove(K,d,f);this.onlineScreenService_.update()};
_.V.updateName=function(K,d,f,H){this.localScreenService_.contains(K)?this.localScreenService_.updateName(K,d,f,H):(K="Updating name of unknown screen: "+K.name,GR(this.JSC$17498_logName_,K),H(Error(K)))};
_.V.getScreens=function(K){return K?this.screens:R8z(this.screens,_.Jm(this.automaticScreens_,function(d){return!this.contains(d)},this))};
_.V.JSC$17513_getOnlineScreens=function(){return _.Jm(this.getScreens(!0),function(K){return this.onlineScreenService_.isOnline(K.id)},this)};
var bh7=function(K,d,f,H,D,S){K.info("getAutomaticScreenByIds "+f+" / "+d);f||(f=K.deviceToScreenId_[d]);var n=K.getScreens(),u=f?hK(n,f):null;f&&(K.disableAutomaticScreenCache_||u)||(u=hK(n,d));if(u){u.uuid=d;var a=JC(K,u);o5Z(K.onlineScreenService_,a,function(R){D(R?a:null)})}else f?hFc(K,f,(0,_.Om)(function(R){var F=JC(this,new $i({name:H,
screenId:f,loungeToken:R,dialId:d||""}));o5Z(this.onlineScreenService_,F,function(z){D(z?F:null)})},K),S):D(null)};
jg.prototype.JSC$17513_getScreenByPollingPairingCode=function(K,d,f,H,D,S){var n=this;this.info("getDialScreenByPairingCode "+K+" / "+d);var u=new Mxt(this.JSC$17511_http_,K,d,f,H);u.subscribe("pairingComplete",function(a,R){_.kh(u);D(JC(n,a),R)});
u.subscribe("pairingFailed",function(a){_.kh(u);S(a)});
u.start();return(0,_.Om)(u.stop,u)};
var mgi=function(K,d){for(var f=K.screens.length,H=0;H<f;++H)if(K.screens[H].name==d)return K.screens[H];return null};
jg.prototype.JSC$17513_getScreenByPairingCode=function(K,d,f,H){_.iH(lE(this.JSC$17511_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:K},timeout:5E3,onSuccess:(0,_.Om)(function(D,S){D=new $i(S.screen||{});if(!D.name||mgi(this,D.name)){a:{S=D.name;for(var n=2,u=d(S,n);mgi(this,u);){n++;if(n>20)break a;u=d(S,n)}S=u}D.name=S}f(JC(this,D))},this),
onError:(0,_.Om)(function(D){H(Error("Gk`"+D.status))},this),
onTimeout:(0,_.Om)(function(){H(Error("Hk"))},this)})};
var lPz=function(K,d,f){o5Z(K.onlineScreenService_,d,f)};
jg.prototype.disposeInternal=function(){_.kh(this.localScreenService_);_.kh(this.onlineScreenService_);jg.superClass_.disposeInternal.call(this)};
var hFc=function(K,d,f,H){K.info("requestLoungeToken_ for "+d);var D={postParams:{screen_ids:d},method:"POST",context:K,onSuccess:function(S,n){S=n&&n.screens||[];S[0]&&S[0].screenId==d?f(S[0].loungeToken):H(Error("Ik"))},
onError:function(){H(Error("Jk"))}};
_.iH(lE(K.JSC$17511_http_,"/pairing/get_lounge_token_batch"),D)},WlE=function(K){K.screens=K.localScreenService_.getScreens();
for(var d=_.PR.transpose(K.deviceToScreenId_),f=K.screens.length,H=0;H<f;++H){var D=K.screens[H];D.uuid=d[D.id]||""}K.info("Updated manual screens: "+YSy(K.screens))};
jg.prototype.handleScreenChange_=function(){WlE(this);this.publish("screenChange");this.onlineScreenService_.update()};
var tWZ=function(K){GHE(K);K.localScreenService_=new Q6(K.JSC$17511_http_);K.localScreenService_.subscribe("screenChange",(0,_.Om)(K.handleScreenChange_,K));WlE(K);K.disableAutomaticScreenCache_||(K.automaticScreens_=Ugw(_.KI("yt-remote-automatic-screen-cache")||[]));GHE(K);K.info("Initializing automatic screens: "+YSy(K.automaticScreens_));K.onlineScreenService_=new BM(K.JSC$17511_http_,(0,_.Om)(K.getScreens,K,!0));K.onlineScreenService_.subscribe("screenChange",(0,_.Om)(function(){this.publish("onlineScreenChange")},
K))},JC=function(K,d){var f=K.get(d.id);
f?(f.uuid=d.uuid,d=f):((f=hK(K.automaticScreens_,d.uuid))?(f.id=d.id,f.token=d.token,d=f):K.automaticScreens_.push(d),K.disableAutomaticScreenCache_||Aft(K));GHE(K);K.deviceToScreenId_[d.uuid]=d.id;_.p5("yt-remote-device-id-map",K.deviceToScreenId_,31536E3);return d},Aft=function(K){K=_.Jm(K.automaticScreens_,function(d){return d.idType!="shortLived"});
_.p5("yt-remote-automatic-screen-cache",_.O7(K,aPP))},GHE=function(K){K.deviceToScreenId_=_.KI("yt-remote-device-id-map")||{}};
jg.prototype.dispose=jg.prototype.dispose;_.Bd(Cc,_.sT);var si=function(K,d){K.screen_=d;K.publish("sessionScreen",K.screen_)},TOZ=function(K,d){K.screen_&&(K.screen_.token=d,JC(K.JSC$17515_screenService_,K.screen_));
K.publish("sessionScreen",K.screen_)};
Cc.prototype.onSessionStopped=function(K){this.isDisposed()||(K&&(kg(this,""+K),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Cc.prototype.info=function(K){GR(this.JSC$17515_logName_,K)};
var kg=function(K,d){GR(K.JSC$17515_logName_,d)};
Cc.prototype.JSC$17517_getCastSession=function(){return null};
Cc.prototype.setDisplayStatus=function(K){var d=this.receiver_;K?(d.displayStatus=new chrome.cast.ReceiverDisplayStatus(K,[]),d.displayStatus.showStop=!0):d.displayStatus=null;chrome.cast.setReceiverDisplayStatus(d,(0,_.Om)(function(){this.info("Updated receiver status for "+d.friendlyName+": "+K)},this),(0,_.Om)(function(){kg(this,"Failed to update receiver status for: "+d.friendlyName)},this))};
Cc.prototype.disposeInternal=function(){this.setDisplayStatus("");Cc.superClass_.disposeInternal.call(this)};var wn=function(K,d,f){Cc.call(this,K,d,"CastSession");var H=this;this.config_=f;this.JSC$17520_session_=null;this.JSC$17520_boundSessionUpdate_=(0,_.Om)(this.JSC$17522_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Om)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.VK(function(){rfU(H,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17520_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17520_isInitLoungeToken_=!1;this.JSC$17520_lastLoungeTokenRefreshError_="unknown"};
_.O(wn,Cc);_.V=wn.prototype;
_.V.setCastSession=function(K){if(this.JSC$17520_session_){if(this.JSC$17520_session_==K)return;kg(this,"Overriding cast session with new session object");qKZ(this);this.JSC$17520_isInitLoungeToken_=!1;this.JSC$17520_lastLoungeTokenRefreshError_="unknown";this.JSC$17520_session_.removeUpdateListener(this.JSC$17520_boundSessionUpdate_);this.JSC$17520_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17520_session_=K;this.JSC$17520_session_.addUpdateListener(this.JSC$17520_boundSessionUpdate_);this.JSC$17520_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);QbZ(this,"getMdxSessionStatus")};
_.V.launchWithParams=function(K){this.info("launchWithParams no-op for Cast: "+(0,_.FJ)(K))};
_.V.stop=function(){if(this.JSC$17520_session_)this.JSC$17520_session_.stop((0,_.Om)(function(){this.onSessionStopped()},this),(0,_.Om)(function(){this.onSessionStopped(Error("Kk"))},this));
else this.onSessionStopped(Error("Lk"))};
_.V.setDisplayStatus=function(){};
_.V.disposeInternal=function(){this.info("disposeInternal");qKZ(this);this.JSC$17520_session_&&(this.JSC$17520_session_.removeUpdateListener(this.JSC$17520_boundSessionUpdate_),this.JSC$17520_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17520_session_=null;Cc.prototype.disposeInternal.call(this)};
var C4Z=function(K,d){_.yK(K.getLoungeTokenTimeoutKey_);K.getLoungeTokenTimeoutKey_=0;d==0?jbw(K):K.getLoungeTokenTimeoutKey_=_.VK(function(){jbw(K)},d)},jbw=function(K){QbZ(K,"getLoungeToken");
_.yK(K.onLoungeTokenTimeoutKey_);K.onLoungeTokenTimeoutKey_=_.VK(function(){xgK(K,null)},3E4)},QbZ=function(K,d){K.info("sendYoutubeMessage_: "+d+" "+(0,_.FJ)(void 0));
var f={};f.type=d;K.JSC$17520_session_?K.JSC$17520_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",f,function(){},(0,_.Om)(function(){kg(this,"Failed to send message: "+d+".")},K)):kg(K,"Sending yt message without session: "+(0,_.FJ)(f))};
wn.prototype.onYoutubeMessage_=function(K,d){if(!this.isDisposed())if(d)if(d=(0,_.P0)(d),_.H4(d))switch(K=""+d.type,d=d.data||{},this.info("onYoutubeMessage_: "+K+" "+(0,_.FJ)(d)),K){case "mdxSessionStatus":rfU(this,d);break;case "loungeToken":xgK(this,d);break;default:kg(this,"Unknown youtube message: "+K)}else kg(this,"Unable to parse message.");else kg(this,"No data in message.")};
var Llw=function(K,d){if(d)K.info("onConnectedScreenId_: Received screenId: "+d),K.screen_&&K.screen_.id==d||K.getScreen_(d,function(f){si(K,f)},function(){return K.onSessionStopped()},5);
else K.onSessionStopped(Error("Mk"))},Jfy=function(K,d,f){K.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(d));
var H=new $i(d);BOw(K,H,function(D){D?(K.JSC$17520_isInitLoungeToken_=!0,JC(K.JSC$17515_screenService_,H),si(K,H),K.JSC$17520_lastLoungeTokenRefreshError_="unknown",C4Z(K,f)):(_.G2(Error("Nk`"+JSON.stringify(d))),K.onSessionStopped())},5)},rfU=function(K,d){_.yK(K.sessionStatusTimeoutKey_);
K.sessionStatusTimeoutKey_=0;if(d)K.config_.enableCastLoungeToken&&d.loungeToken?d.deviceId?K.screen_&&K.screen_.uuid==d.deviceId||(d.loungeTokenRefreshIntervalMs?Jfy(K,{name:K.receiver_.friendlyName,screenId:d.screenId,loungeToken:d.loungeToken,dialId:d.deviceId,screenIdType:"shortLived"},d.loungeTokenRefreshIntervalMs):(_.G2(Error("Pk`"+JSON.stringify(d))),Llw(K,d.screenId))):(_.G2(Error("Ok`"+JSON.stringify(d))),Llw(K,d.screenId)):Llw(K,d.screenId);else K.onSessionStopped(Error("Mk"))},xgK=function(K,
d){_.yK(K.onLoungeTokenTimeoutKey_);
K.onLoungeTokenTimeoutKey_=0;var f=null;if(d)if(d.loungeToken){var H;((H=K.screen_)==null?void 0:H.token)==d.loungeToken&&(f="staleLoungeToken")}else f="missingLoungeToken";else f="noLoungeTokenResponse";f?(K.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(d)+", error: "+f)),K.JSC$17520_lastLoungeTokenRefreshError_=f,C4Z(K,3E4)):(TOZ(K,d.loungeToken),K.JSC$17520_isInitLoungeToken_=!1,K.JSC$17520_lastLoungeTokenRefreshError_="unknown",C4Z(K,d.loungeTokenRefreshIntervalMs))};
wn.prototype.getScreen_=function(K,d,f,H){_.yK(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;bh7(this.JSC$17515_screenService_,this.receiver_.label,K,this.receiver_.friendlyName,(0,_.Om)(function(D){D?d(D):H>=0?(kg(this,"Screen "+K+" appears to be offline. "+H+" retries left."),this.getScreenTimeoutKey_=_.VK((0,_.Om)(this.getScreen_,this,K,d,f,H-1),300)):f(Error("Qk"))},this),f)};
var BOw=function(K,d,f,H){_.yK(K.JSC$17520_checkScreenAvailabilityTimeoutKey_);K.JSC$17520_checkScreenAvailabilityTimeoutKey_=0;lPz(K.JSC$17515_screenService_,d,function(D){D||H<0?f(D):K.JSC$17520_checkScreenAvailabilityTimeoutKey_=_.VK(function(){BOw(K,d,f,H-1)},300)})};
wn.prototype.JSC$17517_getCastSession=function(){return this.JSC$17520_session_};
wn.prototype.JSC$17522_onSessionUpdate_=function(K){this.isDisposed()||K||(kg(this,"Cast session died."),this.onSessionStopped())};
var qKZ=function(K){_.yK(K.getScreenTimeoutKey_);K.getScreenTimeoutKey_=0;_.yK(K.JSC$17520_checkScreenAvailabilityTimeoutKey_);K.JSC$17520_checkScreenAvailabilityTimeoutKey_=0;_.yK(K.sessionStatusTimeoutKey_);K.sessionStatusTimeoutKey_=0;_.yK(K.onLoungeTokenTimeoutKey_);K.onLoungeTokenTimeoutKey_=0;_.yK(K.getLoungeTokenTimeoutKey_);K.getLoungeTokenTimeoutKey_=0};var Z6=function(K,d,f,H){Cc.call(this,K,d,"DialSession");this.config_=H;this.JSC$17524_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17524_theme_=f;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17524_deferredLaunchDeadlineTimer_=NaN;this.JSC$17524_boundSessionUpdate_=(0,_.Om)(this.JSC$17526_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17524_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17524_isInitLoungeToken_=!1;this.JSC$17524_lastLoungeTokenRefreshError_="unknown"};
_.O(Z6,Cc);Z6.prototype.setCastSession=function(K){this.JSC$17524_session_=K;this.JSC$17524_session_.addUpdateListener(this.JSC$17524_boundSessionUpdate_)};
Z6.prototype.launchWithParams=function(K){this.connectData_=K;this.deferredLaunch_()};
Z6.prototype.stop=function(){sbw(this);if(this.JSC$17524_session_)this.JSC$17524_session_.stop((0,_.Om)(this.onSessionStopped,this,null),(0,_.Om)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Z6.prototype.disposeInternal=function(){sbw(this);this.JSC$17524_session_&&this.JSC$17524_session_.removeUpdateListener(this.JSC$17524_boundSessionUpdate_);this.JSC$17524_session_=null;Cc.prototype.disposeInternal.call(this)};
var kHw=function(K){var d;return!!(K.config_.enableDialLoungeToken&&((d=K.JSC$17524_session_)==null?0:d.getDialAppInfo))},w3l=function(K){K.cancelPolling_=K.JSC$17515_screenService_.JSC$17513_getScreenByPollingPairingCode(K.reversePairingCode_,K.receiver_.label,K.receiver_.friendlyName,kHw(K),function(d,f){K.cancelPolling_=function(){};
K.JSC$17524_isInitLoungeToken_=!0;si(K,d);d.idType=="shortLived"&&f>0&&eL(K,f)},function(d){K.cancelPolling_=function(){};
K.onSessionStopped(d)})};
Z6.prototype.JSC$17526_onSessionUpdate_=function(K){this.isDisposed()||K||(kg(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var ZhE=function(K){var d={};d.pairingCode=K.reversePairingCode_;d.theme=K.JSC$17524_theme_;utw()&&(d.env_useStageMdx=1);return _.c6(d)},eFS=function(K){return new Promise(function(d){K.reversePairingCode_=wat();
if(K.connectData_){var f=new chrome.cast.DialLaunchResponse(!0,ZhE(K));d(f);w3l(K)}else K.deferredLaunch_=function(){_.yK(K.JSC$17524_deferredLaunchDeadlineTimer_);K.deferredLaunch_=function(){};
K.JSC$17524_deferredLaunchDeadlineTimer_=NaN;var H=new chrome.cast.DialLaunchResponse(!0,ZhE(K));d(H);w3l(K)},K.JSC$17524_deferredLaunchDeadlineTimer_=_.VK(function(){K.deferredLaunch_()},100)})},KvU=function(K,d,f){K.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(d));
var H=new $i(d);return(new Promise(function(D){p35(K,H,function(S){S?(K.JSC$17524_isInitLoungeToken_=!0,JC(K.JSC$17515_screenService_,H),si(K,H),eL(K,f)):_.G2(Error("Sk`"+JSON.stringify(d)));D(S)},5)})).then(function(D){return D?new chrome.cast.DialLaunchResponse(!1):eFS(K)})},dVt=function(K,d){var f=K.launchData_.receiver.label,H=K.receiver_.friendlyName;
return(new Promise(function(D){bh7(K.JSC$17515_screenService_,f,d,H,function(S){S&&S.token&&si(K,S);D(S)},function(S){kg(K,"Failed to get DIAL screen: "+S);
D(null)})})).then(function(D){return D&&D.token?new chrome.cast.DialLaunchResponse(!1):eFS(K)})},p35=function(K,d,f,H){_.yK(K.JSC$17524_checkScreenAvailabilityTimeoutKey_);
K.JSC$17524_checkScreenAvailabilityTimeoutKey_=0;lPz(K.JSC$17515_screenService_,d,function(D){D||H<0?f(D):K.JSC$17524_checkScreenAvailabilityTimeoutKey_=_.VK(function(){p35(K,d,f,H-1)},300)})},eL=function(K,d){K.info("getDialAppInfoWithTimeout_ "+d);
kHw(K)&&(_.yK(K.getDialAppInfoTimeoutKey_),K.getDialAppInfoTimeoutKey_=0,d==0?fDZ(K):K.getDialAppInfoTimeoutKey_=_.VK(function(){fDZ(K)},d))},fDZ=function(K){kHw(K)&&K.JSC$17524_session_.getDialAppInfo(function(d){K.info("getDialAppInfo dialLaunchData: "+JSON.stringify(d));
d=d.extraData||{};var f=null;if(d.loungeToken){var H;((H=K.screen_)==null?void 0:H.token)==d.loungeToken&&(f="staleLoungeToken")}else f="missingLoungeToken";f?(K.JSC$17524_lastLoungeTokenRefreshError_=f,eL(K,3E4)):(K.JSC$17524_isInitLoungeToken_=!1,K.JSC$17524_lastLoungeTokenRefreshError_="unknown",TOZ(K,d.loungeToken),eL(K,d.loungeTokenRefreshIntervalMs))},function(d){K.info("getDialAppInfo error: "+d);
K.JSC$17524_lastLoungeTokenRefreshError_="noLoungeTokenResponse";eL(K,3E4)})},sbw=function(K){_.yK(K.JSC$17524_checkScreenAvailabilityTimeoutKey_);
K.JSC$17524_checkScreenAvailabilityTimeoutKey_=0;_.yK(K.getDialAppInfoTimeoutKey_);K.getDialAppInfoTimeoutKey_=0;K.cancelPolling_();K.cancelPolling_=function(){};
_.yK(K.JSC$17524_deferredLaunchDeadlineTimer_)};var pX=function(K,d){Cc.call(this,K,d,"ManualSession");this.JSC$17528_deferredLaunchDeadlineTimer_=_.VK((0,_.Om)(this.launchWithParams,this,null),150)};
_.O(pX,Cc);pX.prototype.stop=function(){this.onSessionStopped()};
pX.prototype.setCastSession=function(){};
pX.prototype.launchWithParams=function(){_.yK(this.JSC$17528_deferredLaunchDeadlineTimer_);this.JSC$17528_deferredLaunchDeadlineTimer_=NaN;var K=hK(this.JSC$17515_screenService_.getScreens(),this.receiver_.label);if(K)si(this,K);else this.onSessionStopped(Error("Tk"))};
pX.prototype.disposeInternal=function(){_.yK(this.JSC$17528_deferredLaunchDeadlineTimer_);this.JSC$17528_deferredLaunchDeadlineTimer_=NaN;Cc.prototype.disposeInternal.call(this)};var JK=function(K,d){_.sT.call(this);this.config_=d;this.JSC$17531_screenService_=K;this.JSC$17531_appId_=d.appId||"233637DE";this.JSC$17531_theme_=d.theme||"cl";this.disableDial_=d.disableCastApi||!1;this.forceMirroring_=d.forceMirroring||!1;this.JSC$17531_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Om)(this.onReceiverAction_,this)};
_.O(JK,_.sT);
JK.prototype.init=function(K,d){chrome.cast.timeout.requestSession=3E4;var f=new chrome.cast.SessionRequest(this.JSC$17531_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.M("desktop_enable_cast_connect")&&(f.androidReceiverCompatible=!0);this.disableDial_||(f.dialRequest=new chrome.cast.DialRequest("YouTube"));var H=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;K=K||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var D=(0,_.Om)(this.onReceiverUpdated_,
this);f=new chrome.cast.ApiConfig(f,(0,_.Om)(this.onSessionEstablished_,this),D,H,K);f.customDialLaunchCallback=(0,_.Om)(this.onDialLaunchRequested_,this);chrome.cast.initialize(f,(0,_.Om)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),v$i(),this.JSC$17531_screenService_.subscribe("onlineScreenChange",(0,_.Om)(this.JSC$17533_onScreenChange_,this)),this.customReceivers_=H2w(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Om)(function(S){this.warn_("Failed to set initial custom receivers: "+(0,_.FJ)(S))},this)),this.publish("yt-remote-cast2-availability-change",K6(this)),d(!0))},this),(0,_.Om)(function(S){this.warn_("Failed to initialize API: "+(0,_.FJ)(S));
d(!1)},this))};
JK.prototype.setConnectedScreenStatus=function(K,d){dI("Setting connected screen ID: "+K+" -> "+d);if(this.JSC$17531_session_){var f=this.JSC$17531_session_.screen_;if(!K||f&&f.id!=K)dI("Unsetting old screen status: "+this.JSC$17531_session_.receiver_.friendlyName),f6(this,null)}if(K&&d){if(!this.JSC$17531_session_){K=hK(this.JSC$17531_screenService_.getScreens(),K);if(!K){dI("setConnectedScreenStatus: Unknown screen.");return}if(K.idType=="shortLived"){dI("setConnectedScreenStatus: Screen with id type to be short lived.");
return}f=DVl(this,K);f||(dI("setConnectedScreenStatus: Connected receiver not custom..."),f=new chrome.cast.Receiver(K.uuid?K.uuid:K.id,K.name),f.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(f),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Om)(function(H){this.warn_("Failed to set initial custom receivers: "+(0,_.FJ)(H))},this)));
dI("setConnectedScreenStatus: new active receiver: "+f.friendlyName);f6(this,new pX(this.JSC$17531_screenService_,f),!0)}this.JSC$17531_session_.setDisplayStatus(d)}else dI("setConnectedScreenStatus: no screen.")};
var DVl=function(K,d){return d?_.rz(K.customReceivers_,function(f){return Eq(d,f.label)},K):null};
JK.prototype.setLaunchParams=function(K){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17531_session_?this.JSC$17531_session_.launchWithParams(K):this.warn_("Setting connection data without a session")};
JK.prototype.JSC$17533_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17531_session_?(this.JSC$17531_session_.stop(),f6(this,null)):dI("Stopping non-existing session")};
JK.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Om)(this.onSessionEstablished_,this),(0,_.Om)(this.onSessionRequestFailed_,this))};
JK.prototype.disposeInternal=function(){this.JSC$17531_screenService_.unsubscribe("onlineScreenChange",(0,_.Om)(this.JSC$17533_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Zn(_.T2("yt.mdx.remote.debug.handlers_")||[],Fkc);_.kh(this.JSC$17531_session_);_.sT.prototype.disposeInternal.call(this)};
var dI=function(K){GR("Controller",K)};
JK.prototype.warn_=function(K){GR("Controller",K)};
var Fkc=function(K){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(K)},K6=function(K){return K.hasCastReceiver_||!!K.customReceivers_.length||!!K.JSC$17531_session_},f6=function(K,d,f){d!=K.JSC$17531_session_&&(_.kh(K.JSC$17531_session_),(K.JSC$17531_session_=d)?(f?K.publish("yt-remote-cast2-receiver-resumed",d.receiver_):K.publish("yt-remote-cast2-receiver-selected",d.receiver_),d.subscribe("sessionScreen",(0,_.Om)(K.onSessionScreen_,K,d)),d.subscribe("sessionFailed",
function(){return VAt(K,d)}),d.screen_?K.publish("yt-remote-cast2-session-change",d.screen_):f&&K.JSC$17531_session_.launchWithParams(null)):K.publish("yt-remote-cast2-session-change",null))},VAt=function(K,d){K.JSC$17531_session_==d&&K.publish("yt-remote-cast2-session-failed")};
_.V=JK.prototype;_.V.onSessionScreen_=function(K,d){this.JSC$17531_session_==K&&(d||f6(this,null),this.publish("yt-remote-cast2-session-change",d))};
_.V.onReceiverAction_=function(K,d){if(!this.isDisposed())if(K)switch(K.friendlyName=chrome.cast.unescape(K.friendlyName),dI("onReceiverAction_ "+K.label+" / "+K.friendlyName+"-- "+d),d){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17531_session_)if(this.JSC$17531_session_.receiver_.label!=K.label)dI("onReceiverAction_: Stopping active receiver: "+this.JSC$17531_session_.receiver_.friendlyName),this.JSC$17531_session_.stop();else{dI("onReceiverAction_: Casting to active receiver.");this.JSC$17531_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17531_session_.screen_);break}switch(K.receiverType){case chrome.cast.ReceiverType.CUSTOM:f6(this,new pX(this.JSC$17531_screenService_,K));break;case chrome.cast.ReceiverType.DIAL:f6(this,new Z6(this.JSC$17531_screenService_,K,this.JSC$17531_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:f6(this,new wn(this.JSC$17531_screenService_,K,this.config_));break;default:this.warn_("Unknown receiver type: "+K.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17531_session_&&
this.JSC$17531_session_.receiver_.label==K.label?this.JSC$17531_session_.stop():this.warn_("Stopping receiver w/o session: "+K.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.V.onDialLaunchRequested_=function(K){if(this.isDisposed())return Promise.reject(Error("Uk"));var d=K.receiver;d.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+d.friendlyName),d.receiverType=chrome.cast.ReceiverType.DIAL);var f=this.JSC$17531_session_?this.JSC$17531_session_.receiver_:null;if(!f||f.label!=d.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+d.friendlyName),Promise.reject(Error("Vk"));if(f&&f.label==d.label&&f.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17531_session_.screen_)return dI("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17531_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+f.receiverType+'" to "dial" for '+d.friendlyName);f6(this,new Z6(this.JSC$17531_screenService_,d,this.JSC$17531_theme_,this.config_))}d=this.JSC$17531_session_;d.launchData_=K;d.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(K=d.launchData_.extraData||{},f=K.screenId||null,kHw(d)&&K.loungeToken?K.loungeTokenRefreshIntervalMs?K=KvU(d,{name:d.receiver_.friendlyName,screenId:K.screenId,loungeToken:K.loungeToken,dialId:d.launchData_.receiver.label,screenIdType:"shortLived"},K.loungeTokenRefreshIntervalMs):(_.G2(Error("Rk`"+JSON.stringify(K))),K=dVt(d,f)):K=dVt(d,f)):K=eFS(d);return K};
_.V.onSessionEstablished_=function(K){var d=this;if(!this.isDisposed()&&!this.forceMirroring_){dI("New cast session ID: "+K.sessionId);var f=K.receiver;if(f.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17531_session_)if(f.receiverType==chrome.cast.ReceiverType.CAST)dI("Got resumed cast session before resumed mdx connection."),f.friendlyName=chrome.cast.unescape(f.friendlyName),f6(this,new wn(this.JSC$17531_screenService_,f,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var H=this.JSC$17531_session_.receiver_,D=hK(this.JSC$17531_screenService_.getScreens(),H.label);D&&Eq(D,f.label)&&H.receiverType!=chrome.cast.ReceiverType.CAST&&f.receiverType==chrome.cast.ReceiverType.CAST&&(dI("onSessionEstablished_: manual to cast session change "+f.friendlyName),_.kh(this.JSC$17531_session_),this.JSC$17531_session_=new wn(this.JSC$17531_screenService_,f,this.config_),this.JSC$17531_session_.subscribe("sessionScreen",(0,_.Om)(this.onSessionScreen_,this,this.JSC$17531_session_)),
this.JSC$17531_session_.subscribe("sessionFailed",function(){return VAt(d,d.JSC$17531_session_)}),this.JSC$17531_session_.launchWithParams(null));
this.JSC$17531_session_.setCastSession(K)}}};
_.V.JSC$17533_getCastSession=function(){return this.JSC$17531_session_?this.JSC$17531_session_.JSC$17517_getCastSession():null};
_.V.onSessionRequestFailed_=function(K){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.FJ)(K)),K.code!=chrome.cast.ErrorCode.CANCEL&&f6(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.V.onReceiverUpdated_=function(K){dI("Receiver availability updated: "+K);if(!this.isDisposed()){var d=K6(this);this.hasCastReceiver_=K==chrome.cast.ReceiverAvailability.AVAILABLE;K6(this)!=d&&this.publish("yt-remote-cast2-availability-change",K6(this))}};
var H2w=function(K){var d=K.JSC$17531_screenService_.JSC$17513_getOnlineScreens(),f=K.JSC$17531_session_&&K.JSC$17531_session_.receiver_;K=_.O7(d,function(H){f&&Eq(H,f.label)&&(f=null);var D=H.uuid?H.uuid:H.id,S=DVl(this,H);S?(S.label=D,S.friendlyName=H.name):(S=new chrome.cast.Receiver(D,H.name),S.receiverType=chrome.cast.ReceiverType.CUSTOM);return S},K);
f&&(f.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(f=new chrome.cast.Receiver(f.label,f.friendlyName),f.receiverType=chrome.cast.ReceiverType.CUSTOM),K.push(f));return K};
JK.prototype.JSC$17533_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=H2w(this),dI("Updating custom receivers: "+(0,_.FJ)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Om)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",K6(this)))};
JK.prototype.setLaunchParams=JK.prototype.setLaunchParams;JK.prototype.setConnectedScreenStatus=JK.prototype.setConnectedScreenStatus;JK.prototype.stopSession=JK.prototype.JSC$17533_stopSession;JK.prototype.getCastSession=JK.prototype.JSC$17533_getCastSession;JK.prototype.requestSession=JK.prototype.requestSession;JK.prototype.init=JK.prototype.init;JK.prototype.dispose=JK.prototype.dispose;var x5w=[];var SIK=function(K){K.audioTrackId=null;K.trackData=null;K.playerState=-1;K.hasPrevious=!1;K.hasNext=!1;K.playerTime_=0;K.playerTimeAt_=_.Ls();K.seekableStart_=0;K.seekableEnd_=0;K.duration_=0;K.loadedTime=0;K.liveIngestionTime_=NaN;K.isLive_=!1};
_.V=sq.prototype;
_.V.reset=function(K){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;K&&(this.index=K.index,this.listId=K.listId,this.videoId=K.videoId,this.playerState=K.playerState,this.volume=K.volume,this.muted=K.muted,this.audioTrackId=K.audioTrackId,this.trackData=K.trackData,this.hasPrevious=K.hasPrevious,this.hasNext=K.hasNext,this.playerTime_=K.playerTime,this.playerTimeAt_=K.playerTimeAt,this.seekableStart_=K.seekableStart,this.seekableEnd_=K.seekableEnd,this.duration_=K.duration,this.loadedTime=
K.loadedTime,this.liveIngestionTime_=K.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.V.stopPlayer=function(){this.index=-1;this.videoId="";SIK(this)};
_.V.isPlaying=function(){return this.playerState==1};
_.V.isBuffering=function(){return this.playerState==3};
_.V.isAdPlaying=function(){return this.playerState==1081};
var HT=function(K,d){K.playerTime_=d;K.playerTimeAt_=_.Ls()},yQ7=function(K){switch(K.playerState){case 1:case 1081:return(_.Ls()-K.playerTimeAt_)/1E3+K.playerTime_;
case -1E3:return 0}return K.playerTime_};
sq.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.Ls()-this.playerTimeAt_)/1E3:0):this.duration_};
var nHU=function(K,d,f){var H=K.videoId;K.videoId=d;K.index=f;d!=H&&SIK(K)},i2i=function(K){var d={};
d.index=K.index;d.listId=K.listId;d.videoId=K.videoId;d.playerState=K.playerState;d.volume=K.volume;d.muted=K.muted;d.audioTrackId=K.audioTrackId;d.trackData=_.PR.unsafeClone(K.trackData);d.hasPrevious=K.hasPrevious;d.hasNext=K.hasNext;d.playerTime=K.playerTime_;d.playerTimeAt=K.playerTimeAt_;d.seekableStart=K.seekableStart_;d.seekableEnd=K.seekableEnd_;d.duration=K.duration_;d.loadedTime=K.loadedTime;d.liveIngestionTime=K.liveIngestionTime_;return d};
sq.prototype.clone=function(){return new sq(i2i(this))};var Dy=function(K,d){_.sT.call(this);var f=this;this.state_=0;this.connection_=K;this.contextSubscriptions_=[];this.actionQueue_=new QBw;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Om)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Om)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Om)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Om)(this.onCloudviewAvailabilityChange_,this);var H=0;K?(H=K.getProxyState(),
H!=3&&(K.subscribe("proxyStateChange",this.setState_,this),cQi(this))):H=3;H!=0&&(d?this.setState_(H):_.VK(function(){f.setState_(H)},0));
(K=s4E())&&u3U(this,K);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.O(Dy,_.sT);Dy.prototype.getState=function(){return this.state_};
Dy.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Dy.prototype.reconnect=function(){this.connection_.reconnect()};
var V1=function(K){return new sq(K.connection_.getPlayerContextData())};
_.V=Dy.prototype;_.V.play=function(){Sm(this)?(this.castMedia_?this.castMedia_.play(null,_.SO,aDS(this,"play")):y1(this,"play"),IDi(this,1,yQ7(V1(this))),this.publish("remotePlayerChange")):n6(this,this.play)};
_.V.pause=function(){Sm(this)?(this.castMedia_?this.castMedia_.pause(null,_.SO,aDS(this,"pause")):y1(this,"pause"),IDi(this,2,yQ7(V1(this))),this.publish("remotePlayerChange")):n6(this,this.pause)};
_.V.seekTo=function(K){if(Sm(this)){if(this.castMedia_){var d=V1(this),f=new chrome.cast.media.SeekRequest;f.currentTime=K;d.isPlaying()||d.isBuffering()?f.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:f.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(f,_.SO,aDS(this,"seekTo",{newTime:K}))}else y1(this,"seekTo",{newTime:K});IDi(this,3,K);this.publish("remotePlayerChange")}else n6(this,_.uB(this.seekTo,K))};
_.V.stop=function(){if(Sm(this)){this.castMedia_?this.castMedia_.stop(null,_.SO,aDS(this,"stopVideo")):y1(this,"stopVideo");var K=V1(this);K.stopPlayer();iI(this,K);this.publish("remotePlayerChange")}else n6(this,this.stop)};
_.V.setVolume=function(K,d){if(Sm(this)){var f=V1(this);if(this.castSession_){if(f.volume!=K){var H=Math.round(K)/100;this.castSession_.setReceiverVolumeLevel(H,(0,_.Om)(function(){AK("set receiver volume: "+H)},this),(0,_.Om)(function(){this.warn_("failed to set receiver volume.")},this))}f.muted!=d&&this.castSession_.setReceiverMuted(d,(0,_.Om)(function(){AK("set receiver muted: "+d)},this),(0,_.Om)(function(){this.warn_("failed to set receiver muted.")},this))}else{var D={volume:K,
muted:d};f.volume!=-1&&(D.delta=K-f.volume);y1(this,"setVolume",D)}f.muted=d;f.volume=K;iI(this,f)}else n6(this,_.uB(this.setVolume,K,d))};
_.V.setAudioTrack=function(K,d){Sm(this)?(d=d.getLanguageInfo().getId(),y1(this,"setAudioTrack",{videoId:K,audioTrackId:d}),K=V1(this),K.audioTrackId=d,iI(this,K)):n6(this,_.uB(this.setAudioTrack,K,d))};
_.V.addVideo=function(K){Sm(this)?y1(this,"addVideo",{videoId:K}):n6(this,_.uB(this.addVideo,K))};
_.V.addPlaylist=function(K){Sm(this)?y1(this,"addVideos",{listId:K}):n6(this,_.uB(this.addPlaylist,K))};
_.V.addVideos=function(K){K.length==0?this.warn_("Ignore add videos request due to empty list"):Sm(this)?y1(this,"addVideos",{videoIds:K.join(",")}):n6(this,_.uB(this.addVideos,K))};
_.V.JSC$17543_removeVideo=function(K){Sm(this)?y1(this,"removeVideo",{videoId:K}):n6(this,_.uB(this.JSC$17543_removeVideo,K))};
_.V.JSC$17543_insertVideo=function(K){Sm(this)?y1(this,"insertVideo",{videoId:K}):n6(this,_.uB(this.JSC$17543_insertVideo,K))};
_.V.playVideo=function(K,d,f,H,D,S,n){H=H===void 0?null:H;D=D===void 0?null:D;S=S===void 0?null:S;n=n===void 0?null:n;var u=V1(this),a={videoId:K};f!==void 0&&(a.currentIndex=f);nHU(u,K,f||0);d!==void 0&&(HT(u,d),a.currentTime=d);H&&(a.listId=H);D&&(a.playerParams=D);S&&(a.clickTrackingParams=S);n&&(a.locationInfo=(0,_.FJ)(n));y1(this,"setPlaylist",a);H||iI(this,u)};
_.V.nextVideo=function(K,d){if(Sm(this)){if(K&&d){var f=V1(this);nHU(f,K,d);iI(this,f)}y1(this,"next")}else n6(this,_.uB(this.nextVideo,K,d))};
_.V.clearPlaylist=function(){if(Sm(this)){y1(this,"clearPlaylist");var K=V1(this);K.reset();iI(this,K);this.publish("remotePlayerChange")}else n6(this,this.clearPlaylist)};
_.V.dispose=function(){if(this.state_!=3){var K=this.state_;this.state_=3;this.publish("proxyStateChange",K,this.state_)}_.sT.prototype.dispose.call(this)};
_.V.disposeInternal=function(){UVz(this);this.connection_=null;this.actionQueue_.clear();u3U(this,null);_.sT.prototype.disposeInternal.call(this)};
var cQi=function(K){_.QB("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(d){this.contextSubscriptions_.push(this.connection_.subscribe(d,_.uB(this.onProxyEvent_,d),this))},K)},UVz=function(K){_.QB(K.contextSubscriptions_,function(d){this.connection_.unsubscribeByKey(d)},K);
K.contextSubscriptions_.length=0},Sm=function(K){return K.getState()==1},n6=function(K,d){K.actionQueue_.getCount()<50&&K.actionQueue_.enqueue(d)},IDi=function(K,d,f){var H=V1(K);
HT(H,f);H.playerState!=-1E3&&(H.playerState=d);iI(K,H)},y1=function(K,d,f){K.connection_.sendMessage(d,f)},iI=function(K,d){UVz(K);
K.connection_.setPlayerContextData(i2i(d));cQi(K)};
Dy.prototype.setState_=function(K){if((K!=this.state_||K==2)&&this.state_!=3&&K!=0){var d=this.state_;this.state_=K;this.publish("proxyStateChange",d,K);if(K==1)for(;!this.actionQueue_.isEmpty();)K=this.actionQueue_,ESc(K),K.front_.pop().apply(this);else K==3&&this.dispose()}};
Dy.prototype.onProxyEvent_=function(K,d){this.publish(K,d)};
var u3U=function(K,d){K.castSession_&&(K.castSession_.removeUpdateListener(K.boundCastStatusListener_),K.castSession_.removeMediaListener(K.boundCastMediaListener_),K.onCastMediaChange_(null));K.castSession_=d;if(K.castSession_&&(AK("Setting cast session: "+K.castSession_.sessionId),K.castSession_.addUpdateListener(K.boundCastStatusListener_),K.castSession_.addMediaListener(K.boundCastMediaListener_),K.castSession_.media.length))K.onCastMediaChange_(K.castSession_.media[0])};
Dy.prototype.onCastStatusUpdate_=function(K){if(!K)this.onCastMediaChange_(null),u3U(this,null);else if(this.castSession_.receiver.volume){K=this.castSession_.receiver.volume;var d=V1(this),f=Math.round(100*K.level||0);if(d.volume!=f||d.muted!=K.muted)AK("Cast volume update: "+K.level+(K.muted?" muted":"")),d.volume=f,d.muted=!!K.muted,iI(this,d)}};
Dy.prototype.onCastMediaChange_=function(K){AK("Cast media: "+!!K);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=K)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Rxc(this),this.publish("remotePlayerChange")};
var Rxc=function(K){var d=K.castMedia_.media,f=K.castMedia_.customData;if(d&&f){var H=V1(K);d.contentId!=H.videoId&&AK("Cast changing video to: "+d.contentId);H.videoId=d.contentId;H.playerState=f.playerState;HT(H,K.castMedia_.getEstimatedTime());iI(K,H)}else AK("No cast media video. Ignoring state update.")};
Dy.prototype.onCastMediaUpdate_=function(K){if(K)Rxc(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Dy.prototype.onCloudviewAvailabilityChange_=function(){var K=s4E();K&&u3U(this,K)};
Dy.prototype.warn_=function(K){GR("CP",K)};
var aDS=function(K,d,f){return(0,_.Om)(function(H){this.warn_("Failed to "+d+" with cast v2 channel. Error code: "+H.code);H.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+d+" using MDx browser channel."),y1(this,d,f))},K)};var uI=function(K,d,f,H){H=H===void 0?!1:H;_.sT.call(this);var D=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$17550_http_=K;this.enableConnectWithInitialState_=H;this.listeners_.push(_.wR(window,"beforeunload",function(){D.JSC$17553_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new sq;this.currentScreenId_=d.id;this.currentScreenIdType_=d.idType;this.channelService=Rti(this.JSC$17550_http_,f,this.JSC$17553_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){FvU(D)});
this.channelService.listen("channelClosed",function(){cT("Channel closed");isNaN(D.connectTimerId_)?bE(!0):bE();D.dispose()});
this.channelService.listen("channelError",function(S){bE();isNaN(D.getReconnectTimeout_())?(S==1&&D.currentScreenIdType_=="shortLived"&&D.publish("browserChannelAuthError",S),cT("Channel error: "+S+" without reconnection"),D.dispose()):(D.reconnecting_=!0,cT("Channel error: "+S+" with reconnection in "+D.getReconnectTimeout_()+" ms"),zxt(D,2))});
this.channelService.listen("channelMessage",function(S){Xrz(D,S)});
this.channelService.setLoungeToken(d.token);this.subscribe("remoteQueueChange",function(){var S=D.playerContext_.videoId;d5Z()&&_.p5("yt-remote-session-video-id",S)})};
_.O(uI,_.sT);
uI.prototype.connect=function(K,d){if(d){var f=d.listId,H=d.videoId,D=d.videoIds,S=d.playerParams,n=d.clickTrackingParams,u=d.index,a={videoId:H},R=d.currentTime,F=d.locationInfo;d=d.loopMode;R!==void 0&&(a.currentTime=R<=5?0:R);S&&(a.playerParams=S);F&&(a.locationInfo=F);n&&(a.clickTrackingParams=n);f&&(a.listId=f);D&&D.length>0&&(a.videoIds=D.join(","));u!==void 0&&(a.currentIndex=u);this.enableConnectWithInitialState_&&(a.loopMode=d||"LOOP_MODE_OFF");f&&(this.playerContext_.listId=f);this.playerContext_.videoId=
H;this.playerContext_.index=u||0;this.playerContext_.state=3;HT(this.playerContext_,R);this.autoplayMode_="UNSUPPORTED";f=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";cT("Connecting with "+f+" and params: "+(0,_.FJ)(a));this.channelService.connect({method:f,params:(0,_.FJ)(a)},K,SSi())}else cT("Connecting without params"),this.channelService.connect({},K,SSi());vHy(this)};
uI.prototype.setLoungeToken=function(K){this.channelService.setLoungeToken(K)};
uI.prototype.dispose=function(){this.isDisposed()||(_.B6("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),zxt(this,3));_.sT.prototype.dispose.call(this)};
uI.prototype.disposeInternal=function(){MA5(this);Pqi(this);gHE(this);_.yK(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.yK(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.CsX(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.sT.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var O2E=function(K){return _.rz(K.connectedDevices_,function(d){return d.type=="LOUNGE_SCREEN"})},cT=function(K){GR("conn",K)},zxt=function(K,d){K.publish("proxyStateChange",d)},vHy=function(K){K.connectTimerId_=_.VK(function(){cT("Connecting timeout");
K.JSC$17553_disconnect_(1)},2E4)},MA5=function(K){_.yK(K.connectTimerId_);
K.connectTimerId_=NaN},gHE=function(K){_.yK(K.reconnectedCheckScreenTimeout_);
K.reconnectedCheckScreenTimeout_=NaN},Ndt=function(K){Pqi(K);
K.playingSyncTimerId_=_.VK(function(){a8(K,"getNowPlaying")},2E4)},Pqi=function(K){_.yK(K.playingSyncTimerId_);
K.playingSyncTimerId_=NaN},FvU=function(K){cT("Channel opened");
K.reconnecting_&&(K.reconnecting_=!1,gHE(K),K.reconnectedCheckScreenTimeout_=_.VK(function(){cT("Timing out waiting for a screen.");K.JSC$17553_disconnect_(1)},15E3))},tAz=function(K,d){var f=null;
if(d){var H=O2E(K);H&&(f={clientName:H.clientName,deviceMake:H.brand,deviceModel:H.model,osVersion:H.osVersion})}_.B6("yt.mdx.remote.remoteClient_",f);d&&(MA5(K),gHE(K));f=K.channelService.isChannelOpened()&&isNaN(K.connectTimerId_);d==f?d&&(zxt(K,1),a8(K,"getSubtitlesTrack")):d?(K.getOtherConnectedRemoteId_()&&K.playerContext_.reset(),zxt(K,1),a8(K,"getNowPlaying"),YI7(K)):K.JSC$17553_disconnect_(1)},oHK=function(K,d){var f=d.params.videoId;
delete d.params.videoId;f==K.playerContext_.videoId&&(_.PR.isEmpty(d.params)?K.playerContext_.trackData=null:K.playerContext_.trackData=d.params,K.publish("remotePlayerChange"))},$V5=function(K,d,f){var H=d.params.videoId||d.params.video_id,D=parseInt(d.params.currentIndex,10);
K.playerContext_.listId=d.params.listId||K.playerContext_.listId;nHU(K.playerContext_,H,D);K.publish("remoteQueueChange",f)},EHi=function(K,d){d.params=d.params||{};
$V5(K,d,"NOW_PLAYING_MAY_CHANGE");K.onStateChange_(d);K.publish("autoplayDismissed")};
uI.prototype.onStateChange_=function(K){var d=parseInt(K.params.currentTime||K.params.current_time,10);HT(this.playerContext_,isNaN(d)?0:d);d=parseInt(K.params.state,10);d=isNaN(d)?-1:d;d==-1&&this.playerContext_.playerState==-1E3&&(d=-1E3);this.playerContext_.playerState=d;d=Number(K.params.loadedTime);this.playerContext_.loadedTime=isNaN(d)?0:d;d=Number(K.params.duration);this.playerContext_.duration_=isNaN(d)?0:d;d=this.playerContext_;var f=Number(K.params.liveIngestionTime);d.liveIngestionTime_=
f;d.isLive_=isNaN(f)?!1:!0;d=this.playerContext_;f=Number(K.params.seekableStartTime);K=Number(K.params.seekableEndTime);d.seekableStart_=isNaN(f)?0:f;d.seekableEnd_=isNaN(K)?0:K;this.playerContext_.playerState==1?Ndt(this):Pqi(this);this.publish("remotePlayerChange")};
uI.prototype.onAdStateChange_=function(K){if(this.playerContext_.playerState!=-1E3){var d=1085;switch(parseInt(K.params.adState,10)){case 1:d=1081;break;case 2:d=1084;break;case 0:d=1083}this.playerContext_.playerState=d;K=parseInt(K.params.currentTime,10);HT(this.playerContext_,isNaN(K)?0:K);this.publish("remotePlayerChange")}};
var hxZ=function(K,d){var f=d.params.muted=="true";K.playerContext_.volume=parseInt(d.params.volume,10);K.playerContext_.muted=f;K.publish("remotePlayerChange")},b2P=function(K,d){K.autoplayVideoId_=d.params.videoId;
K.publish("nowAutoplaying",parseInt(d.params.timeout,10))},mVt=function(K,d){K.autoplayVideoId_=d.params.videoId||null;
K.publish("autoplayUpNext",K.autoplayVideoId_)},lDU=function(K,d){K.autoplayMode_=d.params.autoplayMode;
K.publish("autoplayModeChange",K.autoplayMode_);K.autoplayMode_=="DISABLED"&&K.publish("autoplayDismissed")},Wvw=function(K,d){var f=d.params.hasNext=="true";
K.playerContext_.hasPrevious=d.params.hasPrevious=="true";K.playerContext_.hasNext=f;K.publish("previousNextChange")};
uI.prototype.isCapabilitySupportedOnConnectedDevices_=function(K){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var d=_.y(this.connectedDevices_),f=d.next();!f.done;f=d.next())if(!f.value.capabilities.has(K))return!1;return!0};
var Xrz=function(K,d){d=d.message;d.params?cT("Received: action="+d.action+", params="+(0,_.FJ)(d.params)):cT("Received: action="+d.action+" {}");switch(d.action){case "loungeStatus":d=(0,_.P0)(d.params.devices);K.connectedDevices_=_.O7(d,function(H){return new LX(H)});
d=!!_.rz(K.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"});
tAz(K,d);d=K.isCapabilitySupportedOnConnectedDevices_("mlm");K.publish("multiStateLoopEnabled",d);break;case "loungeScreenDisconnected":Ukw(K.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"});
tAz(K,!1);break;case "remoteConnected":var f=new LX((0,_.P0)(d.params.device));_.rz(K.connectedDevices_,function(H){return H.equals(f)})||_.JN(K.connectedDevices_,f);
break;case "remoteDisconnected":f=new LX((0,_.P0)(d.params.device));Ukw(K.connectedDevices_,function(H){return H.equals(f)});
break;case "gracefulDisconnect":break;case "playlistModified":$V5(K,d,"QUEUE_MODIFIED");break;case "nowPlaying":EHi(K,d);break;case "onStateChange":K.onStateChange_(d);break;case "onAdStateChange":K.onAdStateChange_(d);break;case "onVolumeChanged":hxZ(K,d);break;case "onSubtitlesTrackChanged":oHK(K,d);break;case "nowAutoplaying":b2P(K,d);break;case "autoplayDismissed":K.publish("autoplayDismissed");break;case "autoplayUpNext":mVt(K,d);break;case "onAutoplayModeChanged":lDU(K,d);break;case "onHasPreviousNextChanged":Wvw(K,
d);break;case "requestAssistedSignIn":K.publish("assistedSignInRequested",d.params.authCode);break;case "onLoopModeChanged":K.publish("loopModeChange",d.params.loopMode);break;default:cT("Unrecognized action: "+d.action)}};
_.V=uI.prototype;_.V.getProxyState_=function(){var K=3;this.isDisposed()||(K=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(K=1):K=2);return K};
_.V.JSC$17553_disconnect_=function(K){cT("Disconnecting with "+K);_.B6("yt.mdx.remote.remoteClient_",null);MA5(this);this.publish("beforeDisconnect",K);K==1&&bE();this.channelService.disconnect(K);this.dispose()};
_.V.getPlayerContextData_=function(){var K=this.playerContext_;this.clientVideoId_&&(K=this.playerContext_.clone(),nHU(K,this.clientVideoId_,K.index));return i2i(K)};
_.V.setPlayerContextData_=function(K){var d=this,f=new sq(K);f.videoId&&f.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=f.videoId,_.yK(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.VK(function(){if(d.clientVideoId_){var D=d.clientVideoId_;d.clientVideoId_=null;d.playerContext_.videoId!=D&&a8(d,"getNowPlaying")}},5E3));
var H=[];this.playerContext_.listId==f.listId&&this.playerContext_.videoId==f.videoId&&this.playerContext_.index==f.index||H.push("remoteQueueChange");this.playerContext_.playerState==f.playerState&&this.playerContext_.volume==f.volume&&this.playerContext_.muted==f.muted&&yQ7(this.playerContext_)==yQ7(f)&&(0,_.FJ)(this.playerContext_.trackData)==(0,_.FJ)(f.trackData)||H.push("remotePlayerChange");this.playerContext_.reset(K);_.QB(H,function(D){this.publish(D)},this)};
_.V.getOtherConnectedRemoteId_=function(){var K=this.channelService.getDeviceId(),d=_.rz(this.connectedDevices_,function(f){return f.type=="REMOTE_CONTROL"&&f.id!=K});
return d?d.id:""};
_.V.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.V.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.V.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.V.JSC$17553_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var YI7=function(K){_.yK(K.idleDisconnectTimerId_);K.idleDisconnectTimerId_=_.VK(function(){K.JSC$17553_disconnect_(1)},864E5)},a8=function(K,d,f){f?cT("Sending: action="+d+", params="+(0,_.FJ)(f)):cT("Sending: action="+d);
K.channelService.sendMessage(d,f)};
uI.prototype.sendMessageWithUserAction_=function(K,d){a8(this,K,d);YI7(this)};
uI.prototype.JSC$17553_getXsrfToken_=function(){var K=_.I0.get("SAPISID","")||_.I0.get("__Secure-1PAPISID",void 0)||"",d=_.I0.get("__Secure-3PAPISID","")||"";if(!K&&!d)return"";K=_.eS(_.Mo(K),2);d=_.eS(_.Mo(d),2);return _.eS(_.Mo(","+K+","+d),2)};
uI.prototype.subscribe=uI.prototype.subscribe;uI.prototype.unsubscribeByKey=uI.prototype.unsubscribeByKey;uI.prototype.getProxyState=uI.prototype.getProxyState_;uI.prototype.disconnect=uI.prototype.JSC$17553_disconnect_;uI.prototype.getPlayerContextData=uI.prototype.getPlayerContextData_;uI.prototype.setPlayerContextData=uI.prototype.setPlayerContextData_;uI.prototype.getOtherConnectedRemoteId=uI.prototype.getOtherConnectedRemoteId_;uI.prototype.getReconnectTimeout=uI.prototype.getReconnectTimeout_;
uI.prototype.getAutoplayMode=uI.prototype.getAutoplayMode_;uI.prototype.getAutoplayVideoId=uI.prototype.getAutoplayVideoId_;uI.prototype.reconnect=uI.prototype.JSC$17553_reconnect_;uI.prototype.sendMessage=uI.prototype.sendMessageWithUserAction_;uI.prototype.getXsrfToken=uI.prototype.JSC$17553_getXsrfToken_;uI.prototype.isCapabilitySupportedOnConnectedDevices=uI.prototype.isCapabilitySupportedOnConnectedDevices_;var GIz=function(K){ro.call(this,"ScreenServiceProxy");this.instance_=K;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Om)(this.JSC$17556_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Om)(this.onOnlineScreenChange_,this)))};
_.O(GIz,ro);_.V=GIz.prototype;_.V.getScreens=function(K){return this.instance_.$_gs(K)};
_.V.contains=function(K){return!!this.instance_.$_c(K)};
_.V.get=function(K){return this.instance_.$_g(K)};
_.V.start=function(){this.instance_.$_st()};
_.V.add=function(K,d,f){this.instance_.$_a(K,d,f)};
_.V.remove=function(K,d,f){this.instance_.$_r(K,d,f)};
_.V.updateName=function(K,d,f,H){this.instance_.$_un(K,d,f,H)};
_.V.disposeInternal=function(){for(var K=this.subscriptionKeys_.length,d=0;d<K;++d)this.instance_.$_ubk(this.subscriptionKeys_[d]);this.subscriptionKeys_.length=0;this.instance_=null;ro.prototype.disposeInternal.call(this)};
_.V.JSC$17556_onScreenChange_=function(){this.publish("screenChange")};
_.V.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
jg.prototype.$_st=jg.prototype.start;jg.prototype.$_gspc=jg.prototype.JSC$17513_getScreenByPairingCode;jg.prototype.$_gsppc=jg.prototype.JSC$17513_getScreenByPollingPairingCode;jg.prototype.$_c=jg.prototype.contains;jg.prototype.$_g=jg.prototype.get;jg.prototype.$_a=jg.prototype.add;jg.prototype.$_un=jg.prototype.updateName;jg.prototype.$_r=jg.prototype.remove;jg.prototype.$_gs=jg.prototype.getScreens;jg.prototype.$_gos=jg.prototype.JSC$17513_getOnlineScreens;jg.prototype.$_s=jg.prototype.subscribe;
jg.prototype.$_ubk=jg.prototype.unsubscribeByKey;var Cqi=function(K){cdU();if(!m6||!m6.get("yt-remote-disable-remote-module-for-dev")){K=_.mD("MDX_CONFIG")||K;R2Z();H3z();I8||(I8=new oK(K?K.loungeApiHost:void 0),utw()&&(I8.basePath="/api/loungedev"));U_||(U_=_.T2("yt.mdx.remote.deferredProxies_")||[],_.B6("yt.mdx.remote.deferredProxies_",U_));AQP();var d=R8();if(!d){var f=new jg(I8,K?K.disableAutomaticScreenCache||!1:!1);_.B6("yt.mdx.remote.screenService_",f);d=R8();var H={};K&&(H={appId:K.appId,disableDial:K.disableDial,theme:K.theme,loadCastApiSetupScript:K.loadCastApiSetupScript,
disableCastApi:K.disableCastApi,enableDialLoungeToken:K.enableDialLoungeToken,enableCastLoungeToken:K.enableCastLoungeToken,forceMirroring:K.forceMirroring});_.B6("yt.mdx.remote.enableConnectWithInitialState_",K?K.enableConnectWithInitialState||!1:!1);j4K(f,function(S){S?Fz()&&weS(Fz(),"YouTube TV"):f.subscribe("onlineScreenChange",function(){Kc("yt-remote-receiver-availability-change")})},H)}if(K&&!_.T2("yt.mdx.remote.initialized_")){_.B6("yt.mdx.remote.initialized_",!0);
zL("Initializing: "+(0,_.FJ)(K));Xz.push(_.Ha("yt-remote-cast2-api-ready",function(){Kc("yt-remote-api-ready")}));
Xz.push(_.Ha("yt-remote-cast2-availability-change",function(){Kc("yt-remote-receiver-availability-change")}));
Xz.push(_.Ha("yt-remote-cast2-receiver-selected",function(){Tdc();Kc("yt-remote-auto-connect","cast-selector-receiver")}));
Xz.push(_.Ha("yt-remote-cast2-receiver-resumed",function(){Kc("yt-remote-receiver-resumed","cast-selector-receiver")}));
Xz.push(_.Ha("yt-remote-cast2-session-change",rQS));Xz.push(_.Ha("yt-remote-connection-change",function(S){S?weS(Fz(),"YouTube TV"):qIZ()||(weS(null,null),Jdy())}));
Xz.push(_.Ha("yt-remote-cast2-session-failed",function(){Kc("yt-remote-connection-failed")}));
H=QaU();K.isAuto&&(H.id+="#dial");var D=K.capabilities||[];D.length>0&&(H.capabilities=D);H.name=K.device;H.app=K.app;(K=K.theme)&&(H.theme=K);zL(" -- with channel params: "+(0,_.FJ)(H));H?(_.p5("yt-remote-session-app",H.app),_.p5("yt-remote-session-name",H.name)):(_.ds("yt-remote-session-app"),_.ds("yt-remote-session-name"));_.B6("yt.mdx.remote.channelParams_",H);d.start();Fz()||ja7()}}},Lv5=function(){var K=R8().instance_.$_gos();
var d=xVP();d&&vT()&&(edt(K,d)||K.push(d));return Zoi(K)},BdE=function(){var K=Lv5(),d=xVP();
d||(d=qIZ());return _.rz(K,function(f){return d&&Eq(d,f.key)?!0:!1})},xVP=function(){var K=Fz();
if(!K)return null;var d=R8().getScreens();return hK(d,K)},rQS=function(K){zL("remote.onCastSessionChange_: "+Z3P(K));
if(K){var d=xVP();d&&d.id==K.id?(weS(d.id,"YouTube TV"),K.idType=="shortLived"&&(K=K.token)&&(d=vT())&&d.setLoungeToken(K)):(d&&JQ7(),saP(K,1))}else vT()&&JQ7()},JQ7=function(){kFZ()?Bf().stopSession():Lc("stopSession called before API ready.");
var K=vT();K&&(K.disconnect(1),kIE(null))},wrt=function(){var K=vT();
return K&&K.getProxyState()!=3?new Dy(vT(),void 0):null},zL=function(K){GR("remote",K)},R8=function(){if(!Z2Z){var K=_.T2("yt.mdx.remote.screenService_");
Z2Z=K?new GIz(K):null}return Z2Z},Fz=function(){return _.T2("yt.mdx.remote.currentScreenId_")},exU=function(K){_.B6("yt.mdx.remote.currentScreenId_",K)},Tdc=function(){_.B6("yt.mdx.remote.connectData_",null)},vT=function(){return _.T2("yt.mdx.remote.connection_")},kIE=function(K){var d=vT();
Tdc();K||exU("");_.B6("yt.mdx.remote.connection_",K);U_&&(_.QB(U_,function(f){f(K)}),U_.length=0);
d&&!K?Kc("yt-remote-connection-change",!1):!d&&K&&Kc("yt-remote-connection-change",!0)},qIZ=function(){var K=d5Z();
if(!K)return null;var d=R8();if(!d)return null;d=d.getScreens();return hK(d,K)},saP=function(K,d){exU(K.id);
K=new uI(I8,K,QaU(),_.T2("yt.mdx.remote.enableConnectWithInitialState_")||!1);K.connect(d,_.T2("yt.mdx.remote.connectData_"));K.subscribe("beforeDisconnect",function(f){Kc("yt-remote-before-disconnect",f)});
K.subscribe("beforeDispose",function(){vT()&&kIE(null)});
K.subscribe("browserChannelAuthError",function(){var f=xVP();f&&f.idType=="shortLived"&&(kFZ()?Bf().handleBrowserChannelAuthError():Lc("refreshLoungeToken called before API ready."))});
kIE(K)},ja7=function(){var K=qIZ();
K?(zL("Resume connection to: "+Z3P(K)),saP(K,0)):(bE(),Jdy(),zL("Skipping connecting because no session screen found."))},I8=null,U_=null,Z2Z=null,AQP=function(){var K=QaU();
if(_.PR.isEmpty(K)){K=KkP();var d=_.KI("yt-remote-session-name")||"",f=_.KI("yt-remote-session-app")||"";K={device:"REMOTE_CONTROL",id:K,name:d,app:f,mdxVersion:3};K.authuser=String(_.mD("SESSION_INDEX","0"));(d=_.mD("DELEGATED_SESSION_ID"))&&(K.pageId=String(d));_.B6("yt.mdx.remote.channelParams_",K)}},QaU=function(){return _.T2("yt.mdx.remote.channelParams_")||{}},Xz=[];var prS=new _.mn("yt-menu"),KMZ=function(){},fBS=function(K,d,f){K=d=="right-click"?f.rightClickMenuPopupHint:f.menuPopupHint;
if(!(dpc(d)>10))return d=d||"default",prS.set(d+"-impression",dpc(d)+1),K},dpc=function(K){return parseInt(prS.get((K||"default")+"-impression")||0,10)};
_.xb(KMZ);var H5U=function(){this.contexts_=new WeakMap;this.JSC$17562_networkService_=this.activeContext_=null},Dpy=function(K,d,f){var H=K.contexts_.get(d);
H||(H=new IFZ(K.JSC$17562_networkService_),K.contexts_.set(d,H));K.activeContext_=H;f&&K.activeContext_.reset();K.activeContext_.start();return K.activeContext_};var M2=function(){};
M2.prototype.enqueue=function(){var K=this,d;return _.c(function(f){if(K.isCounterfactual())return(d=K.getCounterfactualData())&&K.shouldLogCounterfactualImpression()&&K.sendImpressionEndpoints(d),f.return();K.doEnqueue();_.iQ(f)})};
M2.prototype.sendImpressionEndpoints=function(K){_.rU.getInstance().triggerOptionalAction("yt-service-request",{},K[0])};var PT=function(K,d){this.renderer=K;this.page=d};
_.O(PT,M2);PT.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
PT.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
PT.prototype.shouldLogCounterfactualImpression=function(){return!0};
PT.prototype.doEnqueue=function(){var K=_.CK(this.page);K&&K.pause();this.renderer.impressionCommand&&_.rU.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Nh(_.rU.getInstance(),[this.renderer.promoCommand],this.page)};var VJl=function(K,d){this.renderer=K;this.resolver=_.Gz();this.JSC$17574_enforcementCounter=new _.nQs;d?this.JSC$17574_playerManager=_.CK(d):this.JSC$17574_playerManager=null;_.SZ(1,!0)};
_.O(VJl,M2);_.V=VJl.prototype;_.V.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var K=[];this.renderer.impressionEndpoints.forEach(function(d){(d=_.$A(d))&&K.push(d)});
return K}};
_.V.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.V.shouldLogCounterfactualImpression=function(){var K=_.CDz();K?(this.JSC$17574_enforcementCounter.increment("POPUP"),_.SZ(3)):_.SZ(2);return K};
_.V.cancel=function(){this.resolver.promise.cancel()};
_.V.doEnqueue=function(){var K=this;_.CDz()?(this.JSC$17574_enforcementCounter.increment("POPUP"),_.SZ(3),S0Z(this)):this.JSC$17574_playerManager?(this.resolver.promise.then(function(){S0Z(K)}),y_w(this.resolver,this.JSC$17574_playerManager)):_.SZ(2)};
var y_w=function(K,d){var f=_.Gz();d.getPlayerPromise().then(function(H){f.resolve(H)});
f.promise.then(function(H){H.addEventListener("onAbnormalityDetected",K.resolve);_.It(K.promise,function(){H.removeEventListener("onAbnormalityDetected",K.resolve)})});
K.promise.thenCatch(function(){f.promise.cancel()})},S0Z=function(K){_.SZ(3);
var d={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:K.renderer}};d=_.rU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:d},{});Promise.all(d).then(function(){nfU();K.JSC$17574_playerManager&&K.JSC$17574_playerManager.pause()})},nfU=function(){p_w(function(K,d){_.e7y(K,d);
K===0?_.SZ(7):_.SZ(4)})};var i5i=function(K,d){this.renderer=K;this.page=d;this.resolver=_.Gz()};
_.O(i5i,M2);_.V=i5i.prototype;_.V.cancel=function(){this.resolver.promise.cancel()};
_.V.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.V.isCounterfactual=function(){return!this.renderer.isVisible};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var K=this;this.resolver.promise.then(function(){var f={popup:{mealbarPromoRenderer:K.renderer},popupType:"MEALBAR"};_.rU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:f},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var d=_.CK(this.page);d&&c_K(this.resolver,d)}break;default:this.resolver.resolve()}};
var c_K=function(K,d){var f=_.Gz();d.getPlayerPromise().then(function(H){f.resolve(H)});
f.promise.then(function(H){H.addEventListener("onAdEnd",K.resolve);_.It(K.promise,function(){H.removeEventListener("onAdEnd",K.resolve)})});
K.promise.thenCatch(function(){f.promise.cancel()})};var uv5=function(K,d){this.renderer=K;this.page=d};
_.O(uv5,M2);_.V=uv5.prototype;_.V.cancel=function(){this.JSC$17582_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17582_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17582_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.V.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.V.isCounterfactual=function(){return!this.renderer.isVisible};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var K=this,d,f;((d=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(f=d.playbackUpsellDialogTriggerConditionData)==null?void 0:f.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17582_downloadedVideosCountSelectorUnsubscriber=_.n5(_.j3(),sdP,function(H,D){H>D&&(aBt(K),K.cancel())}):aBt(this)};
var aBt=function(K){var d={popup:{upsellDialogRenderer:K.renderer},popupType:"MODAL"};_.rU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:d},{});(K=_.CK(K.page))&&K.pause()};var gI={},IBl=(gI.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",gI.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",gI.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",gI.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",gI.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",gI.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",gI.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",gI),UpK=function(K,d){this.renderer=K;this.targetManager=
d};
_.O(UpK,M2);_.V=UpK.prototype;_.V.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17589_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17589_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17589_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.V.getCounterfactualData=function(){if(this.isCounterfactual()){var K;return(K=this.renderer.promoConfig)==null?void 0:K.impressionEndpoints}};
_.V.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var K=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17589_downloadedVideosCountSelectorUnsubscriber=_.n5(_.j3(),sdP,function(d,f){K.renderer.targetId&&d>f&&(xnc(K.targetManager,K.renderer.targetId,RlP(K)),K.cancel())});
break;default:xnc(this.targetManager,this.renderer.targetId,RlP(this))}};
var RlP=function(K){var d;if((d=K.renderer.suggestedPosition)==null?0:d.type)var f=IBl[K.renderer.suggestedPosition.type];f||(f="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:K.renderer},popupType:"HINT",position:f}}};var FMZ=function(){this.previousPage=null},zlw;
FMZ.prototype.registerPromoCommand=function(K,d){X5i(this,void 0,void 0,_.P(K.roadblock,W1P),void 0,void 0,d)};
var X5i=function(K,d,f,H,D,S,n){K.previousPage!==n&&K.pendingTooltipPromo&&K.pendingTooltipPromo.cancel();K.previousPage=n;D?(K.pendingEnforcementPromo&&K.pendingEnforcementPromo.cancel(),K.pendingEnforcementPromo=new VJl(D,n),K.pendingEnforcementPromo.enqueue()):S?(K.pendingCommandWrapperPromo=new PT(S,n),K.pendingCommandWrapperPromo.enqueue()):H?(K.pendingRoadblockPromo&&K.pendingRoadblockPromo.cancel(),K.pendingRoadblockPromo=new uv5(H,n),K.pendingRoadblockPromo.enqueue()):d?(K.pendingMealbarPromo&&
K.pendingMealbarPromo.cancel(),K.pendingMealbarPromo=new i5i(d,n),K.pendingMealbarPromo.enqueue()):f&&(K.pendingTooltipPromo&&K.pendingTooltipPromo.cancel(),K.pendingTooltipPromo=new UpK(f,_.aC()),K.pendingTooltipPromo.enqueue())},vfE=function(){zlw||(zlw=new FMZ);
return zlw};var duU=!1;var sO5=function(K,d){var f=_.mD("SESSION_INDEX");this.actionToken_=K;this.commonToken_=d;this.sessionIndex_=f},JpS=function(K){var d=_.Gz(),f=_.T2("payments.business.integration.bootstrap"),H=_.T2("payments.business.integration"),D=H.Style.create().withMaterialDesignStyle(),S=H.mashupMode.popup("instrument-manager");
f.asMashupMode(S).usingUserIndex(K.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(D).inStandaloneContext(H.standaloneContextAuthId.forUserId()).instrumentManager(K.actionToken_,K.commonToken_.length>0?K.commonToken_:void 0,function(n){var u=n.instrumentId;u?d.resolve(u):(u=_.T2("payments.business.integration.scenario.InstrumentManager"),d.reject(n.errorCode&&n.errorCode===u.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(n){_.G2(n);
d.reject("instrumentManagerLoadError")});
return d.promise};var pc=function(K,d,f){this.payloadName="transactionFlowFailed";this.payload={errorType:K,serializedTransactionFlowLoggingParams:d,isUserDismiss:f===void 0?!1:f}};
_.B6("yt.ypc.shared.YpcTransactionFlowError",pc);var O_=function(){return _.cP.apply(this,arguments)||this};
_.O(O_,_.cP);O_.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
O_.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
O_.prototype.onErrorMessageDismiss=O_.prototype.onErrorMessageDismiss;_.x([_.A({readOnly:!0,observer:"errorRendererChanged"}),_.B("design:type",Object)],O_.prototype,"errorRenderer",void 0);_.x([_.VV("yt-live-chat-error-message-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],O_.prototype,"onErrorMessageDismiss",null);O_=_.x([_.uL()],O_);var MJl=[O_.prototype];var Pi7;var gfK;var O5E=new _.mn("yt-live-chat"),NxU=new Map;NxU.set("timestamp_toggle","show-timestamps");NxU.set("reactions_toggle","allow-reactions");var N2=function(){return _.q.apply(this,arguments)||this};
_.O(N2,_.q);_.V=N2.prototype;_.V.menuItemIdentifierChanged=function(){var K;(K=this.data)!=null&&K.menuItemIdentifier&&(K=NxU.get(this.data.menuItemIdentifier))&&(_.M("enable_lwe_web_mute")?(K=O5E.get(K),this.isToggled=!(K===void 0?!this.data.isToggled:!K)):this.isToggled=O5E.get(K))};
_.V.onFocus=function(){this.toggleButton.focus()};
_.V.onTap=function(){var K=this.data.command;K&&this.componentBehavior.resolveCommand(K)};
_.V.computeText=function(K,d,f){return this.componentBehavior.getSimpleString(K?f:d)};
_.V.computeIcon=function(K,d,f){return(K=K?f:d)&&K.iconType?_.Hv(K.iconType):""};
N2.prototype.onTap=N2.prototype.onTap;N2.prototype.onFocus=N2.prototype.onFocus;N2.prototype.menuItemIdentifierChanged=N2.prototype.menuItemIdentifierChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],N2.prototype,"componentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],N2.prototype,"data",void 0);
_.x([_.A({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.B("design:type",String)],N2.prototype,"icon",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],N2.prototype,"isToggled",void 0);_.x([_.n8("tp-yt-paper-toggle-button"),_.B("design:type",Object)],N2.prototype,"toggleButton",void 0);_.x([_.SP("data.menuItemIdentifier"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],N2.prototype,"menuItemIdentifierChanged",null);
_.x([_.VV("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],N2.prototype,"onFocus",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],N2.prototype,"onTap",null);N2=_.x([_.N7({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],N2);
_.C(N2,"yt-live-chat-toggle-renderer",function(){if(gfK===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Pi7===void 0&&(Pi7=document.createElement("template"));var H=Pi7;f.call(d,H.content.cloneNode(!0),K.content.firstChild);gfK=K}K=gfK;return K},{mode:_.M("live_chat_enable_sink_wrapper")?2:0});var Y0S=new _.xn("NAVIGATION_PROGRESS_TOKEN");_.bx("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var tJt={},nZi=(tJt.CSI=function(K,d){var f={};f[K]=d;K=_.AR(_.BTB)(f);Object.keys(K).length>0&&_.Ox(K)},tJt.ECATCHER=function(K){return function(d,f){_.mD(K)[d]=f}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),tJt);var oft={},$pU={},EfZ=($pU[g17.name]=!0,$pU),Yx=function(){var K=_.cP.apply(this,arguments)||this;K._noAccessors=!0;K.tabGesturesIsActive=!1;K.actionRouterIsRoot=!0;K.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"};K.pageTitle="";K.titleSuffix="YouTube";K.unseenNotificationCount=
0;K.hasNavigated=!1;K.hasSetScrollTopForNavigation=!1;K.pagePreparer=null;K.zwiebackInitJobId=0;K.dataUpdatePromise=null;K.loadDepsPromise=_.HG();K.hasPendingNavigation=!1;K.pendingPlayerOnResponseReceivedActions=[];return K};
_.O(Yx,_.cP);Yx.prototype.attached=function(){hlP(this);document.addEventListener("yt-navigate-cache",_.Dm(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var K=tu();K.init();K.dispatchElement=this.hostElement};
var hlP=function(K,d){d=d===void 0?0:d;var f=_.eq().resolve(_.Zd(_.um));if(f)b5E(K,f);else{if(d>=5)throw Error("Wk");setTimeout(function(){hlP(K,d+1)},0)}},b5E=function(K,d){d.addEventListener("yt-navigate-start",_.Dm(K,K.onYtNavigateStart));
d.addEventListener("yt-navigate-finish",_.Dm(K,K.onYtNavigateFinish));d.addEventListener("yt-navigate-error",_.Dm(K,K.onYtNavigateError));d.addEventListener("yt-page-data-fetched",_.Dm(K,K.onYtPageDataFetched))};
_.V=Yx.prototype;_.V.detached=function(){var K=_.eq().resolve(_.um);K.removeEventListener("yt-navigate-start",_.Dm(this,this.onYtNavigateStart));K.removeEventListener("yt-navigate-finish",_.Dm(this,this.onYtNavigateFinish));K.removeEventListener("yt-navigate-error",_.Dm(this,this.onYtNavigateError));K.removeEventListener("yt-page-data-fetched",_.Dm(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Dm(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.V.setPageOffset=function(K,d){K?_.ev(this.hostElement,"yt-set-page-offset",[K,d]):_.$7(Error("Xk"))};
_.V.setPageOffsetForNavigation=function(K,d){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(K,d))};
_.V.onYtNavigateSetPageOffset=function(K,d){this.setPageOffsetForNavigation(d.page,d.offset)};
_.V.getPageOffset=function(){var K=_.E(this.hostElement).querySelector("#page-manager").getCurrentPage(),d=0;K&&(d=_.ev(this.hostElement,"yt-get-page-offset",[K])[0]);return d};
_.V.onYtHistoryPop=function(K,d){if(_.lx("DISABLE_WARM_LOADS"))K.preventDefault(),window.location.reload();else{var f=_.eq().resolve(_.um);f.hasPendingNavigation()&&K.preventDefault();f.cancelPendingNavigation();_.p1(this.hostElement,"yt-pending-navigation-cancelled");d.errorMsg&&(K=d.errorMsg.split(" - "),d=Error(K[0]),K.length==2&&K[1]&&(_.bp(d,K[1]),_.h3(d)),window.location.reload())}};
_.V.onYtHistoryLoad=function(K,d){var f=this;if(_.lx("DISABLE_WARM_LOADS"))window.location.reload();else{(K=d.endpoint)&&Object.keys(K).length||(K=null);var H=d.historyEntry,D=_.eq().resolve(_.um),S=_.eq().resolve(_.jC),n=null;H&&H.rootData&&(n=H.rootData);var u=n&&mpc(n);!n||u||n.filler?K?(D.navigate(K,!0),lBw(this,K)):(d.legacyBorder||u||(d.JSC$26542_savedComponentState==null&&n==null?_.h3(new _.X4("Incomplete history entry",d.forward)):_.EN(new _.X4("Malformed history entry",d.JSC$26542_savedComponentState,
d.forward,n))),window.location.reload()):(_.KwY({isHot:!0}),_.Ox({webInfo:{navigationReason:"h"}}),_.f3Y(),_.YJ("srt"),_.YJ("pdc"),this.cancelPendingTasks(),WMK(this,d.forward,n),n.player&&(n.player.loaded=!1),lBw(this,K),_.JOs(D,K||{},n,2,{},!1,d).then(function(){f.setPageOffset(S.getCurrentPage(),H.scrollTop||0)}))}};
_.V.initHistoryManager=function(K){if(!this.hasNavigated){this.hasNavigated=!0;var d=_.E(this.hostElement).querySelector("#page-manager").getCurrentData();K=isNaN(K)?this.getPageOffset():K;var f=_.eq().resolve(_.um).currentEndpoint;this.replaceState(f,d,K)}};
_.V.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.V.onYtNavigateStart=function(K,d){this.cancelPendingTasks();d.noProgressBar||(K=_.eq().resolve(_.Zd(Y0S)))&&K.start();K=this.hasPendingNavigation?null:this.data;var f=_.eq().resolve(_.jC),H,D,S;_.M("kevlar_use_vimio_behavior")&&!((H=d.endpoint)==null?0:(D=H.commandMetadata)==null?0:(S=D.webCommandMetadata)==null?0:S.ignoreNavigation)&&(H=f.getCurrentPage())&&H.disconnectVisibilityRoot();f.prepareForNavigation(d.pageType,d.endpoint);_.M("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Bn(1,
"pcl"),_.Jj(this.pagePreparer,f.preparePage.bind(f,d.pageType,d.endpoint)));H=this.getPageOffset();this.initHistoryManager(H);d.reload||this.hasPendingNavigation?this.replaceState(d.endpoint,K,H):(K==null?void 0:K.page)==="watch"&&d.pageType==="watch"&&_.M("kevlar_replace_watch_to_watch_history_state")?this.replaceState(d.endpoint,K,H):(K==null?void 0:K.page)!=="shorts"||d.pageType!=="shorts"||d.endpoint.reelWatchEndpoint.sequenceParams||_.M("short_to_short_back_nav_killswitch")?d.type!="navigate-back"&&
d.type!="navigate-forward"&&(d.pageType==="shorts"&&_.Zp(this.hostElement,"yt-shorts-reset"),this.saveAndPush(d.url,d.endpoint,K,H)):this.replaceState(d.endpoint,K,0);this.hasPendingNavigation=!0};
var GZU=function(K){K.hasPendingNavigation=!1;(K=_.eq().resolve(_.Zd(Y0S)))&&K.finish()};
Yx.prototype.onYtNavigateError=function(K,d){GZU(this);K=this.get("endpoint.commandMetadata.webCommandMetadata.url",d);var f=_.CQ(window.location.href);K&&!f.pbjreload&&(d=d.navigationErrorReason||"10",_.M("kevlar_parent_on_pbjreload")&&(f={csn:_.te()},this.get("data.endpoint.clickTrackingParams")&&(f.itct=this.data.endpoint.clickTrackingParams),_.xZ(K,f)),_.WW(_.xM(K,{pbjreload:d})))};
Yx.prototype.onYtNavigateCache=function(K,d){var f=this,H=d.url,D=d.endpoint,S=d.data;K=!!d.miniplayer;d=!!d.skipHistory;if(H&&D&&S){var n=this.getPageOffset(),u=this.data||null;d||this.saveAndPush(H,D,u,n);H=_.JOs(_.eq().resolve(_.um),D,S,K?4:3,{},K);K&&H.then(function(){f.dataUpdatePromise&&f.dataUpdatePromise.then(function(){var a=_.eq().resolve(_.jC);f.setPageOffset(a.getCurrentPage(),0)})})}};
Yx.prototype.onYtNavigateFinish=function(K,d){var f=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){A_w(f,d.fromHistory)})};
var A_w=function(K,d){GZU(K);if(K.pendingPlayerOnResponseReceivedActions){for(var f=_.y(K.pendingPlayerOnResponseReceivedActions),H=f.next();!H.done;H=f.next())_.SV(H.value,K.hostElement);K.pendingPlayerOnResponseReceivedActions=[]}f=_.eq().resolve(_.jC);!d&&K.hasNavigated&&((d=f.getCurrentPage())?d.is==="ytd-shorts"||K.tabGesturesIsActive||K.setPageOffsetForNavigation(d,0):_.h3(Error("Yk")));_.bL(function(){_.bL(function(){_.YJ("pda")})})};
Yx.prototype.onYtNavigate=function(K){if(!K.detail.endpoint){var d=new _.X4("Error: Missing yt-navigate endpoint from target:",K.target,K.target.nodeName);_.$7(d)}if(d=_.M("cold_missing_history"))d=tu(),d.init(!1),d=!(d.browserHistory.boundHistoryReplaceState&&d.browserHistory.boundHistoryPushState);if(d){_.bx("DISABLE_WARM_LOADS",!0);d=new _.X4("Failed to initialize history manager",this.getDebugString());var f=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
f?_.h3(d):_.$7(d)}d=K.detail.endpoint;var H,D;_.M("debug_forward_web_query_parameters")&&((H=d.commandMetadata)==null?0:(D=H.webCommandMetadata)==null?0:D.url)&&(d=JSON.parse(JSON.stringify(d)),d.commandMetadata.webCommandMetadata.url=_.j4u(d.commandMetadata.webCommandMetadata.url,window.location.search));K={type:0,command:d,form:{params:K.detail.params,tempData:K.detail.tempData||{},requestType:K.detail.type,createScreenConfig:K.detail.createScreenConfig,reload:K.detail.reload?K.detail.reload:!1,
requestForm:K.detail}};_.M("kevlar_yt_navigate_command_handler")?(H=_.eq().resolve(_.pQ),K.form.skipDefaultElement=!0,H.resolveCommand(d,{form:K.form})):this.handleNavigate(K)};
Yx.prototype.handleNavigate=function(K){this.hasSetScrollTopForNavigation=!1;var d=_.eq().resolve(_.um),f=K.form||{};d.navigate(K.command,f.reload,f.params,f.tempData,f.requestType,f.createScreenConfig,f.ignoreConfirmation,f.requestForm)&&lBw(this,K.command,f.tempData)};
Yx.prototype.onYtPageDataFetched=function(K,d){try{_.pSN().reset();this.data=d.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.eq().resolve(_.jC).updatePageData(this.data);var f=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);f&&i1P(f);var H=this.get("response.responseContext.serviceTrackingParams",this.data);H&&i1P(H);var D=
this.get("playerResponse.onResponseReceivedActions",this.data);D&&(D=TxE(this,D));D&&_.fd(this.hostElement,D,this.hostElement);var S=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),n=this.get("response.responseContext.consistencyTokenJar",this.data);if(S||n){var u=_.vL5(),a=(0,_.PR.getValues)(u.tokenJars);S&&u.replace(a,S);n&&u.replace(a,n)}}catch(R){_.$7(R)}};
var lBw=function(K,d,f){try{K.onYtEndpointChangeHandler(d,f)}catch(H){_.$7(H)}};
_.V=Yx.prototype;_.V.onYtEndpointChangeHandler=function(){};
_.V.setPageTitle=function(K){K=(this.pageTitle=K)?K+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+K};
_.V.onYtUpdateTitle=function(K,d){this.setPageTitle(d)};
_.V.setUnseenNotificationCount=function(K){this.unseenNotificationCount=K;this.setPageTitle(this.pageTitle)};
_.V.handleUpdateNotificationsUnseenCountAction=function(K){_.P(K,D_Z)&&((K=_.P(K,D_Z).unseenCount)?this.setUnseenNotificationCount(K):this.setUnseenNotificationCount(0))};
_.V.handleClearCookieAction=function(K){var d;(K=(d=_.P(K,K1S))==null?void 0:d.cookieName)&&_.yeN(K)};
_.V.onYtUpdateUnseenNotificationCount=function(K,d){this.setUnseenNotificationCount(d)};
_.V.loadData=function(K){var d=this;this.loadDepsPromise.then(function(){var f=_.eq().resolve(_.Zd(_.um));f||_.$7(Error("Zk"));if(K&&K.response){if(!K.endpoint){var H=_.W0(window.document.location.href)||"/",D="";if(H==="/"||H.startsWith("/?"))D="WEB_PAGE_TYPE_BROWSE";K.endpoint={commandMetadata:{webCommandMetadata:{url:H,webPageType:D,rootVe:3854}}}}_.JOs(f,K.endpoint,K,5,{})}else K.endpoint?f.navigate(K.endpoint):f.navigate(_.yg);_.oc.cancelJob(d.zwiebackInitJobId);d.zwiebackInitJobId=_.oc.addLowPriorityJob(fpP)})};
var tu=function(){return _.eq().resolve(_.SE)};
Yx.prototype.getDebugString=function(){return tu().getDebugString()};
Yx.prototype.getThirdPartyManipulationSuspected=function(){return tu().getThirdPartyManipulationSuspected()};
Yx.prototype.replaceState=function(K,d,f){tu().saveAndReplace(K,d,f)};
Yx.prototype.saveAndPush=function(K,d,f,H){tu().saveAndPush(K,d,f,H)};
var mpc=function(K){return _.P(K.endpoint,_.qu)||_.P(K.endpoint,_.IM)?!0:!K||isNaN(K.expirationTime)?!1:(0,_.k_)()>K.expirationTime},WMK=function(K,d,f){var H=K.get("response.trackingParams",f),D=_.YZ(),S=_.te();
if(H&&D&&S&&(H=K.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",f),!H&&f.rootVe&&(H=f.rootVe),D=d?"forwardButton":"backButton",d=K.get("playerResponse.topbar.desktopTopbarRenderer."+D+".buttonRenderer.command.clickTrackingParams",K.data),K=K.get("response.topbar.desktopTopbarRenderer."+D+".buttonRenderer.command.clickTrackingParams",K.data),d=(K=d||K)?_.RG(K):void 0,K=_.cv(),D=[_.HG(f)],_.eA(K,H,d,{dataPromises:D,csnToClone:f.csn}),f.graftedVes))for(f=
_.y(f.graftedVes),H=f.next();!H.done;H=f.next())_.p2(K,H.value)};
Yx.prototype.onStoreGraftedVeAction=function(K){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(K)):_.h3(Error("$k"))};
var TxE=function(K,d){return d.filter(function(f){for(var H in f)if(EfZ[H])return K.pendingPlayerOnResponseReceivedActions.push(f),!0;return!1})};
_.x$.Object.defineProperties(Yx.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Yx.prototype.onStoreGraftedVeAction=Yx.prototype.onStoreGraftedVeAction;Yx.prototype.loadData=Yx.prototype.loadData;Yx.prototype.onYtUpdateUnseenNotificationCount=Yx.prototype.onYtUpdateUnseenNotificationCount;Yx.prototype.handleClearCookieAction=Yx.prototype.handleClearCookieAction;Yx.prototype.handleUpdateNotificationsUnseenCountAction=Yx.prototype.handleUpdateNotificationsUnseenCountAction;Yx.prototype.setUnseenNotificationCount=Yx.prototype.setUnseenNotificationCount;
Yx.prototype.onYtUpdateTitle=Yx.prototype.onYtUpdateTitle;Yx.prototype.setPageTitle=Yx.prototype.setPageTitle;Yx.prototype.onYtEndpointChangeHandler=Yx.prototype.onYtEndpointChangeHandler;Yx.prototype.onYtPageDataFetched=Yx.prototype.onYtPageDataFetched;Yx.prototype.handleNavigate=Yx.prototype.handleNavigate;Yx.prototype.onYtNavigate=Yx.prototype.onYtNavigate;Yx.prototype.onYtNavigateFinish=Yx.prototype.onYtNavigateFinish;Yx.prototype.onYtNavigateCache=Yx.prototype.onYtNavigateCache;
Yx.prototype.onYtNavigateError=Yx.prototype.onYtNavigateError;Yx.prototype.onYtNavigateStart=Yx.prototype.onYtNavigateStart;Yx.prototype.cancelPendingTasks=Yx.prototype.cancelPendingTasks;Yx.prototype.initHistoryManager=Yx.prototype.initHistoryManager;Yx.prototype.onYtHistoryLoad=Yx.prototype.onYtHistoryLoad;Yx.prototype.onYtHistoryPop=Yx.prototype.onYtHistoryPop;Yx.prototype.onYtNavigateSetPageOffset=Yx.prototype.onYtNavigateSetPageOffset;Yx.prototype.setPageOffset=Yx.prototype.setPageOffset;
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Yx.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Yx.prototype,"data",void 0);_.x([_.VV("yt-navigate-set-page-offset"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Yx.prototype,"onYtNavigateSetPageOffset",null);
_.x([_.VV("yt-history-pop"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Yx.prototype,"onYtHistoryPop",null);_.x([_.VV("yt-history-load"),_.B("design:type",Function),_.B("design:paramtypes",[Event,_.Ic6]),_.B("design:returntype")],Yx.prototype,"onYtHistoryLoad",null);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Yx.prototype,"onYtNavigate",null);
_.x([_.VV("yt-update-title"),_.B("design:type",Function),_.B("design:paramtypes",[Event,String]),_.B("design:returntype")],Yx.prototype,"onYtUpdateTitle",null);_.x([_.VV("yt-update-unseen-notification-count"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Number]),_.B("design:returntype")],Yx.prototype,"onYtUpdateUnseenNotificationCount",null);Yx=_.x([_.uL()],Yx);oft.YtdAppBehavior=[_.kc.YtActionHandlerBehavior,Yx.prototype];var o8=function(){var K=_.cP.apply(this,arguments)||this;K._noAccessors=!0;return K};
_.O(o8,_.cP);o8.prototype.ready=function(){var K=this;_.E(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){K.onChange_()})};
o8.prototype.dataChanged_=function(){_.E(this.hostElement).querySelector("#checkbox").checked=!1};
o8.prototype.onChange_=function(){var K=_.E(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Zp(this.hostElement,"yt-dismissal-reason-"+K,this.data.feedbackToken)};
o8.prototype.dataChanged_=o8.prototype.dataChanged_;_.x([_.A(),_.B("design:type",Object)],o8.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],o8.prototype,"dataChanged_",null);o8=_.x([_.uL()],o8);var r_c=[o8.prototype];var $x=function(){var K=_.cP.apply(this,arguments)||this;K.timeoutJobId=0;K.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return K};
_.O($x,_.cP);$x.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
$x.prototype.startTimeout=function(){var K=this,d=this.data&&this.data.displayDurationSeconds;d&&!this.timeoutJobId&&(this.timeoutJobId=_.va(_.oc,function(){_.ev(K.hostElement,"yt-close-popup-action",[K.is]);K.timeoutJobId=0},d*1E3))};
$x.prototype.cancelTimeout=function(){_.oc.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
$x.prototype.ytdHatsSurveyBehaviorDataChanged=$x.prototype.ytdHatsSurveyBehaviorDataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],$x.prototype,"ytActionHandlerBehavior",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$x.prototype,"ytdHatsSurveyBehaviorDataChanged",null);$x=_.x([_.uL()],$x);var q0y=[_.kc.YtActionHandlerBehavior,$x.prototype];var QvP=function(K,d){return K.SHARED_RENDERERS_.hasOwnProperty(d)?"yt":K.prefix},E_={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}},DROPDOWN:{component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0},HINT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",
verticalOffset:15,withBackdrop:!1},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",
horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,
shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},forceCloseOnOutsideClick:!0,forceFocus:!0,slotName:"dropdown-content"},HINT_PERSISTENT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",verticalOffset:15,withBackdrop:!1,noAutoFocus:!0},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},
OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},
OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},slotName:"dropdown-content"},LOCKED_OVERLAY_DIALOG:{component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,
scrollAction:"lock",withBackdrop:!0},preventAutonav:!0}};E_.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.M("kevlar_mealbar_above_player"),modern:_.M("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
E_.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};E_.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};E_.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
E_.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)"}};
E_.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};
E_.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};
E_.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};
E_.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};E_.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"}};
E_.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};E_.TOAST={component:null,properties:{}};var jv5=new function(K,d,f){this.supportedPopups=K;this.navigationEndpointPopupMap=d;this.popupTypeMap=f;this.supportedPopups=K;this.navigationEndpointPopupMap=d;this.popupTypeMap=f}({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:_.M("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"}),Ciy=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17641_popupConfig=E_;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 xpZ=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Pw.getInstance()},hu=function(K,d){var f=K.pageNameToElement.get(d);
if(!f){switch(d){case "watch":var H=_.M("web_watch_force_learning_journey_for_testing")?_.LI("ytd-watch-learning-journey"):_.M("kevlar_watch_fixie")?_.LI("ytd-watch-fixie"):_.M("kevlar_watch_grid")?_.LI("ytd-watch-grid"):_.LI("ytd-watch-flexy");break;case "learning_journey_watch":H=_.LI("ytd-watch-learning-journey");break;case "shorts":H=_.LI("ytd-shorts");break;case "search":H=_.LI("ytd-search");break;case "channel":H=_.LI("ytd-browse");H.pageSubtype="channels";break;case "trending":H=_.LI("ytd-browse");
H.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":H=
_.LI("ytd-browse");H.pageSubtype=d;break;case "browse":H=_.LI("ytd-browse");break;default:_.h3(new _.X4("Error getting page element for type",d))}f=H;K.pageNameToElement.set(d,f)}return f};
xpZ.prototype.preparePage=function(K,d,f){f&&(K=_.nU(f)||K);if(K!=="watch"){var H=this.elementPoolPopulator,D=K;D!=H.targetPage_&&H.pendingPages_.indexOf(D)>-1&&(H.targetPage_&&(H.pendingPages_.unshift(H.targetPage_),H.abort()),JGU(H,D),_.uxf(H,D))}if((H=hu(this,K))||!_.P(f,_.TE)){H.isAttached||H===d||(H.hidden=!0);if(!(H.data||K==="watch"&&_.M("swatcheroo_page_pool_dont_provide_filler_data"))){var S;if(K=(S=_.mD("FILLER_DATA",{})[K])==null?void 0:S.response)H.data=K}return H}};var LMZ=function(K){this.JSC$28434_clientRoot=K;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Ipz,"yt-end-playlist-command":Uui,"yt-recover-playlist-command":FVS,"yt-refresh-playlist-command":vZ5,"yt-playlist-remove-videos-action":zJy};_.qF(_.rU.getInstance(),this.playlistHandlerActionMap,this.JSC$28434_clientRoot);H8w()},BxS;var bI=function(K,d,f){this.apiKey=K;this.endpoint=d;this.confidenceThreshold=f===void 0?.5:f;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=d==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||d==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
d==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||d==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new qty};
_.V=bI.prototype;
_.V.start=function(K){if(this.state===0)if(this.isOnline()){K.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=K.supportsHttpHeadersOverwriteParam);K.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=K.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.NY("voice_assistant");_.ty("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=K.languageCode||"en-US";this.supportsCrossDomainXhr=K.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=K.youtubeAssistantRequest||null;this.listeningHandler=K.listeningHandler||this.listeningHandler;this.audioDetectedHandler=K.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=K.stopHandler||this.stopHandler;this.completeHandler=K.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=K.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=K.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
K.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=K.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=K.accessToken;this.additionalHeaders=K.additionalHeaders||{};var d;this.prefetchResponseTimeoutMs=(d=K.prefetchResponseTimeoutMs)!=null?d:this.prefetchResponseTimeoutMs;J_w(this);this.startAudio();svw(this)}else this.errorHandler("OFFLINE")};
_.V.stop=function(K){var d=K===void 0?{}:K;K=d.logCancel===void 0?!0:d.logCancel;var f=d.logMicClosed===void 0?!0:d.logMicClosed;var H=d.handleError===void 0?!0:d.handleError;d=d.handleStop===void 0?!0:d.handleStop;this.state!==0&&(K&&mL("voz_cx"),lI(this,{logMicClosed:f,handleStop:d}),H&&this.errorHandler("ABORTED"))};
_.V.getState=function(){return this.state};
_.V.isSupported=function(){return!0};
_.V.stopAudio=function(K){(K===void 0||K)&&mL("voz_mf")};
_.V.startAudio=function(){mL("voz_vp");return _.HG(null)};
var kZc=function(K,d){K.channelOpen&&(K.state!==2&&(K.state=2,mL("voz_ss"),K.listeningHandler()),d=new Uint8Array(d),d='{ "audioIn": "'+_.eS(d)+'" }',K.channel.send(d))},lI=function(K,d){var f=d===void 0?{}:d;
d=f.logMicClosed===void 0?!0:f.logMicClosed;f=f.handleStop===void 0?!0:f.handleStop;K.vozEndOfDataTimeout>-1&&(clearTimeout(K.vozEndOfDataTimeout),K.vozEndOfDataTimeout=-1);w5t(K);K.stopAudio(d);K.channel&&(K.channelOpen=!1,K.manuallyClosedChannel=!0,K.channel.close(),K.channel=void 0);K.transcribedSpeechResults=[];K.state=0;f&&K.stopHandler()},J_w=function(K){var d={httpHeadersOverwriteParam:K.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},K.additionalHeaders,K.accessToken&&K.isUsingVoz?{Authorization:"Bearer "+K.accessToken}:{"x-goog-api-key":K.apiKey}),supportsCrossDomainXhr:K.supportsCrossDomainXhr};K.channel=new mO(K.endpoint,d);K.channel.open();_.zG(K.channel,"w",function(){var f=K.channel,H=f.send,D=K.isUsingVoz?"PLACEHOLDER":"example";D={config:{dialogStateIn:{languageCode:K.languageCode},deviceConfig:{deviceId:D,deviceModelId:D},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!K.isUsingVoz)D.config.requestType=4;else if(K.isUsingVoz&&K.youtubeAssistantRequest){var S=JSON.stringify(K.youtubeAssistantRequest);D.config.internalIn={youtubeAssistantS3InputJson:S}}H.call(f,D);K.channelOpen=!0;K.manuallyClosedChannel=!1});
_.zG(K.channel,"x",function(){K.manuallyClosedChannel||(K.channelOpen=!1,K.channel=void 0,lI(K))});
_.zG(K.channel,"z",function(f){if(f.data){w5t(K);for(var H=0;H<f.data.length;H++){var D=K,S=f.data[H],n=S.speechResults;if(n)a:{var u=[];S=[];var a=!1;n=_.y(n);for(var R=n.next();!R.done;R=n.next()){R=R.value;if(R.noSpeech){lI(D);D.errorHandler("NO_SPEECH");break a}R.transcript!==void 0&&R.stability!==void 0&&(R.stability<D.confidenceThreshold&&(a=!0),a?S.push(R.transcript):u.push(R.transcript))}if(u.length!==0||S.length!==0)u=u.join(" "),S=S.join(" "),D.receivedEndOfUtterance&&!D.isUsingVoz?D.isUsingVoz||
D.completeHandler([u,S]):(a=D,n=u,R=S,mL("voz_sf"),a.transcriptionUpdateHandler(n,R),a.transcribedSpeechResults=[n,R]),D.receivedEndOfUtterance&&(mL("voz_eou"),D.transcriptionCompleteHandler([u,S]),D.isUsingVoz&&(D.prefetchResponseTimeoutMs===0?lI(D,{logMicClosed:!1,handleStop:!0}):D.prefetchResponseTimeoutMs>0&&Z5z(D)))}else D.isUsingVoz&&(S==null?0:S.internalOut)?(S=JSON.parse(S.internalOut.youtubeAssistantS3OutputJson),S.userHasOptedInToVaa||S.vaaConsent?D.vaaConsentUpdateHandler(!!S.userHasOptedInToVaa,
!!S.vaaConsent):(elc(D),S&&(u=D.transcribedSpeechResults,mL("voz_rqf"),D.completeHandler(u,S)))):S.eventType==="END_OF_UTTERANCE"?D.receivedEndOfUtterance=!0:(mL("voz_err"),D.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.h3(Error("al")))}}});
_.zG(K.channel,"y",function(f){lI(K);switch(f.status){case 1:f="WEBCHANNEL_NETWORK_ERROR";break;case 2:f="WEBCHANNEL_SERVER_ERROR";break;default:f="WEBCHANNEL_UNKNOWN_ERROR"}K.errorHandler(f);K.logError(Error(f))})};
bI.prototype.logError=function(K){_.$7(K)};
bI.prototype.isOnline=function(){return!0};
var Z5z=function(K){elc(K);K.prefetchResponseSetTimeoutId=setTimeout(function(){lI(K,{logMicClosed:!1,handleStop:!0})},K.prefetchResponseTimeoutMs)},elc=function(K){K.prefetchResponseSetTimeoutId>-1&&(clearTimeout(K.prefetchResponseSetTimeoutId),K.prefetchResponseSetTimeoutId=-1)},svw=function(K){w5t(K);
K.noResponseReceivedTimeout=window.setTimeout(function(){lI(K);K.errorHandler("NO_SPEECH")},11E3)},w5t=function(K){K.noResponseReceivedTimeout>-1&&(window.clearTimeout(K.noResponseReceivedTimeout),K.noResponseReceivedTimeout=-1)},mL=function(K){_.YJ(K,void 0,"voice_assistant")};var WT=function(){bI.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.O(WT,bI);WT.prototype.isSupported=function(){return Mvt()};
WT.prototype.startAudio=function(){var K=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.vv(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(H){p5Z(K,H)};
this.processor.connect(this.audioContext.destination);var d=function(H){K.stream=H;if(!K.audioContext)return _.HG(null);H=K.audioContext.createMediaStreamSource(H);K.processor&&H.connect(K.processor);return _.HG(null)},f={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?d(this.stream):navigator.mediaDevices.getUserMedia(f).then(d).catch(function(H){lI(K);H.name&&H.name==="NotAllowedError"?K.errorHandler("NO_MICROPHONE_PERMISSION"):(K.errorHandler("AUDIO_ERROR"),K.logError(H));return _.vv(null)});
return bI.prototype.startAudio.call(this)};
WT.prototype.stopAudio=function(K){K=K===void 0?!0:K;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(d){d.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;bI.prototype.stopAudio.call(this,K)};
WT.prototype.isOnline=function(){return navigator.onLine};
var p5Z=function(K,d){if(K.audioContext)if(window.OfflineAudioContext){var f=K.audioContext.sampleRate,H=d.inputBuffer.getChannelData(0);d=new window.OfflineAudioContext(1,H.length,16E3);for(var D=d.createBuffer(1,H.length,f),S=D.getChannelData(0),n=0,u=0;u<H.length;u++)S[u]=H[u],n+=S[u]*S[u];!K.audioDetected&&Math.sqrt(n/H.length)>.01&&(K.audioDetected=!0,K.audioDetectedHandler());H=d.createBufferSource();H.buffer=D;H.connect(d.destination);H.start(0);d.oncomplete=function(a){a=a.renderedBuffer.getChannelData(0);
for(var R=Math.floor(16384E3/f),F=new Int16Array(R),z=0;z<R;++z)F[z]=Math.max(-1,Math.min(1,a[z]))*32767;kZc(K,F.buffer)};
d.startRendering()}else KPZ(K,d)},KPZ=function(K,d){var f=K.audioContext.sampleRate,H=d.inputBuffer.getChannelData(0),D=Math.floor((f+8E3)/16E3);
f=H.length/D;d=new Float32Array(f);for(var S=0;S<f;++S)d[S]=H[S*D];H=new Int16Array(f);for(D=0;D<f;++D)H[D]=Math.max(-1,Math.min(1,d[D]))*32767;kZc(K,H.buffer)};var dzP={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var fIE=function(){this.JSC$17706_audioEnabled=!0;this.audioFeedbackHolder={}};
fIE.prototype.isPlaying=function(K){return K.currentTime>0&&!K.paused&&!K.ended&&K.readyState>2};
var HIt=function(K){for(var d=_.y(Object.values(dzP)),f=d.next();!f.done;f=d.next())f=f.value,K.audioFeedbackHolder[f]=new Audio,K.audioFeedbackHolder[f].src="/s/search/audio/"+f+".mp3",K.audioFeedbackHolder[f].load()},GL=function(K,d){if(K.JSC$17706_audioEnabled!==!1&&d in K.audioFeedbackHolder){for(var f=_.y(Object.values(K.audioFeedbackHolder)),H=f.next();!H.done;H=f.next())H=H.value,K.isPlaying(H)&&H.pause();
K.audioFeedbackHolder[d].currentTime=0;K.audioFeedbackHolder[d].play().catch(function(){})}};var Dz7=function(K,d){var f=this;this.store=K;this.service=d;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){f.setState("offline");f.stop()};
this.audioPlayer=new fIE;var H;(H=this.audioPlayer)==null||HIt(H)};
_.V=Dz7.prototype;_.V.getService=function(){return this.service};
_.V.isEnabled=function(){return!!this.service};
_.V.isSupported=function(){var K;return(K=this.service)==null?void 0:K.isSupported()};
_.V.start=function(){var K=this,d,f,H,D,S,n,u,a,R,F,z,v,g;return _.c(function(N){switch(N.nextAddress){case 1:K.store.dispatch(SP5("",""));if(!navigator.onLine)return K.setState("offline"),N.return();window.addEventListener("offline",K.handleOfflineEvent);K.stream=null;if(!K.permissionsSupported){N.jumpTo(2);break}_.HF(N,3);return _.I(N,Vbi(K),5);case 5:d=N.yieldResult;if(!d)return(f=K.audioPlayer)==null||GL(f,"failure"),N.return();K.service.stream=K.stream;K.setState("listening");_.Ts(N,2);break;
case 3:_.n7(N),K.permissionsSupported=!1;case 2:H={context:_.UYX(_.ZU())},H.youtubeAssistantParams={searchParams:{inlineSearchResponse:K.enableInlineSearchResponse}},D=function(h,m){K.store.dispatch(yJt("transcribing"));K.store.dispatch(SP5(h,m))},S=function(){var h;
(h=K.audioPlayer)==null||GL(h,"open");K.setState("listening")},n=function(){K.setState("transcribing")},u=function(h){K.setErrorState(h)},a=function(h,m){var T;
(T=K.audioPlayer)==null||GL(T,"success");m&&(_.M("kevlar_voice_search_inline_search")&&(K.responseProcessor=_.eq().resolve(_.sPz),K.responseProcessor&&(T=m.navigationAction,h=m.prefetchedSearchResponse,T&&h&&(T=(new _.n09).JSC$11002_getStoreKey(T),_.m4(K.responseProcessor,h,T)))),K.JSC$17724_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",m))},R=function(){window.removeEventListener("offline",K.handleOfflineEvent)},F=_.Odn(!1),z=F.Authorization!=null,v=K.enableFirstPartyAuth||
K.enableFPAForSignedInUsers&&z?F:{"X-Goog-Visitor-Id":F["X-Goog-Visitor-Id"]},g={completeHandler:a,
errorHandler:u,listeningHandler:S,audioDetectedHandler:n,stopHandler:R,transcriptionUpdateHandler:D,youtubeAssistantRequest:H,languageCode:S9y(),additionalHeaders:v,supportsCrossDomainXhr:K.enableFirstPartyAuth||K.enableFPAForSignedInUsers&&z,supportsHttpHeadersOverwriteParam:!K.disableHttpHeadersOverwrite},K.service.start(g),_.iQ(N)}})};
_.V.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.V.reset=function(){this.store.dispatch(_.es({type:"RESET_VOICE_SEARCH_STATE"}))};
_.V.setState=function(K){this.store.dispatch(yJt(K))};
_.V.setErrorState=function(K){switch(K){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var d;(d=this.audioPlayer)==null||GL(d,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)Vbi(this);else{var f;(f=this.audioPlayer)==null||GL(f,"failure");this.setState("permission-denied")}break;case "ABORTED":var H;(H=this.audioPlayer)==null||GL(H,"no_input");break;default:var D;(D=this.audioPlayer)==
null||GL(D,"no_input");this.setState("timeout")}};
var Vbi=function(K){var d,f;return _.c(function(H){switch(H.nextAddress){case 1:return _.I(H,navigator.permissions.query({name:"microphone"}),2);case 2:d=H.yieldResult;if(d.state==="granted")return H.return(!0);if(d.state==="denied")return K.setState("permission-denied"),H.return(!1);K.setState("permission");f={audio:{sampleSize:16,channelCount:1},video:!1};_.HF(H,3);return _.I(H,navigator.mediaDevices.getUserMedia(f),5);case 5:return K.stream=H.yieldResult,H.return(!0);case 3:return _.n7(H),K.setState("permission-denied"),
H.return(!1)}})},S9y=function(){var K=_.mD("INNERTUBE_CONTEXT_HL"),d=_.mD("INNERTUBE_CONTEXT_GL");
return K.indexOf("-")>-1?K:K+"-"+d};var yjc=function(K,d,f){Dz7.call(this,d,f);this.JSC$17724_actionRouter=K;this.enableInlineSearchResponse=_.M("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.M("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.M("kevlar_voice_search_enable_fpa_signedin_users")},ncc;
_.O(yjc,Dz7);
var iIE=function(){if(!ncc){var K="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.M("kevlar_voice_search_auth_enabled")||_.M("kevlar_voice_search_use_yt_endpoint")?K="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.M("kevlar_voice_search_use_fp_endpoint")&&(K="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");ncc=
new yjc(_.rU.getInstance(),_.j3(),new WT(_.mD("VOZ_API_KEY"),K,.5))}return ncc};var cjU=function(K){this.JSC$17728_clientRoot=K;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17728_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)]]));K=_.y(this.eventListeners);for(var d=K.next();!d.done;d=K.next()){var f=_.y(d.value);d=f.next().value;f=f.next().value;f=_.y(f);for(var H=f.next();!H.done;H=f.next()){var D=
_.y(H.value);H=D.next().value;D=D.next().value;d.addEventListener(H,D)}}_.qF(_.rU.getInstance(),this.autonavPauseActionMap,this.JSC$17728_clientRoot)},u8y,aIK=function(K){return _.M("kevlar_autonav_popup_filtering")?(K=_.Qm(K))?K.hasAttribute("prevent-autonav"):!0:!0};
_.V=cjU.prototype;_.V.onIronOverlayOpened=function(K){aIK(K)&&(this.autonavPauseReasons.overlayOpen=!0,Au(this))};
_.V.onIronOverlayClosed=function(K){aIK(K)&&(this.autonavPauseReasons.overlayOpen=!1,Au(this))};
_.V.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Au(this)};
_.V.onYtAutonavPauseBlur=function(){var K=this;_.oc.addJob(function(){K.isInBackground()||(K.autonavPauseReasons.inputBoxFocus=!1,Au(K))},8,0)};
_.V.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Au(this)};
_.V.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Au(this)};
_.V.onYtAutonavPauseScroll=function(){var K=_.eq().resolve(_.jC);K.isOnWatch()&&(K=K.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=K.getBoundingClientRect().top<-200,Au(this))};
_.V.onYtAutonavPauseUserEngagement=function(K){var d=this;if(_.M("user_engagement_enable_autoplay_pause_feature")){var f=Number(K.lowEngagementThresholdMs);isNaN(f)||f<=0||K.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Bj("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.eq().resolve(_.Pp),_.pA()<f?_.va(_.oc,function(){_.Bj("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.KD7()?(this.userEngagementCsn=_.te(),_.va(_.oc,function(){_.Bj("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
d.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Au(this)):_.Bj("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.oAB(Error("bl`"+JSON.stringify(K)))};
_.V.onYtAutonavPausePlayer=function(K){this.autonavPauseReasons.requestedByPlayer=!!K.detail;Au(this)};
_.V.onYtAutonavVisibilityChanged=function(){var K=this,d,f,H;return _.c(function(D){if(D.nextAddress==1)return(d=_.xP())?_.I(D,d.getPlayerPromise(),2):D.return();f=D.yieldResult;H=f.isMuted()||f.getVolume()===0;K.autonavPauseReasons.backgroundAndMute=K.isInBackground()&&H;Au(K);_.iQ(D)})};
_.V.onYtAutonavPausePlayerEnded=function(){_.eq().resolve(_.Pp);var K=144E5;_.M("user_engagement_enable_autoplay_pause_feature")||_.M("is_part_of_any_user_engagement_experiment")||(K=45E5);this.autonavPauseReasons.longIdle=_.pA()>K;IIy(this);Au(this)};
_.V.onYtUserActivity=function(){var K=this;this.autonavPauseReasons.userEngagement&&(_.va(_.oc,function(){_.Bj("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",K.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Au(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.va(_.oc,function(){_.Bj("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",K.userEngagementCsn);_.oB()}),this.autonavPauseReasons.youthereLactExperiment=!1,Au(this));
this.autonavPauseReasons.longIdle&&!_.M("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Au(this))};
_.V.isInBackground=function(){var K=window.document.visibilityState;return!(!K||K==="visible")};
var Au=function(K){for(var d=!1,f=_.y(Object.values(K.autonavPauseReasons)),H=f.next();!H.done;H=f.next())H=H.value,d=d||H;d?_.jA.getInstance().pause(K.autonavPauseReasons):(K=_.jA.getInstance(),K.autonavState_==3?(K.setState(2,!1,!1),K.autonavPauseReason_=void 0):K.autonavState_==1&&(K.disabledAutonavPauseReason_=void 0))},IIy=function(K){var d=!1;
if(_.M("enable_autoplay_pause_by_lact")){_.eq().resolve(_.Pp);d=_.di("autoplay_pause_by_lact_sec")*1E3;var f=_.di("autoplay_pause_by_lact_sampling_fraction");(d=_.pA()>=d&&Math.random()<f)&&!_.KD7()&&(_.va(_.oc,function(){_.Bj("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),d=!1)}d!==K.autonavPauseReasons.youthereLactExperiment&&(K.autonavPauseReasons.youthereLactExperiment=d)&&(K.userEngagementCsn=_.te(),_.va(_.oc,function(){_.Bj("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",K.userEngagementCsn)}));
K.autonavPauseReasons.userEngagement&&_.va(_.oc,function(){_.Bj("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",K.userEngagementCsn)})};
cjU.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Bj("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.oB(),this.autonavPauseReasons.youthereLactExperiment=!1,Au(this));this.autonavPauseReasons.userEngagement&&(_.Bj("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Au(this))};
cjU.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var TL=function(){var K=_.q.apply(this,arguments)||this;K.miniGuideVisible=!1;K.guideOpened=_.M("disable_initial_guide_state_fix")?!1:K.canFitPersistentGuide(K.initialBodyClientWidth);K.guideUserStateOpened=K.getInitialGuideUserStateOpened();K.isFullscreenShorts=!1;K.miniGuideWidthThreshold=_.di("kevlar_mini_guide_width_threshold",791);K.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");K.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
K.persistentGuideBlockedPagePathRegex=new RegExp(K.persistentGuideBlockedPagesPatterns.join("|"));K.animationTransitionDuration=0;K.lateDataResolver=_.Gz();K.initialGuideDataFetchFailed=!1;K.initialLoad=!0;K.guideRenderers=new Set;K.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return K};
_.O(TL,_.q);_.V=TL.prototype;_.V.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.V.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.V.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.V.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.V.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.V.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.V.ready=function(){_.eq().addProvider({provide:_.mr,useValue:this.hostElement})};
_.V.attached=function(){var K=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Dm(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Dm(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Dm(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Dm(this,this.onYtGuideShow));_.jW(this,function(){K.animationTransitionDuration=200})};
_.V.detached=function(){document.removeEventListener("yt-navigate-finish",_.Dm(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Dm(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Dm(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Dm(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Dm(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Dm(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Dm(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.V.getData=function(){return this.data};
_.V.load=function(){var K=this,d,f,H,D;return _.c(function(S){switch(S.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=K.lateDataResolver.resolve.bind(K),S.return(K.lateDataResolver.promise);if(window.ytInitialGuideData)return d=_.Gz(),d.resolve(window.ytInitialGuideData),S.return(d.promise);H=!1;_.HF(S,2);return _.I(S,K.fetchGuideData(),4);case 4:f=S.yieldResult;_.Ts(S,3);break;case 2:D=_.n7(S),D.message==="Returned error"&&(H=!0);
case 3:if(f)return S.return(f);K.onYtGuideClose();H||(K.initialGuideDataFetchFailed=!0);return S.return(K.lateDataResolver.promise)}})};
_.V.fetchGuideData=function(){var K=this,d,f,H,D,S,n,u;return _.c(function(a){if(a.nextAddress==1)return d=_.eq(),K.guidePromise||(f=d.resolve(_.Nn),K.guidePromise=_.Wp(f,z3E)),_.I(a,K.guidePromise,2);if(a.nextAddress!=3)return H=a.yieldResult,D=d.resolve(_.qW),_.I(a,D(),3);(S=a.yieldResult)&&((n=H)==null?void 0:(u=n.responseContext)==null?void 0:u.maxAgeSeconds)!==0&&S.put("service:guide:fallback",new _.fv({innertubeResponse:H}));return a.return(H)})};
_.V.initializeGuideDataIfEmpty=function(){var K=this,d,f;return _.c(function(H){if(H.nextAddress==1){if(!K.initialGuideDataFetchFailed||K.data)return H.return();_.HF(H,2);return _.I(H,K.fetchGuideData(),4)}if(H.nextAddress!=2)return(d=H.yieldResult)&&K.lateDataResolver.resolve(d),_.Ts(H,0);f=_.n7(H);_.h3(f);_.iQ(H)})};
_.V.initializeGuideData=function(){var K=this,d;return _.c(function(f){switch(f.nextAddress){case 1:return _.Hd(G27(),{mainAppWeb:_.Go()}),_.HF(f,2),_.I(f,K.load(),4);case 4:K.data=f.yieldResult;_.Ts(f,3);break;case 2:_.n7(f),_.Df(G27(),"FAILURE");case 3:d=K.data&&K.data.items&&K.data.items.length>0?"SUCCESS":"FAILURE",_.Df(G27(),d),_.iQ(f)}})};
_.V.setGuideData=function(K){var d=this,f,H;return _.c(function(D){if(D.nextAddress==1)return d.disabled?D.return():d.data?(K.data=d.data,d.guideRenderers.add(K),D.return()):_.I(D,d.initializeGuideData(),2);d.graftGuideToPage();f=_.lx("IS_HOMEPAGE_COLD")?"eop":void 0;_.M("disable_element_pool_populator")?d.setGuideDataAfterInit(K):(H=new _.Bn(1,f),_.Jj(H,d.setGuideDataAfterInit.bind(d,K)));_.iQ(D)})};
_.V.setGuideDataAfterInit=function(K){K.data=this.data;K.markDirty();this.guideRenderers.add(K);_.bL(function(){_.YJ("gle")});
_.jW(this,function(){_.YJ("gpe")})};
_.V.graftGuideToPage=function(){if(this.data){var K=this.data&&this.data.trackingParams;K&&(K=_.RG(K),_.K5(_.cv(),K))}};
_.V.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Dm(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.V.onDrawerOpenedChanged=function(K,d){!d.value&&this.guideOpened&&(this.guideOpened=!1)};
_.V.onYtGuideToggle=function(K){var d=this.guideOpened;this.guideOpened=!d;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var f=_.aS();_.IS(0,109,!this.guideUserStateOpened);f.save()}this.updateGuideDrawerElementState();if(this.guideElement){var H;this.guideOpened&&((H=K.detail)==null?0:H.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Dm(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.Dm(this,
this.onAppDrawerTransitioned))}d||this.initializeGuideDataIfEmpty()};
_.V.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Dm(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.BA(this.guideElement)};
_.V.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Dm(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Ddt(this.guideOpened))};
_.V.guidePersistentAndVisibleChanged=function(){_.p1(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.V.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.es({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.V.miniGuideVisibleChanged=function(){_.p1(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.V.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Ddt(this.guideOpened)),this.initialLoad=!1);_.p1(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.V.activeEndpointChanged=function(){_.p1(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.V.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.V.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()};
_.V.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var K=this.canFitPersistentGuide(this.cachedClientWidth);K?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=K}this.updateGuideDrawerElementState()};
_.V.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.V.getGuideOpened=function(){return this.guideOpened};
_.V.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.V.getActiveEndpoint=function(){return this.activeEndpoint};
_.V.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.V.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&&_.Zp(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.V.computeGuidePersistentAndVisible=function(){var K=this;_.mx(this,"computeGuidePersistentAndVisible",function(){K.guidePersistentAndVisible=K.guideOpened&&K.guidePersistent;K.guideIsVisibleButNotPersistent=!(!K.guideOpened||K.guidePersistent)})};
_.V.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.V.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.V.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.V.startLoadingWatch=function(){this.closeGuide()};
_.V.startLoadingShorts=function(){_.M("web_hide_guide_on_shorts")&&this.closeGuide()};
_.V.onYtNavigateFinish=function(K,d){if(!_.kb||d){this.activeEndpoint=d.endpoint;this.pageType=d.pageType;this.pageUrl=d.response.url;var f,H;K=(H=_.P((f=d.endpoint)==null?void 0:f.commandMetadata,_.B0))==null?void 0:H.url;!this.pageUrl&&K&&(this.pageUrl=K);_.M("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.V.getVisibleGuideRenderer=function(){for(var K=_.y(this.guideRenderers),d=K.next();!d.done;d=K.next())if(d=d.value,this.miniGuideVisible&&d.is==="ytd-mini-guide-renderer"||this.guideOpened&&d.is==="ytd-guide-renderer")return d;return null};
_.V.markGuideRendererDirty=function(K){if(K){typeof K.markDirty==="function"&&K.markDirty();K=_.y([].concat(_.Me(_.E(K).children)));for(var d=K.next();!d.done;d=K.next())this.markGuideRendererDirty(d.value)}};
_.V.persistentGuideEnabled=function(K,d){if(!d||K==="watch"||K==="settings"||K==="shorts"&&this.isFullscreenShorts||_.M("reels_web_disable_persistent_guide_shorts")&&K==="shorts")return!1;var f=_.ny(d)||"";return _.M("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(H){return f===H}):!this.persistentGuideBlockedPagePathRegex.test(f)};
_.V.canFitPersistentGuide=function(K){var d=_.di("kevlar_persistent_guide_width_threshold",1312);return d===-1||_.M("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:K>d};
_.V.canFitMiniGuide=function(K){return this.miniGuideWidthThreshold===-1?!1:K>this.miniGuideWidthThreshold};
_.V.onResize=function(){var K=this;_.mx(this,"calculateGuideState",function(){K.onResizeDebounced()})};
_.V.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.V.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.V.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.V.getInitialGuideUserStateOpened=function(){return!_.aS().getFlag(109)};
_.x$.Object.defineProperties(TL.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.mD("initialBodyClientWidth")||window.innerWidth}}});
TL.prototype.onResize=TL.prototype.onResize;TL.prototype.observeForMiniGuideVisible=TL.prototype.observeForMiniGuideVisible;TL.prototype.computeGuidePersistentAndVisible=TL.prototype.computeGuidePersistentAndVisible;TL.prototype.cachedClientWidthChanged=TL.prototype.cachedClientWidthChanged;TL.prototype.resetGuide=TL.prototype.resetGuide;TL.prototype.activeEndpointChanged=TL.prototype.activeEndpointChanged;TL.prototype.guideOpenedChanged=TL.prototype.guideOpenedChanged;
TL.prototype.miniGuideVisibleChanged=TL.prototype.miniGuideVisibleChanged;TL.prototype.guideIsVisibleButNotPersistentChanged=TL.prototype.guideIsVisibleButNotPersistentChanged;TL.prototype.guidePersistentAndVisibleChanged=TL.prototype.guidePersistentAndVisibleChanged;TL.prototype.onGuideElementChanged=TL.prototype.onGuideElementChanged;TL.prototype.onGuidePersistentChanged=TL.prototype.onGuidePersistentChanged;TL.prototype.onRenderGuideChanged=TL.prototype.onRenderGuideChanged;
TL.prototype.onActiveEndpointChanged=TL.prototype.onActiveEndpointChanged;TL.prototype.onMiniGuideVisibleChanged=TL.prototype.onMiniGuideVisibleChanged;TL.prototype.onGuideIsVisibleButNotPersistentChanged=TL.prototype.onGuideIsVisibleButNotPersistentChanged;TL.prototype.onGuidePersistendAndVisibleChanged=TL.prototype.onGuidePersistendAndVisibleChanged;_.x([_.l(_.Mg),_.B("design:type",Object)],TL.prototype,"ironResizableBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],TL.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],TL.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],TL.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],TL.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],TL.prototype,"disabled",void 0);
_.x([_.A(),_.B("design:type",Boolean)],TL.prototype,"guidePersistentAndVisible",void 0);_.x([_.SP("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"onGuidePersistendAndVisibleChanged",null);_.x([_.A(),_.B("design:type",Boolean)],TL.prototype,"guideIsVisibleButNotPersistent",void 0);
_.x([_.SP("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.x([_.A(),_.B("design:type",Object)],TL.prototype,"miniGuideVisible",void 0);_.x([_.SP("miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"onMiniGuideVisibleChanged",null);_.x([_.A(),_.B("design:type",Boolean)],TL.prototype,"forceMiniGuideClose",void 0);
_.x([_.A(),_.B("design:type",Object)],TL.prototype,"activeEndpoint",void 0);_.x([_.SP("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"onActiveEndpointChanged",null);_.x([_.A(),_.B("design:type",Boolean)],TL.prototype,"renderGuide",void 0);_.x([_.SP("renderGuide"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"onRenderGuideChanged",null);
_.x([_.A(),_.B("design:type",Object)],TL.prototype,"guideOpened",void 0);_.x([_.A(),_.B("design:type",Boolean)],TL.prototype,"guidePersistent",void 0);_.x([_.SP("guidePersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"onGuidePersistentChanged",null);_.x([_.A(),_.B("design:type",Object)],TL.prototype,"guideUserStateOpened",void 0);_.x([_.A(),_.B("design:type",String)],TL.prototype,"pageUrl",void 0);
_.x([_.A(),_.B("design:type",String)],TL.prototype,"pageType",void 0);_.x([_.A(),_.B("design:type",Number)],TL.prototype,"cachedClientWidth",void 0);_.x([_.A(),_.B("design:type",Object)],TL.prototype,"guideElement",void 0);_.x([_.A({selector:_.Dl}),_.B("design:type",Object)],TL.prototype,"isFullscreenShorts",void 0);_.x([_.SP("guideElement"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"onGuideElementChanged",null);
_.x([_.SP("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"guidePersistentAndVisibleChanged",null);_.x([_.an("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.x([_.SP("miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"miniGuideVisibleChanged",null);_.x([_.an("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"guideOpenedChanged",null);_.x([_.SP("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"activeEndpointChanged",null);
_.x([_.an("pageUrl"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"resetGuide",null);_.x([_.an("cachedClientWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"cachedClientWidthChanged",null);_.x([_.SP("guideOpened","guidePersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"computeGuidePersistentAndVisible",null);
_.x([_.an("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"observeForMiniGuideVisible",null);_.x([_.VV("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TL.prototype,"onResize",null);TL=_.x([_.Q({disableElementRegistration:!0,is:"yt-guide-manager"})],TL);var UzU=_.C(TL,"yt-guide-manager",void 0,{mode:_.p8("kevlar_poly_si_batch_j081")?1:2});var rI=function(){var K=_.q.apply(this,arguments)||this;K.JSC$17738_keyboardInUse=!1;K.boundHandleCapturedKeydownEvent=function(d){K.handleCapturedKeydownEvent(d)};
return K};
_.O(rI,_.q);_.V=rI.prototype;_.V.attached=function(){this.listenToDocument(document)};
_.V.listenToDocument=function(K){K.addEventListener("keydown",_.Dm(this,this.onKeyDownEvent));K.addEventListener("keyup",_.Dm(this,this.onKeyUpEvent));K.addEventListener("mousedown",_.Dm(this,this.onMouseDownEvent));_.M("desktop_keyboard_capture_keydown_killswitch")||K.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);K.addEventListener("yt-page-data-updated",_.Dm(this,this.onPageUpdate))};
_.V.detached=function(){this.unlistenFromDocument(document)};
_.V.unlistenFromDocument=function(K){K.removeEventListener("keydown",_.Dm(this,this.onKeyDownEvent));K.removeEventListener("keyup",_.Dm(this,this.onKeyUpEvent));K.removeEventListener("mousedown",_.Dm(this,this.onMouseDownEvent));_.M("desktop_keyboard_capture_keydown_killswitch")||K.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);K.removeEventListener("yt-page-data-updated",_.Dm(this,this.onPageUpdate))};
_.V.ready=function(){_.eq().addProvider({provide:_.eb,useValue:this})};
_.V.isKeyBoardInUse=function(){return this.JSC$17738_keyboardInUse};
_.V.handleCapturedKeydownEvent=function(K){if(K.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(K)};
_.V.onMouseDownEvent=function(){this.JSC$17738_keyboardInUse=!1};
_.V.onPageUpdate=function(){if(_.M("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.M("web_shorts_keyboard_shortcut_usage_log")){_.Zo.clear();for(var K=_.y(_.kq),d=K.next();!d.done;d=K.next()){var f=_.y(d.value);d=f.next().value;f=f.next().value;f=_.vp(f);_.Zo.set(d,f);_.lB(_.te(),_.YZ(),f)}_.ea.clear();K=_.y(_.wf);for(d=K.next();!d.done;d=K.next())f=_.y(d.value),d=f.next().value,f=f.next().value,f=_.vp(f),_.ea.set(d,f),_.lB(_.te(),_.YZ(),f);_.WG(_.te(),_.YZ(),[].concat(_.Me(_.ea.values()),
_.Me(_.Zo.values())));_.Ay(_.te(),[].concat(_.Me(_.ea.values()),_.Me(_.Zo.values())))}};
_.V.onMiniplayerActiveChange=function(){var K;(K=_.eq().resolve(_.$b).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(K.document):this.unlistenFromDocument(K.document))};
_.V.ignoreKeyEvent=function(K){if(K.ctrlKey||K.altKey)if(_.M("kevlar_macro_markers_keyboard_shortcut")){if(K.keyCode!==37&&K.keyCode!==39)return!0}else return!0;var d=_.qn(K)||[];return _.HQZ(d)?!0:K.defaultPrevented?(uE(K.keyCode,K.shiftKey,this.isShortsPage),!0):K.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(K):!1};
_.V.isSpacebarClick=function(K){var d=K||window.event;var f;d.composedPath&&typeof d.composedPath==="function"?f=d.composedPath():f=d.path;f&&f.length?d=f[0]:(d=d||window.event,d=d.target||d.srcElement,d.nodeType==3&&(d=d.parentNode));return d&&K.keyCode===32&&(K=d.tagName==="BUTTON"||d.tagName==="A"||d.tagName==="INPUT",d=(d=d.getAttribute("role"))&&(d==="option"||d==="button"||d.indexOf("menuitem")===0),K||d)?!0:!1};
_.V.onKeyDownEvent=function(K){if(!this.ignoreKeyEvent(K)&&(K.keyCode===191&&(K.shiftKey||K.metaKey?K.repeat!=null&&K.repeat||(this.openHotkeyDialog(),uE(K.keyCode,K.shiftKey,this.isShortsPage)):(this.focusSearchBox(),K.preventDefault())),!K.metaKey)){var d=_.eq().resolve(_.$b);switch(K.keyCode){case 9:this.JSC$17738_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(K);break;case 84:d.pipController.getWindow()&&window.focus();this.toggleTheaterMode(K.keyCode,K.shiftKey);break;case 73:d.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(K.keyCode,K.shiftKey);break;case 70:if(this.isShortsPage&&_.M("web_fullscreen_shorts")){_.Vq5();break}this.isMiniplayerActive()?d.pipController.getWindow()&&(d.close(!0),window.focus()):this.passEventToPlayer(K);break;case 27:this.closeMiniplayer(K.keyCode,K.shiftKey)||this.passEventToPlayer(K);break;case 13:K.shiftKey&&_.M("web_ephemeral_actions")&&_.eq().resolve(_.yl).activate(K);break;default:this.passEventToPlayer(K)}}};
_.V.onKeyUpEvent=function(K){if(!this.ignoreKeyEvent(K))if(_.M("web_speedmaster_spacebar_control")&&K.keyCode===32)this.handlePlayerSpaceKey(K,!0);else{var d=this.getPlayerManager();d&&(d=d.getPlayer())&&d.handleGlobalKeyUp(K.keyCode,K.shiftKey,K.ctrlKey,K.altKey,K.metaKey,K.key,K.code)}};
_.V.getPlayerManager=function(){var K=_.xP(),d=_.eq().resolve(_.Zd(_.jC));return K&&d&&d.isOnWatch()?K:null};
_.V.passEventToPlayer=function(K,d){var f=this,H,D,S;return _.c(function(n){if(n.nextAddress==1)return!_.M("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&f.isMiniplayerActive()?H=_.eq().resolve(_.$b).getPlayerElement():f.inlinePreviewIsActive?(D=_.p1(f.hostElement,"yt-get-inline-preview-player-action"))&&D[0]&&(H=D[0]):H=_.xP(),H?_.I(n,H.getPlayerPromise(),3):n.jumpTo(0);S=n.yieldResult;d?S.handleGlobalKeyUp(K.keyCode,K.shiftKey,K.ctrlKey,K.altKey,K.metaKey,K.key,K.code,K.repeat):S.handleGlobalKeyDown(K.keyCode,
K.shiftKey,K.ctrlKey,K.altKey,K.metaKey,K.key,K.code,K.repeat);K.keyCode!==38&&K.keyCode!==40&&uE(K.keyCode,K.shiftKey,f.isShortsPage);_.iQ(n)})};
_.V.focusSearchBox=function(){_.Zp(this.hostElement,"yt-focus-searchbox")};
_.V.openHotkeyDialog=function(){_.Zp(this.hostElement,"yt-open-hotkey-dialog")};
_.V.isMiniplayerActive=function(){return _.eq().resolve(_.$b).isMiniplayerActive()};
_.V.closeMiniplayer=function(K,d){return this.isMiniplayerActive()?(_.eq().resolve(_.$b).close(),uE(K,d,this.isShortsPage),!0):!1};
_.V.toggleTheaterMode=function(K,d){var f=_.NG(_.j3().getState()),H=this.getPlayerManager(),D=_.M("disable_theater_mode_keyboard")||_.lx("START_IN_FULL_WINDOW_MODE");H&&!D&&(f=!f,_.Je()&&_.M("external_fullscreen")&&(f=!0),_.ev(this.hostElement,"yt-toggle-theater-mode",[f]),uE(K,d,this.isShortsPage))};
_.V.toggleMiniplayer=function(K,d){var f=this.getPlayerManager();if(this.isMiniplayerActive()){var H;((H=_.eq().resolve(_.Zd(_.jC)))==null?0:H.isOnWatch())?_.eq().resolve(_.$b).close(!0):_.F5(_.eq().resolve(_.$b));uE(K,d,this.isShortsPage)}else f&&(_.ev(this.hostElement,"yt-activate-miniplayer-from-watch-action"),uE(K,d,this.isShortsPage))};
_.V.handlePlayerSpaceKey=function(K,d){var f=!!_.xP()||this.isMiniplayerActive();f=_.M("disable_space_scroll_fix")||f;_.M("global_spacebar_pause")&&!this.isKeyBoardInUse()&&f&&(K.preventDefault(),this.passEventToPlayer(K,d))};
rI.prototype.onMiniplayerActiveChange=rI.prototype.onMiniplayerActiveChange;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],rI.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],rI.prototype,"ytdReduxBehavior",void 0);_.x([_.A({selector:_.RxO}),_.B("design:type",Boolean)],rI.prototype,"inlinePreviewIsActive",void 0);_.x([_.A({selector:_.dkE}),_.B("design:type",Boolean)],rI.prototype,"isShortsPage",void 0);
_.x([_.A({selector:_.Yo}),_.B("design:type",Boolean)],rI.prototype,"miniplayerIsActive",void 0);_.x([_.SP("miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rI.prototype,"onMiniplayerActiveChange",null);rI=_.x([_.Q({disableElementRegistration:!0,is:"yt-hotkey-manager"})],rI);_.C(rI,"yt-hotkey-manager",void 0,{mode:_.p8("kevlar_poly_si_batch_j081")?1:2});var q2=function(){var K=_.q.apply(this,arguments)||this;K.loopStateEntityKey_=null;K.playlistLoopStateEntity_=null;K.isShuffleNextPlaylist=!1;K.PLAYER_EVENTS_=new Map;K.playerListenersSetup_=!1;K.videoSkipJob_=0;K.canAutoAdvance_=!1;K.playerManager_=null;K.TEST_ONLY={};return K};
_.O(q2,_.q);_.V=q2.prototype;_.V.ready=function(){_.eq().addProvider({provide:_.Yf,useValue:this.hostElement})};
_.V.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_)};
_.V.attached=function(){document.addEventListener("yt-navigate-start",_.Dm(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Dm(this,this.onYtNavigateFinish_))};
_.V.detached=function(){document.removeEventListener("yt-navigate-start",_.Dm(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Dm(this,this.onYtNavigateFinish_))};
_.V.updatePlaylistEventListeners=function(K,d){d&&!this.playerListenersSetup_?(this.playerManager_=K,this.registerPlaylistEventListeners_(K)):!d&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(K))};
_.V.setPlayer=function(K){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=K};
_.V.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.V.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.V.registerPlaylistEventListeners_=function(K){var d=this;K.getPlayerPromise().then(function(f){d.playerListenersSetup_||(d.ytPlayerListenerBehavior.listenToPlayerEvents(f,d.PLAYER_EVENTS_),d.playerListenersSetup_=!0)})};
_.V.removePlaylistEventListeners_=function(K){var d=this;K.getPlayerPromise().then(function(f){d.playerListenersSetup_&&(d.ytPlayerListenerBehavior.unlistenFromPlayerEvents(f,d.PLAYER_EVENTS_),d.playerListenersSetup_=!1)})};
_.V.setPlaylistComponent=function(K){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Dm(this,this.onPlaylistYtNavigate_)),K&&(K.data&&this.playlistComponent.data&&K.data.playlistId==this.playlistComponent.data.playlistId?(K.loopOn=this.playlistComponent.loopOn,K.shuffleOn=this.playlistComponent.shuffleOn):(K.loopOn=!1,K.shuffleOn=!1),this.isShuffleNextPlaylist&&(K.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=K;this.playlistComponent.addEventListener("yt-navigate",
_.Dm(this,this.onPlaylistYtNavigate_))};
_.V.setAutoplayRenderer=function(K){this.autoplayData=K};
_.V.setPlaylistData=function(K){this.currentPlaylistData_=K;_.Zp(this.hostElement,"yt-playlist-data-updated");_.PR.isEmpty(K)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(K)};
_.V.setPlayerPlaybackControlData=function(K){this.playerManager_&&this.playerManager_.updatePlayerComponents(K.playlistPanelRenderer)};
_.V.getPlaylistData=function(){return this.currentPlaylistData_};
_.V.getTempData_=function(K,d){if(this.playlistComponent==null)return null;K={};this.playlistComponent.shuffleOn&&(K.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(K.loop_on=this.playlistComponent.loopOn);d&&(K.autonav="1",_.eq().resolve(_.Pp),d=_.pA(),d>0&&(K.lact=d),this.playerManager_&&(d=this.playerManager_.getPlayer())&&d.shouldSendVisibilityState()&&(d=d.getVisibilityState(),d!=0&&(K.vis=d)));_.M("enable_unknown_lact_fix_on_html5")&&(_.eq().resolve(_.Pp),K.lact=
_.pA());return K};
_.V.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.V.setLoopStateEntityKey_=function(K){var d;this.loopStateEntityKey_=((d=this.getPlaylistLoopData_(K))==null?void 0:d.playlistLoopStateEntityKey)||null};
_.V.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.V.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.V.skipVideo=function(){var K=this,d=_.M("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||d)d=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.uX(_.oc,function(){K.onPlaylistNext();K.videoSkipJob_=0},d)};
_.V.cancelVideoSkip=function(){this.videoSkipJob_&&(_.oc.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.V.isInBackground_=function(){var K=window.document.visibilityState;return!(!K||K=="visible")};
_.V.onPlaylistIndex_=function(K){this.playlistComponent&&(K=this.playlistComponent.data.contents[K].playlistPanelVideoRenderer.navigationEndpoint,_.Zp(this.hostElement,"yt-navigate",{endpoint:K,tempData:this.getTempData_(K)}))};
_.V.onPlayerStateChange_=function(K){if(K=K==0&&this.playlistComponent&&this.canAutoAdvance_)K=_.jA.getInstance(),K=!(K.autonavState_===3?K.autonavPauseReason_&&K.autonavPauseReason_.inputBoxFocus===!0:K.autonavState_===1&&K.disabledAutonavPauseReason_&&K.disabledAutonavPauseReason_.inputBoxFocus===!0);K&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.V.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.V.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.V.navigateToAutoplayWatchEndpoint_=function(K,d,f){var H=this.playlistComponent.data.currentIndex,D=this.getNumPlayableVideos_();K=="NORMAL"&&d=="autoplayVideo"&&H+1>=D&&f||!(K=this.getVideoEndpoint_(K,d))||(f=this.getTempData_(K,f),_.Zp(this.hostElement,"yt-navigate",{endpoint:K,tempData:f}))};
_.V.getNumPlayableVideos_=function(){for(var K=0,d=_.y(this.playlistComponent.data.contents||[]),f=d.next();!f.done;f=d.next())f.value.playlistPanelVideoRenderer&&(K+=1);return K};
_.V.getVideoEndpoint_=function(K,d){if(this.autoplayData&&this.autoplayData.sets)for(var f=0,H=this.autoplayData.sets.length;f<H;f++){var D=this.autoplayData.sets[f];if(D.mode==K){if(D[d])return D[d];break}}else K=new _.X4("AutoplayData is undefined in playlist manager","Mode: "+K+" endpoint: "+d),_.h3(K)};
_.V.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.V.onPlaylistYtNavigate_=function(K){if(K.detail.endpoint){K.stopPropagation();var d=K.detail;d.tempData=this.getTempData_(K.detail.endpoint);_.Zp(this.hostElement,"yt-navigate",d)}};
_.V.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.V.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.V.playlistLoopStateEntityChanged_=function(K){var d=this,f,H,D;return _.c(function(S){if(S.nextAddress==1){if(!K)return S.return();f=K.state==="PLAYLIST_LOOP_STATE_ONE";return d.playerManager_?_.I(S,d.playerManager_.getPlayerPromise(),3):S.jumpTo(2)}S.nextAddress!=2&&(H=S.yieldResult,H.setLoopVideo(f));D=K.state==="PLAYLIST_LOOP_STATE_ALL";d.playlistComponent&&(d.playlistComponent.loopOn=D);_.iQ(S)})};
_.V.getPlaylistLoopData_=function(K){var d,f;if(K=K==null?void 0:(d=K.playlistButtons)==null?void 0:(f=d.menuRenderer)==null?void 0:f.topLevelButtons)for(d=_.y(K),f=d.next();!f.done;f=d.next())if(f=f.value,f.playlistLoopButtonRenderer)return f.playlistLoopButtonRenderer};
_.V.getLoopStateCommand_=function(K){var d=this.getPlaylistData(),f;d=((f=this.getPlaylistLoopData_(d))==null?void 0:f.states)||[];var H;K=(H=_.P(d[K?1:2],_.$i9))==null?void 0:H.button;var D;return(D=_.P(K,_.tQ))==null?void 0:D.command};
_.V.onPlayerLoopChange_=function(K){this.playlistLoopStateEntity_&&(K?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(K=this.getLoopStateCommand_(K))&&this.ytComponentBehavior.resolveCommand(K)};
_.V.onSleepTimerSettingsChanged_=function(K){this.canAutoAdvance_=K!=="End of video"};
q2.prototype.onPlaylistLoopStateEntityChanged=q2.prototype.onPlaylistLoopStateEntityChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],q2.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],q2.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],q2.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],q2.prototype,"loopStateEntityKey_",void 0);
_.x([_.A({selectorArgs:["loopStateEntityKey_"],selector:_.MMz}),_.B("design:type",Object)],q2.prototype,"playlistLoopStateEntity_",void 0);_.x([_.SP("playlistLoopStateEntity_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q2.prototype,"onPlaylistLoopStateEntityChanged",null);q2=_.x([_.Q({disableElementRegistration:!0,is:"yt-playlist-manager"})],q2);_.C(q2,"yt-playlist-manager",void 0,{mode:_.p8("kevlar_poly_si_batch_j081")?1:2});var RLE,FPK=function(){if(RLE!==void 0)return RLE;var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return RLE=K};var Q1=function(){var K=_.q.apply(this,arguments)||this;K.lastCallback=null;K.getAccountLinkPromises={};K.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);K.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return K};
_.O(Q1,_.q);_.V=Q1.prototype;_.V.getLocation=function(){return window.location.href};
_.V.getCompletionUrl=function(){return _.C1(this.getLocation())};
_.V.containsRedirectState=function(K){return(K=_.z$(_.pVG(K)))?(new URLSearchParams(K)).get("redirect_state")!==null:!1};
_.V.createGalConfig=function(K,d){var f=new Y5K;K=f=d?this.getPopupOrRedirectSetting(f,_.mD("LINK_API_KEY"),_.mD("LINK_API_KEY_REDIRECT"),K):tCi(f,_.mD("LINK_API_KEY"));K.authUser=_.mD("SESSION_INDEX")||0;K.supportedFlows=new Set([4]);return K.build()};
_.V.getPopupOrRedirectSetting=function(K,d,f,H){this.isGalInteractionPopupMode(H)?(K.interactionMode=0,K=tCi(K,d)):(K.interactionMode=1,d=this.getCompletionUrl(),K.completionUrl=d,K=tCi(K,f));return K};
_.V.isGalInteractionPopupMode=function(K){if(this.redirectModeProviderAllowlist.has(K))switch(K){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.M("main_web_redirect_integration_riot");default:return!1}return!0};
_.V.getStatusEntityKeyForProviderId=function(K){return _.HJ(K+":all","accountLinkStatusEntity")};
_.V.findNestedPropValue=function(K,d){var f=!1,H=null;JSON.stringify(K,function(D,S){f||D!==d||(f=!0,H=S);return f?null:S});
return H};
_.V.findAccountLinkButtonViewModel=function(K,d){var f=null,H=!1;JSON.stringify(K,function(D,S){H||S.accountLinkStatusEntityKey!==d||S.accountLinkStatusSecondaryEntityKey||(H=!0,f=S);return H?null:S});
return f};
_.V.executeLinkingSuccessOrFailureCommands=function(K,d,f){var H=null,D;(d==null?0:(D=d.url)==null?0:D.includes("account_sharing"))?H=d==null?void 0:d.response:H=d==null?void 0:d.response;(d=this.findAccountLinkButtonViewModel(H,K))?(K=f?this.findNestedPropValue(d,"onSuccessCommand"):this.findNestedPropValue(d,"onFailureCommand"))?_.V$([K],this.hostElement):_.rF(Error("cl")):_.rF(Error("dl`"+K))};
_.V.handleInitializeRequest=function(K,d){var f=this,H=n7t(this.createGalConfig(K,!0));this.containsRedirectState(this.getLocation())?k7w(K,H.config,H.galService).then(function(D){var S=f.getStatusEntityKeyForProviderId(K);if(D.statusCode===1)d&&f.executeLinkingSuccessOrFailureCommands(S,d,!0),D=f.getLocation().indexOf("#"),D!==-1&&window.history.pushState(null,"",f.getLocation().substring(0,D));else return d&&f.executeLinkingSuccessOrFailureCommands(S,d,!1),Promise.reject(Error(D.statusMessage))}).catch(function(D){_.h3(D);
_.t3("gamingAccountLinkStatusChanged",{serviceId:K,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(D)}):this.getAccountLinkPromises[K]=H.startLinkingSession({serviceId:K})};
_.V.handleAccountLinkCommand=function(K){_.P(K,F1Z)&&this.handleLinkRequest(_.P(K,F1Z))};
_.V.handleLinkRequest=function(K){var d=this,f=K.thirdPartyId;if(f)if(this.isGalInteractionPopupMode(f)){var H=function(){d.closeAndFire("ytd-gaming-account-link-setting-renderer",K.onFailureCommand)},D=function(){d.closeAndFire("ytd-gaming-account-link-setting-renderer",K.onSuccessCommand)};
this.lastCallback=D;this.getAccountLinkPromises[f].then(function(S){Viy(S).then(function(n){n.statusCode===1?D():H()})}).catch(function(){H()})}else this.getAccountLinkPromises[f].then(function(S){Viy(S).then(function(n){if(n.statusCode!==1)return Promise.reject(Error(n.statusMessage))})}).catch(function(S){_.h3(S);
_.t3("gamingAccountLinkStatusChanged",{serviceId:f,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(S)})};
_.V.closeAndFire=function(K,d){_.ev(this.hostElement,"yt-close-popup-action",[K]);d&&_.V$([d],this.hostElement)};
_.V.handleAccountUnlinkCommand=function(K){_.P(K,zeU)&&this.handleUnlinkRequest(_.P(K,zeU))};
_.V.handleUnlinkRequest=function(K){var d=this,f=K.thirdPartyId;if(f){var H=function(){d.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",K.onFailureCommand)},D=function(){d.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",K.onSuccessCommand)};
this.lastCallback=D;var S=n7t(this.createGalConfig(f,!1));this.unlinkUserGal(S,f).then(function(n){n.statusCode===1?D():H()}).catch(function(){H()})}};
_.V.unlinkUserGal=function(K,d){return K.deleteLink(d)};
_.V.handleLogAccountLinkingEventCommand=function(K){_.M("enable_gel_log_commands")&&_.P(K,XEy)&&(K=_.P(K,XEy).event)&&_.t3("gamingAccountLinkStatusChanged",K)};
_.x$.Object.defineProperties(Q1,{template:{configurable:!0,enumerable:!0,get:function(){return FPK()}}});
_.x([_.l(_.Vr.YtOpenPopupBehavior),_.B("design:type",Object)],Q1.prototype,"ytOpenPopupBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Q1.prototype,"ytActionHandlerBehavior",void 0);Q1=_.x([_.Q({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Q1);_.C(Q1,"ytd-third-party-manager",function(){return FPK()},{mode:_.p8("kevlar_poly_si_batch_j081")?1:2});var zLK,Xnz=function(){return zLK!==void 0?zLK:zLK=document.createElement("template")};
document.head.appendChild(Xnz().content);var vct,MbS=function(){if(vct!==void 0)return vct;var K=document.createElement("template");_.Y(K,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");K.content.insertBefore(Xnz().content.cloneNode(!0),K.content.firstChild);K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return vct=K};var PmS=_.Am(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),jm=function(){var K=_.q.apply(this,arguments)||this;K.currentPage=void 0;K.renderLoadingStateJobId=0;K.updatePageDataJobId=0;K.pageDisposeJobsets=new WeakMap;K.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"};K.applyZoomTransition=_.fy("web_page_transition_type")==="zoom";K.applySlideTransition=_.fy("web_page_transition_type")==="slide";K.TEST_ONLY=void 0;return K};
_.O(jm,_.q);_.V=jm.prototype;_.V.ready=function(){var K=_.eq();K.addProvider({provide:_.jC,useValue:this});K.addProvider({provide:_.bVs,useValue:this})};
_.V.created=function(){this.pagePool=new xpZ;this.contextSwitcher=new H5U};
_.V.attached=function(){_.Zp(this.hostElement,"attached");var K=_.eq().resolve(_.Zd(_.O1));K&&(this.contextSwitcher.JSC$17562_networkService_=K);this.viewTransitionManager=_.eq().resolve(_.Zd(_.Re));this.setupPageTransitionAnimation()};
_.V.getPageOffset=function(K){return K.getScrollTop()};
_.V.setPageOffset=function(K,d){try{K.setScrollTop(d)}catch(f){}};
_.V.setPageOffsetForNavigation=function(K,d){_.Zp(this.hostElement,"yt-navigate-set-page-offset",{page:K,offset:d===void 0?0:d})};
_.V.pauseActiveContext=function(){var K=this.contextSwitcher;K.activeContext_&&K.activeContext_.pause()};
_.V.getModuleNameForType=function(K){return K==="watch"?_.M("kevlar_watch_fixie")?"watchFixie":_.M("kevlar_watch_grid")?"watchGrid":"watchFlexy":K==="shorts"||K==="search"?K:"browse"};
_.V.attachPage=function(K){var d,f=!_.M("pc_is_attached_ks")&&(K==null?void 0:(d=K.polymerController)==null?void 0:d.isAttached);if(!K.isAttached&&!f)try{_.E(this.hostElement).appendChild(K)}catch(D){var H;_.h3(new _.X4("Error attaching page element for component",{origin:(H=this.currentPage)==null?void 0:H.is,component:K.is}))}};
_.V.setActivePage=function(K){var d=this,f=!1,H=function(){var D=d.isOnWatch(),S=d.currentPage;if(K)if(K!==d.currentPage){S&&(S.hidden=!0,S.active=!1,S.removeAttribute("role"));d.currentPage=K;var n,u=_.nU((n=d.data)==null?void 0:n.endpoint);S&&_.Zp(d.hostElement,"yt-page-type-changed",{oldPageType:S.is,newPageType:K.is,newPageSubtype:u});_.TC().dispatch(_.es({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:K.is}));_.TC().dispatch(_.es({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:u||""}));K.hidden=
!1;d.attachPage(K);K.active=!0;K.setAttribute("role","main");S&&d.setPageOffsetForNavigation(K,0);_.M("kevlar_remove_page_dom_on_switch")&&!D&&S&&_.E(d.hostElement).removeChild(S)}else f=!0;else D=new _.X4("Unable to set active page",S?S.is:"unknown origin",(u=d.data)==null?void 0:u.endpoint),_.$7(D)};
this.viewTransitionManager?tPS(this.viewTransitionManager,H,this.viewTransitionConfigForSetActivePage(this.currentPage,K)):H();return f};
_.V.viewTransitionConfigForSetActivePage=function(K,d){return _.M("web_thumbnail_to_watch_transition")&&(K==null?void 0:K.is)==="ytd-browse"&&this.isWatchPage(d)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(K==null?void 0:K.is)==="ytd-browse"&&(d==null?void 0:d.is)==="ytd-browse"&&K!==d?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.V.updatePageData=function(K){var d=this,f=this.data;this.updatePageDataJobId&&_.oc.cancelJob(this.updatePageDataJobId);this.data=K;return new _.ip(function(H){var D=function(){K.filler?d.performDataUpdate(K,f):LWw(function(){d.performDataUpdate(K,f)});
var a=_.ov();_.$f(a,"cr")||a.processSignal("cr");H()},S=function(){K&&K.page==="watch"?d.updatePageDataJobId=_.uX(_.oc,D):D()};
if(_.M("kevlar_enable_mss_page_modules_client")&&K){var n=_.eq().resolve(_.hm),u=d.getModuleNameForType(K.page);(n=NjE(n,[u]))?n.then(S):S()}else S()})};
_.V.isDownloadsPage=function(K){var d,f;return(K==null?void 0:(d=K.endpoint)==null?void 0:(f=d.browseEndpoint)==null?void 0:f.browseId)==="FEdownloads"};
_.V.setPlayerSyncInterval=function(K){var d;return _.c(function(f){if(f.nextAddress==1)return _.I(f,_.eq().resolve(_.kP),2);d=f.yieldResult;d.setUpPositionSyncInterval(K);_.iQ(f)})};
_.V.performDataUpdate=function(K,d){_.M("kevlar_early_popup_close")||_.ev(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var f=!K.filler;f&&(_.YJ("lps"),_.M("config_age_report_killswitch")||zAw());var H=pP(K),D,S=!1;if(_.M("kevlar_remove_page_dom_on_switch")){var n=d&&pP(d);H===n&&(D=this.getCurrentPage())}D||(D=hu(this.pagePool,H));f&&sMw(this.pagePool.elementPoolPopulator,H);f&&!this.renderLoadingStateJobId&&(S=this.setActivePage(D));if(D){n=H==="watch";var u=
H==="shorts",a=H==="learning_journey_watch";_.M("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(D);if(n||u||a)D.playerData=K.playerResponse;if(u){K.reelWatchSequenceResponse?D.reelWatchSequenceResponse=K.reelWatchSequenceResponse:K.cachedReelWatchSequenceResponse?D.reelWatchSequenceResponse=K.cachedReelWatchSequenceResponse:_.M("web_enable_cached_reel_sequence_fix")&&D.cachedReelWatchSequenceResponse&&!D.reelWatchSequenceResponse&&(D.reelWatchSequenceResponse=D.cachedReelWatchSequenceResponse);
D.currentEndpoint=K.endpoint;var R;D.isPreviousPageShorts=!!(d==null?0:(R=d.endpoint)==null?0:R.reelWatchEndpoint);K.cachedReelWatchSequenceResponse=K.reelWatchSequenceResponse||K.cachedReelWatchSequenceResponse||(d==null?void 0:d.cachedReelWatchSequenceResponse);D.cachedReelWatchSequenceResponse=K.cachedReelWatchSequenceResponse}R=this.isDownloadsPage(K);var F=this.isDownloadsPage(d);R&&!F?this.setPlayerSyncInterval(6E5):!R&&F&&this.setPlayerSyncInterval();_.M("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(K,D,f,n,u,a);opS(_.eq().resolve(_.$b),d,K);_.Bw(_.eq().resolve(_.Pp));_.M("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(D);f?(f=typeof D.loadPage,f==="function"?(D.pageContext=Dpy(this.contextSwitcher,D,D.data!==K.response),f=function(){D.loadPage(K.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&D.is==="ytd-browse"&&S&&this.isDifferentBrowseId(K==null?void 0:K.endpoint,d==null?void 0:d.endpoint)?
this.applySlideTransition?tPS(this.viewTransitionManager,f,{transitionName:"slide"}):tPS(this.viewTransitionManager,f,{transitionName:"zoom"}):f()):_.EN(new _.X4("b/38014653 ",[H,
D.is,D.nodeName,f,D.isAttached,d&&pP(d),this.hostElement.children.length])),_.YJ("pdl")):(D.hidden=!0,K.response.filler=!0,D.data=K.response,this.attachPage(D));_.Zp(this.hostElement,"yt-page-data-updated",{pageType:H})}_.va(_.oc,function(){_.M("logging_avoid_blocking_during_navigation")&&_.pPO().transition("none");var z=vfE(),v=D;if(K){var g=peS(K),N=KVc(K),h;a:{if(K.playerResponse){var m=K.playerResponse,T;if((h=m.auxiliaryUi)==null?0:(T=h.messageRenderers)==null?0:T.upsellDialogRenderer){h=m.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(K.response&&(h=K.response,(m=h.overlay)==null?0:m.upsellDialogRenderer)){h=h.overlay.upsellDialogRenderer;break a}h=void 0}var r;var J;T=(r=K.playerResponse)==null?void 0:(J=r.auxiliaryUi)==null?void 0:J.messageRenderers;r=(T==null?void 0:T.enforcementMessageViewModel)||(T==null?void 0:T.bkaEnforcementMessageViewModel);r=(r==null?void 0:r.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?r:void 0;var L;a:{if(K.response&&(J=K.response,(L=J.overlay)==null?0:L.commandWrapperPromoRenderer)){L=
J.overlay.commandWrapperPromoRenderer;break a}L=void 0}X5i(z,g,N,h,r,L,v)}})};
_.V.preparePrefetchRequest=function(K,d,f,H,D,S){var n,u,a,R,F,z,v,g,N,h,m,T,r,J,L;return _.c(function(fB){if(fB.nextAddress==1)return!f||!(H||D||S)||_.M("kevlar_disable_background_prefetch")&&_.AR(_.L8z)()===0?fB.return():(n=_.CK(d))?_.I(fB,n.getPlayerPromise(),2):fB.return();u=fB.yieldResult;a=_.eq().resolve(_.Zd(_.O1));if(!a)return fB.return();if(D)return R=_.w3(_.cn),d7U(R,(F=K.endpoint)==null?void 0:F.reelWatchEndpoint,d.reelWatchSequenceResponse,u,a),fB.return();g=(z=K.response)==null?void 0:
(v=z.responseContext)==null?void 0:v.webResponseContextExtensionData;if(!g)return fB.return();r=(N=K.response)==null?void 0:(h=N.contents)==null?void 0:(m=h.twoColumnWatchNextResults)==null?void 0:(T=m.autoplay)==null?void 0:T.autoplay;J=_.eq().resolve(_.Yf);L=_.w3(_.cn);fmU(L,g,u,a,J,r);_.iQ(fB)})};
_.V.movePlayerToWatch=function(K){var d=this,f,H;return _.c(function(D){f=hu(d.pagePool,"watch");H=f.getPlayerContainer();K.appendTo(H);_.iQ(D)})};
_.V.movePlayerToShorts=function(K){var d=this,f,H,D;return _.c(function(S){f=hu(d.pagePool,"shorts");H=f.getPlayerContainer();(D=K)==null||D.appendTo(H,void 0,!0);_.iQ(S)})};
_.V.getPlayerFromWatch=function(){var K=hu(this.pagePool,"watch");return _.CK(K)};
_.V.getPlayerFromShorts=function(){var K=hu(this.pagePool,"shorts");return _.CK(K)};
_.V.startLoadingWatch=function(){var K=hu(this.pagePool,"watch");this.renderLoadingStateJobId?(_.oc.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(K)};
_.V.startLoadingShorts=function(){var K=hu(this.pagePool,"shorts");this.setActivePage(K)};
_.V.startLoadingLearningJourney=function(){var K=hu(this.pagePool,"learning_journey_watch");this.setActivePage(K)};
_.V.getCurrentPage=function(){return this.currentPage};
_.V.getDestinationPageType=function(){return this.destinationPageType};
_.V.getCurrentData=function(){return this.data};
_.V.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.V.isOnShorts=function(){var K;return((K=this.currentPage)==null?void 0:K.is)==="ytd-shorts"};
_.V.isWatchPage=function(K){return!!K&&(K.is==="ytd-watch-flexy"||K.is==="ytd-watch-fixie"||K.is==="ytd-watch-grid")};
_.V.preparePage=function(K,d){var f=this,H=function(){var n=f.pagePool.preparePage(K,f.currentPage,d);n&&f.attachPage(n)},D=function(n){_.bp(n,d);
_.h3(n)};
if(_.M("kevlar_enable_mss_page_modules_client")){var S=this.getModuleNameForType(K);if(S=NjE(_.eq().resolve(_.hm),[S])){S.then(H.bind(this)).catch(D.bind(this));return}}try{H()}catch(n){D(n)}};
_.V.lazyPrepareCriticalPages=function(K,d){K=_.nU(d)||K;_.M("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(K).then(this.maybePrepareWatchPage.bind(this,K)):this.maybePrepareWatchPage(K)};
_.V.maybePrepareWatchPage=function(K){K!=="watch"&&_.va(_.oc,this.preparePage.bind(this,"watch"))};
_.V.downloadPageModules=function(K){K=this.getModuleNameForType(K);var d=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);d.delete(K);var f=_.eq().resolve(_.hm);f.JSC$16297_loadModules(K);return f.JSC$16297_loadModules.apply(f,_.Me(d))};
_.V.renderPageLoadingState=function(K,d){this.preparePage(K,d);var f=hu(this.pagePool,K);f.loadingData&&(f.loadingData.endpoint=d);f.loading=!0;this.setActivePage(f);K==="watch"&&_.Zp(this.hostElement,"yt-guide-close")};
_.V.prepareForNavigation=function(K,d){var f=this;if(this.currentPage&&this.data){var H=_.nU(d)||K;this.destinationPageType=H;pP(this.data)==H&&_.Zp(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(K==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.oc.cancelJob(this.renderLoadingStateJobId);_.eq().resolve(_.$b).deactivate(d);var D=this.data;this.renderLoadingStateJobId=_.FN(_.oc,function(){if(f.data!=D){var S=hu(f.pagePool,K);f.setActivePage(S)}else f.renderPageLoadingState(K,
d);f.renderLoadingStateJobId=0},150)}};
_.V.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var K=new _.Bn(1);this.currentPage.pageDisposeJobs.forEach(function(d){_.Jj(K,d)});
this.pageDisposeJobsets.set(this.currentPage,K)}};
_.V.flushPageDisposeJobset=function(K){var d=this.pageDisposeJobsets.get(K);d&&(d.flushJobs(),this.pageDisposeJobsets.delete(K))};
_.V.onYtStopOldPlayer=function(K,d){d=d===void 0?!1:d;var f,H=_.H6("kevlar_new_stop_old_player_logic_pages");if(_.M("kevlar_check_current_page_on_stop_old_player")&&(H.length===0||this.currentPage&&H.includes(this.currentPage.is)))if(this.data&&(f=pP(this.data)),pP(K)===f&&this.currentPage&&pP(this.currentPage.data)!==f)var D=_.CK(this.currentPage);else f=pP(this.data),D=hu(this.pagePool,f),D=_.CK(D);else this.data&&(f=pP(this.data),D=hu(this.pagePool,f),D=_.CK(D));if(D)if(K=pP(K),H=hu(this.pagePool,
K),H=_.CK(H),D==H)d&&!_.M("kevlar_disable_preemptive_player_reset")&&D.resetForNewPlayback();else if(d=f==="watch"&&K!=="watch",!d||K==="shorts"||_.R4s()&&!u0E(this.data)&&K!=="yts-products"&&K!="mini_app"&&K!="playables")f=_.eq().resolve(_.$b),d&&f.isMiniplayerActive()&&f.pipController.getWindow()||D.stop()};
_.V.setupPageTransitionAnimation=function(){var K=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){ki(this.viewTransitionManager,"slide",{beforeTransition:function(){K.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){K.hostElement.style.viewTransitionName=""}});
ki(this.viewTransitionManager,"zoom",{beforeTransition:function(){K.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){K.hostElement.style.viewTransitionName=""}});
var d=_.di("web_page_transition_exit_ms"),f=_.di("web_page_transition_wait_ms"),H=_.di("web_page_transition_enter_ms");if(!isNaN(d)||!isNaN(f)||!isNaN(H))if(d=X_t(PmS,d,f,H))f=document.createElement("style"),f.textContent=_.N4X(d),document.head.appendChild(f)}};
_.V.isDifferentBrowseId=function(K,d){K=_.P(K,_.is);d=_.P(d,_.is);return(K==null?void 0:K.browseId)!==(d==null?void 0:d.browseId)};
_.x$.Object.defineProperties(jm,{template:{configurable:!0,enumerable:!0,get:function(){return MbS()}}});
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],jm.prototype,"ytActionHandlerBehavior",void 0);jm=_.x([_.Q({disableElementRegistration:!0,is:"ytd-page-manager"})],jm);_.C(jm,"ytd-page-manager",function(){return MbS()},{mode:_.p8("kevlar_poly_si_batch_j081")?1:2});var BT=function(K,d,f){f=f===void 0?!1:f;_.gG.call(this);this.draggableElement=K;this.callbacks=d;this.allowClicks=f;this.dragOccurred=!1;this.internalDragger=new _.oZ(this.draggableElement);this.dragDelay=new _.Jd(this.delayedDrag.bind(this));gcE(this);this.allowClicks&&(_.$qt(this.internalDragger,5),K.addEventListener("click",_.Dm(this,this.validateClick),{capture:!0}))};
_.O(BT,_.gG);var gcE=function(K){_.zG(K.internalDragger,"earlycancel",function(){K.allowClicks&&(K.dragOccurred=!1)});
_.zG(K.internalDragger,"start",function(d){var f,H;(H=(f=K.callbacks).onStartDrag)==null||H.call(f,d);!d.defaultPrevented&&K.allowClicks&&(K.dragOccurred=!0)});
_.zG(K.internalDragger,"beforedrag",function(d){d.preventDefault();K.lastOffset=new _.Nm(d.clientX-K.internalDragger.startX,d.clientY-K.internalDragger.startY);K.dragDelay.start()});
_.zG(K.internalDragger,"end",function(){K.dragDelay.stop();var d,f;(f=(d=K.callbacks).onEndDrag)==null||f.call(d);K.lastOffset=void 0})};
BT.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
BT.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Dm(this,this.validateClick),{capture:!0})};
BT.prototype.validateClick=function(K){this.dragOccurred&&(this.dragOccurred=!1,K.stopPropagation(),K.preventDefault())};var Ju=function(K,d){_.gG.call(this);this.JSC$17763_resizeContainer=K;this.callbacks=d;this.aspectRatio=16/9;this.JSC$17763_resizers=[];K=_.y(this.JSC$17763_resizeContainer.children);for(d=K.next();!d.done;d=K.next())OIc(this,d.value)};
_.O(Ju,_.gG);Ju.prototype.disposeInternal=function(){for(var K=_.y(this.JSC$17763_resizers),d=K.next();!d.done;d=K.next())d.value.dispose();K=_.y(this.JSC$17763_resizeContainer.children);for(d=K.next();!d.done;d=K.next())d.value.setAttribute("disabled","");this.JSC$17763_resizers.length=0};
Ju.prototype.setSize=function(K){this.currentMiniplayerSize=K};
Ju.prototype.setAspectRatio=function(K){this.aspectRatio=K};
Ju.prototype.update=function(K,d){for(var f=_.y(this.JSC$17763_resizeContainer.children),H=f.next();!H.done;H=f.next()){H=H.value;var D=H.getAttribute("alignment");_.K8(H,"disabled",D===K||D===d)}};
var OIc=function(K,d){var f=d.getAttribute("alignment"),H=new BT(d,{onStartDrag:function(D){if(d.hasAttribute("disabled"))D.preventDefault();else{K.dragStartSize=K.currentMiniplayerSize;var S,n;(n=(S=K.callbacks).onStartResize)==null||n.call(S)}},
onDrag:function(D){if(K.dragStartSize){f!=="north"&&f!=="west"||D.scale(-1);var S=f==="north"||f==="south";D=S?D.y:D.x;S&&K.aspectRatio>=1?D*=K.aspectRatio:!S&&K.aspectRatio<1&&(D/=K.aspectRatio);K.callbacks.onResize(K.dragStartSize+D)}}});
K.JSC$17763_resizers.push(H)};var Nsy,Y9t=function(){return Nsy!==void 0?Nsy:Nsy=document.createElement("template")};
document.head.appendChild(Y9t().content);var tbK;var ocS=_.C8(function(K){var d=_.Co(),f=K.onDrag,H=K.onDragStart,D=K.onDragEnd,S=_.jP(K,{allowClicks:!1,dragThreshold:5}),n=S.dragThreshold,u=S.allowClicks;K=S.children;S=S.className;var a=void 0,R=void 0,F=new _.Nm(0,0),z=!1;_.tR(function(){a=new _.oZ(d.value);R=new _.Jd(g);v(a,R);if(u()){_.$qt(a,n());var h;(h=d.value)==null||h.addEventListener("click",N,{capture:!0})}_.$F(function(){var m;(m=a)==null||m.dispose();if(u()){var T;(T=d.value)==null||T.removeEventListener("click",N,{capture:!0})}})});
var v=function(h,m){_.zG(h,"earlycancel",function(){u()&&(z=!1)});
_.zG(h,"start",function(T){H==null||H(T);T.defaultPrevented||u()&&(z=!0)});
_.zG(h,"beforedrag",function(T){a&&R&&(T.preventDefault(),F=new _.Nm(T.clientX-a.startX,T.clientY-a.startY),R.start())});
_.zG(h,"end",function(){m.stop();D==null||D();F=new _.Nm(0,0)})},g=function(){F&&f(F)},N=function(h){z&&(z=!1,h.stopPropagation(),h.preventDefault())};
return _.U("yt-draggable",{el:d,class:_.SC("ytDraggableComponentHost",S)},K)},"fg");var $zw=_.C8(function(K){var d=_.y(_.cC(0,void 0,"CvAwBd")),f=d.next().value,H=d.next().value;d=function(D){var S={},n={};return _.U(ocS,{className:_.SC("ytdMiniplayerComponentResizer",(S.ytdMiniplayerComponentResizerDisabled=function(){return D===K.horizontalAlignment()||D===K.verticalAlignment()},S.ytdMiniplayerComponentResizerNorth=D==="north",S.ytdMiniplayerComponentResizerEast=D==="east",S.ytdMiniplayerComponentResizerSouth=D==="south",S.ytdMiniplayerComponentResizerWest=D==="west",S)),
onDragStart:function(){H(K.currentMiniplayerSize());if(K.onResizeStart)K.onResizeStart()},
onDrag:function(u){D!=="north"&&D!=="west"||u.scale(-1);var a;u=(a=D==="north"||D==="south")?u.y:u.x;var R=K.currentAspectRatio();a&&R>=1?u*=R:!a&&R<1&&(u/=R);a=u;K.onResize(f()+a)}},_.U("div",{class:_.SC("ytdMiniplayerComponentResizerCorner",(n.ytdMiniplayerComponentResizerNorthCorner=D==="north",n.ytdMiniplayerComponentResizerEastCorner=D==="east",n.ytdMiniplayerComponentResizerSouthCorner=D==="south",n.ytdMiniplayerComponentResizerWestCorner=D==="west",n))}))};
return _.U("div",{class:"ytdMiniplayerComponentResizers"},d("north"),d("east"),d("south"),d("west"))},"gg");var Ec5=16/9,hLK=_.C8(function(){var K=_.Co(),d=_.y(_.cC(new _.n0(NaN,NaN),void 0,"UYv80c")),f=d.next().value,H=d.next().value;d=_.y(_.cC(!1,void 0,"L9O3Tc"));var D=d.next().value,S=d.next().value;d=_.y(_.cC(!1,void 0,"nw5gMc"));var n=d.next().value,u=d.next().value;d=_.y(_.cC(!1,void 0,"X4YUZc"));var a=d.next().value,R=d.next().value;d=_.y(_.cC(!1,void 0,"jOjwyc"));var F=d.next().value,z=d.next().value;d=_.y(_.cC(!1,void 0,"EmWIj"));var v=d.next().value,g=d.next().value;d=_.y(_.cC(!1,void 0,"pdZbNb"));
var N=d.next().value,h=d.next().value;d=_.y(_.cC(Ec5,void 0,"vdAiue"));var m=d.next().value,T=d.next().value,r=_.y(_.cC(!1,void 0,"agiiqf"));d=r.next().value;var J=r.next().value;r=_.y(_.cC(!1,void 0,"z3vkHe"));var L=r.next().value,fB=r.next().value;r=_.y(_.cC(void 0,void 0,"FMEjz"));var w=r.next().value,yO=r.next().value;r=_.y(_.cC(_.mD("HTML_DIR")==="rtl"?"west":"east",void 0,"jGuIHe"));var FX=r.next().value,NJ=r.next().value;r=_.y(_.cC("south",void 0,"R5stie"));var $z=r.next().value,hN=r.next().value;
r=_.y(_.cC(400,void 0,"CJeuke"));var bo=r.next().value,xz=r.next().value,qJ=_.eq().resolve(_.$b).miniplayerPropSignalMap[0],Y8=qJ.data,Iz=qJ.externalPlaylistData;r=qJ.toastData;var qs=qJ.playabilityStatus,af=qJ.isReadyToResume,i9=qJ.isDisabled,KE=qJ.watchWhile,c4=qJ.playerVe,cx=qJ.expandVe,Oj=qJ.closeVe,io=qJ.readyToResumeVe,g2=qJ.readyToResumeCloseVe,l9=qJ.repositionVe,rw=qJ.resizeVe;qJ=_.y(_.am(af));var t6=qJ.next().value,LJ=qJ.next().value,ry=!1,u9=!1,wz;_.tR(function(){H(_.aM());K.value.addEventListener("animationend",
function(Qv){Qv.target===K.value&&(g(!1),h(!1))});
PwU(K.value)});
_.j7("yt-window-resized",function(Qv){Qv&&H(Qv)});
var Ms=function(){wz&&T(wz.getVideoAspectRatio())},yc=function(){if(wz){var Qv=wz.getPlayerState()===1;
t6()&&Qv&&LJ(!1)}},P4=function(){var Qv=cx();
if(Qv){var PK=_.te(3);PK&&_.rN(PK,Qv)}},zy=function(){var Qv=Oj(),PK=g2();
Qv&&_.rN(_.te(3),Qv);af()&&PK&&_.rN(_.te(3),PK)};
_.j7("yt-activate-miniplayer",function(Qv){var PK;return _.c(function(Z7){if(Z7.nextAddress==1)return D()?Z7.return():_.I(Z7,(PK=_.eq().resolve(_.$b).getPlayerElement())==null?void 0:PK.getPlayerPromise(),2);wz=Z7.yieldResult;if(!wz)return Z7.return();!L()&&_.M("kevlar_watch_while_v2")&&(hN(Qv&&!_.M("kevlar_watch_while_bottom_align")?"north":"south"),NJ(_.mD("HTML_DIR")==="rtl"?"west":"east"));var Kw=wz;Kw.addEventListener("onVideoDataChange",Ms);Kw.addEventListener("onStateChange",yc);Kw.addEventListener("onExpandMiniplayer",
P4);Kw.addEventListener("onCloseMiniplayer",zy);T(wz.getVideoAspectRatio());S(!0);g(!0);_.iQ(Z7)})});
_.j7("yt-deactivate-miniplayer",function(Qv){return _.c(function(PK){if(!D())return PK.return();S(!1);LJ(!1);h(Qv);g(!0);z(!1);u(!1);if(wz){var Z7=wz;Z7.removeEventListener("onVideoDataChange",Ms);Z7.removeEventListener("onStateChange",yc);Z7.removeEventListener("onExpandMiniplayer",P4);Z7.removeEventListener("onCloseMiniplayer",zy)}_.iQ(PK)})});
var nw=function(){return!(KE()&&_.M("kevlar_watch_while_modern"))},Sc=function(){var Qv;
return!((Qv=Iz())==null||!Qv.contents)},AP=function(){var Qv=bo();
var PK=f();PK=Math.min(Math.min(PK.width,PK.height)-32,720);var Z7=m(),Kw=nw(),Yl=Sc()&&n(),qe=Math.min(Qv,PK);Qv=new _.n0(192,Kw?116:192);Z7=KWS(new _.n0(Yl?Ec5:Z7,1),new _.n0(qe,Kw?qe-76:qe));Qv.width<=Z7.width&&Qv.height<=Z7.height||(pJy(Z7,Qv),Z7.width=Math.min(Z7.width,PK),Z7.height=Math.min(Z7.height,PK));return new _.n0(Z7.width,_.Oa(192,Z7.height+tvP(Kw,Yl),720))},zf=function(){var Qv=AP(),PK=nw(),Z7=Sc()&&n();
return new _.n0(Qv.width,Qv.height-tvP(PK,Z7))},Ss=function(){var Qv=function(PK){PK.target===K.value&&F()&&(z(!1),K.value.removeEventListener("transitionend",Qv))};
K.value.addEventListener("transitionend",Qv);z(!0);u(!n())};
_.ol(function(){var Qv=c4(),PK=_.te(3),Z7=_.YZ(3);if(PK&&Z7&&Qv){_.lB(PK,Z7,Qv);Z7=l9();var Kw=rw(),Yl=cx(),qe=Oj(),W_=g2();Yl&&qe&&W_&&(_.WG(PK,Qv,[Yl,qe,W_]),_.Ay(PK,[Yl,qe]));Z7&&Kw&&_.WG(PK,Qv,[Z7,Kw])}});
_.ol(function(){var Qv=t6(),PK=io();if(PK&&(Qv===void 0?0:Qv)){Qv=_.te(0);var Z7=_.YZ(0);Qv&&Z7&&(_.lB(Qv,Z7,PK),_.Ay(Qv,[PK]))}});
qJ={};return _.U("ytd-miniplayer",{el:K,class:_.SC("ytdMiniplayerComponentHost",(qJ.ytdMiniplayerComponentVisible=function(){return D()||v()},qJ.ytdMiniplayerComponentAnimatingSnap=a,qJ.ytdMiniplayerComponentAnimatingPlaylistExpand=F,qJ.ytdMiniplayerComponentAnimatingFade=v,qJ),function(){if(v()){var Qv=$z();
var PK=D(),Z7=N();Qv=PK?Qv==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Z7?Qv==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Qv==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Qv="";return Qv}),
style:_.Im({top:function(){return $z()==="north"?"16px":""},
right:function(){return FX()==="east"?"16px":""},
bottom:function(){return $z()==="south"?"16px":""},
left:function(){return FX()==="west"?"16px":""},
width:function(){return AP().width+"px"},
height:function(){return AP().height+"px"},
transform:function(){var Qv=w();return Qv?"translate("+Qv.x+"px, "+Qv.y+"px)":""}})},_.U("div",{class:"ytdMiniplayerComponentContent"},_.U(ocS,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Qv){var PK=Yyl(FX(),$z(),f(),AP(),w()),Z7=zf();Math.abs(Qv.clientY-(PK.y+Z7.height))>15?(J(!0),Qv=_.te(3),PK=l9(),ry||(ry=!0,Qv&&PK&&_.Ay(Qv,[PK])),Qv&&PK&&_.rN(Qv,PK)):Qv.preventDefault()},
onDrag:function(Qv){yO(Qv)},
onDragEnd:function(){var Qv=gZw(Yyl(FX(),$z(),f(),AP(),w()),f(),AP()),PK=NLE(FX(),$z(),f(),AP()),Z7=NLE(Qv.horizontalAlignment,Qv.verticalAlignment,f(),AP());Z7=new _.Nm(Z7.x-PK.x,Z7.y-PK.y);var Kw;PK=PK.y+(((Kw=w())==null?void 0:Kw.y)||0)+AP().height/2;var Yl=function(){FX()===Qv.horizontalAlignment&&$z()===Qv.verticalAlignment||fB(!0);NJ(Qv.horizontalAlignment);hN(Qv.verticalAlignment);yO(void 0)},qe=function(W_){W_.target===K.value&&a()&&(R(!1),Yl(),K.value.removeEventListener("transitionend",
qe))};
J(!1);$z()==="south"&&PK>f().height?(Yl(),_.eq().resolve(_.$b).close()):(K.value.addEventListener("transitionend",qe),R(!0),yO(Z7))}},_.U(_.X,{cond:D,
then:function(){return _.U(_.msK,{isDisabled:i9,playabilityStatus:qs,size:zf})}}),_.U(_.X,{cond:nw,
then:function(){return _.U(_.hBt,{isReadyToResume:t6,data:Y8,expanded:n,onExpandClick:Ss,playlistData:Iz})}}),_.U(_.X,{cond:d,
then:function(){return _.U("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.U(_.X,{cond:function(){return Sc()&&n()||F()},
then:function(){return _.U(_.dBH,{className:"ytdMiniplayerComponentPlaylistPanel",data:Iz,hideHeaderText:!0,withinMiniplayer:!0})}}),_.U("div",{class:"ytdMiniplayerComponentToast"},_.U(_.lLi,{toastData:r}))),_.U($zw,{onResize:function(Qv){xz(_.Oa(192,Qv,720))},
onResizeStart:function(){var Qv=_.te(3),PK=rw();u9||(u9=!0,Qv&&PK&&_.Ay(Qv,[PK]));Qv&&PK&&_.rN(Qv,PK)},
currentAspectRatio:m,currentMiniplayerSize:bo,horizontalAlignment:FX,verticalAlignment:$z}))},"hg");_.M("ytd_miniplayer_to_wiz")&&_.sP(hLK,"ytd-miniplayer",{});_.sP(_.lLi,"ytd-miniplayer-toast",{props:{toastData:_.rs}});var bIS=16/9,mzy=new _.n0(400,400/bIS),s_=function(){var K=_.q.apply(this,arguments)||this;K.active=!1;K.hasNoData=!1;K.enabled=!1;K.expanded=!1;K.readyToResume=!1;K.isDisabled=!1;K.externalPlaylistData={};K.premiumBadges=[];K.watchWhile=!1;K.playerState=null;K.verticalAttachment="south";K.horizontalAttachment=_.mD("HTML_DIR")==="rtl"?"west":"east";K.isAnimatingFade=!1;K.isAnimatingSnap=!1;K.isAnimatingExpand=!1;K.isDragging=!1;K.playerHidden=!1;K.hasPlaylistData=!1;K.closed=!1;K.expandedClosed=!1;
K.isForReadyToResume=!1;K.watchResponse=null;K.player=null;K.playerVe=null;K.expandVe=null;K.closeVe=null;K.readyToResumeCloseVe=null;K.disabledInitialStateIsPlaying=!1;K.PLAYER_EVENTS=new Map;K.aspectRatio=bIS;K.currentMiniplayerSize=400;K.userSetSize=!1;K.userSetPosition=!1;K.userHasDragged=!1;K.maxMiniplayerSize=720;K.transform=new _.Nm(0,0);K.windowDimensions=new _.n0(NaN,NaN);K.dimensions=mzy;K.screenLayer=3;K.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return K};
_.O(s_,_.q);_.V=s_.prototype;_.V.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.V.ready=function(){this.setUpDragging();this.setUpResizing()};
_.V.attached=function(){this.onWindowResized(_.aM());this.hostElement.addEventListener("animationend",_.Dm(this,this.resetFadingAnimation))};
_.V.detached=function(){this.hostElement.removeEventListener("animationend",_.Dm(this,this.resetFadingAnimation))};
_.V.resetFadingAnimation=function(K){K.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.V.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.V.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.V.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var K=_.te(this.screenLayer);this.readyToResumeCloseVe&&K&&_.Ay(K,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.V.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var K=_.te(0),d=_.YZ(0);K&&d&&(_.lB(K,d,this.readyToResumeVe),_.Ay(K,[this.readyToResumeVe]))}};
_.V.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var K=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=K===-1||K===1||K===3)&&this.player.pauseVideo()}};
_.V.activate=function(K,d){d=d===void 0?!1:d;var f=this,H;return _.c(function(D){if(D.nextAddress==1)return f.setInitialActivatePositioning(d),f.enabled=!0,f.active=!0,f.expanded=!1,f.closed=!1,f.expandedClosed=!1,f.watchWhileHidden||(f.isAnimatingFade=!0),_.eq().resolve(_.Yf).setPlaylistComponent(f.JSC$17774_playlistPanel),K.appendTo(f.playerContainer),_.I(D,K.getPlayerPromise(),2);H=D.yieldResult;H.setSizeStyle(!1,!0);f.ytPlayerListenerBehavior.listenToPlayerEvents(H,f.PLAYER_EVENTS);f.player=H;
f.watchWhile&&_.M("kevlar_watch_while_minimum_size")&&f.setMiniplayerSize(192);f.setAspectRatio(f.player.getVideoAspectRatio());f.onIsDisabledChanged();_.iQ(D)})};
_.V.setInitialActivatePositioning=function(K){if(!this.userSetPosition&&_.M("kevlar_watch_while_v2")){this.verticalAttachment=K&&!_.M("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.mD("HTML_DIR")==="rtl"?"west":"east";var d;(d=this.JSC$17774_resizers)==null||d.update(this.horizontalAttachment,this.verticalAttachment)}};
_.V.deactivate=function(K,d){var f=this;return _.c(function(H){if(!f.active)return H.return();K||(f.expanded?f.expandedClosed=!0:f.closed=!0);f.active=!1;f.isForReadyToResume=!1;d&&_.M("kevlar_watch_while_counterfactual")||(f.isAnimatingFade=!0);f.player&&f.ytPlayerListenerBehavior.unlistenFromPlayerEvents(f.player,f.PLAYER_EVENTS);f.player=null;_.iQ(H)})};
_.V.onMetadataTap=function(K){this.expandVe&&(K===void 0||K)&&(K=_.te(this.screenLayer))&&_.rN(K,this.expandVe);_.F5(_.eq().resolve(_.$b))};
_.V.onDisabledTap=function(K){K.target===_.E(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.V.onPlaylistExpandTap=function(K){if(this.hasPlaylistData){K=_.qn(K)||[];K=_.y(K);for(var d=K.next();!d.done;d=K.next()){d=d.value;if(d===this.hostElement)break;if(d.classList&&d.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.V.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Dm(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.V.animatedResizePlaylist=function(K){K.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Dm(this,this.animatedResizePlaylist)))};
_.V.getExpandIcon=function(K){return K?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.V.onPlayerVideoDataChange=function(){var K,d=(K=this.player)==null?void 0:K.getVideoAspectRatio();d&&d!==this.aspectRatio&&this.setAspectRatio(d)};
_.V.setAspectRatio=function(K){if(this.active){this.aspectRatio=K;this.updateDimensionsAndResize();var d;(d=this.JSC$17774_resizers)==null||d.setAspectRatio(K)}};
_.V.updateDimensionsAndResize=function(){var K=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),d=this.expanded?bIS:this.aspectRatio,f=new _.n0(192,this.showInfoBar?116:192);K=KWS(new _.n0(d,1),new _.n0(K,this.showInfoBar?K-76:K));f.width<=K.width&&f.height<=K.height||(pJy(K,f),K.width=Math.min(K.width,this.maxMiniplayerSize),K.height=Math.min(K.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&d<=1?Math.max(K.width,K.height)+76:Math.max(K.width,K.height)));this.dimensions=
new _.n0(K.width,this.clamp(K.height+this.getNonPlayerHeight()));this.resize()};
_.V.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var K=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=K.height+"px";var d;(d=this.player)==null||d.setInternalSize(K.width,K.height)};
_.V.getPlayerSize=function(K){var d=Math.max(0,K.height-this.getNonPlayerHeight());return new _.n0(K.width,d)};
_.V.getNonPlayerHeight=function(){var K=0;this.showInfoBar&&(K+=76);this.expanded&&(K+=285);return K};
_.V.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.eq().resolve(_.$b).close()};
_.V.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.V.logClosingClick=function(){this.closeVe&&_.rN(_.te(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.rN(_.te(this.screenLayer),this.readyToResumeCloseVe)};
_.V.onPlayerExpandMiniplayer=function(){if(this.expandVe){var K=_.te(this.screenLayer);K&&_.rN(K,this.expandVe)}};
_.V.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var K=this.playerState===1;this.continueWatching&&K&&(this.continueWatching=!1);this.premiumBadges.length&&K&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.V.getScreenLayer=function(){return this.screenLayer};
_.V.logMiniplayer=function(){var K=_.te(this.screenLayer),d=_.YZ(this.screenLayer);K&&d&&this.playerVe&&(_.lB(K,d,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.WG(K,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.Ay(K,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.WG(K,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.V.computePlaylistData=function(K,d){return d};
_.V.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.V.computeExpandButtonHidden=function(K,d,f){return!K||!d||f};
_.V.computePlaylistIndexHidden=function(K,d){return!K||d};
_.V.computePlaylistPanelHidden=function(K,d){return!d&&!K};
_.V.computeExpandButtonLabel=function(K){return K?_.iB("MINIPLAYER_COLLAPSE_LABEL"):_.iB("MINIPLAYER_EXPAND_LABEL")};
_.V.computeDisabledStateCloseButtonLabel=function(){return _.iB("MINIPLAYER_CLOSE",void 0,"Close")};
_.V.onWindowResized=function(K){K&&(K=this.windowDimensions=K,this.maxMiniplayerSize=Math.min(Math.min(K.width,K.height)-32,720),this.updateDimensionsAndResize())};
_.V.setUpResizing=function(){var K=this;this.JSC$17774_resizers||(this.JSC$17774_resizers=new Ju(this.JSC$17774_resizeContainer,{onStartResize:function(){K.handleResizeStart()},
onResize:function(d){K.handleResize(d)}}),this.JSC$17774_resizers.setSize(this.currentMiniplayerSize),this.JSC$17774_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.V.handleResizeStart=function(){var K=_.te(this.screenLayer);this.userSetSize||(this.userSetSize=!0,K&&this.resizeVe&&_.Ay(K,[this.resizeVe]));K&&this.resizeVe&&_.rN(K,this.resizeVe)};
_.V.handleResize=function(K){this.setMiniplayerSize(K);this.updateDimensionsAndResize()};
_.V.setUpDragging=function(){var K=this;this.JSC$17774_dragger||(this.JSC$17774_dragger=new BT(this.draggableContainer,{onStartDrag:function(d){!K.isSafeToDrag(d)||K.isAnimatingSnap?d.preventDefault():K.handleDragStart()},
onDrag:function(d){K.transform=d;K.setTransform(K.transform)},
onEndDrag:function(){K.handleDragEnd()}},!0))};
_.V.handleDragStart=function(){this.isDragging=!0;var K=_.te(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,K&&this.repositionVe&&_.Ay(K,[this.repositionVe]));K&&this.repositionVe&&_.rN(K,this.repositionVe)};
_.V.handleDragEnd=function(){this.isDragging=!1;var K=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&K>this.windowDimensions.height&&_.eq().resolve(_.$b).close();this.animateSnapToCorner()};
_.V.animateSnapToCorner=function(){var K=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),d=this.getNearestAttachments();d=this.getGlobalPositionFromAttachments(d.horizontalAttachment,d.verticalAttachment);K=new _.Nm(d.x-K.x,d.y-K.y);this.isAnimatingSnap=!0;this.setTransform(K);this.hostElement.addEventListener("transitionend",_.Dm(this,this.endSnapAnimation))};
_.V.endSnapAnimation=function(K){K.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Dm(this,this.endSnapAnimation)),this.endDrag())};
_.V.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.V.setTransform=function(K){this.hostElement.style.transform=K?"translate("+K.x+"px, "+K.y+"px)":""};
_.V.getGlobalPositionFromAttachments=function(K,d){return new _.Nm(K==="west"?16:this.windowDimensions.width-this.dimensions.width-16,d==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.V.updateAttachments=function(){var K=this.getNearestAttachments();if(this.horizontalAttachment!==K.horizontalAttachment||this.verticalAttachment!==K.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=K.horizontalAttachment;this.verticalAttachment=K.verticalAttachment;var d;(d=this.JSC$17774_resizers)==null||d.update(this.horizontalAttachment,this.verticalAttachment)};
_.V.getNearestAttachments=function(){var K=this.getCurrentGlobalPosition();return{horizontalAttachment:K.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:K.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.V.getCurrentGlobalPosition=function(){var K=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return O1P(K,this.transform)};
_.V.isSafeToDrag=function(K){var d=this.playerContainer.getBoundingClientRect();return Math.abs(K.clientY-(d.y+d.height))>15};
_.V.setMiniplayerSize=function(K){this.currentMiniplayerSize=this.clamp(K);var d;(d=this.JSC$17774_resizers)==null||d.setSize(this.currentMiniplayerSize)};
_.V.clamp=function(K){return _.Oa(192,K,720)};
_.V.registerViewTransitionTasks=function(){var K=this,d=_.eq().resolve(_.Zd(_.Re));if(d){var f={beforeTransition:function(){K.hostElement&&(K.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){K.hostElement&&(K.hostElement.style.viewTransitionName="")}};
ki(d,"slide",f);ki(d,"zoom",f)}};
_.x$.Object.defineProperties(s_.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.M("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.iB("CONTINUE_WATCHING",void 0,"Continue watching")};var K;if((K=this.externalPlaylistData)==null?0:K.contents)return this.externalPlaylistData.titleText;var d;return(d=this.data)==null?void 0:d.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.externalPlaylistData)==null?0:K.contents){var d;return(d=_.KPY(this.externalPlaylistData))==null?void 0:d.title}var f;return(f=this.data)==null?void 0:f.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var K,d,f,H;return((K=this.externalPlaylistData)==null?void 0:K.currentIndex)!==void 0&&((d=this.externalPlaylistData)==null?0:d.totalVideos)&&!((f=this.data)==null?0:(H=f.playlistData)==null?0:H.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.QAp(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.M("kevlar_watch_while_counterfactual")}}});
s_.prototype.onIsDisabledChanged=s_.prototype.onIsDisabledChanged;s_.prototype.readyToResumeVeChanged=s_.prototype.readyToResumeVeChanged;s_.prototype.premiumBrandingChanged=s_.prototype.premiumBrandingChanged;s_.prototype.onPlayerVeChange=s_.prototype.onPlayerVeChange;s_.prototype.hasPlaylistDataChanged=s_.prototype.hasPlaylistDataChanged;_.x([_.l(_.ra.YtPlayerListenerBehavior),_.B("design:type",_.q3)],s_.prototype,"ytPlayerListenerBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],s_.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],s_.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],s_.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],s_.prototype,"ytdReduxBehavior",void 0);_.x([_.n8("#draggable"),_.B("design:type",HTMLDivElement)],s_.prototype,"draggableContainer",void 0);
_.x([_.n8("#resize-container"),_.B("design:type",HTMLDivElement)],s_.prototype,"JSC$17774_resizeContainer",void 0);_.x([_.n8("#video-container"),_.B("design:type",HTMLDivElement)],s_.prototype,"videoContainer",void 0);_.x([_.n8("#player-container"),_.B("design:type",HTMLDivElement)],s_.prototype,"playerContainer",void 0);_.x([_.n8("#playlist"),_.B("design:type",HTMLDivElement)],s_.prototype,"JSC$17774_playlistPanel",void 0);_.x([_.A(),_.B("design:type",Object)],s_.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"active",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"hasNoData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"enabled",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"expanded",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"readyToResume",void 0);
_.x([_.A(),_.B("design:type",Object)],s_.prototype,"isDisabled",void 0);_.x([_.A(),_.B("design:type",Object)],s_.prototype,"externalPlaylistData",void 0);_.x([_.A(),_.B("design:type",Array)],s_.prototype,"premiumBadges",void 0);_.x([_.A(),_.B("design:type",Object)],s_.prototype,"toastData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"watchWhile",void 0);_.x([_.A(),_.B("design:type",Boolean)],s_.prototype,"premiumBranding",void 0);
_.x([_.A(),_.B("design:type",Object)],s_.prototype,"playerState",void 0);_.x([_.A(),_.B("design:type",Boolean)],s_.prototype,"continueWatching",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],s_.prototype,"verticalAttachment",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],s_.prototype,"horizontalAttachment",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"isAnimatingFade",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"isAnimatingSnap",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"isAnimatingExpand",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"isDragging",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"playerHidden",void 0);
_.x([_.A({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.B("design:type",Object)],s_.prototype,"playlistData",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.B("design:type",Object)],s_.prototype,"hasPlaylistData",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"closed",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],s_.prototype,"expandedClosed",void 0);
_.x([_.A({selector:_.IDX}),_.B("design:type",Boolean)],s_.prototype,"isSingleOptionSurveyActive",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.tp}),_.B("design:type",Boolean)],s_.prototype,"isWatchPage",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("watchWhile"),_.B("design:type",Object),_.B("design:paramtypes",[])],s_.prototype,"showInfoBar",null);_.x([_.W("premiumBadges","showInfoBar"),_.B("design:type",Object),_.B("design:paramtypes",[])],s_.prototype,"showOverlayPremiumBadges",null);
_.x([_.A(),_.B("design:type",Object)],s_.prototype,"watchResponse",void 0);_.x([_.A(),_.B("design:type",Object)],s_.prototype,"miniplayerRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],s_.prototype,"playabilityStatus",void 0);_.x([_.A(),_.B("design:type",Object)],s_.prototype,"playerVe",void 0);_.x([_.A(),_.B("design:type",Object)],s_.prototype,"expandVe",void 0);_.x([_.A(),_.B("design:type",Object)],s_.prototype,"closeVe",void 0);
_.x([_.A(),_.B("design:type",Object)],s_.prototype,"readyToResumeCloseVe",void 0);_.x([_.A(),_.B("design:type",_.Nu)],s_.prototype,"readyToResumeVe",void 0);_.x([_.A(),_.B("design:type",_.Nu)],s_.prototype,"resizeVe",void 0);_.x([_.A(),_.B("design:type",_.Nu)],s_.prototype,"repositionVe",void 0);_.x([_.SP("hasPlaylistData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s_.prototype,"hasPlaylistDataChanged",null);
_.x([_.SP("playerVe"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s_.prototype,"onPlayerVeChange",null);_.x([_.SP("premiumBranding"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s_.prototype,"premiumBrandingChanged",null);_.x([_.SP("readyToResumeVe"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s_.prototype,"readyToResumeVeChanged",null);
_.x([_.SP("isDisabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s_.prototype,"onIsDisabledChanged",null);_.x([_.W("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.B("design:type",Object),_.B("design:paramtypes",[])],s_.prototype,"miniplayerSubtitle",null);_.x([_.W("data.miniplayerTitle","externalPlaylistData"),_.B("design:type",Object),_.B("design:paramtypes",[])],s_.prototype,"miniplayerTitle",null);
_.x([_.W("externalPlaylistData","continueWatching"),_.B("design:type",Object),_.B("design:paramtypes",[])],s_.prototype,"playlistIndexMessage",null);_.x([_.A({reflectToAttribute:!0}),_.W("playabilityStatus"),_.B("design:type",Object),_.B("design:paramtypes",[])],s_.prototype,"showErrorScreen",null);_.x([_.A({reflectToAttribute:!0}),_.W("watchWhile"),_.B("design:type",Object),_.B("design:paramtypes",[])],s_.prototype,"watchWhileHidden",null);
_.M("ytd_miniplayer_to_wiz")||_.C(s_,"ytd-miniplayer",function(){if(tbK===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
K.content.insertBefore(Y9t().content.cloneNode(!0),K.content.firstChild);K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);tbK=K}K=tbK;return K},{mode:2});var lIy;var kx=function(){var K=_.q.apply(this,arguments)||this;K.useListItemStyles=_.M("web_list_item_style_for_menu_items");K.systemIcons=_.M("kevlar_system_icons");return K};
_.O(kx,_.q);_.V=kx.prototype;_.V.ready=function(){this.hostElement.addEventListener("tap",_.Dm(this,this.onEndpointTapExtra))};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){var K;(K=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||K.focus()};
_.V.onEndpointTapExtra=function(K){_.Zp(this.hostElement,"iron-activate");var d=this.data.navigationEndpoint;d&&_.P(d,_.buO)&&(K.stopPropagation(),_.fd(this.hostElement,[d],this.hostElement))};
_.V.computeIcon=function(K){return K&&K.iconType?_.Hv(K.iconType):""};
_.V.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.forceUpdateStylesOnLegacyBrowsers=function(){_.M("kevlar_legacy_browsers")&&_.f8(this.hostElement)};
kx.prototype.forceUpdateStylesOnLegacyBrowsers=kx.prototype.forceUpdateStylesOnLegacyBrowsers;kx.prototype.onFocus=kx.prototype.onFocus;_.x([_.l(_.r8),_.B("design:type",Object)],kx.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(_.DBs.YtConditionalRendererBehavior),_.B("design:type",Object)],kx.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.l(_.SY.YtEndpointBehavior),_.B("design:type",Object)],kx.prototype,"ytEndpointBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],kx.prototype,"data",void 0);_.x([_.A({computed:"computeIcon(data.icon)",value:""}),_.B("design:type",String)],kx.prototype,"icon",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],kx.prototype,"useIcons",void 0);_.x([_.A({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Boolean)],kx.prototype,"hasSeparator",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],kx.prototype,"useListItemStyles",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],kx.prototype,"systemIcons",void 0);_.x([_.VV("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kx.prototype,"onFocus",null);_.x([_.SP("useIcons","hasSeparator"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kx.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.C(kx,"ytd-menu-navigation-item-renderer",function(){if(lIy===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);lIy=K}K=lIy;return K},{mode:1});var WPz;var G8i=_.rB(_.iB("DOWNLOAD",{},"Download")),Aj5=_.rB(_.iB("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),TsE=_.rB(_.iB("RETRY",{},"Retry")),rjc=_.rB(_.iB("PAUSE_DOWNLOADING",{},"Pause downloading")),q97=_.rB(_.iB("RESUME_DOWNLOAD",{},"Resume download")),wI=function(){var K=_.q.apply(this,arguments)||this;K.primaryText=G8i;K.primaryIconType="OFFLINE_DOWNLOAD";K.hasSecondaryContent=!1;K.hasSeparator=!1;K.transferState="TRANSFER_STATE_UNKNOWN";K.isVideoDeletedByUser=!1;K.isHidden=!1;K.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return K};
_.O(wI,_.q);_.V=wI.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){this.primaryEntry.focus()};
_.V.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.V.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.V.getRemoveAction=function(){return"ACTION_REMOVE"};
_.V.sendOfflineAction=function(K){var d=this.data.serviceEndpoint;if(d){var f=_.P(d,_.DS);f&&K&&(f.action=K);this.ytComponentBehavior.resolveCommand(d)}};
_.V.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=G8i,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=G8i;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=TsE;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Aj5;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=q97;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Aj5;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
rjc;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Aj5;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Aj5;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=G8i,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.V.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.V.isSecondaryEntryHidden=function(K,d){return K?!0:!d};
_.V.computeHasSeparator=function(){var K;return!((K=this.data)==null||!K.hasSeparator)};
wI.prototype.showHideButton=wI.prototype.showHideButton;wI.prototype.onTransferStateChange=wI.prototype.onTransferStateChange;wI.prototype.onFocus=wI.prototype.onFocus;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],wI.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],wI.prototype,"ytComponentBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],wI.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],wI.prototype,"primaryText",void 0);_.x([_.A(),_.B("design:type",String)],wI.prototype,"primaryIconType",void 0);_.x([_.A(),_.B("design:type",String)],wI.prototype,"primaryAction",void 0);_.x([_.A(),_.B("design:type",Object)],wI.prototype,"secondaryText",void 0);_.x([_.A(),_.B("design:type",String)],wI.prototype,"secondaryIconType",void 0);
_.x([_.A(),_.B("design:type",String)],wI.prototype,"secondaryAction",void 0);_.x([_.A(),_.B("design:type",Object)],wI.prototype,"hasSecondaryContent",void 0);_.x([_.A({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Object)],wI.prototype,"hasSeparator",void 0);_.x([_.A({selector:_.oO,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",String)],wI.prototype,"transferState",void 0);
_.x([_.A({selector:_.lDo,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",Object)],wI.prototype,"isVideoDeletedByUser",void 0);_.x([_.A(),_.B("design:type",Object)],wI.prototype,"isHidden",void 0);_.x([_.A({selector:_.oHu,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",Object)],wI.prototype,"offlineabilityState",void 0);_.x([_.n8("#primary-entry"),_.B("design:type",Object)],wI.prototype,"primaryEntry",void 0);
_.x([_.VV("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wI.prototype,"onFocus",null);_.x([_.an("transferState","isVideoDeletedByUser"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wI.prototype,"onTransferStateChange",null);_.x([_.an("offlineabilityState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wI.prototype,"showHideButton",null);
_.C(wI,"ytd-menu-service-item-download-renderer",function(){if(WPz===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);WPz=K}K=WPz;return K},{mode:1});var QCl;var Zy=function(){var K=_.q.apply(this,arguments)||this;K.useIcons=!1;K.systemIcons=_.M("kevlar_system_icons");K.useListItemStyles=_.M("web_list_item_style_for_menu_items");return K};
_.O(Zy,_.q);_.V=Zy.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){var K;(K=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||K.focus()};
_.V.onTap=function(){_.p1(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var K=this.data.serviceEndpoint,d=this.data.command;if(K){var f,H=(f=this.data)==null?void 0:f.trackingParams;f=!!_.P(K,_.m0B);H&&f&&_.j3().dispatch(_.es({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:H}}));this.ytComponentBehavior.resolveCommand(K)||_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}})}d&&(this.ytComponentBehavior.resolveCommand(d)||_.fd(this.hostElement,
[d],this.hostElement))};
_.V.computeIcon=function(K){return K&&K.iconType?_.Hv(K.iconType):""};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.computeHasSeparator=function(){var K;return!((K=this.data)==null||!K.hasSeparator)};
_.V.forceUpdateStylesOnLegacyBrowsers=function(){_.M("kevlar_legacy_browsers")&&_.f8(this.hostElement)};
_.V.computeIsSelected=function(){var K;return!((K=this.data)==null||!K.isSelected)};
Zy.prototype.forceUpdateStylesOnLegacyBrowsers=Zy.prototype.forceUpdateStylesOnLegacyBrowsers;Zy.prototype.onTap=Zy.prototype.onTap;Zy.prototype.onFocus=Zy.prototype.onFocus;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],Zy.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Zy.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.DBs.YtConditionalRendererBehavior),_.B("design:type",Object)],Zy.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Zy.prototype,"data",void 0);_.x([_.A({computed:"computeIcon(data.icon)",value:""}),_.B("design:type",String)],Zy.prototype,"icon",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zy.prototype,"useIcons",void 0);
_.x([_.A({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Zy.prototype,"hasSeparator",void 0);_.x([_.A({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Zy.prototype,"isSelected",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zy.prototype,"systemIcons",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Zy.prototype,"useListItemStyles",void 0);
_.x([_.VV("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zy.prototype,"onFocus",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Zy.prototype,"onTap",null);_.x([_.SP("useIcons","hasSeparator"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zy.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.C(Zy,"ytd-menu-service-item-renderer",function(){if(QCl===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);QCl=K}K=QCl;return K},{mode:2});var jCi;var em=function(){return _.q.apply(this,arguments)||this};
_.O(em,_.q);_.V=em.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onDataChanged=function(){var K=this;_.jW(this,function(){K.postbox.openDialog();K.focus();_.Zp(K.hostElement,"yt-refit")})};
_.V.focus=function(){this.postbox.focus()};
_.V.closePopup=function(){_.ev(this.hostElement,"yt-close-popup-action")};
_.V.onYtCommentboxDismiss=function(){this.closePopup()};
em.prototype.onYtCommentboxDismiss=em.prototype.onYtCommentboxDismiss;em.prototype.onDataChanged=em.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],em.prototype,"data",void 0);_.x([_.A({value:function(){return _.iB("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],em.prototype,"closeButtonAriaLabel",void 0);_.x([_.n8("#postbox"),_.B("design:type",Object)],em.prototype,"postbox",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],em.prototype,"onDataChanged",null);_.x([_.VV("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],em.prototype,"onYtCommentboxDismiss",null);
em=_.x([_.Q({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],em);
_.C(em,"ytd-backstage-post-dialog-popup-renderer",function(){if(jCi!==void 0)return jCi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return jCi=K},{mode:1});var Cml;var p6=function(){return _.q.apply(this,arguments)||this};
_.O(p6,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],p6.prototype,"data",void 0);p6=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],p6);
_.C(p6,"ytd-sender-id-section-renderer",function(){if(Cml!==void 0)return Cml;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
return Cml=K},{mode:1});var xzw;var LPK;var BsE;var Kb=function(){return _.q.apply(this,arguments)||this};
_.O(Kb,_.q);Kb.prototype.closePopup=function(){_.ev(this.hostElement,"yt-close-popup-action")};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Kb.prototype,"data",void 0);Kb=_.x([_.N7({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Kb);
_.C(Kb,"yt-community-post-section-renderer",function(){if(BsE===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;LPK===void 0&&(LPK=document.createElement("template"));var H=LPK;f.call(d,H.content.cloneNode(!0),K.content.firstChild);BsE=K}K=BsE;return K},{mode:2});var Jjw;var sCi;var k8l;var wnw;var ZIK;var eLi;var dM=function(){return _.q.apply(this,arguments)||this};
_.O(dM,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],dM.prototype,"data",void 0);dM=_.x([_.N7({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],dM);
_.C(dM,"yt-share-start-time-with-context-renderer",function(){if(eLi===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;ZIK===void 0&&(ZIK=document.createElement("template"));var H=ZIK;f.call(d,H.content.cloneNode(!0),K.content.firstChild);eLi=K}K=eLi;return K},{mode:2});var fb=function(){return _.q.apply(this,arguments)||this};
_.O(fb,_.q);fb.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],fb.prototype,"data",void 0);fb=_.x([_.N7({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],fb);
_.C(fb,"yt-share-panel-title-v15-renderer",function(){if(wnw===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;k8l===void 0&&(k8l=document.createElement("template"));var H=k8l;f.call(d,H.content.cloneNode(!0),K.content.firstChild);wnw=K}K=wnw;return K},{mode:2});var Hq=function(){return _.q.apply(this,arguments)||this};
_.O(Hq,_.q);Hq.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Hq.prototype,"data",void 0);Hq=_.x([_.N7({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Hq);
_.C(Hq,"yt-share-panel-header-renderer",function(){if(sCi===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Jjw===void 0&&(Jjw=document.createElement("template"));var H=Jjw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);sCi=K}K=sCi;return K},{mode:2});var pnU;var KZZ;var Dj=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-open-popup-action":"onOpen"};return K};
_.O(Dj,_.q);_.V=Dj.prototype;_.V.attached=function(){this.onOpen()};
_.V.updateTimeSecs=function(K){this.currentTimeSecs=K};
_.V.computeTimeString=function(K){K=K.toString();var d=Math.floor(Number(K)/3600),f=Math.floor(Number(K)%3600%60);return(d>0?d+":":"")+_.LO(Math.floor(Number(K)%3600/60),d>0?2:1)+":"+_.LO(f,2)};
_.V.computeTimeStringA11y=function(K){K=_.GIX({seconds:K});var d=K.hours===void 0?0:K.hours,f=K.minutes===void 0?0:K.minutes,H=K.seconds===void 0?0:K.seconds;K=[];if(d>0){var D=e8Z().format({hours:d});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.bA)||d>9999)D=D.replace(d.toString(),_.AQN(d)),_.bA==="km"&&(D=D.replace(".",","));K.push(D)}f>0&&K.push(e8Z().format({minutes:f}));H>0&&K.push(e8Z().format({seconds:H}));d="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");f=_.bA==
"am"?"{0}\u1363 ":_.bA=="fa"?"{0}\u060c\u200f ":_.bA=="my"?"{0} - ":_.bA=="ne"?"{0},":_.bA=="th"?"{0} ":_.bA=="ur"?"{0}\u060c ":_.bA=="ar"||_.bA=="ar-XB"?"{0} \u0648":_.bA=="ja"||_.bA=="zh-CN"||_.bA=="zh-HK"||_.bA=="zh-TW"?"{0}\u3001":"{0}, ";H=_.bA=="am"?"\u1363 ":_.bA=="fa"?"\u060c\u200f ":_.bA=="my"?" - ":_.bA=="th"?" ":_.bA=="ur"?"\u060c ":_.bA=="ar"||_.bA=="ar-XB"?" \u0648":_.bA=="ja"||_.bA=="zh-CN"||_.bA=="zh-HK"||_.bA=="zh-TW"?"\u3001":", ";D=_.bA=="am"?" \u12a5\u1293 {0}":_.bA=="as"?" \u0986\u09f0\u09c1 {0}":
_.bA=="az"?" v\u0259 {0}":_.bA=="bn"?" \u098f\u09ac\u0982 {0}":_.bA=="cs"?" a\u00a0{0}":_.bA=="de"?" und {0}":_.bA=="el"?" \u03ba\u03b1\u03b9 {0}":_.bA=="eu"?" eta {0}":_.bA=="fa"?"\u060c \u0648 {0}":_.bA=="fil"?", at {0}":_.bA=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.bA=="hi"?", \u0914\u0930 {0}":_.bA=="hu"?" \u00e9s {0}":_.bA=="hy"?" \u0587 {0}":_.bA=="id"?", dan {0}":_.bA=="iw"?" \u05d5-{0}":_.bA=="ja"?"\u3001{0}":_.bA=="ka"?" \u10d3\u10d0 {0}":_.bA=="km"?" \u1793\u17b7\u1784 {0}":_.bA=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.bA=="ko"?" \ubc0f {0}":_.bA=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.bA=="lt"?" ir {0}":_.bA=="lv"?" un {0}":_.bA=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.bA=="mr"?" \u0906\u0923\u093f {0}":_.bA=="ms"?" dan {0}":_.bA=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.bA=="ne"?" \u0930 {0}":_.bA=="or"?", \u0b13 {0}":_.bA=="pa"?" \u0a05\u0a24\u0a47 {0}":_.bA=="ro"?" \u0219i {0}":_.bA=="si"?", \u0dc3\u0dc4 {0}":_.bA=="sk"?" a {0}":_.bA=="sl"?" in {0}":_.bA=="sq"?" dhe {0}":_.bA=="sv"?" och {0}":
_.bA=="sw"?" na {0}":_.bA=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.bA=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.bA=="th"?" \u0e41\u0e25\u0e30{0}":_.bA=="tr"?" ve {0}":_.bA=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.bA=="uz"?" va {0}":_.bA=="vi"?" v\u00e0 {0}":_.bA=="zh-HK"?"\u53ca{0}":_.bA=="zu"?", ne-{0}":_.bA=="af"||_.bA=="nl"?" en {0}":_.bA=="ar"||_.bA=="ar-XB"?" \u0648{0}":_.bA=="be"||_.bA=="uk"?" \u0456 {0}":_.bA=="en-GB"||_.bA=="en-IN"?" and {0}":_.bA=="en"||_.bA=="en-XA"?
", and {0}":_.bA=="et"||_.bA=="fi"?" ja {0}":_.bA=="fr"||_.bA=="fr-CA"?" et {0}":_.bA=="zh-CN"||_.bA=="zh-TW"?"\u548c{0}":_.bA=="da"||_.bA=="is"||_.bA=="no"?" og {0}":_.bA=="es"||_.bA=="es-419"||_.bA=="es-US"?" y {0}":_.bA=="kk"||_.bA=="lo"||_.bA=="mn"?", {0}":_.bA=="bg"||_.bA=="mk"||_.bA=="ru"||_.bA=="sr"?" \u0438 {0}":_.bA=="gl"||_.bA=="it"||_.bA=="pt-BR"||_.bA=="pt-PT"?" e {0}":" i {0}";var S=_.bA=="am"?"{0} \u12a5\u1293 {1}":_.bA=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.bA=="az"?"{0} v\u0259 {1}":
_.bA=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.bA=="de"?"{0} und {1}":_.bA=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.bA=="eu"?"{0} eta {1}":_.bA=="fa"?"{0} \u0648 {1}":_.bA=="fil"?"{0} at {1}":_.bA=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.bA=="hi"?"{0} \u0914\u0930 {1}":_.bA=="hu"?"{0} \u00e9s {1}":_.bA=="hy"?"{0} \u0587 {1}":_.bA=="iw"?"{0} \u05d5-{1}":_.bA=="ja"?"{0}\u3001{1}":_.bA=="ka"?"{0} \u10d3\u10d0 {1}":_.bA=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.bA=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.bA=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.bA=="ko"?"{0} \ubc0f {1}":_.bA=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.bA=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.bA=="lt"?"{0} ir {1}":_.bA=="lv"?"{0} un {1}":_.bA=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.bA=="mn"?"{0}, {1}":_.bA=="mr"?"{0} \u0906\u0923\u093f {1}":_.bA=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.bA=="ne"?"{0} \u0930 {1}":_.bA=="or"?"{0} \u0b13 {1}":_.bA=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.bA=="ro"?"{0} \u0219i {1}":_.bA==
"si"?"{0} \u0dc3\u0dc4 {1}":_.bA=="sl"?"{0} in {1}":_.bA=="sq"?"{0} dhe {1}":_.bA=="sv"?"{0} och {1}":_.bA=="sw"?"{0} na {1}":_.bA=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.bA=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.bA=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.bA=="tr"?"{0} ve {1}":_.bA=="ur"?"{0} \u0627\u0648\u0631 {1}":_.bA=="uz"?"{0} va {1}":_.bA=="vi"?"{0} v\u00e0 {1}":_.bA=="zh-HK"?"{0}\u53ca{1}":_.bA=="zu"?"{0} ne-{1}":_.bA=="af"||_.bA=="nl"?"{0} en {1}":_.bA=="ar"||_.bA==
"ar-XB"?"{0} \u0648{1}":_.bA=="be"||_.bA=="uk"?"{0} \u0456 {1}":_.bA=="cs"||_.bA=="sk"?"{0} a\u00a0{1}":_.bA=="et"||_.bA=="fi"?"{0} ja {1}":_.bA=="fr"||_.bA=="fr-CA"?"{0} et {1}":_.bA=="id"||_.bA=="ms"?"{0} dan {1}":_.bA=="zh-CN"||_.bA=="zh-TW"?"{0}\u548c{1}":_.bA=="da"||_.bA=="is"||_.bA=="no"?"{0} og {1}":_.bA=="es"||_.bA=="es-419"||_.bA=="es-US"?"{0} y {1}":_.bA=="bg"||_.bA=="mk"||_.bA=="ru"||_.bA=="sr"?"{0} \u0438 {1}":_.bA=="en"||_.bA=="en-GB"||_.bA=="en-IN"||_.bA=="en-XA"?"{0} and {1}":_.bA==
"gl"||_.bA=="it"||_.bA=="pt-BR"||_.bA=="pt-PT"?"{0} e {1}":"{0} i {1}";_.bA==="sq"?(D=D.replace("dhe","e"),S=S.replace("dhe","e")):_.bA==="th"?(H=H.replace("{0}"," {0}"),S=S.replace("{0}","{0} "),S=S.replace("{1}"," {1}")):_.bA==="ne"?H=",":_.bA==="zh-CN"?H="":d.includes(_.bA)&&(H=" ");return K.length<2?K.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(_.bA)?K.length===2?
S.replace("{0}",K[0]).replace("{1}",K[1]):f.replace("{0}",K[0])+K.slice(1,-1).join(H)+D.replace("{0}",K[K.length-1]):K.join(H)};
_.V.getTimeParam=function(){return oZi(this.timeString)};
_.V.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var K={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},d;_.f5(_.cv(),(d=this.data)==null?void 0:d.trackingParams,K,7)};
_.V.onChangeStartAtTimestamp=function(){for(var K=this.startAtTimestamp.value.split(":"),d=0,f=1,H=K.length-1;H>=0;H--)d+=Number(K[H])*f,f*=60;this.updateTimeSecs(d);this.setTimestamp()};
_.V.onOpen=function(){var K=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var d=_.xP();d?d.getPlayerPromise().then(function(f){f=f.getCurrentTime();K.updateTimeSecs(f)}):w6E()&&this.updateTimeSecs(w6E())};
_.V.setTimestamp=function(){var K=Math.floor(this.currentTimeSecs);_.ev(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!K,timestamp:K||""}])};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Dj.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Dj.prototype,"data",void 0);_.x([_.A({value:!1,notify:!0}),_.B("design:type",Boolean)],Dj.prototype,"isStartAtChecked",void 0);_.x([_.A(),_.B("design:type",Number)],Dj.prototype,"currentTimeSecs",void 0);
_.x([_.A({computed:"computeTimeString(currentTimeSecs)"}),_.B("design:type",String)],Dj.prototype,"timeString",void 0);_.x([_.A({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.B("design:type",String)],Dj.prototype,"timeStringA11y",void 0);_.x([_.n8("#start-at-timestamp"),_.B("design:type",Object)],Dj.prototype,"startAtTimestamp",void 0);Dj=_.x([_.N7({is:"yt-start-at-renderer",disableElementRegistration:!0})],Dj);
_.C(Dj,"yt-start-at-renderer",function(){if(KZZ===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;pnU===void 0&&(pnU=document.createElement("template"));var H=pnU;f.call(d,H.content.cloneNode(!0),K.content.firstChild);KZZ=K}K=KZZ;return K},{mode:2});var dr5;var fHy;var HLZ=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),DrK=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),VYU=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var SQ5={};SQ5.YtBindingExpressionsBehavior={identity:_.QO,msg:function(K,d){d=d===void 0?{}:d;return _.iB(K,d,K)},
msgPlural:function(K,d){return _.cG(K,d)},
getMusicIconFromType:function(K){if(_.M("music_web_enable_icon_wil"))K=_.Hv(K);else if(DrK.has(K))K="yt-sys-icons:"+DrK.get(K);else{var d=HLZ.get(K)||_.Hv(K).split(":")[1];d=_.oXX(d);var f;K=((f=VYU.get(K))!=null?f:"yt-sys-icons:")+d}return K}};var yTw;var nLP;var iLU;var cTw=document.head,uDU=cTw.appendChild,aHS;if(iLU===void 0){var IHP=document.createElement("template");_.Y(IHP,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');iLU=IHP}aHS=iLU;uDU.call(cTw,aHS.content);var Vo=function(){var K=_.q.apply(this,arguments)||this;K.screenLayer=7;return K};
_.O(Vo,_.q);Vo.prototype.getScreenLayer=function(){return this.screenLayer};
Vo.prototype.onTap=function(K){K&&K.detail&&(K.detail.x||K.detail.y)&&_.E(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.dN(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(K=this.getScreenLayer(),_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:K}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.x$.Object.defineProperties(Vo.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()}}});
Vo.prototype.onTap=Vo.prototype.onTap;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Vo.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Vo.prototype,"data",void 0);_.x([_.W("data.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],Vo.prototype,"title",null);
_.x([_.W("data.serviceName"),_.B("design:type",String),_.B("design:paramtypes",[])],Vo.prototype,"icon",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Vo.prototype,"onTap",null);Vo=_.x([_.N7({is:"yt-share-target-renderer",disableElementRegistration:!0})],Vo);
_.C(Vo,"yt-share-target-renderer",function(){if(nLP===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;yTw===void 0&&(yTw=document.createElement("template"));var H=yTw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);nLP=K}K=nLP;return K},{mode:2});var UrZ;var R4l;var Sk=function(){var K=_.q.apply(this,arguments)||this;K.SHARE_TARGET_WIDTH=70;K.SHARE_TARGET_MARGIN_RIGHT=8;K.PAGE_SCROLL_SPEED=9;K.actionMap={"yt-share-panel-reset-action":"onReset_"};return K};
_.O(Sk,_.q);_.V=Sk.prototype;_.V.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.V.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.E(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.E(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.V.onReset_=function(){if(_.E(this.hostElement).querySelector("#list")){var K=_.E(this.hostElement).querySelector("#list");var d=_.E(this.hostElement).querySelector("#list");var f=d.offsetLeft,H=d.offsetParent;H||_.jXf(d)!="fixed"||(H=_.oL(d).documentElement);if(H){if(_.w7&&!_.eH(58)){var D=_.wu9(H);f+=D.left}else Number(_.vr5)>=8&&!(Number(_.vr5)>=9)&&(D=_.wu9(H),f-=D.left);d=_.sXs(H)?H.clientWidth-(f+d.offsetWidth):f}else d=f;wP7(K,d);this.updateScrollButtons_()}};
_.V.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.V.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.V.onScrollWheel_=function(K){K.stopPropagation();K.preventDefault();var d=kCU(_.E(this.hostElement).querySelector("#list"));K=Math.abs(K.deltaX)>Math.abs(K.deltaY)?K.deltaX:K.deltaY;wP7(_.E(this.hostElement).querySelector("#list"),d+K);this.updateScrollButtons_()};
_.V.smoothScrollByOnePage_=function(K){var d=_.E(this.hostElement).querySelector("#list"),f=(Math.floor(d.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,H=kCU(d),D=f*(K?1:-1),S=this.PAGE_SCROLL_SPEED,n=this.updateScrollButtons_.bind(this),u=0,a;(function F(){u+=S;a=u/f*2;wP7(d,H+D*(a<1?a*a:-a*a+4*a-2));u<f?window.requestAnimationFrame(F):n()})()};
_.V.updateScrollButtons_=function(){var K=kCU(_.E(this.hostElement).querySelector("#list")),d=_.E(this.hostElement).querySelector("#list").scrollWidth-_.E(this.hostElement).querySelector("#list").clientWidth;_.E(this.hostElement).querySelector("#scroll-button-back").hidden=K<=0;_.E(this.hostElement).querySelector("#scroll-button-forward").hidden=K>=d};
Sk.prototype.onScrollWheel_=Sk.prototype.onScrollWheel_;Sk.prototype.onDataChanged_=Sk.prototype.onDataChanged_;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Sk.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(SQ5.YtBindingExpressionsBehavior),_.B("design:type",Object)],Sk.prototype,"ytBindingExpressionsBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Sk.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sk.prototype,"onDataChanged_",null);_.x([_.VV("wheel"),_.B("design:type",Function),_.B("design:paramtypes",[WheelEvent]),_.B("design:returntype")],Sk.prototype,"onScrollWheel_",null);
Sk=_.x([_.N7({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Sk);
_.C(Sk,"yt-third-party-share-target-section-renderer",function(){if(R4l===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;UrZ===void 0&&(UrZ=document.createElement("template"));var H=UrZ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);R4l=K}K=R4l;return K},{mode:2});var yo=function(){return _.q.apply(this,arguments)||this};
_.O(yo,_.q);yo.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"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],yo.prototype,"data",void 0);yo=_.x([_.N7({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],yo);
_.C(yo,"yt-third-party-network-section-renderer",function(){if(fHy===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;dr5===void 0&&(dr5=document.createElement("template"));var H=dr5;f.call(d,H.content.cloneNode(!0),K.content.firstChild);fHy=K}K=fHy;return K},{mode:2});_.sP(_.C8(function(K){return _.U("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.U("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.U(_.z1,{data:function(){return K.data().firstPartyItems}},{listItemViewModel:_.Op})))},"ig"),"first-party-network-section-view-model",{props:{data:_.rs}});var FZ7=_.Am(["data:image/svg+xml;charset=UTF-8;base64,",""]),nb=function(){var K=_.q.apply(this,arguments)||this;K.screenLayer=7;K.qrCodeEnabled=_.M("web_enable_sharing_qr_code");K.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return K};
_.O(nb,_.q);_.V=nb.prototype;_.V.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.V.attached=function(){this.JSC$17826_scroller&&(this.JSC$17826_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17826_scroller.attached&&typeof this.JSC$17826_scroller.attached==="function"&&this.JSC$17826_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.V.onDataChanged=function(){var K=this,d;(d=this.data)!=null&&d.contents&&(this.hostElement.setAttribute("links-only","true"),_.K8(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.jW(this,function(){_.Zp(K.hostElement,"yt-refit");K.focusSharePanelHeader()}))};
_.V.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.V.handleSetTimestamp=function(K){var d=this.shortUrl();K.isSet&&(d=_.hB(d,"t",K.timestamp));this.maybeRenderQrCode(d)};
_.V.shortUrl=function(){var K,d=(K=this.data)==null?void 0:K.contents;if(d)for(K=0;K<d.length;K++){var f=void 0,H=void 0;if((f=d[K])==null?0:(H=f.thirdPartyNetworkSection)==null?0:H.copyLinkContainer){var D=H=f=void 0;return(D=_.P((f=d[K])==null?void 0:(H=f.thirdPartyNetworkSection)==null?void 0:H.copyLinkContainer,eK5))==null?void 0:D.shortUrl}}};
_.V.maybeRenderQrCode=function(K){var d=this,f,H,D,S,n,u,a,R,F;return _.c(function(z){if(z.nextAddress==1){f=_.E(d.hostElement).querySelector("#qr-code");if(!d.qrCodeEnabled||!K)return f&&(f.style.display="none"),z.return();H=_.TrY(_.eq().resolve(_.DF),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});D=document.createElement("div");return typeof H==="function"?(H(D),z.jumpTo(2)):_.I(z,H,3)}z.nextAddress!=2&&(S=z.yieldResult,S(D));a=(n=D)==null?void 0:(u=n.firstChild)==null?void 0:u.firstChild;
R=document.createElement("img");F=_.g5(FZ7,btoa(a.outerHTML));R.onload=function(){var v={canvas:f,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:R},g=new t7t;mFw(g,K);lxc(g,!1,WhK(g));var N=g.modules,h=Object.assign({},bxt,v);N=structuredClone(N);v=N.length;var m,T=(m=h.canvas)!=null?m:document.createElement("canvas");m=h.cellSize;g=h.logo;var r,J=(r=h.logoSize)!=null?r:Math.floor(v/4);v%2!==J%2&&J++;var L=h.logoPadding,fB=h.backgroundColor;r=v*m;var w=
h.width,yO=0;w&&(yO=h.padding,yO=Math.ceil(yO*r/(w-yO*2)),T.style.width=w+"px",T.style.height=w+"px");T.width!==r+yO*2&&(T.width=r+yO*2);T.height!==r+yO*2&&(T.height=r+yO*2);r=T.getContext("2d");h.autoClear&&r.clearRect(0,0,T.width,T.height);r.fillStyle=fB;r.beginPath();r.roundRect(0,0,T.width,T.height,h.borderRadius);r.fill();r.save();r.translate(yO,yO);if(g)for(T=Math.floor(v-J)/2-L,L=Math.floor(v+J)/2+L,fB=T;fB<L;fB++)for(w=T;w<L;w++)N[fB][w]=!1;for(T=0;T<v;T++)for(L=0;L<v;L++)(T<7&&L<7||T<7&&
L>=v-7||T>=v-7&&L<7)&&(N[T][L]=!1);var FX;T=(FX=h.markerColor)!=null?FX:h.color;A3c(r,0,0,m,T);A3c(r,m*(v-7),0,m,T);A3c(r,0,m*(v-7),m,T);switch(h.cellStyle){case 0:FX=N;N=FX.length;T=h.cellSize;r.beginPath();for(L=0;L<N;L++)for(fB=0;fB<N;fB++)FX[L][fB]&&r.rect(L*T,fB*T,T,T);r.fillStyle=h.color;r.fill();break;case 1:FX=N;N=FX.length;T=h.cellSize;L=T*h.relativeCircleSize;r.fillStyle=h.color;r.beginPath();for(h=0;h<N;h++)for(fB=0;fB<N;fB++)FX[h][fB]&&(r.beginPath(),r.ellipse((h+.5)*T,(fB+.5)*T,L/2,L/
2,0,0,2*Math.PI),r.fill());r.fill();break;case 2:FX=N;N=FX.length;T=h.cellSize;r.fillStyle=h.color;h=[[1,1],[-1,1],[-1,-1],[1,-1]];r.beginPath();for(L=0;L<N;L++)for(fB=0;fB<N;fB++)if(FX[L][fB])r.roundRect(L*T,fB*T,T,T,T/2),L+1<N&&FX[L+1][fB]&&r.rect(L*T+T/2,fB*T,T,T),fB+1<N&&FX[L][fB+1]&&r.rect(L*T,fB*T+T/2,T,T);else{w=L*T+T/2;yO=fB*T+T/2;for(var NJ=0;NJ<4;NJ++){var $z=_.y(h[NJ]),hN=$z.next().value;$z=$z.next().value;L+hN>=0&&L+hN<N&&fB+$z>=0&&fB+$z<N&&FX[L+hN][fB]&&FX[L][fB+$z]&&FX[L+hN][fB+$z]&&
(hN=NJ*Math.PI/2,$z=T/2,r.moveTo(w+$z*Math.cos(hN),yO+$z*Math.sin(hN)),r.arc(w,yO,T/2,hN,hN+Math.PI/2,!1),r.lineTo(w+$z*(Math.cos(hN)-Math.sin(hN)),yO+$z*(Math.cos(hN)+Math.sin(hN))),r.lineTo(w+$z*Math.cos(hN),yO+$z*Math.sin(hN)))}}r.fill()}g&&r.drawImage(g,(v-J)*m/2,(v-J)*m/2,J*m,J*m);r.restore();f.style.removeProperty("display")};
R.src=_.Io(F);_.iQ(z)})};
_.V.hasCommunityPostRenderer=function(){var K,d,f,H;return!!((K=this.data)==null?0:(d=K.header)==null?0:(f=d.sharePanelHeaderRenderer)==null?0:(H=f.communityPost)==null?0:H.communityPostSectionRenderer)};
_.V.onTapClose=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.V.getScreenLayer=function(){return this.screenLayer};
_.V.logSharePanelPage=function(){if(!_.M("enable_share_panel_navigation_logging_fix_on_web")){var K;if((K=this.data)!=null&&K.trackingParams){K=this.data.trackingParams;var d=this.parentClickTrackingParams;d=d?_.RG(d):void 0;var f=_.cv();_.eA(f,21760,d,{layer:7,parentLayer:0});f.graftServerVe(K,void 0,7);_.j3().dispatch(_.es({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
nb.prototype.onDataChanged=nb.prototype.onDataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],nb.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],nb.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],nb.prototype,"data",void 0);_.x([_.A({value:_.iB("SBOX_INAPPROPRIATE_CANCEL")}),_.B("design:type",String)],nb.prototype,"closeButtonAriaLabel",void 0);_.x([_.n8("yt-share-panel-header-renderer"),_.B("design:type",HTMLElement)],nb.prototype,"header",void 0);_.x([_.A({selector:function(K){return K.share.parentClickTrackingParams}}),
_.B("design:type",String)],nb.prototype,"parentClickTrackingParams",void 0);_.x([_.A(),_.B("design:type",Object)],nb.prototype,"qrCodeEnabled",void 0);_.x([_.n8("#scroller"),_.B("design:type",Object)],nb.prototype,"JSC$17826_scroller",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nb.prototype,"onDataChanged",null);nb=_.x([_.Q({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],nb);
_.C(nb,"ytd-unified-share-panel-renderer",function(){if(xzw!==void 0)return xzw;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return xzw=K},{mode:1});var z4Z;var iD=function(){var K=_.q.apply(this,arguments)||this;K.modernModal=_.M("kevlar_sign_in_modal_modernization");return K};
_.O(iD,_.q);iD.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
iD.prototype.computeShouldHideOldButtons=function(){var K;return!((K=this.data)==null?0:K.button)};
_.x$.Object.defineProperties(iD.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var K,d;if(this.modernModal&&((K=this.data)==null?0:(d=K.button)==null?0:d.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var f,H;return(f=this.data)==null?void 0:(H=f.button)==null?void 0:H.buttonRenderer}}});
_.x([_.A(),_.B("design:type",Object)],iD.prototype,"data",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],iD.prototype,"ytEventForwardingBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],iD.prototype,"modernModal",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iD.prototype,"buttonRendererData",null);
iD=_.x([_.Q({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],iD);
_.C(iD,"ytd-modal-with-title-and-button-renderer",function(){if(z4Z!==void 0)return z4Z;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return z4Z=K},{mode:1});var XUt;var cq=function(){return _.q.apply(this,arguments)||this};
_.O(cq,_.q);cq.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("page-changed",this.page))};
cq.prototype.pageChangedForBinding=cq.prototype.pageChangedForBinding;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],cq.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],cq.prototype,"page",void 0);_.x([_.SP("page"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cq.prototype,"pageChangedForBinding",null);
cq=_.x([_.Q({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],cq);
_.C(cq,"ytd-account-item-section-header-renderer",function(){if(XUt!==void 0)return XUt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return XUt=K},{mode:1});var vLt;var uD=function(){return _.q.apply(this,arguments)||this};
_.O(uD,_.q);uD.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"}}}};
uD.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.lY),_.B("design:type",Object)],uD.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],uD.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!1}),_.B("design:type",Function)],uD.prototype,"onAccountItemTap",void 0);
uD=_.x([_.Q({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],uD);
_.C(uD,"ytd-account-item-section-renderer",function(){if(vLt!==void 0)return vLt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return vLt=K},{mode:1});var MY5;var PFi;var ag=function(){return _.q.apply(this,arguments)||this};
_.O(ag,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ag.prototype,"data",void 0);ag=_.x([_.Q({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],ag);
_.C(ag,"ytd-accounts-dialog-header-renderer",function(){if(PFi!==void 0)return PFi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return PFi=K},{mode:1});var gLK;var Ig=function(){return _.q.apply(this,arguments)||this};
_.O(Ig,_.q);Ig.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ig.prototype,"data",void 0);Ig=_.x([_.Q({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Ig);
_.C(Ig,"ytd-google-account-header-renderer",function(){if(gLK!==void 0)return gLK;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return gLK=K},{mode:1});var UH=function(){return _.q.apply(this,arguments)||this};
_.O(UH,_.q);UH.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"}}}};
UH.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("page-changed",this.page))};
UH.prototype.pageChangedForBinding=UH.prototype.pageChangedForBinding;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],UH.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],UH.prototype,"page",void 0);
_.x([_.SP("page"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UH.prototype,"pageChangedForBinding",null);UH=_.x([_.Q({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],UH);
_.eP()(UH,"ytd-account-section-list-renderer",function(){if(MY5===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);MY5=K}K=MY5;return K},{allowedProps:["data"],
mode:1});var OLE;var Rg=function(){var K=_.q.apply(this,arguments)||this;K.enableHandlesAccountMenuSwitcher=_.M("enable_handles_account_menu_switcher");return K};
_.O(Rg,_.q);Rg.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Rg.prototype.dataChanged=Rg.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Rg.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Rg.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.x([_.n8("#avatar"),_.B("design:type",Object)],Rg.prototype,"avatar",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rg.prototype,"dataChanged",null);Rg=_.x([_.Q({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Rg);
_.eP()(Rg,"ytd-active-account-header-renderer",function(){if(OLE===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);OLE=K}K=OLE;return K},{allowedProps:["data"],
mode:1});var N8K;var YQc;var FU=function(){return _.q.apply(this,arguments)||this};
_.O(FU,_.q);FU.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
FU.prototype.onBackTap=function(){_.Zp(this.hostElement,"yt-menu-back-tapped")};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],FU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],FU.prototype,"data",void 0);FU=_.x([_.Q({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],FU);
_.eP()(FU,"ytd-simple-menu-header-renderer",function(){if(YQc===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);YQc=K}K=YQc;return K},{allowedProps:["data"],
mode:2});var tYP;var zV=function(){return _.q.apply(this,arguments)||this};
_.O(zV,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],zV.prototype,"data",void 0);zV=_.x([_.Q({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],zV);
_.C(zV,"ytd-comment-video-thumbnail-header-renderer",function(){if(tYP!==void 0)return tYP;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return tYP=K},{mode:1});var oLz;var XU=function(){return _.q.apply(this,arguments)||this};
_.O(XU,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],XU.prototype,"data",void 0);XU=_.x([_.Q({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],XU);
_.C(XU,"ytd-abuse-type-selector-renderer",function(){if(oLz!==void 0)return oLz;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return oLz=K},{mode:1});var $r5;var vq=function(){return _.q.apply(this,arguments)||this};
_.O(vq,_.q);vq.prototype.attached=function(){var K=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){K.additionalContextInput.focusTextInput()})};
vq.prototype.handleAdditionalContextChanged=function(){var K=this;_.mx(this,"ytd-report-channel-additional-context-update",function(){K.ytdReduxBehavior.dispatch(_.es({type:"ADDITIONAL_CONTEXT_UPDATED",payload:K.additionalContext}))},300)};
vq.prototype.updateAdditionalContextFromBinding=function(K){this.additionalContext=K.detail.value};
vq.prototype.handleAdditionalContextChanged=vq.prototype.handleAdditionalContextChanged;_.x([_.l(_.ou),_.B("design:type",Object)],vq.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",String)],vq.prototype,"additionalContext",void 0);_.x([_.A({selector:function(K){return K.reportChannelAbuse.additionalContext}}),
_.B("design:type",String)],vq.prototype,"additionalContextRedux",void 0);_.x([_.A(),_.B("design:type",Object)],vq.prototype,"data",void 0);_.x([_.n8("yt-text-input-form-field-renderer"),_.B("design:type",Object)],vq.prototype,"additionalContextInput",void 0);_.x([_.SP("additionalContext"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vq.prototype,"handleAdditionalContextChanged",null);
vq=_.x([_.Q({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],vq);
_.C(vq,"ytd-report-channel-modal-additional-context-renderer",function(){if($r5!==void 0)return $r5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return $r5=K},{mode:1});var ELi;var ML=function(){var K=_.q.apply(this,arguments)||this;K.nextButtonDisabled=null;K.submitEndpoint=null;K.navigationEndpoint=null;K.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return K};
_.O(ML,_.q);_.V=ML.prototype;_.V.computeNextButtonData=function(K,d,f){var H={};d&&(H.navigationEndpoint=d);f&&(H.serviceEndpoint=f);K&&K.buttonRenderer&&_.PR.extend(H,K.buttonRenderer);return H};
_.V.handleReportChannelModalDisableNextButtonAction=function(K){this.setNextButtonIsDisabled(K)};
_.V.handleReportFormEndpointUpdateAction=function(K){this.setNextButtonIsDisabled(!!K.disableSubmitButton);this.resetEndpointData();K.submitEndpoint?this.submitEndpoint=K.submitEndpoint:K.submitNavigationEndpoint&&(this.navigationEndpoint=K.submitNavigationEndpoint)};
_.V.handleSignalActionSubmitForm=function(){var K,d=Object.keys(((K=this.reportChannelAbuseForm)==null?void 0:K.selectedVideoIds)||{}),f;K=((f=this.reportChannelAbuseForm)==null?void 0:f.additionalContext)||"";var H;f=((H=this.reportChannelAbuseForm)==null?void 0:H.impersonatedChannelUrl)||"";var D;if((D=this.data)==null?0:D.submitEndpoint){d={impersonated_channel_url:f,text:K,video_ids:d};var S;_.eq().resolve(_.pQ).resolveCommand((S=this.data)==null?void 0:S.submitEndpoint,{form:Object.assign({},
d,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.V.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.V.onYtServiceRequestError=function(K){this.setNextButtonIsDisabled(!1);_.B9(this.hostElement,K.detail.error.message)};
_.V.setNextButtonIsDisabled=function(K){this.set("data.nextButton.buttonRenderer.isDisabled",K)};
_.V.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
ML.prototype.onYtServiceRequestError=ML.prototype.onYtServiceRequestError;ML.prototype.onYtServiceRequestCompleted=ML.prototype.onYtServiceRequestCompleted;_.x([_.A(),_.B("design:type",Object)],ML.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],ML.prototype,"nextButtonDisabled",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],ML.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ML.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ML.prototype,"submitEndpoint",void 0);_.x([_.A(),_.B("design:type",Object)],ML.prototype,"navigationEndpoint",void 0);_.x([_.A({selector:function(K){return K.reportChannelAbuse}}),
_.B("design:type",Object)],ML.prototype,"reportChannelAbuseForm",void 0);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ML.prototype,"onYtServiceRequestCompleted",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ML.prototype,"onYtServiceRequestError",null);
ML=_.x([_.Q({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],ML);
_.C(ML,"ytd-report-channel-modal-footer-renderer",function(){if(ELi!==void 0)return ELi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ELi=K},{mode:1});var h4c;var Pq=function(){var K=_.q.apply(this,arguments)||this;K.boundOnTapDismissButton=function(){K.closePopup()};
return K};
_.O(Pq,_.q);Pq.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Pq.prototype.handleDataChanged=function(){_.LA(this.hostElement)};
Pq.prototype.closePopup=function(){_.ev(this.hostElement,"yt-close-popup-action")};
Pq.prototype.handleDataChanged=Pq.prototype.handleDataChanged;_.x([_.A(),_.B("design:type",Object)],Pq.prototype,"boundOnTapDismissButton",void 0);_.x([_.A(),_.B("design:type",Object)],Pq.prototype,"data",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pq.prototype,"handleDataChanged",null);Pq=_.x([_.Q({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Pq);
_.C(Pq,"ytd-report-channel-modal-header-renderer",function(){if(h4c!==void 0)return h4c;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return h4c=K},{mode:1});var bLt;var gM=function(){var K=_.q.apply(this,arguments)||this;K.autoValidate=!1;K.invalid=!1;K.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return K};
_.O(gM,_.q);_.V=gM.prototype;_.V.attached=function(){var K=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){K.channelUrlInput.focusTextInput()})};
_.V.disableNextButton=function(K){_.ev(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[K])};
_.V.handleImpersonatedChannelUrlChanged=function(){var K=this;this.disableNextButton(!0);this.invalid=!1;_.mx(this,"ytd-report-channel-impersonated-channel-update",function(){var d=K.impersonatedChannelUrl.trim();K.ytdReduxBehavior.dispatch(_.es({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:d}));var f;((f=K.data)==null?0:f.submitEndpoint)&&d&&_.eq().resolve(_.pQ).resolveCommand(K.data.submitEndpoint,{form:{impersonated_channel_url:d,element:K.hostElement}})},500)};
_.V.handleModifyReportFormCommand=function(K){this.invalid=this.get("modifyReportFormCommand.action",K)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.V.updateInvalidFromBinding=function(K){this.invalid=K.detail.value};
_.V.updateImpersonatedChannelUrlFromBinding=function(K){this.impersonatedChannelUrl=K.detail.value};
gM.prototype.handleImpersonatedChannelUrlChanged=gM.prototype.handleImpersonatedChannelUrlChanged;_.x([_.l(_.ou),_.B("design:type",Object)],gM.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],gM.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gM.prototype,"autoValidate",void 0);_.x([_.A(),_.B("design:type",Object)],gM.prototype,"invalid",void 0);
_.x([_.A(),_.B("design:type",String)],gM.prototype,"impersonatedChannelUrl",void 0);_.x([_.A({selector:function(K){return K.reportChannelAbuse.impersonatedChannelUrl}}),
_.B("design:type",String)],gM.prototype,"impersonatedChannelUrlRedux",void 0);_.x([_.A(),_.B("design:type",Object)],gM.prototype,"data",void 0);_.x([_.n8("#text-input"),_.B("design:type",Object)],gM.prototype,"channelUrlInput",void 0);_.x([_.SP("impersonatedChannelUrl"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gM.prototype,"handleImpersonatedChannelUrlChanged",null);
gM=_.x([_.Q({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],gM);
_.C(gM,"ytd-report-channel-modal-impersonation-renderer",function(){if(bLt!==void 0)return bLt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return bLt=K},{mode:1});var mrc;var lHi;var OH=function(){return _.q.apply(this,arguments)||this};
_.O(OH,_.q);OH.prototype.onCheckboxToggled=function(K){var d,f,H=(f=_.P((d=this.data)==null?void 0:d.video,_.$H))==null?void 0:f.videoId;H&&this.ytdReduxBehavior.dispatch(K.target.checked?_.es({type:"VIDEO_SELECTED",payload:H}):_.es({type:"VIDEO_UNSELECTED",payload:H}))};
OH.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.x$.Object.defineProperties(OH.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var K,d=(K=this.data)==null?void 0:K.video;if(!d)return{};var f;K=(f=_.P(d,_.$H))==null?void 0:f.navigationEndpoint;if(!K)return d;_.P(K==null?void 0:K.commandMetadata,_.B0)&&(_.P(K.commandMetadata,_.B0).ignoreNavigation=!0);return d}}});
_.x([_.A({reflectToAttribute:!0,selector:function(K,d){return d in K.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.B("design:type",Boolean)],OH.prototype,"checked",void 0);_.x([_.A(),_.B("design:type",Object)],OH.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],OH.prototype,"video",null);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.ou),_.B("design:type",Object)],OH.prototype,"ytdReduxBehavior",void 0);OH=_.x([_.Q({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],OH);
_.C(OH,"ytd-selectable-video-renderer",function(){if(lHi!==void 0)return lHi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return lHi=K},{mode:1});var NL=function(){var K=_.q.apply(this,arguments)||this;K.monitorScroll=!0;return K};
_.O(NL,_.q);NL.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],NL.prototype,"data",void 0);NL=_.x([_.Q({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],NL);
_.C(NL,"ytd-selectable-video-list-renderer",function(){if(mrc!==void 0)return mrc;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return mrc=K},{mode:1});var WZ5;_.Na("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Yt=function(){return _.q.apply(this,arguments)||this};
_.O(Yt,_.q);Yt.prototype.onChange=function(K){if(K=_.Qm(K).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.M("kevlar_command_handler_migration_killswitch"))_.fd(this.hostElement,K,this.hostElement);else{K=_.y(K);for(var d=K.next();!d.done;d=K.next())this.ytComponentBehavior.resolveCommand(d.value)}};
Yt.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Yt.prototype.updateDataToggledFromBinding=function(K){this.set("data.toggled",K.detail.value)};
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Yt.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Yt.prototype,"data",void 0);_.x([_.A({computed:"isEnabled(data)"}),_.B("design:type",Boolean)],Yt.prototype,"enabled",void 0);Yt=_.x([_.Q({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Yt);
_.C(Yt,"ytd-toggle-item-renderer",function(){if(WZ5!==void 0)return WZ5;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return WZ5=K},{mode:1});var G4t;var ATK;var T8i;var tx=function(){var K=_.q.apply(this,arguments)||this;K.setVisible=!1;K.boundOnSubmitButtonClick=function(){K.onSubmitButtonClick()};
K.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return K};
_.O(tx,_.q);tx.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}}}}}};
tx.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
tx.prototype.onSubmitButtonClick=function(){var K;((K=this.data)==null?0:K.submitEndpoint)&&!_.M("enable_ytc_refunds_submit_form_signal_action")&&_.dN(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
tx.prototype.handleSignalActionSubmitForm=function(){var K;((K=this.data)==null?0:K.submitEndpoint)&&_.dN(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.x$.Object.defineProperties(tx.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.hiddenByDefault)&&!this.setVisible}}});
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],tx.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],tx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],tx.prototype,"setVisible",void 0);_.x([_.A(),_.B("design:type",Object)],tx.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],tx.prototype,"surveyFeedbackData",void 0);_.x([_.A(),_.B("design:type",Object)],tx.prototype,"boundOnSubmitButtonClick",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data","setVisible"),_.B("design:type",Object),_.B("design:paramtypes",[])],tx.prototype,"visibilityHidden",null);tx=_.x([_.N7({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],tx);
_.C(tx,"yt-flow-footer-renderer",function(){if(T8i===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;ATK===void 0&&(ATK=document.createElement("template"));var H=ATK;f.call(d,H.content.cloneNode(!0),K.content.firstChild);T8i=K}K=T8i;return K},{mode:2});var og=function(){return _.q.apply(this,arguments)||this};
_.O(og,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],og.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],og.prototype,"data",void 0);_.x([_.A({selector:function(K){return K.ypc.surveyFeedbackData}}),
_.B("design:type",Object)],og.prototype,"surveyFeedbackData",void 0);og=_.x([_.Q({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],og);
_.C(og,"ytd-flow-footer-renderer",function(){if(G4t!==void 0)return G4t;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return G4t=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var rTc;var qQc;var $t=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return K};
_.O($t,_.q);_.V=$t.prototype;_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.YP("multiPageMenuSectionItems")}}};
_.V.handleHideEnclosingAction_=function(K){if(this.data&&this.data.items)for(var d=0;d<this.data.items.length;d++){var f=this.data.items[d].notificationRenderer;if(f&&f.notificationId==K.hideEnclosingAction.notificationId){this.splice("data.items",d,1);_.ev(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.V.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.K8(this.hostElement,"hidden",!0)};
_.V.updateMenu_=function(K){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&K&&!K.doNotRefreshInbox){K=this.data.continuations;for(var d=0;d<K.length;d++)if(K[d].invalidationContinuationData){var f=void 0;var H=(f=K[d].invalidationContinuationData)==null?void 0:f.continuation;break}K=_.PR.clone(this.data.continuationUpdateEndpoint||null);K.continuation=H;K.click_tracking_params=this.data.trackingParams;_.dN(this.hostElement,[K])}};
_.V.onServiceRequestCompleted_=function(K,d){if(this.data&&(K=d.actions)){d=0;for(var f=K.length;d<f;d++){var H=_.P(K[d],_.Q1s);if(!H)break;if((H.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||H.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&H.continuationItems&&this.data.items){var D=this.data.items.length-1;this.data.items[D].continuationItemRenderer&&this.splice.apply(this,["data.items",D,1].concat(H.continuationItems))}}}};
$t.prototype.onServiceRequestCompleted_=$t.prototype.onServiceRequestCompleted_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],$t.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],$t.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$t.prototype,"data",void 0);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],$t.prototype,"onServiceRequestCompleted_",null);$t=_.x([_.N7({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],$t);
_.eP()($t,"yt-multi-page-menu-section-renderer",function(){if(qQc===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;rTc===void 0&&(rTc=document.createElement("template"));var H=rTc;f.call(d,H.content.cloneNode(!0),K.content.firstChild);qQc=K}K=qQc;return K},{allowedProps:["data"],
mode:2});var QFZ;var jF5;var EH=function(){return _.q.apply(this,arguments)||this};
_.O(EH,_.q);EH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.x$.Object.defineProperties(EH.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.progress)==null?0:this.data.progress*100}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],EH.prototype,"data",void 0);_.x([_.W("data.progress"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],EH.prototype,"showProgressBar",null);
_.x([_.W("data.progress"),_.B("design:type",Number),_.B("design:paramtypes",[])],EH.prototype,"progress",null);EH=_.x([_.N7({is:"yt-flow-header-renderer",disableElementRegistration:!0})],EH);
_.C(EH,"yt-flow-header-renderer",function(){if(jF5===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;QFZ===void 0&&(QFZ=document.createElement("template"));var H=QFZ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);jF5=K}K=jF5;return K},{mode:2});var CFK;var xrE;var hx=function(){return _.q.apply(this,arguments)||this};
_.O(hx,_.q);hx.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],hx.prototype,"data",void 0);hx=_.x([_.N7({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],hx);
_.C(hx,"yt-post-confirmation-flow-step-renderer",function(){if(xrE===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;CFK===void 0&&(CFK=document.createElement("template"));var H=CFK;f.call(d,H.content.cloneNode(!0),K.content.firstChild);xrE=K}K=xrE;return K},{mode:2});var LZy;var B8l;var bD=function(){return _.q.apply(this,arguments)||this};
_.O(bD,_.q);
bD.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"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],bD.prototype,"data",void 0);bD=_.x([_.N7({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],bD);
_.C(bD,"yt-refund-confirmation-flow-step-renderer",function(){if(B8l===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;LZy===void 0&&(LZy=document.createElement("template"));var H=LZy;f.call(d,H.content.cloneNode(!0),K.content.firstChild);B8l=K}K=B8l;return K},{mode:2});_.Zx($ui);_.Zx(EZc);var hJE=_.IY({avatarViewModel:_.Pz});_.Zx(b1y);var muz=_.IY({commentInteractionViewModel:EZc,sharedSubscriptionViewModel:b1y,buttonViewModel:_.oY});_.Zx(lpw);_.Zx(WVw);_.Zx(GwS);_.Zx(AeE);_.Zx(TLZ);var ret=_.IY({profileIdentityInfoViewModel:_.joP,profileInfoViewModel:TLZ});_.Zx(qyc);_.fK(qyc,"yt-profile-card-view-model",{propNames:["data"]});var m3=function(){var K=_.q.apply(this,arguments)||this;K.enableFocusFix=_.M("music_web_enable_focus_on_setting_menu_fix")&&_.lx("IS_MOBILE_WEB",!1);K.covered=!1;K.hideMenu=!1;K.isCommentNotificationOnProfileCard=!1;K.scrolledByTouch=!1;K.disableBackdropFilter=_.M("web_disable_backdrop_filter");K.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return K};
_.O(m3,_.q);_.V=m3.prototype;
_.V.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"}}}};
_.V.ready=function(){var K=this;this.JSC$17935_containerElement.addEventListener("scroll",function(){K.ytRendererBehavior.markDirty()})};
_.V.attributeChanged=function(K,d){K==="menu-style"&&_.ev(this.hostElement,"yt-multi-page-menu-closed-action",[d])};
_.V.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Dm(this,this.focusOnStampFinished))};
_.V.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Dm(this,this.focusOnStampFinished))};
_.V.reset=function(){this.closeJobId&&(_.oc.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.V.focusOnStampFinished=function(K){K.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Dm(this,this.focusOnStampFinished)),this.doFocus())};
_.V.doFocus=function(){var K=_.Kd8(this.sectionsElement);K.length&&K[0].focus()};
_.V.computeMenuStyle=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.V.computeIsCommentNotificationOnProfileCard=function(K){return _.M("enable_profile_cards_on_comments")&&K.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.V.computeHideMenu=function(K,d){return K||!(!d||!d.showLoadingSpinner)};
_.V.onPopupClosed=function(){this.isPopUpOpen=!1;_.ev(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.V.onPopupOpened=function(K,d){this.isPopUpOpen=!0;d.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Zp(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.es({type:"CHANNEL_REPORT_RESET"})))};
_.V.onYtNavigate=function(K,d){this.shouldCloseOnNavigateEvent(d.endpoint)&&_.ev(this.hostElement,"yt-close-all-popups-action")};
_.V.handleEndpoint=function(K){K=_.P(K,_.gd);!this.isCommentNotificationOnProfileCard&&K&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17935_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.V.handleActions=function(K){for(var d=0,f=K.length;d<f;d++){var H=_.P(K[d],d_5);H&&this.handleGetMultiPageMenuAction(H);(H=_.P(K[d],_.Q1s))&&this.handleAppendContinuationItemsAction(H)}};
_.V.onServiceRequestSentOrCompleted=function(K,d){K.detail&&K.detail.endpoint&&this.handleEndpoint(K.detail.endpoint);d.actions&&this.handleActions(d.actions)};
_.V.handleGetMultiPageMenuAction=function(K){var d=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.E(this.submenuElement).appendChild(d);(K=K.menu.multiPageMenuRenderer)&&this.logSubmenu(K);d.data=K;d.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.V.handleAppendContinuationItemsAction=function(K){if(this.data&&K.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&K.continuationItems&&this.data.sections){var d=this.data.sections.length-1;this.data.sections[d].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),d--);if(this.data.sections[d].multiPageMenuNotificationSectionRenderer&&K.continuationItems){K=_.y(K==null?void 0:K.continuationItems);for(var f=K.next();!f.done;f=K.next())if(f=f.value,_.P(f,o1c)){var H=
void 0,D=void 0,S=void 0,n=void 0,u=void 0;((H=this)==null?0:(D=H.data)==null?0:(S=D.sections)==null?0:(n=S[d])==null?0:(u=n.multiPageMenuNotificationSectionRenderer)==null?0:u.items)&&this.push("data.sections."+d+".multiPageMenuNotificationSectionRenderer.items",f)}else if(_.P(f,_.o2v)||_.P(f,_.k6))this.push("data.sections",f),d++}}};
_.V.logSubmenu=function(K){if(!_.M("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var d=this.ytRendererBehavior.getScreenLayer(),f=_.te(d),H=_.YZ(d);if((K=K.trackingParams)&&f&&H){var D=_.RG(K);_.M("combine_ve_grafts")?_.cv().graftServerVe(K,H,d):_.lB(f,H,D)}}};
_.V.emptySubmenuContainer=function(){for(var K=_.E(this.submenuElement);K.firstChild;)K.removeChild(K.firstChild)};
_.V.onMenuBackTap=function(K){_.Zp(this.hostElement,"yt-submenu-closed");K.stopPropagation()};
_.V.onSubmenuClosed=function(K){_.Qm(K)!==this.hostElement&&(this.covered=!1,_.Zp(this.hostElement,"yt-refit"),K.stopPropagation())};
_.V.onRetrieveLocation=function(K,d){d.hasComments&&(d.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),K.stopPropagation())};
_.V.shouldCloseOnNavigateEvent=function(K){if(!K)return!0;if(_.P(K,_.Yt2)||_.P(K,_.tIJ)||_.P(K,_.NTJ)||_.P(K,_.TE))return!1;var d;return((d=_.P(K==null?void 0:K.commandMetadata,_.B0))==null?0:d.ignoreNavigation)?!1:!0};
_.V.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.V.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.V.refitAfterRender=function(){var K=this;_.jW(this,function(){_.Zp(K.hostElement,"yt-refit")})};
m3.prototype.refitAfterRender=m3.prototype.refitAfterRender;m3.prototype.onRetrieveLocation=m3.prototype.onRetrieveLocation;m3.prototype.onSubmenuClosed=m3.prototype.onSubmenuClosed;m3.prototype.onMenuBackTap=m3.prototype.onMenuBackTap;m3.prototype.onServiceRequestSentOrCompleted=m3.prototype.onServiceRequestSentOrCompleted;m3.prototype.onYtNavigate=m3.prototype.onYtNavigate;m3.prototype.onPopupOpened=m3.prototype.onPopupOpened;m3.prototype.onPopupClosed=m3.prototype.onPopupClosed;
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],m3.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],m3.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],m3.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],m3.prototype,"enableFocusFix",void 0);_.x([_.A(),_.B("design:type",Object)],m3.prototype,"covered",void 0);_.x([_.A({computed:"computeHideMenu(covered, data)"}),_.B("design:type",Object)],m3.prototype,"hideMenu",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.B("design:type",String)],m3.prototype,"menuStyle",void 0);
_.x([_.A({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.B("design:type",Object)],m3.prototype,"isCommentNotificationOnProfileCard",void 0);_.x([_.A(),_.B("design:type",Boolean)],m3.prototype,"isPopUpOpen",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],m3.prototype,"scrolledByTouch",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],m3.prototype,"disableBackdropFilter",void 0);
_.x([_.n8("#sections"),_.B("design:type",HTMLElement)],m3.prototype,"sectionsElement",void 0);_.x([_.n8("#spinner"),_.B("design:type",HTMLElement)],m3.prototype,"spinnerElement",void 0);_.x([_.n8("#header"),_.B("design:type",HTMLElement)],m3.prototype,"headerElement",void 0);_.x([_.n8("#container"),_.B("design:type",HTMLElement)],m3.prototype,"JSC$17935_containerElement",void 0);_.x([_.n8("#submenu"),_.B("design:type",HTMLElement)],m3.prototype,"submenuElement",void 0);
_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],m3.prototype,"onPopupClosed",null);_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],m3.prototype,"onPopupOpened",null);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],m3.prototype,"onYtNavigate",null);
_.x([_.VV("yt-service-request-completed"),_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],m3.prototype,"onServiceRequestSentOrCompleted",null);_.x([_.VV("yt-menu-back-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],m3.prototype,"onMenuBackTap",null);
_.x([_.VV("yt-submenu-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],m3.prototype,"onSubmenuClosed",null);_.x([_.VV("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],m3.prototype,"onRetrieveLocation",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],m3.prototype,"refitAfterRender",null);
m3=_.x([_.Q({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],m3);
_.C(m3,"ytd-multi-page-menu-renderer",function(){if(N8K!==void 0)return N8K;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return N8K=K},{mode:1});var JTU;var lD=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return K};
_.O(lD,_.q);_.V=lD.prototype;_.V.created=function(){this.showTooltips=!0};
_.V.computeAccessibility_=function(K){return this.get("accessibility.accessibilityData",K)||null};
_.V.onTap=function(){var K=_.p1(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(K&&K.length===1&&K[0])_.ev(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var d;if((d=this.data)==null?0:d.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var f;((f=this.data)==null?0:f.menuRequest)&&_.dN(this.hostElement,[this.data.menuRequest])}}};
_.V.handleTopbarMenuClosedAction=function(K){var d,f;(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(K)===((d=this.data)==null?void 0:(f=d.icon)==null?void 0:f.iconType)&&this.toggleIconState(!1)};
_.V.toggleIconState=function(K){_.M("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=K)};
_.V.handleUpdateTopbarAvatarAction=function(K){var d;K=(d=_.P(K,ssz))==null?void 0:d.avatarUrl;var f,H;d=(f=this.data)==null?void 0:(H=f.avatar)==null?void 0:H.thumbnails;K&&d&&(f={thumbnails:[Object.assign({},d[0],{url:K})]},this.set("data.avatar",f))};
_.x$.Object.defineProperties(lD.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#button")}}});
lD.prototype.onTap=lD.prototype.onTap;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],lD.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],lD.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(_.sks.YtButtonBehavior),_.B("design:type",Object)],lD.prototype,"ytButtonBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],lD.prototype,"data",void 0);
_.x([_.n8("yt-icon-button#button"),_.B("design:type",Object)],lD.prototype,"iconButton",void 0);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lD.prototype,"onTap",null);lD=_.x([_.Q({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],lD);
_.C(lD,"ytd-topbar-menu-button-renderer",function(){if(JTU!==void 0)return JTU;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return JTU=K},{mode:1});var sF5;var Wq=function(){return _.q.apply(this,arguments)||this};
_.O(Wq,_.q);Wq.prototype.getSelected=function(){return this.reasons.selected};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Wq.prototype,"data",void 0);_.x([_.n8("#reasons"),_.B("design:type",Object)],Wq.prototype,"reasons",void 0);Wq=_.x([_.Q({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Wq);
_.C(Wq,"ytd-ad-feedback-content",function(){if(sF5!==void 0)return sF5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return sF5=K},{mode:1});var k4w;var GV=function(){return _.q.apply(this,arguments)||this};
_.O(GV,_.q);_.V=GV.prototype;_.V.onPopupOpened=function(){_.ev(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.V.computeConfirmButton=function(K){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:K.confirmLabel}};
_.V.computeCancelButton=function(K){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:K.cancelLabel}};
_.V.onConfirmTap=function(){var K=this.content.getSelected();K!==void 0&&(K=this.data.reasons[K].endpoint)&&(_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}}),_.ev(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.V.sendFeedbackSubmitToastAction=function(){var K;(K=this.data)!=null&&K.completionMessage&&_.ev(this.hostElement,"yt-open-popup-action",[_.xo(this.data.completionMessage),this])};
_.V.onCancelTap=function(){_.ev(this.hostElement,"yt-close-popup-action")};
GV.prototype.onPopupOpened=GV.prototype.onPopupOpened;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],GV.prototype,"data",void 0);_.x([_.n8("#content"),_.B("design:type",Object)],GV.prototype,"content",void 0);_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],GV.prototype,"onPopupOpened",null);
GV=_.x([_.Q({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],GV);
_.C(GV,"ytd-ad-feedback-renderer",function(){if(k4w!==void 0)return k4w;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return k4w=K},{mode:1});var wU5;var Ax=function(){return _.q.apply(this,arguments)||this};
_.O(Ax,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ax.prototype,"data",void 0);Ax=_.x([_.Q({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Ax);
_.C(Ax,"ytd-ad-info-dialog-content",function(){if(wU5!==void 0)return wU5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return wU5=K},{mode:1});var ZLw;var TV=function(){return _.q.apply(this,arguments)||this};
_.O(TV,_.q);TV.prototype.computeConfirmButton=function(K){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:K.confirmLabel}};
TV.prototype.onConfirmTap=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
TV.prototype.computeShouldShowTitle=function(){var K;return!((K=this.data)==null||!K.title)};
TV.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.eq().resolve(_.pQ).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
TV.prototype.onPopupClosed=TV.prototype.onPopupClosed;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],TV.prototype,"data",void 0);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],TV.prototype,"onPopupClosed",null);TV=_.x([_.Q({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],TV);
_.C(TV,"ytd-ad-info-dialog-renderer",function(){if(ZLw!==void 0)return ZLw;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ZLw=K},{mode:1});var e4Z;var rM=function(){var K=_.q.apply(this,arguments)||this;K.actionButtonClass="action-button";K.dismissButtonId="dismiss-button";K.dialogDismiss=!0;return K};
_.O(rM,_.q);_.V=rM.prototype;_.V.computeInPlayer=function(K){return(K==null?void 0:K.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.V.computedLogo=function(){var K,d;return this.isDarkTheme()?(K=this.data)==null?void 0:K.logoDark:(d=this.data)==null?void 0:d.logo};
_.V.computedHeaderImage=function(){var K,d;return this.isDarkTheme()?(K=this.data)==null?void 0:K.headerImageDark:(d=this.data)==null?void 0:d.headerImage};
_.V.computeLogoIconId=function(){var K,d,f,H=(K=this.computedLogo())==null?void 0:(d=K.sources)==null?void 0:(f=d[0])==null?void 0:f.height;return H&&H%31===0?"logo-icon-with-padding":"logo-icon"};
_.V.computeLogoIconHeight=function(){var K,d,f,H=(K=this.computedLogo())==null?void 0:(d=K.sources)==null?void 0:(f=d[0])==null?void 0:f.height;return H&&H%31===0?"31":"24"};
_.V.onPopupClosed=function(){_.eq().resolve(_.dY).dispose()};
_.V.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.V.onShow=function(){this.inPlayer&&_.SZ(6)};
_.V.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var K=0;K<this.data.impressionEndpoints.length;K++){var d=_.P(this.data.impressionEndpoints[K],_.oG);d&&this.ytComponentBehavior.resolveCommand(d)}};
_.V.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.ev(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.x$.Object.defineProperties(rM.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var K,d;return!((K=this.data)==null||!K.headerImageDark)&&!((d=this.data)==null||!d.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.secondaryButton)}}});
rM.prototype.onPopupClosed=rM.prototype.onPopupClosed;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],rM.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.lm.YtVisibilityBehavior),_.B("design:type",Object)],rM.prototype,"ytVisibilityBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],rM.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],rM.prototype,"actionButtonClass",void 0);_.x([_.A(),_.B("design:type",Object)],rM.prototype,"dismissButtonId",void 0);_.x([_.A(),_.B("design:type",Object)],rM.prototype,"dialogDismiss",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],rM.prototype,"hasHeaderImage",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],rM.prototype,"hasPremiumButton",null);
_.x([_.A({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.B("design:type",Boolean)],rM.prototype,"inPlayer",void 0);_.x([_.n8("#dismiss-button"),_.B("design:type",HTMLElement)],rM.prototype,"dismissButton",void 0);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],rM.prototype,"onPopupClosed",null);rM=_.x([_.Q({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],rM);
_.C(rM,"ytd-enforcement-message-view-model",function(){if(e4Z!==void 0)return e4Z;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return e4Z=K},{mode:1});var pUc;var Kry;var qL=function(){var K=_.q.apply(this,arguments)||this;K.TEST_ONLY={immediateValidation:function(){K.immediateValidation()},
onValidationResponse:function(d){K.onValidationResponse(d)},
onGenerateHandleFromNameResponse:function(d){K.onGenerateHandleFromNameResponse(d)}};
return K};
_.O(qL,_.q);_.V=qL.prototype;_.V.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.V.validate=function(){this.immediateValidation()};
_.V.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.V.setHandleInputValue=function(K){this.handleDir=this.getHandleDir(K);this.handleInput.value=K;this.validationState={status:"PENDING"};this.immediateValidation()};
_.V.getHandleDir=function(K){var d=K===""&&!1;return(d=_.JRL.test.call(_.JRL,K))?"rtl":"ltr"};
_.V.onDataChanged=function(){var K,d;this.handleDir=this.getHandleDir((d=(K=this.data)==null?void 0:K.handle)!=null?d:"");var f;this.validationState=((f=this.data)==null?0:f.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var H;((H=this.data)==null?0:H.validateOnInit)&&this.immediateValidation()};
_.V.stopPropagation=function(K){K.stopPropagation()};
_.V.onInput=function(){var K;this.handleDir=this.getHandleDir((K=this.handleInput.value)!=null?K:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.V.onFocusout=function(K){this.handleInput.contains(K.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.V.delayedValidation=function(){var K,d;this.debouncedValidation((d=(K=this.data)==null?void 0:K.validationDelayMs)!=null?d:1E3)};
_.V.immediateValidation=function(){this.debouncedValidation(0)};
_.V.debouncedValidation=function(K){var d=this;_.mx(this,"debouncedValidation",function(){var f,H=d.staticValidation((f=d.handleInput.value)!=null?f:"");if(H!==void 0)d.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:H};else{var D;if((D=d.data)!=null&&D.validateChannelHandleCommand){d.validationState={status:"LOADING"};var S;d.ytComponentBehavior.resolveCommand(d.data.validateChannelHandleCommand,{form:{handle:(S=d.handleInput.value)!=null?S:""},commandController:{onSuccess:function(n,
u){d.onValidationResponse(u)},
onServerError:function(n,u){d.onValidationServerError(u)}}})}else d.handleUnexpectedValidationError(new _.X4("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",d.data))}},K)};
_.V.staticValidation=function(K){var d;if(((d=this.data)==null?void 0:d.channelHandleStaticValidationParams)!==void 0){d=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(K)&&d.validValueRegexpErrorMessage!==void 0)return d.validValueRegexpErrorMessage;if(d.minLength!==void 0&&K.length<d.minLength&&d.minLengthErrorMessage!==void 0)return d.minLengthErrorMessage;if(d.maxLength!==void 0&&K.length>d.maxLength&&d.maxLengthErrorMessage!==void 0)return d.maxLengthErrorMessage}};
_.V.onValidationResponse=function(K){var d=_.P(K.result,kAw);d===void 0?this.handleUnexpectedValidationError(new _.X4("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",K)):this.handleValidationResultRenderer(d)};
_.V.onValidationServerError=function(K){this.handleUnexpectedValidationError(new _.X4("ValidateChannelHandle request failed.",K))};
_.V.handleValidationResultRenderer=function(K){if(K.handle===void 0)this.handleUnexpectedValidationError(new _.X4("ChannelHandleValidationResultRenderer does not contain handle.",K));else if(K.handle===this.handleInput.value)switch(K.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:K.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:K.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.X4("Unrecognized ChannelHandleValidationResult",K));break;default:_.nE(K.result)}};
_.V.handleUnexpectedValidationError=function(K){var d;this.validationState={status:"UNKNOWN",handle:(d=this.handleInput.value)!=null?d:""};_.h3(K)};
_.V.stopEventPropagation=function(K){K.stopPropagation()};
_.V.updateHandleOnChannelNameInputChange=function(K){if(!this.wasEdited){var d,f;this.debouncedGenerateHandleFromName(K,(f=(d=this.data)==null?void 0:d.validationDelayMs)!=null?f:1E3)}};
_.V.debouncedGenerateHandleFromName=function(K,d){var f=this;_.mx(this,"debouncedGenerateHandleFromName",function(){var H;(H=f.data)!=null&&H.validateChannelHandleCommand?f.ytComponentBehavior.resolveCommand(f.data.validateChannelHandleCommand,{form:{name:K},commandController:{onSuccess:function(D,S){f.onGenerateHandleFromNameResponse(S)},
onServerError:function(D,S){_.h3(new _.X4("Error calling GenerateHandleFromName",S))}}}):_.h3(new _.X4("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",f.data))},d)};
_.V.onGenerateHandleFromNameResponse=function(K){this.wasEdited||((K=_.P(K.result,wLS))?this.setHandleInputValue(K.handle):_.h3(new _.X4("Invalid results when generate handle from name")))};
_.x$.Object.defineProperties(qL.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var K;if(K=this.validationState)K=this.validationState,K=K.status==="OK"||K.status==="UNKNOWN";if(K)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var K;if(((K=this.validationState)==null?void 0:K.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 K,d=(K=this.channelHandleEntity)==null?void 0:K.handleEdit;this.handleDir=this.getHandleDir(d!=null?d:"");return d}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var K,d;if(((K=this.data)==null?void 0:(d=K.channelHandleStaticValidationParams)==null?void 0:d.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
qL.prototype.stopEventPropagation=qL.prototype.stopEventPropagation;qL.prototype.onDataChanged=qL.prototype.onDataChanged;qL.prototype.applyHandleEdit=qL.prototype.applyHandleEdit;qL.prototype.onValueChanged=qL.prototype.onValueChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],qL.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],qL.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qL.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Boolean)],qL.prototype,"wasEdited",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],qL.prototype,"handleDir",void 0);_.x([_.n8("#handle-input"),_.B("design:type",Object)],qL.prototype,"handleInput",void 0);_.x([_.A(),_.W("validationState"),_.B("design:type",Object),_.B("design:paramtypes",[])],qL.prototype,"value",null);
_.x([_.SP("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qL.prototype,"onValueChanged",null);_.x([_.W("validationState"),_.B("design:type",Object),_.B("design:paramtypes",[])],qL.prototype,"errorIndicator",null);_.x([_.A({reflectToAttribute:!0}),_.W("errorIndicator"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],qL.prototype,"borderErrorIndicator",null);
_.x([_.A({selectorArgs:["data.channelHandleEntityKey"],selector:function(K,d){return _.DR(K.entities,"channelHandle",d)}}),
_.B("design:type",Object)],qL.prototype,"channelHandleEntity",void 0);_.x([_.W("channelHandleEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],qL.prototype,"handleEdit",null);_.x([_.SP("handleEdit"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qL.prototype,"applyHandleEdit",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qL.prototype,"onDataChanged",null);
_.x([_.W("data.channelHandleStaticValidationParams.validValueRegexp"),_.B("design:type",Object),_.B("design:paramtypes",[])],qL.prototype,"validValueRegexp",null);_.x([_.VV("yt-service-request-sent"),_.VV("yt-service-request-completed"),_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],qL.prototype,"stopEventPropagation",null);qL=_.x([_.Q({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],qL);
_.C(qL,"ytd-channel-handle-input-renderer",function(){if(Kry!==void 0)return Kry;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Kry=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var Qo=function(){var K=_.q.apply(this,arguments)||this;K.data=null;K.errorMessage=null;K.isLoading=!0;K.hideContainer=!1;K.enableNewChannelCreationOnIdForAll=_.M("enable_new_channel_creation_for_id4all");K.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"};K.testOnly={setErrorMessage:function(d){K.resetErrorState();
K.setErrorState(d)}};
return K};
_.O(Qo,_.q);_.V=Qo.prototype;_.V.created=function(){this.logScreenVe()};
_.V.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")};
_.V.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var K;((K=this.zeroStepErrorMessageEntity)==null?0:K.value)&&this.set("errorMessage",_.rB(this.zeroStepErrorMessageEntity.value))};
_.V.onCreateTap=function(){var K=this;if(this.data&&this.data.channelCreationEndpoint){var d,f;if(!((d=this.data.createChannelButton)==null?0:(f=d.buttonRenderer)==null?0:f.isDisabled)){var H;if((H=this.nameInput)!=null&&H.value){this.setLoadingState();var D,S;d=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(D=this.handleInput)==null?void 0:D.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((S=this.handleInput)==null?void 0:S.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:d,commandController:{onSuccess:function(n,u){K.onChannelCreationEndpointSuccess(u);K.obakeImageSource&&_.t3("channelCreatedWithObakeImage",{imageSourceType:K.obakeImageSource})},
onServerError:function(){K.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.V.endpointRequiresServiceRequestAction=function(K){return!!_.P(K,_.Pd)||!!_.P(K,ssz)};
_.V.isNavigateAction=function(K){var d;return!!_.P(K,_.AU)||!!_.P((d=_.P(K,pLc))==null?void 0:d.command,_.AU)};
_.V.isPlaylistAction=function(K){return!!_.P(K,_.OI)||!!_.P(K,_.EI)};
_.V.onChannelCreationEndpointSuccess=function(K){if(K.createChannelError){var d;this.setErrorState((d=K.createChannelError)==null?void 0:d.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.M("enable_secondary_channel_creation_form")&&K.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(K.navigationEndpoint);if(K.actions){d=_.y(K.actions);for(var f=d.next();!f.done;f=d.next())if(f=f.value,this.endpointRequiresServiceRequestAction(f)&&this.ytComponentBehavior.resolveCommand(f),
this.isNavigateAction(f)){var H=void 0;f=_.P((H=_.P(f,pLc))==null?void 0:H.command,_.AU);H=void 0;this.isPlaylistAction((H=f)==null?void 0:H.endpoint)&&(_.ev(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),H=void 0,this.ytComponentBehavior.resolveCommand((H=f)==null?void 0:H.endpoint))}}K.actions&&K.actions.some(function(D){var S;return _.P(D,_.AU)||_.P((S=_.P(D,pLc))==null?void 0:S.command,_.AU)})||_.ev(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.V.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.V.onCancelTap=function(){var K,d,f;if(!((K=this.data)==null?0:(d=K.cancelButton)==null?0:(f=d.buttonRenderer)==null?0:f.isDisabled)){var H,D,S;K=(H=this.data)==null?void 0:(D=H.cancelButton)==null?void 0:(S=D.buttonRenderer)==null?void 0:S.command;if(!K||!_.P(K,_.iCz)){var n;this.nameInput&&((n=this.data)==null?0:n.name)&&(this.nameInput.value=this.data.name);var u;this.handleInput&&((u=this.data)==null?0:u.channelHandleInput)&&(this.handleInput.data=_.P(this.data.channelHandleInput,ZfZ));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.V.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.V.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.V.onClearProfilePhotoTap=function(){var K,d,f;((K=this.data)==null?0:(d=K.clearProfilePhotoButton)==null?0:(f=d.buttonRenderer)==null?0:f.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.V.onEditAvatarTap=function(){var K,d,f;((K=this.data)==null?0:(d=K.editAvatarButton)==null?0:(f=d.buttonRenderer)==null?0:f.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.V.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)};
_.V.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var K;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((K=this.data)==null?0:K.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.V.setErrorState=function(K){this.resetErrorState();if(K)this.set("errorMessage",K);else{var d;if((d=this.zeroStepErrorMessageEntity)==null?0:d.value)this.set("errorMessage",_.rB(this.zeroStepErrorMessageEntity.value));else{var f;((f=this.data)==null?0:f.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.V.fetchImageBlobWithAlr=function(K,d){d=d===void 0?5:d;var f=this,H,D,S,n,u;return _.c(function(a){switch(a.nextAddress){case 1:return _.I(a,fetch(K,{method:"GET",mode:"cors"}),2);case 2:H=a.yieldResult;if(H.ok){a.jumpTo(3);break}if(d===0)throw Error();D=f.addJitter(Math.pow(2,5-d));return _.I(a,new Promise(function(R){setTimeout(R,D*1E3)}),4);
case 4:return a.return(f.fetchImageBlobWithAlr(K,d-1));case 3:if(!H.headers.get("content-type").split(";").some(function(R){return R.trim()==="text/plain"})){a.jumpTo(5);
break}S=f;n=S.fetchImageBlobWithAlr;return _.I(a,H.text(),6);case 6:return a.return(n.call(S,a.yieldResult,d-1));case 5:return _.I(a,H.blob(),7);case 7:return u=a.yieldResult,a.return(u)}})};
_.V.addJitter=function(K){var d=K*.3*Math.random();Math.random()>.5&&(d*=-1);return K+d};
_.V.openProfilePicturePicker=function(){var K=this,d,f,H,D,S;return _.c(function(n){if(n.nextAddress==1){d=K.data.scottyUploadUrl;if(!d)return n.return();f=document.documentElement.hasAttribute("dark");H=document.body.style.colorScheme;f&&(document.body.style.colorScheme="dark");D=dvl(ffS(K4P(JbU(f?"dark":"light")),function(u){var a,R,F,z,v;return _.c(function(g){if(g.nextAddress==1)return a=_.hB(nkw(new go(u.photoUrl,!1)).build(),"alr","yes"),K.obakeImageSource=K.pictureChangeSourceToObakeImageSourceType(u.photoSource),
_.HF(g,2),K.setLoadingState(),_.I(g,K.fetchImageBlobWithAlr(a),4);if(g.nextAddress!=2)return R=g.yieldResult,F=new FileReader,F.addEventListener("load",function(){var N,h,m,T,r,J;return _.c(function(L){if(L.nextAddress==1){if(R.size>15728640)return K.setErrorState((N=K.data)==null?void 0:N.imageSizeErrorMessage),_.h3(Error("hl")),L.return();if(!F.result)return K.setErrorState((h=K.data)==null?void 0:h.genericImageLoadErrorMessage),_.h3(Error("il")),L.return();m=F.result;_.HF(L,2);return _.I(L,Qwl(R,
d),4)}if(L.nextAddress!=2)return T=L.yieldResult,K.handleImageUpdatedAction(m,T),K.resetErrorState(),_.Ts(L,0);r=_.n7(L);K.setErrorState((J=K.data)==null?void 0:J.uploadErrorMessage);if(r instanceof Error)_.$7(r);else{var fB=new _.X4(JSON.stringify(r));_.$7(fB)}_.iQ(L)})}),F.readAsDataURL(R),_.Ts(g,0);
z=_.n7(g);K.setErrorState((v=K.data)==null?void 0:v.genericImageLoadErrorMessage);z instanceof Error?_.$7(z):_.EN(new _.X4(JSON.stringify(z)));_.iQ(g)})}),function(){K.hideContainer=!1;
document.body.style.colorScheme=H});
_.HF(n,2);return _.I(n,D.openPicker(),4)}if(n.nextAddress!=2)return _.Ts(n,0);_.n7(n);K.setErrorState((S=K.data)==null?void 0:S.selectImageErrorMessage);_.iQ(n)})};
_.V.pictureChangeSourceToObakeImageSourceType=function(K){switch(K){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.V.logScreenVe=function(){_.eA(_.cv(),124448)};
_.V.graftServerVe=function(){var K=_.YZ(),d,f,H=(d=this.data)==null?void 0:(f=d.loggingDirectives)==null?void 0:f.trackingParams;H&&K&&(this.channelCreationFormVe=_.cv().graftServerVe(H,K),K={visualElement:this.channelCreationFormVe},_.nZ().reportShown(K))};
_.V.isNameChanged=function(K){var d;return((d=this.data)==null?void 0:d.name)!==K};
_.V.isHandleChanged=function(K){var d,f=_.P((d=this.data)==null?void 0:d.channelHandleInput,ZfZ);return f&&K?f.handle!==K:!1};
_.V.handleImageUpdatedAction=function(K,d){this.hideContainer=!1;this.previewDataUrl=K;this.encryptedBlobId=d};
_.V.handleImageSelectionErrorAction=function(K){this.hideContainer=!1;this.setErrorState(K)};
_.V.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.V.showContainer=function(){this.hideContainer=!1};
_.V.maybeWipeZeroStepErrorMessage=function(){var K,d=(K=this.data)==null?void 0:K.zeroStepErrorMessageEntityKey,f;d&&((f=this.zeroStepErrorMessageEntity)==null?0:f.value)&&this.ytdReduxBehavior.dispatch(_.nt("stringEntity",d,{key:d,value:""}))};
_.x$.Object.defineProperties(Qo.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 K;return((K=this.photoThumbnail)==null?0:K.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 K;return!((K=this.data)==null||!K.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.descriptionInfo}}});
Qo.prototype.dataChanged=Qo.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Qo.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Qo.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Qo.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Qo.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Qo.prototype,"errorMessage",void 0);
_.x([_.A(),_.B("design:type",Object)],Qo.prototype,"isLoading",void 0);_.x([_.A(),_.B("design:type",String)],Qo.prototype,"previewDataUrl",void 0);_.x([_.A(),_.B("design:type",Number)],Qo.prototype,"obakeImageSource",void 0);_.x([_.A(),_.B("design:type",Object)],Qo.prototype,"hideContainer",void 0);_.x([_.n8("#title-input"),_.B("design:type",Object)],Qo.prototype,"nameInput",void 0);_.x([_.n8("#handle-input"),_.B("design:type",Object)],Qo.prototype,"handleInput",void 0);
_.x([_.A(),_.B("design:type",Boolean)],Qo.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.x([_.A({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Jiu}),_.B("design:type",Object)],Qo.prototype,"zeroStepErrorMessageEntity",void 0);_.x([_.W("data","data.isDefaultProfilePhoto","previewDataUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qo.prototype,"photoThumbnail",null);
_.x([_.W("data","data.isDefaultProfilePhoto","photoThumbnail"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qo.prototype,"userSetPhotoThumbnailUrl",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Qo.prototype,"hideProfilePhotoButtonLayer",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Qo.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.x([_.an("data","zeroStepErrorMessageEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qo.prototype,"dataChanged",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.descriptionInfo","zeroStepErrorMessageEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qo.prototype,"description",null);Qo=_.x([_.Q({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Qo);
_.C(Qo,"ytd-channel-creation-dialog-renderer",function(){if(pUc!==void 0)return pUc;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return pUc=K},{mode:1});var d3c;var jk=function(){var K=_.q.apply(this,arguments)||this;K.isLoading=!1;K.isDisabled=!1;return K};
_.O(jk,_.q);jk.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
jk.prototype.updateDisabled=function(){var K;this.isDisabled=this.isLoading||((K=this.handleInput)==null?void 0:K.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
jk.prototype.onSaveClick=function(){var K=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var d;((d=this.data)==null?void 0:d.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 f;if((f=K.data)==null?0:f.nextEndpoint){var H;K.ytComponentBehavior.resolveCommand((H=K.data)==null?void 0:H.nextEndpoint)}else K.isLoading=
!1,K.closeDialog()},
onServerError:function(){K.isLoading=!1;K.handleInput.validate();var f;K.errorMessage=(f=K.data)==null?void 0:f.errorMessage}}}))}};
jk.prototype.closeDialog=function(){_.ev(this.hostElement,"yt-close-popup-action",[this.is])};
jk.prototype.updateDisabled=jk.prototype.updateDisabled;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],jk.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],jk.prototype,"data",void 0);_.x([_.n8("#handle-input"),_.B("design:type",Object)],jk.prototype,"handleInput",void 0);_.x([_.SP("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jk.prototype,"updateDisabled",null);
jk=_.x([_.Q({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],jk);
_.C(jk,"ytd-channel-handle-edit-dialog-renderer",function(){if(d3c!==void 0)return d3c;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return d3c=K},{mode:1});var fvP;var Cb=function(){return _.q.apply(this,arguments)||this};
_.O(Cb,_.q);Cb.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Cb.prototype,"data",void 0);Cb=_.x([_.Q({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Cb);
_.C(Cb,"ytd-channel-switcher-footer-renderer",function(){if(fvP!==void 0)return fvP;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return fvP=K},{mode:1});var HDi;var D37;var xt=function(){return _.q.apply(this,arguments)||this};
_.O(xt,_.q);xt.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
xt.prototype.onIronChange=xt.prototype.onIronChange;_.x([_.A(),_.B("design:type",Object)],xt.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!1}),_.B("design:type",Function)],xt.prototype,"onDontAskAgainChanged",void 0);_.x([_.n8("#checkbox"),_.B("design:type",Object)],xt.prototype,"checkbox",void 0);_.x([_.VV("iron-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xt.prototype,"onIronChange",null);
xt=_.x([_.Q({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],xt);
_.C(xt,"ytd-identity-prompt-footer-renderer",function(){if(D37!==void 0)return D37;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return D37=K},{mode:1});var Lb=function(){var K=_.q.apply(this,arguments)||this;K.dontAskAgain=!1;K.showPopup=!1;K.boundDontAskAgainChanged=function(d){K.dontAskAgainChanged(d)};
K.boundOnAccountItemTap=function(d){K.onAccountItemTap(d)};
return K};
_.O(Lb,_.q);_.V=Lb.prototype;
_.V.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]]"}}}}}};
_.V.ready=function(){var K=this;_.E(this.hostElement).querySelector("#container").addEventListener("scroll",function(){K.ytRendererBehavior.markDirty()})};
_.V.dontAskAgainChanged=function(K){this.dontAskAgain=K};
_.V.onAccountItemTap=function(K){if(K){var d={};this.dontAskAgain&&(d={dont_ask_again:this.dontAskAgain});_.WW(K,d)}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.V.redirectOnlyAccount=function(K){K.sections&&K.sections.length>0&&(K=_.P(K.sections[0],_.rbs),(K==null?0:K.contents)&&(K==null?void 0:K.contents.length)<=1?(K=_.CQ(window.location.href),(K==null?0:K.next)&&_.PTo(K.next)?_.WW(K.next):_.WW("/")):this.showPopup=!0)};
Lb.prototype.dataChanged=Lb.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Lb.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!1}),_.B("design:type",Object)],Lb.prototype,"dontAskAgain",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Lb.prototype,"showPopup",void 0);_.x([_.A({reflectToAttribute:!1}),_.B("design:type",Object)],Lb.prototype,"boundDontAskAgainChanged",void 0);_.x([_.A({reflectToAttribute:!1}),_.B("design:type",Object)],Lb.prototype,"boundOnAccountItemTap",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lb.prototype,"dataChanged",null);
Lb=_.x([_.Q({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Lb);
_.C(Lb,"ytd-channel-switcher-renderer",function(){if(HDi!==void 0)return HDi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return HDi=K},{mode:1});var V_w;var Bq=function(){return _.q.apply(this,arguments)||this};
_.O(Bq,_.q);_.x$.Object.defineProperties(Bq.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.x([_.A(),_.B("design:type",Object)],Bq.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],Bq.prototype,"steps",null);Bq=_.x([_.Q({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Bq);
_.C(Bq,"ytd-channel-transfer-stepper-renderer",function(){if(V_w!==void 0)return V_w;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return V_w=K},{mode:1});var SLc;var Jx=function(){var K=_.q.apply(this,arguments)||this;K.data=null;K.isError=!1;K.isLoading=!1;return K};
_.O(Jx,_.q);_.V=Jx.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.V.computeProfileName=function(K){return K?K.givenNameValue+" "+K.familyNameValue:""};
_.V.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)};
_.V.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)};
Jx.prototype.onYtServiceRequestError=Jx.prototype.onYtServiceRequestError;Jx.prototype.onYtServiceRequestSent=Jx.prototype.onYtServiceRequestSent;Jx.prototype.dataChanged=Jx.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Jx.prototype,"data",void 0);
_.x([_.A({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.B("design:type",String)],Jx.prototype,"profileName",void 0);_.x([_.A(),_.B("design:type",Object)],Jx.prototype,"isError",void 0);_.x([_.A(),_.B("design:type",Object)],Jx.prototype,"isLoading",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jx.prototype,"dataChanged",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],Jx.prototype,"onYtServiceRequestSent",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],Jx.prototype,"onYtServiceRequestError",null);Jx=_.x([_.Q({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Jx);
_.C(Jx,"ytd-channel-warm-welcome-cont-renderer",function(){if(SLc!==void 0)return SLc;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return SLc=K},{mode:1});var yVE;var sH=function(){var K=_.q.apply(this,arguments)||this;K.data=null;return K};
_.O(sH,_.q);sH.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
sH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],sH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],sH.prototype,"data",void 0);sH=_.x([_.Q({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],sH);
_.C(sH,"ytd-channel-warm-welcome-renderer",function(){if(yVE!==void 0)return yVE;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return yVE=K},{mode:1});var nVw;var kt=function(){return _.q.apply(this,arguments)||this};
_.O(kt,_.q);_.x$.Object.defineProperties(kt.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.authorThumbnail)||{}}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],kt.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],kt.prototype,"thumbnailDetails",null);kt=_.x([_.Q({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],kt);
_.C(kt,"ytd-comment-preview-renderer",function(){if(nVw!==void 0)return nVw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return nVw=K},{mode:1});var iDt;var wM=function(){return _.q.apply(this,arguments)||this};
_.O(wM,_.q);wM.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x$.Object.defineProperties(wM.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.submitButton}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],wM.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wM.prototype,"submitButton",null);wM=_.x([_.Q({is:"ytd-notice-renderer",disableElementRegistration:!0})],wM);
_.C(wM,"ytd-notice-renderer",function(){if(iDt!==void 0)return iDt;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return iDt=K},{mode:1});var cVw;var Zj=function(){return _.q.apply(this,arguments)||this};
_.O(Zj,_.q);Zj.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Zj.prototype,"data",void 0);Zj=_.x([_.Q({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Zj);
_.C(Zj,"ytd-preview-comment-dialog-content",function(){if(cVw!==void 0)return cVw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return cVw=K},{mode:1});var uIi;var ek=function(){return _.q.apply(this,arguments)||this};
_.O(ek,_.q);ek.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
ek.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ek.prototype,"data",void 0);ek=_.x([_.Q({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],ek);
_.C(ek,"ytd-preview-comment-dialog-renderer",function(){if(uIi!==void 0)return uIi;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return uIi=K},{mode:1});var avK;var Ivi=_.M("web_button_rework")&&_.lx("BUTTON_REWORK")||_.M("web_button_rework_with_live"),pb=function(){var K=_.q.apply(this,arguments)||this;K.selectedAmountIndex=1;K.privacyCheckboxValue=!1;K.useAmsterdamStyle=Ivi;K.amountPlaceholderIndex=-1;return K};
_.O(pb,_.q);_.V=pb.prototype;_.V.onAmountClick=function(K){this.selectedAmountIndex=_.E(this.hostElement).querySelector("#amounts").indexForElement(K.currentTarget)};
_.V.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.ev(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.V.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.ev(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.ev(this.hostElement,"yt-close-popup-action",[this.is]);var K;(K=_.xP())==null||K.getPlayerPromise().then(function(d){d.pauseVideo()})}};
_.V.donationCallback=function(K){K.success?(this.hostElement.hasAttribute("live-chat")&&K.response&&K.response.data&&K.response.data.actions&&_.ev(this.hostElement,"yt-live-chat-open-popup",[K.response.data.actions[0]]),_.ev(this.hostElement,"yt-close-popup-action",[this.is]),_.ev(this.hostElement,"yt-live-chat-close-buy-flow")):K.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(K.errorMessageRenderer)};
_.V.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.E(this.hostElement).querySelector("#custom-amount-input").focus()};
_.V.updateConfirmationDialogTextWithAmount=function(K){var d=this.getConfirmDialogRuns();d&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(d),"text"],this.getFormattedAmount(K))};
_.V.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.V.getAmountPlaceholderIndex=function(K){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=K.findIndex(function(d){return d.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.V.getFormattedAmount=function(K){var d;return(new _.mS(4,((d=this.data)==null?void 0:d.currencyCode)||"")).format(K)};
_.V.isAmountValid=function(K){if(K==="")return!1;K=Number(K)*1E6;var d=this.get("minAmountMicros",this.data),f=this.get("maxAmountMicros",this.data);return d&&K<d||f&&K>f?!1:!0};
_.V.setInputError=function(){this.shouldShowValidationError?_.E(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.E(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.V.setInitialCheckboxValue=function(){var K;this.privacyCheckboxValue=!((K=this.data)==null||!K.privacyCheckboxInitialState)};
_.V.updateCustomAmountInputFromBinding=function(K){this.customAmountInput=K.detail.value};
_.V.updatePrivacyCheckboxValueFromBinding=function(K){this.privacyCheckboxValue=K.detail.value};
_.x$.Object.defineProperties(pb.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var K=this,d,f;return((d=this.data)==null?void 0:(f=d.suggestedAmounts)==null?void 0:f.map(function(H,D){return{buttonRenderer:{style:K.selectedAmountIndex===D?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:H.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 K;return!((K=this.data)==null||!K.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 K=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(K&&this.amountMicros!==null)return Object.assign({},K,{ypcGetCartEndpoint:Object.assign({},K.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 K=this.get("confirmLargeAmount",this.data);if(K&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),K}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var K=this.get("donateButton.buttonRenderer",this.data);if(K)return Object.assign({},K,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
pb.prototype.setInitialCheckboxValue=pb.prototype.setInitialCheckboxValue;pb.prototype.setInputError=pb.prototype.setInputError;pb.prototype.setFocusOnCustomAmountInput=pb.prototype.setFocusOnCustomAmountInput;_.x([_.l(MJl),_.B("design:type",Object)],pb.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],pb.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],pb.prototype,"selectedAmountIndex",void 0);_.x([_.A(),_.B("design:type",String)],pb.prototype,"customAmountInput",void 0);_.x([_.A(),_.B("design:type",Object)],pb.prototype,"privacyCheckboxValue",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],pb.prototype,"useAmsterdamStyle",void 0);_.x([_.SP("customAmount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pb.prototype,"setFocusOnCustomAmountInput",null);_.x([_.W("data","selectedAmountIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],pb.prototype,"suggestedAmountButtons",null);
_.x([_.W("data","selectedAmountIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pb.prototype,"isCustomAmountSelected",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pb.prototype,"showPrivacyCheckbox",null);_.x([_.W("data","selectedAmountIndex","customAmount"),_.B("design:type",Object),_.B("design:paramtypes",[])],pb.prototype,"amountMicros",null);
_.x([_.W("isCustomAmountSelected","customAmountInput"),_.B("design:type",Object),_.B("design:paramtypes",[])],pb.prototype,"customAmount",null);_.x([_.W("customAmount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pb.prototype,"shouldShowValidationError",null);_.x([_.W("customAmount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pb.prototype,"isDonateButtonEnabled",null);
_.x([_.W("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.B("design:type",Object),_.B("design:paramtypes",[])],pb.prototype,"donateCommand",null);_.x([_.W("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.B("design:type",Object),_.B("design:paramtypes",[])],pb.prototype,"donateCommandWithConfirmation",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],pb.prototype,"largeDonationThreshold",null);
_.x([_.W("customAmount","donateCommand","amountMicros"),_.B("design:type",Object),_.B("design:paramtypes",[])],pb.prototype,"confirmLargeAmountCommand",null);_.x([_.W("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.B("design:type",Object),_.B("design:paramtypes",[])],pb.prototype,"donateButtonRenderer",null);_.x([_.SP("shouldShowValidationError"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pb.prototype,"setInputError",null);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pb.prototype,"setInitialCheckboxValue",null);pb=_.x([_.Q({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],pb);
_.C(pb,"ytd-donation-amount-picker-renderer",function(){if(avK!==void 0)return avK;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[msg(\'CLOSE\')]]" 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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return avK=K},{mode:1});var U3E;var KH=function(){return _.q.apply(this,arguments)||this};
_.O(KH,_.q);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],KH.prototype,"ytComponentBehavior",void 0);_.x([_.A({}),_.B("design:type",Object)],KH.prototype,"data",void 0);KH=_.x([_.Q({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],KH);
_.C(KH,"ytd-donation-post-transaction-content",function(){if(U3E!==void 0)return U3E;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return U3E=K},{mode:1});var RpS;var db=function(){return _.q.apply(this,arguments)||this};
_.O(db,_.q);db.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.x([_.A({}),_.B("design:type",Object)],db.prototype,"data",void 0);db=_.x([_.Q({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],db);
_.C(db,"ytd-donation-post-transaction-renderer",function(){if(RpS!==void 0)return RpS;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return RpS=K},{mode:1});var Fr5;var zpP;var fH=function(){return _.q.apply(this,arguments)||this};
_.O(fH,_.q);fH.prototype.computeIsStreamingProvider=function(K){return!!K.isStreamingShelf};
fH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],fH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],fH.prototype,"data",void 0);_.x([_.A({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],fH.prototype,"isStreamingProvider",void 0);
fH=_.x([_.Q({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],fH);
_.C(fH,"ytd-media-provider-renderer",function(){if(zpP!==void 0)return zpP;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return zpP=K},{mode:1});var XwS;var Hl=function(){return _.q.apply(this,arguments)||this};
_.O(Hl,_.q);Hl.prototype.observeLightsourcePalette=function(){var K,d=(K=this.data)==null?void 0:K.vibrantsourceColorPaletteData;d&&_.gH(this.hostElement,d)};
Hl.prototype.observeLightsourcePalette=Hl.prototype.observeLightsourcePalette;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Hl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Hl.prototype,"data",void 0);
_.x([_.SP("data.vibrantsourceColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hl.prototype,"observeLightsourcePalette",null);Hl=_.x([_.Q({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Hl);
_.C(Hl,"ytd-streaming-pop-up-dialog",function(){if(XwS!==void 0)return XwS;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return XwS=K},{mode:1});var D1=function(){return _.q.apply(this,arguments)||this};
_.O(D1,_.q);D1.prototype.onPopupOpened_=function(){var K;((K=this.data)==null?0:K.serviceEndpoint)&&_.eq().resolve(_.pQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
D1.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
D1.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"}}}}};
D1.prototype.onPopupOpened_=D1.prototype.onPopupOpened_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],D1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.lY),_.B("design:type",Object)],D1.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],D1.prototype,"data",void 0);
_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D1.prototype,"onPopupOpened_",null);D1=_.x([_.Q({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],D1);
_.C(D1,"ytd-brandconnect-popup-renderer",function(){if(Fr5!==void 0)return Fr5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Fr5=K},{mode:1});var vVw;var VM=function(){return _.q.apply(this,arguments)||this};
_.O(VM,_.q);_.V=VM.prototype;_.V.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){for(var K=0;K<this.getOptionRenderers().length;K++)this.notifyPath("data.options."+K+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+K+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.V.updateSubmitButton=function(K){this.set("data.submitButton.buttonRenderer.isDisabled",!K)};
_.V.computeAlt=function(K){return _.qQ(K)};
_.V.onDismissTap=function(){_.ev(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.eq().resolve(_.pQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.getOptionRenderers=function(K){return(K=K||this.data)&&K.options?K.options.reduce(function(d,f){f.checkboxSurveyOptionRenderer&&d.push(f.checkboxSurveyOptionRenderer);return d},[]):[]};
_.V.onOptionChange=function(K){var d=this,f=!1;if(K.detail.checked)for(var H=this.getOptionRenderers().find(function(u){return u.value===K.detail.value}),D=this.getOptionRenderers(),S=0;S<D.length;S++){var n=D[S];
this.notifyPath("data.options."+S+".checkboxSurveyOptionRenderer.checked");n.checked&&((H==null?0:H.isExclusiveOption)?!n.isExclusiveOption:n.isExclusiveOption)?this.set("data.options."+S+".checkboxSurveyOptionRenderer.checked",!1):n.checked&&(f=!0)}else f=this.getOptionRenderers().some(function(u,a){d.notifyPath("data.options."+a+".checkboxSurveyOptionRenderer.checked");return u.checked});
this.updateSubmitButton(f)};
_.V.onSubmitTap=function(){var K=this.getOptionRenderers().filter(function(S){return S.checked});
if(K.length!==0){var d=K.map(function(S){return S.responseEndpoint});
K=[];for(var f=1;f<d.length;f++){var H=void 0,D=(H=_.P(d[f],_.g7))==null?void 0:H.feedbackToken;D&&K.push(D)}d=[d[0]];K.length&&d.push({extra_feedback_tokens:K});_.dN(this.hostElement,d);_.ev(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);K=this.data&&this.data.submitActions||[];if(_.M("kevlar_command_handler_migration_killswitch"))_.fd(this.hostElement,K,this.hostElement);else for(K=_.y(K),d=K.next();!d.done;d=K.next())this.ytComponentBehavior.resolveCommand(d.value)}};
VM.prototype.onOptionChange=VM.prototype.onOptionChange;VM.prototype.dataChanged=VM.prototype.dataChanged;_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],VM.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],VM.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.x([_.l(q0y),_.B("design:type",Object)],VM.prototype,"ytdHatsSurveyBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],VM.prototype,"data",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VM.prototype,"dataChanged",null);
_.x([_.VV("ytd-checkbox-survey-option-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],VM.prototype,"onOptionChange",null);VM=_.x([_.Q({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],VM);
_.C(VM,"ytd-checkbox-survey-renderer",function(){if(vVw!==void 0)return vVw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return vVw=K},{mode:1});var M_Z;var POE;var S9=function(){return _.q.apply(this,arguments)||this};
_.O(S9,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.x([_.l(r_c),_.B("design:type",Object)],S9.prototype,"ytdDismissalReasonBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],S9.prototype,"data",void 0);S9=_.x([_.Q({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],S9);
_.C(S9,"ytd-dismissal-reason-text-renderer",function(){if(POE!==void 0)return POE;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return POE=K},{mode:1});var gVi;var yM=function(){return _.q.apply(this,arguments)||this};
_.O(yM,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.x([_.l(r_c),_.B("design:type",Object)],yM.prototype,"ytdDismissalReasonBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],yM.prototype,"data",void 0);yM=_.x([_.Q({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],yM);
_.C(yM,"ytd-dismissal-reason-video-renderer",function(){if(gVi!==void 0)return gVi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return gVi=K},{mode:1});var nH=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(nH,_.q);_.V=nH.prototype;_.V.created=function(){this.selectedFeedbackTokens=new jL};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.V.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.V.onDismissalReasonSelected=function(K,d){_.Zp(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(d);this.hasReasonsSelected=!0};
_.V.onDismissalReasonDeselected=function(K,d){_.Zp(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(d);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.V.onCancelTap=function(){_.ev(this.hostElement,"yt-close-popup-action")};
_.V.onSubmitTap=function(){var K=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(K={feedback_tokens:K},_.eq().resolve(_.pQ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},K,{element:this.hostElement})}));_.ev(this.hostElement,"yt-close-popup-action")};
nH.prototype.onDismissalReasonDeselected=nH.prototype.onDismissalReasonDeselected;nH.prototype.onDismissalReasonSelected=nH.prototype.onDismissalReasonSelected;nH.prototype.dataChanged=nH.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],nH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],nH.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],nH.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Boolean)],nH.prototype,"hasReasonsSelected",void 0);_.x([_.A(),_.B("design:type",jL)],nH.prototype,"selectedFeedbackTokens",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],nH.prototype,"darkerDarkTheme",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nH.prototype,"dataChanged",null);
_.x([_.VV("yt-dismissal-reason-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],nH.prototype,"onDismissalReasonSelected",null);_.x([_.VV("yt-dismissal-reason-deselected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],nH.prototype,"onDismissalReasonDeselected",null);nH=_.x([_.Q({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],nH);
_.C(nH,"ytd-dismissal-follow-up-renderer",function(){if(M_Z!==void 0)return M_Z;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return M_Z=K},{mode:1});var ODU;var ij=function(){return _.q.apply(this,arguments)||this};
_.O(ij,_.q);_.V=ij.prototype;_.V.onCheckedChange=function(){this.multiselect||_.Zp(this.hostElement,"yt-feedback-single-select-changed");_.E(this.hostElement).querySelector("#freeform").focus();_.Zp(this.hostElement,"yt-refit")};
_.V.showTextBox=function(K,d){return K&&d};
_.V.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))};
_.V.updateDataCheckedFromBinding=function(K){this.set("data.checked",K.detail.value)};
_.V.updateDataResultTextFromBinding=function(K){this.set("data.resultText",K.detail.value)};
ij.prototype.dataChanged=ij.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ij.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],ij.prototype,"multiselect",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ij.prototype,"dataChanged",null);
ij=_.x([_.Q({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],ij);
_.C(ij,"ytd-feedback-option-renderer",function(){if(ODU!==void 0)return ODU;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ODU=K},{mode:1});var Nay;var cl=function(){return _.q.apply(this,arguments)||this};
_.O(cl,_.q);cl.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
cl.prototype.onSingleSelectCheckedChanged=function(K){K=_.Qm(K);for(var d=0;d<this.data.options.length;d++)if(K.data!==_.P(this.data.options[d],AlK)){var f="data.options."+d+".feedbackOptionRenderer.checked";this.notifyPath(f);this.set(f,!1)}};
cl.prototype.onSingleSelectCheckedChanged=cl.prototype.onSingleSelectCheckedChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],cl.prototype,"data",void 0);
_.x([_.VV("yt-feedback-single-select-changed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],cl.prototype,"onSingleSelectCheckedChanged",null);cl=_.x([_.Q({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],cl);
_.C(cl,"ytd-feedback-question-renderer",function(){if(Nay!==void 0)return Nay;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Nay=K},{mode:1});var YLc;var uj=function(){return _.q.apply(this,arguments)||this};
_.O(uj,_.q);uj.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
uj.prototype.getSelectedFeedbackResults=function(){for(var K={},d=0;d<this.data.questions.length;d++)for(var f=_.P(this.data.questions[d],G3z),H=0;H<f.options.length;H++){var D=_.P(f.options[H],AlK);D&&D.checked&&(K[D.optionKey]=D.resultText)}return K};
uj.prototype.onKeyUp=function(){var K=this;_.pZ(_.oc,function(){_.Zp(K.hostElement,"yt-refit")});
_.oc.start()};
uj.prototype.submitSurvey=function(){var K=this.getSelectedFeedbackResults();Object.keys(K).length>0&&this.data.submitFeedbackEndpoint&&(K={survey_results:K,is_feedback_token_unencrypted:!0},_.eq().resolve(_.pQ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},K,{element:this.hostElement})}))};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],uj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],uj.prototype,"data",void 0);uj=_.x([_.Q({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],uj);
_.C(uj,"ytd-feedback-survey-renderer",function(){if(YLc!==void 0)return YLc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return YLc=K},{mode:1});var t_i;var oVw;var ax=function(){return _.q.apply(this,arguments)||this};
_.O(ax,_.q);ax.prototype.computeAlt=function(K){return _.qQ(K)};
ax.prototype.submitResponse=function(){var K,d;(K=this.data)!=null&&K.feedbackToken&&((d=this.data)==null?void 0:d.nextStageIndex)!==void 0&&(_.p1(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.p1(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
ax.prototype.onClick=function(){this.submitResponse()};
ax.prototype.onClick=ax.prototype.onClick;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ax.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ax.prototype,"vertical",void 0);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ax.prototype,"onClick",null);
ax=_.x([_.Q({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],ax);
_.C(ax,"ytd-single-select-answer-option-renderer",function(){if(oVw!==void 0)return oVw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return oVw=K},{mode:1});var $3U;var Ix=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");K.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return K};
_.O(Ix,_.q);Ix.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Ix.prototype.dataChanged=function(){var K,d;this.vertical=((d=(K=this.data)==null?void 0:K.answerOrientation)!=null?d:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Ix.prototype.submitFeedback=function(K){var d;((d=this.data)==null?0:d.responseEndpoint)&&K&&_.dN(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[K]}])};
Ix.prototype.dataChanged=Ix.prototype.dataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Ix.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],Ix.prototype,"eventForwardingBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],Ix.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ix.prototype,"vertical",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ix.prototype,"darkerDarkTheme",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ix.prototype,"dataChanged",null);Ix=_.x([_.Q({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Ix);
_.C(Ix,"ytd-single-select-question-renderer",function(){if($3U!==void 0)return $3U;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return $3U=K},{mode:1});var Uu=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return K};
_.O(Uu,_.q);_.V=Uu.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.jumpToStage(0)};
_.V.jumpToStage=function(K){var d,f;if((d=this.data)==null?0:(f=d.stages)==null?0:f[K])this.currentStage=this.data.stages[K],this.refitAfterRender()};
_.V.computeAlt=function(K){return _.qQ(K)};
_.V.computeSimpleMessage=function(K){var d;return(d=_.P(K,qht))==null?void 0:d.messageText};
_.V.computeHideDismiss=function(K){var d;return(d=_.P(K,azz))==null?void 0:d.hideParentDismissButton};
_.V.onDismissTap=function(){_.ev(this.hostElement,"yt-close-popup-action");_.P(this.currentStage,qht)||this.data.dismissalEndpoint&&_.eq().resolve(_.pQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.refitAfterRender=function(){var K=this;_.jW(this,function(){_.Zp(K.hostElement,"yt-refit")})};
Uu.prototype.dataChanged=Uu.prototype.dataChanged;_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],Uu.prototype,"eventForwardingBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Uu.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.l(q0y),_.B("design:type",Object)],Uu.prototype,"ytdHatsSurveyBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Uu.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Uu.prototype,"currentStage",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uu.prototype,"dataChanged",null);Uu=_.x([_.Q({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],Uu);
_.C(Uu,"ytd-multi-stage-survey-renderer",function(){if(t_i!==void 0)return t_i;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return t_i=K},{mode:1});var EVy;var Rx=function(){return _.q.apply(this,arguments)||this};
_.O(Rx,_.q);Rx.prototype.computeAlt=function(K){return _.qQ(K)};
Rx.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.eq().resolve(_.pQ).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.ev(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.teK(!1)))};
Rx.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Rx.prototype.onTap=Rx.prototype.onTap;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Rx.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Rx.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Rx.prototype,"vertical",void 0);
_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rx.prototype,"onTap",null);Rx=_.x([_.Q({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Rx);
_.C(Rx,"ytd-single-option-survey-option-renderer",function(){if(EVy!==void 0)return EVy;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return EVy=K},{mode:1});var hpt;var FF=function(){return _.q.apply(this,arguments)||this};
_.O(FF,_.q);_.V=FF.prototype;_.V.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){var K,d;this.vertical=(((K=this.data)==null?void 0:(d=K.surveyOrientation)==null?void 0:d.type)||"HORIZONTAL")==="VERTICAL"};
_.V.computeAlt=function(K){return _.qQ(K)};
_.V.onDismissTap=function(){_.ev(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.eq().resolve(_.pQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.teK(!1))};
FF.prototype.dataChanged=FF.prototype.dataChanged;_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],FF.prototype,"eventForwardingBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],FF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(q0y),_.B("design:type",Object)],FF.prototype,"ytdHatsSurveyBehavior",void 0);
_.x([_.l(_.ou),_.B("design:type",Object)],FF.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],FF.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],FF.prototype,"vertical",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FF.prototype,"dataChanged",null);FF=_.x([_.Q({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],FF);
_.C(FF,"ytd-single-option-survey-renderer",function(){if(hpt!==void 0)return hpt;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return hpt=K},{mode:1});var bDz;var zX=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(zX,_.q);zX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zX.prototype.onDismissTap=function(){_.ev(this.hostElement,"yt-close-popup-action")};
zX.prototype.onNavigate=function(){_.ev(this.hostElement,"yt-close-popup-action")};
zX.prototype.onNavigate=zX.prototype.onNavigate;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],zX.prototype,"ytEventForwardingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],zX.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],zX.prototype,"darkerDarkTheme",void 0);
_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zX.prototype,"onNavigate",null);zX=_.x([_.Q({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],zX);
_.C(zX,"ytd-survey-follow-up-renderer",function(){if(bDz!==void 0)return bDz;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return bDz=K},{mode:1});var m3Z;var lvZ;var Wri;var XF=function(){var K=_.q.apply(this,arguments)||this;K.polymer2="Element"in Polymer;return K};
_.O(XF,_.q);_.V=XF.prototype;_.V.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.V.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.V.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.V.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("minutes-changed",this.minutes))};
_.V.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("seconds-changed",this.seconds))};
_.V.updateMinutesFromBinding=function(K){this.minutes=K.detail.value};
_.V.updateSecondsFromBinding=function(K){this.seconds=K.detail.value};
XF.prototype.secondsChangedForBinding=XF.prototype.secondsChangedForBinding;XF.prototype.minutesChangedForBinding=XF.prototype.minutesChangedForBinding;XF.prototype.secondsChanged=XF.prototype.secondsChanged;_.x([_.A(),_.B("design:type",String)],XF.prototype,"minutes",void 0);_.x([_.A(),_.B("design:type",String)],XF.prototype,"seconds",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],XF.prototype,"polymer2",void 0);
_.x([_.n8("#seconds"),_.B("design:type",Object)],XF.prototype,"secondsEl",void 0);_.x([_.SP("seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XF.prototype,"secondsChanged",null);_.x([_.SP("minutes"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XF.prototype,"minutesChangedForBinding",null);
_.x([_.SP("seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XF.prototype,"secondsChangedForBinding",null);XF=_.x([_.N7({is:"yt-timestamp-input",disableElementRegistration:!0})],XF);
_.C(XF,"yt-timestamp-input",function(){if(Wri===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;lvZ===void 0&&(lvZ=document.createElement("template"));var H=lvZ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Wri=K}K=Wri;return K},{mode:2});var vl=function(){return _.q.apply(this,arguments)||this};
_.O(vl,_.q);_.V=vl.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18107_scroller.dialogElement=this.hostElement.parentNode};
_.V.dataChanged=function(){var K=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.LK().getPlayerPromise().then(function(d){d=d.getCurrentTime();K.minutes=Math.floor(d/60).toString();K.seconds=(Math.floor(d)%60).toString()})};
_.V.onTapSubmit=function(K){K.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(K={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(K.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(K.minutes=this.minutes,K.seconds=this.seconds),_.eq().resolve(_.pQ).resolveCommand(this.serviceEndpoint,{form:Object.assign({},K,{element:this.hostElement})}))};
_.V.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.V.onYtServiceRequestCompleted=function(K,d){d=d.actions;if(Array.isArray(d))for(var f=0,H=d.length;f<H;f++)_.P(d[f],_.X3)&&(K.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(d[f]))};
_.V.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.V.toggleSubmitButton=function(K){this.set("submitButton.isDisabled",!K)};
_.V.handleInput=function(){var K=this.issueType,d=this.affiliation,f=this.minutes,H=this.seconds;f=!this.showTimestamp||!!f&&!!H;this.toggleSubmitButton(!!this.descriptionText&&!!K&&!!d&&f)};
_.V.computeServiceEndpoint=function(K){return this.get("submitButton.buttonRenderer.serviceEndpoint",K)};
_.V.computeSubmitButton=function(K){(K=this.get("submitButton.buttonRenderer",K))&&(K=Object.assign({},K,{serviceEndpoint:void 0}));return K};
_.V.computeShowTimestamp=function(K){return!!K};
_.V.onValueChangedForIssueType=function(K){this.issueType=K.detail.value};
_.V.onValueChangedForAffiliation=function(K){this.affiliation=K.detail.value};
_.V.updateDescriptionTextFromBinding=function(K){this.descriptionText=K.detail.value};
_.V.updateFullNameTextFromBinding=function(K){this.fullNameText=K.detail.value};
_.V.updateMinutesFromBinding=function(K){this.minutes=K.detail.value};
_.V.updateSecondsFromBinding=function(K){this.seconds=K.detail.value};
vl.prototype.handleInput=vl.prototype.handleInput;vl.prototype.onYtServiceRequestError=vl.prototype.onYtServiceRequestError;vl.prototype.onYtServiceRequestCompleted=vl.prototype.onYtServiceRequestCompleted;vl.prototype.onYtServiceRequestSent=vl.prototype.onYtServiceRequestSent;vl.prototype.dataChanged=vl.prototype.dataChanged;_.x([_.l(_.Vr.YtOpenPopupBehavior),_.B("design:type",Object)],vl.prototype,"ytOpenPopupBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.x([_.n8("#scroller"),_.B("design:type",Object)],vl.prototype,"JSC$18107_scroller",void 0);_.x([_.n8("#description"),_.B("design:type",HTMLInputElement)],vl.prototype,"description",void 0);_.x([_.n8("#full-name"),_.B("design:type",Object)],vl.prototype,"fullName",void 0);_.x([_.A(),_.B("design:type",Object)],vl.prototype,"data",void 0);
_.x([_.A({computed:"computeShowTimestamp(data.timestampLabel)"}),_.B("design:type",Boolean)],vl.prototype,"showTimestamp",void 0);_.x([_.A({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.B("design:type",Object)],vl.prototype,"serviceEndpoint",void 0);_.x([_.A({computed:"computeSubmitButton(data)"}),_.B("design:type",Object)],vl.prototype,"submitButton",void 0);_.x([_.A(),_.B("design:type",String)],vl.prototype,"descriptionText",void 0);
_.x([_.A(),_.B("design:type",Number)],vl.prototype,"issueType",void 0);_.x([_.A(),_.B("design:type",Number)],vl.prototype,"affiliation",void 0);_.x([_.A(),_.B("design:type",String)],vl.prototype,"fullNameText",void 0);_.x([_.A(),_.B("design:type",String)],vl.prototype,"minutes",void 0);_.x([_.A(),_.B("design:type",String)],vl.prototype,"seconds",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vl.prototype,"dataChanged",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],vl.prototype,"onYtServiceRequestSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],vl.prototype,"onYtServiceRequestCompleted",null);
_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vl.prototype,"onYtServiceRequestError",null);_.x([_.SP("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vl.prototype,"handleInput",null);vl=_.x([_.Q({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],vl);
_.C(vl,"ytd-legal-report-details-form-renderer",function(){if(m3Z!==void 0)return m3Z;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return m3Z=K},{mode:1});var GxE;var Mw=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return K};
_.O(Mw,_.q);Mw.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Mw.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var K=this.formRenderer.getForm();K&&this.data.submitEndpoint&&(_.eq().resolve(_.pQ).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},K,{element:this.hostElement})}),_.ev(this.hostElement,"yt-close-popup-action"))}};
Mw.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.ev(this.hostElement,"yt-close-popup-action"))};
Mw.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Mw.prototype.onPopupClosed=Mw.prototype.onPopupClosed;_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],Mw.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Mw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Mw.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);
_.x([_.n8("yt-form-renderer"),_.B("design:type",Object)],Mw.prototype,"formRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],Mw.prototype,"data",void 0);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mw.prototype,"onPopupClosed",null);Mw=_.x([_.Q({is:"ytd-form-popup-content",disableElementRegistration:!0})],Mw);
_.C(Mw,"ytd-form-popup-content",function(){if(GxE!==void 0)return GxE;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return GxE=K},{mode:1});var AVy;var Pl=function(){return _.q.apply(this,arguments)||this};
_.O(Pl,_.q);Pl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Pl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Pl.prototype.onPopupOpened=function(){_.Zp(this.hostElement,"yt-invalidate-popup-tabbables")};
Pl.prototype.onYtServiceRequestCompleted=function(K,d){d.data&&d.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Zp(this.hostElement,"yt-invalidate-popup-tabbables"))};
Pl.prototype.onYtServiceRequestCompleted=Pl.prototype.onYtServiceRequestCompleted;Pl.prototype.onPopupOpened=Pl.prototype.onPopupOpened;_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],Pl.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],Pl.prototype,"data",void 0);_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pl.prototype,"onPopupOpened",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],Pl.prototype,"onYtServiceRequestCompleted",null);Pl=_.x([_.Q({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Pl);
_.C(Pl,"ytd-form-popup-renderer",function(){if(AVy!==void 0)return AVy;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return AVy=K},{mode:1});var TaU;var gb=function(){var K=_.q.apply(this,arguments)||this;K.isLoading=!1;return K};
_.O(gb,_.q);_.V=gb.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");LDK(this.hostElement)};
_.V.onYtServiceRequestSent=function(){this.isLoading=!0};
_.V.onYtServiceRequestCompleted=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.V.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.fd(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.V.closePopupHandler=function(){this.fireOnCloseActions()};
_.V.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var K=this.get("data.headerImage.thumbnails");K&&(K=_.kA(K,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+K+")")}};
_.V.onYtNavigate=function(K){(K=_.Qm(K))&&K.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
gb.prototype.onYtNavigate=gb.prototype.onYtNavigate;gb.prototype.onHeaderImageChanged=gb.prototype.onHeaderImageChanged;gb.prototype.closePopupHandler=gb.prototype.closePopupHandler;gb.prototype.onYtServiceRequestCompleted=gb.prototype.onYtServiceRequestCompleted;gb.prototype.onYtServiceRequestSent=gb.prototype.onYtServiceRequestSent;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],gb.prototype,"ytEventForwardingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gb.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gb.prototype,"isLoading",void 0);_.x([_.n8("#header"),_.B("design:type",HTMLDivElement)],gb.prototype,"header",void 0);_.x([_.n8("#confirm-button"),_.B("design:type",_.IF)],gb.prototype,"confirmButton",void 0);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gb.prototype,"onYtServiceRequestSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gb.prototype,"onYtServiceRequestCompleted",null);
_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],gb.prototype,"closePopupHandler",null);_.x([_.SP("data.headerImage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gb.prototype,"onHeaderImageChanged",null);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gb.prototype,"onYtNavigate",null);
gb=_.x([_.Q({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],gb);
_.C(gb,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(TaU!==void 0)return TaU;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return TaU=K},{mode:1});var rVZ;var Ou=function(){var K=_.q.apply(this,arguments)||this;K.isLoading=!1;return K};
_.O(Ou,_.q);_.V=Ou.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);LDK(this.hostElement)};
_.V.onYtServiceRequestCompleted=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.V.onYtServiceRequestError=function(K){_.B9(this.hostElement,K.detail.error.message)};
_.V.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.V.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.ev(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.V.onDataChanged=function(){this.isLoading=!1;var K=this.get("data.headerImage.thumbnails");K&&(K=_.kA(K,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+K+")");K=_.te();var d=_.YZ(),f=this.get("data.trackingParams");f&&d&&K&&_.lB(K,d,_.RG(f))};
_.x$.Object.defineProperties(Ou.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Ou.prototype.onDataChanged=Ou.prototype.onDataChanged;Ou.prototype.onDomChange=Ou.prototype.onDomChange;Ou.prototype.onYtServiceRequestError=Ou.prototype.onYtServiceRequestError;Ou.prototype.onYtServiceRequestCompleted=Ou.prototype.onYtServiceRequestCompleted;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ou.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],Ou.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ou.prototype,"isLoading",void 0);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ou.prototype,"hasDescription",null);_.x([_.n8("tp-yt-paper-dialog-scrollable"),_.B("design:type",Object)],Ou.prototype,"scrollable",void 0);_.x([_.n8("#header"),_.B("design:type",HTMLElement)],Ou.prototype,"header",void 0);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ou.prototype,"onYtServiceRequestCompleted",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ou.prototype,"onYtServiceRequestError",null);
_.x([_.VV("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ou.prototype,"onDomChange",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ou.prototype,"onDataChanged",null);Ou=_.x([_.Q({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Ou);
_.C(Ou,"ytd-gaming-account-link-setting-renderer",function(){if(rVZ!==void 0)return rVZ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return rVZ=K},{mode:1});var qLZ;var Quc;var Nw=function(){var K=_.q.apply(this,arguments)||this;K.isHeader=!1;K.getEndpointForm=function(){return Je7(K.data)};
return K};
_.O(Nw,_.q);_.V=Nw.prototype;_.V.triggerHintActions=function(){var K=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var d=_.p1(K.hostElement,"yt-get-opened-popups-action");!(d&&d.length===1?d[0]:[]).some(function(f){f=f.openPopupAction.popupType;return f==="SURVEY"||f==="MEALBAR"||f==="HINT"})&&K.data.hintActions&&K.guideOpened&&(_.fd(K.hostElement,K.data.hintActions,K.hostElement),K.data.hintActions=void 0)})};
_.V.getBadgeIconType=function(K){return K&&K.liveBroadcasting?"live":null};
_.V.onDown=function(){this.interaction.triggerDown()};
_.V.onUp=function(){this.interaction.triggerUp()};
_.V.onTap=function(K){if(this.data.serviceEndpoint){var d;_.M("shorts_controller_retrieve_seedless_sequence_v2")&&((d=_.P(this.data.serviceEndpoint,_.IM))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):BLK(this.data.serviceEndpoint,this);K.preventDefault()}else this.data.navigationEndpoint&&!_.qa(_.qn(K),this.hostElement,["A".toString()])&&_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.V.computeActive=function(K,d){if(!K)return!1;var f=K.navigationEndpoint;K=K.serviceEndpoint;if(!f&&!K||!d)return!1;if(f){K=(K=_.nU(d))&&["subscriptions","filteredsubscriptions"].includes(K);if(_.P(f,_.is)&&_.P(d,_.is)&&!K){var H=_.P(f,_.is).browseId;d=_.P(d,_.is).browseId;return H!==void 0&&d!==void 0&&(H===d||H==="VLWL"&&d==="FEwatch_later"||H==="FEwatch_later"&&d==="VLWL")}var D;f=(D=_.P(f.commandMetadata,_.B0))==null?void 0:D.url;d=(H=_.P(d.commandMetadata,_.B0))==null?void 0:H.url;return!(!f||
!d||f!==d&&f!==_.ny(d))}return this.isActiveShortsTab(K,d)};
_.V.isActiveShortsTab=function(K,d){d=!!_.P(d,_.IM)||!!_.P(d,_.NV);return(!!_.P(K,_.IM)||!!_.P(K,_.NV))&&d};
_.V.computeIsPrimary=function(K){return!!K};
_.x$.Object.defineProperties(Nw.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 K=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&K)return K}}});
Nw.prototype.onTap=Nw.prototype.onTap;Nw.prototype.onUp=Nw.prototype.onUp;Nw.prototype.onDown=Nw.prototype.onDown;Nw.prototype.triggerHintActions=Nw.prototype.triggerHintActions;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Nw.prototype,"componentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Nw.prototype,"rendererBehavior",void 0);_.x([_.l(_.xc.YtTaskEmitterBehavior),_.B("design:type",Object)],Nw.prototype,"taskEmitterBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],Nw.prototype,"activeEndpoint",void 0);_.x([_.A(),_.B("design:type",Object)],Nw.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],Nw.prototype,"guideOpened",void 0);_.x([_.A(),_.B("design:type",String)],Nw.prototype,"type",void 0);_.x([_.n8("yt-interaction"),_.B("design:type",Object)],Nw.prototype,"interaction",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Nw.prototype,"isHeader",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data","activeEndpoint"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Nw.prototype,"active",null);_.x([_.A({reflectToAttribute:!0}),_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Nw.prototype,"isPrimary",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.count","data.presentationStyle","data.badges.*"),_.B("design:type",String),_.B("design:paramtypes",[])],Nw.prototype,"lineEndStyle",null);
_.x([_.W("lineEndStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],Nw.prototype,"ariaLabel",null);_.x([_.SP("data.hintActions","guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nw.prototype,"triggerHintActions",null);_.x([_.VV("down"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nw.prototype,"onDown",null);
_.x([_.VV("up"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nw.prototype,"onUp",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Nw.prototype,"onTap",null);Nw=_.x([_.Q({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Nw);
_.C(Nw,"ytd-guide-entry-renderer",function(){if(Quc!==void 0)return Quc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Quc=K},{mode:1});var YN=function(){var K=_.q.apply(this,arguments)||this;K.userToggled=!1;return K};
_.O(YN,_.q);_.V=YN.prototype;_.V.getItemsPath=function(){return"data.expandableItems"};
_.V.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.V.onExpanderItemTapped=function(K){var d=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.M("kevlar_guide_expandable_items_killswitch")&&_.jW(this,function(){_.BA(d.expandableItems)});
K.preventDefault()};
_.V.onCollapserItemTapped=function(K){var d=this;this._setExpanded(!1);this.userToggled=!0;K.preventDefault();this.expandableItems&&!_.M("kevlar_guide_collapsible_items_killswitch")&&_.jW(this,function(){_.LA(d.hostElement)})};
_.V.observeActiveEndpoint=function(){for(var K=this.activeEndpoint,d=this.data,f=this.expandableItems.children,H=0,D=f.length;H<D;H++)f[H].activeEndpoint=K;d&&d.autoExpandCommand&&K&&!this.userToggled&&(f=this.data.autoExpandCommand,d=!(!_.P(f,_.is)||!_.P(K,_.is)||_.P(f,_.is).browseId!==_.P(K,_.is).browseId),K=this.get("commandMetadata.webCommandMetadata.url",K),f=this.get("commandMetadata.webCommandMetadata.url",f),d=d||!!(K&&f&&K.includes(f)),this._setExpanded(d),d&&this.ytLazyListBehavior.fillRemainingListItems())};
YN.prototype.observeActiveEndpoint=YN.prototype.observeActiveEndpoint;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kV.YtLazyListBehavior),_.B("design:type",Object)],YN.prototype,"ytLazyListBehavior",void 0);_.x([_.n8("#expandable-items"),_.B("design:type",HTMLElement)],YN.prototype,"expandableItems",void 0);
_.x([_.A(),_.B("design:type",Object)],YN.prototype,"data",void 0);_.x([_.A({readOnly:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],YN.prototype,"expanded",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],YN.prototype,"initialCount",void 0);_.x([_.A(),_.B("design:type",Object)],YN.prototype,"activeEndpoint",void 0);_.x([_.SP("data","activeEndpoint","canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YN.prototype,"observeActiveEndpoint",null);
YN=_.x([_.Q({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],YN);
_.C(YN,"ytd-guide-collapsible-entry-renderer",function(){if(qLZ!==void 0)return qLZ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return qLZ=K},{mode:_.p8("kevlar_poly_si_batch_j079")?1:2});var jut;var COc;var t8=function(){var K=_.q.apply(this,arguments)||this;K.allVideosCount=0;K.renderGuideEntry=!1;return K};
_.O(t8,_.q);t8.prototype.observeRenderEntry=function(){var K;this.renderGuideEntry=!((K=this.data)==null||!K.alwaysShow)||!!this.allVideosCount};
t8.prototype.observeRenderEntry=t8.prototype.observeRenderEntry;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],t8.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],t8.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],t8.prototype,"activeEndpoint",void 0);_.x([_.A({selector:_.gHB}),_.B("design:type",Object)],t8.prototype,"allVideosCount",void 0);
_.x([_.A(),_.B("design:type",Object)],t8.prototype,"renderGuideEntry",void 0);_.x([_.an("allVideosCount","data.alwaysShow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],t8.prototype,"observeRenderEntry",null);t8=_.x([_.Q({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],t8);
_.C(t8,"ytd-guide-downloads-entry-renderer",function(){if(COc===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);COc=K}K=COc;return K},{mode:1});var ox=function(){var K=_.q.apply(this,arguments)||this;K.youtab=_.M("web_enable_youtab");K.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return K};
_.O(ox,_.q);_.V=ox.prototype;_.V.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]]"}}}}}};
_.V.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var K=this.sectionItems.children,d=0,f=K.length;d<f;d++)K[d].activeEndpoint=this.activeEndpoint}};
_.V.handleAddToGuideSectionAction=function(K){var d=_.P(K,fzz);if(d&&this.data&&(K=d.items,d=d.handlerData,K&&d&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(d)>-1)){d=0;for(var f=K.length;d<f;d++)K[d].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,K[d])}};
_.V.handleRemoveFromGuideSectionAction=function(K){var d=_.P(K,HTK);d&&this.data&&(K=d.guideEntryId,d=d.handlerData,K&&d&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(d)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(K,this.data.sectionItems),this.removeFromCollapsedSection(K,this.data.sectionItems)))};
_.V.removeFromExpandedSection=function(K,d){K=this.getEntryIndexMatchingId(K,d);K!==-1&&this.splice("data.sectionItems",K,1)};
_.V.removeFromCollapsedSection=function(K,d){var f=d.findIndex(function(H){return!!_.P(H,v1t)});
f&&f!==-1&&d[f]&&_.P(d[f],v1t)&&(d=_.P(d[f],v1t).expandableItems)&&(K=this.getEntryIndexMatchingId(K,d),K!==-1&&this.splice("data.sectionItems."+f+".guideCollapsibleEntryRenderer.expandableItems",K,1))};
_.V.getEntryIndexMatchingId=function(K,d){var f=this;return d.findIndex(function(H){return f.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",H)===K})};
ox.prototype.activeEndpointChanged=ox.prototype.activeEndpointChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ox.prototype,"actionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);_.x([_.n8("#section-items"),_.B("design:type",HTMLDivElement)],ox.prototype,"sectionItems",void 0);
_.x([_.n8("#header-entry"),_.B("design:type",Object)],ox.prototype,"headerEntry",void 0);_.x([_.A(),_.B("design:type",Object)],ox.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],ox.prototype,"activeEndpoint",void 0);_.x([_.A(),_.B("design:type",Object)],ox.prototype,"youtab",void 0);_.x([_.SP("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ox.prototype,"activeEndpointChanged",null);
ox=_.x([_.Q({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],ox);
_.C(ox,"ytd-guide-collapsible-section-entry-renderer",function(){if(jut===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);jut=K}K=jut;return K},{mode:1});var x3y;var Lr7;var $N=function(){var K=_.q.apply(this,arguments)||this;K.modernTypography=_.M("web_modern_typography");K.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 K};
_.O($N,_.q);_.V=$N.prototype;
_.V.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}}}}};
_.V.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var K=_.p1(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);K&&K.length===1&&K[0]&&_.p1(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.V.handleResetChannelUnreadCountCommand=function(K){var d;(K=(d=_.P(K,V2U))==null?void 0:d.channelId)&&this.data&&this.data.items&&(d=this.getPathToEntryMatchingId(K))&&(this.set(d+".guideEntryRenderer.count",0),this.set(d+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.V.handleResetSubscriptionsUnreadDotCommand=function(K){var d,f=(d=_.P(K,ShS))==null?void 0:d.targetId,H;f&&(H=this.data)!=null&&H.items&&(K=this.data.items.findIndex(function(D){var S;return((S=D.guideEntryRenderer)==null?void 0:S.targetId)===f}),K<0||this.set("data.items."+K+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.V.getPathToEntryMatchingId=function(K){if(this.data&&this.data.items){var d=this.getEntryIndexMatchingId(K,this.data.items);if(d>-1)return"data.items."+d;for(var f=0;f<this.data.items.length;f++)if(d=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[f]))if(d=this.getEntryIndexMatchingId(K,d),d>-1)return"data.items."+f+".guideCollapsibleEntryRenderer.expandableItems."+d}};
_.V.handleAddToGuideSectionAction=function(K){var d=this;if(_.P(K,fzz)){var f=_.P(K,fzz).items;K=_.P(K,fzz).handlerData;var H,D;f&&K&&((H=this.data)==null?void 0:(D=H.handlerDatas)==null?void 0:D.indexOf(K))>-1&&(f=f.filter(function(S){return(S=d.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",S))&&!d.isGuideItemPresent(S)}),this.unshift.apply(this,["data.items"].concat(_.Me(f))))}};
_.V.isGuideItemPresent=function(K){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(K,this.data.items)!==-1)return!0;var d=this.data.items.find(function(f){return!!f.guideCollapsibleEntryRenderer});
if((d==null?0:d.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(K,d.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.V.getEntryIndexMatchingId=function(K,d){var f=this;return d.findIndex(function(H){return f.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",H)===K})};
_.V.handleRemoveFromGuideSectionAction=function(K){if(_.P(K,HTK)){var d=_.P(K,HTK).guideEntryId;K=_.P(K,HTK).handlerData;var f,H;d&&K&&((f=this.data)==null?void 0:(H=f.handlerDatas)==null?void 0:H.indexOf(K))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(d,this.data.items),this.removeFromCollapsedSection(d,this.data.items))}};
_.V.removeFromExpandedSection=function(K,d){K=this.getEntryIndexMatchingId(K,d);K!==-1&&this.splice("data.items",K,1)};
_.V.removeFromCollapsedSection=function(K,d){var f=d.findIndex(function(H){return!!H.guideCollapsibleEntryRenderer});
f!==-1&&(d=d[f].guideCollapsibleEntryRenderer.expandableItems)&&(K=this.getEntryIndexMatchingId(K,d),K!==-1&&this.splice("data.items."+f+".guideCollapsibleEntryRenderer.expandableItems",K,1))};
_.V.activeEndpointChanged=function(){for(var K=_.E(this.hostElement).querySelector("#items").children,d=0,f=K.length;d<f;d++)K[d].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.V.guideOpenedChanged=function(){for(var K=_.E(this.hostElement).querySelector("#items").children,d=0,f=K.length;d<f;d++)K[d].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
$N.prototype.guideOpenedChanged=$N.prototype.guideOpenedChanged;$N.prototype.activeEndpointChanged=$N.prototype.activeEndpointChanged;$N.prototype.persistentGuideChanged=$N.prototype.persistentGuideChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],$N.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.kV.YtLazyListBehavior),_.B("design:type",Object)],$N.prototype,"ytLazyListBehavior",void 0);_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],$N.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],$N.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$N.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],$N.prototype,"modernTypography",void 0);_.x([_.A(),_.B("design:type",String)],$N.prototype,"type",void 0);_.x([_.A({value:20}),_.B("design:type",Number)],$N.prototype,"initialCount",void 0);_.x([_.A({value:10}),_.B("design:type",Number)],$N.prototype,"targetFramerate",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],$N.prototype,"autoFill",void 0);_.x([_.A({value:50}),_.B("design:type",Number)],$N.prototype,"renderDelay",void 0);
_.x([_.SP("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$N.prototype,"persistentGuideChanged",null);_.x([_.an("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$N.prototype,"activeEndpointChanged",null);_.x([_.an("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$N.prototype,"guideOpenedChanged",null);
$N=_.x([_.Q({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],$N);
_.C($N,"ytd-guide-section-renderer",function(){if(Lr7!==void 0)return Lr7;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Lr7=K},{mode:_.p8("kevlar_poly_si_batch_j073")?1:2});var Bal;var Eu=function(){return _.q.apply(this,arguments)||this};
_.O(Eu,_.q);_.x$.Object.defineProperties(Eu.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Eu.prototype,"rendererBehaviors",void 0);_.x([_.A(),_.B("design:type",Object)],Eu.prototype,"data",void 0);_.x([_.A(),_.W("data.signInButton.buttonRenderer.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],Eu.prototype,"alignByText",null);Eu=_.x([_.Q({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Eu);
_.C(Eu,"ytd-guide-signin-promo-renderer",function(){if(Bal===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);Bal=K}K=Bal;return K},{mode:1});var h8=function(){var K=_.q.apply(this,arguments)||this;K.showFooter=!1;return K};
_.O(h8,_.q);h8.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}}}}};
h8.prototype.attached=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1){d=_.eq().resolve(_.Zd(_.mr));if(!d)return f.jumpTo(0);d.setGuideData(K.hostElement);return _.I(f,0,3)}K.ytLazyListBehavior.initialCount=2;return f.return()})};
h8.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
h8.prototype.dataChanged=h8.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],h8.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.kV.YtLazyListBehavior),_.B("design:type",Object)],h8.prototype,"ytLazyListBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],h8.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],h8.prototype,"showFooter",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],h8.prototype,"autoFill",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],h8.prototype,"dataChanged",null);h8=_.x([_.Q({is:"ytd-guide-renderer",disableElementRegistration:!0})],h8);
_.C(h8,"ytd-guide-renderer",function(){if(x3y!==void 0)return x3y;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return x3y=K},{mode:_.p8("kevlar_poly_si_batch_j073")?1:2});var JVZ;var bj=function(){var K=_.q.apply(this,arguments)||this;K.systemIcons=_.M("kevlar_system_icons");K.frostedGlass=_.M("web_frosted_glass");K.getEndpointForm=function(){return Je7(K.data)};
return K};
_.O(bj,_.q);_.V=bj.prototype;_.V.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.V.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.qQ(this.data.formattedTitle))};
_.V.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.V.onDown=function(){this.interaction.triggerDown()};
_.V.onUp=function(){this.interaction.triggerUp()};
_.V.onTap=function(K){if(this.data.serviceEndpoint){var d;_.M("shorts_controller_retrieve_seedless_sequence_v2")&&((d=_.P(this.data.serviceEndpoint,_.IM))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):BLK(this.data.serviceEndpoint,this);K.preventDefault()}else{var f;((f=this.data)==null?0:f.navigationEndpoint)&&!_.qa(_.qn(K),this.hostElement,["A".toString()])&&_.Zp(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.V.computeActive=function(K,d){if(!K)return!1;var f=K.navigationEndpoint;K=K.serviceEndpoint;if(!f&&!K||!d)return!1;if(f){K=_.P(f,_.is);var H=_.P(d,_.is);if(K&&H)return K.browseId===H.browseId&&K.params===H.params;var D;f=(D=_.P(f.commandMetadata,_.B0))==null?void 0:D.url;var S;d=(S=_.P(d.commandMetadata,_.B0))==null?void 0:S.url;return!(!f||!d||f!==d&&f!==_.ny(d))}return this.isActiveShortsTab(K,d)};
_.V.isActiveShortsTab=function(K,d){d=!!_.P(d,_.IM)||!!_.P(d,_.NV);return(!!_.P(K,_.IM)||!!_.P(K,_.NV))&&d};
_.V.computeTitle=function(K,d){return d?"":_.qQ(K)};
_.x$.Object.defineProperties(bj.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
bj.prototype.onTap=bj.prototype.onTap;bj.prototype.onUp=bj.prototype.onUp;bj.prototype.onDown=bj.prototype.onDown;bj.prototype.onActiveStateChange=bj.prototype.onActiveStateChange;bj.prototype.dataChanged=bj.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],bj.prototype,"ytComponentBehavior",void 0);
_.x([_.l(_.gO),_.B("design:type",Object)],bj.prototype,"ironButtonState",void 0);_.x([_.A(),_.B("design:type",Object)],bj.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],bj.prototype,"activeEndpoint",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],bj.prototype,"noLabels",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.B("design:type",Boolean)],bj.prototype,"isActive",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],bj.prototype,"systemIcons",void 0);_.x([_.n8("yt-interaction"),_.B("design:type",Object)],bj.prototype,"interaction",void 0);_.x([_.W("isActive"),_.B("design:type",Object),_.B("design:paramtypes",[])],bj.prototype,"ariaSelected",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],bj.prototype,"frostedGlass",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bj.prototype,"dataChanged",null);_.x([_.SP("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bj.prototype,"onActiveStateChange",null);_.x([_.VV("down"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bj.prototype,"onDown",null);
_.x([_.VV("up"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bj.prototype,"onUp",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],bj.prototype,"onTap",null);bj=_.x([_.Q({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],bj);
_.C(bj,"ytd-mini-guide-entry-renderer",function(){if(JVZ!==void 0)return JVZ;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return JVZ=K},{mode:_.p8("kevlar_poly_si_batch_j063")?1:2});var suz;var mp=function(){var K=_.q.apply(this,arguments)||this;K.allVideosCount=0;K.noLabels=_.M("kevlar_mini_guide_no_labels");K.frostedGlass=_.M("web_frosted_glass");return K};
_.O(mp,_.q);_.V=mp.prototype;_.V.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.V.visibleChanged=function(){if(this.visible&&!this.data){var K=_.eq().resolve(_.Zd(_.mr));K&&K.setGuideData(this.hostElement)}};
_.V.dataChanged=function(){var K=[],d;if((d=this.data)!=null&&d.items){d=_.y(this.data.items);for(var f=d.next();!f.done;f=d.next()){f=f.value;var H=void 0;if((H=f.guideSectionRenderer)==null?0:H.items)for(H=void 0,f=_.y((H=f.guideSectionRenderer)==null?void 0:H.items),H=f.next();!H.done;H=f.next())if(H=H.value,H.guideEntryRenderer)H=H.guideEntryRenderer,H.isPrimary&&K.push({guideEntryRenderer:H});else if(H.guideCollapsibleSectionEntryRenderer){var D=void 0;((D=_.P(H.guideCollapsibleSectionEntryRenderer.headerEntry,
xg))==null?0:D.isPrimary)&&K.push({guideEntryRenderer:_.P(H.guideCollapsibleSectionEntryRenderer.headerEntry,xg)});if(H=H.guideCollapsibleSectionEntryRenderer.sectionItems)for(H=_.y(H),D=H.next();!D.done;D=H.next()){var S=D.value;D=_.P(S,M2t);var n=void 0;((n=_.P(S,xg))==null?0:n.isPrimary)?K.push({guideEntryRenderer:_.P(S,xg)}):D&&(S=void 0,_.P((S=D)==null?void 0:S.entryRenderer,xg)&&(D.alwaysShow||this.allVideosCount)&&K.push({guideEntryRenderer:_.P(D.entryRenderer,xg)}))}}}}this.miniGuideItems=
K};
_.V.activeEndpointChanged=function(){for(var K=this.items.children,d=0;d<K.length;d++)K[d].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
mp.prototype.activeEndpointChanged=mp.prototype.activeEndpointChanged;mp.prototype.dataChanged=mp.prototype.dataChanged;mp.prototype.visibleChanged=mp.prototype.visibleChanged;_.x([_.l(_.ou),_.B("design:type",Object)],mp.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],mp.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],mp.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],mp.prototype,"ytComponentBehavior",void 0);_.x([_.n8("#items"),_.B("design:type",Object)],mp.prototype,"items",void 0);_.x([_.A(),_.B("design:type",Object)],mp.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],mp.prototype,"visible",void 0);
_.x([_.A(),_.B("design:type",Object)],mp.prototype,"miniGuideItems",void 0);_.x([_.A({selector:_.gHB}),_.B("design:type",Object)],mp.prototype,"allVideosCount",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],mp.prototype,"noLabels",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],mp.prototype,"frostedGlass",void 0);_.x([_.an("visible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mp.prototype,"visibleChanged",null);
_.x([_.an("data","allVideosCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mp.prototype,"dataChanged",null);_.x([_.an("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mp.prototype,"activeEndpointChanged",null);mp=_.x([_.Q({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],mp);
_.C(mp,"ytd-mini-guide-renderer",function(){if(suz===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);suz=K}K=suz;return K},{mode:1});var kxi;var wwt=/^[\x00-\x7F]+$/,lj=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(lj,_.q);_.x$.Object.defineProperties(lj.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var K,d=_.qQ((K=this.data)==null?void 0:K.handle);if(d)return _.rB("@"+d)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var K=_.qQ(this.displayHandle),d,f=_.qQ((d=this.data)==null?void 0:d.handleUrl);if(K&&f)return _.rB(f+K)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var K=_.qQ(this.displayHandle);if(K&&!wwt.test(K)){var d;return(d=this.data)==null?void 0:d.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var K=_.qQ(this.displayHandleUrl),d,f=_.qQ((d=this.data)==null?void 0:d.urlInfoText);if(K&&f)return _.rB(f+" "+K)}}});
_.x([_.A(),_.B("design:type",Object)],lj.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],lj.prototype,"displayHandle",null);_.x([_.W("displayHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],lj.prototype,"displayHandleUrl",null);_.x([_.W("displayHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],lj.prototype,"warningText",null);
_.x([_.W("displayHandleUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],lj.prototype,"urlInfoTextWithUrl",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],lj.prototype,"darkerDarkTheme",void 0);lj=_.x([_.Q({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],lj);
_.C(lj,"ytd-handles-claiming-confirm-dialog-content",function(){if(kxi!==void 0)return kxi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return kxi=K},{mode:1});var ZD5;var Wl=function(){var K=_.q.apply(this,arguments)||this;K.okButtonOverride={style:"mono",type:"outline",size:"M"};return K};
_.O(Wl,_.q);Wl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Wl.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Wl.prototype,"okButtonOverride",void 0);_.x([_.A(),_.B("design:type",Object)],Wl.prototype,"data",void 0);Wl=_.x([_.Q({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Wl);
_.C(Wl,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(ZD5!==void 0)return ZD5;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ZD5=K},{mode:1});var epK;var pwz=/^[\x00-\x7F]+$/,GX=function(){var K=_.q.apply(this,arguments)||this;K.isLoading=!1;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(GX,_.q);GX.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var K;this.selectedHandle=(K=this.handleInput)==null?void 0:K.value;this.onSelectedHandleChanged(this.selectedHandle);_.p1(this.hostElement,"yt-refit-popups-action")}};
_.x$.Object.defineProperties(GX.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.rB("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.rB(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!pwz.test(this.selectedHandle)){var K;return(K=this.data)==null?void 0:K.warningText}}}});
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],GX.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],GX.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],GX.prototype,"selectedHandle",void 0);_.x([_.A(),_.B("design:type",Object)],GX.prototype,"isLoading",void 0);_.x([_.A(),_.B("design:type",Function)],GX.prototype,"onSelectedHandleChanged",void 0);_.x([_.n8("#channel-handle-input"),_.B("design:type",Object)],GX.prototype,"handleInput",void 0);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],GX.prototype,"handleUrlPrefix",null);_.x([_.W("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],GX.prototype,"displayHandle",null);_.x([_.W("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],GX.prototype,"displayHandleUrl",null);_.x([_.W("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],GX.prototype,"warningText",null);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],GX.prototype,"darkerDarkTheme",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);GX=_.x([_.Q({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],GX);
_.C(GX,"ytd-handles-claiming-edit-dialog-content",function(){if(epK!==void 0)return epK;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return epK=K},{mode:1});var KXK;var A8=function(){var K=_.q.apply(this,arguments)||this;K.actionButtonOverride={style:"mono",type:"filled",size:"M"};K.cancelButtonOverride={style:"mono",type:"text",size:"M"};K.selectButtonDisabled=!1;K.isLoading=!1;K.hasSelectedHandleEventListener=!1;K.selectedHandleChanged=function(d){K.selectedHandle=d};
return K};
_.O(A8,_.q);_.V=A8.prototype;_.V.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.V.onDataChanged=function(){var K,d;this.selectedHandle=(d=_.P((K=this.data)==null?void 0:K.inputField,ZfZ))==null?void 0:d.handle};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onCancel=function(){this.selectedHandle="";_.ev(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onSelectHandle=function(){var K=this;if(this.selectedHandle!==void 0){var d;((d=this.data)==null?void 0:d.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(f,H){if(H.newHandleUpdateStatus!==void 0&&H.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&H.newHandleUpdateStatus.errorMessage)_.B9(K.hostElement,_.qQ(H.newHandleUpdateStatus.errorMessage)),
K.isLoading=!1;else{var D;if((D=K.data)==null?0:D.onChannelUpdateSuccess){f=K.data.onChannelUpdateSuccess;var S,n;if(H=(S=_.P(f,_.X3))==null?void 0:(n=S.popup)==null?void 0:n.handlesClaimingConfirmDialogRenderer)H.handle=_.rB(K.selectedHandle);K.ytComponentBehavior.resolveCommand(f);_.ev(K.hostElement,"yt-close-popup-action",[K.is])}else K.isLoading=!1}},
onServerError:function(){var f;K.content&&((f=K.content)==null?0:f.handleInput)&&K.content.handleInput.validate();K.isLoading=!1;_.B9(K.hostElement,_.iB("TRY_AGAIN_LATER"))}}}))}};
_.V.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
A8.prototype.onDataChanged=A8.prototype.onDataChanged;A8.prototype.onSelectedHandleChanged=A8.prototype.onSelectedHandleChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],A8.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],A8.prototype,"actionButtonOverride",void 0);_.x([_.A(),_.B("design:type",Object)],A8.prototype,"cancelButtonOverride",void 0);_.x([_.A(),_.B("design:type",Object)],A8.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",String)],A8.prototype,"selectedHandle",void 0);_.x([_.A(),_.B("design:type",Object)],A8.prototype,"selectButtonDisabled",void 0);_.x([_.A(),_.B("design:type",Object)],A8.prototype,"isLoading",void 0);_.x([_.A(),_.B("design:type",Object)],A8.prototype,"hasSelectedHandleEventListener",void 0);_.x([_.A(),_.B("design:type",Object)],A8.prototype,"handleInput",void 0);
_.x([_.SP("selectedHandle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],A8.prototype,"onSelectedHandleChanged",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],A8.prototype,"onDataChanged",null);_.x([_.n8("ytd-handles-claiming-edit-dialog-content"),_.B("design:type",Object)],A8.prototype,"content",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);A8=_.x([_.Q({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],A8);
_.C(A8,"ytd-handles-claiming-edit-dialog-renderer",function(){if(KXK!==void 0)return KXK;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return KXK=K},{mode:1});var dZ7;var TX=function(){return _.q.apply(this,arguments)||this};
_.O(TX,_.q);_.x$.Object.defineProperties(TX.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null?0:K.handle){var d;return _.rB("@"+_.qQ((d=this.data)==null?void 0:d.handle))}}}});
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],TX.prototype,"formattedHandle",null);_.x([_.A(),_.B("design:type",Object)],TX.prototype,"data",void 0);TX=_.x([_.Q({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],TX);
_.C(TX,"ytd-handles-claiming-radio-option-renderer",function(){if(dZ7!==void 0)return dZ7;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return dZ7=K},{mode:1});var fGt;var Hv7=/^[\x00-\x7F]+$/,rb=function(){var K=_.q.apply(this,arguments)||this;K.initialRadioIndex="-1";K.isLoading=!1;K.darkerDarkTheme=_.M("web_darker_dark_theme");K.maybeSubmitFeedback=function(){K.feedbackSurveyRenderer.submitSurvey()};
return K};
_.O(rb,_.q);rb.prototype.updateSelectedHandleIndexFromBinding=function(K){this.selectedRadioIndex=+K.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(K)};
rb.prototype.selectedHandleChanged=function(K){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var d;this.selectedHandle=(d=this.handleInput)==null?void 0:d.value;this.onSelectedHandleChanged(K)}};
_.x$.Object.defineProperties(rb.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var K;return this.ytRendererBehavior.getSimpleString((K=this.data)==null?void 0:K.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.rB("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.rB(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Hv7.test(this.selectedHandle)){var K;return(K=this.data)==null?void 0:K.warningText}}}});
_.x([_.A(),_.B("design:type",Object)],rb.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],rb.prototype,"initialRadioIndex",void 0);_.x([_.A(),_.B("design:type",Number)],rb.prototype,"selectedRadioIndex",void 0);_.x([_.A(),_.B("design:type",String)],rb.prototype,"selectedHandle",void 0);_.x([_.A(),_.B("design:type",Object)],rb.prototype,"isLoading",void 0);_.x([_.A(),_.B("design:type",Function)],rb.prototype,"onSelectedHandleChanged",void 0);
_.x([_.A(),_.B("design:type",Function)],rb.prototype,"onSelectedRadioIndexChanged",void 0);_.x([_.n8("#channel-handle-input"),_.B("design:type",Object)],rb.prototype,"handleInput",void 0);_.x([_.n8("ytd-feedback-survey-renderer"),_.B("design:type",Object)],rb.prototype,"feedbackSurveyRenderer",void 0);_.x([_.W("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],rb.prototype,"radioButtonLength",null);
_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],rb.prototype,"handleUrlPrefix",null);_.x([_.W("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],rb.prototype,"displayHandle",null);_.x([_.W("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],rb.prototype,"displayHandleUrl",null);_.x([_.W("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],rb.prototype,"warningText",null);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"darkerDarkTheme",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);rb=_.x([_.Q({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],rb);
_.C(rb,"ytd-handles-claiming-select-dialog-content",function(){if(fGt!==void 0)return fGt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return fGt=K},{mode:1});var DZz;var qw=function(){var K=_.q.apply(this,arguments)||this;K.actionButtonOverride={style:"mono",type:"filled",size:"M"};K.cancelButtonOverride={style:"mono",type:"text",size:"M"};K.initialRadioIndex="-1";K.selectButtonDisabled=!1;K.isLoading=!1;K.selectedRadioIndexChanged=function(d){K.selectedRadioIndex=Number(d.detail.value)};
K.selectedHandleChanged=function(d){K.selectedHandle=d.detail.value};
K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(qw,_.q);_.V=qw.prototype;_.V.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.V.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.V.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.p1(this.hostElement,"yt-refit-popups-action")};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.ev(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onSelectHandle=function(){var K=this;if(this.selectedHandle!==void 0){var d;((d=this.data)==null?void 0:d.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(f,H){if(H.newHandleUpdateStatus!==void 0&&H.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&H.newHandleUpdateStatus.errorMessage)_.B9(K.hostElement,_.qQ(H.newHandleUpdateStatus.errorMessage)),
K.isLoading=!1;else{var D;if((D=K.data)==null?0:D.onChannelUpdateSuccess){f=K.data.onChannelUpdateSuccess;H=_.P(f,_.X3);var S;if(H==null?0:(S=H.popup)==null?0:S.handlesClaimingConfirmDialogRenderer)H.popup.handlesClaimingConfirmDialogRenderer.handle=_.rB(K.selectedHandle);K.ytComponentBehavior.resolveCommand(f);_.ev(K.hostElement,"yt-close-popup-action",[K.is])}else K.isLoading=!1}},
onServerError:function(){if(K.selectedRadioIndex===K.radioButtonLength){var f;K.content&&((f=K.content)==null?0:f.handleInput)&&K.content.handleInput.validate()}K.isLoading=!1;_.B9(K.hostElement,_.iB("TRY_AGAIN_LATER"))}}}))}};
_.V.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var K,d;this.selectedHandle=(K=this.content)==null?void 0:(d=K.handleInput)==null?void 0:d.value}else this.selectedRadioIndex>=0&&((K=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(K==null?void 0:K.handle):this.selectedHandle=void 0)};
_.V.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.V.getRadioItem=function(K){if(this.radioButtonLength>K&&K>=0)return _.P(this.data.radioButton[K],Izy)};
_.x$.Object.defineProperties(qw.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.radioButton)||[]).length}}});
qw.prototype.onSelectedHandleChanged=qw.prototype.onSelectedHandleChanged;qw.prototype.onSelectedHandleIndexChanged=qw.prototype.onSelectedHandleIndexChanged;qw.prototype.onDataChanged=qw.prototype.onDataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],qw.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],qw.prototype,"actionButtonOverride",void 0);_.x([_.A(),_.B("design:type",Object)],qw.prototype,"cancelButtonOverride",void 0);
_.x([_.A(),_.B("design:type",Object)],qw.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],qw.prototype,"initialRadioIndex",void 0);_.x([_.A(),_.B("design:type",Number)],qw.prototype,"selectedRadioIndex",void 0);_.x([_.A(),_.B("design:type",String)],qw.prototype,"selectedHandle",void 0);_.x([_.A(),_.B("design:type",Object)],qw.prototype,"selectButtonDisabled",void 0);_.x([_.A(),_.B("design:type",Object)],qw.prototype,"isLoading",void 0);
_.x([_.W("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],qw.prototype,"radioButtonLength",null);_.x([_.n8("ytd-handles-claiming-select-dialog-content"),_.B("design:type",Object)],qw.prototype,"content",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qw.prototype,"onDataChanged",null);
_.x([_.SP("selectedRadioIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qw.prototype,"onSelectedHandleIndexChanged",null);_.x([_.SP("selectedHandle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qw.prototype,"onSelectedHandleChanged",null);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],qw.prototype,"darkerDarkTheme",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);qw=_.x([_.Q({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],qw);
_.C(qw,"ytd-handles-claiming-select-dialog-renderer",function(){if(DZz!==void 0)return DZz;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return DZz=K},{mode:1});var VEw;var SOw;var QM=function(){return _.q.apply(this,arguments)||this};
_.O(QM,_.q);QM.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],QM.prototype,"data",void 0);QM=_.x([_.Q({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],QM);
_.C(QM,"ytd-hotkey-dialog-section-option-renderer",function(){if(SOw!==void 0)return SOw;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return SOw=K},{mode:1});var ySi;var j9=function(){return _.q.apply(this,arguments)||this};
_.O(j9,_.q);j9.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],j9.prototype,"data",void 0);j9=_.x([_.Q({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],j9);
_.C(j9,"ytd-hotkey-dialog-section-renderer",function(){if(ySi!==void 0)return ySi;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ySi=K},{mode:1});var CH=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(CH,_.q);CH.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],CH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],CH.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],CH.prototype,"darkerDarkTheme",void 0);CH=_.x([_.Q({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],CH);
_.C(CH,"ytd-hotkey-dialog-content",function(){if(VEw!==void 0)return VEw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return VEw=K},{mode:1});var nYz;var xN=function(){return _.q.apply(this,arguments)||this};
_.O(xN,_.q);xN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var K=document.querySelector("ytd-hotkey-dialog-content #scrollable");K&&(K.dialogElement=this.hostElement.parentElement)};
xN.prototype.onCloseTap=function(){_.ev(this.hostElement,"yt-close-popup-action")};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],xN.prototype,"data",void 0);xN=_.x([_.Q({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],xN);
_.C(xN,"ytd-hotkey-dialog-renderer",function(){if(nYz!==void 0)return nYz;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return nYz=K},{mode:1});var iv7;var LH=function(){return _.q.apply(this,arguments)||this};
_.O(LH,_.q);LH.prototype.onYtServiceRequestError=function(){if(this.blocked){var K;var d=(K=this.data)==null?void 0:K.defaultServiceEndpoint}else{var f;d=(f=this.data)==null?void 0:f.toggledServiceEndpoint}var H;(d=(H=_.P(d,_.bgs))==null?void 0:H.onFailureAction)&&this.ytComponentBehavior.resolveCommand(d);this.updateBlockState(!this.blocked)};
LH.prototype.onYtToggleButton=function(K){this.updateBlockState(K.detail.toggled)};
LH.prototype.updateBlockState=function(K){if(K!==this.blocked){var d=this.blockedEntityKey;d&&this.ytdReduxBehavior.dispatch(_.nt("blockStateEntity",d,{key:d,blocked:K}));this.set("data.isToggled",K)}};
_.x$.Object.defineProperties(LH.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)}}});
LH.prototype.onYtToggleButton=LH.prototype.onYtToggleButton;LH.prototype.onYtServiceRequestError=LH.prototype.onYtServiceRequestError;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],LH.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],LH.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],LH.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],LH.prototype,"blockedEntityKey",void 0);
_.x([_.A({selectorArgs:["blockedEntityKey"],selector:function(K,d){return _.DR(K.entities,"blockStateEntity",d)}}),
_.B("design:type",Object)],LH.prototype,"blockStateEntity",void 0);_.x([_.W("data","blockStateEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],LH.prototype,"blocked",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],LH.prototype,"onYtServiceRequestError",null);
_.x([_.VV("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],LH.prototype,"onYtToggleButton",null);LH=_.x([_.Q({is:"ytd-block-button",disableElementRegistration:!0})],LH);
_.C(LH,"ytd-block-button",function(){if(iv7!==void 0)return iv7;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return iv7=K},
{mode:1});var cSw;var uMK;var Bl=function(){return _.q.apply(this,arguments)||this};
_.O(Bl,_.q);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Bl.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Bl.prototype,"data",void 0);Bl=_.x([_.Q({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Bl);
_.C(Bl,"ytd-kids-blocklist-picker-item-renderer",function(){if(uMK!==void 0)return uMK;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return uMK=K},{mode:1});var J8=function(){return _.q.apply(this,arguments)||this};
_.O(J8,_.q);J8.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],J8.prototype,"data",void 0);J8=_.x([_.Q({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],J8);
_.C(J8,"ytd-kids-blocklist-picker-content",function(){if(cSw!==void 0)return cSw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return cSw=
K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var aG7;var su=function(){var K=_.q.apply(this,arguments)||this;K.hasAnyRequestSucceeded=!1;K.hasAnyRequestFailed=!1;K.numPendingRequests=0;return K};
_.O(su,_.q);_.V=su.prototype;_.V.attached=function(){this.hostElement.setAttribute("dialog","")};
_.V.onDoneButtonTap=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.V.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.V.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.V.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.V.onPopupClosed=function(K){var d,f;if(((d=K.detail)==null?void 0:(f=d.popup)==null?void 0:f.is)==="tp-yt-paper-dialog"){var H;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((H=this.data)==null?0:H.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.xo(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
su.prototype.onPopupClosed=su.prototype.onPopupClosed;su.prototype.onYtServiceRequestError=su.prototype.onYtServiceRequestError;su.prototype.onYtServiceRequestCompleted=su.prototype.onYtServiceRequestCompleted;su.prototype.onYtServiceRequestSent=su.prototype.onYtServiceRequestSent;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],su.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],su.prototype,"data",void 0);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],su.prototype,"onYtServiceRequestSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],su.prototype,"onYtServiceRequestCompleted",null);
_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],su.prototype,"onYtServiceRequestError",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],su.prototype,"onPopupClosed",null);su=_.x([_.Q({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],su);
_.C(su,"ytd-kids-blocklist-picker-renderer",function(){if(aG7!==void 0)return aG7;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return aG7=K},{mode:1});var IGZ;var UZz;var kN=function(){return _.q.apply(this,arguments)||this};
_.O(kN,_.q);kN.prototype.setTip=function(K){var d=this;this.data&&(this.tip=fBS(KMZ.getInstance(),K,this.data),_.jW(this,function(){_.Zp(d.hostElement,"yt-refit")}))};
kN.prototype.clearTip=function(){this.tip=void 0};
kN.prototype.computeHidden=function(K){return!K};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],kN.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.B("design:type",Boolean)],kN.prototype,"hidden",void 0);_.x([_.A(),_.B("design:type",Object)],kN.prototype,"tip",void 0);kN=_.x([_.Q({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],kN);
_.C(kN,"ytd-menu-popup-tip-renderer",function(){if(UZz!==void 0)return UZz;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);
return UZz=K},{mode:1});var RkK;var wb=function(){var K=_.q.apply(this,arguments)||this;K.useIcons=!1;K.systemIcons=_.M("kevlar_system_icons");K.useListItemStyles=_.M("web_list_item_style_for_menu_items");return K};
_.O(wb,_.q);_.V=wb.prototype;_.V.onFocus=function(){var K;(K=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||K.focus()};
_.V.onTap=function(){var K=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(K&&_.P(K,_.DE))this.componentBehavior.resolveCommand(K),this.updateToggledStateInEntity();else if(K){this.componentBehavior.resolveCommand(K)||_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}});var d;((d=_.P(K,_.y$))==null?void 0:d.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.V.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.V.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.V.updateToggledStateInEntity=function(){var K=this.data.toggleMenuServiceItemEntityKey,d=!this.data.isToggled;K&&this.ytdReduxBehavior.dispatch(_.nt("toggleMenuServiceItemEntity",K,{key:K,isToggled:d}))};
_.V.computeIcon=function(K,d,f){return(K=K?f:d)&&K.iconType?_.Hv(K.iconType):""};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.isIconActive=function(K){return!_.M("toggle_menu_active_icon_killswitch")&&K};
_.x$.Object.defineProperties(wb.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((K=this.data)==null?0:K.isToggled)?(d=this.data)==null?void 0:d.toggledText:(f=this.data)==null?void 0:f.defaultText}}});
wb.prototype.toggledStateEntityChanged=wb.prototype.toggledStateEntityChanged;wb.prototype.onYtServiceRequestCompleted=wb.prototype.onYtServiceRequestCompleted;wb.prototype.onTap=wb.prototype.onTap;wb.prototype.onFocus=wb.prototype.onFocus;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],wb.prototype,"componentBehavior",void 0);
_.x([_.l(_.ou),_.B("design:type",Object)],wb.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],wb.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],wb.prototype,"useIcons",void 0);_.x([_.A({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.B("design:type",String)],wb.prototype,"icon",void 0);
_.x([_.A({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(K,d){return _.DR(K.entities,"toggleMenuServiceItemEntity",d)}}),
_.B("design:type",Object)],wb.prototype,"toggleMenuServiceItemEntity",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],wb.prototype,"systemIcons",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],wb.prototype,"useListItemStyles",void 0);_.x([_.VV("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wb.prototype,"onFocus",null);
_.x([_.W("data.isToggled"),_.B("design:type",Object),_.B("design:paramtypes",[])],wb.prototype,"toggleButtonText",null);_.x([_.VV("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wb.prototype,"onTap",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wb.prototype,"onYtServiceRequestCompleted",null);
_.x([_.SP("toggleMenuServiceItemEntity.isToggled","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wb.prototype,"toggledStateEntityChanged",null);wb=_.x([_.Q({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],wb);
_.C(wb,"ytd-toggle-menu-service-item-renderer",function(){if(RkK!==void 0)return RkK;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return RkK=K},{mode:1});var FXw;var Z1=function(){return _.q.apply(this,arguments)||this};
_.O(Z1,_.q);Z1.prototype.onFocus=function(){var K;(K=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||K.focus()};
_.x$.Object.defineProperties(Z1.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Xa(this.data.iconUrl)}}});
Z1.prototype.onFocus=Z1.prototype.onFocus;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Z1.prototype,"rendererBehavior",void 0);_.x([_.l(_.SY.YtEndpointBehavior),_.B("design:type",Object)],Z1.prototype,"ytEndpointBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Z1.prototype,"data",void 0);_.x([_.VV("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z1.prototype,"onFocus",null);
_.x([_.W("data.iconUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],Z1.prototype,"imageSource",null);Z1=_.x([_.Q({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Z1);
_.C(Z1,"ytd-menu-custom-icon-item-renderer",function(){if(FXw!==void 0)return FXw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return FXw=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});_.sP(_.Op,"yt-list-item-view-model",{props:{data:_.rs,isMenuItem:_.rs,isCompact:_.rs,onTap:_.JJ,trailingAccessory:_.JJ,hideSelectionTextChevron:_.rs,disabled:_.rs,inPopup:_.rs,disableHorizontalPadding:_.rs,isOverlay:_.rs}});var e9=function(){var K=_.q.apply(this,arguments)||this;K.disableBackdropFilter=_.M("web_disable_backdrop_filter");return K};
_.O(e9,_.q);_.V=e9.prototype;
_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.V.computeAriaLabel=function(K){return K};
_.V.onPopupOpened=function(){this.items.selected=0;for(var K=_.y(_.E(this.items).children),d=K.next();!d.done;d=K.next())d.value.popupPositionTarget=this.positionTarget;if(K=this.popupTip||void 0)K.setTip(this.source||""),this.source=void 0;this.veData&&(K=_.te())&&_.Ay(K,[this.veData])};
_.V.onPopupClosed=function(){var K=this.popupTip||void 0;K&&K.clearTip()};
_.V.onIronActivate=function(K){this.shouldPersist(K)||_.ev(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(K=_.te())&&_.rN(K,this.veData)};
_.V.shouldPersist=function(K){var d,f;if(((d=K.detail)==null?void 0:d.selected)===void 0||(f=this.data)==null||!f.items)return!1;var H,D;return!((D=(H=this.data.items[K.detail.selected])==null?void 0:H.toggleMenuServiceItemRenderer)==null||!D.persistentOnMenuPopup)};
_.V.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(K){return K.menuNavigationItemRenderer?!!K.menuNavigationItemRenderer.icon:K.menuServiceItemRenderer?!!K.menuServiceItemRenderer.icon:K.menuConditionalServiceItemRenderer?!!K.menuConditionalServiceItemRenderer.icon:K.menuConditionalNavigationItemRenderer?!!K.menuConditionalNavigationItemRenderer.icon:K.toggleMenuServiceItemRenderer?!!K.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
e9.prototype.onPopupClosed=e9.prototype.onPopupClosed;e9.prototype.onPopupOpened=e9.prototype.onPopupOpened;_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],e9.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],e9.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],e9.prototype,"veData",void 0);_.x([_.A({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.B("design:type",String)],e9.prototype,"ariaLabel",void 0);_.x([_.A({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],e9.prototype,"useIcons",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],e9.prototype,"disableBackdropFilter",void 0);_.x([_.n8("#items"),_.B("design:type",Object)],e9.prototype,"items",void 0);_.x([_.n8("ytd-menu-popup-tip-renderer"),_.B("design:type",Object)],e9.prototype,"popupTip",void 0);_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e9.prototype,"onPopupOpened",null);
_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e9.prototype,"onPopupClosed",null);e9=_.x([_.Q({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],e9);
_.C(e9,"ytd-menu-popup-renderer",function(){if(IGZ!==void 0)return IGZ;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return IGZ=K},{mode:1});var zkS;var XIK=_.C8(function(K){K=_.jP(K,{icon:void 0});var d=K.data;K=K.icon;var f=function(){return d().iconBadgeText},H={},D=_.SC("yt-spec-icon-badge-shape",function(){a:switch(d().iconBadgeType){case "notification":var S="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":S="yt-spec-icon-badge-shape--type-cart";break a;default:S=""}return S},function(){a:switch(d().iconBadgeStyle){case "overlay":var S="yt-spec-icon-badge-shape--style-overlay";
break a;default:S=""}return S},(H["yt-spec-icon-badge-shape--text-size-small"]=function(){var S=f();
return!!((S==null?0:S.length)&&S.length>2)},H));
return _.U("yt-icon-badge-shape",null,_.U(_.X,{cond:K,then:function(S){return _.U("div",{class:D},_.U("div",{class:"yt-spec-icon-badge-shape__icon"},_.U(_.U5,{icon:S})),_.U(_.X,{cond:f,then:function(n){return _.U("div",{class:"yt-spec-icon-badge-shape__badge"},n)}}))}}))},"jg");
XIK.idomCompat=!0;_.sP(XIK,"yt-icon-badge-shape",{props:{data:_.rs,icon:_.rs}});var pH=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};K.unseenCount=0;K.isOverlay=!1;return K};
_.O(pH,_.q);_.V=pH.prototype;_.V.attached=function(){var K=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(d){K.onServiceWorkerMessage(d)})};
_.V.onDataChanged=function(){this.isAttached&&!this.JSC$18238_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18238_lastData=this.data};
_.V.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.V.computeIcon=function(){var K,d;return(K=this.data)==null?void 0:(d=K.icon)==null?void 0:d.iconType};
_.V.onServiceWorkerMessage=function(K){K.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.V.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.P(this.data.updateUnseenCountEndpoint,_.y$)&&_.P(this.data.updateUnseenCountEndpoint,_.y$).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.V.handleUpdateNotificationsUnseenCountAction=function(K){var d=this;K=_.P(K,D_Z);K!=null&&K.unseenCount&&K.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(K.unseenCount),_.oc.addLowPriorityJob(function(){d.data.updateUnseenCountEndpoint&&d.ytComponentBehavior.resolveCommand(d.data.updateUnseenCountEndpoint)},K.timeoutMs))};
_.V.onClick=function(){_.Zp(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var K=_.p1(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),d=this.data.menuRequest;K&&K.length===1&&K[0]?_.ev(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):d&&this.ytComponentBehavior.resolveCommand(d)};
_.V.handleTopbarMenuClosedAction=function(K){K==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.V.toggleIconState=function(K){this.iconButton&&(this.iconButton.pressed=K)};
_.V.sendUnseenCountRequest=function(K){var d=this;_.va(_.oc,function(){d.ytComponentBehavior.resolveCommand(K)})};
_.V.updateCountUI=function(K){this.set("unseenCount",K<9?K:"9+")};
_.x$.Object.defineProperties(pH.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
pH.prototype.handleUpdateNotificationsUnseenCountAction=pH.prototype.handleUpdateNotificationsUnseenCountAction;pH.prototype.onDataChanged=pH.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],pH.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.r8),_.B("design:type",Object)],pH.prototype,"ytdOpenPopupBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],pH.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],pH.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],pH.prototype,"unseenCount",void 0);_.x([_.A(),_.B("design:type",Object)],pH.prototype,"isOverlay",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],pH.prototype,"showTooltips",void 0);_.x([_.n8("yt-icon-button"),_.B("design:type",Object)],pH.prototype,"iconButton",void 0);
_.x([_.W("unseenCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],pH.prototype,"showNotificationCount",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pH.prototype,"onDataChanged",null);_.x([_.VV("yt-update-notifications-unseen-count-action"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],pH.prototype,"handleUpdateNotificationsUnseenCountAction",null);
pH=_.x([_.Q({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],pH);
_.C(pH,"ytd-notification-topbar-button-renderer",function(){if(zkS!==void 0)return zkS;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return zkS=K},{mode:_.p8("kevlar_poly_si_batch_j025")?1:2});var vYc;var Kz=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return K};
_.O(Kz,_.q);Kz.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}}}}}};
Kz.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Kz.prototype.onDarkModeToggled=function(K){this.dark=K};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Kz.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Kz.prototype,"data",void 0);_.x([_.A({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],Kz.prototype,"dark",void 0);
Kz=_.x([_.Q({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Kz);
_.C(Kz,"yt-pdg-buy-flow-header-renderer",function(){if(vYc!==void 0)return vYc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return vYc=K},{mode:1});var MEZ;var PZi;var dp=function(){var K=_.q.apply(this,arguments)||this;K.immediateValue=0;K.isDarkTheme=!1;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(dp,_.q);_.V=dp.prototype;_.V.created=function(){_.hf.requestAvailability()};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.dataChanged=function(){var K=_.E(this.hostElement).querySelector("#color-slider");K.immediateValue&&this.updateSliderKnobAndGradientStyles(K.immediateValue);this.data.notches[0].knobColorArgb&&_.f8(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.hG(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.mD("HTML_DIR")==="rtl"&&_.E(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.V.onSliderImmediateChange=function(){var K=_.E(this.hostElement).querySelector("#color-slider");K.dragging&&(K.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(K.immediateValue),this.updateSliderKnobAndGradientStyles(K.immediateValue)),this.updateSliderAria())};
_.V.onSliderChange=function(){var K=_.E(this.hostElement).querySelector("#color-slider");K.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(K.immediateValue),this.updateSliderKnobAndGradientStyles(K.immediateValue));this.updateSliderAria()};
_.V.updateSliderAria=function(){var K=_.E(this.hostElement).querySelector("#color-slider"),d=_.E(this.hostElement).querySelector("#color-slider");d=_.qQ(this.data.notches[d.immediateValue].tierValue);_.lo()&&_.Zp(this.hostElement,"iron-announce",{text:d});K.setAttribute("aria-valuetext",d)};
_.V.updateSuperThanksSelectedTierEntity=function(K){if(K!==this.immediateValue){var d,f,H=this==null?void 0:(d=this.data)==null?void 0:(f=d.superThanksSelectedTierEntity)==null?void 0:f.key;H&&H.length>0&&this.ytdReduxBehavior.dispatch(_.nt("superThanksSelectedTierEntity",H,{key:H,index:K}))}};
_.V.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.V.updateSliderKnobAndGradientStyles=function(K){this.immediateValue=K;K=this.data.notches[K];if(K==null?0:K.knobColorArgb)var d={"--ytd-pdg-color-slider-knob-color":_.hG(K.knobColorArgb)};(K==null?0:K.linearGradientCssStyle)&&d!==null&&(d=Object.assign({},d,{"--ytd-pdg-color-slider-active-color":K==null?void 0:K.linearGradientCssStyle}));d!==null&&_.f8(this.hostElement,d)};
dp.prototype.onSliderChange=dp.prototype.onSliderChange;dp.prototype.onSliderImmediateChange=dp.prototype.onSliderImmediateChange;dp.prototype.dataChanged=dp.prototype.dataChanged;_.x([_.A(),_.B("design:type",Object)],dp.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],dp.prototype,"immediateValue",void 0);_.x([_.A(),_.B("design:type",Number)],dp.prototype,"maxMarkers",void 0);
_.x([_.A({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:p65}),_.B("design:type",Object)],dp.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],dp.prototype,"isDarkTheme",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],dp.prototype,"ytdReduxBehavior",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dp.prototype,"dataChanged",null);
_.x([_.VV("immediate-value-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dp.prototype,"onSliderImmediateChange",null);_.x([_.VV("change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dp.prototype,"onSliderChange",null);dp=_.x([_.Q({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],dp);
_.C(dp,"ytd-pdg-color-slider-renderer",function(){if(PZi!==void 0)return PZi;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return PZi=K},{mode:1});var gYK;var Ovc;var fz=null;
_.vP({is:"ytd-comment-input",_template:function(){if(Ovc!==void 0)return Ovc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Ovc=K},
behaviors:[_.d9B.YtHostElementBehavior,_.u4,_.hj.YtComponentBehavior,_.s9.YtRendererstamperBehavior,_.M5s.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 _.$L}},
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",_.Dm(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;_.fT();this.focus()},
detached:function(){document.removeEventListener("tap",_.Dm(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(K){K=K.detail;K=K.isCustomEmoji?K.shortcuts[0]:K.emojiId;var d=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(d,K);this.maybeUpdateTextDirection_();_.Zp(this.hostElement,"input")},
getInputRange_:function(){var K=_.ic();if(K){K=K.getBrowserRangeObject();for(var d=K.commonAncestorContainer;d;){if(d===this.getEditableTextArea_())return K;d=d.parentNode}}K=this.getEditableTextArea_();K=_.Y1(K,K.childNodes.length);K.select();return K.getBrowserRangeObject()},
insertTextWithEmojis_:function(K,d,f){(d=this.emojiManager.createDocumentFragment(d,!0,!1,f===void 0?!0:f))&&d.childNodes.length!==0&&(K.collapsed||K.deleteContents(),f=d.lastChild,K.insertNode(d),_.fEN(f).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var K=_.ic();if(K){var d=K.JSC$9248_getStartNode(),f=K.JSC$9248_getEndNode();if(swl(d)&&swl(f)){var H=K.JSC$9248_getStartOffset(),D;if(_.ps&&d.nodeType===Node.ELEMENT_NODE&&(D=_.RGt(d)))_.Y1(D,0).select();else{D=wo(d)?d:_.bW(d,wo);var S=wo(f)?f:_.bW(f,wo);if(D||S)if(K.isCollapsed()){if(d.nodeType===Node.TEXT_NODE){K=!0;H===d.length&&(K=!1);if(fz==="end"||fz==="right")K=!1;d=d.parentNode;K=[].concat(_.Me(d.parentNode.childNodes)).indexOf(d)+(K?0:1);_.Y1(d.parentNode,K).select()}}else D?
D.previousSibling&&D.previousSibling.length>0?_.tl(f,K.JSC$9248_getEndOffset(),D.previousSibling,D.previousSibling.length-1).select():(d=document.createTextNode("\u200b"),D.parentNode.insertBefore(d,D),_.tl(f,K.JSC$9248_getEndOffset(),d,0).select()):S&&(S.nextSibling&&S.nextSibling.length>0?_.tl(d,K.JSC$9248_getStartOffset(),S.nextSibling,1).select():(f=document.createTextNode("\u200b"),S.parentNode.insertBefore(f,S.nextSibling),_.tl(d,K.JSC$9248_getStartOffset(),f,f.length).select()));fz=null}}else fz=
null}else fz=null},
leftKeyPressed_:function(){fz="left"},
rightKeyPressed_:function(){fz="right"},
endKeyPressed_:function(){fz="end"},
maybeDeleteChip_:function(){var K=Kqw(!0);if(K){var d=_.ic(),f=d.JSC$9248_getStartNode();d=d.JSC$9248_getStartOffset();_.M_(f,d,K,K.childNodes.length).select()}},
maybeBackspaceChip_:function(){var K=Kqw(!1);if(K){var d=_.ic(),f=d.JSC$9248_getStartNode();d=d.JSC$9248_getStartOffset();_.M_(f,d,K,0).select()}},
maybeBackspaceChipWordMode_:function(K){var d=_.ic();if(d.isCollapsed()){var f=d.JSC$9248_getStartNode();d=d.JSC$9248_getStartOffset();var H=dY5(f,d,!0);H&&(_.M_(f,d,H,0).select(),document.execCommand("delete"),K.preventDefault(),K.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(K){var d=_.ic();if(d.isCollapsed()){var f=d.JSC$9248_getStartNode();d=d.JSC$9248_getStartOffset();var H=dY5(f,d,!1);H&&(_.M_(f,d,H,H.childNodes.length).select(),document.execCommand("delete"),K.preventDefault(),K.stopImmediatePropagation())}},
onContentClick:function(K){K.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(K){K.defaultPrevented||K.currentTarget.tagName==="YTD-COMMENT-INPUT"&&wo(K.target)&&K.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.E(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.E(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(K,d){K=w0y(K,this.emojiManager,d).cloneNode(!0);for(d=K.firstChild;d;)if(d.nodeType!==1)d=d.nextSibling;else switch(d.tagName){case "BR":var f=_.F_();_.OBB(f,d);d=f.nextSibling;break;case "DIV":(f=d.lastChild)&&d.nextSibling&&_.MO(_.F_(),f);d.previousSibling&&(d.previousSibling.nodeType===1||d.previousSibling.nodeType===3&&!d.previousSibling.textContent.endsWith("\n"))&&_.vc(_.F_(),d);f&&f.nodeName==="BR"&&_.FE(f);f=d;d.hasChildNodes()?(d=d.firstChild,
_.Nz2(f)):(d=d.nextSibling,_.FE(f));break;default:d=d.nextSibling}return fEt(K)},
setTextAreaValue:function(K){K||(K="");var d=this.getEditableFormattedString_();d.text="";this.getEditableTextArea_().innerText="";typeof K==="string"&&(K={runs:[{text:K}]});d.text=K},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();fz=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var K=this.getEditableTextArea_();K&&(_.Y1(K,K.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.mD("HTML_DIR")==="rtl"){var K=this.getEditableTextArea_(),d=this.getTextAreaValue()!==""?"auto":"rtl";K.setAttribute("dir",d)}},
handleInputEvent_:function(){var K=null;if(this.isEmojiButtonDisplayed){var d=this.getInputRange_();d&&(K=this.emojiInput.retrieveTextBeforeRange(d))}this.insertText_(K,!0);this.updateCharCount_();K=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=K.scrollHeight>K.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var K=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:K})},
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(K){this.isEmojiButtonDisplayed&&(K.preventDefault(),K.stopImmediatePropagation(),K=K.clipboardData.getData("text/plain"),this.insertText_(K,!1,!1),_.Zp(this.hostElement,"input"))},
insertText_:function(K,d,f){d=d===void 0?!1:d;f=f===void 0?!0:f;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&K){var H=this.getInputRange_().cloneRange();this.emojiManager&&H&&(d&&this.emojiInput.offsetStartOfRangeBy(H,K.length),this.insertTextWithEmojis_(H,K,f),kwZ(this.getEditableTextArea_().lastChild)||(H=this.getInputRange_().cloneRange()),H&&(this.emojiInput.updateSuggestions(H,K),this.updateSuggestionOffset_(H)))}},
getSimpleString:_.qQ,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(K){return K?"focused":"not-focused"},
computePlaceholderText_:function(K){return this.getSimpleString(K)},
computeEditableText_:function(K){return this.getSimpleString(K)},
onPrefilledContentDismissed_:function(K){K.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(K,d){K?this.fire("yt-autonav-pause-focus"):d!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(K){var d=this.getEditableTextArea_();[].concat(_.Me(K.dataTransfer.items)).forEach(function(f){f.kind==="string"&&f.type.match("^text/plain")&&f.getAsString(function(H){d.appendChild(document.createTextNode(H))})});
K.preventDefault()},
preventDefault_:function(K){K.preventDefault()},
onSuggestionInsert_:function(K){this.insertTextWithEmojis_(K.detail.range,K.detail.text)},
onEmojiSuggestionClick_:function(K){this.emojiInput.insertSuggestion(K.detail)},
updateSuggestionOffset_:function(K){if(this.emojiInput&&_.E(this.emojiInput).querySelector("#dropdown")){var d=this.getEditableTextArea_().getBoundingClientRect().bottom,f=K.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(d-f)+5;d=this.getEditableTextArea_().getBoundingClientRect().left;K=K.getBoundingClientRect().left-d;_.E(this.emojiInput).querySelector("#dropdown").style.marginLeft=K+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.mn("yt-post"));return this.localStorage}});var Hi=function(){var K=_.q.apply(this,arguments)||this;K.currentCommentOptionIndex=0;K.isEmojiPickerDisplayed=!1;K.emojiManager=_.$L;K.isUgcEmpty=!1;K.userGeneratedCommentChangedHandler=function(){_.Zp(K.hostElement,"ytd-pdg-user-generated-comment-changed");K.isEmojiYtdCommentInputEnabled&&(K.isUgcEmpty=!K.ytdCommentInputEl.getTextAreaValue())};
K.pasteHandler=function(d){d.preventDefault();d.stopImmediatePropagation();var f;if(d=(f=d.clipboardData)==null?void 0:f.getData("text/plain"))f=document.getSelection().getRangeAt(0),f.collapsed||f.deleteContents(),d=document.createTextNode(d),f.insertNode(d),f.selectNodeContents(d),f.collapse(!1),d=window.getSelection(),d.removeAllRanges(),d.addRange(f)};
K.onDocumentClick=function(d){if(K.isEmojiPickerDisplayed){var f,H,D;!(d.target instanceof Node)||(f=d.composedPath())!=null&&f.includes(K.editableTextEl)||(H=d.composedPath())!=null&&H.includes(K.emojiButtonEl)||(D=d.composedPath())!=null&&D.includes(K.emojiPickerEl)||(K.isEmojiPickerDisplayed=!1)}};
return K};
_.O(Hi,_.q);_.V=Hi.prototype;_.V.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.V.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.V.detached=function(){var K;(K=this.contentEl)==null||K.removeEventListener("input",this.userGeneratedCommentChangedHandler);var d;(d=this.contentEl)==null||d.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.V.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.V.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var K;this.contentEl.textContent=this.rendererBehavior.getSimpleString((K=this.data)==null?void 0:K.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.V.reloadEmojis=function(){this.emojiPickerEl&&_.P(this.emojiPicker,_.CR6)&&this.emojiPickerEl.updateEmojiCategories()};
_.V.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.f8(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.V.handleBackgroundColorStyling=function(){var K;if((K=this.currentCommentOption)==null?0:K.commentBackgroundColorArgb){var d;_.f8(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.hG((d=this.currentCommentOption)==null?void 0:d.commentBackgroundColorArgb)})}else _.f8(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.V.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var K;(K=this.contentEl)==null||K.focus()}};
_.V.onEditButtonClick=function(K){var d=document.getSelection();d&&this.contentEl&&(K.stopPropagation(),K.preventDefault(),d.selectAllChildren(this.contentEl),d.collapseToEnd())};
_.V.onContentDrop=function(K){var d=this;if(K.dataTransfer){K=_.y(K.dataTransfer.items);for(var f=K.next();!f.done;f=K.next())f=f.value,f.kind==="string"&&f.type.match("^text/plain")&&f.getAsString(function(H){var D;(D=d.contentEl)==null||D.appendChild(document.createTextNode(H))})}};
_.V.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.V.getUserGeneratedCommentText=function(){var K,d=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(K=this.contentEl)==null?void 0:K.textContent;return d?d.trim():""};
_.V.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.V.onEmojiSelect=function(K){this.ytdCommentInputEl.onEmojiSelect(K)};
_.x$.Object.defineProperties(Hi.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.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 K;return!((K=this.currentCommentOption)==null||!K.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var K;if(_.P((K=this.currentCommentOption)==null?void 0:K.chipRenderer,_.dh4)){var d;return _.P((d=this.currentCommentOption)==null?void 0:d.chipRenderer,_.dh4)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var K,d;return((K=this.data)==null?0:K.commentOptionRenderers)?_.P((d=this.data)==null?void 0:d.commentOptionRenderers[this.superThanksSelectedTierEntity.index],hez):void 0}var f,H;return((f=this.data)==null?0:f.commentOptionRenderers)?_.P((H=this.data)==null?void 0:H.commentOptionRenderers[this.currentCommentOptionIndex],hez):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var K;return this.rendererBehavior.getSimpleString((K=this.data)==null?void 0:K.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var K;return this.rendererBehavior.getSimpleString((K=this.data)==null?void 0:K.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var K,d;return(d=_.P((K=this.data)==null?void 0:K.commentDialog,_.W4t))==null?void 0:d.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var K,d;return(d=_.P((K=this.data)==null?void 0:K.commentDialog,_.W4t))==null?void 0:d.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var K,d;return(d=_.P((K=this.data)==null?void 0:K.commentDialog,_.W4t))==null?void 0:d.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(d=_.P((K=this.data)==null?void 0:K.commentDialog,_.W4t))==null?void 0:d.emojiPicker;if(!_.P(f,_.CR6)||!_.P(f,_.CR6).categories)return!1;K=function(S){return S.emojiPickerCategoryRenderer?S.emojiPickerCategoryRenderer.emojiIds&&S.emojiPickerCategoryRenderer.emojiIds.length>0:S.emojiPickerUpsellCategoryRenderer?S.emojiPickerUpsellCategoryRenderer.emojis&&S.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var H,D;return((H=_.P(f,_.CR6))==null?0:(D=H.categories)==null?0:D.find(K))?!0:!1}}});
Hi.prototype.onEmojiSelect=Hi.prototype.onEmojiSelect;Hi.prototype.dataChanged=Hi.prototype.dataChanged;Hi.prototype.currentCommentOptionChanged=Hi.prototype.currentCommentOptionChanged;_.x([_.l(_.ou),_.B("design:type",Object)],Hi.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Hi.prototype,"rendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.n8("#content-dom-if"),_.B("design:type",_.PP)],Hi.prototype,"contentDomIfEl",void 0);_.x([_.n8("#content-no-emojis"),_.B("design:type",HTMLElement)],Hi.prototype,"contentEl",void 0);_.x([_.n8("#container"),_.B("design:type",HTMLElement)],Hi.prototype,"containerEl",void 0);_.x([_.n8("#comment-chip-container"),_.B("design:type",HTMLElement)],Hi.prototype,"paidCommentChipContainerEl",void 0);_.x([_.n8("#text-input"),_.B("design:type",HTMLElement)],Hi.prototype,"editableTextEl",void 0);
_.x([_.n8("#emoji-button"),_.B("design:type",HTMLElement)],Hi.prototype,"emojiButtonEl",void 0);_.x([_.n8("#emoji-picker > yt-emoji-picker-renderer"),_.B("design:type",Object)],Hi.prototype,"emojiPickerEl",void 0);_.x([_.n8("#text-input > ytd-comment-input"),_.B("design:type",Object)],Hi.prototype,"ytdCommentInputEl",void 0);_.x([_.A(),_.B("design:type",Object)],Hi.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Hi.prototype,"currentCommentOptionIndex",void 0);
_.x([_.A({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:p65}),_.B("design:type",Object)],Hi.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.A(),_.B("design:type",Object)],Hi.prototype,"isEmojiPickerDisplayed",void 0);_.x([_.A(),_.B("design:type",Object)],Hi.prototype,"emojiManager",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Hi.prototype,"isUgcEmpty",void 0);
_.x([_.SP("currentCommentOption"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hi.prototype,"currentCommentOptionChanged",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hi.prototype,"dataChanged",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hi.prototype,"isEmojiYtdCommentInputEnabled",null);
_.x([_.W("data.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hi.prototype,"title",null);_.x([_.W("data.authorText"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hi.prototype,"channelName",null);_.x([_.W("data.commentOptionRenderers","currentCommentOption"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hi.prototype,"shouldShowPaidCommentChipRenderer",null);
_.x([_.W("data.commentOptionRenderers","currentCommentOption"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hi.prototype,"paidCommentChipRenderer",null);_.x([_.W("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hi.prototype,"currentCommentOption",null);
_.x([_.W("data.defaultCommentText","superThanksSelectedTierEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hi.prototype,"commentText",null);_.x([_.W("data.placeholderText"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hi.prototype,"placeholderText",null);_.x([_.W("data.commentDialog.commentDialogRenderer.editableText"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hi.prototype,"editableText",null);
_.x([_.W("data.commentDialog.commentDialogRenderer.emojiButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hi.prototype,"emojiButton",null);_.x([_.W("data.commentDialog.commentDialogRenderer.emojiPicker"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hi.prototype,"emojiPicker",null);
_.x([_.W("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hi.prototype,"isEmojiButtonDisplayed",null);_.x([_.VV("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Hi.prototype,"onEmojiSelect",null);Hi=_.x([_.Q({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Hi);
_.C(Hi,"ytd-pdg-comment-preview-renderer",function(){if(gYK!==void 0)return gYK;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return gYK=K},{mode:2});var NJP;var DO=function(){var K=_.q.apply(this,arguments)||this;K.selected=!1;return K};
_.O(DO,_.q);_.V=DO.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.V.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.V.dataChanged=function(){this.data&&(_.eZ(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.f8(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.hG(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.hG(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.V.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.V.onClick=function(){this.logClick()};
_.V.onKeyboardSelect=function(){_.Zp(this.hostElement,"tap");this.onClick()};
_.V.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
DO.prototype.onClick=DO.prototype.onClick;DO.prototype.selectedChanged=DO.prototype.selectedChanged;DO.prototype.dataChanged=DO.prototype.dataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],DO.prototype,"componentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.u4),_.B("design:type",Object)],DO.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.l(_.WP),_.B("design:type",Object)],DO.prototype,"ironSelectableBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],DO.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],DO.prototype,"shownThumbnail",void 0);_.x([_.A(),_.B("design:type",Object)],DO.prototype,"basePriceText",void 0);_.x([_.A(),_.B("design:type",Object)],DO.prototype,"purchaseCommand",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],DO.prototype,"selected",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DO.prototype,"dataChanged",null);_.x([_.SP("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DO.prototype,"selectedChanged",null);_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DO.prototype,"onClick",null);
DO=_.x([_.Q({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],DO);
_.C(DO,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(NJP!==void 0)return NJP;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return NJP=K},{mode:1});var VH=function(){var K=_.q.apply(this,arguments)||this;K.selectedItemIndex=0;K.buyButtonDisabled=!1;return K};
_.O(VH,_.q);_.V=VH.prototype;
_.V.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]]"}}}}}};
_.V.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var K;var d=(K=_.P(this.data.colorSlider,E1c))==null?void 0:K.notches[this.selectedItemIndex].purchaseCommand}else{var f;d=(f=_.P(this.data.selectableItemButtons[this.selectedItemIndex],m_P))==null?void 0:f.purchaseCommand}if(d){K=_.P(d,_.mVN);K.productData||(K.productData={});var H;K.productData={pdgData:{commentMessageText:(H=this.commentPreviewRenderer)==null?void 0:H.getUserGeneratedCommentText()}};
_.Zp(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(d)}}};
_.V.dataChanged=function(){if(this.data){_.$L.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.KKJ(_.$L,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.$L.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var K;this.buyButtonDisabled=!((K=_.P(this.data.commentPreview,bTZ))==null||!K.placeholderText);this.updatePriceSelectorStatus();var d;if((d=this.data)==null?0:d.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;K=[];this.data.preloadImages&&(K=this.data.preloadImages);
K=K.map(function(f){return _.kA(f.thumbnails,1920)});
K=_.y(K);for(d=K.next();!d.done;d=K.next())(d=d.value)&&_.MnX(d).thenCatch(function(){_.h3(Error("jl"))})}};
_.V.superThanksSelectedTierEntityChanged=function(){var K;(this==null?void 0:(K=this.superThanksSelectedTierEntity)==null?void 0:K.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.V.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.V.updatePriceSelectorStatus=function(){this.isColorSlider?(_.E(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.E(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.E(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.E(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.V.closeBuyFlow=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.V.onUserGeneratedContentChanged=function(){var K;this.buyButtonDisabled=!((K=this.commentPreviewRenderer)==null?0:K.getUserGeneratedCommentText())};
_.V.updateSelectedItemIndexFromBinding=function(K){this.selectedItemIndex=K.detail.value};
_.x$.Object.defineProperties(VH.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.disclaimerText)}}});
VH.prototype.onUserGeneratedContentChanged=VH.prototype.onUserGeneratedContentChanged;VH.prototype.closeBuyFlow=VH.prototype.closeBuyFlow;VH.prototype.selectedItemIndexChanged=VH.prototype.selectedItemIndexChanged;VH.prototype.superThanksSelectedTierEntityChanged=VH.prototype.superThanksSelectedTierEntityChanged;VH.prototype.dataChanged=VH.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],VH.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],VH.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],VH.prototype,"selectedItemIndex",void 0);_.x([_.A(),_.B("design:type",Boolean)],VH.prototype,"isColorSlider",void 0);
_.x([_.A(),_.B("design:type",Object)],VH.prototype,"buyButtonDisabled",void 0);_.x([_.A({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:p65}),_.B("design:type",Object)],VH.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.n8("ytd-pdg-comment-preview-renderer"),_.B("design:type",Object)],VH.prototype,"commentPreviewRenderer",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],VH.prototype,"ytdReduxBehavior",void 0);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VH.prototype,"dataChanged",null);_.x([_.SP("superThanksSelectedTierEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VH.prototype,"superThanksSelectedTierEntityChanged",null);_.x([_.SP("selectedItemIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VH.prototype,"selectedItemIndexChanged",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VH.prototype,"closeBuyFlow",null);_.x([_.VV("ytd-pdg-user-generated-comment-changed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VH.prototype,"onUserGeneratedContentChanged",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],VH.prototype,"isDisclaimerTextShown",null);
VH=_.x([_.Q({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],VH);
_.C(VH,"yt-super-vod-buy-flow-content-renderer",function(){if(MEZ!==void 0)return MEZ;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return MEZ=K},{mode:1});var YOU;var Sz=function(){var K=_.q.apply(this,arguments)||this;K.lottieAnimationRef={};return K};
_.O(Sz,_.q);_.V=Sz.prototype;_.V.created=function(){_.hf.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Dm(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.V.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Zp(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.V.detached=function(){this.autoCloseJobId&&_.oc.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Dm(this,this.onPopupIronOverlayOpened))};
_.V.dataChanged=function(){var K=this;this.data&&this.data.autoCloseDelay&&(_.ev(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.pZ(_.oc,function(){K.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.f8(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.V.onDOMLoadedLottie=function(){var K=this,d,f,H=Number((d=this.data)==null?void 0:(f=d.autoCloseDelay)==null?void 0:f.seconds)||0;this.fadeOutJobId=_.pZ(_.oc,function(){K.lottiePlayerEl.classList.add("fadeout")},(H-.25)*1E3);
this.autoCloseJobId=_.pZ(_.oc,function(){K.closePopup()},H*1E3)};
_.V.openPopup=function(){this.ironOverlayBehavior.open()};
_.V.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.ev(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.fd(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.eq().resolve(_.pQ).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.oc.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.oc.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.V.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var K,d;(K=this.lottieAnimationRef)==null||(d=K.lottieEl)==null||d.destroy();K=this.data.lottie;var f,H;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:K.url+"_"+Math.random(),path:K.url,autoplay:!0,loop:(H=(f=K.settings)==null?void 0:f.loop)!=null?H:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.x$.Object.defineProperties(Sz.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var K,d;return!!((K=this.data)==null?0:(d=K.lottie)==null?0:d.url)}}});
Sz.prototype.maybeInitializeLottie=Sz.prototype.maybeInitializeLottie;Sz.prototype.dataChanged=Sz.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Sz.prototype,"rendererBehavior",void 0);_.x([_.l(_.GH),_.B("design:type",Object)],Sz.prototype,"ironOverlayBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Sz.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Sz.prototype,"lottiePlayerProps",void 0);
_.x([_.A(),_.B("design:type",Object)],Sz.prototype,"lottieAnimationRef",void 0);_.x([_.n8("ytd-lottie-player"),_.B("design:type",HTMLElement)],Sz.prototype,"lottiePlayerEl",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sz.prototype,"dataChanged",null);_.x([_.W("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Sz.prototype,"hasLottieAnimation",null);
_.x([_.SP("data.lottie.url"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sz.prototype,"maybeInitializeLottie",null);Sz=_.x([_.Q({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Sz);
_.C(Sz,"ytd-desktop-image-overlay-renderer",function(){if(YOU!==void 0)return YOU;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return YOU=K},{mode:1});var tEU;var yH=function(){return _.q.apply(this,arguments)||this};
_.O(yH,_.q);_.V=yH.prototype;_.V.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"}}}}};
_.V.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",_.Dm(this,this.closePopup))};
_.V.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Dm(this,this.closePopup))};
_.V.dataChanged=function(){_.p1(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.P(this.data.header,$_5)&&(this.hasBackgroundBanner=!!_.P(this.data.header,$_5).backgroundBanner)};
_.V.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Dm(this,this.closePopup))};
_.V.closePopup=function(){this.data&&this.data.onCloseCommand&&_.dN(this.hostElement,[this.data.onCloseCommand])};
yH.prototype.handleBuyflowSelectionSubmitted=yH.prototype.handleBuyflowSelectionSubmitted;yH.prototype.dataChanged=yH.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],yH.prototype,"data",void 0);
_.x([_.A({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],yH.prototype,"hasBackgroundBanner",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yH.prototype,"dataChanged",null);_.x([_.VV("yt-pdg-buy-flow-selection-submitted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yH.prototype,"handleBuyflowSelectionSubmitted",null);
yH=_.x([_.Q({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],yH);
_.C(yH,"ytd-pdg-buy-flow-renderer",function(){if(tEU!==void 0)return tEU;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return tEU=K},{mode:1});var oY5;var nz=function(){var K=_.q.apply(this,arguments)||this;K.isOpen=!1;K.isPlaylistCreated=!1;return K};
_.O(nz,_.q);_.V=nz.prototype;_.V.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.V.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Zp(this.hostElement,"yt-refit")};
_.V.onCreateTap=function(){var K=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.dN(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(d,f){if(!_.M("killswitch_ep_in_create_playlist_response")&&(f==null?0:f.actions))for(d=_.y(f.actions),f=d.next();!f.done;f=d.next())f=f.value,_.P(f,_.Pd)&&K.ytComponentBehavior.resolveCommand(f)}}]),this.isPlaylistCreated=!0)};
_.V.onKeydown=function(K){if(K.keyCode===13)this.onCreateTap()};
_.V.onServiceRequestCompleted=function(K){K.stopPropagation();_.ev(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.V.computePrivacyBadge=function(K){return K?[{metadataBadgeRenderer:K}]:[]};
nz.prototype.onServiceRequestCompleted=nz.prototype.onServiceRequestCompleted;nz.prototype.onKeydown=nz.prototype.onKeydown;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],nz.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],nz.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],nz.prototype,"isOpen",void 0);
_.x([_.A(),_.B("design:type",Object)],nz.prototype,"isPlaylistCreated",void 0);_.x([_.A({value:{REQUIRED_LABEL:_.iB("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.iB("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.B("design:type",Object)],nz.prototype,"addToStrings",void 0);_.x([_.A({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.B("design:type",Array)],nz.prototype,"privacyBadge",void 0);
_.x([_.n8("#privacy-input"),_.B("design:type",Object)],nz.prototype,"privacyInput",void 0);_.x([_.n8("#name-input"),_.B("design:type",Object)],nz.prototype,"nameInput",void 0);_.x([_.VV("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],nz.prototype,"onKeydown",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],nz.prototype,"onServiceRequestCompleted",null);
nz=_.x([_.Q({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],nz);
_.C(nz,"ytd-add-to-playlist-create-renderer",function(){if(oY5!==void 0)return oY5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return oY5=K},{mode:1});var $Z5;var EY7;var iK=function(){var K=_.q.apply(this,arguments)||this;K.transferState="TRANSFER_STATE_UNKNOWN";return K};
_.O(iK,_.q);iK.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
iK.prototype.onCheckboxChange=function(K){var d=this;this.data&&_.mx(this,"yt-playlist-checkbox-changed",function(){var f=_.Qm(K).checked?d.data.addToPlaylistServiceEndpoint:d.data.removeFromPlaylistServiceEndpoint;f&&_.eq().resolve(_.pQ).resolveCommand(f,{form:{element:d.hostElement}});_.M("dl_playlist_killswitch")||d.transferState!=="TRANSFER_STATE_UNKNOWN"&&d.transferState!=="TRANSFER_STATE_FAILED"&&d.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:d.data.playlistId,action:"ACTION_SYNC"}})},
100)};
iK.prototype.computeIconType=function(K){return K?"yt-icons:"+K.toLowerCase():null};
iK.prototype.dataChanged=iK.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],iK.prototype,"data",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],iK.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],iK.prototype,"ytComponentBehavior",void 0);_.x([_.n8("#checkbox"),_.B("design:type",HTMLInputElement)],iK.prototype,"checkbox",void 0);
_.x([_.A({selector:_.$o,selectorArgs:["data.playlistId"]}),_.B("design:type",String)],iK.prototype,"transferState",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iK.prototype,"dataChanged",null);iK=_.x([_.Q({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],iK);
_.C(iK,"ytd-playlist-add-to-option-renderer",function(){if(EY7!==void 0)return EY7;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return EY7=K},{mode:1});_.Zx(HdU);_.fK(HdU,"ytd-menu-title-renderer",{propNames:["data"]});var ci=function(){var K=_.q.apply(this,arguments)||this;K.addToStrings={ADD_TO_DROPDOWN_LABEL:_.iB("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};K.closeButtonAriaLabel=_.iB("SBOX_INAPPROPRIATE_CANCEL");K.dialog=_.M("desktop_add_to_playlist_renderer_dialog_popup");return K};
_.O(ci,_.q);_.V=ci.prototype;_.V.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"}}}};
_.V.onPopupOpened=function(){_.pU(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.V.onPopupClosed=function(){_.pU(this.playlists,"scrollable",!1)};
_.V.computeAriaLabel=function(){var K;if(this==null?0:(K=this.data)==null?0:K.actions){K=_.y(this.data.actions);for(var d=K.next();!d.done;d=K.next())if(d=d.value,d.menuTitleRenderer)return _.qQ(d.menuTitleRenderer.title)}};
_.V.onTapClose=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.x$.Object.defineProperties(ci.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var K;if(this==null?0:(K=this.data)==null?0:K.actions){K=_.y(this.data.actions);for(var d=K.next();!d.done;d=K.next())if(d=d.value,d.menuTitleRenderer)return d.menuTitleRenderer}return!1}}});
ci.prototype.onPopupClosed=ci.prototype.onPopupClosed;ci.prototype.onPopupOpened=ci.prototype.onPopupOpened;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],ci.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ci.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],ci.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],ci.prototype,"addToStrings",void 0);_.x([_.A({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.B("design:type",String)],ci.prototype,"ariaLabel",void 0);_.x([_.A(),_.B("design:type",String)],ci.prototype,"closeButtonAriaLabel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ci.prototype,"dialog",void 0);
_.x([_.n8("#playlists"),_.B("design:type",HTMLElement)],ci.prototype,"playlists",void 0);_.x([_.n8("ytd-add-to-playlist-create-renderer"),_.B("design:type",Object)],ci.prototype,"createRenderer",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ci.prototype,"menuTitleRenderer",null);_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ci.prototype,"onPopupOpened",null);
_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ci.prototype,"onPopupClosed",null);ci=_.x([_.Q({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],ci);
_.C(ci,"ytd-add-to-playlist-renderer",function(){if($Z5!==void 0)return $Z5;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return $Z5=K},{mode:1});var hkw;var uK=function(){var K=_.q.apply(this,arguments)||this;K.isPlaylistEditComplete=!1;K.isCollabEngagementDisabled=!1;K.closeButtonAriaLabel=_.iB("SBOX_INAPPROPRIATE_CANCEL");K.saveButton={title:_.iB("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"};K.onValueChanged=function(){K.updateSaveButtonState();K.computeCollabEngagementDisabled()};
return K};
_.O(uK,_.q);_.V=uK.prototype;_.V.attached=function(){this.JSC$18294_scroller&&(this.JSC$18294_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18294_scroller.attached&&typeof this.JSC$18294_scroller.attached==="function"&&this.JSC$18294_scroller.attached())};
_.V.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.V.onPopupClosed=function(){this.reset()};
_.V.close=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.V.onClickSave=function(){var K=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var d=[];this.nameInput.value!==null&&d.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&d.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var f=Number(this.privacyInput.value);isNaN(f)||d.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:f})}this.votingInput.value!==null&&(f=this.votingInput.value)&&d.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:f});if(d.length>0){var H;_.P((H=this.data)==null?void 0:H.updateSettingsEndpoint,_.OI).actions=d;var D;if((D=this.data)==null?0:D.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){K.close()}}}),this.isPlaylistEditComplete=!0}}};
_.V.computePrivacyBadge=function(K){return K?[{metadataBadgeRenderer:K}]:[]};
_.V.computeEditorData=function(K){var d,f;return K==null?void 0:(d=K.sections)==null?void 0:(f=d[0])==null?void 0:f.playlistSettingsEditorCasualSectionRenderer};
_.V.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.V.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}}}}}};
_.V.computeAriaLabel=function(){var K,d,f,H=(K=this.data)==null?void 0:(d=K.sections)==null?void 0:(f=d[0])==null?void 0:f.playlistSettingsEditorCasualSectionRenderer;return _.qQ(H==null?void 0:H.title)};
_.V.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"}))};
_.V.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.V.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.V.isNameChanged=function(){var K,d,f;return(((K=this.editorData)==null?void 0:(d=K.name)==null?void 0:(f=d.textInputFormFieldRenderer)==null?void 0:f.value)||"")!==(this.nameInput.value||"")};
_.V.isDescriptionChanged=function(){var K,d,f;return(((K=this.editorData)==null?void 0:(d=K.description)==null?void 0:(f=d.textInputFormFieldRenderer)==null?void 0:f.value)||"")!==(this.descriptionInput.value||"")};
_.V.isPrivacyChanged=function(){var K,d,f,H,D,S,n,u;return((n=(K=this.editorData)==null?void 0:(d=K.privacy)==null?void 0:(f=d.dropdownFormFieldRenderer)==null?void 0:(H=f.dropdown)==null?void 0:(D=H.dropdownRenderer)==null?void 0:(S=D.entries)==null?void 0:S.find(function(a){var R;return a==null?void 0:(R=a.privacyDropdownItemRenderer)==null?void 0:R.isSelected}))==null?void 0:(u=n.privacyDropdownItemRenderer)==null?void 0:u.int32Value)!==this.privacyInput.value};
_.V.isVotingChanged=function(){var K,d,f,H,D,S,n,u;return((n=(K=this.editorData)==null?void 0:(d=K.voting)==null?void 0:(f=d.dropdownFormFieldRenderer)==null?void 0:(H=f.dropdown)==null?void 0:(D=H.dropdownRenderer)==null?void 0:(S=D.entries)==null?void 0:S.find(function(a){var R;return a==null?void 0:(R=a.privacyDropdownItemRenderer)==null?void 0:R.isSelected}))==null?void 0:(u=n.privacyDropdownItemRenderer)==null?void 0:u.int32Value)!==this.votingInput.value};
uK.prototype.onPopupClosed=uK.prototype.onPopupClosed;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],uK.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],uK.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],uK.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],uK.prototype,"data",void 0);_.x([_.A({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.B("design:type",Array)],uK.prototype,"privacyBadge",void 0);_.x([_.A({computed:"computeEditorData(data)"}),_.B("design:type",Object)],uK.prototype,"editorData",void 0);_.x([_.A(),_.B("design:type",Object)],uK.prototype,"isPlaylistEditComplete",void 0);_.x([_.A(),_.B("design:type",Object)],uK.prototype,"isCollabEngagementDisabled",void 0);
_.x([_.A({value:{REQUIRED_LABEL:_.iB("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.iB("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.B("design:type",Object)],uK.prototype,"addToStrings",void 0);_.x([_.A({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.B("design:type",String)],uK.prototype,"ariaLabel",void 0);_.x([_.A(),_.B("design:type",String)],uK.prototype,"closeButtonAriaLabel",void 0);
_.x([_.A(),_.B("design:type",Object)],uK.prototype,"saveButton",void 0);_.x([_.n8("#name-input"),_.B("design:type",Object)],uK.prototype,"nameInput",void 0);_.x([_.n8("#description-input"),_.B("design:type",Object)],uK.prototype,"descriptionInput",void 0);_.x([_.n8("#privacy-input"),_.B("design:type",Object)],uK.prototype,"privacyInput",void 0);_.x([_.n8("#voting-input"),_.B("design:type",Object)],uK.prototype,"votingInput",void 0);
_.x([_.n8("#scroller"),_.B("design:type",Object)],uK.prototype,"JSC$18294_scroller",void 0);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uK.prototype,"onPopupClosed",null);_.x([_.A(),_.B("design:type",Object)],uK.prototype,"onValueChanged",void 0);uK=_.x([_.Q({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],uK);
_.C(uK,"ytd-playlist-settings-editor-renderer",function(){if(hkw===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);hkw=K}K=hkw;return K},{mode:1});var bvc;_.Na("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var aA=function(){return _.q.apply(this,arguments)||this};
_.O(aA,_.q);_.V=aA.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.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 K=this.get("data.nextButton.buttonRenderer.navigationEndpoint");K&&(this.nextNavigationEndpoint=K,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.V.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 K={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",K)}}};
_.V.onPopupOpened=function(K){K.detail!==this&&K.detail!==this.hostElement||!_.M("enable_premium_voluntary_pause")||_.ev(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.V.onNextButtonTap=function(){var K=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);K&&this.ytdOpenPopupBehavior.openPopup(K)};
_.V.updateSelectedResponseIndexFromBinding=function(K){this.selectedResponseIndex=K.detail.value};
aA.prototype.onPopupOpened=aA.prototype.onPopupOpened;aA.prototype.onSelectedResponseIndexChange=aA.prototype.onSelectedResponseIndexChange;aA.prototype.dataChanged=aA.prototype.dataChanged;_.x([_.l(_.r8),_.B("design:type",Object)],aA.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],aA.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Number)],aA.prototype,"selectedResponseIndex",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aA.prototype,"dataChanged",null);_.x([_.SP("selectedResponseIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aA.prototype,"onSelectedResponseIndexChange",null);
_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],aA.prototype,"onPopupOpened",null);aA=_.x([_.Q({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],aA);
_.C(aA,"ytd-red-cancel-survey-renderer",function(){if(bvc!==void 0)return bvc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return bvc=K},{mode:1});var mZy;var IA=function(){var K=_.q.apply(this,arguments)||this;K.closeButtonAriaLabel=_.iB("SBOX_INAPPROPRIATE_CANCEL");return K};
_.O(IA,_.q);IA.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
IA.prototype.onClickClose=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],IA.prototype,"rendererStamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],IA.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],IA.prototype,"closeButtonAriaLabel",void 0);IA=_.x([_.Q({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],IA);
_.C(IA,"ytd-search-filter-options-dialog-renderer",function(){if(mZy!==void 0)return mZy;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return mZy=K},{mode:1});var lGZ;var Sxl=function(){return function(K){K=K.availabilityType;return K===void 0||K==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||K==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var UW=function(){var K=_.q.apply(this,arguments)||this;K.qualityOptions=[];K.upsellOptions=[];K.showUpsellSection=!1;K.darkerDarkTheme=_.M("web_darker_dark_theme");K.rememberSettingsChecked=!1;return K};
_.O(UW,_.q);_.V=UW.prototype;_.V.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}}}}};
_.V.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.V.updateQualityOptions=function(){if(this.formats===void 0)_.ev(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var K=[],d=[];this.showUpsellSection=!1;for(var f=_.y(this.formats),H=f.next();!H.done;H=f.next())(H=H.value)&&(H.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?d.push(H):K.push(H));K.length&&(this.qualityOptions=Vsz(K));d.length&&(this.showUpsellSection=!0,this.upsellOptions=Vsz(d))}};
_.V.updateRememberString=function(){if(this.downloadQualityPickerEntity)var K=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var d;K=(d=this.data)==null?void 0:d.premiumRememberSettingString}else{var f;K=(f=this.data)==null?void 0:f.rememberSettingString}K=K===void 0?_.iB("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):K;this.rememberSettingsCheckboxRenderer={title:_.kJ(K),disabled:!1}};
_.V.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.x$.Object.defineProperties(UW.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var K;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(K=this.data)==null?void 0:K.qualityFormats}}});
UW.prototype.updateRememberString=UW.prototype.updateRememberString;UW.prototype.updateQualityOptions=UW.prototype.updateQualityOptions;UW.prototype.dataChanged=UW.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],UW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],UW.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],UW.prototype,"data",void 0);
_.x([_.l(_.ou),_.B("design:type",Object)],UW.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Boolean)],UW.prototype,"selectedUpsellQuality",void 0);_.x([_.A({computed:"computeIcon_(data.premiumIcon)",value:""}),_.B("design:type",String)],UW.prototype,"premiumIcon",void 0);_.x([_.A({selector:k2Z,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.B("design:type",Object)],UW.prototype,"downloadQualityPickerEntity",void 0);
_.x([_.A(),_.B("design:type",Array)],UW.prototype,"qualityOptions",void 0);_.x([_.A(),_.B("design:type",Array)],UW.prototype,"upsellOptions",void 0);_.x([_.A(),_.B("design:type",Object)],UW.prototype,"showUpsellSection",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],UW.prototype,"darkerDarkTheme",void 0);_.x([_.A(),_.B("design:type",Object)],UW.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.x([_.n8("#remember-settings"),_.B("design:type",HTMLInputElement)],UW.prototype,"rememberSettingsCheckbox",void 0);_.x([_.A(),_.B("design:type",Object)],UW.prototype,"rememberSettingsChecked",void 0);_.x([_.A(),_.B("design:type",Function)],UW.prototype,"onRememberSettingsCheckedChanged",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UW.prototype,"dataChanged",null);
_.x([_.SP("downloadQualityPickerEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UW.prototype,"updateQualityOptions",null);_.x([_.SP("selectedUpsellQuality"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UW.prototype,"updateRememberString",null);UW=_.x([_.Q({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],UW);
_.C(UW,"ytd-download-quality-selector-content",function(){if(lGZ!==void 0)return lGZ;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return lGZ=K},{mode:1});var WXi;var RA=function(){var K=_.q.apply(this,arguments)||this;K.selectedUpsellQuality=!1;K.qualityOptions=[];K.darkerDarkTheme=_.M("web_darker_dark_theme");K.useUpsellDismissAlternate=_.M("use_not_now_dl_upsell_dismiss_cta");K.shouldShowAlternateUpsellDimiss=!1;K.rememberSettings=!1;K.rememberSettingsChecked=!1;K.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};K.rememberSettingsCheckedChanged=function(d){K.rememberSettingsChecked=d};
return K};
_.O(RA,_.q);_.V=RA.prototype;
_.V.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.kJ(_.iB("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.kJ(_.iB("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.kJ(_.iB("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.kJ(_.iB("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.V.updateQualityOptions=function(){this.formats===void 0?_.ev(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=Vsz(this.formats)};
_.V.onQualityOptionsSelect=function(K){if(this.qualityOptions&&K){K!==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 d=_.y(this.qualityOptions.entries()),f=d.next();!f.done;f=
d.next()){f=_.y(f.value);var H=f.next().value;f=f.next().value;var D=void 0,S=void 0;if(((D=f)==null?void 0:(S=D.settingsRadioOptionRenderer)==null?void 0:S.id)===K){this.selectedQualityIndex=H;K=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((K=this.formats[H])==null?void 0:K.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.V.onClickSubmit=function(){var K;if((K=this.downloadButtonRenderer)==null||!K.isDisabled){var d,f;K=(f=(d=this.data)==null?void 0:d.onSubmitEndpoint)!=null?f:{};var H,D;if(this.formats&&(((H=_.P(K,_.DS))==null?0:H.videoId)||((D=_.P(K,_.VF))==null?0:D.playlistId))){var S,n,u,a,R,F;d={formatType:(a=(S=this.formats)==null?void 0:(n=S[(u=this.selectedQualityIndex)!=null?u:0])==null?void 0:n.format)!=null?a:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(R=this.getOfflineEndpoint(K))==null?void 0:(F=R.actionParams)==null?void 0:F.settingsAction)};this.getOfflineEndpoint(K).actionParams=d;this.ytComponentBehavior.resolveCommand(K)}_.ev(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.V.onClickUpsell=function(){var K;if((K=this.upsellButtonRenderer)==null||!K.isDisabled){var d,f;K=(f=(d=this.data)==null?void 0:d.upsellEndpoint)!=null?f:{};this.ytComponentBehavior.resolveCommand(K);_.ev(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);d="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var H,D,S,n;d=(n=(H=this.formats)==null?void 0:(D=H[(S=this.selectedQualityIndex)!=null?S:0])==null?void 0:D.format)!=null?n:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:d}})}};
_.V.onClickClose=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.V.getOfflineSettingsAction=function(K,d){return K?d===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":d:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.V.getOfflineEndpoint=function(K){return _.P(K,_.DS)?_.P(K,_.DS):_.P(K,_.VF)};
_.x$.Object.defineProperties(RA.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.kJ(_.iB("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var K;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(K=this.data)==null?void 0:K.qualityFormats}}});
RA.prototype.updateQualityOptions=RA.prototype.updateQualityOptions;RA.prototype.dataChanged=RA.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],RA.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],RA.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],RA.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Number)],RA.prototype,"selectedQualityIndex",void 0);_.x([_.A(),_.B("design:type",Object)],RA.prototype,"selectedUpsellQuality",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],RA.prototype,"ytdReduxBehavior",void 0);
_.x([_.A({selector:k2Z,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.B("design:type",Object)],RA.prototype,"downloadQualityPickerEntity",void 0);_.x([_.A(),_.B("design:type",Array)],RA.prototype,"qualityOptions",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],RA.prototype,"darkerDarkTheme",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],RA.prototype,"useUpsellDismissAlternate",void 0);
_.x([_.A(),_.B("design:type",Object)],RA.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.x([_.A(),_.B("design:type",Object)],RA.prototype,"downloadButtonRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],RA.prototype,"upsellButtonRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],RA.prototype,"cancelButtonRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],RA.prototype,"upsellCancelButtonRenderer",void 0);_.x([_.A(),_.B("design:type",Object)],RA.prototype,"rememberSettings",void 0);
_.x([_.A(),_.B("design:type",Object)],RA.prototype,"rememberSettingsChecked",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RA.prototype,"dataChanged",null);_.x([_.SP("downloadQualityPickerEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RA.prototype,"updateQualityOptions",null);RA=_.x([_.Q({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],RA);
_.C(RA,"ytd-download-quality-selector-renderer",function(){if(WXi!==void 0)return WXi;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return WXi=K},{mode:1});var GTt;var F6=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(F6,_.q);F6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
F6.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"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],F6.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],F6.prototype,"darkerDarkTheme",void 0);_.x([_.A({computed:"computeIcon_(data.infoIcon)"}),_.B("design:type",Object)],F6.prototype,"infoIcon",void 0);
_.x([_.A({computed:"computeIcon_(data.warningIcon)"}),_.B("design:type",Object)],F6.prototype,"warningIcon",void 0);F6=_.x([_.Q({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],F6);
_.C(F6,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(GTt!==void 0)return GTt;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return GTt=K},{mode:1});var ASU;var zq=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(zq,_.q);zq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zq.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"}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],zq.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],zq.prototype,"darkerDarkTheme",void 0);zq=_.x([_.Q({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],zq);
_.C(zq,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(ASU!==void 0)return ASU;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return ASU=K},{mode:1});var TJy;var X6=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(X6,_.q);X6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
X6.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"}}}}};
X6.prototype.onServiceRequestSentOrCompleted=function(K,d){d&&d.actions&&d.actions.length>0&&_.ev(this.hostElement,"yt-close-popup-action",[this.is])};
X6.prototype.onServiceRequestSentOrCompleted=X6.prototype.onServiceRequestSentOrCompleted;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],X6.prototype,"darkerDarkTheme",void 0);_.x([_.A(),_.B("design:type",Object)],X6.prototype,"data",void 0);
_.x([_.VV("yt-service-request-completed"),_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],X6.prototype,"onServiceRequestSentOrCompleted",null);X6=_.x([_.Q({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],X6);
_.C(X6,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(TJy!==void 0)return TJy;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return TJy=K},{mode:1});var rSi;var vi=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");K.submitButtonDisabled=!0;return K};
_.O(vi,_.q);_.V=vi.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.V.onDataChanged=function(){var K,d,f;if(((K=this.data)==null?void 0:(d=K.confirmButton)==null?void 0:(f=d.buttonRenderer)==null?void 0:f.isDisabled)!==void 0){var H,D,S;this.submitButtonDisabled=(H=this.data)==null?void 0:(D=H.confirmButton)==null?void 0:(S=D.buttonRenderer)==null?void 0:S.isDisabled}};
_.V.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.V.updateSubmitButtonDisabledFromBinding=function(K){this.submitButtonDisabled=K.detail.value};
_.V.updateSubmitButtonDisabledFromConfirmCheckbox=function(K){this.submitButtonDisabled=!K.detail.value};
vi.prototype.onDataChanged=vi.prototype.onDataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],vi.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],vi.prototype,"darkerDarkTheme",void 0);
_.x([_.A(),_.B("design:type",Object)],vi.prototype,"submitButtonDisabled",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vi.prototype,"onDataChanged",null);vi=_.x([_.Q({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],vi);
_.C(vi,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(rSi!==void 0)return rSi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return rSi=K},{mode:1});var qOl;var M4=function(){return _.q.apply(this,arguments)||this};
_.O(M4,_.q);_.x$.Object.defineProperties(M4.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var K,d,f;return((K=this.data)==null?void 0:K.title)+" "+((d=this.data)==null?void 0:d.metadataPrimary)+" "+((f=this.data)==null?void 0:f.metadataSecondary)}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],M4.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],M4.prototype,"data",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],M4.prototype,"ariaLabel",null);M4=_.x([_.Q({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],M4);
_.C(M4,"ytd-compact-product-list-item-renderer",function(){if(qOl!==void 0)return qOl;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return qOl=K},{mode:1});var QTi;var Pi=function(){return _.q.apply(this,arguments)||this};
_.O(Pi,_.q);Pi.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]]"}}}}}};
_.x$.Object.defineProperties(Pi.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Pi.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Pi.prototype,"data",void 0);Pi=_.x([_.Q({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Pi);
_.C(Pi,"ytd-compact-product-list-renderer",function(){if(QTi!==void 0)return QTi;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return QTi=K},{mode:1});var jTt;var gp=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(gp,_.q);_.V=gp.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V.getBackgroundUrl=function(){var K=this.get("data.headerImage.thumbnails");return K?"url("+_.kA(K,this.hostElement.clientWidth)+")":""};
_.V.onDataChanged=function(){var K=this.getBackgroundUrl();K&&(this.header.style.backgroundImage=K);K=_.te();var d=_.YZ(),f=this.get("data.trackingParams");f&&d&&K&&_.lB(K,d,_.RG(f));K=_.y(this.hostElement.querySelectorAll("yt-img-shadow"));for(d=K.next();!d.done;d=K.next())d.value.onShow()};
_.V.onPopupClosed=function(K){_.Qm(K).localName==="ytd-membership-post-cancel-renderer"&&_.ev(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
gp.prototype.onPopupClosed=gp.prototype.onPopupClosed;gp.prototype.onDataChanged=gp.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],gp.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],gp.prototype,"darkerDarkTheme",void 0);
_.x([_.n8("#header"),_.B("design:type",HTMLDivElement)],gp.prototype,"header",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gp.prototype,"onDataChanged",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gp.prototype,"onPopupClosed",null);gp=_.x([_.Q({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],gp);
_.C(gp,"ytd-membership-post-cancel-renderer",function(){if(jTt!==void 0)return jTt;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return jTt=K},{mode:1});var CZi;var OW=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(OW,_.q);OW.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
OW.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],OW.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],OW.prototype,"darkerDarkTheme",void 0);_.x([_.n8("ytd-feedback-survey-renderer"),_.B("design:type",Object)],OW.prototype,"feedbackSurveyRenderer",void 0);OW=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],OW);
_.C(OW,"ytd-sponsorship-confirm-cancel-content",function(){if(CZi!==void 0)return CZi;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return CZi=K},{mode:1});var xZc;var N4=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");K.maybeSubmitFeedback=function(){K.content&&K.content.maybeSubmitFeedback()};
return K};
_.O(N4,_.q);_.V=N4.prototype;_.V.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.V.onYtPopupOpened=function(K,d){d===this&&this.data&&this.data.onOpenCommands&&_.fd(this.hostElement,this.data.onOpenCommands,this.hostElement);_.ev(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.V.onYtPopupClosed=function(K,d){(d&&d.canceled===!0||d&&d.canceled===!1&&d.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.fd(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestCompleted=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.V.onYtServiceRequestError=function(K){_.B9(this.hostElement,K.detail.error.message)};
_.V.onDataChanged=function(){if(this.isAttached){var K=this.backgroundUrl;K&&(_.E(this.hostElement).querySelector("#header").style.backgroundImage=K)}};
_.x$.Object.defineProperties(N4.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var K=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return K?"url("+_.kA(K,this.hostElement.clientWidth)+")":""}}});
N4.prototype.onDataChanged=N4.prototype.onDataChanged;N4.prototype.onYtServiceRequestError=N4.prototype.onYtServiceRequestError;N4.prototype.onYtServiceRequestCompleted=N4.prototype.onYtServiceRequestCompleted;N4.prototype.onYtPopupClosed=N4.prototype.onYtPopupClosed;N4.prototype.onYtPopupOpened=N4.prototype.onYtPopupOpened;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],N4.prototype,"data",void 0);_.x([_.A({value:function(){return _.iB("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],N4.prototype,"closeButtonAriaLabel",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],N4.prototype,"darkerDarkTheme",void 0);_.x([_.n8("#scrollable"),_.B("design:type",Object)],N4.prototype,"scrollable",void 0);_.x([_.n8("ytd-sponsorship-confirm-cancel-content"),_.B("design:type",Object)],N4.prototype,"content",void 0);
_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],N4.prototype,"onYtPopupOpened",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],N4.prototype,"onYtPopupClosed",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],N4.prototype,"onYtServiceRequestCompleted",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],N4.prototype,"onYtServiceRequestError",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],N4.prototype,"onDataChanged",null);
N4=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],N4);
_.C(N4,"ytd-sponsorship-confirm-cancel-renderer",function(){if(xZc!==void 0)return xZc;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return xZc=K},{mode:_.p8("kevlar_poly_si_batch_j081")?1:2});var LXw;var YU=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(YU,_.q);YU.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],YU.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],YU.prototype,"darkerDarkTheme",void 0);YU=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],YU);
_.C(YU,"ytd-sponsorships-celebration-content",function(){if(LXw!==void 0)return LXw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return LXw=
K},{mode:1});var BJE;var JSw=_.Am(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),tr=function(){var K=_.q.apply(this,arguments)||this;K.scriptsAppended=!1;K.buttonOverrides={type:"tonal",style:"overlay-dark"};return K};
_.O(tr,_.q);_.V=tr.prototype;
_.V.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:_.M("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onDataChanged=function(){var K;(K=this.header)==null||K.style.setProperty("background-color",this.backgroundColor);if(K=this.headerImageUrl){var d;(d=this.header)==null||d.style.setProperty("background-image",K)}d=_.te(4);K=_.YZ(4);var f=this.get("data.trackingParams");if(f&&K&&d){var H=_.RG(f);_.lB(d,K,H);_.M("combine_ve_grafts")?_.cv().graftServerVe(f,K,4):_.lB(d,K,H)}d=_.y(this.hostElement.querySelectorAll("yt-img-shadow"));for(K=d.next();!K.done;K=d.next())K.value.onShow();if(d=this.get("data.gtmId"))_.F8(d,
_.mD("GL","")),this.setupConversionTracking()};
_.V.setupConversionTracking=function(){if(!this.scriptsAppended){var K=document.createElement("script");var d=_.l$(JSw.join(""));_.GY(K,d);document.head.appendChild(K);K=document.createElement("noscript");K.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(K);this.scriptsAppended=!0}};
_.V.onPopupClosed=function(K){if(_.Qm(K).localName==="ytd-sponsorships-celebration-renderer"){_.ev(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var d;this.data&&((d=this.data)==null?0:d.dismissCommand)&&_.V2.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.x$.Object.defineProperties(tr.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var K=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.hG(K)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var K=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return K?"url("+_.kA(K,this.hostElement.getBoundingClientRect().width)+")":""}}});
tr.prototype.onPopupClosed=tr.prototype.onPopupClosed;tr.prototype.onDataChanged=tr.prototype.onDataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],tr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],tr.prototype,"data",void 0);_.x([_.n8("#header"),_.B("design:type",HTMLElement)],tr.prototype,"header",void 0);
_.x([_.A(),_.B("design:type",Object)],tr.prototype,"scriptsAppended",void 0);_.x([_.A(),_.B("design:type",Object)],tr.prototype,"buttonOverrides",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tr.prototype,"onDataChanged",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],tr.prototype,"onPopupClosed",null);
tr=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],tr);
_.C(tr,"ytd-sponsorships-celebration-renderer",function(){if(BJE!==void 0)return BJE;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return BJE=K},{mode:1});var sTy;var oA=function(){var K=_.q.apply(this,arguments)||this;K.isToggleChecked=!1;return K};
_.O(oA,_.q);oA.prototype.onDataChanged=function(){var K;this.isToggleChecked=((K=this.data)==null?void 0:K.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
oA.prototype.close=function(){var K;((K=this.data)==null?0:K.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
oA.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var K,d=_.P((K=this.data)==null?void 0:K.switchButton,lzy);d&&(this.isToggleChecked&&d.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(d.switchOnInnertubeCommand),!this.isToggleChecked&&d.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(d.switchOffInnertubeCommand))};
oA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oA.prototype.onDataChanged=oA.prototype.onDataChanged;_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],oA.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],oA.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],oA.prototype,"isToggleChecked",void 0);_.x([_.A({value:_.iB("CLOSE")}),_.B("design:type",String)],oA.prototype,"closeButtonAriaLabel",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oA.prototype,"onDataChanged",null);oA=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],oA);
_.C(oA,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(sTy!==void 0)return sTy;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return sTy=K},{mode:1});var kTy;var $U=function(){return _.q.apply(this,arguments)||this};
_.O($U,_.q);_.V=$U.prototype;_.V.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"}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.detached=function(){this.playerElement.stop()};
_.V.onYtServiceRequestCompleted=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.V.onYtServiceRequestError=function(K){_.B9(this.hostElement,K.detail.error.message)};
_.V.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.V.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.V.getTier=function(K,d){return!K||!K.tiers||d<0?null:_.P(K.tiers[d],TkZ)};
_.V.moreThanOne=function(K){return!!(K&&K.length>1)};
_.V.tierOverviewTap=function(K){var d=this;this.selectedTier=K.model.index;_.jW(this,function(){_.Zp(d.hostElement,"yt-refit")})};
_.V.computeSelectedClass=function(K,d){return this.isSelected(K,d)?"selected":""};
_.V.computeButtonAriaPressed=function(K,d){return this.isSelected(K,d)?"true":"false"};
_.V.isSelected=function(K,d){return K===d};
_.V.onDataChanged=function(){_.E(this.hostElement).querySelector("#header-overlay").style.visibility="";_.E(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var K=_.y(this.hostElement.querySelectorAll("yt-img-shadow")),
d=K.next();!d.done;d=K.next())d.value.onShow();var f;this.set("selectedTier",(f=this.get("data.targetTierIndex"))!=null?f:0);var H;(K=(H=this.data)==null?void 0:H.onVisible)&&this.ytComponentBehavior.resolveCommand(K)};
_.V.initializeVe=function(K){var d=_.te(),f=_.YZ(),H=this.get("data.trackingParams");f&&d&&(this.screenLayer=4,d=_.AR(_.ITB)(void 0,69877,{clientScreenNonce:d,visualElement:f},void 0,void 0,void 0),_.$Z(d,69877,4),f=_.YZ(4),H&&f&&(H=_.RG(H),_.lB(d,f,H),K&&(this.offerVideoVe=_.vp(74659),_.lB(d,H,this.offerVideoVe))))};
_.V.setHeaderBackground=function(){var K=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.E(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.hG(K);if(K=this.getHeaderImage())K=_.kA(K,screen.width),_.E(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+K+")"};
_.V.getHeaderImage=function(){var K=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&K?K:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V.setupVideoPlayer=function(K){var d=this,f,H,D,S;return _.c(function(n){if(n.nextAddress==1)return f=d.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),H=d.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.M("kevlar_player_update_killswitch")?d.playerElement.update({args:{autoplay:f,video_id:K,player_params:H}}):d.playerElement.loadVideoWithPlayerVars({autoplay:f,video_id:K,player_params:H}),
_.I(n,d.playerElement.getPlayerPromise(),2);D=n.yieldResult;D.addEventListener("onStateChange",function(u){d.onPlayerStateChange(u)});
D.setScreenLayer(d.screenLayer);(S=_.te(4))&&d.offerVideoVe&&_.Gu(S,d.offerVideoVe);f&&(d.pauseOtherPlayers(),d.playerElement.focusOnPlayer(),d.playerElement.getPlayer().hideControls(),_.va(_.oc,function(){d.fadeOutHeaderOverlay()},4E3));
_.iQ(n)})};
_.V.onPlayerStateChange=function(K){K===1?this.backgroundPlayerElement&&(K=this.backgroundPlayerElement.player_.getPlayerState(),K!==1&&K!==3||this.backgroundPlayerElement.pause()):K===0&&(_.E(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.E(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.V.fadeOutHeaderOverlay=function(){_.E(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.V.onHeaderTap=function(){if(this.offerVideo){_.E(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var K;((K=this.playerElement.player_)==null?void 0:K.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(K=_.te(4))&&this.offerVideoVe&&_.rN(K,this.offerVideoVe)}};
_.V.getBackgroundImageLayerClass=function(K){return K?"background-image-layer-with-video":""};
_.V.getHeaderClass=function(K){return K?"header-with-video":""};
_.V.getHeaderOverlayClass=function(K){return K?"header-overlay-with-video":""};
_.V.getTitleContainerClass=function(K,d){return K?"title-container-with-video":d?"title-container-without-video-flexible":"title-container-without-video"};
_.V.tierTitleDisplayStatus=function(K){return this.moreThanOne(K)?"hide":"show"};
_.V.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.eq().resolve(_.$b).getPlayerElement():this.backgroundPlayerElement=_.xP();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var K=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=K===1||K===3;this.backgroundPlayerElement.pause()}};
_.V.isMiniplayerActive=function(){return _.eq().resolve(_.$b).isMiniplayerActive()};
_.V.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("selected-tier-changed",this.selectedTier))};
$U.prototype.selectedTierChangedForBinding=$U.prototype.selectedTierChangedForBinding;$U.prototype.onDataChanged=$U.prototype.onDataChanged;$U.prototype.onYtPopupClosed=$U.prototype.onYtPopupClosed;$U.prototype.onYtPopupOpened=$U.prototype.onYtPopupOpened;$U.prototype.onYtServiceRequestError=$U.prototype.onYtServiceRequestError;$U.prototype.onYtServiceRequestCompleted=$U.prototype.onYtServiceRequestCompleted;
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],$U.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$U.prototype,"data",void 0);_.x([_.A({value:0}),_.B("design:type",Number)],$U.prototype,"selectedTier",void 0);
_.x([_.A({value:""}),_.B("design:type",String)],$U.prototype,"offerVideo",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],$U.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.x([_.A({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.DL(this)}}),
_.B("design:type",String)],$U.prototype,"playerId",void 0);_.x([_.n8("tp-yt-paper-dialog-scrollable"),_.B("design:type",Object)],$U.prototype,"scrollable",void 0);_.x([_.n8("ytd-sponsorships-tier-renderer"),_.B("design:type",Object)],$U.prototype,"tierRenderer",void 0);_.x([_.n8("#player"),_.B("design:type",Object)],$U.prototype,"playerElement",void 0);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$U.prototype,"onYtServiceRequestCompleted",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$U.prototype,"onYtServiceRequestError",null);
_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$U.prototype,"onYtPopupOpened",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$U.prototype,"onYtPopupClosed",null);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$U.prototype,"onDataChanged",null);
_.x([_.SP("selectedTier"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$U.prototype,"selectedTierChangedForBinding",null);$U=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],$U);
_.C($U,"ytd-sponsorships-offer-renderer",function(){if(kTy!==void 0)return kTy;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return kTy=K},{mode:_.p8("kevlar_poly_si_batch_j077")?1:2});var wI7;var EW=function(){var K=_.q.apply(this,arguments)||this;K.buttonOverrides={type:"filled",style:"mono"};return K};
_.O(EW,_.q);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 K,d,f,H=(d=_.P((K=this.data)==null?void 0:K.content,rlw))==null?void 0:(f=d.backgroundColor)==null?void 0:f.backgroundColor;H&&(K=_.E1(H),_.E(this.hostElement).querySelector("#banner").style.backgroundColor=K,_.E(this.hostElement).querySelector("#abstract-art").style.backgroundColor=K)};
EW.prototype.attached=function(){this.JSC$18380_scroller&&(this.JSC$18380_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18380_scroller.attached&&typeof this.JSC$18380_scroller.attached==="function"&&this.JSC$18380_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
EW.prototype.backgroundColorChanged=EW.prototype.backgroundColorChanged;_.x([_.A(),_.B("design:type",Object)],EW.prototype,"data",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],EW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.n8("#scroller"),_.B("design:type",Object)],EW.prototype,"JSC$18380_scroller",void 0);_.x([_.A(),_.B("design:type",Object)],EW.prototype,"buttonOverrides",void 0);
_.x([_.SP("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EW.prototype,"backgroundColorChanged",null);EW=_.x([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],EW);
_.C(EW,"ytd-sponsorships-promotion-celebration-renderer",function(){if(wI7!==void 0)return wI7;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return wI7=K},{mode:_.p8("kevlar_poly_si_batch_j077")?1:2});var Zvi;var ekE;var hr=function(){return _.q.apply(this,arguments)||this};
_.O(hr,_.q);hr.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
hr.prototype.computeIsInitiallyChecked=function(K){return K===1};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],hr.prototype,"data",void 0);_.x([_.n8("#checkbox"),_.B("design:type",Object)],hr.prototype,"checkbox",void 0);hr=_.x([_.Q({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],hr);
_.C(hr,"ytd-subscription-toggle-option-renderer",function(){if(ekE!==void 0)return ekE;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return ekE=K},{mode:1});var bK=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");K.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return K};
_.O(bK,_.q);bK.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"}}}};
bK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
bK.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var K=_.E(this.hostElement).querySelector("#options").selected;K=this.data.options[K].subscriptionRadioOptionRenderer.serviceEndpoint;var d=_.E(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");d&&K&&K.modifyChannelNotificationPreferenceEndpoint&&(d=d.getValue())&&(K.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[d]);_.eq().resolve(_.pQ).resolveCommand(K,{form:{element:this.hostElement}});
_.ev(this.hostElement,"yt-close-popup-action")};
_.x$.Object.defineProperties(bK.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var K=this.data.options,d=0;d<K.length;d++){var f=K[d].subscriptionRadioOptionRenderer;if(f&&f.selected)return d}return null}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],bK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],bK.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],bK.prototype,"eventForwardingBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],bK.prototype,"ytRendererBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],bK.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],bK.prototype,"darkerDarkTheme",void 0);_.x([_.W("data.options"),_.B("design:type",Object),_.B("design:paramtypes",[])],bK.prototype,"initialIndex",null);bK=_.x([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],bK);
_.C(bK,"ytd-subscription-notification-options-renderer",function(){if(Zvi!==void 0)return Zvi;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return Zvi=K},{mode:1});var pIw;var mB=function(){return _.q.apply(this,arguments)||this};
_.O(mB,_.q);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],mB.prototype,"data",void 0);mB=_.x([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],mB);
_.C(mB,"ytd-tvfilm-offer-groups-renderer",function(){if(pIw!==void 0)return pIw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return pIw=K},{mode:1});var Kic;var lK=function(){var K=_.q.apply(this,arguments)||this;K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(lK,_.q);_.V=lK.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.V.computeThumbnailClass=function(K){return K.thumbnailOverlays?K.isShow?"thumbnail-show":"thumbnail-movie":K.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.V.computeCommerceSectionClass=function(K){return K.offers&&K.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.V.computeTitleClass=function(K){return K.offers&&K.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.V.onDataChanged=function(){[].concat(_.Me(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(K){K.onShow()})};
lK.prototype.onDataChanged=lK.prototype.onDataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],lK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],lK.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],lK.prototype,"darkerDarkTheme",void 0);
_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lK.prototype,"onDataChanged",null);lK=_.x([_.Q({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],lK);
_.C(lK,"ytd-ypc-offers-overlay-renderer",function(){if(Kic!==void 0)return Kic;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Kic=K},{mode:_.p8("kevlar_poly_si_batch_j028")?1:2});var d9E;var fuw=function(){this.usedMethods=new Set};
fuw.prototype.add=function(K){this.usedMethods.add(K)};
fuw.prototype.reset=function(){this.usedMethods.clear()};var VfP=function(K,d){this.query=K;this.previousSearchQuery=d;this.id=HWE++;if(!D9Z){d=_.mD("SBOX_SETTINGS");K="https://"+((d==null?void 0:d.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var f=d==null?void 0:d.REQUEST_LANGUAGE;f&&(K+="&hl="+f);(f=d==null?void 0:d.REQUEST_DOMAIN)&&(K+="&gl="+f);K+="&client=youtube&gs_ri=youtube";(f=d==null?void 0:d.SUGG_EXP_ID)&&(K+="&sugexp="+encodeURIComponent(f));(f=d==null?void 0:d.PSUGGEST_TOKEN)&&(K+="&tok="+f);(d=
d==null?void 0:d.SESSION_INDEX)&&(K+="&authuser="+d);_.M("desktop_enable_visual_suggest")&&(K+="&h=180&w=320&ytvs=1");D9Z=K}},S$i=function(K){var d="q="+encodeURIComponent(K.query);
K.previousSearchQuery&&(d+="&pq="+encodeURIComponent(K.previousSearchQuery));return d},yHw=function(){var K=_.mD("SBOX_SETTINGS"),d={};
if(K==null?0:K.SEND_VISITOR_DATA)d["X-Goog-Visitor-Id"]=K==null?void 0:K.VISITOR_DATA;return d},nd5=function(K){var d=D9Z;
d+="&gs_id="+K.id.toString(36);d+="&q="+encodeURIComponent(K.query);d+="&cp="+K.query.length;K.previousSearchQuery&&(d+="&pq="+encodeURIComponent(K.previousSearchQuery));(K=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(d+="&video_id="+K);return d},HWE=0,D9Z="";var iWt=_.ja.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,cHc=_.ja.SEARCH_ENTITY_SUGGESTION_MOVIE,u9S=_.ja.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,auS=_.ja.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Iuz=function(K,d){this.text=K;this.bold=d},U9t=function(K,d,f){this.input=d;
this.index=f;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=K[0];this.type=K[1];this.subtypes=K[2];var H;this.displayText=eg((H=K[3])==null?void 0:H.b);var D;this.ignoredPrefix=eg((D=K[3])==null?void 0:D.a);var S,n;this.hasNewVideo=((S=K[3])==null?void 0:(n=S.zam)==null?void 0:n.toString())==="true"?!0:!1;var u;this.visualSuggestUrl=(u=K[3])==null?void 0:u.zai;var a;this.entityType=eg((a=K[3])==null?void 0:a.zap);var R;this.entityName=eg((R=K[3])==null?void 0:R.zao);var F;d=eg((F=
K[3])==null?void 0:F.zaf);var z;this.entityMid=(z=K[3])==null?void 0:z.zae;F=nJP(this.subtypes,this.entityMid);if(d&&F){if(d){z="";switch(F){case "YOUTUBE_ENTITY_TYPE_SONG":z=u9S;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":z=iWt;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":z=auS;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":z=cHc}F=F==="YOUTUBE_ENTITY_TYPE_SONG"||F==="YOUTUBE_ENTITY_TYPE_ALBUM"?z+" \u2022  \u2022 "+d:d}else F="";this.entitySubtitle=F}var v;this.externalChannelId=(v=K[3])==null?void 0:v.zav},RWw=
function(K){var d=[],f,H=(f=K.displayText)!=null?f:K.text;
if(K.type===33)return d.push(new Iuz(H,!1)),d;if(H.length>=K.input.length&&H.substring(0,K.input.length)===K.input)d.push(new Iuz(K.input,!1)),d.push(new Iuz(H.substring(K.input.length),!0));else{var D=new Set(K.input.split(/\s/)),S=H.split(/\s/);d=S.map(function(n,u){return new Iuz(n.trim()+(u===S.length-1?"":" "),!D.has(n))})}return d};var Fic=function(K){this.rawResponse=["",[],{}];this.suggestions=[];try{var d=JSON.parse(idE(K));if(typeof d==="object"&&d!==null)this.rawResponse=d;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(H){console.log("Suggest: Failed to parse SuggestResponse!");return}var f=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(H,D){return new U9t(H,f,D)})};var zW7=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new fuw;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18416_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Xzi,vdy=function(){Xzi||(Xzi=new zW7);
return Xzi};
zW7.prototype.updateSuggestions=function(K){var d=this;this.availableSuggestions.forEach(function(f){d.previousSuggestions[f]=!0});
this.availableSuggestions=K.map(function(f){var H=f.type.toString();f.subtypes.length>0&&(H+="i"+f.subtypes.join("i"),H+="k"+f.suggestionSources.COMPLETE_SERVER.toString());return H})};
var Mfl=function(K,d){var f=Date.now();K.firstEditTime<0&&(K.firstEditTime=f);d&&(K.lastQueryBuildTime=f);K.lastEditTime=f};
zW7.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18416_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Pn7=function(K){var d="";K.availableSuggestions.forEach(function(D){delete K.previousSuggestions[D]});
for(var f=_.y(Object.keys(K.previousSuggestions)),H=f.next();!H.done;H=f.next())H=H.value,K.previousSuggestions[H]&&(d+=(d?"j":"")+H);return d},gdE=function(K,d){var f=[];
d&&(f[1]=d.toString());f[0]="youtube";f[7]=Date.now()-K.startTime;f[6]=K.sessionNumber;K.zeroPrefixSuggestionCount>=0&&(f[33]=K.zeroPrefixSuggestionCount);f[13]=K.outOfSyncResponseCount;if(K.availableSuggestions.length>0){for(var H=d="",D=0,S=_.y(K.availableSuggestions),n=S.next();!n.done;n=S.next())n=n.value,n!==H&&(D>1&&(d+="l"+D),d+=(H?"j":"")+n,D=0,H=n),D+=1;D>1&&(d+="l"+D);f[3]=d}f[35]=Pn7(K);K.selectedSuggestionIndex>=0&&(f[2]=K.selectedSuggestionIndex);var u;if(d=(u=_.mD("SBOX_SETTINGS"))==
null?void 0:u.SUGG_EXP_ID)f[19]=K.normalize(d),u=0,K.experimentTriggeredBeforeFinal&&(u|=1),K.experimentTriggeredFinal&&(u|=2),f[20]=u;f[26]=Array.from(K.inputMethodsTracker.usedMethods).join("j");if(K.JSC$18416_totalRoundTripTime>0){f[15]=K.JSC$18416_totalRoundTripTime;f[14]=K.maxRoundTripTime;u=[];for(D=d=0;D<10;D++)H=K.roundTripTimeHistogram[D],H===0?d++:(d>1?u.push(D+"-"+H):d===1?u.push("0j"+H):u.push(H.toString()),d=0);u=u.join("j");f[16]=u}K.zeroPrefixRoundTripTime>0&&(f[36]=K.zeroPrefixRoundTripTime);
K.lastQueryBuildTime>0&&(f[18]=K.lastQueryBuildTime-K.startTime);K.firstEditTime>0&&(f[4]=K.firstEditTime-K.startTime);K.lastEditTime>0&&(f[5]=K.lastEditTime-K.startTime);return f.join(".")};
zW7.prototype.normalize=function(K){return K.replaceAll(".","-")};
var OWE=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Wi=function(){var K=_.q.apply(this,arguments)||this;K.microphoneSpinnerActive=!1;K.noAnimations=!1;K.boundExitClick=function(){K.onExitButtonClick()};
K.speechOverlayClassName="";K.isLevelAnimating=!1;K.playCloseDialogAudioFeedback=!0;K.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return K};
_.O(Wi,_.q);_.V=Wi.prototype;_.V.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.V.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=iIE()};
_.V.dataChanged=function(){this.logDialog()};
_.V.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var K;(K=this.manager.audioPlayer)!=null&&(K.JSC$17706_audioEnabled=!1)}this.manager.stop();(K=this.manager.audioPlayer)!=null&&(K.JSC$17706_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.V.handleSpeechQueryCompleteAction=function(K){var d=K.navigationAction;d&&(K.trackingParams&&_.cv().graftServerVe(K.trackingParams,this.dialogVe,5),_.Zp(this.hostElement,"yt-navigate",{endpoint:d,tempData:this.getNavigationParams(d),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.V.onExitButtonClick=function(){this.closeDialog()};
_.V.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var K;if((K=this.manager)!=null){var d;(d=K.audioPlayer)==null||GL(d,"failure");K.setState("microphone-off");K.stop()}}else(K=this.manager)==null||K.start()};
_.V.transcriptionChanged=function(){var K,d;(((K=this.transcription)==null?0:K.low)||((d=this.transcription)==null?0:d.high))&&this.setState("transcribing",this.transcription)};
_.V.stateChanged=function(){this.setState(this.state,this.transcription)};
_.V.logDialog=function(){var K;(K=this.data)!=null&&K.trackingParams&&(K=_.cv(),_.eA(K,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=K.graftServerVe(this.data.trackingParams,void 0,5))};
_.V.getNavigationParams=function(K){var d={};if(_.M("web_yt_searchbox")){var f=vdy();f.inputMethodsTracker.add(6);f=gdE(f,15);d.gs_l=f;var H;d.oq=((H=_.P(K,_.cW))==null?void 0:H.query)||""}else if(K=window.ytvoicesearchloggingparams){if(K=K())d.oq=K.oq,d.gs_l=K.gs_l}else _.rF(Error("kl"));return d};
_.V.closeDialog=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.V.setState=function(K,d){if(this.data){var f=this.data,H={};switch(K){case "listening":H={headerText:f.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:f.microphoneButtonAriaLabel};break;case "timeout":H={headerText:f.promptHeader,microphoneState:"try-again",microphoneLabel:f.promptMicrophoneLabel,microphoneAriaLabel:f.promptMicrophoneLabel};break;case "microphone-off":H={headerText:f.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:f.promptMicrophoneLabel,
microphoneAriaLabel:f.promptMicrophoneLabel};break;case "transcribing":(d==null?0:d.low)||(d==null?0:d.high)?H={transcriptionLow:d==null?void 0:d.low,transcriptionHigh:d==null?void 0:d.high,microphoneState:"speaking",microphoneAriaLabel:f.microphoneButtonAriaLabel}:H={headerText:f.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:f.microphoneButtonAriaLabel};break;case "processing":H={headerText:f.loadingHeader,microphoneState:"processing",microphoneAriaLabel:f.microphoneButtonAriaLabel};
break;case "offline":H={headerText:f.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:f.connectionErrorMicrophoneLabel,microphoneAriaLabel:f.connectionErrorMicrophoneLabel};break;case "permission":H={headerText:f.permissionsHeader,bodyLine1:f.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:f.permissionsSubtext};break;case "permission-denied":H={headerText:f.disabledHeader,bodyLine1:f.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:f.disabledSubtext}}H.className=
K;this.speechOverlayState=H;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.V.setMicrophoneState=function(K){var d=this.isLevelAnimating;this.isLevelAnimating=K==="speaking";!d&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=K==="processing"&&!this.noAnimations};
_.V.setClass=function(K){this.speechOverlayClassName&&_.pU(this.hostElement,this.speechOverlayClassName,!1);K&&(this.speechOverlayClassName=K,_.pU(this.hostElement,K,!0))};
_.V.runLevelAnimation=function(){var K=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var d=1+Math.random()*.75,f=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+f/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+d+")");_.oc.addJob(function(){K.runLevelAnimation()},3,f)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Wi.prototype.stateChanged=Wi.prototype.stateChanged;Wi.prototype.transcriptionChanged=Wi.prototype.transcriptionChanged;Wi.prototype.onPopupClosed=Wi.prototype.onPopupClosed;Wi.prototype.dataChanged=Wi.prototype.dataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Wi.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Wi.prototype,"rendererStamperBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Wi.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],Wi.prototype,"eventForwardingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Wi.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Wi.prototype,"speechOverlayState",void 0);
_.x([_.A(),_.B("design:type",Object)],Wi.prototype,"microphoneSpinnerActive",void 0);_.x([_.A({type:_.M("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.B("design:type",Object)],Wi.prototype,"noAnimations",void 0);_.x([_.A({selector:function(K){var d;return(d=K.voiceSearch)==null?void 0:d.transcription}}),
_.B("design:type",Object)],Wi.prototype,"transcription",void 0);_.x([_.A({selector:function(K){var d;return(d=K.voiceSearch)==null?void 0:d.overlay}}),
_.B("design:type",String)],Wi.prototype,"state",void 0);_.x([_.A(),_.B("design:type",Object)],Wi.prototype,"boundExitClick",void 0);_.x([_.n8("#microphone-levels"),_.B("design:type",HTMLElement)],Wi.prototype,"level",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wi.prototype,"dataChanged",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wi.prototype,"onPopupClosed",null);
_.x([_.an("transcription"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wi.prototype,"transcriptionChanged",null);_.x([_.an("state"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wi.prototype,"stateChanged",null);Wi=_.x([_.Q({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Wi);
_.C(Wi,"ytd-voice-search-dialog-renderer",function(){if(d9E!==void 0)return d9E;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return d9E=K},{mode:1});var NWi;var Gq=function(){var K=_.q.apply(this,arguments)||this;K.isOverlay=!1;K.hidden=!1;return K};
_.O(Gq,_.q);_.V=Gq.prototype;_.V.onPopupClosed=function(){this.toggleIconState(!1)};
_.V.computeIcon=function(){var K,d,f;return(d=_.P((K=this.data)==null?void 0:K.icon,x_z))==null?void 0:(f=d.icon)==null?void 0:f.iconType};
_.V.computeIconBadgeShape=function(){var K;return{iconBadgeType:"cart",iconBadgeText:(K=this.iconBadgeEntity)==null?void 0:K.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.V.onClick=function(){var K;(K=this.data)!=null&&K.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.V.computeHidden=function(K){return!K};
_.V.toggleIconState=function(K){this.iconButton&&(this.iconButton.pressed=K)};
Gq.prototype.onPopupClosed=Gq.prototype.onPopupClosed;_.x([_.l(_.ou),_.B("design:type",Object)],Gq.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Gq.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Gq.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Gq.prototype,"isOverlay",void 0);
_.x([_.A({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.B("design:type",Object)],Gq.prototype,"hidden",void 0);_.x([_.A({selectorArgs:["data.iconBadgeEntityKey"],selector:function(K,d){return _.DR(K.entities,"iconBadgeEntity",d)}}),
_.B("design:type",Object)],Gq.prototype,"iconBadgeEntity",void 0);_.x([_.n8("yt-icon-button"),_.B("design:type",HTMLButtonElement)],Gq.prototype,"iconButton",void 0);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gq.prototype,"onPopupClosed",null);Gq=_.x([_.Q({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Gq);
_.C(Gq,"ytd-icon-badge-topbar-button-renderer",function(){if(NWi!==void 0)return NWi;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return NWi=K},{mode:1});var Y$z;var Ar=function(){var K=_.q.apply(this,arguments)||this;K.premiumOptions=[];K.darkerDarkTheme=_.M("web_darker_dark_theme");return K};
_.O(Ar,_.q);Ar.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.x$.Object.defineProperties(Ar.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Ar.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Ar.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Array)],Ar.prototype,"premiumOptions",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Ar.prototype,"darkerDarkTheme",void 0);_.x([_.W("premiumOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ar.prototype,"hasPremiumOptions",null);
Ar=_.x([_.Q({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Ar);
_.C(Ar,"ytd-offline-promo-content",function(){if(Y$z!==void 0)return Y$z;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Y$z=K},{mode:1});var tfl;var Tq=function(){var K=_.q.apply(this,arguments)||this;K.premiumOptions=[];return K};
_.O(Tq,_.q);Tq.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var K;this.premiumOptions=yyU((K=this.data)==null?void 0:K.formats)};
Tq.prototype.onClickSubmit=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var K;(K=_.xP())==null||K.pause()};
Tq.prototype.attached=function(){this.JSC$18436_scroller&&(this.JSC$18436_scroller.dialogElement=this.hostElement.parentNode)};
_.x$.Object.defineProperties(Tq.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Tq.prototype.dataChanged=Tq.prototype.dataChanged;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Tq.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Tq.prototype,"data",void 0);
_.x([_.A({computed:"computeIcon_(data.headersIcon)",value:""}),_.B("design:type",String)],Tq.prototype,"headersIcon",void 0);_.x([_.A(),_.B("design:type",Array)],Tq.prototype,"premiumOptions",void 0);_.x([_.n8("#scroller"),_.B("design:type",Object)],Tq.prototype,"JSC$18436_scroller",void 0);_.x([_.W("headersIcon"),_.B("design:type",Object),_.B("design:paramtypes",[])],Tq.prototype,"showIcon",null);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tq.prototype,"dataChanged",null);Tq=_.x([_.Q({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Tq);
_.C(Tq,"ytd-offline-promo-renderer",function(){if(tfl!==void 0)return tfl;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return tfl=K},{mode:1});var odK;var rp=function(){var K=_.q.apply(this,arguments)||this;K.playbackPauseInterval=NaN;K.isLoading=!1;K.hasError=!1;K.dialogClass="";K.youtubeLabel=_.iB("LOGO_ALT_LABEL",{},"YouTube Home");K.logoName="yt-logos-ext:yt-logo-updated";K.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return K};
_.O(rp,_.q);_.V=rp.prototype;_.V.onDataChange=function(){var K;if(this.showEOMV1Text=!((K=this.data)==null||!K.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.V.attached=function(){this.pausePlayer()};
_.V.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.V.handleLangSelect=function(K){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[K.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.V.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.V.handleSaveConsent=function(K){var d=this;this.showLoadingSpinner();this.showLoadingSpinner();TFw(_.P(K,LwK)).catch(function(f){_.h3(new _.X4("Something went wrong when save consent "+(f.message?f.message:f)+"."));d.hideLoadingSpinner();d.showErrorMessage()})};
_.V.handleDisablePersonalization=function(K){var d=this;this.showLoadingSpinner();rRP(_.P(K,xhy)).then(function(){d.dialog.close();d.resumePlayer()}).catch(function(f){_.h3(new _.X4("Something went wrong when disable personalization "+(f.message?f.message:f)+"."));
d.hideLoadingSpinner();d.showErrorMessage()})};
_.V.showLoadingSpinner=function(){var K=this;this.showSpinnerJobId=_.oc.addLowPriorityJob(function(){K.isLoading=!0},500)};
_.V.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.oc.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.V.showErrorMessage=function(){var K=this;this.hasError=!0;_.oc.addLowPriorityJob(function(){K.hasError=!1},2E3)};
_.V.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.SQ(function(){try{var K=_.xP();K&&K.pause()}catch(d){}},100))};
_.V.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var K=_.xP();K&&K.play()}catch(d){}};
_.x$.Object.defineProperties(rp.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.eomV1Text)return[];K=[];for(var d=["SHIELD","WARNING","BAR_CHART"],f=this.data.eomV1Text.essentialCookieMsg.items,H=0;H<d.length&&H<f.length;H++)K.push({icon:d[H],text:f[H]});return K}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.eomV1Text)return[];K=[];for(var d=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],f=this.data.eomV1Text.nonEssentialCookieMsg.items,H=0;H<d.length&&H<f.length;H++)K.push({icon:d[H],text:f[H]});return K}}});
rp.prototype.onDataChange=rp.prototype.onDataChange;_.x([_.A(),_.B("design:type",Object)],rp.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],rp.prototype,"showEOMV1Text",void 0);_.x([_.A(),_.B("design:type",Object)],rp.prototype,"isLoading",void 0);_.x([_.A(),_.B("design:type",Object)],rp.prototype,"hasError",void 0);_.x([_.A(),_.B("design:type",Number)],rp.prototype,"showSpinnerJobId",void 0);_.x([_.A(),_.B("design:type",Object)],rp.prototype,"dialogClass",void 0);
_.x([_.n8("#dialog"),_.B("design:type",Object)],rp.prototype,"dialog",void 0);_.x([_.n8("#cb-header"),_.B("design:type",HTMLElement)],rp.prototype,"header",void 0);_.x([_.n8("#lang-select"),_.B("design:type",HTMLElement)],rp.prototype,"langSelect",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],rp.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],rp.prototype,"ytComponentBehavior",void 0);
_.x([_.A(),_.B("design:type",String)],rp.prototype,"youtubeLabel",void 0);_.x([_.A(),_.B("design:type",Object)],rp.prototype,"logoName",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rp.prototype,"onDataChange",null);_.x([_.W("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],rp.prototype,"eomEssentialCookieMsgItems",null);
_.x([_.W("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],rp.prototype,"eomNonEssentialCookieMsgItems",null);rp=_.x([_.Q({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],rp);
_.C(rp,"ytd-consent-bump-v2-lightbox",function(){if(odK!==void 0)return odK;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return odK=K},{mode:1});var $9c;var q4=function(){return _.q.apply(this,arguments)||this};
_.O(q4,_.q);q4.prototype.ready=function(){if(!_.R0()||HZi)var K=!0;else HZi=!0,K=!1;K||(K=document.querySelector("ytd-app"),K||(K=document.body),this.internalLightBox=_.E(K).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.x([_.A(),_.B("design:type",Object)],q4.prototype,"data",void 0);_.x([_.n8("#lightbox"),_.B("design:type",Object)],q4.prototype,"lightBox",void 0);q4=_.x([_.Q({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],q4);
_.C(q4,"ytd-consent-bump-v2-renderer",function(){if($9c!==void 0)return $9c;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return $9c=K},{mode:1});var EdP;var hWy;var bWK;var QH=function(){var K=_.q.apply(this,arguments)||this;K.ephemeralActionsEnabled=_.M("web_ephemeral_actions");return K};
_.O(QH,_.q);_.V=QH.prototype;_.V.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&MPZ(this.toastManager,this.toastType)};
_.V.open=function(K){this.toast&&(this.ephemeralAction&&_.eq().resolve(_.yl).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=K!=null?K:0,this.toastManager.enqueue(this.toast,K)):this.toast.open())};
_.V.close=function(K){var d;(d=this.toast)==null||d.close();this.toastManager&&K===1&&MPZ(this.toastManager,K)};
_.V.refit=function(){var K;(K=this.toast)==null||K.refit()};
_.V.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var K;(K=this.toast)==null||K.close()}};
_.V.setVerticalOffset=function(K){this.toast&&(this.toast.verticalOffset=K,this.toast.fit())};
_.V.computeButtonClass_=function(K){return K?"toast-button":""};
_.V.computeText_=function(K){return _.qQ(K)};
_.V.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.mZ("toast-opened-changed",this.toastOpened))};
_.V.updateToastOpenedFromBinding=function(K){this.toastOpened=K.detail.value};
_.x$.Object.defineProperties(QH.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var K,d,f=(K=this.data)==null?void 0:(d=K.actionButton)==null?void 0:d.buttonRenderer;return(f==null?void 0:f.command)||(f==null?void 0:f.serviceEndpoint)||(f==null?void 0:f.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var K=[],d;((d=this.data)==null?0:d.responseText)&&K.push(_.qQ(this.data.responseText));var f;((f=this.data)==null?0:f.subText)&&K.push(_.qQ(this.data.subText));var H,D;if((H=this.data)==null?0:(D=H.actionButton)==null?0:D.buttonRenderer){var S,n;K.push(((S=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(n=S.accessibilityData)==null?void 0:n.label)||_.qQ(this.data.actionButton.buttonRenderer.text))}return K.filter(function(u){return u}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var K,d;return(d=(K=this.toast)==null?void 0:K.opened)!=null?d:!1}}});
QH.prototype.toastOpenedChangedForBinding=QH.prototype.toastOpenedChangedForBinding;QH.prototype.toastOpenedChanged=QH.prototype.toastOpenedChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],QH.prototype,"ytEventForwardingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],QH.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],QH.prototype,"duration",void 0);
_.x([_.A(),_.B("design:type",Number)],QH.prototype,"toastType",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],QH.prototype,"useCloseButton",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],QH.prototype,"closeToastOnActionButtonClick",void 0);_.x([_.A({value:function(){return _.iB("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],QH.prototype,"closeButtonAriaLabel",void 0);_.x([_.A(),_.B("design:type",Boolean)],QH.prototype,"toastOpened",void 0);_.x([_.A(),_.B("design:type",Boolean)],QH.prototype,"hasOpened",void 0);_.x([_.A(),_.B("design:type",Object)],QH.prototype,"ephemeralActionsEnabled",void 0);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],QH.prototype,"command",null);
_.x([_.W("ephemeralActionsEnabled","labelText","command","duration"),_.B("design:type",Object),_.B("design:paramtypes",[])],QH.prototype,"ephemeralAction",null);_.x([_.W("ephemeralAction"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QH.prototype,"hasEphemeralAction",null);_.x([_.n8("#toast"),_.B("design:type",Object)],QH.prototype,"toast",void 0);_.x([_.A({value:function(){return{style:"call-to-action-inverse"}}}),
_.B("design:type",Object)],QH.prototype,"buttonOverrides",void 0);_.x([_.A({value:{style:"mono-inverse"}}),_.B("design:type",Object)],QH.prototype,"closeButtonOverrides",void 0);_.x([_.A({value:function(){return _.eq().resolve(_.Zd(_.gC6))}}),
_.B("design:type",Object)],QH.prototype,"toastManager",void 0);_.x([_.W("data.responseText","data.subText","data.actionButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],QH.prototype,"labelText",null);_.x([_.SP("toastOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QH.prototype,"toastOpenedChanged",null);
_.x([_.SP("toastOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QH.prototype,"toastOpenedChangedForBinding",null);QH=_.x([_.N7({is:"yt-notification-action-renderer",disableElementRegistration:!0})],QH);
_.C(QH,"yt-notification-action-renderer",function(){if(bWK===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;hWy===void 0&&(hWy=document.createElement("template"));var H=hWy;f.call(d,H.content.cloneNode(!0),K.content.firstChild);bWK=K}K=bWK;return K},{mode:2});var jz=function(){var K=_.q.apply(this,arguments)||this;K.duration=4E3;K.downloadingCount=0;K.downloadedCount=0;K.downloadingOnlySmartDownloads=!1;K.sessionTotalDownloads=0;K.sessionDownloaded=0;K.previousSessionsDownloaded=0;K.totalDownloadPercentage=0;K.currentDownloadProgress=0;K.currentDownloadPercentage=0;K.isLeaderTab=!0;K.isFullScreen=!1;K.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};K.boundBeforeUnload=function(d){K.isLeaderTab&&K.downloadingCount>0&&(d.preventDefault(),
d.returnValue=!0)};
return K};
_.O(jz,_.q);_.V=jz.prototype;
_.V.open=function(){this.updateDownloadState();if(this.data){var K=this.sessionDownloaded+1,d=this.sessionTotalDownloads>1?_.iB("VIDEOS_DOWNLOADING_RATIO",{downloaded:K.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+K+"/"+this.sessionTotalDownloads):_.iB("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(d=this.sessionTotalDownloads>1?_.iB("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:K.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
K+"/"+this.sessionTotalDownloads):_.iB("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));K=this.isLeaderTab?_.iB("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.qQ(this.data.responseText)!==d||_.qQ(this.data.subText)!==K)this.set("data.responseText",_.rB(d)),this.set("data.subText",_.rB(K)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.V.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.V.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.V.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.V.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var K=this.downloadedCount-this.previousSessionsDownloaded;K<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-K);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.V.handleFullscreenChange=function(K){(this.isFullScreen=K)||this.updatePopup()};
jz.prototype.updateCurrentDownloadProgress=jz.prototype.updateCurrentDownloadProgress;jz.prototype.updatePopup=jz.prototype.updatePopup;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],jz.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],jz.prototype,"ytEventForwardingBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],jz.prototype,"actionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],jz.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],jz.prototype,"duration",void 0);_.x([_.A({selector:function(K){return _.g5X(K.entities).length}}),
_.B("design:type",Object)],jz.prototype,"downloadingCount",void 0);_.x([_.A({selector:sdP}),_.B("design:type",Object)],jz.prototype,"downloadedCount",void 0);_.x([_.A({selector:function(K){var d=_.g5X(K.entities);return JR7(K.entities,d)}}),
_.B("design:type",Object)],jz.prototype,"downloadingOnlySmartDownloads",void 0);_.x([_.A(),_.B("design:type",Object)],jz.prototype,"sessionTotalDownloads",void 0);_.x([_.A(),_.B("design:type",Object)],jz.prototype,"sessionDownloaded",void 0);_.x([_.A(),_.B("design:type",Object)],jz.prototype,"previousSessionsDownloaded",void 0);_.x([_.A(),_.B("design:type",Object)],jz.prototype,"totalDownloadPercentage",void 0);
_.x([_.A({selector:function(K){var d;K=(d=_.g5X(K.entities))!=null?d:[];return K.length>0?_.uuS(K.slice(-1)):0}}),
_.B("design:type",Object)],jz.prototype,"currentDownloadProgress",void 0);_.x([_.A(),_.B("design:type",Object)],jz.prototype,"currentDownloadPercentage",void 0);_.x([_.A({selector:_.tAX}),_.B("design:type",Object)],jz.prototype,"isLeaderTab",void 0);_.x([_.n8("yt-notification-action-renderer"),_.B("design:type",Object)],jz.prototype,"notificationActionRenderer",void 0);
_.x([_.an("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jz.prototype,"updatePopup",null);_.x([_.an("currentDownloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jz.prototype,"updateCurrentDownloadProgress",null);jz=_.x([_.Q({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],jz);
_.C(jz,"ytd-video-download-toast-renderer",function(){if(EdP!==void 0)return EdP;var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return EdP=K},{mode:1});var m9U;var lu7;var fk=function(){return _.q.apply(this,arguments)||this};
_.O(fk,_.q);fk.prototype.computeIsRedLogo=function(K,d){!K&&d&&(K=d);return K==="YOUTUBE_RED_LOGO"||K==="YOUTUBE_PREMIUM_LOGO"};
fk.prototype.computeLogoName=function(K){K=this.componentBehavior.computeIcon_(K);return K===""?"yt-logos-ext:yt-logo-updated":K};
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],fk.prototype,"componentBehavior",void 0);_.x([_.A({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.B("design:type",Boolean)],fk.prototype,"isRedLogo",void 0);_.x([_.A({computed:"computeLogoName(data)"}),_.B("design:type",String)],fk.prototype,"logoName",void 0);_.x([_.A({value:{}}),_.B("design:type",Object)],fk.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],fk.prototype,"logoType",void 0);fk=_.x([_.Q({disableElementRegistration:!0,is:"ytd-logo"})],fk);
_.C(fk,"ytd-logo",function(){if(lu7!==void 0)return lu7;var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return lu7=K},{mode:_.p8("kevlar_poly_si_batch_j074")?1:2});var HB=function(){var K=_.q.apply(this,arguments)||this;K.animationRef={};return K};
_.O(HB,_.q);_.V=HB.prototype;_.V.attached=function(){document.addEventListener("yt-navigate-finish",_.Dm(this,this.logYoodle))};
_.V.detached=function(){document.removeEventListener("yt-navigate-finish",_.Dm(this,this.logYoodle))};
_.V.logYoodle=function(){var K,d;if((K=this.data)==null?0:(d=K.loggingDirectives)==null?0:d.trackingParams)this.ytRendererBehavior.markDirty(),_.cv().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.V.computeHideImg=function(K,d){return!!K||!!d};
_.V.computeHideYtdLogo=function(K,d){return!K||!!d};
_.V.computeHideLottie=function(K){return!K};
_.V.computeIsRedLogo=function(K){return K==="YOUTUBE_RED_LOGO"||K==="YOUTUBE_PREMIUM_LOGO"};
_.V.renderLogoEntity=function(){var K=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),d=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),f=this.getLogoTitleText(this.data),H=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==K&&(this.url=K);this.animatedUrl!==d&&(this.animatedUrl=d);this.logoTitleText!==f&&(this.logoTitleText=f);this.lottieUrl!==H&&(this.lottieUrl=H,this.lottiePlayerProps=this.computeLottiePlayerProps(H))};
_.V.getSanitizedThumbnail=function(K){return K&&K.thumbnails?_.sDN(K.thumbnails,122)||"":""};
_.V.getThumbnailUrl=function(K,d){if(!d)return"";var f,H;K=K?(f=d.darkThemeLogo)==null?void 0:f.thumbnail:(H=d.lightThemeLogo)==null?void 0:H.thumbnail;return this.getSanitizedThumbnail(K)};
_.V.getAnimatedThumbnailUrl=function(K,d){return d?this.getSanitizedThumbnail(K?d.darkThemeAnimatedLogo:d.lightThemeAnimatedLogo):""};
_.V.getLogoTitleText=function(K){if(K)return _.qQ(K.tooltipText)};
_.V.computeLogoIcon=function(K,d){if(d){var f,H;return K?(f=d.darkThemeLogo)==null?void 0:f.icon:(H=d.lightThemeLogo)==null?void 0:H.icon}};
_.V.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.V.getLottieUrl=function(K,d){var f,H,D,S;return K?d==null?void 0:(f=d.darkThemeLogo)==null?void 0:(H=f.lottieAnimation)==null?void 0:H.url:d==null?void 0:(D=d.lightThemeLogo)==null?void 0:(S=D.lottieAnimation)==null?void 0:S.url};
_.V.computeLottiePlayerProps=function(K){if(K){var d;if((d=this.animationRef)==null?0:d.lottieEl){var f;(f=this.animationRef)==null||f.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:K,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.V.onLottieError=function(){this.data&&this.lottieUrl&&_.Zp(this.hostElement,"yoodle-error")};
_.V.onImgError=function(){this.data&&!this.lottieUrl&&_.Zp(this.hostElement,"yoodle-error")};
HB.prototype.playAnimation=HB.prototype.playAnimation;HB.prototype.renderLogoEntity=HB.prototype.renderLogoEntity;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],HB.prototype,"data",void 0);_.x([_.A({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.B("design:type",Boolean)],HB.prototype,"hideImg",void 0);
_.x([_.A({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.B("design:type",Boolean)],HB.prototype,"hideYtdLogo",void 0);_.x([_.A({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.B("design:type",Boolean)],HB.prototype,"hideLottie",void 0);_.x([_.A({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.B("design:type",Boolean)],HB.prototype,"isRedLogo",void 0);
_.x([_.A(),_.B("design:type",Boolean)],HB.prototype,"useDarkThemeYoodle",void 0);_.x([_.A(),_.B("design:type",String)],HB.prototype,"url",void 0);_.x([_.A(),_.B("design:type",String)],HB.prototype,"animatedUrl",void 0);_.x([_.A(),_.B("design:type",String)],HB.prototype,"logoTitleText",void 0);_.x([_.A({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.B("design:type",Object)],HB.prototype,"logoIcon",void 0);_.x([_.A(),_.B("design:type",Object)],HB.prototype,"logoType",void 0);
_.x([_.A(),_.B("design:type",String)],HB.prototype,"lottieUrl",void 0);_.x([_.A(),_.B("design:type",Object)],HB.prototype,"lottiePlayerProps",void 0);_.x([_.A(),_.B("design:type",Object)],HB.prototype,"animationRef",void 0);_.x([_.SP("data"),_.SP("useDarkThemeYoodle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HB.prototype,"renderLogoEntity",null);
_.x([_.VV("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],HB.prototype,"playAnimation",null);HB=_.x([_.Q({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],HB);
_.C(HB,"ytd-yoodle-renderer",function(){if(m9U!==void 0)return m9U;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return m9U=K},{mode:_.p8("kevlar_poly_si_batch_j074")?1:2});var WiK;var G5i;var DN=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return K};
_.O(DN,_.q);_.V=DN.prototype;_.V.onYoodleError=function(){_.M("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.V.computeLogoName=function(K){K=this.componentBehavior.computeIcon_(K);return K===""?"yt-logos-ext:yt-logo-updated":K};
_.V.computeTitle=function(K,d,f){return f&&(d==null?0:d.tooltipText)?_.qQ(d.tooltipText):_.qQ(K)};
_.V.computeAriaLabel=function(K,d,f){return f&&(d==null?0:d.tooltipText)?_.qQ(K):""};
_.V.computeShowYoodle=function(K,d,f){return!K||!d&&!!f&&!_.PR.isEmpty(f)};
_.V.onNavigateHomeAction=function(){if(_.M("kevlar_miniplayer_navigate_home_from_app_killswitch")){var K;(K=_.E(this.hostElement).querySelector(".yt-simple-endpoint"))==null||K.click()}};
_.V.computeLogoHref=function(K,d,f){var H;(f==null?0:f.onTapCommand)?H=this.componentBehavior.computeHref_(f.onTapCommand):K&&(H=this.componentBehavior.computeHref_(K));return H?H:d};
_.V.computeCommand=function(K,d){return(d==null?void 0:d.onTapCommand)||K};
_.V.getEndpointForm=function(){if(_.M("kevlar_topbar_disable_cache_only_home")){var K=_.eq().resolve(_.tj),d=KnE(K.getState())||"";K=_.AZu(K.getState())||"";return{disableCache:d==="ytd-browse"&&K==="home"}}return{disableCache:!0}};
DN.prototype.onYoodleError=DN.prototype.onYoodleError;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],DN.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],DN.prototype,"componentBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],DN.prototype,"ytdReduxBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],DN.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],DN.prototype,"countryCode",void 0);_.x([_.A({selectorArgs:["data.overrideEntityKey"],selector:function(K,d){return _.DR(K.entities,"logoEntity",d)}}),
_.B("design:type",Object)],DN.prototype,"logoEntity",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.B("design:type",Boolean)],DN.prototype,"showYoodle",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],DN.prototype,"yoodleError",void 0);_.x([_.A({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.B("design:type",String)],DN.prototype,"titleText",void 0);
_.x([_.A({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.B("design:type",String)],DN.prototype,"ariaLabelText",void 0);_.x([_.A({value:"/"}),_.B("design:type",String)],DN.prototype,"defaultEndpointUrl",void 0);_.x([_.A({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.B("design:type",String)],DN.prototype,"endpointUrl",void 0);
_.x([_.A({computed:"computeCommand(data.endpoint, logoEntity)"}),_.B("design:type",String)],DN.prototype,"command",void 0);_.x([_.A(),_.B("design:type",Object)],DN.prototype,"logoType",void 0);_.x([_.A({}),_.B("design:type",Boolean)],DN.prototype,"useDarkThemeYoodle",void 0);_.x([_.VV("yoodle-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DN.prototype,"onYoodleError",null);DN=_.x([_.Q({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],DN);
_.C(DN,"ytd-topbar-logo-renderer",function(){if(G5i!==void 0)return G5i;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return G5i=K},{mode:_.p8("kevlar_poly_si_batch_j027")?1:2});var AHt=0;var TWw=_.ja.SEARCH_APPEND_LABEL,rHP=_.ja.SUGGESTION_NEW_VIDEOS_TEXT,q$w=_.ja.SUGGESTION_THUMBNAIL_LABEL,QJZ=_.C8(function(K){function d(u9){var wz,Ms;return _.c(function(yc){if(yc.nextAddress==1)return wz=new Request(u9),_.HF(yc,2),_.I(yc,fetch(wz,{credentials:"include"}),4);if(yc.nextAddress!=2)return KE(!0),_.Ts(yc,0);Ms=_.n7(yc);_.h3(Ms);_.iQ(yc)})}
var f=K.isHighlighted;var H=K.suggestion;var D=K.onClickCallback;var S=K.onHoverUpdateCallback;var n=K.labels;var u=K.queryBuilderFunction;var a=K.onRemoveCallback;var R=K.suggestionIndex;var F=K.generateUniqueId;var z=K.highlightedId;var v=K.useScrollMargin;var g=K.isKeyboardMode;var N=null,h=null,m=_.Co(),T=_.Co(),r=_.x7(function(u9){u9&&_.Nv(237477,u9,h,function(wz){h=wz})}),J=_.x7(function(u9){u9&&_.Nv(237477,u9,h,function(wz){h=wz})}),L=_.cp(function(u9){if((u9==null?void 0:u9.button)===2)return u9.preventDefault(),
!1;
var wz=_.te();wz&&N&&_.qY(wz,N,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Ms;D(u9,H().text,H().index,H().entityMid,u9==null?void 0:(Ms=u9.detail)==null?void 0:Ms.wasSelectedByKeyboard);return!1}),fB=function(){return H().type===35},w=function(){return _.M("desktop_enable_single_suggestion_highlight")},yO=function(){return _.di("desktop_suggestions_panel_row_height")||0},FX=function(){var u9;
return _.M("desktop_enable_new_video_metadata")&&((u9=H())==null?void 0:u9.hasNewVideo)===!0},NJ=function(){return _.M("desktop_enable_visual_suggest")},$z=function(){var u9;
if(u9=_.M("desktop_enable_entity_suggest")){var wz=H();u9=!!nJP(wz.subtypes);wz=!!wz.entityMid;u9=u9||wz}return u9},hN=function(){return H().entitySubtitle},bo=function(){return w()?(f==null?void 0:f())||Oj()&&!(g==null?0:g()):(f==null?void 0:f())||Oj()},xz=function(){var u9=_.mD("SBOX_SETTINGS");
return fB()&&!(u9==null?0:u9.HIDE_REMOVE_LINK)},qJ=function(){return RWw(H())},Y8,Iz=!((Y8=_.eq().resolve(_.Zd(_.AJ)))==null||!Y8()),qs=function(){return fB()?_.M("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},af=function(){return n==null?void 0:n().SUGGESTION_DISMISS_LABEL},i9=function(){return n==null?void 0:n().SUGGESTION_DISMISSED_LABEL};
Y8=_.y(_.cC(!1,void 0,"DYKome"));K=Y8.next().value;var KE=Y8.next().value;Y8=_.y(_.cC(!1,void 0,"H8xu6b"));var c4=Y8.next().value,cx=Y8.next().value,Oj=c4,io=_.cp(function(){u(T.value.innerText);return!1}),g2=_.cp(function(u9){u9.preventDefault();
return!1}),l9=_.cp(function(u9){var wz=H().text,Ms=_.mD("SBOX_SETTINGS"),yc="https://"+(Ms.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
yc+="&delq="+encodeURIComponent(wz);(wz=Ms==null?void 0:Ms.PSUGGEST_TOKEN)&&(yc+="&tok="+wz);(Ms=Ms==null?void 0:Ms.SESSION_INDEX)&&(yc+="&authuser="+Ms);d(yc);u9.preventDefault();(u9=_.te())&&h&&_.qY(u9,h,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");a(R==null?void 0:R());return!1}),rw=_.cp(function(){if(w()&&(g==null?0:g()))return!1;
cx(!0);S(!0);return!1}),t6=_.cp(function(){cx(!1);
S(!1);return!1});
Y8=_.y(_.cC("",void 0,"H3zPCe"));var LJ=Y8.next().value,ry=Y8.next().value;_.Nk(function(){xz()&&ry(F==null?void 0:F(R==null?void 0:R()));m.value&&_.Nv(12453,m.value,N,function(u9){N=u9})});
return _.U(_.X,{cond:K,then:function(){var u9={};return _.U("div",{class:_.SC("ytSuggestionComponentRemovedText",(u9.ytSuggestionComponentLargerRemovedText=function(){return NJ()},u9)),
style:function(){return yO()>0?"height: "+yO()+"px;":""},
role:"button"},i9)},
else:function(){var u9={},wz={};return _.U("div",{class:_.SC("ytSuggestionComponentSuggestion",(u9.ytSuggestionComponentSuggestionHover=function(){return!w()},u9.ytSuggestionComponentHighlighted=bo,u9.ytSuggestionComponentPersonalizedSuggestion=fB,u9.ytSuggestionComponentMweb=!1,u9.ytSuggestionComponentLargerSuggestion=function(){return FX()||NJ()},u9.ytSuggestionComponentThumbnailSuggestion=function(){return NJ()},u9.ytSuggestionComponentRoundedSuggestion=function(){return _.M("desktop_enable_scrollable_suggestions_panel")&&
_.M("desktop_enable_suggestions_panel_padding")},u9.ytSuggestionComponentThumbnailPadding=function(){return NJ()&&!fB()},u9)),
style:function(){return yO()>0?"height: "+yO()+"px;":""},
role:"presentation","on:mousedown":L,"on:mouseover":rw,"on:mouseout":t6,el:m},_.U("div",{class:_.SC("ytSuggestionComponentText",(wz.ytSuggestionComponentScrollMargin=v,wz)),"aria-label":function(){return FX()?H().text+" "+rHP:H().text},
id:function(){return F==null?void 0:F(R==null?void 0:R())},
"on:mousedown":L,role:"option"},_.U(_.X,{cond:function(){return H().type!==33},
then:function(){return _.U(_.U5,{icon:qs,className:"ytSuggestionComponentIcon"})}}),_.U("div",{class:"ytSuggestionComponentLeftContainer"},_.U("span",{el:T,
role:"button",tabindex:0},_.U(_.v_,{each:qJ},function(Ms){return Ms.bold?_.U("span",{class:"ytSuggestionComponentBold"},Ms.text):_.U("span",null,Ms.text)})),_.U(_.X,{cond:function(){return $z()&&!!H().entitySubtitle||FX()},
then:function(){return _.U("div",{class:"ytSuggestionComponentMetadataContainer"},_.U(_.X,{cond:function(){return $z()&&!!H().entitySubtitle},
then:function(){return _.U("div",{class:"ytSuggestionComponentEntitySubtitle"},hN)}}),_.U(_.X,{cond:function(){return FX()},
then:function(){return _.U("div",{class:"ytSuggestionComponentNewVideoContainer"},_.U("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.U("div",{class:"ytSuggestionComponentNewVideoText"},rHP))}}))}}))),_.U("div",{class:"ytSuggestionComponentRightContainer"},_.U(_.X,{cond:function(){return NJ()&&H().visualSuggestUrl!==void 0},
then:function(){var Ms={};return _.U("div",{class:"ytSuggestionComponentThumbnailContainer"},_.U("img",{"aria-label":q$w,class:_.SC("ytSuggestionComponentVisualSuggestThumbnail",(Ms.ytSuggestionComponentCircularFrame=function(){return $z()&&H().subtypes.includes(790)},Ms.ytSuggestionComponentEntitySuggestThumbnail=function(){return $z()},Ms)),
src:function(){return H().visualSuggestUrl}}))}}),_.U(_.gF,null,_.U(_.Mk,{when:function(){return NJ()&&xz()}},function(){var Ms={};
return _.U("button",{class:_.SC("ytSuggestionComponentRemoveLinkClearButton",(Ms.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return LJ()&&LJ()===(z==null?void 0:z())},Ms.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!bo()},Ms)),
el:J,"on:mousedown":l9,"aria-label":af,id:function(){return LJ()}},_.U(_.U5,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.U(_.Mk,{when:function(){return!(NJ()&&H().visualSuggestUrl!==void 0)&&xz()}},function(){var Ms={};
return _.U("a",{class:_.SC("ytSuggestionComponentRemoveLink",(Ms.ytSuggestionComponentRemoveLinkDark=Iz,Ms.ytSuggestionComponentRemoveLinkSelected=function(){return LJ()&&LJ()===(z==null?void 0:z())},Ms)),
el:r,"on:mousedown":l9,"aria-label":af,tabindex:0,role:"button",id:function(){return LJ()}},af)}),_.U(_.Mk,{when:function(){return!1}},function(){return _.U("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":io,"on:mousedown":g2,role:"button","aria-label":TWw},_.U(_.U5,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"kg");var jJK=_.C8(function(){return _.U("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.U("button",{class:"ytdTextInputAssistantButton","on:click":_.cp(function(){vdy().inputMethodsTracker.add(3);var K,d=(K=_.mD("SBOX_SETTINGS"))==null?void 0:K.REQUEST_LANGUAGE;if(d)return _.mV("//www.google.com/textinputassistant/14/"+d+"_tia.js"),!1})},_.U("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"lg");var Cnl=function(){this.cache=new Map},x9c=function(K){for(var d=_.y(K.cache.entries()),f=d.next();!f.done;f=d.next()){var H=_.y(f.value);
f=H.next().value;H=H.next().value;H.suggestions.some(function(D){return D.type===35})&&K.cache.delete(f)}};var LiS=_.ja.SEARCH,BWc=_.ja.SEARCH_CLEAR_LABEL,JHw=new _.xn("FAKE_SUGGEST_RESPONSE");_.sP(_.C8(function(K){function d(){u9||(u9=setTimeout(function(){Ms()},1E3))}
function f(v4,FH,Fi){if(v4.trim()){ry=v4;_.bx("REFINEMENTS_TUPLE",void 0);t6=!0;var a6;FH=gdE(Oj,FH);var St=(a6=K.searchEndpoint)==null?void 0:a6.call(K);a6=i9.value.value;St||(St=FWK);var Fa;(Fa=_.P(St.commandMetadata,_.B0))!=null&&Fa.url||(Fa=Error("ll`"+JSON.stringify(St)),_.$7(Fa),St=FWK);Fa=_.PR.unsafeClone(St);St=_.lp(_.P(Fa.commandMetadata,_.B0).url,"search_query",v4);_.rG(location.href,"sv")==="1"&&(_.P(Fa,_.cW).params="EgOAAgE%3D",St=_.lp(St,"sv","1"));_.P(Fa,_.cW)&&(_.P(Fa,_.cW).query=v4);
St=St.replace(/%20/g,"+");_.P(Fa.commandMetadata,_.B0).url=St;Fi=_.M("desktop_enable_entity_suggest")?{entityMid:Fi}:{};_.eq().resolve(_.pQ).resolveCommand(Fa,{form:{tempData:Object.assign({},{gs_l:FH,oq:a6!=null?a6:v4},Fi)}});Ms();i9.value.value=v4;i9.value.blur();Oj.reset()}}
function H(v4){return _.c(function(FH){return FH.return(new Promise(function(Fi){var a6=new XMLHttpRequest;a6.open("GET",nd5(v4),!0);a6.withCredentials=!0;var St=_.mD("SBOX_SETTINGS");(St==null?0:St.SEND_VISITOR_DATA)&&a6.setRequestHeader("X-Goog-Visitor-Id",St==null?void 0:St.VISITOR_DATA);a6.onload=function(){Fi(a6.responseText)};
a6.onerror=function(){_.h3(Error("ml"));Fi(null)};
setTimeout(function(){a6.abort()},1E4);
a6.send(null)}))})}
function D(v4){var FH,Fi,a6,St;return _.c(function(Fa){switch(Fa.nextAddress){case 1:return FH={credentials:"include",headers:yHw()},window.AbortController&&(Fi=new AbortController,setTimeout(function(){Fi.abort("ytsbox-suggest-timeout")},1E4),FH.signal=Fi.signal),_.HF(Fa,2),_.I(Fa,fetch(nd5(v4),FH),4);
case 4:a6=Fa.yieldResult.text();_.Ts(Fa,3);break;case 2:return St=_.n7(Fa),St!=="ytsbox-abort-last"&&St!=="ytsbox-suggest-timeout"&&_.h3(St),Fa.return(null);case 3:return Fa.return(a6)}})}
function S(v4){var FH,Fi,a6;return _.c(function(St){switch(St.nextAddress){case 1:if(FH=_.eq().resolve(_.Zd(JHw)))return St.return(FH);Fi=Date.now();d();return _.M("yt_searchbox_xhr")?_.I(St,H(v4),5):_.I(St,D(v4),4);case 4:a6=St.yieldResult;St.jumpTo(3);break;case 5:a6=St.yieldResult;case 3:if(a6){u9&&(clearTimeout(u9),u9=null);var Fa=Oj,Un=Fi,lN=v4.query.length===0;Un=Date.now()-Un;lN?Fa.zeroPrefixRoundTripTime=Un:(Fa.JSC$18416_totalRoundTripTime+=Un,Fa.maxRoundTripTime=Math.max(Fa.maxRoundTripTime,
Un),lN=Math.floor(Un/100),lN>=OWE.length?++Fa.roundTripTimeHistogram[9]:++Fa.roundTripTimeHistogram[OWE[lN]])}return St.return(a6)}})}
function n(v4){var FH,Fi,a6;return _.c(function(St){if(St.nextAddress==1)return(FH=cx.cache.get(S$i(v4)))?St.return(FH):_.I(St,S(v4),2);Fi=St.yieldResult;if(Fi===null)return St.return(null);a6=new Fic(Fi);v4.query.length===0&&a6.suggestions.length===0||cx.cache.set(S$i(v4),a6);return St.return(a6)})}
function u(v4){var FH,Fi;return _.c(function(a6){if(a6.nextAddress==1){LJ=!1;var St=ry;St=_.pfX()==="search"?(_.rG(location.href,"search_query")||_.rG(location.href,"q"))===St:!1;FH=new VfP(v4,St?ry:null);return _.I(a6,n(FH),2)}Fi=a6.yieldResult;if(Fi===null)return a6.return();FH.query.length===0&&(Oj.zeroPrefixSuggestionCount=Fi.suggestions.length);if(FH.id<=wz)return Oj.outOfSyncResponseCount++,a6.return();if(document.activeElement!==i9.value)return a6.return();wz=FH.id;var Fa=Oj,Un=Fi.rawResponse[2]||
{};Fa.experimentTriggeredBeforeFinal||(Fa.experimentTriggeredBeforeFinal=Fa.experimentTriggeredFinal);Fa.experimentTriggeredFinal=!!Un.e;Oj.updateSuggestions(Fi.suggestions);m(-1);Y8([]);Fi.suggestions!==g()&&Il(Fi.suggestions.length);N(Fi.suggestions);FX(Fi.suggestions.length>0&&Fi.suggestions[0].type===33);c4&&(c4.hidden=Fi.suggestions.length===0,yO()?(c4.style.minWidth="",Fa=c4.style,Un=(St=g()[0])==null?void 0:St.ignoredPrefix,Fa.marginLeft=(Un?Math.min(Un.length*6,KE.value.offsetWidth):0).toString()+
"px"):(c4.style.minWidth=KE.value.offsetWidth+"px",c4.style.marginLeft="0"),w5());_.iQ(a6)})}
function a(){if(!t6)return!1;var v4=_.mD("REFINEMENTS_TUPLE");return v4?(v4=v4[1].map(function(FH,Fi){return new U9t([FH,0,[71]],i9.value.value,Fi)}),g()!==v4&&Il(v4.length),Y8([]),N(v4),Oj.updateSuggestions(v4),t6=!1,c4.hidden=v4.length===0,LJ=v4.length>0,!0):!1}
function R(){var v4=i9.value.value;(typeof v4==="string"||v4 instanceof String)&&v4!==""?L(!0):L(!1)}
function F(){if(_.pfX()==="search"){var v4=window.location.href;try{var FH=_.rG(v4,"search_query")||_.rG(v4,"q")||""}catch(Fi){FH=""}FH&&(i9.value.value=FH,L(!0))}}
var z=_.y(_.cC([],void 0,"kGFAjf")),v=z.next().value;z=z.next().value;var g=v,N=z;v=_.y(_.cC(-1,void 0,"mLGL9e"));var h=v.next().value,m=v.next().value;v=_.y(_.cC(-1,void 0,"u2rYdc"));var T=v.next().value,r=v.next().value;v=_.y(_.cC(!1,void 0,"W9DFC"));var J=v.next().value,L=v.next().value;v=_.y(_.cC(!1,void 0,"Ip4dNc"));var fB=v.next().value,w=v.next().value;z=_.y(_.cC(!1,void 0,"ZNKSQb"));v=z.next().value;z=z.next().value;var yO=v,FX=z;z=_.y(_.cC(!1,void 0,"JBrGLd"));v=z.next().value;var NJ=z.next().value;
z=_.y(_.cC(!1,void 0,"P2pD6e"));var $z=z.next().value,hN=z.next().value;z=_.y(_.cC(1,void 0,"SjP20c"));var bo=z.next().value,xz=z.next().value;z=_.y(_.cC([],void 0,"h4dRaf"));var qJ=z.next().value,Y8=z.next().value;z=_.y(_.cC(!1,void 0,"TUTzaf"));var Iz=z.next().value,qs=z.next().value;z=_.M("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var af=_.Co(),i9=_.Co(),KE=_.Co(),c4,cx=new Cnl,Oj=vdy(),io=_.eq().resolve(_.Zd(_.AJ)),
g2=function(){var v4;return((v4=K.forceDarkMode)==null?void 0:v4.call(K))||!(io==null||!io())},l9=function(){return _.M("desktop_enable_scrollable_suggestions_panel")},rw="i"+AHt++,t6=!1,LJ=!1,ry="",u9=null,wz=-1,Ms=function(){Y8([]);
N([]);FX(!1);c4&&(c4.hidden=!0);u9&&(clearTimeout(u9),u9=null);m(-1)},yc=function(v4,FH){v4.preventDefault();
qs(!0);c4&&(c4.hidden=!1);var Fi=h();v4=g();var a6=qJ();FH=cyK(FH);Fi+=FH;for(Fi>=v4.length?Fi=-1:Fi<-1&&(Fi=v4.length-1);Fi!==-1&&(a6.includes(Fi)||Fi>=v4.length||Fi<0);)Fi+=FH,Fi>=v4.length&&(Fi=-1);m(Fi);h()>=0&&(i9.value.value=g()[h()].text,r(0),R(),v4=h(),a6=T(),(a6=document.getElementById(qe[v4][a6]))&&l9()&&(v4===g().length-1?c4.scrollTop=c4.scrollHeight:a6.scrollIntoView({block:"nearest",inline:"start"})))},P4=_.cp(function(v4){if(!(v4.relatedTarget instanceof Element&&v4.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){w(!0);
var FH;(FH=K.focusCallback)==null||FH.call(K,!0);a()||(LJ?c4.hidden=!1:(_.Zp(af.value,"yt-autonav-pause-focus",{}),u(v4.target.value)))}}),zy=_.cp(function(v4){if(!(v4.relatedTarget instanceof Element&&v4.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){w(!1);
var FH;(FH=K.focusCallback)==null||FH.call(K,!1);c4.scrollTop=0;c4.hidden=!0;_.Zp(af.value,"yt-autonav-pause-blur",{})}}),nw=function(v4){v4=cyK(v4);
var FH;((FH=qe[h()])==null?0:FH[T()+v4])&&r(T()+v4)},Sc=_.cp(function(v4){var FH=v4.target;
switch(v4.keyCode){case 13:v4.preventDefault();var Fi;if((Fi=qe[h()])==null?0:Fi[T()]){var a6;(a6=document.getElementById(qe[h()][T()]))==null||a6.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}v4=v4.shiftKey?4:3;Fi=Oj;a6=h();Fi.selectedSuggestionIndex=a6;f(FH.value,v4);break;case 27:c4&&(c4.hidden=!0);break;case 40:yc(v4,40);break;case 38:yc(v4,38);break;case 39:nw(39);break;case 37:nw(37);break;case 229:Oj.inputMethodsTracker.add(4);break;default:Oj.inputMethodsTracker.add(1),
Mfl(Oj)}return!1}),AP=_.cp(function(v4){u(v4.target.value);
R();l9()&&c4&&(c4.scrollTop=0);return!1}),zf=_.cp(function(){Oj.inputMethodsTracker.add(2);
Mfl(Oj);return!1});
_.Nk(function(){if(c4){Oj.reset();if(window.ResizeObserver){var v4=new ResizeObserver(function(){yO()||(c4.style.minWidth=KE.value.offsetWidth+"px")});
v4.observe(KE.value);(new ResizeObserver(function(){w5()})).observe(c4);
_.$F(function(){v4.disconnect()})}F();
window.addEventListener("yt-navigate-finish",F);window.addEventListener("yt-focus-searchbox",function(){i9.value.focus()});
var FH;NJ((FH=_.mD("SBOX_SETTINGS"))==null?void 0:FH.HAS_ON_SCREEN_KEYBOARD)}else _.$7(new _.X4("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Ss=_.cp(function(v4){v4.preventDefault();f(i9.value.value,12);return!1}),Qv=_.cp(function(v4){v4.preventDefault();
var FH,Fi;(FH=i9)==null||(Fi=FH.value)==null||Fi.focus();var a6,St;((a6=i9)==null?void 0:(St=a6.value)==null?void 0:St.value)!==""&&(i9.value.value="",i9.value.dispatchEvent(new Event("input")));return!1}),PK=_.cp(function(){var v4=dHc(i9.value.value,g().filter(function(FH){return FH.type!==35}).map(function(FH){return{label:FH.text}}));
_.ev(af.value,"yt-open-popup-action",[{openPopupAction:v4},document.body]);return!1}),Z7=_.cp(function(){i9.value.focus();
return!1}),Kw=function(v4,FH,Fi,a6,St){Oj.selectedSuggestionIndex=Fi;
f(FH,St?3:1,a6)},Yl=function(v4){i9.value.value=v4;
i9.value.dispatchEvent(new Event("input"));Oj.inputMethodsTracker.add(5);Mfl(Oj,!0)},qe=[[]],W_=function(v4){var FH="searchbox-suggestion"+_.Ot(_.MS);
qe[v4].push(FH);return FH},Il=function(v4){if(g()){qe=[[]];
for(var FH=0;FH<v4;FH++)qe.push([])}},w5=function(){if(l9()){var v4=c4,FH=v4.scrollTop;
v4=v4.scrollHeight-v4.clientHeight;hN(FH>=v4);FH=Math.abs(v4-FH);FH<=40?xz(1-(40-FH)/40):xz(1)}},tG=function(){return"opacity: "+bo()*100+"%"},Pu=_.cp(function(){w5();
return!1}),GS=_.cp(function(){qs(!1);
return!1}),jp,Rf={},D7={},o6={},cK={};
return _.U("yt-searchbox",{class:_.SC("ytSearchboxComponentHost",(Rf.ytSearchboxComponentMweb=!1,Rf.ytSearchboxComponentDesktop=!0,Rf["yt-searchbox-filled-query"]=function(){return J()},Rf["ytd-masthead"]=function(){return!fB()},Rf.ytSearchboxComponentHostDark=g2,Rf)),
role:"search",el:af,"client-ve-type":10349},_.U("div",{el:KE,"on:click":Z7,class:_.SC("ytSearchboxComponentInputBox",(D7.ytSearchboxComponentInputBoxDark=g2,D7.ytSearchboxComponentInputBoxHasFocus=fB,D7))},_.U("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Ss},_.U(_.X,{cond:fB,then:function(){return _.U("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.U(_.U5,{icon:"SEARCH"}))}}),_.U("input",{el:i9,
class:_.SC("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":rw,"aria-expanded":!((jp=c4)==null?0:jp.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":zy,"on:focus":P4,"on:input":AP,"on:keydown":Sc,"on:paste":zf,placeholder:K.placeholderText,"aria-activedescendant":function(){var v4;return(v4=qe[h()])==null?void 0:v4[T()]},
"aria-autocomplete":"list",role:"combobox"})),_.U(_.X,{cond:v,then:function(){return _.U("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.U(jJK,null))}}),_.U(_.X,{cond:J,
then:function(){return _.U("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.U("button",{class:"ytSearchboxComponentClearButton","on:click":Qv,"aria-label":K.clearButtonAriaLabel||BWc},_.U(_.U5,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.U(_.zz,{model:{}})))}})),_.U("button",{class:_.SC("ytSearchboxComponentSearchButton",(o6.ytSearchboxComponentSearchButtonDark=g2,o6)),
"on:click":Ss,"aria-label":LiS,title:K.placeholderText},_.U(_.U5,{icon:"SEARCH"})),_.U(_.X,{cond:function(){if(Mvt()&&_.M("mweb_voice_search")&&K.voiceSearchButton)return K.voiceSearchButton()},
then:function(v4){var FH={};return _.U("div",{class:_.SC("ytSearchboxComponentVoiceSearchWrapper",(FH.ytSearchboxComponentHideVoiceSearchButton=function(){return J()},FH))},_.U(_.z1,{data:v4},{buttonRenderer:function(Fi){return _.U(_.T5,{data:Fi.data,
onButtonClickCallback:function(){}})}}))}}),_.U("div",{el:_.xA(function(v4){return void(c4=v4)}),
id:rw,class:_.SC("ytSearchboxComponentSuggestionsContainer",(cK.ytSearchboxComponentSuggestionsContainerDark=g2,cK["yt-searchbox-suggestions-container"]=!1,cK.ytSearchboxComponentSuggestionsContainerScrollable=l9(),cK.ytSearchboxComponentSuggestionsContainerAnimated=z,cK)),"on:scroll":Pu,"on:mousemove":GS,role:"listbox",hidden:!0},_.U(_.v_,{each:g},function(v4,FH){return _.U(QJZ,{suggestion:v4,isHighlighted:function(){return FH()===h()},
onClickCallback:Kw,onHoverUpdateCallback:function(Fi){if(_.M("desktop_enable_single_suggestion_highlight")){var a6=FH();Fi&&(r(0),m(a6))}},
onRemoveCallback:function(Fi){x9c(cx);Fi===void 0||Fi<0||qJ().includes(Fi)||Y8([].concat(_.Me(qJ()),[Fi]))},
labels:K.labels,queryBuilderFunction:Yl,suggestionIndex:FH,generateUniqueId:W_,highlightedId:function(){var Fi;return(Fi=qe[h()])==null?void 0:Fi[T()]},
useScrollMargin:l9(),isKeyboardMode:Iz})}),_.U(_.X,{cond:function(){return!yO()&&g().find(function(v4){return v4.type!==35})&&_.M("searchbox_reporting")},
then:function(){return _.U("button",{class:"ytSearchboxComponentReportButton","on:mousedown":PK},_.iB("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.U(_.X,{cond:function(){return!$z()&&l9()},
then:function(){return _.U("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.U("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:tG}))}})))},"mg"),"yt-searchbox",{props:{searchEndpoint:_.rs,
placeholderText:_.rs,labels:_.rs,voiceSearchButton:_.rs,focusCallback:_.JJ,clearButtonAriaLabel:_.rs,forceDarkMode:_.rs}});var Va=function(){var K=_.q.apply(this,arguments)||this;K.menuButtonTargetId="topbar-guide-menu";K.narrow=!1;K.menuStrings={BACK_ALT_LABEL:_.iB("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.iB("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.iB("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.iB("SBOX_PLACEHOLDER",void 0,"Search")};K.pageDarkTheme=document.documentElement.hasAttribute("dark");K.watchPageScrollTop=0;K.theater=!1;K.fullscreen=!1;K.desktopUnifiedSearchPanelMode=_.M("desktop_enable_unified_search_panel");
K.cinematicTheaterMode=_.M("web_cinematic_theater_mode");K.ytSearchboxFocused=!1;K.searchboxLabels=_.mD("SBOX_LABELS");K.topbarIsAboveChipbar=!1;K.isDarkThemeForced=!1;K.areGhostCardsHidden=!1;K.guideKeyboardToggle=!1;K.voiceSearchManager=iIE();K.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};K.setYtSearchboxFocused=function(d){K.ytSearchboxFocused=d};
return K};
_.O(Va,_.q);_.V=Va.prototype;_.V.computeSimpleText=function(K){return _.qQ(K)};
_.V.onDarkChanged=function(){for(var K=_.y(this.buttons||[]),d=K.next();!d.done;d=K.next())d.value.isOverlay=!!this.dark;K=_.y(this.buttonRenderers||[]);for(d=K.next();!d.done;d=K.next())d.value.overrides=this.computeButtonOverride()};
_.V.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.V.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var K=_.$f(_.ov(),"aa");_.pU(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||K||(this.isDarkThemeForced=this.dark=!0);this.logoType?(K=this.hostElement.querySelector("#masthead-logo"))&&(_.M("polymer_on_demand_shady_dom")?K.setAttribute("slot","masthead-logo-old"):_.FE(K)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Dm(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Dm(this,this.onSetTheaterModeEnabled))};
_.V.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Dm(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Dm(this,this.onSetTheaterModeEnabled))};
_.V.dataChanged=function(){var K=this.data;K&&(this.voiceEnabled=K.voiceSearchButton?iIE().isSupported():!1,_.RW2(_.aC(),this.menuButtonTargetId,this.guideButton),K.onReceivedActions&&K.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.fd(this.hostElement,K.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&K&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.pU(this.hostElement,"dark",!1),_.pU(this.hostElement,"theater",!1),
(K=this.hostElement.querySelector("#masthead-logo"))&&(_.M("polymer_on_demand_shady_dom")?K.setAttribute("slot","masthead-logo-old"):_.FE(K))))};
_.V.computeCenterHidden=function(){var K;return this.data&&!((K=this.data.searchbox)==null?0:K.fusionSearchboxRenderer)};
_.V.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.pU(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.V.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.V.onWatchScroll=function(K){this.watchPageScrollTop=K.detail||0;this.updateMastheadBackgroundOpacity()};
_.V.onFullscreenChangeAction=function(K){K||(this.watchPageScrollTop=0);this.fullscreen=K;this.updateMastheadBackgroundOpacity()};
_.V.onSetTheaterModeEnabled=function(K){this.theater=K.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.V.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.V.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.V.setBackgroundOpacity=function(K){K=this.calculateBackgroundOpacity(K);this.background.style.opacity=""+K};
_.V.calculateBackgroundOpacity=function(K){var d=this.theater&&this.cinematicTheaterMode?.6:0,f=this.hostElement.clientHeight/2;return Math.min(Math.max(K,0),f)/f*(1-d)+d};
_.V.shouldShowCinematicMastHead=function(){var K=_.M("kevlar_watch_grid")&&!_.M("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(K||this.pageDarkTheme)};
_.V.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.V.focusGuide=function(){this.guideButton.focus()};
_.V.onGuideToggleTap=function(){_.Zp(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.V.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.V.onGuideToggleHover=function(){_.Zp(this.hostElement,"yt-guide-hover")};
_.V.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.V.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.V.closeOnOutsideClickCondition=function(K){for(K=_.qn(K);K[0];){var d=K.shift();if(d instanceof Element&&d.id==="kbd")return!1}return!0};
_.V.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.V.pausePlayer=function(){var K;(K=_.xP())==null||K.pause();this.pauseMiniplayer()};
_.V.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var K;(K=_.eq().resolve(_.$b).getPlayerElement())==null||K.pause()}};
_.V.isMiniplayerActive=function(){return _.eq().resolve(_.$b).isMiniplayerActive()};
_.V.updateNarrowFromBinding=function(K){this.narrow=K.detail.value};
_.V.onYtSendFeedbackAction=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.x$.Object.defineProperties(Va.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var K;return(K=this.data)==null?void 0:K.voiceSearchButton}}}});
Va.prototype.narrowChanged=Va.prototype.narrowChanged;Va.prototype.onWatchPageChange=Va.prototype.onWatchPageChange;Va.prototype.onRendererStamperFinished=Va.prototype.onRendererStamperFinished;Va.prototype.dataChanged=Va.prototype.dataChanged;Va.prototype.onDarkChanged=Va.prototype.onDarkChanged;_.x([_.l(_.Mg),_.B("design:type",Object)],Va.prototype,"ironResizableBehavior",void 0);_.x([_.l(_.aaU),_.B("design:type",Object)],Va.prototype,"ytdExpandableInputBehavior",void 0);
_.x([_.l(_.lO.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Va.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Va.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Va.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.ou),_.B("design:type",Object)],Va.prototype,"ytdReduxBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],Va.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Va.prototype,"narrow",void 0);_.x([_.A(),_.B("design:type",Object)],Va.prototype,"logoType",void 0);_.x([_.A(),_.B("design:type",Boolean)],Va.prototype,"voiceEnabled",void 0);
_.x([_.A(),_.B("design:type",Object)],Va.prototype,"menuStrings",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Va.prototype,"dark",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Va.prototype,"pageDarkTheme",void 0);_.x([_.A(),_.B("design:type",Object)],Va.prototype,"watchPageScrollTop",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.tp}),_.B("design:type",Boolean)],Va.prototype,"isWatchPage",void 0);
_.x([_.A({reflectToAttribute:!0,selector:_.UVX}),_.B("design:type",Boolean)],Va.prototype,"isShortsPage",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Va.prototype,"theater",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Va.prototype,"fullscreen",void 0);_.x([_.A({reflectToAttribute:!0,selector:_.vHS}),_.B("design:type",String)],Va.prototype,"frostedGlassMode",void 0);_.x([_.A(),_.B("design:type",Object)],Va.prototype,"ytSearchboxFocused",void 0);
_.x([_.iL("#buttons > *"),_.B("design:type",Array)],Va.prototype,"buttons",void 0);_.x([_.iL("ytd-button-renderer"),_.B("design:type",Array)],Va.prototype,"buttonRenderers",void 0);_.x([_.n8("#background"),_.B("design:type",HTMLDivElement)],Va.prototype,"background",void 0);_.x([_.n8("#guide-button"),_.B("design:type",Object)],Va.prototype,"guideButton",void 0);_.x([_.n8("#logo"),_.B("design:type",Object)],Va.prototype,"logo",void 0);
_.x([_.A({computed:"computeButtonOverride(dark)"}),_.B("design:type",Object)],Va.prototype,"buttonOverrides",void 0);_.x([_.an("dark"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Va.prototype,"onDarkChanged",null);_.x([_.A({value:function(){return this.onVoiceTap.bind(this)}}),
_.B("design:type",Function)],Va.prototype,"boundOnTapVoiceButton",void 0);_.x([_.A(),_.B("design:type",Object)],Va.prototype,"topbarIsAboveChipbar",void 0);_.x([_.A(),_.B("design:type",String),_.B("design:paramtypes",[])],Va.prototype,"guideIcon",null);_.x([_.W("voiceEnabled"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Va.prototype,"shouldShowVoiceSearchButton",null);_.x([_.W("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Va.prototype,"voiceSearchButton",null);
_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Va.prototype,"dataChanged",null);_.x([_.VV("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Va.prototype,"onRendererStamperFinished",null);_.x([_.an("isWatchPage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Va.prototype,"onWatchPageChange",null);
_.x([_.an("narrow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Va.prototype,"narrowChanged",null);Va=_.x([_.Q({disableElementRegistration:!0,is:"ytd-masthead"})],Va);
_.C(Va,"ytd-masthead",function(){if(WiK!==void 0)return WiK;var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[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>\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return WiK=K},{mode:_.p8("kevlar_poly_si_batch_j036")?1:2});var sJi;var k5K={},wzw={},ZWt={},eWZ={},pzi=(eWZ.OFFLINE=(k5K["publicytnetworkstatus-online"]="BACK_ONLINE",k5K),eWZ.ONLINE=(wzw["publicytnetworkstatus-offline"]="OFFLINE",wzw),eWZ.BACK_ONLINE=(ZWt["publicytnetworkstatus-offline"]="OFFLINE",ZWt.TIMER_TRIGGER="ONLINE",ZWt),eWZ),SX=function(){var K=_.q.apply(this,arguments)||this;K.currentState="ONLINE";K.scheduledJobId=0;K.bannerString="";K.bannerVe=null;K.networkStatusManagerInstance=new _.jc;return K};
_.O(SX,_.q);_.V=SX.prototype;_.V.attached=function(){var K=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){K.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){K.stateChangeHandler("publicytnetworkstatus-offline")})};
_.V.detached=function(){var K=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){K.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){K.stateChangeHandler("publicytnetworkstatus-offline")})};
_.V.enterState=function(K){var d=this;this.scheduledJobId&&_.oc.cancelJob(this.scheduledJobId);K==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):K==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.iB("NO_INTERNET_CONNECTION",void 0,"No internet connection")):K==="BACK_ONLINE"&&(this.bannerString=_.iB("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.va(_.oc,function(){d.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=K};
_.V.stateChangeHandler=function(K){(K=pzi[this.currentState][K])&&this.enterState(K)};
_.V.logVisibility=function(K){var d=_.te();this.createBannerVe(K);d&&this.bannerVe&&(K?_.Ay(d,[this.bannerVe]):_.Tu(d,[this.bannerVe]))};
_.V.createBannerVe=function(K){!this.bannerVe&&K&&(this.bannerVe=_.vp(37929),_.K5(_.cv(),this.bannerVe))};
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",String)],SX.prototype,"currentState",void 0);_.x([_.A(),_.B("design:type",Object)],SX.prototype,"scheduledJobId",void 0);_.x([_.A(),_.B("design:type",Object)],SX.prototype,"bannerString",void 0);SX=_.x([_.Q({disableElementRegistration:!0,is:"ytd-network-status-banner"})],SX);
_.C(SX,"ytd-network-status-banner",function(){if(sJi!==void 0)return sJi;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return sJi=
K},{mode:1});var Kaw;var ya=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};K.hidden=!0;K.frostedGlass=_.M("web_frosted_glass");return K};
_.O(ya,_.q);ya.prototype.computeHidden=function(K){return K&&K.status?!1:!0};
ya.prototype.handleUpdatePermissionRoleCommand=function(K){if(K=_.P(K,_.Hf9))if(K=_.P(K.renderer,_.fTJ))this.data=K};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],ya.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],ya.prototype,"componentBehavior",void 0);_.x([_.A({value:!0,computed:"computeHidden(data)"}),_.B("design:type",Object)],ya.prototype,"hidden",void 0);_.x([_.A(),_.B("design:type",Object)],ya.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],ya.prototype,"frostedGlass",void 0);
ya=_.x([_.Q({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],ya);
_.C(ya,"ytd-permission-role-bottom-bar-renderer",function(){if(Kaw!==void 0)return Kaw;var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);return Kaw=K},{mode:1});var dKy;var fV5;var uf5={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var nk=function(){return _.q.apply(this,arguments)||this};
_.O(nk,_.q);_.V=nk.prototype;_.V.attached=function(){this.JSC$18517_scroller&&(this.JSC$18517_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18517_scroller.attached&&typeof this.JSC$18517_scroller.attached==="function"&&this.JSC$18517_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(f){f.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var K=_.E(this.hostElement);K.querySelector("tp-yt-paper-radio-group").selected="";var d=K.querySelector("#reason-text");d&&(d.value="");K.querySelector("#description-text").value=""}};
_.V.canSubmit=function(K,d){_.Zp(this.hostElement,"yt-invalidate-popup-tabbables");return!(K&&d)};
_.V.onCancel=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.V.onSubmit=function(){var K=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(S){return S.active}).map(function(S){return S.innerText.trim()}),d=this.hostElement.querySelector("tp-yt-paper-radio-group"),f=d.selectedItem,H=f.name;
f=f.innerText.trim();var D=d.querySelector("#reason-text");d=void 0;D&&(d=D.value);(D=this.descriptionText.value)&&(D=D.trim());aEZ(this.data.searchQuery,K,H,f,D,d);_.ev(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.V.sendFormSubmitToast=function(){var K=_.LF(_.iB("SBOX_INAPPROPRIATE_TOAST"));_.ev(this.hostElement,"yt-open-popup-action",[K,this])};
_.V.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(K){return K.active})};
_.V.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
nk.prototype.onIronSelect=nk.prototype.onIronSelect;nk.prototype.onIronChange=nk.prototype.onIronChange;nk.prototype.dataChanged=nk.prototype.dataChanged;_.x([_.A(),_.B("design:type",Object)],nk.prototype,"data",void 0);_.x([_.A({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.B("design:type",Boolean)],nk.prototype,"submitDisabled",void 0);_.x([_.A(),_.B("design:type",Boolean)],nk.prototype,"suggestionSelected",void 0);
_.x([_.A(),_.B("design:type",Boolean)],nk.prototype,"catagorySelected",void 0);_.x([_.n8("#scroller"),_.B("design:type",Object)],nk.prototype,"JSC$18517_scroller",void 0);_.x([_.n8("#description-text"),_.B("design:type",Object)],nk.prototype,"descriptionText",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nk.prototype,"dataChanged",null);
_.x([_.VV("iron-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nk.prototype,"onIronChange",null);_.x([_.VV("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nk.prototype,"onIronSelect",null);nk=_.x([_.Q({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],nk);
_.C(nk,"ytd-search-suggestion-report-dialog",function(){if(fV5!==void 0)return fV5;var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return fV5=K},{mode:1});var iy=function(K){var d=K.openPopupAction;var f=K.target;var H=K.container;var D=K.popupContainerConfig;var S=K.getElement;K=K.removeWhenClosed===void 0?!1:K.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=d;this.target=f;this.container=H;this.popupContainerConfig=D;this.getElement=S;this.JSC$18523_popupConfig=this.popupContainerConfig.JSC$17641_popupConfig[this.openPopupAction.popupType];this.rendererName=(d=this.getName())?_.lFO(d,QvP(this.popupContainerConfig,
d)):"";_.M("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=K);this.createPopup()};
iy.prototype.updatePopup=function(K){this.openPopupAction=K;this.JSC$18523_popupConfig=this.popupContainerConfig.JSC$17641_popupConfig[this.openPopupAction.popupType];HeS(this);_.M("reorder_popup_updates_killswitch")&&DKc(this);_.M("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var y2y=function(K,d,f){K.target=f;var H;f=((H=K.target.polymerController)!=null?H:K.target).popupPositionTarget||K.target;K.JSC$18523_popupConfig.targetContainer&&(f=K.container);K.popup.positionTarget=f;K.popupContent.positionTarget=f;_.M("reorder_popup_updates_killswitch")||DKc(K);K.JSC$18523_popupConfig.forceFocus&&(K.popupContent.style.outline="none");K.popupContent.tabIndex=-1;K.JSC$18523_popupConfig.narrowProperties&&(K.popup.style.position="static");K.JSC$18523_popupConfig.preventAutonav&&
K.popup.setAttribute("prevent-autonav",!0);K.JSC$18523_popupConfig.forceCloseOnOutsideClick&&K.popup.setAttribute("force-close-on-outside-click",!0);Vot(K,d);SRE(K,K.JSC$18523_popupConfig.styles);K.isRtl()&&SRE(K,K.JSC$18523_popupConfig.rtlStyles);if(!K.openPopupAction.shouldStopParentSignal){var D;d=(D=K.target.polymerController)!=null?D:K.target;(K.popupContent.startForwardingEvents||K.popupContainerConfig.forwardingEnabledPopups.has(K.rendererName))&&d.parentComponent!==K.popupContent&&K.popupContent!==
K.target&&K.target!==document.body&&(K.popupContent.startForwardingEvents?K.popupContent.startForwardingEvents(K.popupContainerConfig.forwardedEvents,K.target):(K.JSC$18523_eventForwarder||(K.JSC$18523_eventForwarder=new _.fs(K.popupContent)),K.JSC$18523_eventForwarder.start(K.popupContainerConfig.forwardedEvents,K.target)))}};
iy.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Vot=function(K,d){n4E(K,d&&K.JSC$18523_popupConfig.narrowProperties?K.JSC$18523_popupConfig.narrowProperties:K.JSC$18523_popupConfig.properties);K.isRtl()&&n4E(K,K.JSC$18523_popupConfig.rtlProperties);DKc(K)};
iy.prototype.createPopup=function(){var K=this.JSC$18523_popupConfig.component;if(this.popupContent=iel(this,this.rendererName)){if(K){this.popup=iel(this,K);var d=this.popupContent;_.M("web_enable_wrapper_for_cow_component_in_popup")&&(d=document.createElement("div"),d.appendChild(this.popupContent));_.M("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18523_popupConfig.slotName&&d.setAttribute("slot",this.JSC$18523_popupConfig.slotName);K=this.popup;var f=this.container.tagName.toLowerCase(),
H=_.jZ(d);_.Hvn(_.xm(K),_.JG(d,f,H));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.M("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.E(this.container).appendChild(this.popup)}};
var HeS=function(K){var d,f,H=(d=K.openPopupAction.accessibilityData)==null?void 0:(f=d.accessibilityData)==null?void 0:f.label;H&&(K.popup.ariaLabel=H);var D;((D=K.popupContent.polymerController)!=null?D:K.popupContent).data=(0,_.PR.unsafeClone)(K.openPopupAction.popup[K.getName()]);K.popupContent.duration=c2S(K);K.popupContent.positionType=K.openPopupAction.position;var S=K.openPopupAction.properties;S&&Object.keys(S).forEach(function(n){K.popupContent[n]=S[n]})},n4E=function(K,d){if(d)for(var f=
_.y(Object.keys(d)),H=f.next();!H.done;H=f.next())H=H.value,K.popup[H]=d[H]},DKc=function(K){if(K.openPopupAction.position){var d=K.JSC$18523_popupConfig.positionalProperties&&K.JSC$18523_popupConfig.positionalProperties[K.openPopupAction.position],f=K.JSC$18523_popupConfig.rtlPositionalProperties&&K.JSC$18523_popupConfig.rtlPositionalProperties[K.openPopupAction.position];
d=K.isRtl()&&f?f:d;d.shiftedHorizontalOffset&&(f=K.popup.style.display,K.popup.style.display="block",K.popupContent&&K.popup.positionTarget&&K.popupContent.clientWidth>K.popup.positionTarget.clientWidth&&(d.horizontalOffset=K.popup.positionTarget.clientWidth/2-d.shiftedHorizontalOffset),K.popup.style.display=f);n4E(K,d)}},SRE=function(K,d){if(d)for(var f=_.y(Object.keys(d)),H=f.next();!H.done;H=f.next())H=H.value,K.popup.style[H]=d[H]};
iy.prototype.getName=function(){return _.Eb(this.openPopupAction.popup,"renderer")||_.Eb(this.openPopupAction.popup,"dialog")||_.Eb(this.openPopupAction.popup,"model")||void 0};
var c2S=function(K){K=K.openPopupAction.durationHintMs;return K===0?K:Math.max(4E3,K||4E3)};
iy.prototype.isRtl=function(){return _.mD("HTML_DIR")==="rtl"};
var iel=function(K,d){K=K.getElement(d,K.target);K==null&&_.h3(new _.X4("popup getElement returned null",d));return K};var uVw={};
uVw.YtPopupContainerBehavior=[_.hj.YtComponentBehavior,_.kc.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.kZ(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.wL(this.hostElement)},
closePopup:function(K){var d=this.createCacheKey(void 0,K);this.popups_[d]&&this.handleClosePopupAction_(void 0,K)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.oc.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.oc.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(K){K.opened&&K.keepBelowPlayer&&this.ensurePopupBelowPlayer(K)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var K in this.popups_){var d=this.popups_[K];if(d.popup.scrollAction==="refit"){var f=d.popup.positionTarget.getBoundingClientRect(),H=d.popup;f=f.top;var D=d;if(!D.naturalHeight){D.popup.hidden=!1;D.popup.style.position="fixed";D.popup.style.top="0px";D.popup.style.left="0px";var S=D.popup.getBoundingClientRect();D.naturalHeight=S.bottom-S.top;D.popup.refit()}H.hidden=!(f>=D.naturalHeight+60);d.popupContent.clientHeight===0&&d.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(K){this.popupContainerConfig=K},
handleOpenPopupAction:function(K,d){var f=K.openPopupAction,H=_.eq().resolve(_.Zd(_.gC6))&&f.popupType==="TOAST";H&&!f.uniqueId&&(f.uniqueId=_.Yy());if(!_.M("popup_container_parent_target_killswitch")){var D;d=(D=this.getParentTarget(d))!=null?D:d}var S=this.ensurePopup_(f,d);return new _.ip(function(n){S.then(function(u){if(!u)return n();this.maybeCreateNarrowMediaQuery_();var a=this.createCacheKey(u.rendererName,u.openPopupAction.uniqueId);if(f.showOncePerUniqueId){if(this.shownPopupKeys_.has(a))return n();
this.shownPopupKeys_.add(a)}a=this.popups_[a];var R=!(!a||!a.openPopupAction.beReused);R=!!f.reusePopup||R;if(u.popup.opened&&!R){H&&!u.openPopupAction.replacePopup||this.handleClosePopupAction_(u.rendererName,u.openPopupAction.uniqueId);R=f.popupType==="DIALOG"&&!_.M("popup_container_dialog_reopen_killswitch");if(!H&&!R&&a&&a.target==d&&!u.openPopupAction.replacePopup)return n();_.jW(u.popup,function(){this.completeOpenPopupAction_(f,d,u);n()}.bind(this))}else u.popup.opened?u.updatePopup(f):this.completeOpenPopupAction_(f,
d,u),n()}.bind(this))}.bind(this))},
getParentTarget:function(K){if(K&&K instanceof HTMLElement)for(var d=_.y(Object.entries(this.popups_)),f=d.next();!f.done;f=d.next())if(f=_.y(f.value),f.next(),f=f.next().value,f.popup.tagName==="TP-YT-IRON-DROPDOWN"&&f.popup.opened&&K.closest(f.rendererName))return f.target},
completeOpenPopupAction_:function(K,d,f){_.M("reorder_popup_updates_killswitch")?(y2y(f,this.narrowMediaQuery_.queryMatches,d),f.updatePopup(K)):(f.updatePopup(K),y2y(f,this.narrowMediaQuery_.queryMatches,d));K=f.popup;K.addEventListener("iron-overlay-opened",_.Dm(this,this.onPopupIronOverlayOpened_));K.addEventListener("iron-overlay-closed",_.Dm(this,this.onPopupIronOverlayClosed_));K.addEventListener("iron-overlay-canceled",_.Dm(this,this.onPopupIronOverlayCanceled_));K.addEventListener("yt-refit",
_.Dm(this,this.refitPopup_));K.addEventListener("yt-invalidate-popup-tabbables",_.Dm(this,this.handleInvalidatePopupTabbables_));K.open()},
getPopupDurationMs_:function(K){return K.durationHintMs===0?K.durationHintMs:Math.max(4E3,K.durationHintMs||4E3)},
handleClosePopupAction_:function(K,d){var f=_.M("web_popup_cache_key_killswitch")||!!d;if(K||f){var H=this.createCacheKey(K,d);K=(K=this.popups_[H])&&K.popup}else K=_.HK6(_.l4);if(K&&K.close){if(d=_.eq().resolve(_.Zd(_.eb)))K.restoreFocusOnClose=d.isKeyBoardInUse();K.close();this.removePopup_(K,H)}},
handleClosePopupCommand_:function(K){K.closePopupCommand&&K.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,K.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(K){var d={},f;for(f in this.popups_)if(d={key$jscomp$1162:d.key$jscomp$1162},d.key$jscomp$1162=f,!K||!K.some(function(S){return function(n){return n==S.key$jscomp$1162}}(d))){var H=this.popups_[d.key$jscomp$1162],D=H.popup;
_.eq().resolve(_.Zd(_.gC6))&&H.openPopupAction.popupType==="TOAST"||(D&&D.close&&D.close(),this.removePopup_(D,d.key$jscomp$1162))}},
handleClosePopupsAction_:function(K){K.forEach(function(d){var f=this.popups_[d];f&&((f=f.popup)&&f.close&&f.close(),this.removePopup_(f,d))}.bind(this))},
handleGetPopupOpenedAction_:function(K,d){return(d=this.createCacheKey(K,d))&&this.popups_[d]?this.popups_[K].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var K=[],d;for(d in this.popups_){var f=this.popups_[d];f.popup.opened&&K.push(f)}return K},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(K,d){_.M("ytpopup_disable_default_html_caching")&&K&&K.removeWhenClosed&&(_.E(this.hostElement).removeChild(K),d&&this.popups_[d]&&delete this.popups_[d])},
shouldReusePopup_:function(K){return!(!K||!K.reusePopup)||!(!K||!K.beReused)},
ensurePopup_:function(K,d){this.maybeCreateNarrowMediaQuery_();var f=_.Eb(K.popup,"renderer")||_.Eb(K.popup,"dialog")||_.Eb(K.popup,"model");if(!f)return _.HG();f=_.lFO(f,QvP(this.popupContainerConfig,f));return _.HG(this.getAndMaybeCreatePopup_(K,f,d))},
getAndMaybeCreatePopup_:function(K,d,f){var H=this.createCacheKey(d,K.uniqueId);if(this.popups_[H])return this.popups_[H];K=new iy({openPopupAction:K,target:f,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(d)});return this.popups_[H]=K},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(K){return _.M("ytpopup_disable_default_html_caching")?K&&K.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",_.Dm(this,this.openPopupQueryMatchesChanged_)),_.E(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(K){K=K.detail.value;for(var d in this.popups_)Vot(this.popups_[d],K)},
onPopupIronOverlayClosed_:function(K){var d=K.currentTarget,f=_.OvO(d);f=f.length>0?f[0]:d;if(f.is!=="ytd-reel-watch-while-dialog-renderer"||K.target.is!=="tp-yt-iron-dropdown"){K.detail.popup=d;K.detail.popupRenderer=f;var H,D={context:{openingElement:((H=this.popups_[(f==null?void 0:f.is)||""])==null?void 0:H.target)||void 0}};Object.assign(D,K.detail);var S;_.Zp((S=f.hostElement)!=null?S:f,"yt-popup-closed",D);d.removeEventListener("yt-refit",_.Dm(this,this.refitPopup_));d.removeEventListener("yt-invalidate-popup-tabbables",
_.Dm(this,this.handleInvalidatePopupTabbables_));d.removeEventListener("iron-overlay-canceled",_.Dm(this,this.onPopupIronOverlayCanceled_));d.removeEventListener("iron-overlay-closed",_.Dm(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(d)}},
onPopupIronOverlayCanceled_:function(K,d){var f=K.currentTarget,H=_.OvO(f);H=H.length>0?H[0]:f;if(H.is!=="ytd-reel-watch-while-dialog-renderer"||K.target.is!=="tp-yt-iron-dropdown"){var D;_.Zp((D=H.hostElement)!=null?D:H,"yt-popup-canceled",K.detail);D=d?_.qn(d):null;(!d||["click","tap"].includes(d.type))&&!f.hasAttribute("force-close-on-outside-click")&&f.positionTarget&&D&&D.includes(f.positionTarget)&&K.preventDefault();f.restoreFocusOnClose=_.u4.keyboardEventMatchesKeys(d,"esc")}},
onPopupIronOverlayOpened_:function(K){K=K.currentTarget;var d=_.OvO(K);d=d.length>0?d[0]:K;var f,H;_.Zp((f=d.hostElement)!=null?f:d,"yt-popup-opened",(H=d.hostElement)!=null?H:d);K.keepBelowPlayer&&(this.ensurePopupBelowPlayer(K,!0),this.dynamicallyPositionedElements_.add(K));f=_.eq().resolve(_.Zd(_.eb));H=!!d.querySelector("#toast");f&&f.isKeyBoardInUse()&&!H&&(typeof d.focusFirstItem==="function"?d.focusFirstItem():(d=_.Kd8(K),d.length&&d[0].focus()));K.removeEventListener("iron-overlay-opened",
_.Dm(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(K){K=K.currentTarget;K.refit&&K.refit()},
refitPopups_:function(){for(var K in this.popups_)this.popups_[K].refit()},
handleInvalidatePopupTabbables_:function(K){K=K.currentTarget;K.invalidateTabbables&&K.invalidateTabbables()},
createCacheKey:function(K,d){return _.M("web_popup_cache_key_killswitch")?d?K+"#"+d:K:d?"#"+d:K},
openSheet:function(K,d){var f=K==null?void 0:K.openPopupActionCommand;!f&&(K==null?0:K.viewModel)&&(f={openPopupAction:{popup:{sheetViewModel:K.viewModel},popupType:"CONTEXTUAL_SHEET"}});f&&this.handleOpenPopupAction(f,d)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var K=this;return _.c(function(d){return d.return(K.handleGetOpenedPopupsAction_().filter(function(f){var H;return((H=f.openPopupAction)==null?void 0:H.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(K,d,f){if(_.M("web_dialog_utils_killswitch")){var H=K==null?void 0:K.openPopupActionCommand,D=(f==null?0:f.ariaLabel)?{accessibilityData:{accessibilityData:{label:f.ariaLabel}}}:void 0;!H&&(K==null?0:K.viewModel)&&(H={openPopupAction:Object.assign({},{popup:{dialogViewModel:K.viewModel},popupType:(f==null?0:f.isModal)?"MODAL":"DIALOG"},D&&D)});H&&this.handleOpenPopupAction(H,d)}else{if(D=K==null?void 0:K.viewModel){var S=f=f===void 0?{}:f;f=S.ariaLabel;D={popup:{dialogViewModel:D},
popupType:S.isModal?"MODAL":"DIALOG"};S={accessibilityData:{label:f}};f&&(D.accessibilityData=S);D={openPopupAction:D}}else D=void 0;(D=(H=D)!=null?H:K==null?void 0:K.openPopupActionCommand)&&this.handleOpenPopupAction(D,d)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var K=this;return _.c(function(d){return d.return(K.handleGetOpenedPopupsAction_().filter(function(f){var H;return((H=f.openPopupAction)==null?void 0:H.popupType)==="DIALOG"}).length>0)})}}];var aV5;var IVZ;var UKU=_.Am(["about:blank"]),cB=function(){var K=_.q.apply(this,arguments)||this;K.isMuted=!1;K.pageLoadTimeoutId=void 0;return K};
_.O(cB,_.q);_.V=cB.prototype;_.V.dataChanged=function(){var K=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var d=this.data.url,f=_.$K(d);_.M("enable_yt_ata_iframe_authuser")?(f=_.$K(d),_.$G(this.iframe,IE5(f))):_.$G(this.iframe,f);this.pageLoadTimeoutId=_.va(_.Xm(),function(){return void K.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.jR({destination:window,iframe:this.iframe,origin:_.iJf(f.toString()),channelName:"ataiframe",onMessage:_.MBY(Bhi,function(H){Jo7(H.data)?(H=_.M8(H.data,1,_.gw,_.p0()),H.length!==1?_.h3(Error("nl")):(H=H[0],H===3?(K.isMuted=!0,K.logStateChanged({adMuteRequested:!0})):H===1&&K.close())):_.h3(Error("ol"))}),
onEstablished:function(){K.cancelPageLoadTimeout();K.logStateChanged({pageLoadSucceeded:!0})}})}};
_.V.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Xm().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.V.logStateChanged=function(K){var d;if((d=this.data)==null?0:d.trackingParams)K={adsClientData:{aboutThisAdData:K}},_.cv().stateChanged(this.data.trackingParams,K)};
_.V.close=function(){_.ev(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.handlesPopupClosed=function(K,d){var f=this,H,D;return _.c(function(S){if(S.nextAddress==1)return _.mD("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.ev(f.hostElement,"on-about-this-ad-popup-closed",[f.isMuted,d]),S.jumpTo(0)):K&&UYi(K)?_.I(S,R0l(K),4):(f.isMuted&&_.ev(f.hostElement,"yt-mute-ad-action",[f.is,f]),S.jumpTo(0));if(H=S.yieldResult){var n=D=new _.UR(H),u=f.isMuted;n.getOptions().includes("onAboutThisAdPopupClosed")?_.$c9(n,"onAboutThisAdPopupClosed",{isMuted:u,layoutId:d}):_.Lt("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.iQ(S)})};
_.V.onPopupClosed=function(K){var d=this,f,H;return _.c(function(D){f=_.p7(UKU);_.$G(d.iframe,f);d.cancelPageLoadTimeout();if(!d.data)return D.jumpTo(0);d.ytRendererBehavior.markDirty();H=K.detail.context.openingElement;return _.I(D,d.handlesPopupClosed(H,d.data.layoutId),0)})};
_.V.detached=function(){this.cancelPageLoadTimeout()};
_.V.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cB.prototype.onPopupClosed=cB.prototype.onPopupClosed;cB.prototype.dataChanged=cB.prototype.dataChanged;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.x([_.n8("#iframe"),_.B("design:type",HTMLIFrameElement)],cB.prototype,"iframe",void 0);_.x([_.A(),_.B("design:type",Object)],cB.prototype,"data",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cB.prototype,"dataChanged",null);
_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype",Promise)],cB.prototype,"onPopupClosed",null);cB=_.x([_.N7({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],cB);
_.C(cB,"yt-about-this-ad-renderer",function(){if(IVZ===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;aV5===void 0&&(aV5=document.createElement("template"));var H=aV5;f.call(d,H.content.cloneNode(!0),K.content.firstChild);IVZ=K}K=IVZ;return K},{mode:2});var R6U;var Fa5;var uy=function(K){var d=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=d.message;"stack"in d&&(this.stack=d.stack);this.maxFileSizeMB=K;Object.setPrototypeOf(this,uy.prototype)};
_.O(uy,Error);var z6Z=function(K,d){var f=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=f.message;"stack"in f&&(this.stack=f.stack);this.minWidth=K;this.minHeight=d;Object.setPrototypeOf(this,z6Z.prototype)};
_.O(z6Z,Error);var Xsl=function(K){this.requirements=K;this.JSC$18551_maxFileSize=K.maxFileSizeMB*1024*1024},v4U=function(K,d){if(d.size>K.JSC$18551_maxFileSize)throw new uy(K.requirements.maxFileSizeMB);
};var Mo5=function(K,d){this.canvas=K;this.imageEditorBuilder=d};
Mo5.prototype.addEventListeners=function(K){var d=function(D){PYS(K,D)};
this.JSC$18557_mouseDownEvent=d;var f=function(D){g4c(K,D)};
this.JSC$18557_mouseMoveEvent=f;var H=function(){Oel(K)};
this.JSC$18557_mouseUpEvent=H;this.canvas.addEventListener("mousedown",d);this.canvas.addEventListener("mousemove",f);document.addEventListener("mouseup",H)};
Mo5.prototype.removeEventListeners=function(){this.JSC$18557_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18557_mouseDownEvent);this.JSC$18557_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18557_mouseMoveEvent);this.JSC$18557_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18557_mouseUpEvent)};
var NCE=function(K,d){K.removeEventListeners();return new Promise(function(f){var H=new Image;H.crossOrigin="anonymous";H.onload=function(){var D=K.imageEditorBuilder(K.canvas,H);K.addEventListeners(D);f(D)};
H.src=d})},ah=function(K,d,f,H,D,S,n,u){this.canvas=K;
this.image=d;this.requiredRatio=f;this.minImageCropDimension=H;this.minOutputImageResolution=D;this.component=S;this.styleFocusedCorner=u===void 0?!0:u;this.action=2;this.focusedCorner=this.resizeCorner=0;K=this.canvas.getContext("2d");if(!K)throw Error("pl");this.ctx=K;this.canvasMargin=n!=null?n:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;n=this.image;K=this.canvasInnerWidth/n.width;n.height*K>912&&(K=n.width/n.height*912/n.width);n=K;this.scaledImageWidth=this.canvas.width%2?
z0l(this.image.width*n):Fq5(this.image.width*n);this.scaledImageHeight=Math.round(this.image.height*n);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18560_overlayMarginBottom=this.JSC$18560_overlayMarginTop=this.canvasMargin;this.JSC$18560_overlayMarginRight=this.JSC$18560_overlayMarginLeft=this.horizontalMargin;this.JSC$18560_overlayWidth=this.scaledImageWidth;this.JSC$18560_overlayHeight=this.scaledImageHeight;
K=this.image.width/this.image.height;K>this.requiredRatio?(this.JSC$18560_overlayWidth=this.canvas.width%2?z0l(this.scaledImageHeight*this.requiredRatio):Fq5(this.scaledImageHeight*this.requiredRatio),this.JSC$18560_overlayMarginRight=this.JSC$18560_overlayMarginLeft=(this.canvas.width-this.JSC$18560_overlayWidth)/2):K<this.requiredRatio&&(this.JSC$18560_overlayHeight=this.canvas.height%2?z0l(this.scaledImageWidth/this.requiredRatio):Fq5(this.scaledImageWidth/this.requiredRatio),this.JSC$18560_overlayMarginBottom=
this.JSC$18560_overlayMarginTop=(this.canvas.height-this.JSC$18560_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*n,this.scaledImageWidth);YRZ(this)};
ah.prototype.getContext=function(){return this.ctx};
var PYS=function(K,d){d={x:Math.round(d.pageX-K.canvas.getBoundingClientRect().left),y:Math.round(d.pageY-K.canvas.getBoundingClientRect().top)};K.dragStart=d;toK(K,d)!==0?(K.action=1,o4t(K,d),K.resizeCorner=toK(K,d)):d.x>K.JSC$18560_overlayMarginLeft&&d.x<K.JSC$18560_overlayMarginLeft+K.JSC$18560_overlayWidth&&d.y>K.JSC$18560_overlayMarginTop&&d.y<K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight&&(K.action=0)},$Kw=function(K,d){switch(d){case 1:return{x:K.JSC$18560_overlayMarginLeft,
y:K.JSC$18560_overlayMarginTop};case 2:return{x:K.JSC$18560_overlayMarginLeft,y:K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight};case 3:return{x:K.JSC$18560_overlayMarginLeft+K.JSC$18560_overlayWidth,y:K.JSC$18560_overlayMarginTop};case 4:return{x:K.JSC$18560_overlayMarginLeft+K.JSC$18560_overlayWidth,y:K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight};default:throw Error("ql");}},h6U=function(K,d){if(K.focusedCorner!==0){K.dragStart=$Kw(K,K.focusedCorner);
K.action=1;K.resizeCorner=K.focusedCorner;var f=K.dragStart.x,H=K.dragStart.y;switch(d){case 0:K.focusedCorner===1||K.focusedCorner===4?(f-=10,H-=10):(f-=10,H+=10);break;case 1:K.focusedCorner===1||K.focusedCorner===4?(f+=10,H+=10):(f+=10,H-=10);break;case 2:f=K.focusedCorner===1||K.focusedCorner===4?f-10:f+10;H-=10;break;case 3:f=K.focusedCorner===1||K.focusedCorner===4?f+10:f-10;H+=10;break;default:throw Error("rl");}E4y(K,{x:f,y:H});YRZ(K);K.action=2;K.dragStart=void 0}},g4c=function(K,d){d={x:Math.round(d.pageX-
K.canvas.getBoundingClientRect().left),
y:Math.round(d.pageY-K.canvas.getBoundingClientRect().top)};o4t(K,d);switch(K.action){case 1:E4y(K,d);break;case 0:K.dragStart&&(K.JSC$18560_overlayMarginLeft=Math.max(K.horizontalMargin,Math.min(K.JSC$18560_overlayMarginLeft-(K.dragStart.x-d.x),K.horizontalMargin+K.scaledImageWidth-K.JSC$18560_overlayWidth)),K.JSC$18560_overlayMarginRight=K.canvas.width-K.JSC$18560_overlayMarginLeft-K.JSC$18560_overlayWidth,K.JSC$18560_overlayMarginTop=Math.max(K.canvasMargin,Math.min(K.JSC$18560_overlayMarginTop-
(K.dragStart.y-d.y),K.scaledImageHeight-K.JSC$18560_overlayHeight+K.canvasMargin)),K.JSC$18560_overlayMarginBottom=K.canvas.height-(K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight));break;default:return}YRZ(K);K.dragStart=d},Oel=function(K){K.action=2;
K.dragStart=void 0;document.body.style.cursor="auto"},o4t=function(K,d){switch(toK(K,d)){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:K.action!==1&&(document.body.style.cursor="auto")}},toK=function(K,d){var f=K.JSC$18560_overlayMarginLeft-5,H=K.JSC$18560_overlayMarginTop-5,D=K.JSC$18560_overlayMarginLeft+K.JSC$18560_overlayWidth-5;
K=K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight-5;return bew(d,{x:f,y:H})?1:bew(d,{x:D,y:H})?3:bew(d,{x:f,y:K})?2:bew(d,{x:D,y:K})?4:0},bew=function(K,d){return K.x>=d.x&&K.x<=d.x+10&&K.y>=d.y&&K.y<=d.y+10},E4y=function(K,d){if(K.dragStart)switch(K.resizeCorner){case 2:Math.abs((K.JSC$18560_overlayMarginLeft+K.JSC$18560_overlayWidth-d.x)/(d.y-K.JSC$18560_overlayMarginTop))>=K.requiredRatio?mK5(K,d.x):lVZ(K,d.y);
break;case 1:Math.abs((K.JSC$18560_overlayMarginLeft+K.JSC$18560_overlayWidth-d.x)/(K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight-d.y))>=K.requiredRatio?WaZ(K,d.x):lVZ(K,d.y);break;case 4:Math.abs((d.x-K.JSC$18560_overlayMarginLeft)/(d.y-K.JSC$18560_overlayMarginTop))>=K.requiredRatio?mK5(K,d.x):Gtl(K,d.y);break;case 3:Math.abs((d.x-K.JSC$18560_overlayMarginLeft)/(K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight-d.y))>=K.requiredRatio?WaZ(K,d.x):Gtl(K,d.y);break;default:throw Error("sl");
}},mK5=function(K,d){var f=K.JSC$18560_overlayMarginTop;
K.JSC$18560_overlayMarginBottom=A2w(K,d);K.JSC$18560_overlayHeight=K.canvas.height-K.JSC$18560_overlayMarginBottom-f;K.JSC$18560_overlayWidth=Math.round(K.JSC$18560_overlayHeight*K.requiredRatio);TCw(K)},WaZ=function(K,d){var f=K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight;
K.JSC$18560_overlayMarginTop=A2w(K,d);K.JSC$18560_overlayHeight=f-K.JSC$18560_overlayMarginTop;K.JSC$18560_overlayWidth=Math.round(K.JSC$18560_overlayHeight*K.requiredRatio);TCw(K)},TCw=function(K){switch(K.resizeCorner){case 2:case 1:K.JSC$18560_overlayMarginLeft=K.canvas.width-K.JSC$18560_overlayMarginRight-K.JSC$18560_overlayWidth;
break;case 4:case 3:K.JSC$18560_overlayMarginRight=K.canvas.width-K.JSC$18560_overlayMarginLeft-K.JSC$18560_overlayWidth;break;default:throw Error("sl");}},lVZ=function(K,d){var f=K.JSC$18560_overlayMarginLeft+K.JSC$18560_overlayWidth;
K.JSC$18560_overlayMarginLeft=r2U(K,d);K.JSC$18560_overlayWidth=f-K.JSC$18560_overlayMarginLeft;K.JSC$18560_overlayHeight=Math.round(K.JSC$18560_overlayWidth/K.requiredRatio);qRw(K)},Gtl=function(K,d){var f=K.JSC$18560_overlayMarginLeft;
K.JSC$18560_overlayMarginRight=r2U(K,d);K.JSC$18560_overlayWidth=K.canvas.width-K.JSC$18560_overlayMarginRight-f;K.JSC$18560_overlayHeight=Math.round(K.JSC$18560_overlayWidth/K.requiredRatio);qRw(K)},qRw=function(K){switch(K.resizeCorner){case 2:case 4:K.JSC$18560_overlayMarginBottom=K.canvas.height-K.JSC$18560_overlayMarginTop-K.JSC$18560_overlayHeight;
break;case 1:case 3:K.JSC$18560_overlayMarginTop=K.canvas.height-K.JSC$18560_overlayMarginBottom-K.JSC$18560_overlayHeight;break;default:throw Error("sl");}},A2w=function(K,d){switch(K.resizeCorner){case 2:d=K.canvas.height-(K.JSC$18560_overlayMarginTop+QW5(K,d));
break;case 4:d=K.canvas.height-(K.JSC$18560_overlayMarginTop+jWt(K,d));break;case 1:d=K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight-QW5(K,d);break;case 3:d=K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight-jWt(K,d);break;default:throw Error("sl");}return Math.max(d,K.canvasMargin)},QW5=function(K,d){d=K.JSC$18560_overlayMarginLeft+K.JSC$18560_overlayWidth-Math.max(d,K.horizontalMargin);
d=d<0?K.JSC$18560_overlayWidth:Math.max(d,K.minOverlayWidth);return Math.round(d/K.requiredRatio)},jWt=function(K,d){d=K.canvas.width-Math.max(K.canvas.width-d,K.horizontalMargin)-K.JSC$18560_overlayMarginLeft;
d=d<0?K.JSC$18560_overlayWidth:Math.max(d,K.minOverlayWidth);return Math.round(d/K.requiredRatio)},r2U=function(K,d){switch(K.resizeCorner){case 2:d=K.canvas.width-K.JSC$18560_overlayMarginRight-CYP(K,d);
break;case 4:d=K.canvas.width-K.JSC$18560_overlayMarginLeft-CYP(K,d);break;case 1:d=K.canvas.width-K.JSC$18560_overlayMarginRight-xK7(K,d);break;case 3:d=K.canvas.width-K.JSC$18560_overlayMarginLeft-xK7(K,d);break;default:throw Error("sl");}return Math.max(d,K.horizontalMargin)},CYP=function(K,d){d=K.canvas.height-Math.max(K.canvas.height-d,K.canvasMargin)-K.JSC$18560_overlayMarginTop;
return d<0?K.JSC$18560_overlayWidth:Math.max(Math.round(d*K.requiredRatio),K.minOverlayWidth)},xK7=function(K,d){d=K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight-Math.max(d,K.canvasMargin);
return d<0?K.JSC$18560_overlayWidth:Math.max(Math.round(d*K.requiredRatio),K.minOverlayWidth)},YRZ=function(K){K.ctx.clearRect(0,0,K.canvas.width,K.canvas.height);
K.ctx.drawImage(K.image,0,0,K.image.width,K.image.height,K.horizontalMargin,K.canvasMargin,K.canvas.width-2*K.horizontalMargin,K.scaledImageHeight);K.ctx.fillStyle="rgba(0, 0, 0, 0.7)";K.ctx.fillRect(K.horizontalMargin,K.JSC$18560_overlayMarginTop,K.JSC$18560_overlayMarginLeft-K.horizontalMargin,K.JSC$18560_overlayHeight);K.ctx.fillRect(K.JSC$18560_overlayMarginLeft+K.JSC$18560_overlayWidth,K.JSC$18560_overlayMarginTop,K.JSC$18560_overlayMarginRight-K.horizontalMargin,K.JSC$18560_overlayHeight);K.ctx.fillRect(K.horizontalMargin,
K.canvasMargin,K.scaledImageWidth,K.JSC$18560_overlayMarginTop-K.canvasMargin);K.ctx.fillRect(K.horizontalMargin,K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight,K.scaledImageWidth,K.JSC$18560_overlayMarginBottom-K.canvasMargin);K.drawOverlay();K.component&&_.Zp(K.component,"image-updated")};
ah.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18560_overlayMarginLeft,this.JSC$18560_overlayMarginTop,this.JSC$18560_overlayWidth,this.JSC$18560_overlayHeight);LaU(this)};
var LaU=function(K){var d=K.JSC$18560_overlayMarginLeft-5,f=K.JSC$18560_overlayMarginTop-5,H=K.JSC$18560_overlayMarginLeft+K.JSC$18560_overlayWidth-5,D=K.JSC$18560_overlayMarginTop+K.JSC$18560_overlayHeight-5;K.ctx.fillStyle="#FFF";K.ctx.fillRect(d,f,10,10);K.ctx.strokeRect(d,f,10,10);K.ctx.fillRect(H,f,10,10);K.ctx.strokeRect(H,f,10,10);K.ctx.fillRect(d,D,10,10);K.ctx.strokeRect(d,D,10,10);K.ctx.fillRect(H,D,10,10);K.ctx.strokeRect(H,D,10,10);if(K.focusedCorner!==0&&K.styleFocusedCorner){K.ctx.lineWidth=
4;K.ctx.strokeStyle="#3EA6FF";switch(K.focusedCorner){case 1:--d;--f;break;case 2:--d;f=D-1;break;case 3:d=H-1;--f;break;case 4:d=H-1;f=D-1;break;default:return}K.ctx.strokeRect(d,f,12,12)}};
ah.prototype.crop=function(K,d){d=d===void 0?!0:d;var f=this.image.width/this.scaledImageWidth,H=document.createElement("canvas"),D=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],S=this.JSC$18560_overlayWidth*f,n=this.JSC$18560_overlayHeight*f;H.width=Math.max(S,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);H.height=Math.max(n,D);K&&(H.width=Math.min(H.width,H.height),H.height=Math.min(H.width,H.height));
K=H.getContext("2d");if(!K)throw Error("gl");D=(this.JSC$18560_overlayMarginLeft-this.horizontalMargin)*f;f*=this.JSC$18560_overlayMarginTop-this.canvasMargin;d||(K.fillStyle="white",K.fillRect(0,0,H.width,H.height));K.drawImage(this.image,D,f,S,n,0,0,H.width,H.height);return H};var BC7=function(K,d,f,H,D){ah.call(this,K,d,f,H,void 0,D,8,!1)};
_.O(BC7,ah);BC7.prototype.drawOverlay=function(){var K=this.getContext(),d=this.JSC$18560_overlayWidth,f=this.JSC$18560_overlayHeight,H=this.JSC$18560_overlayMarginTop,D=this.JSC$18560_overlayMarginLeft;K.lineWidth=2;K.strokeStyle="#3EA6FF";K.beginPath();K.arc(D+d/2,H+f/2,d/2,0,2*Math.PI);K.stroke();K.strokeRect(D,H,d,f);LaU(this)};
var J2Z={maxFileSizeMB:15,minWidth:98,minHeight:98},sWy=["image/png","image/jpeg","image/gif"],Ih=function(){var K=_.q.apply(this,arguments)||this;K.fileSelectorFocusListener=null;K.errorMessage=null;K.isLoading=!0;K.hideContainer=!0;K.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return K};
_.O(Ih,_.q);_.V=Ih.prototype;_.V.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.V.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.V.computePlaylistThumbnail=function(K){return K==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.V.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.ev(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.V.setErrorState=function(K){this.resetErrorState();K&&(this.errorMessage=K)};
_.V.showPopup=function(){var K=this;this.hideContainer=!1;_.va(_.oc,function(){_.Zp(K.hostElement,"yt-refit")});
this.isLoading=!1};
_.V.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.V.closePopup=function(){this.resetFileSelector();_.ev(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onCancelTap=function(){this.isPlaylistThumbnail||_.ev(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.V.openFileSelector=function(){var K=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.va(_.oc,function(){setTimeout(function(){if(!K.fileSelector.files||K.fileSelector.files.length===0)K.onCancelTap();K.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(d){d instanceof Error?_.$7(d):_.EN(new _.X4(JSON.stringify(d)))}};
_.V.handleFileSelection=function(){var K=this,d,f,H,D,S,n;return _.c(function(u){switch(u.nextAddress){case 1:_.HF(u,2);if(!K.fileSelector.files||!K.imageEditorCanvas)return K.onCancelTap(),u.return();d=K.fileSelector.files[0];v4U(K.imageChecker,d);_.HF(u,4);return _.I(u,CwS(d),6);case 6:K.mimeType=u.yieldResult;_.Ts(u,5,2);break;case 4:_.n7(u,2),_.ev(K.hostElement,"yt-image-selection-error-action",[(f=K.data)==null?void 0:f.genericImageLoadErrorMessage]),K.onCancelTap();case 5:H=new FileReader;H.addEventListener("load",
function(){var a,R;return _.c(function(F){if(F.nextAddress==1){if(!H.result)return _.h3(Error("il")),F.return();a=H.result;R=new Image;R.src=a;R.onload=function(){try{var z=K.imageChecker;if(R.width<z.requirements.minWidth||R.height<z.requirements.minHeight)throw new z6Z(z.requirements.minWidth,z.requirements.minHeight);}catch(g){if(g instanceof z6Z){var v;_.ev(K.hostElement,"yt-image-selection-error-action",[(v=K.data)==null?void 0:v.imageDimensionErrorMessage]);K.logImageDimensionErrorVe()}else g instanceof
Error?_.$7(g):(z=new _.X4(JSON.stringify(g)),_.$7(z));K.onCancelTap()}K.showPopup()};
R.onerror=function(){var z;_.ev(K.hostElement,"yt-image-selection-error-action",[(z=K.data)==null?void 0:z.genericImageLoadErrorMessage]);K.onCancelTap()};
return _.I(F,NCE(K.imageEditorCanvas,a),2)}K.imageEditor=F.yieldResult;K.updatePositionOfAllCorners();K.addEventListeners(K.imageEditor);_.iQ(F)})},!1);
H.readAsDataURL(d);_.Ts(u,0);break;case 2:D=_.n7(u),D instanceof uy?_.ev(K.hostElement,"yt-image-selection-error-action",[(S=K.data)==null?void 0:S.imageSizeErrorMessage]):(D instanceof Error?_.$7(D):_.EN(new _.X4(JSON.stringify(D))),_.ev(K.hostElement,"yt-image-selection-error-action",[(n=K.data)==null?void 0:n.genericImageLoadErrorMessage])),K.onCancelTap(),_.iQ(u)}})};
_.V.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var K=_.iz(_.cv(),{veType:232707,visualElement:_.vp(232707)});K&&(K={visualElement:K},_.nZ().reportShown(K))}};
_.V.handleImageSelectionErrorAction=function(K){this.isPlaylistThumbnail&&_.BoB(this.hostElement,K)};
_.V.convertToImageFormatBundle=function(K){var d=this,f,H,D;return _.c(function(S){switch(S.nextAddress){case 1:return f=K.toDataURL(d.outputMimeType,1),_.I(S,xul(f),2);case 2:H=S.yieldResult;_.HF(S,3);v4U(d.imageChecker,H);_.Ts(S,4);break;case 3:D=_.n7(S);if(!(D instanceof uy))throw D;_.h3(new _.X4("Output size is bigger than input size for image",d.mimeType,d.outputMimeType,H.size));f=K.toDataURL("image/jpeg",.95);return _.I(S,xul(f),6);case 6:H=S.yieldResult;case 4:return S.return({dataUrl:f,imageFile:H})}})};
_.V.handleUploadImageToScottyCommand=function(K){var d=this,f,H,D,S,n,u,a,R,F,z;return _.c(function(v){switch(v.nextAddress){case 1:if(!d.imageEditor||!_.P(K,n1K))return v.return();f=_.P(K,n1K).scottyUploadUrl;if(!f){var g=new _.X4("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.$7(g);return v.return()}_.HF(v,2);d.setLoadingState();H=d.imageEditor.crop(!1,!1);return _.I(v,d.convertToImageFormatBundle(H),4);case 4:return D=v.yieldResult,_.I(v,Qwl(D.imageFile,f),5);case 5:S=
v.yieldResult;((n=d.data)==null?0:n.onUploadEndpoint)?(u=d.buildUploadServiceEndpoint(S),d.ytComponentBehavior.resolveCommand(u),a=_.P(u,_.OI),((R=a)==null?0:R.params)?d.closePopup():d.resetFileSelector()):(_.ev(d.hostElement,"yt-image-updated-action",[D.dataUrl,S]),d.closePopup());_.Ts(v,0);break;case 2:F=_.n7(v),d.setErrorState((z=d.data)==null?void 0:z.uploadErrorMessage),F instanceof Error?_.$7(F):(g=new _.X4(JSON.stringify(F)),_.$7(g)),_.iQ(v)}})};
_.V.buildUploadServiceEndpoint=function(K){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",K),this.data.onUploadEndpoint):null};
_.V.dataChanged=function(){var K=this,d;return _.c(function(f){if(f.nextAddress==1){if(!K.data||!K.canvasElement)return f.return();K.data.imageRatio&&K.data.minImageCropWidth||_.EN(new _.X4("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));d=function(H,D){return K.data.imageType==="IMAGE_TYPE_AVATAR"?new BC7(H,D,K.data.imageRatio,[K.data.minImageCropWidth,K.data.minImageCropWidth/K.data.imageRatio],K.hostElement):new ah(H,D,K.data.imageRatio,[K.data.minImageCropWidth,
K.data.minImageCropWidth/K.data.imageRatio],void 0,K.hostElement,8,!1)};
K.imageEditorCanvas=new Mo5(K.canvasElement,d);return K.data.url?_.I(f,NCE(K.imageEditorCanvas,K.data.url),3):(K.hideContainer=!0,K.openFileSelector(),f.jumpTo(0))}K.imageEditor=f.yieldResult;K.showPopup();K.addEventListeners(K.imageEditor);_.iQ(f)})};
_.V.addEventListeners=function(K){this.removeEventListeners();var d=function(D){PYS(K,D)};
this.JSC$18568_mouseDownEvent=d;var f=function(D){g4c(K,D)};
this.JSC$18568_mouseMoveEvent=f;var H=function(){Oel(K)};
this.JSC$18568_mouseUpEvent=H;this.topLeftCorner.addEventListener("mousedown",d);this.topLeftCorner.addEventListener("mousemove",f);this.topLeftCorner.addEventListener("mouseup",H);this.topRightCorner.addEventListener("mousedown",d);this.topRightCorner.addEventListener("mousemove",f);this.topRightCorner.addEventListener("mouseup",H);this.bottomLeftCorner.addEventListener("mousedown",d);this.bottomLeftCorner.addEventListener("mousemove",f);this.bottomLeftCorner.addEventListener("mouseup",H);this.bottomRightCorner.addEventListener("mousedown",
d);this.bottomRightCorner.addEventListener("mousemove",f);this.bottomRightCorner.addEventListener("mouseup",H)};
_.V.removeEventListeners=function(){this.JSC$18568_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18568_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18568_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18568_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18568_mouseDownEvent));this.JSC$18568_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18568_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18568_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18568_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18568_mouseMoveEvent));this.JSC$18568_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18568_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18568_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18568_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18568_mouseUpEvent))};
_.V.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var K=document.activeElement;K&&K.shadowRoot&&K.shadowRoot.activeElement;)K=K.shadowRoot.activeElement;switch(K){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};
_.V.updatePositionOfCorner=function(K,d){var f=K.y-d.offsetHeight/2+4;d.style.left=K.x-d.offsetWidth/2+16+"px";d.style.top=f+"px"};
_.V.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var K=_.y([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),d=K.next();!d.done;d=K.next()){d=d.value;var f=$Kw(this.imageEditor,d.corner);this.updatePositionOfCorner(f,d.div)}};
_.V.onLeft=function(K){this.imageEditor&&this.setFocusInImageEditor()&&(h6U(this.imageEditor,0),this.updatePositionOfAllCorners(),K.preventDefault())};
_.V.onRight=function(K){this.imageEditor&&this.setFocusInImageEditor()&&(h6U(this.imageEditor,1),this.updatePositionOfAllCorners(),K.preventDefault())};
_.V.onUp=function(K){this.imageEditor&&this.setFocusInImageEditor()&&(h6U(this.imageEditor,2),this.updatePositionOfAllCorners(),K.preventDefault())};
_.V.onDown=function(K){this.imageEditor&&this.setFocusInImageEditor()&&(h6U(this.imageEditor,3),this.updatePositionOfAllCorners(),K.preventDefault())};
_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.x$.Object.defineProperties(Ih.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&sWy.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var K,d,f;((d=this.data)==null?0:d.imageRatio)&&((f=this.data)==null?0:f.minImageCropWidth)?K={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:K=J2Z;return new Xsl(K)}}});
Ih.prototype.updatePositionOfAllCorners=Ih.prototype.updatePositionOfAllCorners;Ih.prototype.dataChanged=Ih.prototype.dataChanged;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Ih.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Ih.prototype,"ytComponentBehavior",void 0);_.x([_.l(_.u4),_.B("design:type",Object)],Ih.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.n8("#canvas"),_.B("design:type",HTMLCanvasElement)],Ih.prototype,"canvasElement",void 0);_.x([_.n8("#file-selector"),_.B("design:type",HTMLInputElement)],Ih.prototype,"fileSelector",void 0);_.x([_.n8("#top-left-corner"),_.B("design:type",HTMLDivElement)],Ih.prototype,"topLeftCorner",void 0);_.x([_.n8("#top-right-corner"),_.B("design:type",HTMLDivElement)],Ih.prototype,"topRightCorner",void 0);
_.x([_.n8("#bottom-left-corner"),_.B("design:type",HTMLDivElement)],Ih.prototype,"bottomLeftCorner",void 0);_.x([_.n8("#bottom-right-corner"),_.B("design:type",HTMLDivElement)],Ih.prototype,"bottomRightCorner",void 0);_.x([_.A(),_.B("design:type",Object)],Ih.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],Ih.prototype,"errorMessage",void 0);_.x([_.A(),_.B("design:type",Object)],Ih.prototype,"isLoading",void 0);_.x([_.A(),_.B("design:type",Object)],Ih.prototype,"hideContainer",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.B("design:type",Boolean)],Ih.prototype,"isPlaylistThumbnail",void 0);_.x([_.an("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],Ih.prototype,"dataChanged",null);_.x([_.VV("image-updated"),_.VV("yt-refit"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ih.prototype,"updatePositionOfAllCorners",null);
Ih=_.x([_.N7({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Ih);
_.C(Ih,"yt-image-editor-renderer",function(){if(Fa5===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;R6U===void 0&&(R6U=document.createElement("template"));var H=R6U;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Fa5=K}K=Fa5;return K},{mode:2});var ktS;var wsP;var UC=function(){return _.q.apply(this,arguments)||this};
_.O(UC,_.q);UC.prototype.updateMinutesFromBinding=function(K){this.handleMinutesChanged&&this.handleMinutesChanged(K)};
UC.prototype.updateSecondsFromBinding=function(K){this.handleSecondsChanged&&this.handleSecondsChanged(K)};
UC.prototype.updateDescriptionFromBinding=function(K){this.handleDescriptionChanged&&this.handleDescriptionChanged(K)};
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],UC.prototype,"ytComponentBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],UC.prototype,"data",void 0);_.x([_.A(),_.B("design:type",String)],UC.prototype,"minutes",void 0);_.x([_.A(),_.B("design:type",String)],UC.prototype,"seconds",void 0);_.x([_.A(),_.B("design:type",String)],UC.prototype,"description",void 0);_.x([_.A(),_.B("design:type",Function)],UC.prototype,"handleMinutesChanged",void 0);
_.x([_.A(),_.B("design:type",Function)],UC.prototype,"handleSecondsChanged",void 0);_.x([_.A(),_.B("design:type",Function)],UC.prototype,"handleDescriptionChanged",void 0);_.x([_.A(),_.B("design:type",Number)],UC.prototype,"characterLimit",void 0);_.x([_.A(),_.B("design:type",Number)],UC.prototype,"textNumRows",void 0);UC=_.x([_.N7({is:"yt-report-details-form-content",disableElementRegistration:!0})],UC);
_.C(UC,"yt-report-details-form-content",function(){if(wsP===void 0){var K=document.createElement("template");_.Y(K,'\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>');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;ktS===void 0&&(ktS=document.createElement("template"));var H=ktS;f.call(d,H.content.cloneNode(!0),K.content.firstChild);wsP=K}K=wsP;return K},{mode:2});var ZeZ;var e6l;var Rh=function(){var K=_.q.apply(this,arguments)||this;K.updateMinutesFromBinding=function(d){K.minutes=d.detail.value};
K.updateSecondsFromBinding=function(d){K.seconds=d.detail.value};
K.updateDescriptionFromBinding=function(d){K.description=d.detail.value};
return K};
_.O(Rh,_.q);_.V=Rh.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.V.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"}}}};
_.V.ready=function(){_.E(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.V.onSubmitYtAction=function(K){var d=K.detail;d.actionName==="yt-service-request"&&(d=d.args[1],d.flagEndpoint&&(K.stopPropagation(),this.refireAction(d)))};
_.V.refireAction=function(K){var d={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(d.vss_id=this.vssId);_.dN(this.hostElement,[K,d]);this.submitDisabled=!0};
_.V.dataChanged=function(){var K=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var d=_.xP();d&&d.getPlayerPromise().then(function(f){var H=f.getOption("cc","track")||f.getOption("captions","track");H&&(K.vssId=H.vss_id);f=f.getCurrentTime();K.minutes=Math.floor(f/60).toString();K.seconds=(Math.floor(f)%60).toString()})};
_.V.updateSubmitButtonState=function(){var K;((K=this.data)==null?0:K.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==="")};
_.V.onYtServiceRequestCompleted=function(){_.ev(this.hostElement,"yt-close-popup-action")};
_.V.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.x$.Object.defineProperties(Rh.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.textNumRows)||4}}});
Rh.prototype.onYtServiceRequestError=Rh.prototype.onYtServiceRequestError;Rh.prototype.onYtServiceRequestCompleted=Rh.prototype.onYtServiceRequestCompleted;Rh.prototype.updateSubmitButtonState=Rh.prototype.updateSubmitButtonState;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);
_.x([_.A({observer:"dataChanged"}),_.B("design:type",Object)],Rh.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Boolean)],Rh.prototype,"submitDisabled",void 0);_.x([_.A(),_.B("design:type",String)],Rh.prototype,"minutes",void 0);_.x([_.A(),_.B("design:type",String)],Rh.prototype,"seconds",void 0);_.x([_.A(),_.B("design:type",String)],Rh.prototype,"description",void 0);_.x([_.A(),_.B("design:type",String)],Rh.prototype,"vssId",void 0);
_.x([_.A({value:_.mD("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.B("design:type",Boolean)],Rh.prototype,"isMusic",void 0);_.x([_.W("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],Rh.prototype,"characterLimit",null);_.x([_.W("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],Rh.prototype,"textNumRows",null);
_.x([_.an("minutes","seconds","description","submitDisabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rh.prototype,"updateSubmitButtonState",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rh.prototype,"onYtServiceRequestCompleted",null);
_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rh.prototype,"onYtServiceRequestError",null);Rh=_.x([_.N7({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Rh);
_.C(Rh,"yt-report-details-form-renderer",function(){if(e6l===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;ZeZ===void 0&&(ZeZ=document.createElement("template"));var H=ZeZ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);e6l=K}K=e6l;return K});var psw;var Ksy;var dCz;var fJS;var FY=function(){return _.q.apply(this,arguments)||this};
_.O(FY,_.q);
FY.prototype.onCheckedChanged_=function(){if(this.data){var K=_.E(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.ev(this.hostElement,"yt-additional-detail-checkbox-update",[K]):this.data.identifier==="yt-hide-user-checkbox"?_.ev(this.hostElement,"yt-hide-user-checkbox-update",[K]):K&&this.data.enableCommand?_.ev(this.hostElement,"yt-modify-report-form-command",[_.P(this.data.enableCommand,Rei)]):!K&&this.data.disableCommand&&_.ev(this.hostElement,
"yt-modify-report-form-command",[_.P(this.data.enableCommand,Rei)])}};
FY.prototype.onLabelTap_=function(K){K.target.tagName!="A"&&(_.E(this.hostElement).querySelector("#checkbox").checked=!_.E(this.hostElement).querySelector("#checkbox").checked)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],FY.prototype,"data",void 0);FY=_.x([_.N7({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],FY);
_.C(FY,"yt-boolean-form-field-v2-renderer",function(){if(fJS===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;dCz===void 0&&(dCz=document.createElement("template"));var H=dCz;f.call(d,H.content.cloneNode(!0),K.content.firstChild);fJS=K}K=fJS;return K});var zW=function(){var K=_.q.apply(this,arguments)||this;K.canShowAdditionalDetailCheckbox=!1;K.canShowCheckbox=!1;K.keepDropdownFocusedAfterSelection=!0;return K};
_.O(zW,_.q);zW.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}}}}};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],zW.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],zW.prototype,"canShowAdditionalDetailCheckbox",void 0);_.x([_.A(),_.B("design:type",Object)],zW.prototype,"canShowCheckbox",void 0);_.x([_.A(),_.B("design:type",Object)],zW.prototype,"keepDropdownFocusedAfterSelection",void 0);
zW=_.x([_.N7({is:"yt-report-form-modal-content",disableElementRegistration:!0})],zW);
_.C(zW,"yt-report-form-modal-content",function(){if(Ksy===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;psw===void 0&&(psw=document.createElement("template"));var H=psw;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Ksy=K}K=Ksy;return K},{mode:2});var H9z;var DCi;var XY=function(){var K=_.q.apply(this,arguments)||this;K.submitting=!1;K.submitButtonDisabled=!0;K.command=null;K.canShowCheckbox=!1;K.canShowAdditionalDetailCheckbox=!1;K.canShowNextButton=!1;K.additionalDetailCheckboxChecked=!1;K.refitJob=0;K.keepDropdownFocusedAfterSelection=!0;K.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 K};
_.O(XY,_.q);_.V=XY.prototype;_.V.created=function(){this.refitJob=0};
_.V.attached=function(){this.JSC$18591_scroller&&(this.JSC$18591_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18591_scroller.attached&&typeof this.JSC$18591_scroller.attached==="function"&&this.JSC$18591_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(K){K&&(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,K.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),K.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.V.onYtPopupOpened=function(){var K=_.xP();K&&K.getPlayerPromise().then(function(d){d.pauseVideo()})};
_.V.onYtNavigate=function(K){_.P(K.detail.endpoint,_.F4k)&&(K.stopPropagation(),this.hideReportForm=!0)};
_.V.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.V.onYtServiceRequestCompleted=function(K,d){var f=d.actions;if(f){if(f.length===1&&_.P(f[0],_.DE)){var H;f=((H=_.P(f[0],_.DE))==null?void 0:H.commands)||[]}H=0;for(var D=f.length;H<D;H++)_.P(f[H],_.X3)&&(K.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(f[H]))}if(d.data&&(K=this.get("feedbackResponses",d.data)))for(d=0;d<K.length;d++)if(K[d].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.V.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.V._onDescendantIronResize=function(K){K.stopPropagation();return!1};
_.V.handleReportFormEndpointUpdateAction=function(K){if(K.submitEndpoint){var d=this.command=K.submitEndpoint;d=_.P(d,_.Hg4);if(d==null?0:d.additionalDetailCheckboxChecked)d.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else K.submitNavigationEndpoint?(this.command=K.submitNavigationEndpoint,this.toggleSubmitButton(!1)):K.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:K.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;K.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",K));this.refit()};
_.V.handleConfirmDialogCloseAction=function(K){K.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.V.submitButtonDisabledChanged=function(){var K=this.hostElement.parentElement;K&&K.invalidateTabbables&&K.invalidateTabbables()};
_.V.handleModifyReportFormCommand=function(K){K=this.get("action",K);K==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:K==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:K==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:K==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:K==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:K==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.V.updateDialogStyling=function(){var K,d,f,H,D,S=((D=(K=this.data)==null?void 0:(d=K.optionsSupportedRenderers)==null?void 0:(f=d.optionsRenderer)==null?void 0:(H=f.items)==null?void 0:H.length)!=null?D:0)<=2?0:240;_.f8(this.hostElement,{"--yt-report-form-modal-renderer-min-width":S+"px"})};
_.V.toggleSubmitButton=function(K){this.submitButtonDisabled=!K;this.submitButtonDisabled=K};
_.V.computeSubmitButtonData=function(K,d){var f={};_.P(d,_.F4k)?f.navigationEndpoint=d:f.command=d||void 0;K&&K.buttonRenderer&&_.PR.extend(f,K.buttonRenderer);return f};
_.V.computeNextButtonData=function(K,d){var f={};if(!K||!K.buttonRenderer)return f;_.PR.extend(f,K.buttonRenderer);if(!d)return f;if(_.P(d,_.F4k))f.navigationEndpoint=Ep5(d);else if(f.command=Ep5(d),K=_.P(f.command,_.Hg4))K.legalCheckboxChecked=!0;return f};
_.V.computeShowNextButton=function(K,d,f){return!!K&&d&&f};
_.V.refit=function(){var K=this;this.refitJob||(this.refitJob=_.oc.addLowPriorityJob(function(){_.Zp(K.hostElement,"yt-refit");K.refitJob=0}))};
_.V.handleAdditionalDetailCheckboxUpdateAction=function(K){this.additionalDetailCheckboxChecked=K;_.P(this.command,_.Hg4).additionalDetailCheckboxChecked=K};
_.x$.Object.defineProperties(XY,{template:{configurable:!0,enumerable:!0,get:function(){if(DCi===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;H9z===void 0&&(H9z=document.createElement("template"));var H=H9z;f.call(d,H.content.cloneNode(!0),K.content.firstChild);DCi=K}K=DCi;return K}}});
XY.prototype.onYtServiceRequestError=XY.prototype.onYtServiceRequestError;XY.prototype.onYtServiceRequestCompleted=XY.prototype.onYtServiceRequestCompleted;XY.prototype.onYtServiceRequestSent=XY.prototype.onYtServiceRequestSent;XY.prototype.onYtNavigate=XY.prototype.onYtNavigate;XY.prototype.onYtPopupOpened=XY.prototype.onYtPopupOpened;_.x([_.l(_.Vr.YtOpenPopupBehavior),_.B("design:type",Object)],XY.prototype,"openPopupBehavior",void 0);
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],XY.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],XY.prototype,"eventForwardingBehavior",void 0);_.x([_.l(_.Mg),_.B("design:type",Object)],XY.prototype,"ironResizableBehavior",void 0);_.x([_.A({observer:"dataChanged"}),_.B("design:type",Object)],XY.prototype,"data",void 0);
_.x([_.A(),_.B("design:type",Object)],XY.prototype,"submitting",void 0);_.x([_.A({observer:"submitButtonDisabledChanged"}),_.B("design:type",Object)],XY.prototype,"submitButtonDisabled",void 0);_.x([_.A(),_.B("design:type",Object)],XY.prototype,"command",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],XY.prototype,"hideReportForm",void 0);_.x([_.A(),_.B("design:type",Object)],XY.prototype,"canShowCheckbox",void 0);
_.x([_.A(),_.B("design:type",Object)],XY.prototype,"canShowAdditionalDetailCheckbox",void 0);_.x([_.A(),_.B("design:type",Object)],XY.prototype,"canShowNextButton",void 0);_.x([_.A(),_.B("design:type",Object)],XY.prototype,"additionalDetailCheckboxChecked",void 0);_.x([_.A(),_.B("design:type",Object)],XY.prototype,"refitJob",void 0);_.x([_.A(),_.B("design:type",Object)],XY.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.x([_.n8("#scroller"),_.B("design:type",Object)],XY.prototype,"JSC$18591_scroller",void 0);_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XY.prototype,"onYtPopupOpened",null);_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],XY.prototype,"onYtNavigate",null);
_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],XY.prototype,"onYtServiceRequestSent",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],XY.prototype,"onYtServiceRequestCompleted",null);
_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],XY.prototype,"onYtServiceRequestError",null);XY=_.x([_.N7({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],XY);var VNK;var S4z;var vB=function(){return _.q.apply(this,arguments)||this};
_.O(vB,_.q);_.V=vB.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.V.onVisible=function(){if(_.M("web_ephemeral_actions_focus")){var K,d;(d=_.eq().resolve(_.Zd(_.yl)))==null||d.enqueue({label:_.qQ((K=this.data)==null?void 0:K.messageTitle),elementToFocus:this.hostElement})}};
_.V.onThumbnailLoaded=function(){_.Zp(this.hostElement,"yt-refit")};
_.V.onDismissTap=function(){_.ev(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.V.computeAlternateIcon=function(K){return K?K==="BACKSTAGE_ARTWORK"?"backstage:artwork":K:null};
_.V.computeFontFamily=function(K){return K==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.V.computeBackgroundStyle=function(K,d){if(K=this.computeBackgroundImage(K,d))if(K=_.wl(K.thumbnails))return'background-image: url("'+K+'");'};
_.V.computeHasFullHeightImage=function(K){return!(!(K&&K.thumbnails&&K.thumbnails.length>0)||this.modern)};
_.V.isModernStyle=function(K){return K.style==="STYLE_MODERN"};
_.V.computeIcon=function(K,d){if(K&&K.icon)return d?K.iconDark:K.icon};
_.V.computeBackgroundImage=function(K,d){if(K&&K.backgroundImage)return d?K.backgroundImageDark:K.backgroundImage};
_.V.computeLogo=function(K,d){if(K&&K.logo)return d?K.logoDark:K.logo};
_.V.computeShouldShowModernIcon=function(K,d){return K&&!!d};
_.V.getLogoContainerClassName=function(K){return this.logoWithPadding(K)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.V.getLogoImageId=function(K){return this.logoWithPadding(K)?"mealbar-logo-with-padding":"mealbar-logo"};
_.V.logoWithPadding=function(K){var d,f,H;return(K=(d=this.computeLogo(K,this.isDarkTheme))==null?void 0:(f=d.thumbnails)==null?void 0:(H=f[0])==null?void 0:H.height)&&K%31===0?!0:!1};
vB.prototype.onThumbnailLoaded=vB.prototype.onThumbnailLoaded;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.x([_.A({}),_.B("design:type",Object)],vB.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.B("design:type",Boolean)],vB.prototype,"modern",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],vB.prototype,"isDarkTheme",void 0);
_.x([_.A({computed:"computeIcon(data, isDarkTheme)"}),_.B("design:type",Object)],vB.prototype,"icon",void 0);_.x([_.A({computed:"computeLogo(data, isDarkTheme)"}),_.B("design:type",Object)],vB.prototype,"logo",void 0);_.x([_.A({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.B("design:type",Object)],vB.prototype,"backgroundStyle",void 0);_.x([_.A({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.B("design:type",Object)],vB.prototype,"alternateIcon",void 0);
_.x([_.A({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.B("design:type",Boolean)],vB.prototype,"hasFullHeightImage",void 0);_.x([_.A({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.B("design:type",Boolean)],vB.prototype,"useYoutubeSans",void 0);_.x([_.A({computed:"computeShouldShowModernIcon(modern, icon)"}),_.B("design:type",Boolean)],vB.prototype,"shouldShowModernIcon",void 0);
_.x([_.VV("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vB.prototype,"onThumbnailLoaded",null);vB=_.x([_.N7({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],vB);
_.C(vB,"yt-mealbar-promo-renderer",function(){if(S4z===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;VNK===void 0&&(VNK=document.createElement("template"));var H=VNK;f.call(d,H.content.cloneNode(!0),K.content.firstChild);S4z=K}K=S4z;return K},{mode:2});var yX5;var n3w;var ME=function(){return _.q.apply(this,arguments)||this};
_.O(ME,_.q);_.V=ME.prototype;_.V.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]]"}}}}}};
_.V.computeHasButtons_=function(K){return!(!K.dismissButton&&!K.acceptButton)};
_.V.computeStyle_=function(K){return K||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.V.observeImpressionEndpoints_=function(){var K=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(d){d.clickTrackingParams&&delete d.clickTrackingParams;_.dN(K.hostElement,[d])})};
_.V.onTap_=function(){_.ev(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
ME.prototype.observeImpressionEndpoints_=ME.prototype.observeImpressionEndpoints_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],ME.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ME.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],ME.prototype,"positionType",void 0);_.x([_.A({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.B("design:type",Boolean)],ME.prototype,"hasButtons_",void 0);_.x([_.A({value:function(){return this.onTap_.bind(this)}}),
_.B("design:type",Function)],ME.prototype,"boundOnTap_",void 0);_.x([_.A({value:{style:"mono-inverse"}}),_.B("design:type",Object)],ME.prototype,"buttonOverride",void 0);_.x([_.SP("data.promoConfig.impressionEndpoints"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ME.prototype,"observeImpressionEndpoints_",null);ME=_.x([_.N7({is:"yt-tooltip-renderer",disableElementRegistration:!0})],ME);
_.C(ME,"yt-tooltip-renderer",function(){if(n3w===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;yX5===void 0&&(yX5=document.createElement("template"));var H=yX5;f.call(d,H.content.cloneNode(!0),K.content.firstChild);n3w=K}K=n3w;return K},{mode:2});var i9U;var cXz;var u$w={},aJZ=(u$w.WEB_REMIX="music.youtube.com",u$w),PB=function(){var K=_.q.apply(this,arguments)||this;K.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return K};
_.O(PB,_.q);_.V=PB.prototype;_.V.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.created=function(){this.embedHost_=aJZ[_.mD("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.V.ready=function(){_.E(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.V.computeEmbedCode_=function(K,d,f,H,D){if(!K)return"";var S=K.videoId,n=K.fullListId,u=[];K.attributionId&&u.push("si="+K.attributionId);H||u.push("controls=0");f&&Number(d)>0&&u.push("start="+d);n&&(S="videoseries",u.push("list="+n));f="https://"+(D?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+S;K.clipId&&(u.push("clip="+K.clipId),u.push("clipt="+K.clipTiming));d=u.length>0?f+"?"+u.join("&amp;"):f;K.encryptedEmbedConfig&&u.push("embed_config="+JSON.stringify({enc:K.encryptedEmbedConfig}));
u=u.length>0?f+"?"+u.join("&amp;"):f;_.M("web_sharing_embed_preview_killswitch")?_.E(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(u,K.previewWidth||854,K.previewHeight||480):(_.X_(this.videoPreviewContainer),_.E(this.videoPreviewContainer).appendChild(this.buildIframeElement(u)));return this.getEmbedCode_(d,K.width||560,K.height||315)};
_.V.buildIframeElement=function(K){var d=document.createElement("iframe"),f,H;d.width=""+((H=(f=this.data)==null?void 0:f.previewWidth)!=null?H:854);var D,S;d.height=""+((S=(D=this.data)==null?void 0:D.previewHeight)!=null?S:480);_.vsO(d,2,K);d.title="YouTube video player";d.frameBorder="0";d.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";d.referrerPolicy="strict-origin-when-cross-origin";d.allowFullscreen=!0;return d};
_.V.computeIsSquareAspectRatio_=function(K){return K.previewHeight&&K.previewWidth?K.previewHeight==K.previewWidth:!1};
_.V.computeShowEmbedOptions_=function(K){return!!K.enablePrivacyModeOptionLabel||!!K.showPlayerControlsOptionLabel};
_.V.getEmbedCode_=function(K,d,f){return'<iframe width="'+d+'" height="'+f+'" src="'+K+'" 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>'};
_.V.handleSignalActionCopyShareEmbedUrl_=function(){_.E(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.V.handleSetTimestamp_=function(K){this.startAtTimeStamp_=(this.startAtChecked_=K.isSet)?K.timestamp:0};
_.V.closePanel_=function(){_.ev(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.V.onEmbedCode_=function(){_.E(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.V.onYtPopupClosed_=function(){_.X_(_.E(this.hostElement).querySelector("#video-preview"))};
_.V.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.P(this.data.actionButtons[0],_.tQ)&&this.ytRendererBehavior.logExplicitClick(_.P(this.data.actionButtons[0],_.tQ))};
PB.prototype.onYtPopupClosed_=PB.prototype.onYtPopupClosed_;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],PB.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],PB.prototype,"data",void 0);
_.x([_.A({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.B("design:type",String)],PB.prototype,"embedCode_",void 0);_.x([_.A({value:!0}),_.B("design:type",Boolean)],PB.prototype,"isPlayerControlsOptionChecked_",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],PB.prototype,"isPrivacyModeOptionChecked_",void 0);_.x([_.A({value:!1,notify:!0}),_.B("design:type",Boolean)],PB.prototype,"startAtChecked_",void 0);
_.x([_.A({value:0}),_.B("design:type",Number)],PB.prototype,"startAtTimeStamp_",void 0);_.x([_.A({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],PB.prototype,"isSquareAspectRatio_",void 0);_.x([_.n8("#video-preview"),_.B("design:type",HTMLElement)],PB.prototype,"videoPreviewContainer",void 0);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PB.prototype,"onYtPopupClosed_",null);
PB=_.x([_.N7({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],PB);
_.C(PB,"yt-sharing-embed-renderer",function(){if(cXz===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;i9U===void 0&&(i9U=document.createElement("template"));var H=i9U;f.call(d,H.content.cloneNode(!0),K.content.firstChild);cXz=K}K=cXz;return K},{mode:2});var IJS={};
IJS.YtUnlimitedFamilyInterstitialBehavior=[_.Vr.YtOpenPopupBehavior,_.kc.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(K){K=_.rN9(_.Qm(K),"yt-button-renderer");return K?K.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(K){this.dialogHistory_.push(K)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var K=this.popFromHistory();if(K){var d={openPopupAction:{popupType:"DIALOG",popup:{}}};d.openPopupAction.popup[K.renderer]=K.data;this.showingPreviousDialog_=!0;this.openPopup(d)}},
handleOpenPopupAction_:function(K){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var d=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(H){return!!K.openPopupAction.popup[H]}),f=this.getElementName_();
d&&this.data&&(this.pushToHistory({renderer:f,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(K){if(K=_.P(K,CVK))this.loading=!0,_.ev(this.hostElement,"yt-open-create-family-dialog",[K,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var K=this.hostElement.nodeName.split("-").slice(1).map(function(d){return""+d[0].toUpperCase()+d.slice(1).toLowerCase()}).join("");
return K[0].toLowerCase()+K.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var UCE;var RNy;var g1=function(){return _.q.apply(this,arguments)||this};
_.O(g1,_.q);_.V=g1.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ev(this.hostElement,"yt-register-create-family-dialog");_.E(this.hostElement).querySelector("#thumbnail").onShow()};
_.V.fireOnCloseCommand_=function(){var K;((K=this.data)==null?0:K.onCloseCommand)&&_.fd(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.V.onYtServiceRequestSent_=function(K,d){d&&d.endpoint&&_.P(d.endpoint,_.y$)||(this.loading=!0)};
_.V.onYtServiceRequestCompleted_=function(){var K=this.hostElement.parentElement;K.close&&K.close();this.loading=!1};
_.V.openPopupHandler_=function(K){if(K.detail==this){var d;((d=this.data)==null?0:d.onOpenCommands)&&_.fd(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.V.closePopupHandler_=function(K,d){this.fireOnCloseCommand_();if(d&&d.canceled===!0||d&&d.canceled===!1&&d.confirmed===!1){var f;((f=this.data)==null?0:f.onDismissCommands)&&_.fd(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.V.dataChanged_=function(){this.loading=!1};
g1.prototype.dataChanged_=g1.prototype.dataChanged_;g1.prototype.closePopupHandler_=g1.prototype.closePopupHandler_;g1.prototype.openPopupHandler_=g1.prototype.openPopupHandler_;g1.prototype.onYtServiceRequestCompleted_=g1.prototype.onYtServiceRequestCompleted_;g1.prototype.onYtServiceRequestSent_=g1.prototype.onYtServiceRequestSent_;_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],g1.prototype,"ytEventForwardingBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],g1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(IJS.YtUnlimitedFamilyInterstitialBehavior),_.B("design:type",Object)],g1.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],g1.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],g1.prototype,"loading",void 0);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],g1.prototype,"onYtServiceRequestSent_",null);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],g1.prototype,"onYtServiceRequestCompleted_",null);
_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],g1.prototype,"openPopupHandler_",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],g1.prototype,"closePopupHandler_",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],g1.prototype,"dataChanged_",null);
g1=_.x([_.N7({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],g1);
_.C(g1,"yt-unlimited-family-message-interstitial-renderer",function(){if(RNy===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;UCE===void 0&&(UCE=document.createElement("template"));var H=UCE;f.call(d,H.content.cloneNode(!0),K.content.firstChild);RNy=K}K=RNy;return K},{mode:2});var Fsi;var zNy;var OC=function(){return _.q.apply(this,arguments)||this};
_.O(OC,_.q);OC.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"}}}};
OC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(K){K.onShow()});
_.E(this.hostElement).querySelector("#main-thumbnail").onShow()};
OC.prototype.onButtonTap_=function(K){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(K)};
OC.prototype.computeMainThumbnailWidth_=function(K){return K&&K.length!==0?72:96};
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.x([_.l(IJS.YtUnlimitedFamilyInterstitialBehavior),_.B("design:type",Object)],OC.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],OC.prototype,"data",void 0);
_.x([_.A({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.B("design:type",Number)],OC.prototype,"mainThumbnailWidth_",void 0);_.x([_.A({value:function(){return this.onButtonTap_.bind(this)}}),
_.B("design:type",Function)],OC.prototype,"boundButtonTap_",void 0);OC=_.x([_.N7({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],OC);
_.C(OC,"yt-unlimited-family-profile-interstitial-renderer",function(){if(zNy===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;Fsi===void 0&&(Fsi=document.createElement("template"));var H=Fsi;f.call(d,H.content.cloneNode(!0),K.content.firstChild);zNy=K}K=zNy;return K},{mode:2});var XSi;var v3P;var NE=function(){var K=_.q.apply(this,arguments)||this;K.sliderAriaValueText_=null;K.selectedIndex_=0;K.messages={PAUSE_SLIDER:_.iB("PAUSE_SLIDER",void 0,"Pause Duration")};return K};
_.O(NE,_.q);_.V=NE.prototype;_.V.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_]]"}}}}}};
_.V.onPopupOpened_=function(K){K.detail==this&&_.M("enable_premium_voluntary_pause")&&(_.ev(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.setDialogData=function(K){this.data=K;this.resetSlider_()};
_.V.dataChanged_=function(){this.data&&this.resetSlider_()};
_.V.onSubmitTap_=function(){if(this.data.confirmCommand){var K=this.data.confirmCommand;_.P(K,_.zxN)&&_.dN(this.hostElement,[K,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.V.onExitButtonTap_=function(){_.ev(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.V.closePopupHandler_=function(K,d){(d&&d.canceled===!0||d.canceled===!1&&d.confirmed===!1)&&this.handleOnDismissCommands_()};
_.V.onSliderChange_=function(){this.selectedIndex_=_.E(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.V.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.V.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.V.resetSlider_=function(){if(this.data){var K=this.data.defaultEndOptionIndex||0,d=_.E(this.hostElement).querySelector("#id-pause-slider");if(d.immediateValue<K)for(;d.immediateValue!=K;)d.increment();else if(K<d.immediateValue)for(;d.immediateValue!=K;)d.decrement();this.selectedIndex_=K;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.V.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.fd(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.V.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.fd(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestSent=function(){this.loading=!0};
_.V.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
NE.prototype.onYtServiceRequestCompleted=NE.prototype.onYtServiceRequestCompleted;NE.prototype.onYtServiceRequestSent=NE.prototype.onYtServiceRequestSent;NE.prototype.closePopupHandler_=NE.prototype.closePopupHandler_;NE.prototype.dataChanged_=NE.prototype.dataChanged_;NE.prototype.onPopupOpened_=NE.prototype.onPopupOpened_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],NE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],NE.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],NE.prototype,"loading",void 0);_.x([_.A(),_.B("design:type",Number)],NE.prototype,"selectIndexMax_",void 0);_.x([_.A(),_.B("design:type",Object)],NE.prototype,"selectedData_",void 0);
_.x([_.A(),_.B("design:type",Object)],NE.prototype,"sliderAriaValueText_",void 0);_.x([_.A({value:function(){return this.onSubmitTap_.bind(this)}}),
_.B("design:type",Function)],NE.prototype,"onButtonTap_",void 0);_.x([_.A({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.B("design:type",Function)],NE.prototype,"onSecondaryTap_",void 0);_.x([_.A(),_.B("design:type",Object)],NE.prototype,"messages",void 0);_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],NE.prototype,"onPopupOpened_",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NE.prototype,"dataChanged_",null);
_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],NE.prototype,"closePopupHandler_",null);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],NE.prototype,"onYtServiceRequestSent",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],NE.prototype,"onYtServiceRequestCompleted",null);NE=_.x([_.N7({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],NE);
_.C(NE,"yt-unplugged-pause-membership-dialog-renderer",function(){if(v3P===void 0){var K=document.createElement("template");_.Y(K,'\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>');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;XSi===void 0&&(XSi=document.createElement("template"));var H=XSi;f.call(d,H.content.cloneNode(!0),K.content.firstChild);v3P=K}K=v3P;return K},{mode:2});var MNl;var PGU;var YD=function(){return _.q.apply(this,arguments)||this};
_.O(YD,_.q);YD.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.YP("vcBalanceRenderer")}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],YD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],YD.prototype,"data",void 0);YD=_.x([_.N7({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],YD);
_.C(YD,"yt-vc-offer-layout-header-renderer",function(){if(PGU===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;MNl===void 0&&(MNl=document.createElement("template"));var H=MNl;f.call(d,H.content.cloneNode(!0),K.content.firstChild);PGU=K}K=PGU;return K},{mode:2});var g3S;var O9c;var Nt5;var Y4z;var t1=function(){return _.q.apply(this,arguments)||this};
_.O(t1,_.q);t1.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.x$.Object.defineProperties(t1.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)}}});
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],t1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.DR4.YtTappableItemBehavior),_.B("design:type",Object)],t1.prototype,"ytTappableItemBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],t1.prototype,"data",void 0);
_.x([_.A({reflectToAttribute:!0}),_.W("data.accessibilityText"),_.B("design:type",String),_.B("design:paramtypes",[])],t1.prototype,"ariaLabel",null);_.x([_.A({reflectToAttribute:!0}),_.W("data.style"),_.B("design:type",String),_.B("design:paramtypes",[])],t1.prototype,"vcOfferStyle",null);_.x([_.W("data.style","data.titleText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],t1.prototype,"showTitleText",null);t1=_.x([_.N7({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],t1);
_.C(t1,"yt-vc-offer-renderer",function(){if(Y4z===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Nt5===void 0&&(Nt5=document.createElement("template"));var H=Nt5;f.call(d,H.content.cloneNode(!0),K.content.firstChild);Y4z=K}K=Y4z;return K},{mode:2});var oh=function(){return _.q.apply(this,arguments)||this};
_.O(oh,_.q);oh.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}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],oh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],oh.prototype,"data",void 0);oh=_.x([_.N7({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],oh);
_.C(oh,"yt-vc-offer-layout-renderer",function(){if(O9c===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;g3S===void 0&&(g3S=document.createElement("template"));var H=g3S;f.call(d,H.content.cloneNode(!0),K.content.firstChild);O9c=K}K=O9c;return K},{mode:2});var tNc;var o3y;var $CP;var E3E;var $D=function(){return _.q.apply(this,arguments)||this};
_.O($D,_.q);$D.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}}}}}};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],$D.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],$D.prototype,"data",void 0);$D=_.x([_.N7({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],$D);
_.C($D,"yt-ypc-offers-modal-top-bar-renderer",function(){if(E3E===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;$CP===void 0&&($CP=document.createElement("template"));var H=$CP;f.call(d,H.content.cloneNode(!0),K.content.firstChild);E3E=K}K=E3E;return K},{mode:2});var EC=function(){return _.q.apply(this,arguments)||this};
_.O(EC,_.q);EC.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"}}}}};
EC.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
EC.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var K=this.scrollable;K.attached&&typeof K.attached==="function"&&K.attached()};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],EC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.n8("#scrollable"),_.B("design:type",Object)],EC.prototype,"scrollable",void 0);_.x([_.A(),_.B("design:type",Object)],EC.prototype,"data",void 0);EC=_.x([_.N7({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],EC);
_.C(EC,"yt-ypc-offers-modal-renderer",function(){if(o3y===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;tNc===void 0&&(tNc=document.createElement("template"));var H=tNc;f.call(d,H.content.cloneNode(!0),K.content.firstChild);o3y=K}K=o3y;return K},{mode:2});var hNE;var b9w;var h1=function(){return _.q.apply(this,arguments)||this};
_.O(h1,_.q);_.V=h1.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.V.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.ev(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.V.onYtPopupOpened_=function(K,d){(d==null?void 0:d.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.fd(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.V.onYtPopupClosed_=function(K,d){this.continueButtonTapped||d&&(d.canceled===!0||d.canceled===!1&&d.confirmed===!1)&&this.data.onDismissCommands&&_.fd(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestError_=function(K){this.set("showSpinner",!1);_.B9(this.hostElement,K.detail.error.message)};
_.V.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.M("enable_ypc_spinners")?_.ev(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
h1.prototype.onYtServiceRequestError_=h1.prototype.onYtServiceRequestError_;h1.prototype.onYtPopupClosed_=h1.prototype.onYtPopupClosed_;h1.prototype.onYtPopupOpened_=h1.prototype.onYtPopupOpened_;h1.prototype.onYtServiceRequestCompleted_=h1.prototype.onYtServiceRequestCompleted_;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],h1.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.A(),_.B("design:type",Object)],h1.prototype,"data",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],h1.prototype,"showSpinner",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],h1.prototype,"continueButtonTapped",void 0);_.x([_.A({value:function(){return this.onContinueTapped_.bind(this)}}),
_.B("design:type",Function)],h1.prototype,"bindOnContinueTapped_",void 0);_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],h1.prototype,"onYtServiceRequestCompleted_",null);_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],h1.prototype,"onYtPopupOpened_",null);
_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],h1.prototype,"onYtPopupClosed_",null);_.x([_.VV("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],h1.prototype,"onYtServiceRequestError_",null);h1=_.x([_.N7({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],h1);
_.C(h1,"yt-ypc-upgrade-dialog-renderer",function(){if(b9w===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;hNE===void 0&&(hNE=document.createElement("template"));var H=hNE;f.call(d,H.content.cloneNode(!0),K.content.firstChild);b9w=K}K=b9w;return K},{mode:2});var mCl;var lJw;var by=function(){return _.q.apply(this,arguments)||this};
_.O(by,_.q);by.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
by.prototype.computeHasButtons_=function(K){return!(!K.dismissButton&&!K.confirmButton)};
by.prototype.computeStyle_=function(K){return K||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],by.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],by.prototype,"data",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],by.prototype,"positionType",void 0);
_.x([_.A({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.B("design:type",Boolean)],by.prototype,"hasButtons_",void 0);_.x([_.A({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.B("design:type",Boolean)],by.prototype,"style_",void 0);by=_.x([_.N7({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],by);
_.C(by,"yt-bubble-hint-renderer",function(){if(lJw===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;mCl===void 0&&(mCl=document.createElement("template"));var H=mCl;f.call(d,H.content.cloneNode(!0),K.content.firstChild);lJw=K}K=lJw;return K},{mode:2});var Wst;var GU7;var mY=function(){var K=_.L3.apply(this,arguments)||this;K.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return K};
_.O(mY,_.L3);_.V=mY.prototype;_.V.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.V.attached=function(){var K=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){K.$.thumbnail.onShow();K.$["header-image"].onShow()})};
_.V.handleCheckBoxUpdateAction_=function(K){this.canShowCheckboxEnabledConfirmButton=K};
_.V.computeUseOverlayForSpinner_=function(K,d){return!!K&&d};
_.V.computeShowSpinner_=function(K,d){return K||!!d};
_.V.fireOnCloseActions_=function(){var K,d=_.y(((K=this.data)==null?void 0:K.onClosedActions)||[]);for(K=d.next();!K.done;K=d.next())this.ytRendererBehavior.resolveCommand(K.value)};
_.V.fireOnOpenCommands_=function(K){var d,f=(d=this.data)==null?void 0:d.onOpenCommands;if(f)for(K.stopImmediatePropagation(),K=_.y(f),d=K.next();!d.done;d=K.next())this.ytRendererBehavior.resolveCommand(d.value)};
_.V.fireOnDismissCommands_=function(K){var d,f=(d=this.data)==null?void 0:d.onDismissCommands;if(f)for(K.stopImmediatePropagation(),K=_.y(f),d=K.next();!d.done;d=K.next())this.ytRendererBehavior.resolveCommand(d.value)};
_.V.openPopupHandler_=function(K){K.detail==this&&this.fireOnOpenCommands_(K)};
_.V.closePopupHandler_=function(K,d){_.p1(this,"yt-confirm-dialog-close-action",[d]);this.fireOnCloseActions_();(d&&d.canceled===!0||d&&d.canceled===!1&&d.confirmed===!1)&&this.fireOnDismissCommands_(K)};
_.V.onHeaderImageChanged_=function(){var K;((K=this.data)==null?0:K.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.V.computeHasHeaderImageWidth_=function(K){return K!=void 0};
_.V.computeHasLoadingMessage=function(K){return!!K};
_.V.onHeaderImageWidthChanged_=function(){var K,d=(K=this.data)==null?void 0:K.headerImageWidth;if(d){if(K=1.25*d*2+d,this.$.main.style.width=K+"px",d=this.$.scroller.firstElementChild)d.style.minWidth=K+"px"}else this.$.main.style.width="100%"};
_.V.onThumbnailChanged_=function(){var K;((K=this.data)==null?0:K.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")};
_.V.onYtNavigate_=function(K){K=_.Qm(K);K instanceof Node&&_.eZ(this.$["confirm-button"]).contains(K)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.V.computePrimaryIsCancel_=function(K){return K};
_.V.computeIsCancelButtonHidden_=function(K){return K.skipCancelButton||!K.cancelButton};
_.V.computeIsCheckboxHidden_=function(K){return!K.checkbox};
_.V.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.V.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.V.onYtServiceRequestCompleted_=function(){var K;((K=this.data)==null?0:K.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.x$.Object.defineProperties(mY,{template:{configurable:!0,enumerable:!0,get:function(){if(GU7===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;Wst===void 0&&(Wst=document.createElement("template"));var H=Wst;f.call(d,H.content.cloneNode(!0),K.content.firstChild);GU7=K}K=GU7;return K}}});
mY.prototype.onYtServiceRequestCompleted_=mY.prototype.onYtServiceRequestCompleted_;mY.prototype.onYtServiceRequestSent_=mY.prototype.onYtServiceRequestSent_;mY.prototype.onThumbnailLoaded_=mY.prototype.onThumbnailLoaded_;mY.prototype.onYtNavigate_=mY.prototype.onYtNavigate_;mY.prototype.onThumbnailChanged_=mY.prototype.onThumbnailChanged_;mY.prototype.onHeaderImageWidthChanged_=mY.prototype.onHeaderImageWidthChanged_;mY.prototype.onHeaderImageChanged_=mY.prototype.onHeaderImageChanged_;
mY.prototype.closePopupHandler_=mY.prototype.closePopupHandler_;mY.prototype.openPopupHandler_=mY.prototype.openPopupHandler_;_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],mY.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],mY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);
_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],mY.prototype,"ytEventForwardingBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],mY.prototype,"data",void 0);_.x([_.A({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.B("design:type",Boolean)],mY.prototype,"primaryIsCancel",void 0);_.x([_.A({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.B("design:type",Boolean)],mY.prototype,"isCancelButtonHidden",void 0);
_.x([_.A({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.B("design:type",Boolean)],mY.prototype,"isCheckboxHidden",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],mY.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.x([_.A({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.B("design:type",Boolean)],mY.prototype,"useOverlayForSpinner_",void 0);
_.x([_.A({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.B("design:type",Boolean)],mY.prototype,"showSpinner_",void 0);_.x([_.A({value:!1}),_.B("design:type",Boolean)],mY.prototype,"isActionInProgress_",void 0);_.x([_.A({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.B("design:type",Boolean)],mY.prototype,"hasHeaderImageWidth_",void 0);
_.x([_.A({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.B("design:type",Boolean)],mY.prototype,"hasLoadingMessage",void 0);_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],mY.prototype,"openPopupHandler_",null);_.x([_.VV("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],mY.prototype,"closePopupHandler_",null);
_.x([_.SP("data.headerImage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mY.prototype,"onHeaderImageChanged_",null);_.x([_.SP("data.headerImageWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mY.prototype,"onHeaderImageWidthChanged_",null);_.x([_.SP("data.thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mY.prototype,"onThumbnailChanged_",null);
_.x([_.VV("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],mY.prototype,"onYtNavigate_",null);_.x([_.VV("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mY.prototype,"onThumbnailLoaded_",null);_.x([_.VV("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.hh]),_.B("design:returntype")],mY.prototype,"onYtServiceRequestSent_",null);
_.x([_.VV("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.rH]),_.B("design:returntype")],mY.prototype,"onYtServiceRequestCompleted_",null);mY=_.x([_.N7({is:"yt-confirm-dialog-renderer",noInjection:!0})],mY);var AXU;var TtP;var ly=function(){return _.q.apply(this,arguments)||this};
_.O(ly,_.q);ly.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
ly.prototype.computeConfirmButton_=function(K){var d={text:K.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};K.confirmNavigationEndpoint?d.navigationEndpoint=K.confirmNavigationEndpoint:K.confirmServiceEndpoint&&(d.serviceEndpoint=K.confirmServiceEndpoint);return d};
ly.prototype.computeShowTitle_=function(K){return!(K==null||!K.title)};
_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],ly.prototype,"data",void 0);_.x([_.A({computed:"computeShowTitle_(data)"}),_.B("design:type",Boolean)],ly.prototype,"showTitle",void 0);ly=_.x([_.N7({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],ly);
_.C(ly,"yt-fancy-dismissible-dialog-renderer",function(){if(TtP===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;AXU===void 0&&(AXU=document.createElement("template"));var H=AXU;f.call(d,H.content.cloneNode(!0),K.content.firstChild);TtP=K}K=TtP;return K});var rXz;var q4w;var WB=function(){var K=_.q.apply(this,arguments)||this;K.spinnerActive=!1;return K};
_.O(WB,_.q);WB.prototype.created=function(){yGz(2201)};
WB.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
WB.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
WB.prototype.onIronOverlayClosed=WB.prototype.onIronOverlayClosed;WB.prototype.onIronOverlayOpened=WB.prototype.onIronOverlayOpened;_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.GH),_.B("design:type",Object)],WB.prototype,"tpYtIronOverlayBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],WB.prototype,"data",void 0);_.x([_.A(),_.B("design:type",Object)],WB.prototype,"spinnerActive",void 0);
_.x([_.VV("iron-overlay-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WB.prototype,"onIronOverlayOpened",null);_.x([_.VV("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WB.prototype,"onIronOverlayClosed",null);WB=_.x([_.N7({is:"yt-loading-renderer",disableElementRegistration:!0})],WB);
_.C(WB,"yt-loading-renderer",function(){if(q4w===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;rXz===void 0&&(rXz=document.createElement("template"));var H=rXz;f.call(d,H.content.cloneNode(!0),K.content.firstChild);q4w=K}K=q4w;return K},{mode:2});var QjK;var jjU;var GW=function(){var K=_.q.apply(this,arguments)||this;K.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);K.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);K.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.O(GW,_.q);_.V=GW.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.V.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.V.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.V.openPopupHandler_=function(K){K.detail===this.hostElement&&this.hostElement.hidden&&_.ev(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.V.onDismissButtonTap_=function(){var K;this.closeOnDismissButton_.has(((K=this.data)==null?void 0:K.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ev(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.V.onAcceptButtonTap_=function(){var K;this.closeOnAcceptButton_.has(((K=this.data)==null?void 0:K.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ev(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.V.computeHasHeader_=function(K){return!!K.headerBackgroundImage};
_.V.computeLayoutStyle_=function(K){return K};
_.V.computePopupSize_=function(K){return K};
_.V.computeIconType_=function(K){return K.dialogIcon&&K.dialogIcon.iconType?K.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":K.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":K.dialogIcon.iconType:""};
_.V.computeIsLogo_=function(K){return!!K.dialogIcon&&!!K.dialogIcon.iconType&&(K.dialogIcon.iconType==="YOUTUBE_LOGO"||K.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||K.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.V.computeHasCustomLogo=function(K){return!(K==null||!K.headerForegroundImage)};
_.V.computeCustomLogo=function(K,d){if(K!=null&&K.headerForegroundImage)return K.headerForegroundImageDark?d?K.headerForegroundImageDark:K.headerForegroundImage:K.headerForegroundImage};
_.V.computeHeaderBackgroundImage=function(K,d){if(K!=null&&K.headerBackgroundImage)return d&&(K==null?0:K.headerBackgroundImageDark)?K.headerBackgroundImageDark:K.headerBackgroundImage};
_.V.shouldShowIconContainer=function(K,d){return K&&!d};
_.V.shouldShowNonYouTubeIcon=function(K,d){return!K&&!d};
_.V.getLogoImageId=function(K){var d,f,H;return(K=(d=this.computeCustomLogo(K,this.isDarkTheme))==null?void 0:(f=d.thumbnails)==null?void 0:(H=f[0])==null?void 0:H.height)&&K%31===0?"custom-logo-with-padding":"custom-logo"};
GW.prototype.openPopupHandler_=GW.prototype.openPopupHandler_;GW.prototype.dataChanged_=GW.prototype.dataChanged_;_.x([_.l(_.s9.YtRendererstamperBehavior),_.B("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.x([_.A(),_.B("design:type",Boolean)],GW.prototype,"isDarkTheme",void 0);
_.x([_.A({computed:"computeCustomLogo(data, isDarkTheme)"}),_.B("design:type",Object)],GW.prototype,"customLogo",void 0);_.x([_.A({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.B("design:type",Object)],GW.prototype,"headerBackgroundImage",void 0);_.x([_.A(),_.B("design:type",Object)],GW.prototype,"data",void 0);_.x([_.A({computed:"computeHasHeader_(data)"}),_.B("design:type",Boolean)],GW.prototype,"hasHeader",void 0);
_.x([_.A({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.B("design:type",Object)],GW.prototype,"layoutStyle",void 0);_.x([_.A({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.B("design:type",Object)],GW.prototype,"popupSize",void 0);_.x([_.A({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],GW.prototype,"hasLogo",void 0);
_.x([_.A({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],GW.prototype,"hasCustomLogo",void 0);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GW.prototype,"dataChanged_",null);_.x([_.VV("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],GW.prototype,"openPopupHandler_",null);
GW=_.x([_.N7({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],GW);
_.C(GW,"yt-upsell-dialog-renderer",function(){if(jjU===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;QjK===void 0&&(QjK=document.createElement("template"));var H=QjK;f.call(d,H.content.cloneNode(!0),K.content.firstChild);jjU=K}K=jjU;return K},{mode:2});var CGy=_.C8(function(K){return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.U(_.X,{cond:K.title,then:function(d){return _.U("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},d)}}))},"ng"),xCU=_.C8(function(K){return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.U(_.z1,{data:K.closeButton},{buttonViewModel:function(d){return _.U("div",null,_.U(_.oY,{data:d.data}))}}))},"og"),Lsi=_.C8(function(K){var d=
K.data;
return _.U(_.dF,null,_.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.U(_.X,{cond:function(){return!!d().image&&!!d().title},
then:function(){return _.U(_.jV,{data:function(){return d().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.U(_.X,{cond:function(){return d().title},
then:function(f){return _.U("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},f)}}),_.U(_.X,{cond:function(){return d().primaryGenre},
then:function(f){return _.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},f)}}))),_.U(_.X,{cond:function(){var f=d().description;
return f&&f.length<=150},
then:function(){return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return d().description}))}}))},"pg"),Btl=_.C8(function(K){K=K.infoRows;
var d=_.eq().resolve(_.b_),f=_.M("enable_displaying_ppn");return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.U(_.v_,{each:K},function(H){return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.U(_.X,{cond:function(){return H.label},
then:function(D){return _.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},D)}}),_.U(_.X,{cond:function(){return H.attributedLabel},
then:function(D){return _.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.U(_.ji,{text:D,noPreWrap:!0}))}}),_.U(_.X,{cond:function(){return H.value},
then:function(D){return _.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},D)}}),_.U(_.X,{cond:function(){return H.attributedValue},
then:function(D){return _.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.U(_.ji,{text:D,noPreWrap:!0}))}}))}),_.U(_.X,{cond:function(){return f&&d.clientData.has("post_play_nonce")},
then:function(){return _.U("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.U("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},d.getData("post_play_nonce")))}}))},"qg"),JXt=_.C8(function(K){var d=K.data;
return _.U("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.U(CGy,{title:function(){return d().dialogTitle}}),_.U(Lsi,{data:d}),_.U(_.X,{cond:function(){return d().infoRow},
then:function(f){return _.U(Btl,{infoRows:f})}}),_.U(xCU,{closeButton:function(){return d().closeButton}}))},"rg");
JXt.idomCompat=!0;_.sP(JXt,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=K.data;return _.U("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.U(_.jV,{data:function(){return d().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.U("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.U("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.U(_.X,{cond:function(){var f=d().ytLogo;return f?f.iconType:null},
then:function(f){return _.U(_.U5,{icon:f,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.U("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.U("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.U(_.ji,{text:function(){return d().title}})),_.U("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.U(_.ji,{text:function(){return d().body}})),_.U("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.U(_.ji,{text:function(){return d().verifyStateText}}))),
_.U("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.U("div",null,_.U(_.z1,{data:function(){return d().dismissButton}},{buttonViewModel:_.oY})),_.U("div",null,_.U(_.z1,{data:function(){return d().linkParentButton}},{buttonViewModel:_.oY})))))},"sg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.rs}});var sjt=_.C8(function(K){var d=K.data;return _.U("installment-agreements-view-model",{class:_.SC("ytInstallmentAgreementsViewModelHost")},_.U(_.v_,{each:_.QV(function(){return d().agreements},[])},function(f){return _.U("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.U("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.U(_.ji,{text:f.label})),_.U("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.U(_.z1,{data:function(){return f.openButton}},{buttonViewModel:_.oY})))}))},
"tg");
sjt.idomCompat=!0;var kUP=_.C8(function(K){return _.U("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.U(_.ji,{text:function(){return K.data().inviteMessage}})),_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.U(_.ji,{text:function(){return K.data().attributedAccountSectionHeaderText}})),_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.U(_.z1,{data:function(){return K.data().accountAvatar}},{avatarViewModel:_.Pz}),_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.U(_.ji,{text:function(){return K.data().accountName}}),_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.U(_.ji,{text:function(){return K.data().handle}}))),_.U(_.z1,{data:function(){return K.data().trailingButton}},{buttonViewModel:_.oY})),_.U("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.U(_.ji,{text:function(){return K.data().termsOfService}})))},"ug");var wSS=_.C8(function(K){var d=_.y(_.am(function(){var w,yO;return((w=K.data().createPlaylistDialogFormSchema)==null?0:(yO=w.initialValues)==null?0:yO.title)?K.data().createPlaylistDialogFormSchema.initialValues.title:""})),f=d.next().value,H=d.next().value;
d=_.y(_.am(function(){K.data();return!1}));
var D=d.next().value,S=d.next().value;d=_.y(_.am(function(){K.data();return!1}));
var n=d.next().value,u=d.next().value;d=_.y(_.am(function(){var w,yO;return(w=K.data().createPlaylistDialogFormSchema)==null?void 0:(yO=w.initialValues)==null?void 0:yO.visibility}));
var a=d.next().value,R=d.next().value;d=_.y(_.am(function(){K.data();return!1}));
var F=d.next().value,z=d.next().value;d=_.y(_.am(function(){var w,yO;return(w=K.data().createPlaylistDialogFormSchema)==null?void 0:(yO=w.initialValues)==null?void 0:yO.isCollaborative}));
var v=d.next().value,g=d.next().value,N=_.Co();_.ol(function(){var w=N.value.querySelector("textarea");w&&(w.value=f())});
_.tR(function(){var w;_.zc5((w=K.data().createPlaylistDialogFormSchema)==null?void 0:w.id,{onSubmit:function(){var yO=f();var FX=a(),NJ=v(),$z=K.data();yO={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:yO,privacyStatus:FX,videoIds:$z.videoIds,sourcePlaylistId:$z.sourcePlaylistId,params:NJ?$z.createPlaylistParamsCollaborationEnabled:$z.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.eq().resolve(_.pQ).resolveCommand(yO)},
isValid:function(){return D()&&!n()&&!F()}})});
var h=function(w){if(w!==void 0&&(H(w),!D()&&w.length>0&&S(!0),D())){var yO=XGS(K.data());if(yO){var FX=yO.minLength;yO=yO.maxLength;FX&&w.length<FX?u(!0):yO&&w.length>yO?u(!0):u(!1)}}},m=function(){var w=!(!v()||a()!=="PRIVATE");
z(w)},T=function(w){w!==void 0&&(R(w),m())},r=function(){if(F())return Msz(K.data())},J=function(){g(!v());
m()},L=function(){return{validate:function(w){if(D()){var yO=XGS(K.data());
if(yO){var FX=yO.minLength;yO=yO.translations;if(FX&&w.length<FX)return yO==null?void 0:yO.minLengthErrorMessage}}}}},fB=function(){var w=XGS(K.data()),yO=w==null?void 0:w.maxLength,FX;
w=w==null?void 0:(FX=w.translations)==null?void 0:FX.maxLengthErrorMessage;if(yO&&w)return{maxChars:yO,errorMessage:w}};
return _.U("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.U("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:N},_.U(_.z1,{data:function(){return K.data().playlistTitle}},{textFormFieldViewModel:function(w){return _.U(_.KUz,{data:w.data,
text:f,onInput:h,validation:L,characterLimit:fB})},
textFieldViewModel:function(w){return _.U(_.pyE,{data:w.data,text:f,onInput:h,validation:L,characterLimit:fB})}})),_.U("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.U(_.z1,{data:function(){return K.data().playlistVisibility}},{dropdownViewModel:function(w){return _.U(_.aKS,{data:w.data,
onSelected:T,error:r})}})),_.U(_.X,{cond:function(){return!!K.data().playlistCollaborate},
then:function(){return _.U("div",null,_.U(_.z1,{data:function(){return K.data().playlistCollaborate}},{switchListItemViewModel:function(w){return _.U(_.U49,{data:w.data,
onTap:J})}}))}}))},"vg");var Z9t=_.C8(function(K){var d=_.QV(K.noPadding,!1),f=function(){var D,S;return(S=(D=K.data().logo.accessibilityData)==null?void 0:D.label)!=null?S:""},H={};
return _.U("upsell-view-model",{class:_.SC("ytUpsellViewModelHost",(H.ytUpsellViewModelHostNoPadding=function(){return d()},H))},_.U("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.U(_.X,{cond:function(){return _.QF(K.data().logo)},
then:function(D){return _.U(_.jV,{data:D,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:f})}})),_.U("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.U(_.ji,{text:function(){return K.data().title}})),_.U("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.U(_.v_,{each:function(){var D;
return(D=K.data().subtitles)!=null?D:[]},
keyBy:"INDEX"},function(D){return _.U("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.U(_.ji,{text:D}))})),_.U("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.U(_.v_,{each:function(){var D;
return(D=K.data().benefitInfos)!=null?D:[]},
keyBy:"INDEX"},function(D){return _.U(_.X,{cond:function(){return D().info},
then:function(S){return _.U("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.U(_.U5,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.U(_.ji,{text:S}))}})})),_.U("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.U(_.v_,{each:function(){var D;
return(D=K.data().legalInfos)!=null?D:[]},
keyBy:"INDEX"},function(D){return _.U("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.U(_.ji,{text:D}))})))},"wg");var eNE=_.C8(function(K){var d=K.data;K={};K=(K.ytMiniAppScoreChallengeViewModelScoreRadial=!0,K.ytMiniAppScoreChallengeViewModelDarkScoreRadial=PBt(),K);return _.U("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.U("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return d().title}),_.U("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return d().subtitle}),_.U("div",{class:_.nK(K)},_.U("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return d().score})),_.U("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return d().prompt}))},"xg");var pSt=function(){this.store=_.TC();this.formId=""};var KAl=_.C8(function(K){function d(u){if(u&&(u=_.P(u,_.c9)))return Object.assign({},u,{isSelected:S()})}
var f=_.y(_.am(function(){var u,a;return(a=(u=_.P(K.data().option,_.c9))==null?void 0:u.isSelected)!=null?a:!1})),H=f.next().value,D=f.next().value,S=H;
_.tR(function(){var u;_.zc5((u=K.data().formSchema)==null?void 0:u.id,{onSubmit:function(){var a=_.eq().resolve(_.pQ),R=!!K.data().selectedCommand,F=!!K.data().unselectedCommand;if(S()){if(R)var z=K.data().selectedCommand}else F&&(z=K.data().unselectedCommand);z=_.$A(z);d(K.data().option)&&!z?(a="",!R&&F?a="selected ":R&&!F&&(a="unselected "),R=new _.X4("No "+a+"command found for SelectionListItemFormViewModel"),_.$7(R)):z&&a.resolveCommand(z)},
isValid:function(){return!0}})});
var n=function(){D(!S())};
_.$F(function(){var u,a,R=(u=K.data())==null?void 0:(a=u.formSchema)==null?void 0:a.id;R&&_.RcP()().delete(R)});
return _.U("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.U("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.U(_.ji,{text:function(){return K.data().paragraph}})),_.U(_.X,{cond:function(){return d(K.data().option)},
then:function(u){return _.U(_.Op,{data:u,isCompact:!0,hideSelectionTextChevron:!0,onTap:n,disableHorizontalPadding:!0})}}))},"yg");var dxl=_.C8(function(K){var d=K.data;var f=K.disablePadding;var H=K.className;var D=_.Co(),S=function(){var u=d().imageBanner;a:switch(d().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var a="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:a="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:u,style:a,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},n=function(){return d().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.tR(function(){var u=function(){_.ev(D.value,"yt-refit-popups-action")},a;
(a=D.value)==null||a.addEventListener("image-loaded",u);_.$F(function(){var R;(R=D.value)==null||R.removeEventListener("image-loaded",u)})});
K={};return _.U("yt-dialog-header-view-model",{el:D,class:_.SC(H,(K.ytDialogHeaderViewModelHost=!0,K.ytDialogHeaderViewModelHostDisablePadding=f,K))},_.U(_.X,{cond:function(){return d().imageBanner},
then:function(){var u={};return _.U("div",{class:_.SC(H,(u.ytDialogHeaderViewModelBanner=!0,u.ytDialogHeaderViewModelBannerFullBleed=n,u)),style:_.Im({"max-height":function(){return d().assetContainerMaxHeight!==void 0?d().assetContainerMaxHeight+"px":void 0}})},_.U(_.kd,{data:S,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.U(_.X,{cond:function(){return d().headerBlock},
then:function(){return _.U("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.U(_.z1,{data:function(){return d().headerBlock}},{contentPreviewImageViewModel:function(u){return _.U(_.kd,{data:u.data,
notifyOnLoaded:!0})}}))}}),_.U(_.X,{cond:function(){return d().customAssetContainer},
then:function(u){return _.U("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.U(_.z1,{data:u},{avatarStackViewModel:_.O$}))}}),_.U(_.X,{cond:function(){return d().customBanner},
then:function(u){return _.U("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.U(_.z1,{data:u},{avatarStackViewModel:_.O$}))}}),_.U(_.X,{cond:function(){return d().headline},
then:function(u){return _.U("h2",null,_.U(_.ji,{text:u,className:"ytDialogHeaderViewModelText"}))}}))},"zg");
dxl.idomCompat=!0;var f_U=_.C8(function(K){var d=_.XFE(function(){return K.data().formId}),f=d.onSubmit,H=d.isValid;
return _.U("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.U(_.z1,{data:function(){return K.data().panelFooter}},{panelFooterViewModel:function(D){return _.U(_.Ta,{data:D.data,
disablePadding:!0,disablePrimaryButton:function(){return!H()},
onClickPrimaryButton:function(){f()}})}}))},"Ag");var HNK=_.C8(function(K){var d=function(){var f,H;return(H=(f=_.P(K.data().rendererContext,_.uq))==null?void 0:f.label)!=null?H:""};
return _.U("yt-dialog-image-content-view-model",{class:_.SC("ytDialogImageContentViewModelHost",K.className)},_.U(_.X,{cond:function(){return _.QF(K.data().image)},
then:function(f){return _.U(_.jV,{data:f,alt:d,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.U(_.ji,{text:function(){return K.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Bg");var SEZ=_.C8(function(K){var d=_.jP(K,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),f=d.elRefCallback;K=d.iconWiz;var H=d.assetWiz,D=d.assetType,S=d.titleWiz,n=d.leadingActionHeaderWiz,u=d.trailingActionHeaderWiz,a=d.headerPosition,R=d.contentWiz,F=d.buttonLayout,z=d.buttonStyle,v=d.primaryButtonWiz,g=d.secondaryButtonWiz,N=d.contentAlignment,h=d.isFullscreen,m=d.width,T=d.maxHeight,r=d.isHeaderWizDefined,
J=d.headerWiz,L=d.isFooterWizDefined,fB=d.footerWiz;d=_.Co(function(qJ){f==null||f(qJ)});
var w=H?function(){return H({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,yO=v?function(){var qJ={};
return v({buttonOverrides:function(){return{style:(z==null?void 0:z())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.SC((qJ["yt-spec-dialog-layout__dialog-layout-button"]=!0,qJ["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},qJ))})}:void 0,FX=g?function(){var qJ={};
return g({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.SC((qJ["yt-spec-dialog-layout__dialog-layout-button"]=!0,qJ["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},qJ))})}:void 0,NJ=function(){return(!!S||!!n||!!u)&&a()===0},$z={},hN={},bo={},xz={};
return _.U("dialog-layout",{el:d,class:_.SC(($z["yt-spec-dialog-layout"]=!0,$z["yt-spec-dialog-layout--dialog-layout-fullscreen"]=h,$z["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!h()},$z["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return T()===1},$z["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(D==null?void 0:D())===1},$z)),
style:function(){return(m==null?void 0:m())!==void 0?"width: "+m+"px;":""}},K?_.U("div",{class:_.SC((hN["yt-spec-dialog-layout__dialog-layout-icon"]=!0,hN["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!H&&a()===1},hN["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return N()===1},hN))},_.U(K,null)):null,_.U(_.X,{cond:r,
then:function(){return J?_.U("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.U(J,null)):null},
else:function(){return _.U(_.dF,null,_.U(_.X,{cond:NJ,then:function(){return _.U(Dxt,{contentAlignment:N,LeadingActionHeader:n,TrailingActionHeader:u,Title:S,isAboveAsset:!!w})}}),w?_.U("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.U(w,null)):null)}}),_.U("div",{class:_.SC((bo["yt-spec-dialog-layout__dialog-layout-container"]=!0,bo["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(N==null?void 0:N())===1},bo["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!S&&!J||!!w&&(a==null?void 0:a())===0},bo))},_.U(_.X,{cond:function(){return S&&!J&&(a==null?void 0:a())===1},
then:function(){return _.U(Dxt,{contentAlignment:N,LeadingActionHeader:n,TrailingActionHeader:u,Title:S,isAboveAsset:!1})}}),R?_.U("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.U("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.U(R,null))):null,_.U(_.X,{cond:L,
then:function(){return fB?_.U("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.U(fB,null)):null}}),yO||FX?_.U(VKw,{footerClasses:_.SC((xz["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,xz["yt-spec-dialog-layout__dialog-layout-footer"]=!0,xz["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(F==null?void 0:F())===2},xz["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(F==null?void 0:F())===1},xz)),
PrimaryButton:yO,SecondaryButton:FX}):null))},"Cg"),Dxt=_.C8(function(K){var d=_.jP(K,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),f=d.contentAlignment,H=d.LeadingActionHeader;K=d.Title;var D=d.TrailingActionHeader,S=d.isAboveAsset,n=d.enableLeadingActionHeader;d={};return _.U("div",{class:_.SC((d["yt-spec-dialog-layout__dialog-header-container"]=!0,d["yt-spec-dialog-layout__dialog-header"]=!0,d["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=S,d["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(f==null?void 0:f())===1&&n()},d))},_.U(_.X,{cond:function(){return n()},
then:function(){return H?_.U("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.U(H,null)):null}}),K?_.U("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.U(K,null)):null,D?_.U("div",null,_.U(D,null)):null)},"Dg"),VKw=_.C8(function(K){var d=K.footerClasses;
var f=K.PrimaryButton;K=K.SecondaryButton;return _.U("div",{class:d},K?_.U(K,null):null,f?_.U(f,null):null)},"Eg");var yti=_.C8(function(K){var d=K.data;return _.U("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.U("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.U(_.z1,{data:function(){return d().avatar}},{avatarViewModel:_.Pz})),_.U("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.U(_.ji,{text:function(){return d().title}})),_.U(_.ji,{text:function(){return d().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Fg");var nXz=_.C8(function(K){var d=K.data;return _.U("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.U("div",{class:"ytAccessConfirmationViewModelContent"},_.U(_.z1,{data:function(){return d().dualAvatar}},{dualAvatarViewModel:function(f){return _.U("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.U(_.CgJ,{data:f.data}))}}),_.U("h2",{class:"ytAccessConfirmationViewModelTitle"},_.U(_.ji,{text:function(){return d().title}})),_.U(_.ji,{text:function(){return d().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Gg");var iNU=_.C8(function(K){var d=K.data;var f=void 0;K=_.y(_.cC("",void 0,"bj3Bbf"));var H=K.next().value,D=K.next().value,S,n=function(){D("");var R;(R=f)!=null&&R.store.dispatch(_.es({type:"RESET_COMMAND_MAP"}))};
_.tR(function(){f=new pSt;window.addEventListener("yt-popup-closed",n)});
_.ol(function(){if(f&&S!==d().formId){var R=f,F=d();F.formId&&(R.formId=F.formId,R.store.dispatch(_.es({type:"SET_CURRENT_FORM_ID",payload:{formId:R.formId}})));S=d().formId}});
_.$F(function(){window.removeEventListener("yt-popup-closed",n)});
var u=function(R,F,z){F.key&&z&&F.key!==H()&&(D(F.key),f&&F.command&&f.store.dispatch(_.es({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:z,command:F.command}})))},a=function(){if(_.P(d().content,_.W2Z))return!(H==null?0:H())};
return _.U("yt-dialog-view-model",{class:_.SC("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.U(SEZ,{headerWiz:function(){return _.U("span",{skip:!0},_.U(_.z1,{data:function(){return d().header}},{dialogHeaderViewModel:function(R){return _.U(dxl,{data:R.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!d().header},
contentWiz:function(){return _.U("span",{skip:!0},_.U(_.z1,{data:function(){return d().customContent?d().customContent:d().content}},{basicContentViewModel:_.NVL,
createPlaylistDialogFormViewModel:wSS,collaborativePlaylistInviteMessageViewModel:kUP,miniAppScoreChallengeViewModel:eNE,radioButtonGroupViewModel:function(R){return _.U(_.inZ,{data:R.data,selectedKey:H,onSelected:u})},
selectionListItemFormViewModel:KAl,upsellViewModel:function(R){return _.U(Z9t,{data:R.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:yti,installmentAgreementsViewModel:sjt,accessConfirmationViewModel:nXz,listViewModel:function(R){return _.U(_.PK8,{data:R.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:HNK}))},
footerWiz:function(){return _.U("span",{skip:!0},_.U(_.z1,{data:function(){return d().footer}},{panelFooterViewModel:function(R){return _.U(_.Ta,{data:R.data,
disablePadding:!0,disablePrimaryButton:a})},
formPanelFooterViewModel:f_U,formFooterViewModel:function(R){return _.U(_.wyi,{data:R.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!d().footer}}))},"Hg");
iNU.idomCompat=!0;_.sP(iNU,"yt-dialog-view-model",{props:{data:_.rs},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var ctK=_.C8(function(K){var d=K.data;K={};return _.U("yt-panel-header-view-model",{class:_.SC("yt-panel-header-view-model-wiz",(K["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!d().shouldHideDivider},K["yt-panel-header-view-model-wiz--compact"]=function(){return!!d().subtitle},K))},_.U("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.U(_.X,{cond:function(){return d().title},
then:function(f){return _.U(_.ji,{text:f,className:"yt-panel-header-view-model-wiz__title"})}}),_.U(_.X,{cond:function(){return d().subtitle},
then:function(f){return _.U(_.ji,{text:f,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.U("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.U(_.z1,{data:function(){return d().trailingButtons}},{buttonViewModel:function(f){return _.U(_.oY,{data:f.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Ig");
ctK.idomCompat=!0;var uBP=_.C8(function(K){var d=_.cp(function(S){var n;if((n=K.skipContentClick)==null?0:n.call(K))return!1;K.onContentWrapperClick(S);return!0}),f,H,D;
return _.U("div",{class:_.SC("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return K.isAnimating()?"transform: translateY("+K.currentY()+"px);transition: 0.2s":""}},(f=K.header)==null?void 0:f.call(K),_.U("div",{id:K.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Im({"max-height":(0,_.PH)(K.maxHeightForContentWrapper)}),"on:scroll":Yxw(K.onScroll),"on:touchmove":Yxw(function(S){return void S.stopPropagation()})},_.U("div",{el:{onRender:K.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":d},(H=K.body)==null?void 0:H.call(K))),(D=K.footer)==null?void 0:D.call(K))},"Jg");
uBP.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var a_c=_.C8(function(K){var d=_.QV(K.leadingLabel),f=_.QV(K.trailingLabel),H=_.QV(K.footerButtonType),D=function(){return d()||f()||K.hasPrimaryButton()||K.hasSecondaryButton()},S={},n=_.SC("yt-spec-bottom-sheet-layout__primary-button",(S["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return H()===0&&K.hasPrimaryButton()},S["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return H()===1&&K.hasPrimaryButton()},S["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return H()===2&&K.hasPrimaryButton()},S["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return H()===3&&K.hasPrimaryButton()},S));
S={};var u=_.SC("yt-spec-bottom-sheet-layout__secondary-button",(S["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return H()===1&&K.hasSecondaryButton()},S["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return H()===2&&K.hasSecondaryButton()},S["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return H()===3&&K.hasPrimaryButton()},S));
return _.U(_.X,{cond:K.hasFooterOverride,then:function(){var a;return _.U(_.dF,null,(a=K.footerOverride)==null?void 0:a.call(K))},
else:function(){return _.U(_.X,{cond:D,then:function(){return _.U("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.U(_.X,{cond:function(){return d()||f()},
then:function(){var a={};return _.U("div",{class:_.SC("yt-spec-bottom-sheet-layout__footer-label-wrapper",(a["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!K.hasPrimaryButton()},a))},_.U(_.X,{cond:d,
then:function(){return _.U("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},d)}}),_.U(_.X,{cond:f,
then:function(){return _.U("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},f)}}))}}),_.U(_.X,{cond:function(){return K.hasPrimaryButton()||K.hasSecondaryButton()},
then:function(){var a={};return _.U("div",{class:_.SC("yt-spec-bottom-sheet-layout__footer-button-wrapper",(a["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.q42,a))},_.U(_.X,{cond:function(){return K.hasSecondaryButton()&&H()!==0},
then:function(){var R;return _.U("div",{class:u},(R=K.secondaryButton)==null?void 0:R.call(K))}}),_.U(_.X,{cond:K.hasPrimaryButton,
then:function(){var R;return _.U("div",{class:n},(R=K.primaryButton)==null?void 0:R.call(K))}}))}}))}})}})},"Kg");
a_c.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var I_Z=_.C8(function(K){var d=_.QV(K.title),f=_.QV(K.subtitle);return _.U("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:K.headerId,"on:touchstart":_.cp(function(H){var D;(D=K.touchstart)==null||D.call(K,H);return!1}),
"on:touchmove":_.cp(function(H){var D;(D=K.touchmove)==null||D.call(K,H);return!1}),
"on:touchend":_.cp(function(H){var D;(D=K.touchend)==null||D.call(K,H);return!1})},_.U("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.U(_.X,{cond:K.hasHeaderOverride,
then:function(){var H;return _.U(_.dF,null,(H=K.headerOverride)==null?void 0:H.call(K))},
else:function(){var H={};return _.U("div",{class:_.SC((H["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,H["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=d,H))},_.U("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.U(_.X,{cond:d,then:function(){return _.U(_.dF,null,_.U("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},d),_.U(_.X,{cond:f,then:function(){return _.U("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
f)}}))}})),_.U(_.X,{cond:function(){return d()&&K.hasActionHeader()},
then:function(){var D;return _.U("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(D=K.actionHeader)==null?void 0:D.call(K))}}))}}))},"Lg");
I_Z.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.C8(function(K){function d(w){if(!T&&typeof MutationObserver!=="undefined"){var yO={childList:!0};"MutationObserver"in window&&(T=new MutationObserver(f.bind(void 0,w)),T.observe(w,yO))}}
function f(w){typeof T!=="undefined"&&(r["content-wrapper"]===void 0&&(r["content-wrapper"]=w.children[0].clientHeight),g(r["content-wrapper"]),v()>N()||h(v()))}
function H(){z(window.innerHeight);v()>N()||h(v());J.isFullScreen[0]()&&v()>N()?L().dispatch("Snap To Full Screen",{maxHeight:m()}):L().dispatch("Snap To Neutral Position",{maxHeight:N()})}
function D(w){document.body.style.overscrollBehavior="none";w.preventDefault();L().dispatch("Touch Start",{event:w})}
function S(w){w.preventDefault();L().dispatch("Touch Move",{event:w,contentScrollable:v()>N(),fullContentWrapperHeight:m(),contentWrapperHeight:N(),contentHeightMap:r,contentWrapperId:"content-wrapper",header:oJS(K),footer:oJS(K)})}
function n(){document.body.style.overscrollBehavior="";J.isFullScreen[0]()?J.currentY[0]()>=60?L().dispatch("Snap To Neutral Position",{maxHeight:N()}):L().dispatch("Snap To Full Screen",{maxHeight:m()}):J.currentY[0]()>=60?u():J.currentY[0]()<=-60&&v()>N()?L().dispatch("Snap To Full Screen",{maxHeight:m()}):L().dispatch("Snap To Neutral Position",{maxHeight:N()})}
function u(){L().dispatch("Close Sheet",{clientHeight:F(),maxHeight:0});setTimeout(function(){ts5()},250)}
var a=_.y(_.cC(window.innerHeight,void 0,"NWeFS")),R=a.next().value;a=a.next().value;var F=R,z=a;a=_.y(_.cC(0,void 0,"oxfm4"));R=a.next().value;a=a.next().value;var v=R,g=a;a=_.y(_.am(function(){var w=oJS(K);return.6*F()-gJ7(w)-Od7(w)}));
R=a.next().value;a=a.next().value;var N=R,h=a,m=function(){var w=oJS(K);return F()-gJ7(w)-Od7(w)-24-24},T=null,r={},J={initialY:_.cC(0,void 0,"cYBE5c"),
currentY:_.cC(0,void 0,"RndqHc"),isAnimating:_.cC(!1,void 0,"vO9DVd"),isFullScreen:_.cC(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.am(N)},L=function(){var w=null;return function(){if(!w){var yO={initialY:J.initialY[0](),currentY:J.currentY[0](),isAnimating:J.isAnimating[0](),isFullScreen:J.isFullScreen[0](),maxHeightForContentWrapper:J.maxHeightForContentWrapper[0]()};w=NNZ(yO)}return w}}();
_.tR(function(){window.addEventListener("resize",H);L().subscribe(function(w){J.initialY[1](w.initialY);J.currentY[1](w.currentY);J.isAnimating[1](w.isAnimating);J.isFullScreen[1](w.isFullScreen);J.maxHeightForContentWrapper[1](w.maxHeightForContentWrapper)})});
_.$F(function(){window.removeEventListener("resize",H);T&&(T.disconnect(),T=null)});
var fB=_.SC({"bottom-sheet-content-without-icon":function(){var w;return!((w=K.shouldShowIcons)==null?0:w.call(K))}});
return _.U("bottom-sheet-layout",null,_.U(uBP,{contentWrapperId:"content-wrapper",isAnimating:function(){return J.isAnimating[0]()},
currentY:function(){return J.currentY[0]()},
maxHeightForContentWrapper:function(){return J.maxHeightForContentWrapper[0]()},
shouldShowIcons:K.shouldShowIcons,skipContentClick:K.skipContentClick,onScroll:function(){var w=document.getElementById("header-wrapper"),yO=document.getElementById("content-wrapper");if(w&&yO){var FX={};FX=(FX["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,FX["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,FX);w.className=yO.scrollTop>1?_.nK(FX):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:ts5,contentWrapperEl:function(w){d(w);requestAnimationFrame(function(){f(w)})},
header:function(){return _.U(I_Z,{touchstart:D,touchmove:S,touchend:n,title:K.headerTitle,subtitle:K.headerSubtitle,headerId:"header-wrapper",headerOverride:K.headerFn,hasHeaderOverride:K.hasHeaderFn,actionHeader:K.headerActionHeader,hasActionHeader:K.hasHeaderActionHeader})},
footer:function(){return _.U(a_c,{footerButtonType:K.footerButtonType,leadingLabel:K.footerLeadingLabel,trailingLabel:K.footerTrailingLabel,primaryButton:K.footerPrimaryButton,hasPrimaryButton:K.hasFooterPrimaryButton,secondaryButton:K.footerSecondaryButton,hasSecondaryButton:K.hasFooterSecondaryButton,footerOverride:K.footerFn,hasFooterOverride:K.hasFooterFn})},
body:function(){return _.U(_.X,{cond:K.hasContentFn,then:function(){var w;return _.U("div",{class:fB},(w=K.contentFn)==null?void 0:w.call(K))}})}}))},"Mg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Uxc=_.C8(function(K){var d=_.eq().resolve(_.vI);return _.U("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.cp(function(){return void d.closeSheet()})},_.U(_.X,{cond:function(){return!!K.header},
then:function(){return _.U("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},K.header())}}),_.U(_.X,{cond:function(){return!!K.content},
then:function(){return _.U("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},K.content())}}),_.U(_.X,{cond:function(){return!!K.footer},
then:function(){return _.U("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},K.footer())}}))},"Ng");
Uxc.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var RsU=_.C8(function(K){K=K.data;var d=_.Co(function(H){if(_.M("web_focus_first_element_sheet"))return H.addEventListener("focus",function(){akw(H)}),function(){H.removeEventListener("focus",function(){akw(H)})}}),f={};
return _.U("yt-sheet-view-model",{class:_.SC("yt-sheet-view-model-wiz",(f["yt-sheet-view-model-wiz--contextual"]=!0,f["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.M("web_disable_backdrop_filter"),f)),el:d,tabindex:-1},_.U(_.X,{cond:K,then:function(H){return _.U(Uxc,{header:function(){return _.U(_.z1,{data:function(){return H().header}},{panelHeaderViewModel:ctK})},
content:function(){return _.U(_.z1,{data:function(){return H().content}},{listViewModel:function(D){return _.U(_.PK8,{data:D.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:Z9t,miniAppScoreChallengeViewModel:eNE})},
footer:function(){return _.U(_.z1,{data:function(){return H().footer}},{panelFooterViewModel:_.Ta})}})}}))},"Og");
RsU.idomCompat=!0;_.sP(RsU,"yt-sheet-view-model",{props:{data:_.rs}});var zs7=_.C8(function(K){var d=function(){var f;return(f=K.data().enableDebuggingFeatures)!=null?f:!1};
return _.U("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.U(_.v_,{each:function(){var f;return(f=K.data().stickers)!=null?f:[]}},function(f){return _.U(FAZ,{data:function(){return f},
debugMode:d})}))},"Pg"),FAZ=_.C8(function(K){var d=_.jP(K,{debugMode:!1}).debugMode,f=_.QV(function(){var a;
return(a=K.data().region)==null?void 0:a.w},0),H=_.QV(function(){var a;
return(a=K.data().region)==null?void 0:a.h},0),D=_.QV(function(){var a;
return(a=K.data().region)==null?void 0:a.x},0),S=_.QV(function(){var a;
return(a=K.data().region)==null?void 0:a.y},0),n=_.cp(function(){var a=K.data().onTap;
a&&_.me(a)}),u={};
return _.U("div",{class:_.SC("ytStoriesStickerLayerViewModelSticker",(u.ytStoriesStickerLayerViewModelDebugMode=d,u)),style:_.Im({width:function(){return 100*f()+"%"},
height:function(){return 100*H()+"%"},
left:function(){return 100*D()+"%"},
top:function(){return 100*S()+"%"},
"flex-direction":function(){return $Yc(K.data().flexDirection)},
"justify-content":function(){return EJ5(K.data().justifyContent)},
"align-items":function(){return h0K(K.data().alignItems)}}),
"on:click":n},_.U(_.z1,{data:function(){return K.data().button||K.data().toggleButton}},{buttonViewModel:function(a){return _.U(_.oY,{data:a.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(a){return _.U(_.MT,{data:a.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Qg");var vXc=_.C8(function(K){var d=function(){return K.data()},f=_.QV(function(){return d().backgroundColor},0),H=_.QV(function(){return d().actionButtons},[]),D=_.QV(function(){return d().stickerLayer},{}),S={},n=function(){var a,R;
return{animationRef:S,animationConfig:{autoplay:!1,loop:!1,path:(R=(a=d().foregroundAnimation)==null?void 0:a.url)!=null?R:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){K.navigateToNextItemOnLottieComplete()}}}},u=function(){var a,R,F,z,v,g,N,h;
return{animationConfig:{autoplay:(g=(a=d().backgroundAnimation)==null?void 0:(R=a.settings)==null?void 0:R.autoplay)!=null?g:!1,loop:(N=(F=d().backgroundAnimation)==null?void 0:(z=F.settings)==null?void 0:z.loop)!=null?N:!1,path:(h=(v=d().backgroundAnimation)==null?void 0:v.url)!=null?h:"",name:"stories_item_background_animation"}}};
_.ol(function(){if(K.isVisible()){var a;(a=S.lottieEl)==null||a.play()}else{var R;(R=S.lottieEl)==null||R.stop()}});
return _.U("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Im({"background-color":function(){return _.hG(f())+";"}})},_.U("div",{class:"ytStoriesItemViewModelAssetContent"},_.U(_.X,{cond:function(){return!!d().backgroundAnimation},
then:function(){return _.U(_.yC,{data:u,animationName:function(){return u().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.U(_.X,{cond:function(){return!!d().backgroundImage},
then:function(){return _.U(_.jV,{data:function(){return d().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.U(_.X,{cond:function(){return!!d().foregroundAnimation},
then:function(){return _.U(_.yC,{data:n,animationName:function(){return n().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.U(_.X,{cond:function(){return!!d().foregroundImage},
then:function(){return _.U(_.jV,{data:function(){return d().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.U("div",{class:"ytStoriesItemViewModelTopShadow"}),_.U(_.z1,{data:function(){return D()}},{storiesStickerLayerViewModel:zs7})),_.U("div",{class:"ytStoriesItemViewModelBottomShadow"},_.U("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.cp(K.pauseAutoNavigation)},_.U(_.v_,{each:H},function(a){return _.U(XZU,{data:function(){return a}})}))))},"Rg"),XZU=_.C8(function(K){var d={};
return _.U("div",{class:_.SC("ytStoriesItemViewModelActionButton",(d.ytStoriesItemViewModelStretchedActionButton=function(){return K.data().size==="STORIES_BUTTON_SIZE_STRETCH"},d))},_.U(_.z1,{data:function(){return K.data().button}},{buttonViewModel:function(f){return _.U(_.oY,{data:f.data,
className:"ytStoriesItemViewModelButton"})}}))},"Sg");_.sP(_.C8(function(K){var d=_.y(_.am(function(){var r;return(r=K.data().startIndex)!=null?r:0})),f=d.next().value,H=d.next().value;
d=_.y(_.cC(!1,void 0,"klmjc"));var D=d.next().value,S=d.next().value,n=function(){var r;return(r=K.data().storyItems)!=null?r:[]},u=function(){return K.data().dismissButton},a=function(){var r;
return _.P((r=_.P(u(),_.XN))==null?void 0:r.onTap,_.oG)},R=_.Co(),F,z=function(){var r;
(r=F)==null||r.cancel();F=v(f()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});F.onfinish=function(){v(f()).style.width="100%";var J=_.P(n()[f()],OTy),L,fB;J!=null&&J.foregroundAnimation&&((J==null?0:(L=J.foregroundAnimation)==null?0:L.url)||(J==null?0:(fB=J.foregroundAnimation)==null?0:fB.payload))||(f()!==n().length-1?(H(f()+1),z()):a()&&_.EP(a()))}},v=function(r){return R.value.children[r].children[0]},g=function(){for(var r=0;r<f();r++)v(r).style.width="100%"};
d=_.cp(function(){D()?S(!1):(f()===n().length-1&&a()&&_.EP(a()),v(f()).style.width="100%",f()!==n().length-1&&(H(f()+1),z()))});
var N=_.cp(function(){D()?S(!1):(v(f()).style.width="0%",f()!==0?H(f()-1):H(f()),z())}),h=function(){S(!0)},m=function(){v(f()).style.width="100%";
f()!==n().length-1?(H(f()+1),z()):a()&&_.EP(a())},T=_.cp(function(){var r;
(r=F)==null||r.pause()});
_.ol(function(){if(D()){var r;(r=F)==null||r.pause()}else{var J;(J=F)==null||J.play()}});
_.ol(function(){g();f()===K.data().startIndex&&z()});
_.tR(function(){g();z()});
return _.U("yt-stories-viewer-view-model",{class:_.SC("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.U("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.U("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":N,"on:mousedown":T}),_.U("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":d,"on:mousedown":T})),_.U(_.z1,{data:n},{storiesItemViewModel:function(r,J){var L=r.data;return _.U(_.X,{cond:function(){return Math.abs(J()-
f())<=1},
then:function(){var fB={};return _.U("div",{class:_.SC("ytStoriesViewerViewModelStoryItem",(fB.ytStoriesViewerViewModelHiddenStoryItem=function(){return J()!==f()},fB))},_.U(vXc,{data:L,
pauseAutoNavigation:h,navigateToNextItemOnLottieComplete:m,isVisible:function(){return J()===f()}}))}})}}),_.U("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:R},_.U(_.v_,{each:n},function(){return _.U("div",{class:"ytStoriesViewerViewModelProgressBar"},_.U("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.U("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.U(_.z1,{data:u},{buttonViewModel:_.oY})))},"Tg"),"yt-stories-viewer-view-model",{props:{data:_.rs}});_.sP(_.C8(function(K){var d=K.data;var f=_.Co(),H=[];return _.U("yt-gen-ai-feedback-form-view-model",{el:f,class:"ytGenAiFeedbackFormViewModelHost"},_.U(_.ji,{text:function(){return d().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.U("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.U(_.z1,{data:function(){return d().feedbackChips}},{toggleButtonViewModel:function(D){var S=D.data;
return _.U(_.MT,{data:S,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(n){var u=S();u=_.P(u,_.v9);u=_.P(u==null?void 0:u.defaultButtonViewModel,_.XN).trackingParams;n?H.push(u):(n=H.indexOf(u),n>-1&&H.splice(n,1))}})}})),_.U(_.ji,{text:function(){return d().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.U("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.U(_.z1,{data:function(){return d().submitButton}},{buttonViewModel:function(D){return _.U(_.oY,{data:D.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){bdc(f.value,H,d().uniqueId)}})}}),_.U(_.z1,{data:function(){return d().moreFeedbackButton}},{buttonViewModel:function(D){return _.U(_.oY,{data:D.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Ug"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.rs},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var A1=function(){return _.q.apply(this,arguments)||this};
_.O(A1,_.q);A1.prototype.created=function(){yGz(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Ciy);var K=_.eq().resolve(_.Vyt);K&&(K.container=this.ytPopupContainerBehavior);if(K=_.eq().resolve(_.vI))K.container=this.ytPopupContainerBehavior;if(K=_.eq().resolve(_.MZ)){var d=this.ytPopupContainerBehavior;K.containerWasInjected?_.h3(Error("aj")):K.container=d}};
A1.prototype.ensurePopupBelowPlayer=function(K,d){var f=_.eq().resolve(_.Zd(_.jC));if(!f||!f.isOnWatch()||!_.xP())return!1;f=f.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.aM().height>f+this.getPopupHeight(K,d)?(K.style.top="auto",K.style.bottom="0px"):(K.style.top=f+"px",K.style.bottom="auto");return!0};
A1.prototype.getPopupHeight=function(K,d){d&&(K.cachedPopupHeight=0);if(!K.cachedPopupHeight){d=0;var f=K.clientHeight,H=window.getComputedStyle(K);d+=parseInt(H.marginTop,10);d+=parseInt(H.marginBottom,10);K.cachedPopupHeight=f+d}return K.cachedPopupHeight};
A1.prototype.getElement=function(K){return document.createElement(K)};
_.x([_.l(uVw.YtPopupContainerBehavior),_.B("design:type",Object)],A1.prototype,"ytPopupContainerBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],A1.prototype,"ytComponentBehavior",void 0);A1=_.x([_.Q({disableElementRegistration:!0,is:"ytd-popup-container"})],A1);
_.C(A1,"ytd-popup-container",function(){if(dKy!==void 0)return dKy;var K=document.createElement("template");_.Y(K,"\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");K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);return dKy=K},{mode:1});var MKc;var PbS={};PbS.YtLogYpcFlowCommandsBehavior=[_.kc.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(K){_.P(K,jUS)&&(K=_.P(K,jUS))&&(K.serializedTransactionFlowLoggingParams?_.NaS(K.serializedTransactionFlowLoggingParams):K.serializedYpcCancelFlowLoggingParams?(K=K.serializedYpcCancelFlowLoggingParams)&&_.$y("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",K):K.serializedYpcResumeFlowLoggingParams?(K=K.serializedYpcResumeFlowLoggingParams)&&_.$y("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",K):K.serializedYpcPauseFlowLoggingParams?(K=K.serializedYpcPauseFlowLoggingParams)&&
_.$y("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",K):K.serializedYpcRefundFlowLoggingParams?(K=K.serializedYpcRefundFlowLoggingParams)&&LgZ("YPC_EVENT_TYPE_START",K):K.serializedYpcDeactivateFlowLoggingParams?(K=K.serializedYpcDeactivateFlowLoggingParams)&&_.$y("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",K):K.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(K=K.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.$y("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",K))},
handleLogYpcFlowDismiss_:function(K){_.P(K,QUK)&&(K=_.P(K,QUK),K.serializedTransactionFlowLoggingParams?_.YLO(K.serializedTransactionFlowLoggingParams):K.serializedYpcCancelFlowLoggingParams?(K=K.serializedYpcCancelFlowLoggingParams)&&_.$y("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",K):K.serializedYpcResumeFlowLoggingParams?(K=K.serializedYpcResumeFlowLoggingParams)&&_.$y("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",K):K.serializedYpcPauseFlowLoggingParams?(K=
K.serializedYpcPauseFlowLoggingParams)&&_.$y("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",K):K.serializedYpcRefundFlowLoggingParams&&(K=K.serializedYpcRefundFlowLoggingParams)&&LgZ("YPC_EVENT_TYPE_CANCEL",K))}}];var gXS={};gXS.YtCancelRecurrenceBehavior=[_.hj.YtComponentBehavior,_.P6N,{attached:function(){var K=this;Bmc(this,function(d,f){return K.ypcCancelRecurrenceHandler(d,f)})},
ypcCancelRecurrenceHandler:function(K,d){var f=this;if(!d||!d.ypcCancelRecurrenceEndpoint)return!1;if(!d.ypcCancelRecurrenceEndpoint.params)return _.G2(Error("tl")),!0;_.lc(this.hostElement);var H=_.md.instance,D=_.eq().resolve(_.Zd(_.O1));H&&_.lh(H,d)?_.Wp(H,d).then(function(S){f.ypcCancelRecurrenceSuccess_(K,d,{data:S})},function(S){f.ypcCancelRecurrenceFailure_(K,d,S)}).thenCatch(function(){_.G2(Error("ul"))}):D?D.requestDataForServiceEndpoint(d).then(function(S){f.ypcCancelRecurrenceSuccess_(K,
d,S)},function(S){f.ypcCancelRecurrenceFailure_(K,d,S)}).thenCatch(function(){_.G2(Error("ul"))}):_.G2(Error("vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(K,d,f){_.W$(this.hostElement);f.data||(f={data:f});f.data&&f.data.actions&&_.fd(this.hostElement,f.data.actions,this.hostElement);f.data.messageRenderer?J9y(d.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(d=d.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.$y("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",d);_.Zp(K,"yt-service-request-completed",f)},
ypcCancelRecurrenceFailure_:function(K,d,f){_.W$(this.hostElement);J9y(d.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Zp(K,"yt-service-request-error",{error:f,params:[K,d]})}}];var ONS=function(K,d){_.KB.call(this,d)};
_.O(ONS,FeU);var NAw={};NAw.YtCompleteTransactionBehavior=[_.hj.YtComponentBehavior,_.P6N,{attached:function(){var K=this;Bmc(this,function(d,f){return K.ypcCompleteTransactionHandler(d,f)})},
completeTransaction:function(K,d){var f=this;d={payments_payload:window.btoa(d.integratorData),buybucket_params:K.data.buybucketParams,offer_params:K.data.offerParams};var H=_.eq().resolve(_.O1),D=K.data.completeTransactionEndpoint,S=this.get("ypcCompleteTransactionEndpoint.actions",D);S&&_.fd(this.hostElement,S,this.hostElement);return(S=_.md.instance)&&_.lh(S,D)?_.Wp(S,D,d).then(function(n){return!n||(n==null?0:n.error)?(n=f.get("data.serializedTransactionFlowLoggingParams",K),_.vv(new pc("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
n))):{data:n}}).then(function(n){return f.handleCompleteTransactionSuccess_(n,K)},function(){return f.handleCompleteTransactionFailure_(K)}):H.requestDataForServiceEndpoint(D,d).then(function(n){return f.handleCompleteTransactionSuccess_(n,K)},function(){return f.handleCompleteTransactionFailure_(K)})},
handleCompleteTransactionSuccess_:function(K,d){K.data||(K={data:K});if(K.data.messageRenderer)return _.vv(new ONS(K.data.messageRenderer));if(K.data.trackingParams){var f=_.te(),H=_.YZ();f&&H&&_.lB(f,H,_.RG(K.data.trackingParams))}d=this.get("data.serializedTransactionFlowLoggingParams",d);Biw(d);return _.HG(K)},
handleCompleteTransactionFailure_:function(K){K=this.get("data.serializedTransactionFlowLoggingParams",K);_.To("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",K);return _.vv(new pc("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",K))},
ypcCompleteTransactionHandler:function(K,d){var f=this;if(!d.ypcCompleteTransactionEndpoint)return!1;if(!d.ypcCompleteTransactionEndpoint.transactionParams)return _.G2(Error("wl")),!0;d.ypcCompleteTransactionEndpoint&&d.ypcCompleteTransactionEndpoint.gtmData&&_.z8(d.ypcCompleteTransactionEndpoint.gtmData);var H=_.eq().resolve(_.Zd(_.O1));if(H){_.lc(this.hostElement);var D=_.md.instance;D&&_.lh(D,d)?_.Wp(D,d).then(function(S){return!S||(S==null?0:S.error)?(S=f.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
d),_.vv(new pc("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",S))):{data:S}}).then(function(S){_.Zp(K,"yt-service-request-completed");
f.ypcCompleteTransactionSuccess_(d,S)},function(){return f.ypcCompleteTransactionFailure_(d)}):H.requestDataForServiceEndpoint(d).then(function(S){_.Zp(K,"yt-service-request-completed");
f.ypcCompleteTransactionSuccess_(d,S)},function(){return f.ypcCompleteTransactionFailure_(d)})}return!0},
ypcCompleteTransactionSuccess_:function(K,d){_.W$(this.hostElement);d.data||(d={data:d});_.ev(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);d.data.messageRenderer||d.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(K):(_.z8('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",K));d.data.actions&&(K=Syw(d.data.actions),d=yeP(d.data.actions),K.length&&_.dN(this.hostElement,
K),d.length&&_.fd(this.hostElement,d,this.hostElement))},
ypcCompleteTransactionFailure_:function(K){_.W$(this.hostElement);_.ev(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",K,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(K,d,f){if(d=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",d))d={serializedTransactionFlowLoggingParams:d},f&&(d.errorType=f),_.t3(K,d),_.oB()}}];var YEc={};YEc.YtEndpointHandlerWithYpcBehavior=[_.P6N,_.kc.YtActionHandlerBehavior,[{openWalletDialog:function(K,d,f,H,D,S,n){var u=this,a=_.Gz();d=d.replace(/-/g,"+").replace(/_/g,"/");var R=_.aS().get("hl");_.xwz(_.w3(_.rm),d,a.resolve,D,function(F){S&&S();a.reject(F)},R,function(F){return u.onServerBackendAnalyticEvent_(K,f,F)},this.onDialogClose_.bind(this),H,n);
return a.promise},
openFixFlowDialog:function(K,d,f,H){K=K.replace(/-/g,"+").replace(/_/g,"/");_.w3(_.rm).openFixFlowDialog(K,d,f,H)},
onDialogClose_:function(){_.ev(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(K,d,f){_.Zp(K,"yt-commerce-action-init-done");d&&_.dN(this.hostElement,[d,{backend_analytics:f}])}}],
_.Vr.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(K,d){K=this.get("data.nativeFlowEndpoint",d);d=this.get("data.fallbackEndpoint",d);K?_.dN(this.hostElement,[K]):d&&_.Zp(this.hostElement,"yt-navigate",{endpoint:d})}}],
gXS.YtCancelRecurrenceBehavior,NAw.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 K=this;Bmc(this,function(d,f,H){return K.handleYPCEndpoint(d,f,H)});
this.ypcRegisterActionMapJobId_=_.va(_.oc,function(){K.registerActionMap(K.buyFlowActionMap_)})},
detached:function(){var K=this;_.oc.cancelJob(this.ypcRegisterActionMapJobId_);_.va(_.oc,function(){K.unregisterActionMap(K.buyFlowActionMap_)})},
handleYPCEndpoint:function(K,d,f){var H=d.ypcGetCartEndpoint;if(H){_.NY("commerce_transaction");var D=H.gtmId;D&&_.F8(D);(H=H.gtmData)&&_.z8(H)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",d)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(K,d),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",d)!=null?(this.handleYPCFixInstrumentEndpoint_(K,d),!0):d.ypcPauseSubscriptionCommand?(QSU(this.hostElement,K,d,f),
!0):d.ypcResumeSubscriptionCommand?(xYy(this.hostElement,K,d),!0):d.getPaymentInstrumentsParamsCommand?(TNz(this.hostElement,K,d),!0):d.ypcHandleTransactionEndpoint?(GuK(this.hostElement,K,d,f),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(K,d){var f=this;_.YJ("ttcr",void 0,"commerce_transaction");d=d.ypcGetCartEndpoint;var H=d.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,D=H.encryptedPurchaseParams,S=H.serializedTransactionFlowLoggingParams,n=H.serializedPaymentsClientParams,u=this.createGetCartResponseFromParams_(H,d.offerParams,S);this.changeButtonState(K,!0);_.It(this.openWalletDialog(K,D,H.ypcLogWalletAnalyticDataEndpoint,S,function(){f.changeButtonState(K,!1)},function(){f.changeButtonState(K,
!1)},n).then(function(a){return f.handleBuyFlowCompleteCallback_(K,u,a)},function(){return f.handleOnLoadError(u)}).then(function(a){return void f.handlePostPurchaseSuccess_(K,u,a)},function(a){return void f.handlePostPurchaseError_(a)}),function(){f.changeButtonState(K,!1);
K instanceof Element&&_.Zp(K,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(K,d,f){var H=K.completeTransactionEndpoint,D=K.handleTransactionEndpoint;d={data:{offerParams:window.btoa(d),serializedTransactionFlowLoggingParams:f}};D?d.data.handleTransactionEndpoint=D:d.data.completeTransactionEndpoint=H;K.onCartDismissCommand&&(d.data.onCartDismissCommand=K.onCartDismissCommand);return d},
onGetCartServiceRequestCompleted_:function(K,d){var f=this,H=K.target;if(d&&d.data&&d.data.messageRenderer)_.W$(this.hostElement),this.handleMessageRenderer_(d.data.messageRenderer),this.changeButtonState(H,!1);else{var D=this.get("data.encryptedPurchaseParams",d),S=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",d),n=this.get("data.ypcLogWalletAnalyticDataEndpoint",d),u=this.get("data.serializedPaymentsClientParams",d),a=this.getLoggingParams_(d);if(a||D||S)K.stopPropagation(),_.YJ("ttcr",
void 0,"commerce_transaction"),D||_.W$(this.hostElement),this.changeButtonState(H,!1),S?_.ev(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.mD("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:S}}},this]):D&&(this.changeButtonState(H,!0),K=null,K=this.openWalletDialog(H,D,n,a,function(){_.W$(f.hostElement);f.changeButtonState(H,!1)},function(){_.W$(f.hostElement);
f.changeButtonState(H,!1)},u),_.It(K.then(function(R){return f.handleBuyFlowCompleteCallback_(H,d,R)},function(){return f.handleOnLoadError(d)}).then(function(R){return f.handlePostPurchaseSuccess_(H,d,R)},function(R){return f.handlePostPurchaseError_(R)}),function(){f.changeButtonState(H,!1);
_.Zp(H,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(K,d){d&&d.endpoint&&d.endpoint.ypcGetCartEndpoint&&!d.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",d.endpoint.ypcGetCartEndpoint)&&_.fd(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",d.endpoint.ypcGetCartEndpoint)],K.target),_.lc(this.hostElement),this.changeButtonState(K.target,!0))},
onServiceRequestError_:function(K,d){if(d&&d.params&&d.params.length){d=_.y(d.params);for(var f=d.next();!f.done;f=d.next())if((f=f.value)&&f.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",f.ypcGetCartEndpoint)&&_.fd(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",f.ypcGetCartEndpoint)],K.target);_.W$(this.hostElement);this.changeButtonState(K.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(K,d,f){var H=f.integratorData;return H==null||H===""||f.error!=null?(H=this.getLoggingParams_(d),String(f.error)==="-1"?(d.data.onCartDismissCommand&&_.fd(this.hostElement,[d.data.onCartDismissCommand],K),_.vv(new pc("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",H,!0))):_.vv(new pc("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",H))):d.data.handleTransactionEndpoint?AyK(this.hostElement,d.data.handleTransactionEndpoint,{payments_payload:H,funds_guarantee_callback_client_data:f.integratorClientCallbackData}):
this.completeTransaction(d,f)},
handlePostPurchaseSuccess_:function(K,d,f){d=f.data;var H=!1,D,S;if(d&&((D=d.command)==null?0:(S=D.commandExecutorCommand)==null?0:S.commands)){var n,u;D=(n=d.command)==null?void 0:(u=n.commandExecutorCommand)==null?void 0:u.commands;for(n=0;n<D.length;n++)if(_.P(D[n],_.Rxv)){H=!0;break}}H||(d&&d.gtmDatas&&d.gtmDatas.length?_.z8(d.gtmDatas[0]):_.z8('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));f.data&&f.data.actions&&(d=Syw(f.data.actions),f=yeP(f.data.actions),d.length&&
_.dN(this.hostElement,d),f.length&&_.fd(this.hostElement,f,K))},
handlePostPurchaseError_:function(K){K&&K.payload&&K.payload.isUserDismiss||_.$7(Error("yl"))},
handleOnLoadError:function(K){K=this.getLoggingParams_(K);return _.vv(new pc("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",K))},
getLoggingParams_:function(K){return this.get("data.serializedTransactionFlowLoggingParams",K)},
handleMessageRenderer_:function(K){var d=_.Eb(K,"renderer"),f=_.mD("openPopupConfig");d==="confirmDialogRenderer"&&f&&_.ev(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:f.popupTypeMap[d],popup:K}},this])},
handleYPCFixInstrumentEndpoint_:function(K,d){var f=this,H=d.ypcFixInstrumentEndpoint;d=H.encryptedFixInstrumentParameters;this.logFixFopEvent_(H,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(K,!0);this.openFixFlowDialog(d,function(D,S){f.onFixFlowCompleteCallback_(H,D,S)},function(){return f.changeButtonState(K,!1)},function(){f.changeButtonState(K,!1);
f.logFixFopEvent_(H,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(K,d,f){var H=_.T2("payments.business.integration.scenario.FixInstrument");if(d==H.IntegratorCallbackType.ON_COMPLETE){d="FIX_FOP_EVENT_TYPE_CANCEL";var D=null;f.error!=null?f.error!=H.OnCompleteCallbackError.USER_CANCELLED&&(_.fd(this.hostElement,[K.errorAction],this.hostElement),d="FIX_FOP_EVENT_TYPE_FAILURE",D="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.fd(this.hostElement,[K.successAction],this.hostElement),d="FIX_FOP_EVENT_TYPE_SUCCESS");_.fd(this.hostElement,[K.onFinishAction],
this.hostElement);this.logFixFopEvent_(K,d,D)}},
logFixFopEvent_:function(K,d,f){(K=K.serializedFixFopLoggingParams)?(d={eventType:d,serializedFixFopLoggingParams:K},f!=null&&(d.errorType=f),_.t3("fixFopFlow",d),_.oB()):_.$7(Error("zl"))},
changeButtonState:function(K,d){_.M("enable_ypc_spinners")&&K&&(K.is==="yt-button-renderer"||K.is==="ytd-button-renderer")&&(K.disabled=d)}}];var tK5=function(K){this.JSC$28733_clientRoot=K;this.feedbackCollectorActionMap={"yt-help-dialog-requested":BNy,"yt-feedback-dialog-requested":Lqz,"yt-signal-action-help":Jyl,"yt-signal-action-send-feedback":sSZ,"yt-send-feedback-action":wG7,"yt-user-feedback-endpoint":Zdw};_.qF(_.rU.getInstance(),this.feedbackCollectorActionMap,this.JSC$28733_clientRoot)},oXi;var $xi=function(K){this.JSC$28738_clientRoot=K;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":e0z.bind(null,this.JSC$28738_clientRoot),"yt-signal-action-delete-all-downloads":KS7,"yt-signal-action-delete-download":dQK,"yt-signal-action-delete-playlist-download":HFK,"yt-signal-action-install-pwa":iFS,"yt-signal-action-refresh-downloads":ypy,"yt-offline-video-endpoint":ust,"yt-offline-playlist-endpoint":IR7,"yt-update-local-app-setting-command":RMy,"yt-offline-orchestration-action-command":zMw,
"yt-signal-action-undo-delete-download":V3c,"yt-local-watch-history-command":M3U};_.qF(_.rU.getInstance(),this.downloadManagerActionMap,this.JSC$28738_clientRoot);_.Mn.instance=new _.Mn},EXi;var TW=function(){var K=_.q.apply(this,arguments)||this;K.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_"};K.remoteApi_=null;return K};
_.O(TW,_.q);_.V=TW.prototype;
_.V.ready=function(){_.M("polymer_enable_mdx")&&(Cqi({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.M("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.M("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.M("enable_cast_short_lived_lounge_token")}),_.Ha("yt-remote-connection-change",this.handleConnectionChange_,this),_.Ha("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=wrt())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.V.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.V.handleConnectionChange_=function(K){(this.mdxConnected=K)?(K=BdE(),!K&&Lkz()&&BXE()&&(K={key:"cast-selector-receiver",name:BXE()}),K=K.name):K=null;this.receiverName=K;_.kh(this.remoteApi_);(this.remoteApi_=wrt())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.V.handleReceiverAvailabilityChange_=function(){var K=Lv5();Lkz()&&_.KI("yt-remote-cast-available")&&K.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=K.length>0};
_.V.handleRemoteQueueChange_=function(){var K=this.currentVideoId_,d=this.currentListId_,f=V1(this.remoteApi_);this.currentVideoId_=f.videoId;this.currentListId_=f.listId;this.currentVideoId_&&_.ev(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.M("polymer_enable_mdx_queue")?this.currentListId_:null,K,d])};
_.V.handleAddToQueueAction_=function(K){K=_.P(K,Nkt);this.remoteApi_&&(K.videoId?this.remoteApi_.addVideo(K.videoId):K.playlistId&&this.remoteApi_.addPlaylist(K.playlistId))};
_.V.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.V.handleInsertInQueueAction_=function(K){K=_.P(K,Yhl);this.remoteApi_&&K.videoId&&this.remoteApi_.JSC$17543_insertVideo(K.videoId)};
_.V.handleRemoveFromQueueAction_=function(K){K=_.P(K,t2i);this.remoteApi_&&K.videoId&&this.remoteApi_.JSC$17543_removeVideo(K.videoId)};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],TW.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A(),_.B("design:type",Object)],TW.prototype,"appId",void 0);_.x([_.A(),_.B("design:type",Boolean)],TW.prototype,"mdxConnected",void 0);_.x([_.A(),_.B("design:type",Boolean)],TW.prototype,"receiverAvailable",void 0);_.x([_.A(),_.B("design:type",Object)],TW.prototype,"receiverName",void 0);_.x([_.A(),_.B("design:type",Object)],TW.prototype,"currentVideoId_",void 0);
_.x([_.A(),_.B("design:type",Object)],TW.prototype,"currentListId_",void 0);TW=_.x([_.N7({is:"yt-mdx-manager",disableElementRegistration:!0})],TW);_.C(TW,"yt-mdx-manager",void 0,{mode:2});var hsZ;var bNS;var r1=function(){var K=_.q.apply(this,arguments)||this;K.APP_IDS={ytr:3,ytm:5};K.JSC$18781_timeoutId_=0;K.actionMap={"yt-open-create-family-dialog":"open"};return K};
_.O(r1,_.q);_.V=r1.prototype;_.V.created=function(){yGz(2200)};
_.V.detached=function(){this.observer_&&this.observer_.disconnect()};
_.V.open=function(K,d){var f=this,H=K.serializedYpcFamilyCreateLoggingParams;this.JSC$18781_timeoutId_=setTimeout(this.abort_.bind(this,K.postFlowErrorEndpoint,H),3E4);d&&(this.onReadyCallback_=d);var D=_.E(this.hostElement).querySelector("#unicorn-iframe");H&&H&&xXz("ypcFamilyCreateFlowStarted",H);_.a9z("family_creation",function(){var S=_.T2("gapi.family_creation.render");_.T2("gapi.config.update")("iframes/family_creation/url",f.getFamilyCreationUrlWithUnicornParams_());var n=3;K.appId&&K.appId in
f.APP_IDS&&(n=f.APP_IDS[K.appId]);n={authUser:_.mD("SESSION_INDEX")||0,clientId:n,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.mD("HL"),initialflow:[4,5,6,7],m:f.isMobile?1:0,onFlowComplete:f.onUnicornFlowComplete_.bind(f,K.postFlowSuccessEndpoint,H),onError:f.onUnicornFlowError_.bind(f,K.postFlowErrorEndpoint,H),onReady:f.onUnicornFlowReady_.bind(f,K.referencePcidParams)};S(D,n)})};
_.V.close=function(){_.E(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.V.onUnicornFlowComplete_=function(K,d){this.close();d&&d&&xXz("ypcFamilyCreateFlowSucceeded",d);_.Zp(this.hostElement,"yt-navigate",{endpoint:K})};
_.V.onUnicornFlowError_=function(K,d){this.close();d&&xXz("ypcFamilyCreateFlowCancelled",d);_.Zp(this.hostElement,"yt-navigate",{endpoint:K})};
_.V.onUnicornFlowReady_=function(K){var d=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();K&&_.T2("gapi.family_creation.setConfig")(0,K);this.observer_=new MutationObserver(function(){_.E(d.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.E(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.E(this.hostElement).querySelector("#dialog").open()};
_.V.getFamilyCreationUrlWithUnicornParams_=function(){return _.mD("YTR_FAMILY_CREATION_URL")};
_.V.getCurrentUrl_=function(){return document.location.href};
_.V.abort_=function(K,d){this.clearTimeout_();this.onUnicornFlowError_(K,d)};
_.V.clearTimeout_=function(){clearTimeout(this.JSC$18781_timeoutId_)};
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],r1.prototype,"ytActionHandlerBehavior",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],r1.prototype,"isMobile",void 0);_.x([_.A(),_.B("design:type",Object)],r1.prototype,"onReadyCallback_",void 0);_.x([_.A(),_.B("design:type",Object)],r1.prototype,"observer_",void 0);r1=_.x([_.N7({is:"yt-create-family-dialog",disableElementRegistration:!0})],r1);
_.C(r1,"yt-create-family-dialog",function(){if(bNS===void 0){var K=document.createElement("template");_.Y(K,'\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');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);var d=K.content,f=d.insertBefore;hsZ===void 0&&(hsZ=document.createElement("template"));var H=hsZ;f.call(d,H.content.cloneNode(!0),K.content.firstChild);bNS=K}K=bNS;return K},{mode:2});var mxc;var l_K;var qE=function(){var K=_.q.apply(this,arguments)||this;K.STEP=1;K.BLOCK_ON=80;K.MIN_PROGESS=0;K.MAX_PROGESS=100;return K};
_.O(qE,_.q);_.V=qE.prototype;_.V.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.V.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));_.eq().addProvider({provide:Y0S,useValue:this})};
_.V.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.V.finish=function(){var K=this;this.progress=this.MAX_PROGESS;PA5(function(){K.progress==K.MAX_PROGESS&&(K.hostElement.hidden=!0)})};
_.V.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.x$.Object.defineProperties(qE.prototype,{progress:{configurable:!0,enumerable:!0,set:function(K){this.progress_=K;var d="scaleX("+K/this.MAX_PROGESS+")",f=_.E(this.hostElement).querySelector("#progress").style;f.transform=d;f.webkitTransform=d;this.hostElement.setAttribute("aria-valuenow",String(K))},
get:function(){return this.progress_}}});
_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],qE.prototype,"ytComponentBehavior",void 0);qE=_.x([_.N7({is:"yt-page-navigation-progress",disableElementRegistration:!0})],qE);
_.C(qE,"yt-page-navigation-progress",function(){if(l_K===void 0){var K=document.createElement("template");_.Y(K,'\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');K.content.insertBefore(_.e().content.cloneNode(!0),
K.content.firstChild);var d=K.content,f=d.insertBefore;mxc===void 0&&(mxc=document.createElement("template"));var H=mxc;f.call(d,H.content.cloneNode(!0),K.content.firstChild);l_K=K}K=l_K;return K},{mode:2});var WAy={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"},GvS={"font-size":"12px","font-style":"italic"},At5={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.YVt=function(){return _.c(function(K){_.iQ(K)})};_.sP(_.C8(function(){var K=_.th(_.IOY);return _.U("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var d;return(d=K())==null?void 0:d.announcement})},"Vg"),"yt-ephemeral-actions");var xQZ=new Map;var OQz=function(K,d){var f=this;this.handleError=K;this.logEventInternal=d;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){f.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
OQz.prototype.logError=function(K){this.handleError(K)};
OQz.prototype.logEvent=function(K,d){switch(K){case "IDB_DATA_CORRUPTED":_.M("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",d);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",d);break;case "IS_SUPPORTED_COMPLETED":_.M("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",d);break;case "QUOTA_EXCEEDED":TA7(this,d);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",d);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":K=Object.assign({},d,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",K)}};
var TA7=function(K,d){_.i5.getInstance().estimate().then(function(f){f=Object.assign({},d,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:BBE(f==null?void 0:f.usage),deviceStorageQuotaMbytes:BBE(f==null?void 0:f.quota)});K.logEventInternal("idbQuotaExceeded",f)})};var Qa=function(){var K=_.q.apply(this,arguments)||this;K.tabGesturesIsActive=!1;K.deprecateFullerscreenUi=_.M("web_watch_fullerscreen_deprecation_ui");K.hasDelegation=!1;K.darkerDarkTheme=_.M("web_darker_dark_theme");K.isFrostedGlassInitialized=!1;K.frostedGlassExp=_.M("web_frosted_glass");K.mastheadHiddenFocusWithinKillswitch=_.M("web_masthead_hidden_focus_within_killswitch");K.ephemeralActionsEnabled=_.M("web_ephemeral_actions");K.scrollAtTop=!0;K.guideScrollTop=0;K.isTheaterModeSession=_.lx("START_IN_THEATER_MODE");
K.iMaxTheaterMode=_.M("web_watch_imax_theater_mode");K.isFullWindowSession=_.lx("START_IN_FULL_WINDOW_MODE");K.hasCreateFamilyDialog=!1;K.mastheadHeight=56;K.networkStatusManager=new _.jc;K.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"};K.dynamicActionMap={"yt-run-attestation-command":function(d){var f=_.TuL.instance,H=_.P(d,_.WfN);return H?_.M("use_rta_manager_for_async")&&
nMZ()?e3w(f,H,d.clickTrackingParams):ZUw(f,H,d.clickTrackingParams):_.vv(Error("ki"))}};
K.isFrostedGlassDisabled=!1;K.isChannelOrPlaylistPage=!1;return K};
_.O(Qa,_.q);_.V=Qa.prototype;_.V.created=function(){var K=_.eq();_.M("kevlar_clear_duplicate_pref_cookie")&&_.va(_.oc,function(){var d=_.I0.get("PREF");d&&!/f\d=/.test(d)&&(d=_.fy("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=d?"PREF=null;domain="+d+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.M("gzip_gel_with_worker")&&_.EoJ();_.M("jspb_serialize_with_worker")&&ldy();_.M("web_worker_availability_check")&&LS7();_.M("nwl_init_killswitch")||bQl().then(function(){_.oc.addLowPriorityJob(etw)});
this.pageManagerAttachedPromise=_.Gz();this.ytdAppBehavior.loadDepsPromise=_.at([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Ct(this.onThrottledScroll,200,this);_.M("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);NFS();Udz=!!_.T2("ytappsettings.initialized");nc=_.T2("ytappsettings.previousValue");y9E=_.T2("ytappsettings.previousSnapshotTime");Udz||(Udz=!0,n_c());Dui();VvE();_.bx("DEFERRED_DETACH",
_.M("kevlar_tuner_should_defer_detach"));_.bx("REUSE_COMPONENTS",!0);_.bx("STAMPER_STABLE_LIST",!0);_.bx("SCHEDULED_LAZY_LIST",!0);_.bx("openPopupConfig",jv5);_.bx("useClickHandler",!0);_.M("kevlar_shell_cleanup")&&_.oc.addLowPriorityJob(RAt.bind(this,_.Hu.caches));_.lx("IS_SHELL_LOAD")&&_.Ox({shellStartupDurationMs:Math.round((0,_.k_)()-_.Ff())});Eol(this.networkStatusManager);_.M("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",goi(WAy)),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!",
goi(GvS)),console.log("%cVisit http://go/join-youtube-web to apply today.",goi(At5)));_.N0t(K.resolve(_.Vl),1E3)};
_.V.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var K=xkE();K&&!_.M("external_fullscreen_killswitch")&&document.addEventListener(K,this.setFullscreen.bind(this));(K=window.matchMedia("(prefers-color-scheme: dark)"))&&K.addEventListener&&K.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.V.attached=function(){var K=this;_.ov().processSignal("ci");_.M("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.UMY?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Df(_.mf5(),"SUCCESS");this.updateIconSet();_.kZ(this.guideInnerContent,!1);_.aC().initVisibilityObserver();this.guideService.guideElement=this.guide;var d=document.createElement("ytd-miniplayer"),f=_.E(this.hostElement).querySelector("#content");
_.E(this.hostElement).insertBefore(d,f);_.ov().processSignal("ma");_.eq().resolve(_.$b).init(d);_.lx("IS_SHELL_LOAD")&&(f=document.createElement("ytd-network-status-banner"),_.E(this.hostElement).insertBefore(f,d));_.M("kevlar_right_click_on_lockups")&&_.l4._onCaptureClick&&document.addEventListener("contextmenu",_.l4._onCaptureClick.bind(_.l4),!0);var H=function(){var D=_.LI("yt-page-navigation-progress");_.E(K.hostElement).appendChild(D)};
setTimeout(function(){_.ov().parkOrScheduleJob(H,0,"eocs",16)},0);
_.M("service_worker_push_enabled")&&_.va(_.oc,CHi);_.qF(_.rU.getInstance(),this.dynamicActionMap,this.hostElement);_.Zp(this.hostElement,"ytd-app-attached");_.ov().processSignal("aa");SF7(this.hostElement);_.B6("gapi.load",_.a9z);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.va(_.oc,
function(){var D=document.createElement("ytd-video-preview");_.E(_.E(K.hostElement).querySelector("#video-preview")).appendChild(D)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.va(_.oc,function(){t3z();K.registerViewTransitionTasks()});
if(_.vW()&&this.isAppDarkTheme()!==_.zo())this.onDarkModeToggledAction();else d=_.X7()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==d&&(_.M("enable_dark_theme_only_on_shorts")?_.WW(_.M("enable_dark_theme_only_on_shorts_control")?window.location.href:_.xM(window.location.href,{theme:"dark"})):_.h3(new _.X4("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(BxS=new LMZ(this.hostElement)),EXi=new $xi(this.hostElement),oXi=new tK5(this.hostElement),u8y=new cjU(this.hostElement)};
_.V.getThemeSettingsToLog=function(){var K=_.X7()==="USER_INTERFACE_THEME_DARK";K=_.vW()?_.zo()?"os-dark":"os-light":K?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:K,cookiesEnabled:_.R0()}};
_.V.detached=function(){_.wL(this.guideInnerContent);_.oc.cancelJob(V6);V6=0;_.oc.cancelJob(y6);y6=0;_.CsX(VQK);VQK.length=0;fUy=_.VYo=null;_.aC().dispose();_.M("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.QU(_.rU.getInstance(),BxS.playlistHandlerActionMap,BxS.JSC$28434_clientRoot);_.QU(_.rU.getInstance(),EXi.downloadManagerActionMap,EXi.JSC$28738_clientRoot);_.QU(_.rU.getInstance(),oXi.feedbackCollectorActionMap,oXi.JSC$28733_clientRoot);
for(var K=_.y(u8y.eventListeners),d=K.next();!d.done;d=K.next()){var f=_.y(d.value);d=f.next().value;f=f.next().value;f=_.y(f);for(var H=f.next();!H.done;H=f.next()){var D=_.y(H.value);H=D.next().value;D=D.next().value;d.removeEventListener(H,D)}}_.QU(_.rU.getInstance(),u8y.autonavPauseActionMap,u8y.JSC$17728_clientRoot)};
_.V.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.aS().getFlag(186)};
_.V.computeIsInlinePreviewEnabled=function(K,d,f){return!f&&_.M4t({miniplayerIsActive:K,miniplayerPlaybackState:d})};
_.V.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.es({type:"SET_FROSTED_GLASS_MODE",payload:!_.M("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"}))};
_.V.computeIsFrostedGlassDisabled=function(K,d,f,H){return K||d||f||H&&_.M("web_frosted_glass_disable_watch")};
_.V.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.M("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.V.computeIsHomePage=function(K,d){if(!K||d==null||!d.endpoint)return!1;var f;return((f=_.P(d.endpoint,_.is))==null?void 0:f.browseId)==="FEwhat_to_watch"};
_.V.updateIsChannelOrPlaylistPage=function(){if(_.M("web_frosted_glass")){var K,d,f=(d=(K=_.eq().resolve(_.Zd(_.jC)))==null?void 0:K.getCurrentPage())==null?void 0:d.pageSubtype;this.isChannelOrPlaylistPage=f?["channel","channels","playlist"].includes(f):!1}};
_.V.scheduleFrostedGlassInitialization=function(){var K=this;_.M("web_frosted_glass")&&_.ov().parkOrScheduleJob(function(){K.isFrostedGlassInitialized=!0},0,_.Eg(["eocs",
"cr"]),300)};
_.V.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.uIH(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.es({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.es({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.V.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(VVi(!0))};
_.V.onYtSignalActionRequestPersistentStorage=function(){if(!_.M("request_persistent_storage_killswitch")){var K=_.eq().resolve(_.vCN);K.cachedPersistStatePromise||(K.cachedPersistStatePromise=O85())}};
_.V.handleYtChannelCreationFormEndpoints=function(K){K&&this.ytComponentBehavior.resolveCommand(K)};
_.V.handleShowEngagementPanelEndpoint=function(K){K&&this.ytComponentBehavior.resolveCommand(K)};
_.V.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(VVi(!1))};
_.V.initIconDefs=function(K,d,f){var H=document.createElement("iron-iconset-svg");H.name=K;K=document.createElementNS("http://www.w3.org/2000/svg","svg");H.appendChild(K);K.appendChild(d);if(f)for(var D in f)H[D]=f[D];document.body.appendChild(H);return H};
_.V.onWindowResized=function(){_.ev(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var K=_.PZH.getInstance();K.documentWidth_=document.body.clientWidth;OUi(K)};
_.V.onWindowScrolled=function(){var K=_.eq().resolve(_.jC).getCurrentPage();if(K!=null&&K.getScrollTop){var d=this.ytdReduxBehavior,f=d.dispatch;K=K.getScrollTop()<=0;f.call(d,_.es({type:"SET_SCROLL_AT_TOP",payload:K}))}};
_.V.guideIsVisibleButNotPersistentSelectorChanged=function(){var K=_.eq().resolve(_.jC).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=K.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"),
K.setScrollTop(this.guideScrollTop));_.p1(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.V.getCurrentPageScrollableElementType=function(){var K=_.eq().resolve(_.jC).getCurrentPage();if(K&&K.getPageScrollingElement())return K.getPageScrollingElement().nodeName};
_.V.observeGuideVisibility=function(){var K=_.PZH.getInstance(),d=this.miniGuideVisible;K.guidePersistentAndVisible_=this.guidePersistentAndVisible;K.miniGuideVisible_=d;OUi(K)};
_.V.handleEduDismissAction=function(K){K&&K.eduDismissAction&&(_.ev(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.FX8.getInstance(),_.Qg.set(K.eduDismissAction.key+"-dismissed",!0))};
_.V.handleEduImpressionAction=function(K){if(K&&K.eduImpressionAction){var d=_.FX8.getInstance();K=K.eduImpressionAction.key;d.JSC$10903_eduDisplayedThisLoad_[_.Rk4[K].setKey||K]=!0;_.Qg.set(K+"-impression",parseInt(_.Qg.get(K+"-impression")||0,10)+1)}};
_.V.onYtSignalActionConfirmMentionsEdu=function(){_.ev(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.xf.getInstance();_.C5.set("edu-dismissed",!0)};
_.V.onYtSignalActionRecordMentionsEduImpression=function(){_.xf.getInstance();var K=_.C5.set,d=parseInt(_.C5.get("edu-impressions"),10);K.call(_.C5,"edu-impressions",(isFinite(d)?d:0)+1)};
_.V.onYtPageManagerAttached=function(K){var d;((d=_.Qm(K))==null?void 0:d.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.V.onInvokeInstrumentManagerAction=function(K,d){wJU(d,K)};
_.V.updateIconSet=function(){var K=this.hostElement.querySelector("#masthead");if(K){var d=_.eZ(K),f=d.querySelector("g#yt-logo-updated");f&&(K=document.createElementNS("http://www.w3.org/2000/svg","defs"),K.appendChild(f.cloneNode(!0)),(d=d.querySelector("g#yt-logo-red-updated"))&&K.appendChild(d.cloneNode(!0)),this.initIconDefs("yt-logos-ext",K))}};
_.V.updateMastheadData=function(){var K=this,d,f,H,D,S;return _.c(function(n){if(n.nextAddress==1){d=K.data;f=K.hostElement.querySelector("#masthead");if(!f)return n.return();_.jW(K,function(){f.data=K.topbarData});
if(!K.get("response.topbar",d)||K.get("response.topbar.responseContext.maxAgeSeconds",d)===0)return n.jumpTo(0);if(H=_.eq().resolve(_.qW))return _.I(n,H(),6);D=_.eq().resolve(_.dJ);return _.I(n,D.put("service:topbar:fallback",new _.fv({innertubeResponse:K.get("response.topbar",d)})),0)}return(S=n.yieldResult)?_.I(n,S.put("service:topbar:fallback",new _.fv({innertubeResponse:K.get("response.topbar",d)})),0):n.jumpTo(0)})};
_.V.computeTopbarData=function(K){if(!K)return null;var d;return this.isShortsPage&&this.topbarData&&!_.P((d=K.response)==null?void 0:d.topbar,ucz)?this.topbarData:K.response&&"topbar"in K.response?_.P(K.response.topbar,ucz)||null:null};
_.V.onSetTheaterModeEnabled=function(K,d){this.isTheaterModeSession=d.enabled;this.setTheaterModeStyles(d.enabled)};
_.V.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.V.onDarkModeToggledAction=function(){var K=_.ny(window.location.href);if(!_.FZn(K)){(K=!!_.CQ(window.location.href).themeRefresh)&&_.h3(new _.X4("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!K){n_c();K={themeRefresh:1};var d=_.eq().resolve(_.jC);if(d.isOnWatch()){var f,H;d=((f=d.getPlayerFromWatch())==null?void 0:(H=f.getPlayer())==null?void 0:H.getCurrentTime())||0;d>=1&&(K.time_continue=Math.floor(d))}_.R0()||_.X7()!=="USER_INTERFACE_THEME_DARK"||(K.theme="dark");_.WW(_.xM(window.location.href,
K))}_.M("web_appshell_refresh_trigger")&&_.Hu.caches&&this.refreshAppShellResponse();f=_.W0(window.location.href);_.V3(_.eq().resolve(_.SE),_.L1(f,"theme"))}};
_.V.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.V.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.V.onPlayerFullscreen=function(K){_.Je();this.playerFullscreen=K};
_.V.setRestrictedMode=function(K){var d=_.aS();_.IS(0,58,K);d.save();_.eq().resolve(_.um).reload()};
_.V.onPageChanged=function(K){K.detail.newPageType==="ytd-watch-flexy"||K.detail.newPageType==="ytd-watch-fixie"||K.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.vd("WEB_PAGE_TYPE_WATCH")):K.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.vd("WEB_PAGE_TYPE_SHORTS")):K.detail.newPageType==="ytd-browse"&&K.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.vd("WEB_PAGE_TYPE_MINI_APP")):_.M("web_frosted_glass")&&K.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.vd("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.vd("WEB_PAGE_TYPE_UNKNOWN"));K.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.V.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.V.onGuideToggleTap=function(){_.Zp(this.hostElement,"yt-guide-toggle")};
_.V.onGuideToggleHover=function(){_.Zp(this.hostElement,"yt-guide-hover")};
_.V.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V.setMastheadTheme=function(){var K=_.eZ(this.hostElement).querySelector("#masthead");K&&(K.dark=K.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),K.isDarkThemeForced=!1)};
_.V.onRequestPanelModeChange=function(K,d){this.hideHeaderShadow=d.mode!=="seamed"};
_.V.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.V.onDrawerIronSelect=function(K){_.Qm(K).id==="guide"&&this.processDrawerIronSelect()};
_.V.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var K="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(K="opened"));_.Zp(this.hostElement,"yt-autonav-pause-guide-"+K)};
_.V.onAddElementToApp=function(K){_.E(this.hostElement).appendChild(K.detail)};
_.V.onThrottledScroll=function(){var K=_.eq().resolve(_.jC).getCurrentPage();K&&(this.scrollAtTop=K.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.V.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.V.setFullscreen=function(){if(_.M("external_fullscreen")||!this.isWatchPage){var K=_.M("kevlar_fullerscreen_root_only_killswitch")?!!_.Je():!!_.Je()&&_.Je()===document.documentElement;K=(this.isWatchPage||_.M("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(K||this.isFullWindowSession);this.fullscreen!==K&&((this.fullscreen=K)&&_.p1(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.j3().dispatch(_.DkK(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.ev(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.V.setFullscreenLoggingForShorts=function(K){var d,f,H;return _.c(function(D){if(D.nextAddress==1)return _.I(D,(d=_.xP())==null?void 0:d.getPlayerPromise(),2);f=D.yieldResult;(H=f)==null||H.setAppFullscreen(K);_.iQ(D)})};
_.V.updateMastheadCssHeight=function(){var K=this.mastheadHeight;this.fullscreen&&(K=0);_.f8(this.hostElement,{"--ytd-masthead-height":K+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.V.updateNetworkStatusBannerDisplayStatus=function(){var K="unset";this.fullscreen&&(K="none");_.f8(this.hostElement,{"--ytd-network-status-banner-display":K})};
_.V.updateNetworkStatusBannerCssHeight=function(){var K="unset";this.fullscreen&&(K="0px");_.f8(this.hostElement,{"--ytd-network-status-banner-max-height":K})};
_.V.updateScrollAndMasthead=function(K,d,f,H){this.iMaxTheaterMode||(H=!1);var D=_.eq().resolve(_.jC).getCurrentPage();K||d||H?(document.body.classList.add("no-scroll"),D.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Dm(this,this.onScroll)),D.setScrollTop(0),_.f8(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.tU()+"px"})):f?_.Zp(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Zp(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
D.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Dm(this,this.onScroll)));this.mastheadHidden=K||d||f;this.updateMastheadCssHeight();_.M("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.V.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.V.onYtNavigateAction=function(K){K=this.get("navigateAction.endpoint",K);_.Zp(this.hostElement,"yt-navigate",{endpoint:K})};
_.V.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var K=document.createElement("yt-create-family-dialog");_.E(this.hostElement).appendChild(K);this.hasCreateFamilyDialog=!0}};
_.V.onSetPushNotificationsEnabledCommand=function(K){var d=this,f=_.P(K,clc);f&&typeof f.enabled==="boolean"&&(Notification.permission!=="granted"?Tiw().then(function(){Notification.permission==="granted"?(g_i(!f.enabled).then(YFS),f.successAction&&_.dN(d.hostElement,[f.successAction])):f.failureAction&&_.dN(d.hostElement,[f.failureAction])}):(g_i(!f.enabled).then(YFS),f.successAction&&_.dN(this.hostElement,[f.successAction])))};
_.V.onYtSignalActionEnableChromeNotifications=function(){r9t(!0)};
_.V.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.P(this.topbarData.hotkeyDialog,U_U)}}})};
_.V.onYtSignalActionShowKeyboardShortcutDialog=function(){_.ev(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.V.onYtEndpointChangeHandler=function(K,d){var f=_.w3(_.cn);f.pendingPrefetchJob_&&(d=!(!d||d.autonav!="1"),f.pendingPrefetchJob_.resolve(K&&_.SQG(K)?_.yTz(K,d):""),f.pendingPrefetchJob_=null);_.ev(this.hostElement,"yt-pause-active-page-context");_.ev(this.hostElement,"ytd-log-youthere-nav");_.ev(this.hostElement,"yt-prepare-page-dispose")};
_.V.handleCommandWithCommandHandler=function(K,d){_.V2.instance.resolveCommand(K,{form:{element:d}})};
_.V.onYtTimedCommand=function(K){var d=this;K=_.P(K,pLc);var f=K.command;f&&_.FN(_.oc,function(){var H=_.P(f,_.qAJ);H?(_.V2.instance.resolveCommand(f),d.maybeLogGetAnswerRequestTick(H)):_.fd(d.hostElement,[f],d.hostElement)},K.timeoutMs||0)};
_.V.maybeLogGetAnswerRequestTick=function(K){K&&K.isFirstRequest&&(_.NY("search_overview_answer"),_.YJ("so_rq",void 0,"search_overview_answer"))};
_.V.onYtSignalActionSkipNavigation=function(){var K=_.eq().resolve(_.jC).getCurrentPage();_.BA(K)};
_.V.onYtSignalActionCopyDebugData=function(){eAK()};
_.V.handleEntityUpdateCommand=function(K){_.iA(_.P(K,_.C14).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.V.logFlowLoggingEventCommand=function(K){if(K=_.P(K,_.BAp))if(K.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var d=K.flowEventNamespace,f=K.flowEventType,H=K.flowType;H&&d&&f&&_.pno(_.HW(d,f,K.flowEventMetadata),H)}else{d=_.Vm();f=K.flowEventNamespace;H=K.flowEventType;var D=K.flowType;D&&f&&H&&_.De(d,_.HW(f,H,K.flowEventMetadata),D,K.flowNonce)}};
_.V.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.V.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.V.onTouchStart=function(){var K=_.IC();_.te()&&_.bh(K.JSC$11130_screenManager,{visualElement:K.ve})};
_.V.handleSelectLanguageCommand=function(K){if(K=_.P(K,ylP).hl){var d=_.aS();d.set("hl",K);d.save();_.eq().resolve(_.um).reload()}};
_.V.handleConfirmDialogEndpoint=function(K){(K=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(K))&&this.ytOpenPopupBehavior.openPopup(K)};
_.V.handleOpenPopupNavigationEndpoints=function(K,d){_.M("web_button_rework")&&(K=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(K))&&this.ytOpenPopupBehavior.openPopup(K,d)};
_.V.handleSaveCommandToSessionStorage=function(K){if(K=_.P(K,_.Q9k)){var d=K.key;d&&K.command&&window.sessionStorage.setItem(d,JSON.stringify(K.command))}};
_.V.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(K){K&&K.active&&K.active.postMessage({type:"refresh_shell"})}).catch(function(K){K.name!=="SecurityError"&&_.$7(K)})};
_.V.onDeviceThemeChanged=function(){var K=_.zo();_.IS(_.aS(),185,K);_.aS().save()};
_.V.handleYtRegisterPromoCommand=function(K){if(_.P(K,iTU)){var d=_.eq().resolve(_.jC).getCurrentPage()||this.hostElement;vfE().registerPromoCommand(_.P(K,iTU),d)}};
_.V.onYtNavigateHomeAction=function(){if(!_.M("kevlar_miniplayer_navigate_home_from_app_killswitch")){var K,d,f,H,D=(H=(K=this.topbarData)==null?void 0:(d=K.logo)==null?void 0:(f=d.topbarLogoRenderer)==null?void 0:f.endpoint)!=null?H:_.yg;this.ytComponentBehavior.resolveCommand(D)}};
_.V.onYtLocationCollectionCommand=function(K){NBi(_.P(K,g17))};
_.V.onYtGetLocationCommand=function(K){udK(_.P(K,PVZ),this)};
_.V.updateRenderGuideFromBinding=function(K){this.renderGuide=K.detail.value};
_.V.updateGuidePersistentAndVisibleFromBinding=function(K){this.guidePersistentAndVisible=K.detail.value};
_.V.updateMiniGuideVisibleFromBinding=function(K){this.miniGuideVisible=K.detail.value};
_.V.onThemeSelected=function(K,d){var f=_.aS(),H=K||d?K:_.zo(),D=(H&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!H&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.FZn(_.ny(window.location.href));_.IS(0,165,K);_.IS(0,174,d);f.save();D&&_.ev(this.hostElement,"yt-dark-mode-toggled-action",[H]);_.ev(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.getCurrentTheme=function(){return _.vW()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.X7()};
_.V.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.V.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.V.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.V.handleShowConsentPrimitive=function(K){var d=this,f,H;return _.c(function(D){if(D.nextAddress==1){try{f=(H=_.xP())==null?void 0:H.getPlayerPromise()}catch(S){}return _.I(D,CAy(K,f),2)}_.ev(d.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.iQ(D)})};
_.V.handleSelectActiveIdentityEndpointInternal=function(K){_.mW();K=_.P(K,_.Vxk);if(K!=null&&K.supportedTokens){K=_.y(K.supportedTokens);for(var d=K.next();!d.done;d=K.next())d=d.value,d.accountSigninToken&&_.WW(d.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.V.handleUpdatePermissionRoleCommand=function(K){if(K=_.P(K,_.Hf9)){var d;this.hasDelegation=!((d=_.P(K.renderer,_.fTJ))==null||!d.status)}};
_.V.registerViewTransitionTasks=function(){var K=this,d=_.eq().resolve(_.Zd(_.Re));if(d){var f,H=(f=this.guide)==null?void 0:f.querySelector("#scrim"),D,S=(D=this.guide)==null?void 0:D.querySelector("#contentContainer");H&&S&&(f={beforeTransition:function(){var n;(n=K.guide)!=null&&n.persistent||(H.style.viewTransitionName="app-drawer-scrim",S.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var n;(n=K.guide)!=null&&n.persistent||(H.style.viewTransitionName="",S.style.viewTransitionName="")}},ki(d,"slide",f),ki(d,"zoom",f))}};
_.x$.Object.defineProperties(Qa.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.M("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.x$.Object.defineProperties(Qa,{template:{configurable:!0,enumerable:!0,get:function(){if(MKc===void 0){var K=document.createElement("template");_.Y(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
K.content.insertBefore(_.e().content.cloneNode(!0),K.content.firstChild);MKc=K}K=MKc;return K}}});
Qa.prototype.onOpenHotkeyDialog=Qa.prototype.onOpenHotkeyDialog;Qa.prototype.setFullscreen=Qa.prototype.setFullscreen;Qa.prototype.onAddElementToApp=Qa.prototype.onAddElementToApp;Qa.prototype.onDrawerIronSelect=Qa.prototype.onDrawerIronSelect;Qa.prototype.onGuideOpenButtonHover=Qa.prototype.onGuideOpenButtonHover;Qa.prototype.onRequestPanelModeChange=Qa.prototype.onRequestPanelModeChange;Qa.prototype.onPageDataUpdated=Qa.prototype.onPageDataUpdated;Qa.prototype.onPageChanged=Qa.prototype.onPageChanged;
Qa.prototype.onSetTheaterModeEnabled=Qa.prototype.onSetTheaterModeEnabled;Qa.prototype.updateMastheadData=Qa.prototype.updateMastheadData;Qa.prototype.onYtPageManagerAttached=Qa.prototype.onYtPageManagerAttached;Qa.prototype.observeGuideVisibility=Qa.prototype.observeGuideVisibility;Qa.prototype.guideIsVisibleButNotPersistentSelectorChanged=Qa.prototype.guideIsVisibleButNotPersistentSelectorChanged;Qa.prototype.isInlinePreviewEnabledChanged=Qa.prototype.isInlinePreviewEnabledChanged;
Qa.prototype.isWatchPageChanged=Qa.prototype.isWatchPageChanged;Qa.prototype.dispatchFrostedGlassMode=Qa.prototype.dispatchFrostedGlassMode;_.x([_.l(_.ou),_.B("design:type",Object)],Qa.prototype,"ytdReduxBehavior",void 0);_.x([_.l(_.aJ.YtEventForwardingBehavior),_.B("design:type",Object)],Qa.prototype,"ytEventForwardingBehavior",void 0);_.x([_.l(_.Vr.YtOpenPopupBehavior),_.B("design:type",Object)],Qa.prototype,"ytOpenPopupBehavior",void 0);
_.x([_.l(_.kc.YtActionHandlerBehavior),_.B("design:type",Object)],Qa.prototype,"ytActionHandlerBehavior",void 0);_.x([_.l({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.rU.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.M("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var K;((K=this.actionRouterNode.hostElement)!=null?K:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var K;((K=this.actionRouterNode.hostElement)!=null?K:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(K){this.actionRouter_.handleAction(K.detail)}}),
_.B("design:type",Object)],Qa.prototype,"ytActionRouterBehavior",void 0);_.x([_.l(oft.YtdAppBehavior),_.B("design:type",Object)],Qa.prototype,"ytdAppBehavior",void 0);_.x([_.l(_.SY.YtEndpointBehavior),_.B("design:type",Object)],Qa.prototype,"ytEndpointBehavior",void 0);_.x([_.l(YEc.YtEndpointHandlerWithYpcBehavior),_.B("design:type",Object)],Qa.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.x([_.l(PbS.YtLogYpcFlowCommandsBehavior),_.B("design:type",Object)],Qa.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.x([_.l(_.p.YtRendererBehavior),_.B("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);_.x([_.l(_.hj.YtComponentBehavior),_.B("design:type",Object)],Qa.prototype,"ytComponentBehavior",void 0);_.x([_.A({selector:_.pxl}),_.B("design:type",Object)],Qa.prototype,"tabGesturesIsActive",void 0);_.x([_.A(),_.B("design:type",Boolean)],Qa.prototype,"renderGuide",void 0);
_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Qa.prototype,"guidePersistentAndVisible",void 0);_.x([_.A({selector:_.eq7}),_.B("design:type",Boolean)],Qa.prototype,"guideIsVisibleButNotPersistent",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Qa.prototype,"standalone",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Qa.prototype,"miniGuideVisible",void 0);
_.x([_.A({selector:_.zx5}),_.B("design:type",Number)],Qa.prototype,"miniplayerPlaybackState",void 0);_.x([_.A({selector:_.Yo,reflectToAttribute:!0}),_.B("design:type",Boolean)],Qa.prototype,"miniplayerIsActive",void 0);_.x([_.A({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.B("design:type",Boolean)],Qa.prototype,"isInlinePreviewEnabled",void 0);_.x([_.A(),_.B("design:type",Boolean)],Qa.prototype,"isInlinePreviewDisabled",void 0);
_.x([_.A({reflectToAttribute:!0,value:function(){return _.lx("START_IN_FULL_WINDOW_MODE")}}),
_.B("design:type",Boolean)],Qa.prototype,"mastheadHidden",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Qa.prototype,"playerFullscreen",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Qa.prototype,"deprecateFullerscreenUi",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Qa.prototype,"fullscreen",void 0);_.x([_.A({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Qa.prototype,"hideHeaderShadow",void 0);
_.x([_.A({value:{GUIDE_ALT_LABEL:_.iB("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.B("design:type",Object)],Qa.prototype,"menuStrings",void 0);_.x([_.A({computed:"computeTopbarData(data)"}),_.B("design:type",Object)],Qa.prototype,"topbarData",void 0);_.x([_.A({selector:_.tp}),_.B("design:type",Boolean)],Qa.prototype,"isWatchPage",void 0);_.x([_.A({selector:_.UVX,reflectToAttribute:!0}),_.B("design:type",Boolean)],Qa.prototype,"isShortsPage",void 0);
_.x([_.A({selector:function(K){return K.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.B("design:type",Boolean)],Qa.prototype,"isMiniAppPage",void 0);_.x([_.A({selector:function(K){return K.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.B("design:type",Boolean)],Qa.prototype,"isBrowsePage",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Boolean)],Qa.prototype,"scrolling",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Qa.prototype,"hasDelegation",void 0);_.x([_.A({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Qa.prototype,"guideScrolledByTouch",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Qa.prototype,"darkerDarkTheme",void 0);
_.x([_.A(),_.B("design:type",Object)],Qa.prototype,"isFrostedGlassInitialized",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Qa.prototype,"frostedGlassExp",void 0);_.x([_.A({selector:function(K){return K.ui.chipBarIsSticky}}),
_.B("design:type",Boolean)],Qa.prototype,"chipBarIsSticky",void 0);_.x([_.A({computed:"computeIsHomePage(isBrowsePage, data)"}),_.B("design:type",Boolean)],Qa.prototype,"isHomePage",void 0);_.x([_.A({reflectToAttribute:!0}),_.B("design:type",Object)],Qa.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.x([_.A(),_.B("design:type",Object)],Qa.prototype,"ephemeralActionsEnabled",void 0);_.x([_.JZ("guide"),_.B("design:type",Object)],Qa.prototype,"guide",void 0);
_.x([_.JZ("guide-service"),_.B("design:type",UzU)],Qa.prototype,"guideService",void 0);_.x([_.JZ("guide-inner-content"),_.B("design:type",HTMLDivElement)],Qa.prototype,"guideInnerContent",void 0);_.x([_.A({selector:_.vHS}),_.B("design:type",String)],Qa.prototype,"frostedGlassMode",void 0);
_.x([_.SP("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qa.prototype,"dispatchFrostedGlassMode",null);_.x([_.A({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.B("design:type",Object)],Qa.prototype,"isFrostedGlassDisabled",void 0);
_.x([_.SP("isWatchPage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qa.prototype,"isWatchPageChanged",null);_.x([_.W("isHomePage","chipBarIsSticky"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Qa.prototype,"applyFrostedGlassToChipBar",null);_.x([_.A(),_.B("design:type",Object)],Qa.prototype,"isChannelOrPlaylistPage",void 0);
_.x([_.an("isInlinePreviewEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qa.prototype,"isInlinePreviewEnabledChanged",null);_.x([_.SP("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qa.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.x([_.SP("guidePersistentAndVisible","miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qa.prototype,"observeGuideVisibility",null);_.x([_.VV("attached"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Qa.prototype,"onYtPageManagerAttached",null);_.x([_.SP("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],Qa.prototype,"updateMastheadData",null);
_.x([_.VV("yt-set-theater-mode-enabled"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Qa.prototype,"onSetTheaterModeEnabled",null);_.x([_.VV("yt-page-type-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Qa.prototype,"onPageChanged",null);_.x([_.VV("yt-page-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qa.prototype,"onPageDataUpdated",null);
_.x([_.VV("yt-request-panel-mode-change"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],Qa.prototype,"onRequestPanelModeChange",null);_.x([_.VV("yt-guide-hover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qa.prototype,"onGuideOpenButtonHover",null);_.x([_.VV("app-drawer-transitioned"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Qa.prototype,"onDrawerIronSelect",null);
_.x([_.VV("yt-add-element-to-app"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Qa.prototype,"onAddElementToApp",null);_.x([_.VV("yt-set-fullerscreen-styles"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qa.prototype,"setFullscreen",null);_.x([_.VV("yt-open-hotkey-dialog"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qa.prototype,"onOpenHotkeyDialog",null);
Qa=_.x([_.Q({is:"ytd-app"})],Qa);_.ov().processSignal("eor");
_.bl();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
